package conex

  1. Overview
  2. Docs

Module Conex_resource.SignatureSource

Sourcetype alg = [
  1. | `RSA_PSS_SHA256
]

The sum type of supported signature algorithms.

Sourcetype t = identifier * timestamp * alg * string

A signature is a quadruple of timestamp, identifier, algorithm, and signature value.

Sourceval equal : t -> t -> bool

equal a b is true if id, created, alg, and signature are the same.

pp sig is a pretty printer for a signature.

Sourceval of_wire : Wire.s -> (t, err) result

of_wire w converts w to a signature or error.

Sourceval many_of_wire : Wire.s list -> (t Conex_utils.M.t * string list, string) result

many_of_wire w uses of_wire on the Wire.s.List w. Prints errors to stdout if an unknown signature algorithm or multiple signatures with the same identifier are used.

Sourceval wire_raw : t -> Wire.s

wire_raw t is the wire representation of t.