[][src]Function mrklt::compute_root

pub fn compute_root<M: Merge>(leaves: &[M::Hash]) -> M::Hash

Deterministically compute a Merkle root for an ordered list of leaves.

Panics

Panics if length of leaves is 0.