pub fn root_from_sibling_path_with_hasher<let N: u32>( leaf: Field, leaf_index: Field, sibling_path: [Field; N], hasher: fn(Field, Field) -> Field, ) -> Field
Calculate the Merkle tree root from the sibling path and leaf, using a custom hasher.
The leaf is hashed with its sibling, the result is then hashed with the next sibling in the path. and so on. The last hash is the root.
Calculate the Merkle tree root from the sibling path and leaf, using a custom hasher.
The leaf is hashed with its sibling, the result is then hashed with the next sibling in the path. and so on. The last hash is the root.