Skip to content

Commit

Permalink
Merge pull request #12 from Rate-Limiting-Nullifier/auditFix
Browse files Browse the repository at this point in the history
fix: add dummy constraint for unused input
  • Loading branch information
curryrasul authored Jun 17, 2023
2 parents 3707313 + c4e1352 commit 18f6e0a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions circuits/withdraw.circom
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ template Withdraw() {
signal input address;

signal output identityCommitment <== Poseidon(1)([identitySecret]);

// Dummy constraint to prevent compiler optimizing it
signal addressHashed <== address * address;
}

component main { public [address] } = Withdraw();

0 comments on commit 18f6e0a

Please sign in to comment.