Offline verifiers for Regent Control receipts and allow tokens: prove what a decision authorised, under which mandate version and which policy version, without calling Regent. Only the token and a JWKS you saved while the issuer was reachable are needed.
| package | install | runtime |
|---|---|---|
regent-receipt-verify |
pip install regent-receipt-verify |
Python ≥ 3.10, one dependency (cryptography) |
@regent-protocol/receipt-verify |
npm i @regent-protocol/receipt-verify |
Node ≥ 18, zero dependencies |
Both ship a regent-verify CLI and the same library surface, and both run the same test
vectors in receipt-verify-vectors/, minted by the real issuer.
curl -s https://control-api.regentprotocol.org/v1/control/.well-known/jwks.json > jwks-2026-09.json
regent-verify @receipt.txt --jwks jwks-2026-09.json --request request.json \
--mandate mandate-v2-reveal.json --policy policy-v3-reveal.json --counterparty-jwks get4agent-jwks.json
What a verification proves:
| check | meaning |
|---|---|
signature (RS256, kid from the JWKS) |
Regent's issuer signed exactly these claims |
| kind | a receipt (typ receipt+jwt, aud regent-receipt) can never pass as an access token |
args_hash |
the token authorised this exact request (tool, action, resource, args) and nothing else |
mandate reveal (terms-v2) |
the owner's revealed mandate version (snapshot + salt) opens the receipt's mandate_hash |
policy reveal (policy-v1) |
the organisation's revealed policy version (text + profile + salt) opens policy_hash; starter-pack decisions need only the public text |
payee reveal (payee-v1, 0.9.0) |
the owner's {payee, salt} for this decision opens the receipt's payee_hash: this receipt, and no other, paid that party; works whether the receipt also names the payee in clear or the organization hid it (--payee reveal.json, payee_reveal= / payeeReveal:) |
| the owner's approval (0.9.1) | a bundle with the approval revealed carries the approval evidence; the receipt names that evidence by digest. Checked offline: the evidence bytes hash to the digest a verified receipt names, so the evidence cannot be edited, replaced or moved to another decision. Not verified by this version: the owner's signature inside the evidence, and the terms shown beside it. The output says so in its second line (NOT CHECKED — the owner's approval), and never anything better. A receipt checked with a key taken from the bundle is compared too, and the output says so (the receipt key came from the bundle): pass a key you saved (--jwks) |
settlement_ref / settlement_network (0.7.0) |
the rail's own reference for the settled money — a chain transaction hash with the chain it is on (a custodian such as Rox Custody, settlement_source: custodian), or a PSP's charge id — signed into the receipt, so the money's movement can be looked up on the rail next to the decision that allowed it. Absent on failed or voided settlements |
| counterparty confirmation | the settlement confirmation the counterparty (merchant, PSP, custodian) signed over the same decision is embedded in the receipt (confirmation); pass the counterparty's JWKS (--counterparty-jwks) to re-verify it and compare it with the receipt's figures: two signatures over the same facts, checked offline. settlement_source: agent receipts carry none |
Ceilings never ride in a token: the receipt carries a version and a salted commitment, the
owner reveals the terms to whoever needs them (an insurer, an auditor), and this verifier checks
the two match. Save the JWKS with the receipts; keys rotate, and every JWKS you kept can be passed
with --jwks.
Licence: Apache-2.0. Issues and pull requests welcome.
regent-verify bundle FILE [--jwks receipt-jwks.json] [--checkpoint-jwks audit-jwks.json] [--rpc URL]
verifies a whole evidence bundle offline: canonical bytes, batch proof, Regent's signed checkpoint,
epoch proof, the retained receipt and the links between checkpoints; with --rpc it also fetches
the append and anchor transactions from the network and checks that the root is in them. Same
checks, same vectors, both languages — see each package's README.