Skip to main content

hash_mmr_leaf

Function hash_mmr_leaf 

Source
pub fn hash_mmr_leaf(data: &[u8]) -> MmrHash
Expand description

Hash arbitrary data into an MMR leaf with domain separation. Domain tag 0x00 for leaves, 0x01 for internal nodes (in Merge). This prevents second-preimage attacks where a leaf hash could be mistaken for an internal node hash.