Trusted time
Expiry, future-skew, leases and replay windows depend on time. The trusted-time subsystem represents time as provenance-bearing evidence rather than reading an implicit clock and assuming authority.
TimeSample contract
| Field | Meaning | Validation |
|---|---|---|
timestamp | Provider’s time value. | Finite numeric value. |
source_id | Identity of the provider. | Required, non-empty. |
provider_version | Provider implementation identity. | Required, non-empty. |
captured_at | Local capture time for freshness reasoning. | Finite numeric value. |
uncertainty_seconds | Declared error bound. | Finite and non-negative. |
provenance | Auditable source description. | Required. |
Provider ladder
| Provider | Purpose |
|---|---|
StaticTrustedTimeProvider | Deterministic fixtures and controlled tests. |
SequenceTrustedTimeProvider | Replay a bounded sequence of samples for tests. |
SignedTimeReceiptProvider | Verify signature, identity, age and optional certificate policy on a supplied receipt. |
HTTPSignedTimeReceiptProvider | Fetch a signed receipt over an explicit HTTPS boundary. |
QuorumTrustedTimeProvider | Accept time only when enough providers agree within configured skew and uncertainty. |
AttestedTrustedTimeProvider | Bind a sample to a signed provider identity, trusted region and certificate lifetime. |
Signed receipt path
Load a receipt envelope
Require payload, key id and signature with a known contract shape.
Verify the canonical payload
Reject malformed or invalid signatures.
Validate sample identity
Check source id, provider version, provenance and contract identity.
Apply freshness and certificate policy
Reject future, stale, expired, untrusted or revoked status.
Return a TimeSample or fail closed
Raise
TrustedTimeUnavailablerather than invent a fallback time.
Certificate status policy
CertificateValidationPolicy can require a valid chain, trusted issuer, non-revoked serial, good OCSP/CRL status, a recent status check and an unexpired next-update time. Status may come from one provider or a matching provider quorum.
Quorum review
- Define the minimum number of agreeing providers.
- Set maximum provider skew and maximum uncertainty.
- Decide whether provider identity or geographic diversity is required.
- Retain diagnostics for missing, rejected and disagreeing providers.
- Test quorum loss, stale receipts, future receipts and certificate-status disagreement.
Protocol basis
RFC 3161 is a useful primary reference for signed time-stamp tokens, message imprints, serial identity and UTC time representation. AssuranceLab uses its own bounded trusted-time contract rather than claiming protocol conformance.