[][src]Struct sv::messages::MerkleBlock

pub struct MerkleBlock {
    pub header: BlockHeader,
    pub total_transactions: u32,
    pub hashes: Vec<Hash256>,
    pub flags: Vec<u8>,
}

A block header and partial merkle tree for SPV nodes to validate transactions

Fields

Block header

Number of transactions in the block

Hashes in depth-first order

Bit vector used to assign hashes to nodes in the partial merkle tree

Methods

impl MerkleBlock
[src]

Validates the merkle block and partial merkle tree and returns the set of matched transactions

Trait Implementations

impl Payload<MerkleBlock> for MerkleBlock
[src]

impl Serializable<MerkleBlock> for MerkleBlock
[src]

impl Clone for MerkleBlock
[src]

Performs copy-assignment from source. Read more

impl Eq for MerkleBlock
[src]

impl Default for MerkleBlock
[src]

impl PartialEq<MerkleBlock> for MerkleBlock
[src]

impl Debug for MerkleBlock
[src]

impl Hash for MerkleBlock
[src]

Feeds a slice of this type into the given [Hasher]. Read more

Auto Trait Implementations

impl Send for MerkleBlock

impl Sync for MerkleBlock

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same for T

Should always be Self