pub struct ExecutionWitness {
pub state: B256HashMap<Bytes>,
pub codes: B256HashMap<Bytes>,
pub keys: B256HashMap<Bytes>,
}
Expand description
Represents the execution witness of a block. Contains an optional map of state preimages.
Fields§
§state: B256HashMap<Bytes>
Map of all hashed trie nodes to their preimages that were required during the execution of the block, including during state root recomputation.
keccak(rlp(node)) => rlp(node)
codes: B256HashMap<Bytes>
Map of all contract codes (created / accessed) to their preimages that were required during the execution of the block, including during state root recomputation.
keccak(bytecodes) => bytecodes
keys: B256HashMap<Bytes>
Map of all hashed account and storage keys (addresses and slots) to their preimages (unhashed account addresses and storage slots, respectively) that were required during the execution of the block. during the execution of the block.
keccak(address|slot) => address|slot
Trait Implementations§
source§impl Clone for ExecutionWitness
impl Clone for ExecutionWitness
source§fn clone(&self) -> ExecutionWitness
fn clone(&self) -> ExecutionWitness
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ExecutionWitness
impl Debug for ExecutionWitness
source§impl Default for ExecutionWitness
impl Default for ExecutionWitness
source§fn default() -> ExecutionWitness
fn default() -> ExecutionWitness
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for ExecutionWitness
impl<'de> Deserialize<'de> for ExecutionWitness
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for ExecutionWitness
impl PartialEq for ExecutionWitness
source§impl Serialize for ExecutionWitness
impl Serialize for ExecutionWitness
impl Eq for ExecutionWitness
impl StructuralPartialEq for ExecutionWitness
Auto Trait Implementations§
impl Freeze for ExecutionWitness
impl RefUnwindSafe for ExecutionWitness
impl Send for ExecutionWitness
impl Sync for ExecutionWitness
impl Unpin for ExecutionWitness
impl UnwindSafe for ExecutionWitness
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)