Calculate root hash of a L-tree or a binary tree. The number of leaves is not required to be a power of 2.
Compute the root hash of a tree given a leaf and its authentication path.
Helper struct for treehash algorithm.
See Implementation