Skip to main content

Seal

aqta-verify-receipt

PyPI npm Licence

Offline verifier for Seal receipts (ATTESTATION-v1).

Seal signs the model call at runtime. This package checks that signature without contacting Aqta. No account. Same algorithm as the npm package.

30-second check

pip install aqta-verify-receipt
aqta-verify-receipt receipt.json \
  --key 9Y3Eiq6V8QjRDUM5nPqSwKIOPQaoEU4SbagfYFdvWa4

Default output is one compact line (words carry meaning; colour is optional):

✓ valid  ALLOWED  2d41…871e94c  pinned issuer key

Invalid:

✕ invalid  signature mismatch  2d41…871e94c

Optional flourish (never the proof):

aqta-verify-receipt receipt.json --key <pinned> --pretty
# …
◈ seal intact · verified offline

Or pipe:

curl -sS https://api.aqta.ai/r/YOUR_RECEIPT_ID | aqta-verify-receipt - \
  --key 9Y3Eiq6V8QjRDUM5nPqSwKIOPQaoEU4SbagfYFdvWa4
Exit Meaning
0 valid
1 invalid
2 usage / IO

Current production key id: aqta-att-01269bb4b6a7d950 (/v1/attestation/public-key).

Pin that string; do not re-fetch it inside a verify loop. Keys rotate and receipts do not: a receipt verifies against the key current when it was signed, and the permanent key record (with retired keys and their validity windows) is at app.aqta.ai/security/issuer-keys.txt.

Library

from aqta_verify_receipt import verify_receipt, fetch_published_public_key

# Once per environment: fetch, then pin somewhere you control.
trusted = fetch_published_public_key()

result = verify_receipt(receipt, trusted_public_key=trusted)
if not result.valid:
    raise ValueError(result.reason)

CLI

aqta-verify-receipt <file|-> --key <base64url> [--no-strict] [--json] [--pretty] [-q]
aqta-verify-receipt <file|-> --integrity-only [--no-strict] [--json] [--pretty] [-q]
Flag Meaning
--key Pin issuer identity (required for counsel-grade).
--integrity-only Signature vs embedded key only; returns untrusted. Anyone can self-sign.
--no-strict Allow unknown top-level fields
--json One JSON object on stdout
--pretty Optional human flourish after the compact line (not the proof)
-q Silent; exit code only

NO_COLOR=1 disables colour. Meaning never depends on colour alone.

Pinning is required by default. Without --key, pass --integrity-only (embedded key only; anyone can self-sign; result is marked untrusted).

Dependencies

cryptography (>= 42) for constant-time Ed25519. Nothing else.

Transparency proofs

A receipt signature answers what the issuer asserted. It cannot answer whether that entry is in the issuer's log, or whether the log has only ever grown.

from aqta_verify_receipt import verify_inclusion_proof, verify_consistency_proof

result = verify_inclusion_proof(proof)
if not result.valid:
    raise ValueError(result.reason)

RFC 6962 inclusion and consistency verification, plus the signed-tree-head signature. Written separately from the TypeScript implementation rather than ported, and checked against the transparency vectors in the repository.

An inclusion proof establishes that what you were shown is genuinely in the log. It does not establish that what you were not shown is irrelevant. That is omission, and it is open.

What this is not

Not a governance dashboard. Not a cost router. A small verifier for one signed model-call receipt. The novel part is the receipt format and offline verification model, not ASCII theatre.

Licence

Apache-2.0. Aqta Technologies Limited.

If you implement or cite the ATTESTATION-v1 format itself, credit under CC-BY-4.0: see the repo CITATION.cff.

Release files for aqta-verify-receipt 1.2.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aqta-verify-receipt 1.2.3
File Size Uploaded
aqta_verify_receipt-1.2.3.tar.gz 27.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for aqta-verify-receipt 1.2.3
File Interpreter ABI Platform
aqta_verify_receipt-1.2.3-py3-none-any.whl Python 3 none any Details

Total release size: 51.2 kB

Release files / aqta_verify_receipt-1.2.3.tar.gz

Download URL aqta_verify_receipt-1.2.3.tar.gz
Size 27.7 kB
Tags Source
SHA-256 checksum
How to use checksums
5fcd0af3dcfa71cf93814543890b1e2609fe7fca25b5b020cd7e0ee6d5abdad4
BLAKE2b-256 checksum
How to use checksums
139aae8d919f33b7a4aca4bc2b268e0c9f8fb9274f29c6cd7ddb372c5edcb184
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.8

Release files / aqta_verify_receipt-1.2.3-py3-none-any.whl

Download URL aqta_verify_receipt-1.2.3-py3-none-any.whl
Size 23.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bea84f5ea842ef5d728253409fe3c26a91e7eb94c3f92b05e93aa691d4e82952
BLAKE2b-256 checksum
How to use checksums
bf92bf1b076708cd1d5f645ead889c27d35885f688125c2a06610f6dd8e29f31
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.8

Release history Release notifications | RSS feed

1.2.6

2 release files

1.2.5

2 release files

This release

1.2.3 This release

2 release files

1.2.2

2 release files

1.2.1

2 release files

1.2.0

2 release files

1.1.2

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.10

2 release files

1.0.9

2 release files

1.0.8

2 release files

1.0.7

2 release files

1.0.6

2 release files

1.0.5

2 release files

1.0.4

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page