Function that merges nodes at lower levels to produce nodes for higher levels of the tree
Node corresponding to the root of the merkle tree.
Leaf nodes of the tree
Tree metadata
Readonly
leafLeaf nodes of the tree
Readonly
metadataTree metadata
Readonly
rootNode corresponding to the root of the merkle tree.
Get direct path for particular element by index
Array of PathDirection objects representing the path from the root of the tree to the element requested
Element index
Get proof for particular element by index. The proof is an array of nodes representing the various subtrees that do not contain the given element. The idea is that by repeatedly merging the element with successive nodes from the proof array, you eventually should get the root node of the original merkle tree.
Array of proof Nodes.
Element index
Merkle tree structure. Type 'TData' is the type of the nodes in the tree. Type 'TLeaf' is the type of the leaf nodes specifically, which may be a more specific sub-type of 'TData'. Type 'TMetadata' is the type of the metadata.