mirror of
https://github.com/zkemail/zk-regex.git
synced 2026-01-09 21:58:10 -05:00
feat/cli-circuit-name
zk-regex
A library to do regex verification in circom, adapted from the original zk-email. Hopefully will add halo2 soon as well.
yarn install
yarn compile "abc (a|b|c)+" test_circuit
The compilation command generates a circom file at build/compiled.circom. This code is a JS adaptation of the Python regex-to-circom work done at https://github.com/zk-email-verify/zk-email-verify/tree/main/regex_to_circom .
Languages
Circom
53.6%
JavaScript
23.6%
Rust
15.6%
TypeScript
7.2%