[−][src]Struct solana_libra_types::transaction::SignedTransactionWithProof
Fields
version: Version
signed_transaction: SignedTransaction
events: Option<Vec<ContractEvent>>
proof: SignedTransactionProof
Methods
impl SignedTransactionWithProof
[src]
pub fn verify(
&self,
ledger_info: &LedgerInfo,
version: Version,
sender: AccountAddress,
sequence_number: u64
) -> Result<()>
[src]
&self,
ledger_info: &LedgerInfo,
version: Version,
sender: AccountAddress,
sequence_number: u64
) -> Result<()>
Verifies the signed transaction with the proof, both carried by self
.
Two things are ensured if no error is raised:
- This signed transaction exists in the ledger represented by
ledger_info
. - And this signed transaction has the same
version
,sender
, andsequence_number
as indicated by the parameter list. If any of these parameter is unknown to the call site that is supposed to be informed via this struct, get it from the struct itself, such as:signed_txn_with_proof.version
,signed_txn_with_proof.signed_transaction.sender()
, etc.
Trait Implementations
impl Clone for SignedTransactionWithProof
[src]
fn clone(&self) -> SignedTransactionWithProof
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for SignedTransactionWithProof
[src]
impl Eq for SignedTransactionWithProof
[src]
impl From<SignedTransactionWithProof> for SignedTransactionWithProof
[src]
fn from(txn: SignedTransactionWithProof) -> Self
[src]
impl PartialEq<SignedTransactionWithProof> for SignedTransactionWithProof
[src]
fn eq(&self, other: &SignedTransactionWithProof) -> bool
[src]
fn ne(&self, other: &SignedTransactionWithProof) -> bool
[src]
impl StructuralEq for SignedTransactionWithProof
[src]
impl StructuralPartialEq for SignedTransactionWithProof
[src]
impl TryFrom<SignedTransactionWithProof> for SignedTransactionWithProof
[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(proto: SignedTransactionWithProof) -> Result<Self>
[src]
Auto Trait Implementations
impl RefUnwindSafe for SignedTransactionWithProof
impl Send for SignedTransactionWithProof
impl Sync for SignedTransactionWithProof
impl Unpin for SignedTransactionWithProof
impl UnwindSafe for SignedTransactionWithProof
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &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> Same<T> for T
type Output = T
Should always be Self
impl<T> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized,
T: Send + Sync + UnwindSafe + ?Sized,
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, 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<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,