Skip to content

Commit 406bbc4

Browse files
committed
fix(proof): set correct var name
1 parent c2f12d6 commit 406bbc4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/proof/src/generate-proof.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ export default async function generateProof(
2727
snarkArtifacts?: SnarkArtifacts
2828
): Promise<SemaphoreProof> {
2929
const leafIndex = group.indexOf(identity.commitment)
30-
const merkeProof = group.generateMerkleProof(leafIndex)
31-
const merkleProofLength = merkeProof.siblings.length
30+
const merkleProof = group.generateMerkleProof(leafIndex)
31+
const merkleProofLength = merkleProof.siblings.length
3232

3333
treeDepth ??= merkleProofLength
3434

@@ -41,10 +41,10 @@ export default async function generateProof(
4141
// The index must be converted to a list of indices, 1 for each tree level.
4242
// The missing siblings can be set to 0, as they won't be used in the circuit.
4343
const treeIndices = []
44-
const treeSiblings = merkeProof.siblings
44+
const treeSiblings = merkleProof.siblings
4545

4646
for (let i = 0; i < treeDepth; i += 1) {
47-
treeIndices.push((merkeProof.index >> i) & 1)
47+
treeIndices.push((merkleProof.index >> i) & 1)
4848

4949
if (treeSiblings[i] === undefined) {
5050
treeSiblings[i] = "0"

0 commit comments

Comments
 (0)