Skip to content

Offline verification

Save the receipt or bundle, a public-key file you obtained independently, and the signed key history. Provide the saved history to avoid fetching it from the gateway:

witness verify receipt.json --network-config pinned-network.json \
  --key-history history.json --data document.pdf

witness verify-proof --bundle bundle.json \
  --network-config pinned-network.json --key-history history.json \
  --require-log-inclusion

The second command stays offline when the saved bundle already contains the required proof. If inclusion is required but absent, the CLI may fetch a proof. Without --key-history, it tries to fetch history even when all epochs match the pin. If history is unavailable, only evidence matching the pin's epoch can be verified. The CLI warns in text mode and reports key_history: "unchecked" in JSON. A saved history cannot tell you about transitions published after you saved it. Run with networking disabled if making any request is unacceptable.

When loading a saved bundle, compare the reported digest with the file or hash you intend to verify. After compromise, use a new pin obtained independently, the authenticated history, and a saved proof at the exact checkpoint named by the transition.

Do not use --trust-gateway for offline or independent verification. Never share a secret-bearing operator config instead of the public-key file.