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: Support WASM module imports from in-memory binary #3

Merged
merged 1 commit into from
Aug 22, 2024

Conversation

CPerezz
Copy link

@CPerezz CPerezz commented Aug 21, 2024

As discussed in arkworks-rs#72 it's not currently possible to load parameters from their binary.

This would help a lot in browser envoiroments where JS can take care of handling the read and we just open the door in the WASM module to allow to load new ones from the bytes read.

The commit adds a change in the tests which now load from binary instead of reading from file. This ensures that the reading is indeed working as expected although we rely on a different fn from wasmer.

Closes arkworks-rs#72

As discussed in arkworks-rs#72
it's not currently possible to load parameters from their binary.

This would help a lot in browser envoiroments where JS can take care of
handling the read and we just open the door in the WASM module to allow
to load new ones from the bytes read.

The commit adds a change in the tests which now load from binary instead
of reading from file. This ensures that the reading is indeed working as
expected although we rely on a different fn from `wasmer`.

Closes arkworks-rs#72
@CPerezz
Copy link
Author

CPerezz commented Aug 21, 2024

cc: @arnaucube

Copy link
Owner

@arnaucube arnaucube left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!!

@arnaucube arnaucube merged commit 74afb0a into arnaucube:master Aug 22, 2024
@CPerezz CPerezz deleted the feat/browser_witness_calc branch August 23, 2024 11:08
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.

WasmCalculator can only be created with FS access
2 participants