Migrating to v0.10 (protocol v2)
v0.10 replaces the signing protocol. Nothing signed or stored by v0.9 verifies or loads under v0.10: start a new network (new database, new signer state files). The protocol is specified in Protocol v2.
What changed
- Signer-attested time. Every signature carries the signer's own clock
reading (
signed_at). Verifiers report "existed no later than" the latest counted signer time. Signers refuse to sign after a wall-clock step, and on Linux can refuse while the kernel clock is unsynchronized (require_clock_sync). - Stateful checkpoint signing. Signers keep the last checkpoint they
signed (
checkpoint_state_path) and sign a new one only if it provably extends it (POST /v1/checkpoint). Log leaves commit to the full receipt record, not just the submitted hash. - Majority threshold.
thresholdmust be more than half the signers (2 of 3, 3 of 5). 1 of 2 or 2 of 4 is rejected. - Key epochs. Receipts and checkpoints name the key set that signed them.
Key changes are signed transitions served at
GET /v1/key-historyand verified by clients from their pinned key file. - Domain-separated messages. Receipt, checkpoint and key-transition signatures can no longer be confused with one another.
- Removed: federation and external-anchor code and config keys,
/v1/anchors/:hash,/v1/proof/:hash(per-batch proofs), thewitness anchorscommand, and--peer-config.
Config changes
network.json:
{
"id": "my-network",
"key_epoch": 1,
"threshold": 2,
"signature_scheme": "ed25519",
"time_policy": {"max_skew_secs": 300},
"witnesses": [
{"id": "signer-1", "pubkey": "...", "endpoint": "http://...", "auth_token": "..."}
]
}
Signer witness.json adds key_epoch (must match), checkpoint_state_path,
and optionally require_clock_sync and clock_recovery_secs. A signer's
max_clock_skew must not exceed the network's max_skew_secs.
Gateway: WITNESS_JOB_SIGNING_WINDOW_SECS must not exceed
time_policy.max_skew_secs. Optional --key-history / WITNESS_KEY_HISTORY
points to the key-history file after the first key change.
If you front signers with a reverse proxy, allow the gateway to reach
/v1/checkpoint and /v1/checkpoint/state as well as /v1/sign.
Wire changes
WitnessSignaturegainssigned_at;SignedAttestation.signaturesandSignedTreeHead.signaturesare flat lists (no nestedsignaturesobject).AttestationandTreeHeadgainkey_epoch.ProofBundleis{signed_attestation, log_inclusion};log_inclusionis an inclusion proof under a signed checkpoint.GET /v1/log/proofreturns the proof for the receipt leaf of the hash.
Client changes
- Verification results include
signed_at_latest/ "existed no later than". - The CLI loads the key history (
--key-history, else/v1/key-history) and verifies it against your pinned key file, so it can handle receipts from other epochs and notice if your pinned epoch was later retired after a compromise. If the history can't be fetched it falls back to your pin (same epoch only) and says the history was unchecked. witness keys verifychecks a key history;witness keys digestprints the key-set digest needed to draft a transition.