Migrating to v0.9
v0.9 narrows Witness to its actual product: self-hosted m-of-N co-signed timestamp receipts — several independent signing servers, one gateway, no account, no content upload. It removes external anchoring and federation cross-anchoring, and it settles the vocabulary the documentation uses.
This note is for the downstream products that consume Witness (clout, prestige, scarcity, rendezvous).
1. Pin v0.8.6 before upgrading
v0.8.6 is the pre-pivot pin tag. It is the last tag that still contains the
anchor providers, federation routes, and the old documentation. Pin it, run your
current integration against it, and only then move to the v0.9 line after
reading the rest of this page.
2. Terminology mapping
Nothing in the wire format changed with the vocabulary. If you match on strings in config, keep matching on the old spellings.
| Old wording | v0.9 wording | Where it appears |
|---|---|---|
| "threshold signature" | m-of-N multi-signature, counted signatures | docs, README, SDK prose |
| "quorum" | required signer count | docs, README |
| "witness" (as a role) | signer / signing server | docs, README (config key stays witnesses) |
| "Anonymous Quorum" | (no equivalent claim) | removed from README |
| "durable & free" | instant receipts | removed from README features |
| "federation" (as a feature) | removed in v0.9 | docs, config, code |
| "external anchoring" | removed in v0.9 | docs, config, code |
| "Byzantine fault tolerance" | (never claimed; explicitly denied) | security docs |
The threshold config key, the witnesses array, and the witness_id response
field keep their names. They are frozen surface, not a rebranding opportunity.
3. Removed surfaces
/v1/federation/*— the inbound anchor route and all peer-network cross-anchoring are gone. Requests to those paths fail as unknown routes.- Anchor providers — Internet Archive, Trillian, DNS TXT, and Ethereum
anchoring are gone. No new anchor proofs are produced.
/v1/anchors/:hashremains readable for stored historical rows; do not build new features on it. - Config keys —
federation/federation_peersandexternal_anchorsbecome inert but tolerated: the parser still accepts them so an existingnetwork.jsonloads unchanged, and they have no effect (batching is now configured on the gateway; see section 6). Keep emitting them safely for now; they may be dropped in a later release, so treat them as write-only legacy fields. - Example network — the federation example network is no longer part of the documented setup. The standard single-gateway example is.
4. Frozen contract (does not change in 0.9)
These endpoints and shapes are public API and will not change in v0.9:
| Surface | Contract |
|---|---|
POST /v1/attestations |
request {"hash": "<lowercase hex sha256>"}; 202 for new/nonconfirmed, 200 for an already-confirmed duplicate |
GET /v1/attestations/:hash |
stable job snapshot: attestation tuple, status, attempts, next_attempt_at, last_error, and signed_attestation once confirmed |
signed_attestation |
the confirmed SignedAttestation object, unchanged serialization |
witness_id |
per-signature signer identifier field, unchanged spelling |
POST /v1/verify |
verify a signed attestation against a network config |
GET /v1/network |
secret-free NetworkVerificationConfig fields, unchanged |
If you need stability beyond these, pin the tag and treat everything else as private surface.
5. WebSocket changes (v0.9)
- Pre-confirmation broadcasts are removed. The gateway no longer streams each newly reserved digest and timestamp. Only confirmed attestations are broadcast.
- Auth token required; no unauthenticated mode.
WITNESS_WS_AUTH_TOKENis required. When it is unset (or empty/whitespace), the gateway disables/ws/events: the upgrade is rejected with HTTP 503 ({"error":"WebSocket disabled"}) and startup logs that the endpoint is disabled. When set, clients must handle theauth_requiredchallenge and the SDK'sAuthRequiredErrorinstead of assuming an open stream. - Confirmed-only means no pre-confirmation feed at all. There is no reservation broadcast to fall back to: the only event send site is the reconciler after a job is confirmed and persisted.
If you relied on the early stream for UI optimism, poll
GET /v1/attestations/:hash or drive the UI from the confirmed event.
6. Batching without federation
Batching no longer requires federation mode to be enabled. The batch period now
comes from the gateway's WITNESS_BATCH_PERIOD_SECS environment variable (or
--batch-period-secs), default 60; 0 disables batching and checkpoints.
federation.enabled and federation.batch_period are ignored. If you relied on
a long federation.batch_period (for example, one hour), set
WITNESS_BATCH_PERIOD_SECS to the same value before upgrading. A failed
checkpoint is retried on every later tick and at startup, even when no new
hashes arrive.
6b. Docker Compose demo layout (breaking for existing demo volumes)
Each signer now generates its own key inside its own volume, and the gateway
mounts only a read-only config volume with public keys and bearer tokens. The
old shared witness-config volume is no longer mounted. Do not delete it
if you want to keep existing history: the new setup refuses to start against a
non-empty gateway.db without a matching network.json, and refuses to
overwrite a mismatching one. To keep history, copy the original signer key
files and network.json into the new per-signer and gateway volumes before
first start. A single Docker host still lets its administrator read every
volume, so the demo remains a demo, not separate custody.
6a. Verification changes (breaking, client side)
witness verifyrequires either--network-config <file>(verify against public keys you keep) or--trust-gateway(explicitly accept the gateway's current key list). Add--hash <hex>or--data <file>to fail when the receipt is for a different file.witness verify-proofnow exits non-zero when any proof layer present in the bundle fails, instead of printingVALIDalongsideFAILED.--require-log-inclusionadditionally requires an inclusion proof under a signed checkpoint and fails if the hash is not yet logged.witness log sth --verifyandlog consistency --verifyrequire--network-configor--trust-gateway.witness status/attestlabel the signature count as "reported by gateway"; usewitness verifyto check signatures.- Rust SDK:
get_attestationandwait_for_confirmationreject responses whose hash differs from the requested hash (Error::ResponseMismatch). Newverify_for_hash.verify_log_inclusion(proof, leaf, config)now checks the checkpoint signatures; the old path-only check isverify_log_inclusion_path. - TypeScript SDK: polling rejects mismatched responses
(
ResponseMismatchError); newverifyForHash.
7. Rust consumers: use 1.99+ toolchains
Build with Rust 1.99 or newer. Rust 1.95 release builds are broken on
macOS 27 by an upstream compiler issue (rust-lang/rust#157750); if you pin a
toolchain for reproducible builds, pin 1.99+ and verify the release profile
(opt-level 3, LTO, 1 codegen unit) still links on your target.
8. What is not changing
- Hash-only submission, no account, no content upload.
- Ed25519 signatures, one per participating signer, counted against the configured required signer count.
- Attestation-job lifecycle: durably reserved tuple, bounded retries, terminal
failedwithsigning_deadline_exceeded, immutable timestamp. - RFC 9162 batching, signed tree heads, inclusion and consistency proofs.
- The independent auditor and its pinned-configuration requirement.
RFC 3161 / OpenSSL interoperability is roadmap, not part of v0.9.