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
impl NodeMerkleProof
pub fn with_delta(&mut self, maybe_delta_proof: Option<TrieProof>) -> &mut Self
pub fn with_intermediate( &mut self, maybe_intermediate_proof: Option<TrieProof> ) -> &mut Self
pub fn with_snapshot( &mut self, maybe_snapshot_proof: Option<TrieProof> ) -> &mut Self
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
impl Encodable for NodeMerkleProof
source§impl Default for NodeMerkleProof
impl Default for NodeMerkleProof
source§fn default() -> NodeMerkleProof
fn default() -> NodeMerkleProof
Returns the “default value” for a type. Read more
source§impl Decodable for NodeMerkleProof
impl Decodable for NodeMerkleProof
source§impl Debug for NodeMerkleProof
impl Debug for NodeMerkleProof
impl StructuralPartialEq for NodeMerkleProof
source§impl PartialEq for NodeMerkleProof
impl PartialEq for NodeMerkleProof
source§fn eq(&self, other: &NodeMerkleProof) -> bool
fn eq(&self, other: &NodeMerkleProof) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Clone for NodeMerkleProof
impl Clone for NodeMerkleProof
source§fn clone(&self) -> NodeMerkleProof
fn clone(&self) -> NodeMerkleProof
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 more