You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I touched upon this earlier in this comment but want to create a separate issue to explain context and discuss this problem.
I have successfully ported the gg18 example to webassembly using wasm-bindgen / wasm-bindgen-rayon and with a hack for Crypto.getRandomValues() we are generating keys and signing messages.
However, we have a use case for the WASM module that involves running it in a service worker as part of a browser extension but we are not permitted to use SharedArrayBuffer due to the Spectre mitigations so using multiple threads in webassembly is problematic for us.
I touched upon this earlier in this comment but want to create a separate issue to explain context and discuss this problem.
I have successfully ported the gg18 example to webassembly using
wasm-bindgen
/wasm-bindgen-rayon
and with a hack forCrypto.getRandomValues()
we are generating keys and signing messages.However, we have a use case for the WASM module that involves running it in a service worker as part of a browser extension but we are not permitted to use
SharedArrayBuffer
due to the Spectre mitigations so using multiple threads in webassembly is problematic for us.Looking at where
rayon
is used:We would need to update
centipede
,kzen-paillier
andzk-paillier
to support a single threaded feature that would disable the use ofrayon
.Given you know the code in those libraries much better than I do, how feasible/desirable would it be to add a single threaded feature?
Thanks as always for your help 🙏
The text was updated successfully, but these errors were encountered: