aztec-nr - noir_aztec::protocol::merkle_tree::root

Function root_from_sibling_path

pub fn root_from_sibling_path<let N: u32>(
    leaf: Field,
    leaf_index: Field,
    sibling_path: [Field; N],
) -> Field

Calculate the Merkle tree root from the sibling path and leaf, using the default merkle hash.