Skip to content

Commit

Permalink
assert selector_older_than is == 1 | 0
Browse files Browse the repository at this point in the history
  • Loading branch information
remicolin committed Sep 23, 2024
1 parent 64ac277 commit 0b67347
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions circuits/circuits/disclose/disclose.circom
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ template DISCLOSE() {
selector_dg1[i] * (selector_dg1[i] - 1) === 0;
}

// assert selector_older_than is 0 or 1
selector_older_than * (selector_older_than - 1) === 0;

signal revealedData[88];
for (var i = 0; i < 88; i++) {
revealedData[i] <== dg1[5+i] * selector_dg1[i];
Expand Down

0 comments on commit 0b67347

Please sign in to comment.