package conex

  1. Overview
  2. Docs
Establishing trust in community repositories

Install

dune-project
 Dependency

Authors

Maintainers

Sources

conex-1.0.0.tbz
sha256=8ba730718cbf0a381f0bce3493d18bfea1823bee0f43e4cbddad222b66dc164f
sha512=a76787c46b7c867e41daba10989841e95e7a2ba142dd09ae078649fd60340fcef703f41ddffc67b9c899fb4a2956906a0c8f9d04db7da435ac502b19851a490a

doc/conex/Conex_resource/Key/index.html

Module Conex_resource.KeySource

Sourcetype alg = [
  1. | `RSA
  2. | `Ed25519
]

The sum type of supported asymmetric key algorithms.

Sourceval alg_to_string : alg -> string

alg_to_string a is a string for alg.

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