Expand description
§kona-mpt
A recursive, in-memory implementation of Ethereum’s hexary Merkle Patricia Trie (MPT), supporting:
- Retrieval
- Insertion
- Deletion
- Root Computation
- Trie Node RLP Encoding
This implementation is intended to serve as a backend for a stateless executor of Ethereum blocks, like
the one in the kona-executor
crate. Starting with a trie root, the TrieNode
can be
unravelled to access, insert, or delete values. These operations are all backed by the TrieProvider
,
which enables fetching the preimages of hashed trie nodes.
Structs§
- Structure representing a sequence of nibbles.
- The default, no-op implementation of the TrieHinter trait, used for testing.
- The default, no-op implementation of the TrieProvider trait, used for testing.
- A OrderedListWalker allows for traversing over a Merkle Patricia Trie containing a derivable ordered list.
Enums§
- An error type for OrderedListWalker operations.
- A TrieNode is a node within a standard Ethereum Merkle Patricia Trie. In this implementation, keys are expected to be fixed-size nibble sequences, and values are arbitrary byte sequences.
- An error type for TrieNode operations.
Traits§
- The TrieHinter trait defines the synchronous interface for hinting the host to fetch trie node preimages.
- The TrieProvider trait defines the synchronous interface for fetching trie node preimages.
Functions§
- Compute a trie root of the collection of items with a custom encoder.
Type Aliases§
- A Result type alias where the error is OrderedListWalkerError.
- A Result type alias where the error is TrieNodeError.