Function tree_hash::merkle_root[][src]

pub fn merkle_root(bytes: &[u8], minimum_leaf_count: usize) -> Hash256
Expand description

Convenience method for MerkleHasher which also provides some fast-paths for small trees.

minimum_leaf_count will only be used if it is greater than or equal to the minimum number of leaves that can be created from bytes.