package sodium

  1. Overview
  2. Docs
type 'a key
type secret_key = secret key
type public_key = public key
type channel_key = channel key
type keypair = secret key * public key
type nonce
val primitive : string
val public_key_size : int
val secret_key_size : int
val channel_key_size : int
val nonce_size : int
val random_keypair : unit -> keypair
val random_nonce : unit -> nonce
val nonce_of_bytes : Bytes.t -> nonce
val increment_nonce : ?step:int -> nonce -> nonce
val wipe_key : 'a key -> unit
val precompute : secret key -> public key -> channel key
val equal_public_keys : public key -> public key -> bool
val equal_secret_keys : secret key -> secret key -> bool
val equal_channel_keys : channel key -> channel key -> bool
val compare_public_keys : public key -> public key -> int
module type S = sig ... end
module Bytes : sig ... end
module Bigbytes : sig ... end
OCaml

Innovation. Community. Security.