Crate ergo_merkle_tree

Source
Expand description

Ergo Merkle Tree and Merkle verification tools

Structs§

BatchMerkleProof
Compact Merkle multiproof. Can be created using crate::MerkleTree::proof_by_indices Implementation based on https://deepai.org/publication/compact-merkle-multiproofs
LevelNode
A LevelNode used for MerkleProof verification, consists of a 32 byte hash and side it is on in tree
MerkleProof
A MerkleProof type. Given leaf data and levels (bottom-upwards), the root hash can be computed and validated
MerkleTree
Merkle Tree

Enums§

MerkleNode
Node for a Merkle Tree
NodeSide
The side the merkle node is on in the tree

Constants§

HASH_SIZE
Hash size for all nodes in crate::MerkleTree, crate::MerkleProof and crate::BatchMerkleProof