Trait MerkleRoot

Source
pub trait MerkleRoot {
    // Required method
    fn merkle_root(&self) -> Hash;
}
Expand description

Any collection of objects for which a merkle root makes sense to calculate

Required Methods§

Source

fn merkle_root(&self) -> Hash

Construct a merkle tree from a collection, with elements ordered as they were in the original collection, and return the merkle root.

Implementations on Foreign Types§

Source§

impl<'a, T: BitcoinHash> MerkleRoot for &'a [T]

Source§

impl<T: BitcoinHash> MerkleRoot for Vec<T>

Implementors§