Struct diem_types::transaction::TransactionOutputListWithProof[][src]

pub struct TransactionOutputListWithProof<T> {
    pub transaction_outputs: Vec<TransactionOutput>,
    pub first_transaction_output_version: Option<Version>,
    pub proof: TransactionInfoListWithProof<T>,
}
Expand description

This differs from TransactionListWithProof in that TransactionOutputs are stored (no transactions). Events are stored inside each TransactionOutput.

Note: the proof cannot verify the TransactionOutputs themselves. This requires speculative execution of each TransactionOutput to verify that the resulting state matches the expected state in the proof (for each version).

Fields

transaction_outputs: Vec<TransactionOutput>first_transaction_output_version: Option<Version>proof: TransactionInfoListWithProof<T>

Implementations

A convenience function to create an empty proof. Mostly used for tests.

Verifies the transaction output list with proof using the given ledger_info. This method will ensure:

  1. All transaction infos exist on the given ledger_info.
  2. If first_transaction_output_version is None, the transaction output list is empty. Otherwise, the list starts at first_transaction_output_version.
  3. Events in each transaction output match the expected event root hashes in the proof.

Note: the proof cannot verify the TransactionOutputs themselves. This requires speculative execution of each TransactionOutput to verify that the resulting state matches the expected state in the proof (for each version).

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

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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

Performs the conversion.

Performs the conversion.

Should always be Self

Generates a hash used only for tests.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

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.