Compute the root hash of a tree given a leaf and its authentication path.
A leaf of the tree.
The index of the leaf.
Authentication path as generated by gen_subtree_authpath().
Bitmasks for the tree.
See Implementation
Compute the root hash of a tree given a leaf and its authentication path.