TreeUtil

Undocumented in source.

Members

Aliases

hash_nodes
alias hash_nodes = hash_2n_n_mask!(hash_2n_n, H, M)
Undocumented in source.

Functions

hash_tree
H hash_tree(H[] leaves, M[] masks)

Calculate root hash of a L-tree or a binary tree. The number of leaves is not required to be a power of 2.

validate_authpath
H validate_authpath(H leaf, uint leafidx, H[] authpath, M[] masks)

Compute the root hash of a tree given a leaf and its authentication path.

Structs

hash_stack
struct hash_stack(uint height)

Helper struct for treehash algorithm.

Meta