File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -27,8 +27,8 @@ export default async function generateProof(
27
27
snarkArtifacts ?: SnarkArtifacts
28
28
) : Promise < SemaphoreProof > {
29
29
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
32
32
33
33
treeDepth ??= merkleProofLength
34
34
@@ -41,10 +41,10 @@ export default async function generateProof(
41
41
// The index must be converted to a list of indices, 1 for each tree level.
42
42
// The missing siblings can be set to 0, as they won't be used in the circuit.
43
43
const treeIndices = [ ]
44
- const treeSiblings = merkeProof . siblings
44
+ const treeSiblings = merkleProof . siblings
45
45
46
46
for ( let i = 0 ; i < treeDepth ; i += 1 ) {
47
- treeIndices . push ( ( merkeProof . index >> i ) & 1 )
47
+ treeIndices . push ( ( merkleProof . index >> i ) & 1 )
48
48
49
49
if ( treeSiblings [ i ] === undefined ) {
50
50
treeSiblings [ i ] = "0"
You can’t perform that action at this time.
0 commit comments