Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@cryptosat/private-voting
Advanced tools
This library implements an API for running privacy-preserving ballots. The library can be compiled to WASM, making it suitable for use within a browser application (for Cryptosim), as well as part of the flight software.
This library implements an API for running privacy-preserving ballots. The library can be compiled to WASM, making it suitable for use within a browser application (for Cryptosim), as well as part of the flight software.
Prerequisites include
cargo
wasm-pack
cargo
can be installed using rustup
. Follow the installation instructions on https://www.rust-lang.org/tools/install.
Once cargo
is installed, wasm-pack
can be installed by running
$ cargo install wasm-pack
To run the unit tests, execute
$ cargo test
To build the WASM target and its JS bindings, run
$ wasm-pack build --target web
The WASM target and JS bindings will then be placed in a pkg
directory.
To run unit tests in a browser, execute
$ wasm-pack test --chrome
To test calling the compiled WASM from Javascript code, there is a simple HTML under the html
directory, named test.html
. It has to be served over HTTP and not just opened directly as a file in the browser, since otherwise, CORS policies will block importing the Javascript file with the WASM bindings.
To build the documentation for the private_voting
library, execute
$ cargo doc
which outputs the documentation in HTML format under target/doc
.
Run the following commands
$ wasm-pack build --scope <organization>
$ wasm-pack login
$ cd pkg
$ npm publish --access public
FAQs
This library implements an API for running privacy-preserving ballots. The library can be compiled to WASM, making it suitable for use within a browser application (for Cryptosim), as well as part of the flight software.
The npm package @cryptosat/private-voting receives a total of 4 weekly downloads. As such, @cryptosat/private-voting popularity was classified as not popular.
We found that @cryptosat/private-voting demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.