Skip to main content

merkle_node

Function merkle_node 

Source
pub fn merkle_node(
    public_param: &PublicParam,
    level: usize,
    index: u32,
    left: &Digest,
    right: &Digest,
) -> Digest
Expand description

A Merkle parent, hashed under the tweak that fixes its level and index.

The level and index place each node in its own hash domain, so a node computed at one position cannot be replayed at another.