pub fn prove_range_read_with_size_on_trie_backend<S, H>(
trie_backend: &TrieBackend<S, H>,
child_info: Option<&ChildInfo>,
prefix: Option<&[u8]>,
size_limit: usize,
start_at: Option<&[u8]>
) -> Result<(StorageProof, u32), Box<dyn Error>>where
S: TrieBackendStorage<H>,
H: Hasher,
H::Out: Ord + Codec,
Expand description
Generate range storage read proof on an existing trie backend.
Examples found in repository?
src/lib.rs (lines 922-928)
909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929
pub fn prove_range_read_with_size<B, H>(
backend: B,
child_info: Option<&ChildInfo>,
prefix: Option<&[u8]>,
size_limit: usize,
start_at: Option<&[u8]>,
) -> Result<(StorageProof, u32), Box<dyn Error>>
where
B: AsTrieBackend<H>,
H: Hasher,
H::Out: Ord + Codec,
{
let trie_backend = backend.as_trie_backend();
prove_range_read_with_size_on_trie_backend(
trie_backend,
child_info,
prefix,
size_limit,
start_at,
)
}