merkle_root

Function merkle_root 

Source
pub fn merkle_root(leaves: &[Digest]) -> Digest
Expand description

Calculate the Merkle root for a tree with the given list of digests as leaves.

Panics if the given list of leaves is empty.