pub fn merkle_root<H, I>(leaves: I) -> H256where
H: Hash<Output = H256>,
I: Iterator<Item = H256>,
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.