pub fn leaf_hash(leaf_version: u8, payload: &[u8]) -> HashExpand description
Hash a payload into a stream MMR leaf: H(LEAF_TAG ++ leaf_version ++ payload). Source, stream
and position are structural and not in the preimage. Versions are hash-disjoint, so only the
correct one reproduces a committed root.