Module prelude

Source
Expand description

Prelude. Also provides sample instantiations of merkle trees.

Re-exports§

pub use crate::append_only::MerkleTree;
pub use crate::universal_merkle_tree::UniversalMerkleTree;
pub use crate::AppendableMerkleTreeScheme;
pub use crate::DigestAlgorithm;
pub use crate::Element;
pub use crate::ForgetableMerkleTreeScheme;
pub use crate::ForgetableUniversalMerkleTreeScheme;
pub use crate::Index;
pub use crate::LookupResult;
pub use crate::MerkleTreeScheme;
pub use crate::NodeValue;
pub use crate::ToTraversalPath;
pub use crate::UniversalMerkleTreeScheme;

Macros§

impl_to_traversal_path_biguint
Macros for implementing ToTreversalPath for BigUint types
impl_to_traversal_path_primitives
Macros for implementing ToTreversalPath for primitive types

Structs§

Keccak256Digest
Wrapper for the actual hash function
Keccak256Node
Internal node for merkle tree
MerkleTreeProof
A (non)membership Merkle proof consists of all values of siblings of a Merkle path.
RescueHash
Wrapper for rescue hash function
Sha3Digest
Wrapper for the actual hash function
Sha3Node
Internal node for merkle tree

Enums§

MerkleNode
An internal Merkle node.

Type Aliases§

Keccak256MerkleTree
Merkle tree using keccak256 hash
LightWeightKeccak256MerkleTree
Light weight merkle tree using Keccak256 hash
LightWeightSHA3MerkleTree
Light weight merkle tree using SHA3 hash
RescueLightWeightMerkleTree
A standard light merkle tree using RATE-3 rescue hash function
RescueMerkleTree
A standard merkle tree using RATE-3 rescue hash function
RescueSparseMerkleTree
Example instantiation of a SparseMerkleTree indexed by I
SHA3MerkleTree
Merkle tree using SHA3 hash