Mirage_crypto_ec.Ed25519Curve 25519 DSA, also known as Ed25519.
priv_of_octets buf decodes a private key from the buffer buf. If the provided data is invalid, an error is returned.
val priv_to_octets : priv -> stringpriv_to_octets p encode the private key p to a buffer.
pub_of_octets buf decodes a public key from the buffer buf. If the provided data is invalid, an error is returned.
val pub_to_octets : pub -> stringpub_to_octets p encodes the public key p into a buffer.
val generate : ?g:Mirage_crypto_rng.g -> unit -> priv * pubgenerate ~g () generates a key pair.
val sign : key:priv -> string -> stringsign ~key msg signs the message msg using the private key. The result is the concatenation of r and s, as specified in RFC 8032.
val verify : key:pub -> string -> msg:string -> boolverify ~key signature msg verifies the signature on the message msg with the public key. The return value is true if verification was successful, false otherwise.