mopro
mopro copied to clipboard
Build wasm based npm package
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