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§
Sourcetype StateRoot<'a, TX: DbTx + 'a>: DatabaseStateRoot<'a, TX>
type StateRoot<'a, TX: DbTx + 'a>: DatabaseStateRoot<'a, TX>
The state root type.
Sourcetype StorageRoot<'a, TX: DbTx + 'a>: DatabaseStorageRoot<'a, TX>
type StorageRoot<'a, TX: DbTx + 'a>: DatabaseStorageRoot<'a, TX>
The storage root type.
Sourcetype StateProof<'a, TX: DbTx + 'a>: DatabaseProof<'a, TX>
type StateProof<'a, TX: DbTx + 'a>: DatabaseProof<'a, TX>
The state proof type.
Sourcetype StateWitness<'a, TX: DbTx + 'a>: DatabaseTrieWitness<'a, TX>
type StateWitness<'a, TX: DbTx + 'a>: DatabaseTrieWitness<'a, TX>
The state witness 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.