Open Divide-By-0 opened 9 months ago
Hi @Divide-By-0,
I would like to work on this issue. To ensure that the bits after themax_substr_len
are constrained to zero, I propose the following solution:
for (var i = max_substr_len; i < in_array_len; i++) {
assert(in[i] == 0, "Bit out of range must be 0");
}
Fix this line: https://github.com/zkemail/zk-email-verify/blob/03cf8c66472ce3ac177a0089c56c0e78481d3391/packages/circuits/helpers/extract.circom#L114