Models
Common models shared between signing and verification.
TransparencyLogEntry(inner)
Represents a transparency log entry.
Creates a new TransparencyLogEntry
from the given inner object.
@private
Source code in sigstore/models.py
70 71 72 73 74 75 76 77 |
|
TimestampVerificationData(inner)
Represents a TimestampVerificationData structure.
@private
Init method.
Source code in sigstore/models.py
236 237 238 239 |
|
rfc3161_timestamps
property
Returns a list of signed timestamp.
from_json(raw)
classmethod
Deserialize the given timestamp verification data.
Source code in sigstore/models.py
263 264 265 266 267 268 269 |
|
VerificationMaterial(inner)
Represents a VerificationMaterial structure.
Init method.
Source code in sigstore/models.py
277 278 279 |
|
timestamp_verification_data
property
Returns the Timestamp Verification Data, if present.
InvalidBundle
Bases: Error
Raised when the associated Bundle
is invalid in some way.
diagnostics()
Returns diagnostics for the error.
Source code in sigstore/models.py
299 300 301 302 303 304 305 306 307 308 309 310 311 312 |
|
Bundle(inner)
Represents a Sigstore bundle.
Creates a new bundle. This is not a public API; use
from_json
instead.
@private
Source code in sigstore/models.py
334 335 336 337 338 339 340 341 342 |
|
signing_certificate
property
Returns the bundle's contained signing (i.e. leaf) certificate.
log_entry
property
Returns the bundle's log entry, containing an inclusion proof (with checkpoint) and an inclusion promise (if the latter is present).
signature
property
Returns the signature bytes of this bundle. Either from the DSSE Envelope or from the message itself.
verification_material
property
Returns the bundle's verification material.
BundleType
Bases: str
, Enum
Known Sigstore bundle media types.
from_json(raw)
classmethod
Deserialize the given Sigstore bundle.
Source code in sigstore/models.py
502 503 504 505 506 507 508 509 510 511 |
|
to_json()
Return a JSON encoding of this bundle.
Source code in sigstore/models.py
513 514 515 516 517 |
|
from_parts(cert, sig, log_entry)
classmethod
Construct a Sigstore bundle (of hashedrekord
type) from its
constituent parts.
Source code in sigstore/models.py
536 537 538 539 540 541 542 543 544 545 546 547 |
|