Skip to content

Instantly share code, notes, and snippets.

@gabrocheleau
Created June 20, 2020 02:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gabrocheleau/edc20cb2265ed88e6b176e211b7c7356 to your computer and use it in GitHub Desktop.
Save gabrocheleau/edc20cb2265ed88e6b176e211b7c7356 to your computer and use it in GitHub Desktop.
Markdium-Ethereum's Merkle Patricia Trees
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