Skip to content

Commit

Permalink
docs(imt): fix function names
Browse files Browse the repository at this point in the history
  • Loading branch information
cedoor committed Nov 27, 2023
1 parent 7bfb147 commit e37040b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/imt/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ const proof = tree.createProof(1)
tree.verifyProof(proof) // true

// You can also initialize a tree with a list of leaves.
new IMT(poseidon, depth, zeroValue, arity, [1, 2, 3])
new IMT(poseidon2, depth, zeroValue, arity, [1, 2, 3])
```

### LeanIMT ([doc](https://zkkit.pse.dev/classes/_zk_kit_lean-imt.LeanIMT.html))
Expand All @@ -138,7 +138,7 @@ tree.has(4n) // false

tree.update(1, 2n) // tree1.leaves -> [1n, 2n]

const proof = tree.createProof(1)
const proof = tree.generateProof(1)

tree.verifyProof(proof) // true

Expand Down

0 comments on commit e37040b

Please sign in to comment.