Election-Tech-Initiative / Election-Tech-Initiative/electionguard-core2
✨ Typescript WASM support web and service workers
- Dominant language
- C#
- Stars
- 14
- Forks
- 12
- PR merge metrics
- No merged PRs in 30d
Description
### Is there an existing issue for this?
- [X] I have searched the existing issues
### Suggestion
As a user i would like to be able to use precompute buffers and background ballot encryption so that i can provide a responsive experience for users.
In order to enable pthread we need to support service workers. There is built-in support in emscripten and it needs to be enabled in the `./src/electionguard/wasm/CMakeLists.txt` file. A .wasm file is exported along with a *.worker.js. we should package these artifacts using webpack and break out the node vs browser versions so that we can reduce the size of the payload forbrowsers. Finally, we need to enable the web worker using a clear instantiation paradigm.
special consideration should be given to demonstrating how to do the background processing as part of the `angular-demo`
### Possible Implementation
_No response_
### Anything else?
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.