update Readme

This commit is contained in:
smart_ex 2022-03-29 18:37:37 +10:00
parent ec56e449f7
commit 22e923c469

@ -40,8 +40,7 @@ console.log(path)
const treeEdge = tree.getTreeEdge(2) const treeEdge = tree.getTreeEdge(2)
const partialTree = new PartialMerkleTree(10, treeEdge, tree.elements.slice(treeEdge.edgeIndex)) const partialTree = new PartialMerkleTree(10, treeEdge, tree.elements.slice(treeEdge.edgeIndex))
console.log(partialTree.elements) console.log(partialTree.elements)
// output // [<2 empty items >, 3, 42, 5, 6]
[<2 empty items >, 3, 42, 5, 6]
const proofPath = partialTree.proof(3) const proofPath = partialTree.proof(3)
console.log(proofPath) console.log(proofPath)