package secp256k1

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type t
type pubkey = string
type ecdsa_signature = string
type cflag =
  1. | CONTEXT_VERIFY
  2. | CONTEXT_SIGN
  3. | CONTEXT_SIGNVERIFY
  4. | CONTEXT_NONE
val context_create : cflag -> t
val context_destroy : t -> unit
val context_clone : t -> t
val context_randomize : t -> string -> t option
val ec_pubkey_create : t -> string -> pubkey option
val ecdsa_verify : t -> ecdsa_signature -> string -> pubkey -> bool
val ecdsa_sign : t -> string -> string -> ecdsa_signature option
OCaml

Innovation. Community. Security.