Skip to content

slowli/ed25519-quirks

Repository files navigation

Ed25519 Quirks

Build status Live website License: Apache-2.0

Single-page web app demonstrating some of Ed25519 peculiarities. Built with the Rust/WASM toolchain and Vue.

Running locally

You will need to install a Node / npm toolchain (preferably via a manager like nvm) and a Rust toolchain (preferably via rustup). Both toolchains should be recent; i.e., Node 20-LTS and Rust 1.75+. You should also install wasm-pack.

To (re)build the WASM file and its JS bindings, execute

npm run build:wasm

To serve the app locally with the Webpack dev server, run

npm start

(You may need to build WASM first, it's not done automatically.)

Testing

To run tests, use npm run test:js (for front-end tests) and npm run test:wasm (for WASM tests). Be aware that the test-wasm command requires specifying browsers used for testing as flags (e.g., -- --firefox).

Consult package.json for the full list of linting and testing commands. Note that Rust-related linting requires additional components (fmt and clippy) installed as a part of the relevant toolchain.

License

Licensed under Apache-2.0 license.