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 equal : t -> t -> Ppx_deriving_runtime.bool
val compare : t -> t -> Ppx_deriving_runtime.int
val pp : Ppx_deriving_runtime.Format.formatter -> t -> Ppx_deriving_runtime.unit
val decode : Cstruct.t -> (t, string) Result.result