Migrating to v0.11
v0.11 uses C2SP checkpoints instead of the v0.10 JSON checkpoint and signing protocol. It does not carry over old checkpoints, key transitions, or signer state files.
Start a new network
- Stop submissions and shut down the old network. Keep its configuration, databases, history, and signer state as an archive. Keep the old version and public keys if you need to verify old receipts.
- Configure a new network and a new log origin. Generate a separate
Ed25519 log key and put the public key and origin in
network.jsonunderlog. Addlog_originandlog_public_keyto every signer config. - Give the gateway the private log key with
--log-keyorWITNESS_LOG_KEY_FILE. Use a new gateway database, a new auditor database, and new signer state paths. Do not start the new log from an empty database under the old origin. - Distribute the new public configuration to clients and the auditor.
If you use external witnesses, register the new origin and log verifier key
with them.
witness keys vkeys --network-config FILEprints the verifier keys.
For setup details, see Run a gateway and
Run a witness.
For the Docker example, use a new Compose project so the old volumes remain
untouched, for example docker compose -p witness-c2sp up with v0.11 images.
Update clients
- Use
GET /checkpointfor the plain-text signed note orGET /v1/log/checkpoint[/{size}]for a JSON wrapper. The/v1/log/sthroutes are gone. - Inclusion proofs now carry a
checkpointstring. Consistency proofs with signed checkpoints carryold_checkpointandnew_checkpoint. The bare consistency proof endpoint has not changed. - Use
witness log checkpoint --verifyin place ofwitness log sth --verify. Use--witness-policy FILEif verification should require independent witness signatures. - Point auditor
--signersettings at each signer's base URL. The auditor now fetches/<SHA-256 of log origin>/checkpointfrom that base.