pub trait DatabaseTrieWitness<'a, TX> {
// Required methods
fn from_tx(tx: &'a TX) -> Self;
fn overlay_witness(
tx: &'a TX,
input: TrieInput,
target: HashedPostState,
) -> Result<HashMap<FixedBytes<32>, Bytes, FbBuildHasher<32>>, TrieWitnessError>;
}Available on crate features
trie and trie-db only.Expand description
Extends TrieWitness with operations specific for working with a database transaction.
Required Methods§
Sourcefn from_tx(tx: &'a TX) -> Self
fn from_tx(tx: &'a TX) -> Self
Create a new TrieWitness from database transaction.
Sourcefn overlay_witness(
tx: &'a TX,
input: TrieInput,
target: HashedPostState,
) -> Result<HashMap<FixedBytes<32>, Bytes, FbBuildHasher<32>>, TrieWitnessError>
fn overlay_witness( tx: &'a TX, input: TrieInput, target: HashedPostState, ) -> Result<HashMap<FixedBytes<32>, Bytes, FbBuildHasher<32>>, TrieWitnessError>
Generates trie witness for target state based on TrieInput.
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.