-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #68 from zkemail/feat/fix-email-addr-regex
Fixing email address and domain regexes.
- Loading branch information
Showing
24 changed files
with
615 additions
and
263 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
{ | ||
"parts": [ | ||
{ | ||
"is_public": false, | ||
"regex_def": "((\r\n)|^)from:" | ||
}, | ||
{ | ||
"is_public": true, | ||
"regex_def": "[^\r\n]+" | ||
}, | ||
{ | ||
"is_public": false, | ||
"regex_def": "\r\n" | ||
} | ||
] | ||
} | ||
"parts": [ | ||
{ | ||
"is_public": false, | ||
"regex_def": "(\r\n|^)from:" | ||
}, | ||
{ | ||
"is_public": true, | ||
"regex_def": "[^\r\n]+" | ||
}, | ||
{ | ||
"is_public": false, | ||
"regex_def": "\r\n" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
{ | ||
"parts": [ | ||
{ | ||
"is_public": false, | ||
"regex_def": "((\r\n)|^)to:" | ||
}, | ||
{ | ||
"is_public": true, | ||
"regex_def": "[^\r\n]+" | ||
}, | ||
{ | ||
"is_public": false, | ||
"regex_def": "\r\n" | ||
} | ||
] | ||
} | ||
"parts": [ | ||
{ | ||
"is_public": false, | ||
"regex_def": "(\r\n|^)to:" | ||
}, | ||
{ | ||
"is_public": true, | ||
"regex_def": "[^\r\n]+" | ||
}, | ||
{ | ||
"is_public": false, | ||
"regex_def": "\r\n" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,6 @@ | |
|
||
Circom circuits for regex verification in [zk-regex](https://github.com/zkemail/zk-regex/tree/main). | ||
This package contains circom circuits and decomposed regex definitions for common regexes in `./circuits/common` folder. | ||
|
||
|
||
## Note | ||
Our `email_domain_regex.circom` circuit cannot capture an email address that contains "@" in the name part before the domain part, e.g., "[email protected]@dummy.com", due to limitation of our circuit construction. For example, when "[email protected]@dummy.com" is given, that circuit outputs not "dummy.com" but "[email protected]" as an exposed substring for the domain. However, an adversary cannot exploit this feature to expose a fake domain since the true domain at the end will also be revealed along with it. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.