pub fn merkle_root(leaves: &[Digest]) -> Digest
Calculate the Merkle root for a tree with the given list of digests as leaves.
Panics if the given list of leaves is empty.