pub fn read_proof_check_on_proving_backend<H>(
    proving_backend: &TrieBackend<MemoryDB<H>, H>,
    key: &[u8]
) -> Result<Option<Vec<u8>>, Box<dyn Error>>where
    H: Hasher,
    H::Out: Ord + Codec,
Expand description

Check storage read proof on pre-created proving backend.

Examples found in repository?
src/lib.rs (line 1054)
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
	pub fn read_proof_check<H, I>(
		root: H::Out,
		proof: StorageProof,
		keys: I,
	) -> Result<HashMap<Vec<u8>, Option<Vec<u8>>>, Box<dyn Error>>
	where
		H: Hasher + 'static,
		H::Out: Ord + Codec,
		I: IntoIterator,
		I::Item: AsRef<[u8]>,
	{
		let proving_backend = create_proof_check_backend::<H>(root, proof)?;
		let mut result = HashMap::new();
		for key in keys.into_iter() {
			let value = read_proof_check_on_proving_backend(&proving_backend, key.as_ref())?;
			result.insert(key.as_ref().to_vec(), value);
		}
		Ok(result)
	}