Skip to main content

leaf_hash

Function leaf_hash 

Source
pub fn leaf_hash(key: &XorName, bytes_hash: &[u8; 32]) -> [u8; 32]
Expand description

Compute the Merkle leaf hash for (key, bytes_hash).

bytes_hash is BLAKE3 over the record bytes; the leaf binds the key to the content so an adversary cannot reuse a leaf for a different chunk.