Javascript bindings to some of the functionality in the brilliant dalek cryptography
1 set of Rust libraries
- Rust (https://www.rust-lang.org/tools/install)
- a target CPU with AVX2 extensions
npm install @futuretense/dalek-crypto
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/
2) https://www.npmjs.com/package/ed25519
3) https://www.npmjs.com/package/sodium-native