Function hash_subtree_path_iter

Source
fn hash_subtree_path_iter<H: MmrHasher>(
    element: H::Word,
    height: usize,
    position: usize,
    path: &[H::Word],
) -> H::Word
Expand description

Iterative subtree path hashing generic over the hasher.

Replays the sibling path from the leaf to its peak, following the same left/right rules as the Cairo implementation but without recursion.