referrerpolicy=no-referrer-when-downgrade

leaf_hash

Function leaf_hash 

Source
pub fn leaf_hash(leaf_version: u8, payload: &[u8]) -> Hash
Expand 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.