[−][src]Struct solana_libra_types::transaction::TransactionListWithProof
The list may have three states:
- The list is empty. Both proofs must be
None
. - The list has only 1 transaction/transaction_info. Then
proof_of_first_transaction
must exist andproof_of_last_transaction
must beNone
. - The list has 2+ transactions/transaction_infos. The both proofs must exist.
Fields
transaction_and_infos: Vec<(SignedTransaction, TransactionInfo)>
events: Option<Vec<Vec<ContractEvent>>>
first_transaction_version: Option<Version>
proof_of_first_transaction: Option<AccumulatorProof>
proof_of_last_transaction: Option<AccumulatorProof>
Methods
impl TransactionListWithProof
[src]
pub fn new(
transaction_and_infos: Vec<(SignedTransaction, TransactionInfo)>,
events: Option<Vec<Vec<ContractEvent>>>,
first_transaction_version: Option<Version>,
proof_of_first_transaction: Option<AccumulatorProof>,
proof_of_last_transaction: Option<AccumulatorProof>
) -> Self
[src]
transaction_and_infos: Vec<(SignedTransaction, TransactionInfo)>,
events: Option<Vec<Vec<ContractEvent>>>,
first_transaction_version: Option<Version>,
proof_of_first_transaction: Option<AccumulatorProof>,
proof_of_last_transaction: Option<AccumulatorProof>
) -> Self
Constructor.
pub fn new_empty() -> Self
[src]
Creates an empty transaction list.
pub fn verify(
&self,
ledger_info: &LedgerInfo,
first_transaction_version: Option<Version>
) -> Result<()>
[src]
&self,
ledger_info: &LedgerInfo,
first_transaction_version: Option<Version>
) -> Result<()>
Verifies the transaction list with the proofs, both carried on self
.
Two things are ensured if no error is raised:
- All the transactions exist on the ledger represented by
ledger_info
. - And the transactions in the list has consecutive versions starting from
first_transaction_version
. Whenfirst_transaction_version
is None, ensures the list is empty.
Trait Implementations
impl Clone for TransactionListWithProof
[src]
fn clone(&self) -> TransactionListWithProof
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq<TransactionListWithProof> for TransactionListWithProof
[src]
fn eq(&self, other: &TransactionListWithProof) -> bool
[src]
fn ne(&self, other: &TransactionListWithProof) -> bool
[src]
impl Eq for TransactionListWithProof
[src]
impl Debug for TransactionListWithProof
[src]
impl IntoProto for TransactionListWithProof
[src]
type ProtoType = TransactionListWithProof
The corresponding Protobuf type.
fn into_proto(self) -> Self::ProtoType
[src]
impl FromProto for TransactionListWithProof
[src]
type ProtoType = TransactionListWithProof
The corresponding Protobuf type.
fn from_proto(object: Self::ProtoType) -> Result<Self>
[src]
impl Arbitrary for TransactionListWithProof
[src]
type Parameters = ()
The type of parameters that [arbitrary_with
] accepts for configuration of the generated [Strategy
]. Parameters must implement [Default
]. Read more
type Strategy = BoxedStrategy<Self>
The type of [Strategy
] used to generate values of type Self
. Read more
fn arbitrary_with(_args: Self::Parameters) -> Self::Strategy
[src]
fn arbitrary() -> Self::Strategy
[src]
Generates a [Strategy
] for producing arbitrary values of type the implementing type (Self
). Read more
Auto Trait Implementations
impl Sync for TransactionListWithProof
impl Send for TransactionListWithProof
impl Unpin for TransactionListWithProof
impl RefUnwindSafe for TransactionListWithProof
impl UnwindSafe for TransactionListWithProof
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<P, T> IntoProtoBytes<P> for T where
P: Message,
T: IntoProto<ProtoType = P>,
P: Message,
T: IntoProto<ProtoType = P>,
fn into_proto_bytes(self) -> Result<Vec<u8>, Error>
impl<P, T> FromProtoBytes<P> for T where
P: Message,
T: FromProto<ProtoType = P>,
P: Message,
T: FromProto<ProtoType = P>,
fn from_proto_bytes(bytes: &[u8]) -> Result<T, Error>
Decode a Rust struct from encoded Protobuf bytes.
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,
fn vzip(self) -> V
impl<T> Erased for T
impl<T> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized,
T: Send + Sync + UnwindSafe + ?Sized,
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,