Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
Ed25519, as defined by RFC 8032.
val priv : Cstruct.t -> priv
priv p
generates a private key from p
, which must be 32 byte long.
val encode_priv : priv -> Cstruct.t
encode_priv p
is the private key encoded into a buffer.
val priv_to_public : priv -> Cstruct.t
priv_to_public p
outputs the public key of p
.
val sign : priv -> Cstruct.t -> Cstruct.t
sign priv msg
signs msg
with priv
.