Expand description
Contains types used to bridge a JellyfishMerkleTree
to the backing storage recording the tree’s internal data.
Structs§
- Leaf
Node - Represents a key-value pair in the map.
- Nibble
Path - NibblePath defines a path in Merkle tree in the unit of nibble (4 bits).
- Node
Batch - Node batch that will be written into db atomically with other batches.
- NodeKey
- The unique key of each node.
- Node
Stats - Stale
Node Index - Indicates a node becomes stale since
stale_since_version
. - Tree
Update Batch - This is a wrapper of
NodeBatch
,StaleNodeIndexBatch
and some stats of nodes that represents the incremental updates of a tree and pruning indices after applying a write set, which is a vector ofhashed_account_address
andnew_value
pairs.
Enums§
- Node
- The concrete node type of
JellyfishMerkleTree
.
Traits§
- HasPreimage
- Defines the ability for a tree to look up the preimage of its key hashes.
- Tree
Reader - Defines the interface between a
JellyfishMerkleTree
and underlying storage holding nodes. - Tree
Writer - Defines the interface used to write a batch of updates from a
JellyfishMerkleTree
to the underlying storage holding nodes.
Type Aliases§
- Stale
Node Index Batch StaleNodeIndex
batch that will be written into db atomically with other batches.