Skip to content

Protocol flow

  1. Submit a hash. A client sends a SHA-256 digest to POST /v1/attestations. Under its admission limits, the gateway saves one job per hash with a timestamp, sequence, network ID, and key epoch. A duplicate returns the original job.
  2. Collect signatures. A worker claims the job and sends POST /v1/sign to the signing servers. Each checks its network, epoch, and clock, then returns a signature binding the record and its own signed_at. Retries keep the original record; an expired job fails rather than receiving a fresh timestamp.
  3. Confirm the receipt. The gateway verifies signatures against the job's network and epoch. With enough distinct valid signatures within the time policy, it saves the signed receipt. Clients poll GET /v1/attestations/{hash}; only confirmed jobs contain signed_attestation.
  4. Publish the log checkpoint. The gateway batches confirmed receipts using leaves built from their full records. It asks signers to sign the new tree through POST /add-checkpoint, with a consistency proof from their prior checkpoint. A signer records an accepted extension before signing. The gateway publishes after meeting the checkpoint threshold.
  5. Verify independently. A client checks the receipt's hash and signatures with its own trusted key file. For proof of logging it checks log_inclusion from GET /v1/bundle/{hash} or requests a proof at a published size from GET /v1/log/proof. The CLI checks the key history against the pin, using a saved copy or fetching it from the gateway, to choose the right keys and check for retirements.

See Protocol v2 for the exact signing and key-change rules.