-
Notifications
You must be signed in to change notification settings - Fork 50
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: Minimal in-browser compatibility for the crate #149
Conversation
This changes the associated type `Params` of the `CircomFCircuit` to use the newly created `PathOrBin` type. This allows the user of the lib to directly send the binary of the files already read or instead, provide a path to it and let `sonobe` do the work. With this, Circom should be already usable from the browser if we allow JS to take care of reading the `.wasm` and `.r1cs` files.
Submitted 3e2f8fc Will work on the top of the rev for the time being. But not merge until we have it all working and merged. |
This commit temporarilly stands on top of dmpierre/arkworks_backend#1 referenced as `rev`. This changes the associated type `Params` of the `CircomFCircuit` to use the newly created `PathOrBin` type. This allows the user of the lib to directly send the binary of the files already read or instead, provide a path to it and let `sonobe` do the work. With this, Noir should be already usable from the browser if we allow JS to take care of reading the `circuit.json` files
This is awaiting feedback from @czhang2718 and @janabel to see if with this is feasible and decently OK to use the crate compiled to WASM from the browser. |
Got confirmation 0XPARC team that WASM is working. So this is good to go! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work, excited for finally having wasm compilation!
This changes the associated type
Params
of theXXXFCircuit
to usethe newly created
PathOrBin
type.This allows the user of the lib to directly send the binary of the files
already read or instead, provide a path to it and let
sonobe
do thework.
With this, Circom and Noir frontends should be already usable from the browser if we allow
JS to take care of reading the
.wasm
and.r1cs
files.This currently depends on: