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<B256HashMap<Bytes>, TrieWitnessError>;
}
Expand description
Extends [TrieWitness
] with operations specific for working with a database transaction.
Required Methods§
Sourcefn overlay_witness(
tx: &'a TX,
input: TrieInput,
target: HashedPostState,
) -> Result<B256HashMap<Bytes>, TrieWitnessError>
fn overlay_witness( tx: &'a TX, input: TrieInput, target: HashedPostState, ) -> Result<B256HashMap<Bytes>, 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.