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 of_bytes : Context.t -> ?pos:int -> buffer -> t option
val of_bytes_exn : Context.t -> ?pos:int -> buffer -> t

Verify an ECDSA secret key. Buffer must be 32 bytes long.

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

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

OCaml

Innovation. Community. Security.