zkemail / zk-regex

A library to do regex verification in circom, adapted from the original zk-email. It additionally generates lookup tables for halo2-regex.
GNU General Public License v3.0
79 stars 27 forks source link

feat: Add Wasm Bindings #62

Closed Bisht13 closed 7 months ago

Bisht13 commented 7 months ago

Remove neon and add wasm instead. Exposed 4 functions from the compiler for passing tests and using the compiler for zk regex ui.

* @param {string} decomposed_regex_json
* @param {string} circom_template_name
* @returns {string}
*/
export function gen_from_decomposed_memory(decomposed_regex_json: string, circom_template_name: string): string;
/**
* @param {string} raw_regex
* @param {string} substrs_json
* @param {string} circom_template_name
* @returns {string}
*/
export function gen_from_raw_memory(raw_regex: string, substrs_json: string, circom_template_name: string): string;
/**
* @param {any} decomposed_regex
* @returns {any}
*/
export function gen_regex_and_dfa(decomposed_regex: any): any;
/**
* @param {any} decomposed_regex
* @param {string} circom_template_name
* @returns {string}
*/
export function gen_circom(decomposed_regex: any, circom_template_name: string): string;
socket-security[bot] commented 7 months ago

Removed dependencies detected. Learn more about Socket for GitHub ↗︎

🚮 Removed packages: npm/@mapbox/node-pre-gyp@1.0.11, npm/cargo-cp-artifact@0.1.8

View full report↗︎