Trait bitcoin::util::hash::MerkleRoot
[−]
[src]
pub trait MerkleRoot { fn merkle_root(&self) -> Sha256dHash; }
Any collection of objects for which a merkle root makes sense to calculate
Required Methods
fn merkle_root(&self) -> Sha256dHash
Construct a merkle tree from a collection, with elements ordered as they were in the original collection, and return the merkle root.
Implementors
impl<'a, T: BitcoinHash> MerkleRoot for &'a [T]
impl<T: BitcoinHash> MerkleRoot for Vec<T>