diff --git a/packages/circuits/utils/regex.circom b/packages/circuits/utils/regex.circom index dd7ef74b..1745a6f5 100644 --- a/packages/circuits/utils/regex.circom +++ b/packages/circuits/utils/regex.circom @@ -27,10 +27,6 @@ template SelectRegexReveal(maxArrayLen, maxRevealLen) { signal isPreviousZero[maxArrayLen]; signal isAboveMaxRevealLen[maxArrayLen]; - // Assert startIndex < maxArrayLen - signal isValidStartIndex <== LessThan(bitLength)([startIndex, maxArrayLen]); - isValidStartIndex === 1; - isPreviousZero[0] <== 1; for(var i = 0; i < maxArrayLen; i++) { isStartIndex[i] <== IsEqual()([i, startIndex]);