Mirage_crypto_ec.Ed25519SourceCurve 25519 DSA, also known as Ed25519.
The type for private keys.
The type for public keys.
priv_of_cstruct cs decodes a private key from the buffer cs. If the provided data is invalid, an error is returned.
priv_to_cstruct p encode the private key p to a buffer.
pub_of_cstruct cs decodes a public key from the buffer cs. If the provided data is invalid, an error is returned.
generate ~g () generates a key pair.
sign ~key msg signs the message msg using the private key. The result is the concatenation of r and s, as specified in RFC 8032.