From 7afa810ac347b235214ccdc12f83f670de432456 Mon Sep 17 00:00:00 2001 From: SoraSuegami Date: Tue, 28 May 2024 20:25:12 +0900 Subject: [PATCH] Fix SelectRegexReveal --- packages/circuits/utils/regex.circom | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/circuits/utils/regex.circom b/packages/circuits/utils/regex.circom index efddce28..68edbd7f 100644 --- a/packages/circuits/utils/regex.circom +++ b/packages/circuits/utils/regex.circom @@ -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];