package key-parsers

  1. Overview
  2. Docs
type t = {
  1. e : Z.t;
  2. n : Z.t;
}

The format for public keys is:

  • n
  • e

Here again there is an ambiguity, so e is assumed to be 0x010001: this is checked and an error is parsed if that is not the case.

val compare : t -> t -> Ppx_deriving_runtime.int
val to_yojson : t -> Yojson.Safe.t
val of_yojson : Yojson.Safe.t -> t Ppx_deriving_yojson_runtime.error_or
val decode : Cstruct.t -> (t, string) Result.result
OCaml

Innovation. Community. Security.