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

FieldMeaningValidation
timestampProvider’s time value.Finite numeric value.
source_idIdentity of the provider.Required, non-empty.
provider_versionProvider implementation identity.Required, non-empty.
captured_atLocal capture time for freshness reasoning.Finite numeric value.
uncertainty_secondsDeclared error bound.Finite and non-negative.
provenanceAuditable source description.Required.

Provider ladder

ProviderPurpose
StaticTrustedTimeProviderDeterministic fixtures and controlled tests.
SequenceTrustedTimeProviderReplay a bounded sequence of samples for tests.
SignedTimeReceiptProviderVerify signature, identity, age and optional certificate policy on a supplied receipt.
HTTPSignedTimeReceiptProviderFetch a signed receipt over an explicit HTTPS boundary.
QuorumTrustedTimeProviderAccept time only when enough providers agree within configured skew and uncertainty.
AttestedTrustedTimeProviderBind a sample to a signed provider identity, trusted region and certificate lifetime.

Signed receipt path

  1. Load a receipt envelope

    Require payload, key id and signature with a known contract shape.

  2. Verify the canonical payload

    Reject malformed or invalid signatures.

  3. Validate sample identity

    Check source id, provider version, provenance and contract identity.

  4. Apply freshness and certificate policy

    Reject future, stale, expired, untrusted or revoked status.

  5. Return a TimeSample or fail closed

    Raise TrustedTimeUnavailable rather 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.

Availability trade-off: strict certificate and time quorum improve trust but introduce external dependencies. An unavailable quorum must be treated as unavailable trusted time, not as permission to use an unchecked local clock.

Quorum review

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.