reth_trie_db

Trait StateCommitment

Source
pub trait StateCommitment:
    Debug
    + Send
    + Sync
    + Unpin
    + 'static {
    type StateRoot<'a, TX: DbTx + 'a>: DatabaseStateRoot<'a, TX>;
    type StorageRoot<'a, TX: DbTx + 'a>: DatabaseStorageRoot<'a, TX>;
    type StateProof<'a, TX: DbTx + 'a>: DatabaseProof<'a, TX>;
    type StateWitness<'a, TX: DbTx + 'a>: DatabaseTrieWitness<'a, TX>;
    type KeyHasher: KeyHasher;
}
Expand description

The StateCommitment trait provides associated types for state commitment operations.

Required Associated Types§

Source

type StateRoot<'a, TX: DbTx + 'a>: DatabaseStateRoot<'a, TX>

The state root type.

Source

type StorageRoot<'a, TX: DbTx + 'a>: DatabaseStorageRoot<'a, TX>

The storage root type.

Source

type StateProof<'a, TX: DbTx + 'a>: DatabaseProof<'a, TX>

The state proof type.

Source

type StateWitness<'a, TX: DbTx + 'a>: DatabaseTrieWitness<'a, TX>

The state witness type.

Source

type KeyHasher: KeyHasher

The key hasher type.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§