algovoi-retention-chain open source: Apache-2.0 receipt audit layer for AP2 payments (35 vectors, 8-lang cross-validated) + action_ref_exactly_once_v1 + adversarial_isolation_v1 #285
Replies: 2 comments
-
|
v0.2.0 — RFC 9421 support
v0.2.0 adds an optional RFC 9421 (HTTP Message Signatures) layer. One call verifies both the HTTP signature on the receipt-carrying request and the retention chain ref: from algovoi_retention_chain.rfc9421 import verify_signed_chain_link
result = verify_signed_chain_link(
method="POST", authority="api.example.com", path="/receipts",
headers=request_headers, body=request_body,
public_key=issuer_ed25519_pubkey_hex,
chain_ref=receipt["retention_chain_ref"],
prev_receipt_hash=prev_hash, receipt_hash=receipt_hash,
chain_seq=seq, issuer_id=issuer,
)
assert result.signature_valid # RFC 9421 HTTP sig
assert result.chain_ref_valid # chain integrityThe two checks are independent: Conformance: The core primitive, install, and pinning rules are unchanged. If you are pinning to implement the adoption programme checks, |
Beta Was this translation helpful? Give feedback.
-
|
Substrate additions: As we strengthen the L1 for the ecosystem, two new sets are now live in Both sets are released under Apache 2.0. The only condition is the licence's own: retain the NOTICE file on redistribution (Section 4(d)).
Pins the full payment lifecycle: Two invariants that matter for production: SKIP-on-retry. A re-presented Replay binding. Identical Cross-validated across 8 independent RFC 8785 implementations, 48/48 byte-for-byte. Anchored to
Defines the exact inputs a conformant implementation must reject. Each vector mutates exactly one field so you can confirm the named check fires in isolation. The most common cross-implementation mistake: Other rejection cases: negative timestamp, boolean as timestamp, non-hex Claim 1 (input bytes) is 8-lang, 96/96 byte-identical. Claim 2 (rejection) is reference-impl proof-of-rejection only, not an 8-lang byte claim. Anchored to Repo: |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
AlgoVoi has been contributing conformance vectors and cross-impl validation to AP2 over the past few months. This is a follow-on from that work.
We have just open-sourced the substrate layer under Apache-2.0:
pip install algovoi-retention-chainWhat it does
Each x402/AP2 payment receipt carries a single
retention_chain_reffield. Any auditor can recompute and verify the chain with no network access and no AlgoVoi infrastructure. The derivation is:JCS canonicalization is RFC 8785. The specification is IETF Internet-Draft
draft-hopley-x402-retention-chain-01(AlgoVoi, sole authorship, 16 June 2026).Conformance
17 canonical vectors across two published sets (v0: 3 vectors, v1: 14 vectors). Cross-validated byte-for-byte across 8 implementations in 8 languages (Python, TypeScript, Go, Ruby, Rust, C#, Java, Kotlin). 61 byte-level assertions, all passing.
Conformance vectors: https://github.com/chopmob-cloud/algovoi-jcs-conformance-vectors
Why it is relevant to AP2
If you are implementing any payment receipt flow that needs to satisfy MiCA Art. 80, DORA Art. 14, or AMLR Art. 56 record-integrity obligations, the chain ref gives you a client-sovereign, infrastructure-free audit path. It is additive: no changes to the existing receipt schema, one new field.
More releases coming
For anyone already pinning
algovoi-retention-chain==0.1.0, additional vector sets and a mandate-level audit layer are in progress. Expect further releases over the coming weeks.Support offer
If you are building an AP2 receipt layer and want to verify your implementation against the canonical vectors, we are happy to help. AP2 has been a useful community to build alongside and this is a contribution back. Comment here or email chopmob@gmail.com.
AlgoVoi
Beta Was this translation helpful? Give feedback.
All reactions