Skip to main content

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

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

algovoi_tap_verifier-0.2.1-py3-none-any.whl (11.0 kB view details)

Uploaded Python 3

File details

Details for the file algovoi_tap_verifier-0.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for algovoi_tap_verifier-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a56fcbb348b093314b166dafebb867f5cd9dc3bc3d1f9b3502345c9931586734
MD5 bf2c5545e0d716d8aecc1492207b3732
BLAKE2b-256 2bd9be818bf66c3580b08a907a251969bd3310629e24b3c630d78a1be5f15980

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.2.1 This release

1 file

0.1.0

2 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