Skip to content

Commit

Permalink
fix: add dummy constraint for unused input
Browse files Browse the repository at this point in the history
  • Loading branch information
curryrasul committed Jun 17, 2023
1 parent 3707313 commit c4e1352
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 c4e1352

Please sign in to comment.