If trie consists of a single leaf node, no proofs would be collected if only non-existent prefixes are passed into proof retainer.
Example:
let mut builder =
HashBuilder::default().with_proof_retainer(vec![Nibbles::from_nibbles(&[0x01])]);
builder.add_leaf(Nibbles::from_nibbles(&[0x00]), &[0x00]);
let _ = builder.root();
// Empty but should include root node
assert!(builder.take_proofs().is_empty());
If trie consists of a single leaf node, no proofs would be collected if only non-existent prefixes are passed into proof retainer.
Example: