Module crypto_sign_ed25519

Source
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_key into an X25519 public key, placing the result into x25519_public_key upon success.
crypto_sign_ed25519_sk_to_curve25519
Converts an Ed25519 secret key ed25519_secret_key into an X25519 secret key key, placing the result into x25519_secret_key.

Type Aliases§

PublicKey
Type alias for an Ed25519 public key.
SecretKey
Type alias for an Ed25519 secret key with seed bytes.
Signature
Type alias for an Ed25519 signature.