referrerpolicy=no-referrer-when-downgrade

Function merkle_root_raw

Source
pub fn merkle_root_raw<H, I>(leaves: I) -> H::Out
where H: Hasher, H::Out: Default + AsRef<[u8]>, I: IntoIterator<Item = H::Out>,
Expand description

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

This is a raw version of the merkle_root function that expects the hashes of the leaves and not the leaves itself.

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.