Verify a proof bundle
Fetch the bundle for a known SHA-256 digest and require log inclusion:
witness --gateway https://witness.example verify-proof \
--hash "$HASH" --network-config pinned-network.json --require-log-inclusion
--hash retrieves the bundle and checks that it covers that digest. For
a saved bundle, use --bundle bundle.json instead and compare the reported
hash to your expected digest. Provide --key-history history.json to use
a saved key history; otherwise the CLI tries to fetch and verify it even
when the evidence matches the pin's epoch. --trust-gateway instead of
--network-config explicitly trusts the gateway to choose the keys and
threshold.
The CLI checks the receipt and any included proof. Without
--require-log-inclusion, missing evidence is allowed for an ordinary
receipt. With the flag, the CLI can fetch a missing proof; verification
fails if the proof is not available or valid. A present invalid proof
does not count as receipt-only success.
Look for Log inclusion: verified in text output, or
log_inclusion_verified: true with --output json. If the key history
is unavailable and all epochs match the pin, check for a warning on
stderr in text mode or key_history: "unchecked" in JSON. A fetched
history that fails verification is always an error. existed_no_later_than
normally comes from the latest counted signer time. If the receipt's
epoch was retired after compromise, only inclusion at the transition's
exact final checkpoint qualifies, and the time bound is the transition's
effective_at. Re-pin the new keys independently before checking such
receipts. For a saved bundle, use a proof at that final checkpoint, not
one from the latest checkpoint.
See offline verification and failure cases.