You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
trie: improve node typings and class architecture (#3708)
* trie: add RawNode types and replace EmbeddedNode type
* trie: implement new types in BranchNode class
* trie: improve extension and leaf node class architecture
* trie: small improvements
* trie: improve raw nodes comments
* trie: improve comments for raw nodes
// A raw node refers to the non-serialized, array form of the node
12
+
// A raw extension node is a 2-item node, where the first item is the encoded path to the next node, and the second item is the reference to the next node
13
+
// A raw leaf node is a 2-item node, where the first item is the remaining path to the leaf node, and the second item is the value
14
+
// To learn more: https://ethereum.org/en/developers/docs/data-structures-and-encoding/patricia-merkle-trie/#optimization
0 commit comments