Type Alias cfx_storage::StorageRootProof

source ·
pub type StorageRootProof = NodeMerkleProof;

Aliased Type§

struct StorageRootProof {
    pub delta_proof: Option<TrieProof>,
    pub intermediate_proof: Option<TrieProof>,
    pub snapshot_proof: Option<TrieProof>,
}

Fields§

§delta_proof: Option<TrieProof>§intermediate_proof: Option<TrieProof>§snapshot_proof: Option<TrieProof>

Implementations

source§

impl NodeMerkleProof

source

pub fn with_delta(&mut self, maybe_delta_proof: Option<TrieProof>) -> &mut Self

source

pub fn with_intermediate( &mut self, maybe_intermediate_proof: Option<TrieProof> ) -> &mut Self

source

pub fn with_snapshot( &mut self, maybe_snapshot_proof: Option<TrieProof> ) -> &mut Self

source

pub fn is_valid( &self, key: &Vec<u8>, storage_root: &StorageRoot, state_root: StateRoot, maybe_intermediate_padding: Option<DeltaMptKeyPadding> ) -> bool

Trait Implementations

source§

impl Encodable for NodeMerkleProof

source§

fn rlp_append(&self, stream: &mut RlpStream)

Append a value to the stream
§

fn rlp_bytes(&self) -> Vec<u8>

Get rlp-encoded bytes for this instance
source§

impl Default for NodeMerkleProof

source§

fn default() -> NodeMerkleProof

Returns the “default value” for a type. Read more
source§

impl Decodable for NodeMerkleProof

source§

fn decode(rlp: &Rlp<'_>) -> Result<Self, DecoderError>

Decode a value from RLP bytes
source§

impl Debug for NodeMerkleProof

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl StructuralPartialEq for NodeMerkleProof

source§

impl PartialEq for NodeMerkleProof

source§

fn eq(&self, other: &NodeMerkleProof) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Clone for NodeMerkleProof

source§

fn clone(&self) -> NodeMerkleProof

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more