Skip to content

Commit

Permalink
Restrict Num2Bits to 248 bits in cutId
Browse files Browse the repository at this point in the history
  • Loading branch information
OBrezhniev committed Apr 17, 2024
1 parent da072fa commit 9f81ef6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions circuits/lib/utils/idUtils.circom
Original file line number Diff line number Diff line change
Expand Up @@ -181,10 +181,10 @@ template cutId() {
signal input in;
signal output out;

signal idBits[254] <== Num2Bits_strict()(in);
signal idBits[248] <== Num2Bits(248)(in);

component cut = Bits2Num(216);
for (var i=16; i<256-16-8; i++) {
for (var i=16; i<248-16; i++) {
cut.in[i-16] <== idBits[i];
}
out <== cut.out;
Expand Down

0 comments on commit 9f81ef6

Please sign in to comment.