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>>
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.