package conex

  1. Overview
  2. Docs
type alg = [
  1. | `RSA
]

The sum type of supported asymmetric key algorithms.

val alg_to_string : alg -> string

alg_to_string pub is a string representing the key algorithm.

val string_to_alg : string -> alg option

string_to_alg str is either Some alg, or None.

type priv = [
  1. | `Priv of alg * string * Conex_utils.Uint.t
]

The type of private keys

type t = alg * string * Conex_utils.Uint.t

The type of public keys

val equal : t -> t -> bool

equal a b is true if both public keys are the same.

pp is a pretty printer for public keys

val of_wire : Wire.s -> (t, string) Stdlib.result

of_wire w converts w to a key or error.

val wire_raw : t -> Wire.s

wire_raw t is the raw wire representation of t used by Author.wire.

val wire : identifier -> t -> Wire.t

wire id key is w, the wire representation used for approving key.

OCaml

Innovation. Community. Security.