dchest / tweetnacl-js

Port of TweetNaCl cryptographic library to JavaScript
https://tweetnacl.js.org
The Unlicense
1.78k stars 294 forks source link

Use box.keyPair for XEdDSA / VXEdDSA signatures? #206

Closed zbo14 closed 3 years ago

zbo14 commented 4 years ago

I'm guessing this functionality is outside the scope of the package. Still wondering how one would go about doing this (mb requires other packages)?

dchest commented 4 years ago

Is XEdDSA the original signing scheme from Signal/Axolotl protocol? If so, here's a modified version that implements it: https://github.com/wavesplatform/curve25519-js

dchest commented 4 years ago

Alternatively, if you don't need the actual XEdDSA, but just want a single key pair for DH and signing, you can use signing key pair and convert it to box (DH) key pair using this package: https://github.com/dchest/ed2curve-js

zbo14 commented 4 years ago

@dchest Awesome thank you!