Skip to content

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

  1. 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.
  2. Configure a new network and a new log origin. Generate a separate Ed25519 log key and put the public key and origin in network.json under log. Add log_origin and log_public_key to every signer config.
  3. Give the gateway the private log key with --log-key or WITNESS_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.
  4. 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 FILE prints 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 /checkpoint for the plain-text signed note or GET /v1/log/checkpoint[/{size}] for a JSON wrapper. The /v1/log/sth routes are gone.
  • Inclusion proofs now carry a checkpoint string. Consistency proofs with signed checkpoints carry old_checkpoint and new_checkpoint. The bare consistency proof endpoint has not changed.
  • Use witness log checkpoint --verify in place of witness log sth --verify. Use --witness-policy FILE if verification should require independent witness signatures.
  • Point auditor --signer settings at each signer's base URL. The auditor now fetches /<SHA-256 of log origin>/checkpoint from that base.