Module tough::schema [−][src]
Provides the schema objects as defined by the TUF spec.
Modules
decoded | Provides a wrapper and traits for abstracting over decoded keys or different types. |
key | Handles cryptographic keys and their serialization in TUF metadata files. |
Structs
DelegatedRole | Each role delegated in a targets file is considered a delegated role |
DelegatedTargets | Wrapper for |
Delegations | Delegations are found in a |
FilesystemTransport | Provides a |
Hashes | Represents the hash dictionary in a |
RoleKeys | Represents the key IDs used for a role and the threshold of signatures required to validate it. TUF 4.3: A ROLE is one of “root”, “snapshot”, “targets”, “timestamp”, or “mirrors”. A role for each of “root”, “snapshot”, “timestamp”, and “targets” MUST be specified in the key list. The role of “mirror” is optional. If not specified, the mirror list will not need to be signed if mirror lists are being used. The THRESHOLD for a role is an integer of the number of keys of that role whose signatures are required in order to consider a file as being properly signed by that role. |
Root | TUF 4.3: The root.json file is signed by the root role’s keys. It indicates which keys are authorized for all top-level roles, including the root role itself. Revocation and replacement of top-level role keys, including for the root role, is done by changing the keys listed for the roles in this file. |
Signature | A signature and the key ID that made it. |
Signed | A signed metadata object. |
Snapshot | TUF 4.4 The snapshot.json file is signed by the snapshot role. It MUST list the version numbers of the top-level targets metadata and all delegated targets metadata. It MAY also list their lengths and file hashes. |
SnapshotMeta | Represents a metadata file in a |
Target | TUF 4.5: TARGETS is an object whose format is the following: |
Targets | Represents a |
Timestamp | Represents a |
TimestampMeta | METAFILES is the same as described for the snapshot.json file. In the case of the timestamp.json file, this MUST only include a description of the snapshot.json file. |
Enums
Error | The error type for this library. |
KeyHolder | A |
PathSet | Specifies the target paths that a delegated role controls. |
RoleId | A role identifier |
RoleType | The type of metadata role. |
Traits
Role | Common trait implemented by all roles. |
Transport | A trait to abstract over the method/protocol by which files are obtained. |
Type Definitions
Result | Alias for |