package conex

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

The sum type of supported signature algorithms.

val alg_to_string : alg -> string

alg_to_string sig is a string representing the signature algorithm.

val string_to_alg : string -> alg option

string_to_alg str is either Some alg or None.

type hdr = alg * Conex_utils.Uint.t

The signature header, an algorithm and a created timestamp.

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

wire id hdr data extends the given data with the header and id to a string which is then signed.

type t = hdr * string

A signature is a pair of header and value.

pp sig is a pretty printer for a signature.

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

of_wire w converts w to a signature or error.

val wire_raw : t -> Wire.s

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

OCaml

Innovation. Community. Security.