Expand description
§Ed25519 to Curve25519 conversion
This module implements libsodium’s Ed25519 to Curve25519 conversion functions. You can use these functions when you want to sign messages with the same keys used to encrypt messages (i.e., using a public-key box).
Generally speaking, you should avoid signing and encrypting with the same keypair. Additionally, an encrypted box doesn’t need to be separately signed as it already includes a message authentication code.
Functions§
- crypto_
sign_ ed25519_ pk_ to_ curve25519 - Converts an Ed25519 public key
ed25519_public_keyinto an X25519 public key, placing the result intox25519_public_keyupon success. - crypto_
sign_ ed25519_ sk_ to_ curve25519 - Converts an Ed25519 secret key
ed25519_secret_keyinto an X25519 secret key key, placing the result intox25519_secret_key.