Skip to content

Commit

Permalink
Added complicated example to the test
Browse files Browse the repository at this point in the history
  • Loading branch information
KyrylR committed Sep 7, 2024
1 parent 34b4bc2 commit a12dc21
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions data/Example1.circom
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ template nbits(a) {
i = out;
}
outA <== i;

component commitmentHash = Poseidon(2);
(commitmentHash.inputs[0], commitmentHash.inputs[1]) <== (nullifier, secret);
}

component main {public [in1]}= A();
Expand Down

0 comments on commit a12dc21

Please sign in to comment.