package conex

  1. Overview
  2. Docs
Establish trust in community repositories

Install

Dune Dependency

Authors

Maintainers

Sources

conex-0.10.1.tbz
sha256=8e92a9fce2133fa44f7d81211790e911a1e011a138ca56da48af50d612ed4b81
md5=1e09e8e28c4b26d5a22b3a5afd1fdc5c

doc/conex/Conex_resource/Key/index.html

Module Conex_resource.KeySource

Sourcetype alg = [
  1. | `RSA
]

The sum type of supported asymmetric key algorithms.

Sourcetype t = identifier * timestamp * alg * string

The type of public keys

Sourceval equal : t -> t -> bool

equal a b is true if id, created, alg, and key are identical.

pp is a pretty printer for public keys

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

of_wire w converts w to a key 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 key algorithm or multiple keys with the same identifier are used.

Sourceval wire_raw : t -> Wire.s

wire_raw t is the raw wire representation of t.

Sourceval wire : t -> Wire.t

wire t is the wire representation of t.

Sourceval keyid : (string -> Digest.t) -> t -> Digest.t

keyid hash key is hash (to_string key), the key hash.

Sourceval to_string : t -> string
OCaml

Innovation. Community. Security.