Expand description
An integration of reth-trie with reth-db.
Macros§
- with_
adapter - Dispatches a trie operation using the correct
TrieKeyAdapterbased on storage settings.
Structs§
- Database
Account Trie Cursor - A cursor over the account trie.
- Database
Hashed Account Cursor - A struct wrapping database cursor over hashed accounts implementing
HashedCursorfor iterating over accounts. - Database
Hashed Cursor Factory - A struct wrapping database transaction that implements
HashedCursorFactory. - Database
Hashed Storage Cursor - The structure wrapping a database cursor for hashed storage and
a target hashed address. Implements
HashedCursorandHashedStorageCursorfor iterating over hashed storage. - Database
Storage Trie Cursor - A cursor over the storage tries stored in the database.
- Database
Trie Cursor Factory - Wrapper struct for database transaction implementing trie cursor factory trait.
- Database
Verifier - Checks the trie tables against the hashed state tables of a database, yielding an
Outputfor every inconsistency found. SeeVerifierfor details. - Legacy
KeyAdapter - Legacy (v1) nibble encoding: 1 nibble per byte, 65-byte subkeys.
- Packed
Accounts Trie - Packed-encoding view of the [
AccountsTrie] table. - Packed
KeyAdapter - Packed (v2) nibble encoding: 2 nibbles per byte, 33-byte subkeys.
- Packed
Storages Trie - Packed-encoding view of the [
StoragesTrie] table.
Traits§
- Database
Hashed Post State - Extends [
HashedPostStateSorted] with operations specific for working with a database transaction. - Database
Proof - Extends
Proofwith operations specific for working with a database transaction. - Database
State Root - Extends
StateRootwith operations specific for working with a database transaction. - Database
Storage Proof - Extends
StorageProofwith operations specific for working with a database transaction. - Database
Storage Root - Extends
StorageRootwith operations specific for working with a database transaction. - Storage
Trie Entry Like - Trait for storage trie entry types that carry a subkey and node.
- Trie
KeyAdapter - Trait abstracting nibble encoding for trie keys.
- Trie
Table Adapter - Maps a
TrieKeyAdapterto account and storage trie tables using its key and value types.
Functions§
- compute_
block_ trie_ changesets - Computes trie changesets for a block.
- compute_
range_ trie_ changesets - Computes aggregate trie changesets for an inclusive block range.
- hashed_
storage_ from_ reverts_ with_ provider - Initializes [
HashedStorage] from reverts using a provider. - load_
prefix_ sets_ with_ provider - Load prefix sets using a provider that implements
ChangeSetReader. This function can read changesets from both static files and database.