On this page

Bay Run receipt keys

Which Ed25519 keys sign Bay Run receipts, where they are published, how they rotate and how to verify a receipt yourself.

Bay Run signs its receipts with Ed25519. Each receipt names its signing key by kid. To check a receipt yourself, look up that kid in a published key set and verify with that key. A public_key printed inside a receipt is not a trust anchor: if it differs from the published key for the same kid, reject the receipt.

Where the keys are published

  • Use today: the code-reviewed copy on this site, https://huggingbay.xyz/.well-known/bay-run-keys.json. It lists the Pin and provenance keys and changes only through code review.
  • Provenance receipts can also use Bay Run's live https://run.huggingbay.xyz/v1/provenance/keys. It does not list the Pin key yet.
  • From the Bay Run release carrying source 236f1c0020 or its successor, Bay Run also serves every active and retired key at https://run.huggingbay.xyz/.well-known/jwks.json (standard JWKS) and in https://run.huggingbay.xyz/v1/provenance/keys, with its rotation policy at https://run.huggingbay.xyz/receipt-keys. Once those are live, compare them with this copy. If a key appears only inside a receipt, trust neither.

Keys reviewed on 2026-11-28

kidSignerStatusPublic key (x)Signs
bay-run-pin-v1pinactivePlwBXBFGOr6lsGqiKpap6mpvQQ3PGVvqm2o0Y3gT_2Ubay-run.pin-receipt.v1, bay-run.pin-decision-evidence.v1, bay-run.pin-feedback-receipt.v1, bay-run.guard-document-scorecard
bay-run-provenance-v1provenanceactivecaJrAvzmnsG5ZfMSbS8l5vh9F6G-yfR8g4NvYm3M06Ybay-run.provenance-receipt, bay-run.bakeoff-result.integrity, bay-run.auto-pin-call

Rotation

Every rotation uses a new kid. The old public key stays published with status: retired for at least 400 days, so old receipts keep verifying. A compromised key is removed instead of retired, and receipts signed by it then fail. Bay Run configures retired keys with BAY_RUN_PIN_ED25519_VERIFICATION_KEYS, BAY_RUN_PROVENANCE_ED25519_VERIFICATION_KEYS and BAY_RUN_AGENT_COPROCESSOR_ED25519_VERIFICATION_KEYS.

What is not publicly verifiable

Receipts marked HS256 or debug_mac are MACs, not proofs: their keys are secrets and are never published. Keys with key_scope: ephemeral are development keys and are never published. A valid signature proves which Bay Run key signed the recorded fields; it does not prove an answer is correct.

Verify a receipt

Python SDK (offline, after one key fetch):

pip install hugging-bay
python - <<'PY'
import json, urllib.request
from hugging_bay import verify_receipt
keys = json.load(urllib.request.urlopen("https://huggingbay.xyz/.well-known/bay-run-keys.json"))
receipt = json.load(open("receipt.json"))  # the receipt object, verbatim
print("verified" if verify_receipt(receipt, keys) else "NOT verified")
PY

JavaScript SDK: verifyReceipt(receipt, await (await fetch("https://huggingbay.xyz/.well-known/bay-run-keys.json")).json()). BayRunClient.verify_receipt(receipt) / verifyReceipt(receipt) without keys use Bay Run's published set and fall back to this copy only while Bay Run serves its older provenance-only document; once Bay Run publishes its full set, a kid it omits (removed or withheld) fails. Hosted check: POST https://run.huggingbay.xyz/v1/provenance/verify with {"receipt": <receipt>}.

Updated .

Page sources

Page-copy source revision 8871bab84e1cf80aea1686a944ec335078a6c036 · Source files: apps/web/server.mjs, apps/web/lib/aeo-page.mjs, apps/web/lib/api-status-contract.mjs, apps/web/lib/agent-readable.mjs, apps/web/lib/docs-hub-model.mjs, apps/web/lib/compare-pages.mjs · Full revision record