pub struct TrainingReceipt {Show 13 fields
pub task_id: String,
pub task_spec: TrainingTaskSpec,
pub final_model_hash: Hash,
pub syncer_did: String,
pub syncer_address: Address,
pub trainer_contributions: HashMap<String, u32>,
pub trainer_rewards: HashMap<String, u128>,
pub network_commission: u128,
pub round_state_roots: Vec<Hash>,
pub run_root: Hash,
pub syncer_attestation: TrainingAttestation,
pub finalized_at: Timestamp,
pub syncer_signature: Signature,
}Expand description
On-chain finalization artifact. Mintable as an NFT via the standard NFT factory at precompile 0x1006. Represents proof-of-training.
Fields§
§task_id: String§task_spec: TrainingTaskSpecThe full task spec, captured verbatim for provenance.
final_model_hash: HashFinal model parameter hash (Merkle root over fragments after the last accepted outer step).
syncer_did: StringSyncer DID + address.
syncer_address: Address§trainer_contributions: HashMap<String, u32>Per-trainer contribution count: number of accepted outer gradients across all rounds.
trainer_rewards: HashMap<String, u128>Per-trainer reward in attoTNZO.
network_commission: u128Network commission (treasury cut) in attoTNZO.
round_state_roots: Vec<Hash>Per-round state roots. Order matches 0..=last_completed_round.
run_root: HashFinal Merkle root over the full sequence of round_state_roots.
This single hash anchors the entire training run.
syncer_attestation: TrainingAttestationSyncer’s TEE attestation chain (vendor, report hex, cert chain).
finalized_at: TimestampWhen the run finalized.
syncer_signature: SignatureSyncer signature over the canonical bytes of all fields above.
Trait Implementations§
Source§impl Clone for TrainingReceipt
impl Clone for TrainingReceipt
Source§fn clone(&self) -> TrainingReceipt
fn clone(&self) -> TrainingReceipt
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for TrainingReceipt
impl Debug for TrainingReceipt
Source§impl<'de> Deserialize<'de> for TrainingReceipt
impl<'de> Deserialize<'de> for TrainingReceipt
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for TrainingReceipt
impl PartialEq for TrainingReceipt
Source§fn eq(&self, other: &TrainingReceipt) -> bool
fn eq(&self, other: &TrainingReceipt) -> bool
self and other values to be equal, and is used by ==.