prf::crypto::Ed25519 class final

Ed25519 helper facade over Monocypher.

This wrapper keeps third-party API usage localized and exposes stable, project-local types.

Public static functions

static auto key_id(const Ed25519PublicKey& public_key, KeyId* out_key_id) -> bool
Computes 16-byte BLAKE2b fingerprint for public key.
static auto key_pair(IRandomSource& random, DeviceKeyPair* out_key_pair) -> bool
Generates key pair with provided entropy source.
static auto key_pair_from_seed(const Ed25519Seed& seed, DeviceKeyPair* out_key_pair) -> bool
Generates key pair from 32-byte seed.
static auto sign(const Ed25519SecretKey& secret_key, const uint8_t* message, size_t message_size, Ed25519Signature* out_signature) -> bool
Creates detached signature of message bytes.
static auto verify(const Ed25519PublicKey& public_key, const uint8_t* message, size_t message_size, const Ed25519Signature& signature) -> bool
Verifies detached signature of message bytes.