package secp256k1

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type t

Opaque type of a valid ECDSA secret key.

val length : int

Size of a secp256k1 secret key in bytes (32).

val compare : t -> t -> int
val read : Context.t -> ?pos:int -> buffer -> t option
val read_exn : Context.t -> ?pos:int -> buffer -> t

Verify an ECDSA secret key. At least 32 bytes must be read.

val write : buffer -> ?pos:int -> t -> unit

write buf ?pos key writes key at buf starting at pos.

val copy : t -> t
val to_bytes : t -> buffer
val negate : Context.t -> t -> t
val add_tweak : Context.t -> t -> ?pos:int -> buffer -> t
val mul_tweak : Context.t -> t -> ?pos:int -> buffer -> t
OCaml

Innovation. Community. Security.