Closed SoraSuegami closed 9 months ago
I'll certainly have a look. I apologize for the mistakes 😅
I've forked this branch and created a PR with a possible fix: https://github.com/zkemail/zk-regex/pull/32 Hope this helps 😄
Hi, just wanted to check on the state of this PR if it's okay to be merged into the main branch 😄
Thank you for updating the codes! Sorry for the late review.
console.log
and println
.packages/circom
with the new compiler, and all tests passed.@SneakY-NickY let us know if you can get this updated! We'd love to merge and send you a small grant for your efforts.
Got a bit busy this week 😅 I'll try to get this one done asap 😄
@SneakY-NickY let us know if you can get this updated! We'd love to merge and send you a small grant for your efforts.
Here's a PR that supports the optimizations done on the main branch 😄 https://github.com/zkemail/zk-regex/pull/34
@SneakY-NickY
Thank you for supporting the optimizations!
I checked that all tests in packages/circom/tests
passed with the circom circuits generated from your ts script.
However, the constraints in some circuits such as email_addr_regex.circom
are different from those on the main branch.
Could you debug why they are different?
@SneakY-NickY Thank you for supporting the optimizations! I checked that all tests in
packages/circom/tests
passed with the circom circuits generated from your ts script. However, the constraints in some circuits such asemail_addr_regex.circom
are different from those on the main branch. Could you debug why they are different?
I tried running fresh "yarn install" from main branch and ran tests both on feat/ts_to_js and main afterwards. The results were exactly the same and identical to current main branch.
However, when I tried running fresh "yarn install" from feat/ts_to_js branch and ran tests both on feat/ts_to_js and main again, the results were still exactly the same, but different from current main branch.
Perhaps this is caused by some dependency difference in this branch? As far as I can tell, this is not an issue caused by conversion from .js to .ts.
I found one problem in regex.ts. You modified the following parts to use a flat string instead of [string]. https://github.com/zkemail/zk-regex/blob/main/packages/compiler/src/regex.ts#L208-L297 However, each character can be represented as [string] if the character is an escape character.
@SneakY-NickY Could you modify the type definitions without changing the original logic in my code?
I modified some of your code to fix that problem, but it still has a compile error. https://github.com/zkemail/zk-regex/tree/feat/ts_to_js/packages/compiler