Skip to content

Commit

Permalink
Fix SelectRegexReveal
Browse files Browse the repository at this point in the history
  • Loading branch information
SoraSuegami committed May 28, 2024
1 parent 4626ff5 commit 7afa810
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/circuits/utils/regex.circom
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ template SelectRegexReveal(maxArrayLen, maxRevealLen) {

signal output out[maxRevealLen];

var bitLength = log2Ceil(maxArrayLen);
var bitLength = log2Ceil(maxArrayLen + maxRevealLen - 1);

signal isStartIndex[maxArrayLen];
signal isZero[maxArrayLen];
Expand Down

0 comments on commit 7afa810

Please sign in to comment.