You can use WebAssembly to make a synchronous WebCrypto-like API. Reportedly in some cases (for simple algorithms like digests on small inputs) such an implementation is faster than using the WebCrypto API, presumably b/c of the overhead of WebCrypto's async API.
-
-
I believe the old WebCrypto editor is working on other things, but a synchronous, worker-only interface sounds totally plausible. Create a WICG repo for it?
-
It was something explored but
@slightlylate was highly skeptical of due to things like scheduling and shared workers. Certainly the blink infra doesn’t exist as of last year, when we last (again) explores -
The design was made so that the promises could be synchronously resolved and async/await would handle any other grossness
-
C programs, Rust programs, etc. don't use async/await. They use sync APIs.
- 2 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.