Function sp_runtime::proving_trie::base2::verify_proof
source · pub fn verify_proof<Hashing, Key, Value>(
root: &Hashing::Out,
proof: &[u8],
key: &Key,
value: &Value,
) -> Result<(), DispatchError>where
Hashing: Hasher,
Hashing::Out: Decode,
Key: Encode + Decode,
Value: Encode + Decode,
Expand description
Verify the existence of key
and value
in a given trie root and proof.