Skip to content

Commit c89ce14

Browse files
committed
index hosted attestations: Increase version number
1 parent c5409dd commit c89ce14

File tree

1 file changed

+16
-6
lines changed

1 file changed

+16
-6
lines changed

source/specifications/index-hosted-attestations.rst

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,10 @@ object is provided as pseudocode below.
4343
class Attestation:
4444
version: Literal[1]
4545
"""
46-
The attestation object's version, which is always 1.
46+
The attestation object's version. Current version is 2.
47+
48+
version 2 added verification_material.timestamps, in practice allowing the
49+
use of rekor v2 entries in verification_material.transparency_entries.
4750
"""
4851
4952
verification_material: VerificationMaterial
@@ -87,9 +90,12 @@ object is provided as pseudocode below.
8790
8891
timestamps: list[bytes]
8992
"""
90-
List of base64 encoded RFC3161 timestamp responses. Note that list
91-
may be empty if `transparency_entries` only contains entries with an
92-
integrated_time (in other words entries of kind "dsse 0.0.1").
93+
List of base64 encoded RFC3161 timestamp responses.
94+
95+
Added in Attestation version 2.
96+
97+
Note that list may be empty if `transparency_entries` only contains entries
98+
with an integrated_time (in other words entries of kind "dsse 0.0.1").
9399
"""
94100
95101
A full data model for each object in ``transparency_entries`` is provided in
@@ -98,9 +104,9 @@ transparency log entries, and **MAY** include additional keys for other
98104
sources of signed time (such as an :rfc:`3161` Time Stamping Authority or a
99105
`Roughtime <https://blog.cloudflare.com/roughtime>`__ server).
100106

101-
Attestation objects are versioned; this PEP specifies version 1. Each version
107+
Attestation objects are versioned; this PEP specifies version 2. Each version
102108
is tied to a single cryptographic suite to minimize unnecessary cryptographic
103-
agility. In version 1, the suite is as follows:
109+
agility. In both versions 1 & 2, the suite is as follows:
104110

105111
* Certificates are specified as X.509 certificates, and comply with the
106112
profile in :rfc:`5280`.
@@ -334,6 +340,10 @@ of signed inclusion time, and can be verified either online or offline.
334340
integrated_time: int
335341
"""
336342
The UNIX timestamp from the log from when the entry was persisted.
343+
344+
Note: An integrated timestamp is not always provided (in practice
345+
integrated_time == 0 in this case): in this case external
346+
Timestamp Authority timestamps are required to verify the entry.
337347
"""
338348
339349
inclusion_proof: InclusionProof

0 commit comments

Comments
 (0)