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
)