0.1.0 • Published 4 years ago
@futuretense/ed25519-dalek v0.1.0
ed25519-dalek
Javascript bindings to some of the functionality in the brilliant Rust library ed25519-dalek
1
Requirements
- Rust (https://www.rust-lang.org/tools/install)
- a target CPU with AVX2 extensions
Installing and compiling
npm install @futuretense/ed25519-dalek
Benchmarks
ed255192 | sodium-native3 | dalek | dalek w/ AVX2 | |
---|---|---|---|---|
Generate | 41,565 | 23,172 | 25,099 | 23,861 |
Sign | 43,173 | 24,548 | 26,873 | 25,565 |
Verify | 121,710 | 75,394 | 73,841 | 46,266 |
Time in ms; 1,000,000 calls, on a 3GHz MBP
Notes:
1) https://github.com/dalek-cryptography/ed25519-dalek 2) https://www.npmjs.com/package/ed25519 3) https://www.npmjs.com/package/sodium-native