Timestamp class

class Timestamp(version, spec_version, expires, snapshot_meta, unrecognized_fields=None)

A container for the signed part of timestamp metadata.

TUF file format uses a dictionary to contain the snapshot information: this is not the case with Timestamp.snapshot_meta which is a MetaFile.

All parameters named below are not just constructor arguments but also instance attributes.

Parameters
  • version (int) – The metadata version number.

  • spec_version (str) – The supported TUF specification version number.

  • expires (datetime.datetime) – The metadata expiry date.

  • unrecognized_fields (Optional[Mapping[str, Any]]) – Dictionary of all unrecognized fields.

  • snapshot_meta (MetaFile) – Meta information for snapshot metadata.

update(snapshot_meta)

Assigns passed info about snapshot metadata.

Parameters

snapshot_meta (MetaFile) –

Return type

None