Skip to content

Commit c0aae37

Browse files
committed
refactor(circuits): update variable name
1 parent adc25ed commit c0aae37

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/circuits/semaphore.circom

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ template Semaphore(MAX_DEPTH) {
1515
var Ax, Ay;
1616
(Ax, Ay) = BabyPbk()(privateKey);
1717

18-
var treeLeaf = Poseidon(2)([Ax, Ay]);
18+
var identityCommitment = Poseidon(2)([Ax, Ay]);
1919

20-
treeRoot <== BinaryMerkleRoot(MAX_DEPTH)(treeLeaf, treeDepth, treeIndices, treeSiblings);
20+
treeRoot <== BinaryMerkleRoot(MAX_DEPTH)(identityCommitment, treeDepth, treeIndices, treeSiblings);
2121
nullifier <== Poseidon(2)([scope, privateKey]);
2222

2323
// Dummy constraint to prevent compiler from optimizing it.

0 commit comments

Comments
 (0)