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
pub fn new(
transaction_outputs: Vec<TransactionOutput>,
first_transaction_output_version: Option<Version>,
proof: TransactionInfoListWithProof<T>
) -> Self
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:
- All transaction infos exist on the given
ledger_info
. - If
first_transaction_output_version
is None, the transaction output list is empty. Otherwise, the list starts atfirst_transaction_output_version
. - 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
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>,
Deserialize this value from the given Serde deserializer. Read more
impl<T: PartialEq> PartialEq<TransactionOutputListWithProof<T>> for TransactionOutputListWithProof<T>
impl<T: PartialEq> PartialEq<TransactionOutputListWithProof<T>> for TransactionOutputListWithProof<T>
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl<T> RefUnwindSafe for TransactionOutputListWithProof<T> where
T: RefUnwindSafe,
impl<T> Send for TransactionOutputListWithProof<T> where
T: Send,
impl<T> Sync for TransactionOutputListWithProof<T> where
T: Sync,
impl<T> Unpin for TransactionOutputListWithProof<T> where
T: Unpin,
impl<T> UnwindSafe for TransactionOutputListWithProof<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Generates a hash used only for tests.