crypto_from_ed25519_private,
crypto_from_ed25519_public —
conversion of key pairs for EdDSA with BLAKE2b to
X25519 key pairs
#include
<monocypher-ed25519.h>
void
crypto_from_ed25519_private(
uint8_t
x25519[32],
const uint8_t eddsa[32]);
void
crypto_from_ed25519_public(
uint8_t
x25519[32],
const uint8_t eddsa[32]);
These functions work like
crypto_from_eddsa_private(3monocypher)
and
crypto_from_eddsa_public(3monocypher),
except that they operate on Ed25519 key pairs rather than key pairs for EdDSA
with BLAKE2b. Please see the documentation for those functions for details.
crypto_from_ed25519_public() is actually
implemented as a macro that aliases to
crypto_from_eddsa_public(3monocypher).
The
crypto_from_ed25519_private() and
crypto_from_ed25519_public() functions first
appeared in Monocypher 3.1.0.