Skip to content
New issue

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

feat: Add Wasm Bindings #62

Merged
merged 31 commits into from
Mar 22, 2024
Merged

feat: Add Wasm Bindings #62

merged 31 commits into from
Mar 22, 2024

Conversation

Bisht13
Copy link
Member

@Bisht13 Bisht13 commented Mar 22, 2024

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;

Copy link

socket-security bot commented Mar 22, 2024

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↗︎

@Bisht13 Bisht13 merged commit d1ef521 into main Mar 22, 2024
4 checks passed
@Bisht13 Bisht13 deleted the wasm-bindings branch March 22, 2024 22:47
SoraSuegami added a commit that referenced this pull request Mar 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants