Repository navigation
Closed
Description
Summary
An origin attestation names its namespace, expires after a TTL, and gates serving as well as discovery. A cache serves a hash only while it holds a live attestation for it. When the origin stops re-signing a hash, the hash leaves the network within one TTL. This makes per-hash takedown a publisher action with no on-chain list.
Why
- Today an attestation names no namespace, and it stays valid while the signer holds a seat in any namespace (ADR 022 § Origin Attestation). A publisher that unseats a bad origin from its own namespace does not void that origin's attestations if the origin holds a seat elsewhere.
- Today an attestation has no expiry. The only way to revoke it is to strip the origin's last seat, which revokes every hash it attested. There is no per-hash revocation.
- Today the attestation gates discovery only: "the holder still serves the hash to a paying requester that reaches it". So a cache can keep serving content that its origin withdrew.
- With all three changes, every hash an honest cache serves traces to an origin that a vetted publisher seated. Cache operators carry no network-wide takedown duty. Their own notices still go to the local denylist.
Scope
- Protocol. Add
namespaceto the signedStreamResponsebody. The request already names the namespace, and the response echoes it. An attestation for(n, H)is anok: trueresponse forHand namespacen, signed by an origin seated inn. A namespace-0 response is never an attestation. - Validity. An attestation is valid when the signer holds a seat in
nandnow − ATTESTATION_TTL < timestamp_us ≤ now + MAX_FUTURE_SKEW. A suspended namespace has no seats that count (see the vetting / namespace suspension issue). The origin's request-timestamp bound on the stream open keeps a requester from getting a long-lived attestation with a future timestamp. That bound is now load-bearing for the attestation lifetime. A self-signed origin attestation (no request) gets the same future-skew check at the verifier. - Serving gate. A node serves
Hundernonly while it holds a live attestation for(n, H). A node with no live attestation refuses withDeclined. The pull path rejects an upstream that has no valid attestation. A pinned hash follows the same rule. - Refresh. At about TTL/2 a holder takes the freshest valid attestation it finds in the DHT records for
H. If none is fresh, it opens a voucher-less stream to a seated origin ofn, keeps the signedStreamResponse, and cancels the stream. The open costs the origin one signature and no admission work. Origin load is about one signature per hash per refresh period, not one per cache. - DHT. A receiver rejects an expired attestation, and keeps the fresher attestation when a re-publish carries one.
FindValueResponseleaves out records with expired attestations. - Seated-origin set. The node tracks seats per
(namespace, operator)and namespace suspension, at one pinned block. The chain-staleness grace applies to this read. - Docs. ADR 005 (signed body), ADR 022 (§ Origin Attestation, § STORE Flow, § FIND_VALUE Flow), ADR 002 (namespace 0), ADR 040 (pinning), the observability appendix (refresh metrics).
Consequences to state in the ADR
- Takedown latency for a withdrawn hash is
ATTESTATION_TTL. Unseating and namespace suspension take effect at the next seat-set read. - Availability depends on origin liveness within one TTL. When every seated origin of a namespace is offline for longer than the TTL, the namespace's content leaves the network. A publisher that wants resilience seats more than one origin.
Open questions
ATTESTATION_TTL: a constant or a governance parameter, and its value. The starting proposal is 12 h.- The refresh trigger point (TTL/2) and jitter, so that holders of a popular hash do not all open streams to the origin at the same moment.
Not in this issue
- KYC vetting and the emergency namespace suspension (separate issue).
- Reducing
ContentBlacklist(separate issue).
Pre-mainnet, so the change is wire-breaking with no compatibility path.
Metadata
Metadata
Assignees
Labels
No labels
Type
Fields
Priority
None yet
Projects
- StatusShow more project fieldsDone
Activity
feat!: origin attestations are namespace-scoped, expiring and require…