-
Notifications
You must be signed in to change notification settings - Fork 114
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
Compile to WASM + Bindings #4
Comments
EDIT: realized that these issues are both issues with dependencies assuming os-specific stuff. figuring out if there's an obvious workaround trying to compile proving with wasm-pack and running into issues compiling deps am digging deeper, but lmk if the solution is obvious as i'm not v. familiar with rust
|
approach I'm going with is extracting out all the wasm execution and just doing that in js. wasm-ing just the parts of this lib downstream of that |
@gakonst We got a verifier working on Rust based chains (NEAR). We are following a slightly different approach but I think the same can be applied here to compile to wasm. We are also using arkwork as the base layer. https://github.com/Electron-Labs/electron-rs |
that's just for parsing the types, the main issue we have here is the wasm witness generator unfortunately :( |
We were mostly interested in verifier on-chain and had no use case for witness generator on chain. |
We should make this lib compile to WASM and also provide bindings to it.
When using this library from the browser, the ideal JS API would be:
readZKeyAndWasm
prove
with the inputs in JS as a k-v objectverify
The text was updated successfully, but these errors were encountered: