Trait frame_support::traits::VerifyExistenceProof
source · pub trait VerifyExistenceProof {
type Proof;
type Hash;
// Required method
fn verify_proof(
proof: Self::Proof,
root: &Self::Hash,
) -> Result<Vec<u8>, DispatchError>;
}
Expand description
Something that can verify the existence of some data in a given proof.
Required Associated Types§
Required Methods§
sourcefn verify_proof(
proof: Self::Proof,
root: &Self::Hash,
) -> Result<Vec<u8>, DispatchError>
fn verify_proof( proof: Self::Proof, root: &Self::Hash, ) -> Result<Vec<u8>, DispatchError>
Verify the given proof
.
Ensures that the proof
was build for root
and returns the proved data.
Object Safety§
This trait is not object safe.