Crate smtree

Source
Expand description

A library supplying paddable sparse Merkle tree.

Modulesยง

error
This module provides definitions of errors might be returned by this library.
index
This module provides definitions of tree index in an SMT, and operations to get the index of the parent/sibling/child/etc. of a given tree node.
node_template
This module includes various Node-type templates.
pad_secret
SMTree secret.
proof
This module provides definitions of the inclusion proof (Merkle proof) of a tree node in an SMT, and proof verification.
traits
This module provides a generic set of traits for customizing nodes in the sparse Merkle tree.
tree
This module provides definitions of the tree node and the paddable sparse Merkle tree, together with methods of tree generation/update, Merkle proof generation, and random sampling.
utils
Various utility functions.