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

Wasm version #18

Closed
paulmillr opened this issue Dec 2, 2020 · 8 comments
Closed

Wasm version #18

paulmillr opened this issue Dec 2, 2020 · 8 comments

Comments

@paulmillr
Copy link

Would be great to be able to run the lib in browser

@dapplion
Copy link
Contributor

dapplion commented Dec 2, 2020

I know! There's an effort to get WASM working but requires quite a lot of work and it's not a priority at the moment

@nazarhussain
Copy link

@paulmillr You can try using this for the browsers https://github.com/ChainSafe/bls

@paulmillr
Copy link
Author

@nazarhussain blst is reference bls implementation that was thoroughly audited

You're suggesting to use herumi/bls, which does not have these properties & much slower

@nazarhussain
Copy link

I suggested for browser use. And any browser compatible implementation will be slower than BLS which is most of assembly language implementation.

@paulmillr
Copy link
Author

I have developed pure-javascript bls library one year ago. The goal here is not to use "something" in browser, it is to use blst in browser.

@dapplion
Copy link
Contributor

dapplion commented Jun 8, 2021

I suggested for browser use. And any browser compatible implementation will be slower than BLS which is most of assembly language implementation.

BLST should be compilable to WASM, but we have no bandwidth to make that happen now

@bryanchriswhite
Copy link

bryanchriswhite commented Jun 4, 2022

I've been working on this for a bit and thought I would share: fetchai#1. It's not my top priority but I'm anxious to be done and I've been grinding on it in-between other tasks. My first goal was to get the bindings tests passing in the browser.

@matthewkeil
Copy link
Member

Browser support is provided via https://github.com/supranational/blst/tree/master/bindings/emscripten and also via https://github.com/ChainSafe/bls . This repos now hosts napi async bindings for multi-threaded verification and is node specific. There is some discussion about building multi-threaded wasm or emscripten bindings but that is still a future "wish list" thing. Closing this issue

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

No branches or pull requests

5 participants