package conex

  1. Overview
  2. Docs

Module Conex_resource.RootSource

The root contains the (offline) root keys, also defines snapshot, timestamp, and maintainers. Furthermore, it contains configuration information such as where keys are located in this repository and where the data is stored.

Sourcetype role = [
  1. | `Snapshot
  2. | `Timestamp
  3. | `Maintainer
]
Sourceval role_to_string : role -> string
Sourcemodule RM : sig ... end
Sourcetype t = {
  1. created : timestamp;
  2. counter : Conex_utils.Uint.t;
  3. epoch : Conex_utils.Uint.t;
  4. name : identifier;
  5. datadir : Conex_utils.path;
  6. keydir : Conex_utils.path;
  7. keys : Key.t Conex_utils.M.t;
  8. valid : Expression.t;
  9. roles : Expression.t RM.t;
  10. signatures : Signature.t Conex_utils.M.t;
}
Sourceval t : ?counter:Conex_utils.Uint.t -> ?epoch:Conex_utils.Uint.t -> ?name:identifier -> ?datadir:Conex_utils.path -> ?keydir:Conex_utils.path -> ?keys:Key.t Conex_utils.M.t -> ?roles:Expression.t RM.t -> ?signatures:Signature.t Conex_utils.M.t -> timestamp -> Expression.t -> t
Sourceval add_signature : t -> identifier -> Signature.t -> t
Sourceval of_wire : Wire.t -> (t * string list, string) result
Sourceval wire : t -> Wire.t
Sourceval wire_raw : t -> Wire.t