Function sp_state_machine::create_proof_check_backend
source · pub fn create_proof_check_backend<H>(
root: H::Out,
proof: StorageProof
) -> Result<TrieBackend<MemoryDB<H>, H>, Box<dyn Error>>where
H: Hasher,
H::Out: Codec,
Expand description
Create a backend used for checking the proof, using H
as hasher.
proof
and root
must match, i.e. root
must be the correct root of proof
nodes.