pub struct AssetRecord {
    pub open_asset_record: OpenAssetRecord,
    pub tracing_policies: TracingPolicies,
    pub identity_proofs: Vec<Option<ACConfidentialRevealProof>>,
    pub asset_tracers_memos: Vec<TracerMemo>,
    pub owner_memo: Option<OwnerMemo>,
}
Expand description

An input or output record and associated information (policies and memos). It contains all the information used to the do a valid confidential transfer.

Fields§

§open_asset_record: OpenAssetRecord

The opened version of the asset record.

§tracing_policies: TracingPolicies

The tracing policies.

§identity_proofs: Vec<Option<ACConfidentialRevealProof>>

The identity proof for asset tracers, one for each tracer.

§asset_tracers_memos: Vec<TracerMemo>

The memo for asset tracers, one for each tracer.

§owner_memo: Option<OwnerMemo>

The owner memo.

Implementations§

Build a record input from OpenAssetRecord with no associated policy Important: It assumes that RecordInput will be used as an input and not as an output since OpenAsset record was recovered from a BlindAsset record. This means owner_memo field is None.

Build a record input from OpenAssetRecord with an associated policy that has no identity tracing Important: It assumes that RecordInput will be used as an input and not as an output since OpenAsset record was recovered from a BlindAsset record. This means owner_memo field is be None.

Build a record input from OpenAssetRecord with associated policies for asset and identity tracing Important: It assumes that RecordInput will be used as an input and not as an output since OpenAsset record was recovered from a BlindAsset record. This means owner_memo field is None.

Create the asset record using a template, without identity tracing.

Create the asset record using a template, with identity tracing.

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.