Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/zkemail/zk-regex into feat/…
Browse files Browse the repository at this point in the history
…update-regex-to-mindfa
  • Loading branch information
isidroamv committed Dec 12, 2023
2 parents 8528c72 + 1550233 commit c8f4847
Show file tree
Hide file tree
Showing 11 changed files with 759 additions and 560 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -116,4 +116,6 @@ Cargo.lock
packages/*/build

package-lock.json
yarn.lock
yarn.lock

packages/compiler/src/*.js
50 changes: 24 additions & 26 deletions packages/circom/circuits/common/email_addr_regex.circom
Original file line number Diff line number Diff line change
Expand Up @@ -158,34 +158,32 @@ template EmailAddrRegex(msg_bytes) {
and[3][i].b <== lt[5][i].out;
and[4][i] = AND();
and[4][i].a <== states[i][1];
multi_or[1][i] = MultiOR(27);
multi_or[1][i] = MultiOR(25);
multi_or[1][i].in[0] <== and[0][i].out;
multi_or[1][i].in[1] <== and[3][i].out;
multi_or[1][i].in[2] <== and[0][i].out;
multi_or[1][i].in[3] <== and[1][i].out;
multi_or[1][i].in[4] <== eq[0][i].out;
multi_or[1][i].in[5] <== eq[1][i].out;
multi_or[1][i].in[6] <== eq[2][i].out;
multi_or[1][i].in[7] <== eq[3][i].out;
multi_or[1][i].in[8] <== eq[4][i].out;
multi_or[1][i].in[9] <== eq[5][i].out;
multi_or[1][i].in[10] <== eq[6][i].out;
multi_or[1][i].in[11] <== eq[7][i].out;
multi_or[1][i].in[12] <== eq[8][i].out;
multi_or[1][i].in[13] <== eq[9][i].out;
multi_or[1][i].in[14] <== eq[10][i].out;
multi_or[1][i].in[15] <== eq[11][i].out;
multi_or[1][i].in[16] <== eq[12][i].out;
multi_or[1][i].in[17] <== eq[13][i].out;
multi_or[1][i].in[18] <== eq[14][i].out;
multi_or[1][i].in[19] <== eq[15][i].out;
multi_or[1][i].in[20] <== eq[16][i].out;
multi_or[1][i].in[21] <== eq[17][i].out;
multi_or[1][i].in[22] <== eq[18][i].out;
multi_or[1][i].in[23] <== eq[19][i].out;
multi_or[1][i].in[24] <== eq[20][i].out;
multi_or[1][i].in[25] <== eq[21][i].out;
multi_or[1][i].in[26] <== eq[22][i].out;
multi_or[1][i].in[2] <== eq[0][i].out;
multi_or[1][i].in[3] <== eq[1][i].out;
multi_or[1][i].in[4] <== eq[2][i].out;
multi_or[1][i].in[5] <== eq[3][i].out;
multi_or[1][i].in[6] <== eq[4][i].out;
multi_or[1][i].in[7] <== eq[5][i].out;
multi_or[1][i].in[8] <== eq[6][i].out;
multi_or[1][i].in[9] <== eq[7][i].out;
multi_or[1][i].in[10] <== eq[8][i].out;
multi_or[1][i].in[11] <== eq[9][i].out;
multi_or[1][i].in[12] <== eq[10][i].out;
multi_or[1][i].in[13] <== eq[11][i].out;
multi_or[1][i].in[14] <== eq[12][i].out;
multi_or[1][i].in[15] <== eq[13][i].out;
multi_or[1][i].in[16] <== eq[14][i].out;
multi_or[1][i].in[17] <== eq[15][i].out;
multi_or[1][i].in[18] <== eq[16][i].out;
multi_or[1][i].in[19] <== eq[17][i].out;
multi_or[1][i].in[20] <== eq[18][i].out;
multi_or[1][i].in[21] <== eq[19][i].out;
multi_or[1][i].in[22] <== eq[20][i].out;
multi_or[1][i].in[23] <== eq[21][i].out;
multi_or[1][i].in[24] <== eq[22][i].out;
and[4][i].b <== multi_or[1][i].out;
multi_or[2][i] = MultiOR(2);
multi_or[2][i].in[0] <== and[2][i].out;
Expand Down
Loading

0 comments on commit c8f4847

Please sign in to comment.