pub struct ExecutionWitness {
pub state: Vec<Bytes>,
pub codes: Vec<Bytes>,
pub keys: Vec<Bytes>,
}Expand description
Represents the execution witness of a block. Contains an optional map of state preimages.
Fields§
§state: Vec<Bytes>List of all hashed trie nodes preimages that were required during the execution of the block, including during state root recomputation.
codes: Vec<Bytes>List of all contract codes (created / accessed) preimages that were required during the execution of the block, including during state root recomputation.
keys: Vec<Bytes>List of all hashed account and storage keys (addresses and slots) preimages (unhashed account addresses and storage slots, respectively) that were required during the execution of the block.
Trait Implementations§
Source§impl Clone for ExecutionWitness
impl Clone for ExecutionWitness
Source§fn clone(&self) -> ExecutionWitness
fn clone(&self) -> ExecutionWitness
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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
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>,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 36 bytes