pub struct ProvedTransaction { /* private fields */ }Expand description
A confirmed transaction with its SPV proof
Implementations§
Source§impl ProvedTransaction
impl ProvedTransaction
pub fn new(block: &Block, txnr: usize) -> ProvedTransaction
Sourcepub fn get_transaction(&self) -> Transaction
pub fn get_transaction(&self) -> Transaction
get a copy of the transaction
pub fn get_block_hash(&self) -> &Hash
Sourcepub fn merkle_root(&self) -> Hash
pub fn merkle_root(&self) -> Hash
compute the merkle root implied by the SPV proof
Trait Implementations§
Source§impl Clone for ProvedTransaction
impl Clone for ProvedTransaction
Source§fn clone(&self) -> ProvedTransaction
fn clone(&self) -> ProvedTransaction
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProvedTransaction
impl Debug for ProvedTransaction
Source§impl<'de> Deserialize<'de> for ProvedTransaction
impl<'de> Deserialize<'de> for ProvedTransaction
Source§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 Eq for ProvedTransaction
Source§impl PartialEq for ProvedTransaction
impl PartialEq for ProvedTransaction
Source§fn eq(&self, other: &ProvedTransaction) -> bool
fn eq(&self, other: &ProvedTransaction) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ProvedTransaction
impl Serialize for ProvedTransaction
impl StructuralPartialEq for ProvedTransaction
Auto Trait Implementations§
impl Freeze for ProvedTransaction
impl RefUnwindSafe for ProvedTransaction
impl Send for ProvedTransaction
impl Sync for ProvedTransaction
impl Unpin for ProvedTransaction
impl UnsafeUnpin for ProvedTransaction
impl UnwindSafe for ProvedTransaction
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more