We also rely on reading the image as a stream to display the progress bar, which is really important since the whole verification takes close to 1 minute.
We might be able to speed up the computation by using WebAssembly.
The requirements for this work would be:
- To fallback to Forge is WebAssembly is unavailable. For example, WebAssembly in the "Safer" security level of Tor Browser, while the verification with Forge works at this security level.
- To build reproducibly. So we can trust the binary build.