package tezos-hacl

  1. Overview
  2. Docs
type _ key
val size : int
val pk_size : int
val sk_size : int
val compare : 'a key -> 'a key -> int
val equal : 'a key -> 'a key -> bool
val sk_of_bytes : Bytes.t -> secret key option
val pk_of_bytes : Bytes.t -> public key option
val pk_of_bytes_without_validation : Bytes.t -> public key option
val neuterize : 'a key -> public key
val keypair : unit -> public key * secret key
val to_bytes : _ key -> Bytes.t
val blit_to_bytes : _ key -> ?pos:int -> Bytes.t -> unit
val sign : sk:secret key -> msg:Bytes.t -> Bytes.t
val verify : pk:public key -> msg:Bytes.t -> signature:Bytes.t -> bool
OCaml

Innovation. Community. Security.