algovoi-tap-verifier
Verify an AlgoVoi TAP receipt offline, with no AlgoVoi software. For the Visa Trusted Agent Protocol ecosystem (trusted-agent-protocol#16, post-authentication receipt signing).
An AlgoVoi TAP receipt is a JCS-canonical (RFC 8785) preimage carrying the two-sided audit fact
(authorization_ref + transaction_hash + timestamp/sequence), a content-addressed receipt_id, an
Ed25519 signature (TAP-native), and optionally a Falcon-1024 post-quantum signature. This
package re-derives receipt_id and checks Ed25519 with only cryptography + rfc8785; install the
pqc extra to also check Falcon-1024.
from algovoi_tap_verifier import verify_tap_receipt
r = verify_tap_receipt(receipt, ed25519_public_key=ed_pub_raw_32_bytes)
assert r.ok
algovoi-tap-verifier receipt.json --ed25519 <b64> # CLI
TAP bilateral receipts (0.2.0)
Also verifies the two-sided shape proposed on
trusted-agent-protocol#16: an
agent-signed authorization receipt plus a merchant-signed outcome receipt, each a
detached JWS over the JCS payload (Ed25519, b64:false), both binding the same TAP request
hash and transaction payload hash, the outcome receipt chained to the authorization. Verified
byte-for-byte against the maintainer's own reference fixtures.
from algovoi_tap_verifier import verify_tap_bilateral
r = verify_tap_bilateral(tap_request=req, authorization=authz, outcome=outcome, keys=keys)
assert r.ok
algovoi-tap-verifier --bilateral --request tap-request.json \
--authz authorization-receipt.json --outcome outcome-receipt.json --keys keys.json
Apache-2.0. Receipt emission (keystone → signed TAP receipts) is a separate commercial AlgoVoi product.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file algovoi_tap_verifier-0.2.1-py3-none-any.whl.
File metadata
- Download URL: algovoi_tap_verifier-0.2.1-py3-none-any.whl
- Upload date:
- Size: 11.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a56fcbb348b093314b166dafebb867f5cd9dc3bc3d1f9b3502345c9931586734
|
|
| MD5 |
bf2c5545e0d716d8aecc1492207b3732
|
|
| BLAKE2b-256 |
2bd9be818bf66c3580b08a907a251969bd3310629e24b3c630d78a1be5f15980
|