We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e828b34 commit e3e83b7Copy full SHA for e3e83b7
crates/trie/sparse/src/trie.rs
@@ -69,6 +69,13 @@ impl SparseTrie {
69
}
70
71
/// The representation of revealed sparse trie.
72
+///
73
+/// ## Invariants
74
75
+/// - The root node is always present in `nodes` collection.
76
+/// - Each leaf entry in `nodes` collection must have a corresponding entry in `values` collection.
77
+/// The opposite is also true.
78
+/// - All keys in `values` collection are full leaf paths.
79
#[derive(PartialEq, Eq)]
80
pub struct RevealedSparseTrie {
81
/// All trie nodes.
0 commit comments