[][src]Trait bitcoin::util::hash::MerkleRoot

pub trait MerkleRoot {
    fn merkle_root(&self) -> Hash;
}

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

Required methods

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.

Loading content...

Implementations on Foreign Types

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

impl<T: BitcoinHash> MerkleRoot for Vec<T>[src]

Loading content...

Implementors

Loading content...