pub trait StateTraitExt {
// Required methods
fn get_with_proof(
&self,
access_key: StorageKeyWithSpace<'_>,
) -> Result<(Option<Box<[u8]>>, StateProof)>;
fn get_node_merkle_all_versions<WithProof: StaticBool>(
&self,
access_key: StorageKeyWithSpace<'_>,
) -> Result<(NodeMerkleTriplet, NodeMerkleProof)>;
}
Required Methods§
fn get_with_proof( &self, access_key: StorageKeyWithSpace<'_>, ) -> Result<(Option<Box<[u8]>>, StateProof)>
Sourcefn get_node_merkle_all_versions<WithProof: StaticBool>(
&self,
access_key: StorageKeyWithSpace<'_>,
) -> Result<(NodeMerkleTriplet, NodeMerkleProof)>
fn get_node_merkle_all_versions<WithProof: StaticBool>( &self, access_key: StorageKeyWithSpace<'_>, ) -> Result<(NodeMerkleTriplet, NodeMerkleProof)>
Compute the merkle of the node under access_key
in all tries.
Node merkle is computed on the value and children hashes, ignoring the
compressed path.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.