We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow anyone to index regex matched groups as they normally would, map that to the relevant ispublic/isprivate states, then expose that automatically.
This will be needed for good UX and Javascript dev compatibility.
The text was updated successfully, but these errors were encountered:
Proposal for Implementing Match Group Exposure in ZK Regex Circuits
Implement a new function in packages/compiler/src/regex.rs:
packages/compiler/src/regex.rs
fn parse_regex_with_match_groups(regex: &str, public_groups: &[String]) -> DecomposedRegexConfig
Update genFromDecomposed in packages/compiler/src/wasm.rs to accept regex with groups:
genFromDecomposed
packages/compiler/src/wasm.rs
pub fn genFromDecomposed(regex: &str, public_groups: &[String], circomTemplateName: &str) -> String
Modify process_public_regex in packages/compiler/src/regex.rs to handle group structure.
process_public_regex
Add tests in packages/circom/tests/ for the new functionality.
packages/circom/tests/
Update CLI in packages/compiler/src/main.rs to support the new input format.
packages/compiler/src/main.rs
Sorry, something went wrong.
No branches or pull requests
Allow anyone to index regex matched groups as they normally would, map that to the relevant ispublic/isprivate states, then expose that automatically.
This will be needed for good UX and Javascript dev compatibility.
The text was updated successfully, but these errors were encountered: