package conex

  1. Overview
  2. Docs

Common header on disk

type t = {
  1. version : int;
  2. created : timestamp;
  3. counter : Conex_utils.Uint.t;
  4. epoch : Conex_utils.Uint.t;
  5. name : name;
  6. typ : typ;
}

The header consists of version, created, counter, epoch, name, and typ.

pp is a pretty printer.

val wire : t -> Wire.t

wire t is the wire representation of t.

val of_wire : Wire.t -> (t, string) Stdlib.result

of_wire t converts t into a Header.t or error.

val counter : Conex_utils.Uint.t -> Conex_utils.Uint.t -> string

counter ctr epoch prints ctr, epoch to a string containing the counter and epoch (unless zero).

OCaml

Innovation. Community. Security.