Open mikeal opened 7 years ago
sodium-signatures
generate ed25519 key pair. sodium-encryption
generate curve25519 key pair.
You can use https://github.com/dchest/ed2curve-js to convert an ed25519 key pair to curve25519.
However, using different key pairs for encryption and signing is recommened.
@poga am I reading the post that you linked to incorrectly or does it actually say that it's fine to use the same keypair?
also, thanks for the link to ed2curve, that solves my problem entirely :)
Apparently there is a difference in key size between the keys generated by scalarMultiplicationKeyPair and what https://github.com/mafintosh/sodium-signatures needs for signatures. Is there a way to use the same keypair for encryption and signing with sodium?