Sign.Secret_key
Secret keys.
Use keypair to generate one.
keypair
type t
The type for secret keys.
val length : int
length is the byte length of secret keys.
length
val equal : t -> t -> bool
equal sk sk' determines in constant time if sk and sk' are bytewise equal.
equal sk sk'
sk
sk'
val of_bytes : Bytes.t -> t
of_bytes b is a secret key from bytes b. Raises Invalid_argument if b's length differs from length.
of_bytes b
b
Invalid_argument
val to_bytes : t -> Bytes.t
to_bytes sk are the bytes of sk.
to_bytes sk
val pp : Stdlib.Format.formatter -> t -> unit
pp ppf sk is an unspecified formatter for secret keys.
pp ppf sk