Skip to content

Commit

Permalink
refactor(circuits): update variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
cedoor committed Dec 22, 2023
1 parent 9dfef69 commit c2f12d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/circuits/semaphore.circom
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ template Semaphore(MAX_DEPTH) {
var Ax, Ay;
(Ax, Ay) = BabyPbk()(privateKey);

var treeLeaf = Poseidon(2)([Ax, Ay]);
var identityCommitment = Poseidon(2)([Ax, Ay]);

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

// Dummy constraint to prevent compiler from optimizing it.
Expand Down

0 comments on commit c2f12d6

Please sign in to comment.