Module smtree::traits[][src]

Expand description

This module provides a generic set of traits for customizing nodes in the sparse Merkle tree.

For examples on how to use these traits, see the implementations of the example module.

Traits

Trait for generating and verifying inclusion proofs.

Trait for merging two child nodes to extract the parent node in the SMT.

Trait for generating a padding node in the SMT.

Trait for prove and verify padding nodes at random sampling.

Trait for extracting a node with necessary information in Merkle proofs from a tree node.

Trait for generating a random value.

Trait for random sampling and verifying sampling proofs.

Trait for encoding.

Trait for getting the type name of tree nodes in the SMT.