mopro icon indicating copy to clipboard operation
mopro copied to clipboard

Build wasm based npm package

Open chancehudson opened this issue 7 months ago • 1 comments

Problem

Our current app_config module supports building a static library for iOS, and for Android. We offer no support for javascript.

Details

We should add build logic for nodejs (e.g. cargo run --bin nodejs). This should build an npm package with javascript handles for controlling the wasm module.

Note that public key management should still be delegated outward. e.g. the application is responsible for passing the zkey path/data to the wasm function.

This is effectively a way to compile a faster alternative to snarkjs, though it's specific to each application.

Acceptance criteria

Add nodejs project in test-e2e, write bindings manually to start.

Next steps (optional)

Add url support to zkey in web Improve ark-zkey for web use

chancehudson avatar Jul 05 '24 04:07 chancehudson