Module merkle_tree

Module merkle_tree 

Source
Expand description

§TODO

  • Disk based storage backend (using mmaped files should be easy)
  • Implement serialization for tree and Merkle proof

Constants§

MIN_PARALLEL_NODES
Enables parallel hashing when there are at least 8 nodes (4 pairs to hash), justifying the overhead.

Traits§

Hasher
In the Hasher trait we define the node type, the default leaf and the hash function used to initialize a Merkle Tree implementation
ZerokitMerkleProof
ZerokitMerkleTree
In the ZerokitMerkleTree trait we define the methods that are required to be implemented by a Merkle tree Including, OptimalMerkleTree, FullMerkleTree

Type Aliases§

FrOf