Function trie_db::proof::generate_proof
source ยท pub fn generate_proof<'a, D, L, I, K>(
db: &D,
root: &TrieHash<L>,
keys: I,
) -> Result<Vec<Vec<u8>>, TrieHash<L>, CError<L>>where
D: HashDBRef<L::Hash, DBValue>,
L: TrieLayout,
I: IntoIterator<Item = &'a K>,
K: 'a + AsRef<[u8]>,
Expand description
Generate a compact proof for key-value pairs in a trie given a set of keys.
Assumes inline nodes have only inline children.