From c4e1352b52575cff9a5414084bd19b414cb4c08e Mon Sep 17 00:00:00 2001 From: Magamedrasul Ibragimov Date: Sat, 17 Jun 2023 11:21:17 +0400 Subject: [PATCH] fix: add dummy constraint for unused input --- circuits/withdraw.circom | 3 +++ 1 file changed, 3 insertions(+) diff --git a/circuits/withdraw.circom b/circuits/withdraw.circom index a2051ea..bde3da2 100644 --- a/circuits/withdraw.circom +++ b/circuits/withdraw.circom @@ -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(); \ No newline at end of file