Module hash

Source

Functions§

compute_parent_node
Returns the hash of the parent node based on the provided node (with its node_index) and sibling (with its sibling_index).
compute_root
Computes the root for the given leaf (with index i) and proof. It doesn’t perform the validation of the provided proof.