Skip to main content

ExecutionWitness

Type Alias ExecutionWitness 

Source
pub type ExecutionWitness = ExecutionWitnessV1;
Available on crate features node-api and node only.
Expand description

Canonical execution witness for POST /payloads/witness.

Aliased Type§

pub struct ExecutionWitness {
    pub state: Vec<Vec<u8>>,
    pub codes: Vec<Vec<u8>>,
    pub headers: Vec<Vec<u8>>,
}

Fields§

§state: Vec<Vec<u8>>

Hashed trie-node preimages required during execution and state-root recomputation.

§codes: Vec<Vec<u8>>

Contract bytecode preimages created or accessed during execution.

§headers: Vec<Vec<u8>>

RLP-encoded ancestor headers used for pre-state and BLOCKHASH correctness proofs.

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: 72 bytes