Skip to main content

Crate reth_trie_db

Crate reth_trie_db 

Source
Expand description

An integration of reth-trie with reth-db.

Macros§

with_adapter
Dispatches a trie operation using the correct TrieKeyAdapter based on storage settings.

Structs§

DatabaseAccountTrieCursor
A cursor over the account trie.
DatabaseHashedAccountCursor
A struct wrapping database cursor over hashed accounts implementing HashedCursor for iterating over accounts.
DatabaseHashedCursorFactory
A struct wrapping database transaction that implements HashedCursorFactory.
DatabaseHashedStorageCursor
The structure wrapping a database cursor for hashed storage and a target hashed address. Implements HashedCursor and HashedStorageCursor for iterating over hashed storage.
DatabaseStorageTrieCursor
A cursor over the storage tries stored in the database.
DatabaseTrieCursorFactory
Wrapper struct for database transaction implementing trie cursor factory trait.
DatabaseVerifier
Checks the trie tables against the hashed state tables of a database, yielding an Output for every inconsistency found. See Verifier for details.
LegacyKeyAdapter
Legacy (v1) nibble encoding: 1 nibble per byte, 65-byte subkeys.
PackedAccountsTrie
Packed-encoding view of the [AccountsTrie] table.
PackedKeyAdapter
Packed (v2) nibble encoding: 2 nibbles per byte, 33-byte subkeys.
PackedStoragesTrie
Packed-encoding view of the [StoragesTrie] table.

Traits§

DatabaseHashedPostState
Extends [HashedPostStateSorted] with operations specific for working with a database transaction.
DatabaseProof
Extends Proof with operations specific for working with a database transaction.
DatabaseStateRoot
Extends StateRoot with operations specific for working with a database transaction.
DatabaseStorageProof
Extends StorageProof with operations specific for working with a database transaction.
DatabaseStorageRoot
Extends StorageRoot with operations specific for working with a database transaction.
StorageTrieEntryLike
Trait for storage trie entry types that carry a subkey and node.
TrieKeyAdapter
Trait abstracting nibble encoding for trie keys.
TrieTableAdapter
Maps a TrieKeyAdapter to 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.