package conex

  1. Overview
  2. Docs
type t = {
  1. created : timestamp;
  2. counter : Conex_utils.Uint.t;
  3. epoch : Conex_utils.Uint.t;
  4. name : identifier;
  5. keys : Key.t Conex_utils.M.t;
  6. valid : Expression.t;
  7. delegations : Delegation.t list;
  8. targets : Target.t list;
  9. signatures : Signature.t Conex_utils.M.t;
}
val t : ?counter:Conex_utils.Uint.t -> ?epoch:Conex_utils.Uint.t -> ?keys:Key.t Conex_utils.M.t -> ?delegations:Delegation.t list -> ?targets:Target.t list -> ?signatures:Signature.t Conex_utils.M.t -> timestamp -> identifier -> Expression.t -> t
val add_signature : t -> identifier -> Signature.t -> t
val equal : t -> t -> bool

equal a b is true if all fields of a and b are equal.

pp t is a pretty printer for a targets.

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

of_wire w converts w to a targets or error.

val wire : t -> Wire.t

wire t is the wire representation of t.

val wire_raw : t -> Wire.t

wire_raw t is the wire representation of t.