This release has been yanked by its maintainers, and will be ignored by installers, except when explicitly specified.
Consider using release 0.9.2 instead.
regent-receipt-verify
Verify a Regent Control receipt or allow token without Regent: only the token and a JWKS
you saved while the issuer was reachable. Nothing calls the network. One dependency
(cryptography) for RS256.
pip install regent-receipt-verify
curl -s https://control-api.regentprotocol.org/v1/control/.well-known/jwks.json > jwks-2026-09.json # save it now, keep it with the receipts
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
from regent_receipt_verify import verify
res = verify(token, jwks, request={"tool": "stripe", "action": "charge.create", "resource": None, "args": {...}},
mandate_reveal=reveal_from_owner, policy_reveal=policy_reveal_from_org)
res.valid, res.kind, res.claims, res.args_hash_match, res.mandate_match, res.policy_match
What it proves:
| check | meaning |
|---|---|
| signature (RS256, kid from the JWKS) | Regent's issuer signed exactly these claims |
kind receipt / allow / budget |
a receipt (typ receipt+jwt, aud regent-receipt) can never pass as an access token |
expired |
receipts carry a 10-year evidence period; an allow token lives about a minute, so for evidence its expiry is a note, not a failure |
args_hash_match |
the token authorised this exact request (tool, action, resource, args) and nothing else |
mandate_match |
the owner's revealed mandate version (snapshot + salt; terms-v2, or terms-v3 with the scope allowed_resources) opens the receipt's mandate_hash |
policy_match |
the organisation's revealed policy version (text + profile + salt, policy-v1) opens policy_hash; starter-pack decisions need only the public text |
confirmation_match |
the settlement confirmation the counterparty (merchant, PSP, custodian) signed over the same decision, embedded in the receipt, re-verified against the counterparty's own JWKS and compared with the receipt's figures: two signatures over the same facts, checked offline. settlement_source: agent receipts have none |
Key rotation: pass --jwks several times (every JWKS you saved). Exit code 0 when the signature
verifies and every supplied check matches.
Test vectors are minted by the real issuer (packages/receipt-verify-vectors), and the same
file drives the Node package @regent-protocol/receipt-verify.
Evidence bundles (0.4.0)
A bundle is one JSON document from the console ("Evidence bundle" on a decision or an audit
event) or from GET /v1/organizations/{org}/decisions/{id}/bundle. It carries every audit
event of a decision with the exact bytes that were hashed, the Merkle proof to the batch root,
Regent's signed checkpoint over that root and its chain position, the epoch proof, the
OpenTimestamps proof, the RFC 3161 time-stamp token (0.8.0), the retained receipt and the keys.
regent-verify bundle regent-evidence-dec_7f301d041e9f.json
regent-verify bundle regent-evidence-dec_7f301d041e9f.json --jwks jwks-2026-09.json --checkpoint-jwks audit-jwks.json
regent-verify bundle regent-evidence-dec_7f301d041e9f.json --rpc https://api.mainnet-beta.solana.com
regent-verify bundle regent-evidence-dec_7f301d041e9f.json --tsa-root my-tsa-root.pem
from regent_receipt_verify.bundle import verify_bundle
res = verify_bundle(bundle, receipt_jwks=saved_receipt_jwks, checkpoint_jwks=saved_audit_jwks,
rpc="https://api.devnet.solana.com") # rpc is optional
res.valid, res.events, res.receipt_valid, res.receipt_anchored, res.links_ok, res.rpc_ok
| check | meaning |
|---|---|
| canonical bytes | sha256(payload_canonical) == payload_hash, and the bytes parse to the payload |
| batch proof | payload hash → Merkle proof → batch root |
| checkpoint | Regent's RS256 statement (typ checkpoint+jwt) names this batch: id, seq, root, head |
| epoch proof | batch root → epoch proof → epoch root |
| rfc3161 | the epoch's RFC 3161 token (tsa_token_b64) is CMS SignedData whose TSTInfo names exactly this epoch root under SHA-256, whose signature verifies with the time-stamping certificate it carries, and whose certificate chains to a trusted root and was valid at the certified time; the line shows that time and the signer |
| receipt | verifies, names the bundle's decision, and is byte-for-byte the one inside the anchored receipt event |
| links | consecutive checkpoints chain (prev_head of N == head of N-1); one seq, one checkpoint |
on-chain (--rpc) |
the append and anchor transactions succeeded and carry the root in an instruction to the audit program |
The RFC 3161 token is the clock a bank's auditor already knows how to read: a public Time
Stamping Authority (DigiCert or Sectigo today) signed the epoch root at seal time, so "this root
existed no later than genTime" rests on the TSA's key, not on Regent or on any chain. The two
TSA roots ship with the package (tsa_roots.pem, from the Mozilla root store); --tsa-root
adds your own. A bundle without a token reports nothing for this check; a token that fails any
step makes the bundle INVALID.
Keys default to the ones inside the bundle, which proves consistency; pass the JWKS you saved
(--jwks, --checkpoint-jwks) to prove provenance. The checkpoint JWKS is public at
https://api.regentprotocol.org/v1/audit/.well-known/jwks.json.
Metadata
Release files for regent-receipt-verify 0.9.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| regent_receipt_verify-0.9.0.tar.gz | 43.1 kB | With provenance | Details for regent_receipt_verify-0.9.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| regent_receipt_verify-0.9.0-py3-none-any.whl | Python 3 | none | any | Details for regent_receipt_verify-0.9.0-py3-none-any.whl |
Total release size: 73.3 kB
Release files / regent_receipt_verify-0.9.0.tar.gz
| Download URL | regent_receipt_verify-0.9.0.tar.gz |
|---|---|
| Size | 43.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1571a1a2cfc176eb61071ed5c3ec225be65f3909a6c464a3e800c783c7d8dd50
|
|
BLAKE2b-256 checksum How to use checksums |
972dd525181f7755846787e0288c6c6e4efd9963854930552360f949b4c48216
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 4, 2026.
Transparency logRelease files / regent_receipt_verify-0.9.0-py3-none-any.whl
| Download URL | regent_receipt_verify-0.9.0-py3-none-any.whl |
|---|---|
| Size | 30.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
808c514a919075f3de279f7f126aff8015b6ba49d7d17d77c025bf33b4ea505f
|
|
BLAKE2b-256 checksum How to use checksums |
28cf7eee7eef5ed926be053688be202a820a240440ad6ade6f6a1b8d350ddcd9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 4, 2026.
Transparency logSecurity for regent-receipt-verify 0.9.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for regent_receipt_verify-0.9.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 4, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.