Created
June 20, 2020 02:52
-
-
Save gabrocheleau/edc20cb2265ed88e6b176e211b7c7356 to your computer and use it in GitHub Desktop.
Markdium-Ethereum's Merkle Patricia Trees
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var node2 = await trie._lookupNode(Buffer.from(node1.node._branches[3])) // Looking up the child node from its hash (using _lookupNode) | |
console.log(node2) // An extension node! | |
// RESULT | |
ExtensionNode { | |
_nibbles: [ 0, 3, 0, 3, 0 ], | |
_value: | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment