package secp256k1

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

Module Secp256k1.KeySource

Sourcetype secret
Sourcetype public
Sourcetype _ t = private
  1. | Sk : buffer -> secret t
  2. | Pk : buffer -> public t
Sourceval to_buffer : _ t -> buffer
Sourceval length : _ t -> int
Sourceval equal : 'a t -> 'a t -> bool
Sourceval copy : 'a t -> 'a t

Aritmetic operations

Sourceval negate : Context.t -> 'a t -> 'a t
Sourceval add_tweak : Context.t -> 'a t -> ?pos:int -> buffer -> 'a t
Sourceval mul_tweak : Context.t -> 'a t -> ?pos:int -> buffer -> 'a t
Sourceval neuterize : Context.t -> _ t -> public t option
Sourceval neuterize_exn : Context.t -> _ t -> public t
Sourceval combine : Context.t -> _ t list -> public t option
Sourceval combine_exn : Context.t -> _ t list -> public t

Input/Output

Sourceval read_sk : Context.t -> ?pos:int -> buffer -> (secret t, string) result
Sourceval read_sk_exn : Context.t -> ?pos:int -> buffer -> secret t
Sourceval read_pk : Context.t -> ?pos:int -> buffer -> (public t, string) result
Sourceval read_pk_exn : Context.t -> ?pos:int -> buffer -> public t
Sourceval write : ?compress:bool -> Context.t -> ?pos:int -> buffer -> _ t -> int
Sourceval to_bytes : ?compress:bool -> Context.t -> _ t -> buffer
OCaml

Innovation. Community. Security.