How to check ClearRun receipts in your own systems
Store the receipt from each response, keep a copy of ClearRun's public keys, and check the Ed25519 signature and verdictHash when you need proof. For a quick check, call the public lookup and read verified.
Last updated
Steps
Store the receipt
Save the whole response: the
receiptand theverdict, with the verdict id. On new receipts anyone can checkverdictHashfrom the public lookup. For older receipts, recomputing it needs your own copy of the verdict.Keep the keys
curl -s https://api.clearrun.net/.well-known/jwks.json > clearrun-jwks.jsonCheck when needed
Run the signature check from How to check a ClearRun receipt signature yourself against your stored copy.
Quick vs. independent
| Check | Needs ClearRun online | Trusts ClearRun's answer |
|---|---|---|
GET /api/verify/{id} | Yes | Yes |
| Your own signature check | No, with saved keys | No |