pub fn merkle_root<H, I, T>(leaves: I) -> Hashwhere
    H: Hasher,
    I: IntoIterator<Item = T>,
    T: AsRef<[u8]>,
Expand description

Construct a root hash of a Binary Merkle Tree created from given leaves.

See crate-level docs for details about Merkle Tree construction.

In case an empty list of leaves is passed the function returns a 0-filled hash.