pub fn crypto_sign_ed25519_pk_to_curve25519(
    x25519_public_key: &mut [u8; 32],
    ed25519_public_key: &PublicKey
) -> Result<(), Error>
Expand description

Converts an Ed25519 public key ed25519_public_key into an X25519 public key, placing the result into x25519_public_key upon success.

Compatible with libsodium’s crypto_sign_ed25519_pk_to_curve25519