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 equal : t -> t -> Ppx_deriving_runtime.bool
val to_yojson : t -> Yojson.Safe.t
val bin_t : t Bin_prot.Type_class.t
val bin_read_t : t Bin_prot.Read.reader
val __bin_read_t__ : (int -> t) Bin_prot.Read.reader
val bin_reader_t : t Bin_prot.Type_class.reader
val bin_size_t : t Bin_prot.Size.sizer
val bin_write_t : t Bin_prot.Write.writer
val bin_writer_t : t Bin_prot.Type_class.writer
val decode : Cstruct.t -> (t, string) Result.result