feat: bump x402 profile to 0.2 and sync conformance assets#512
Merged
feat: bump x402 profile to 0.2 and sync conformance assets#512
Conversation
The adapter now uses `peac-x402-offer-receipt/0.2` to reflect the upstream wire-shape changes (DD-169 through DD-172).
Rewrites all 19 existing fixtures and adds 16 new vectors for the upstream wire-sync (DD-169 through DD-172): - offer fixtures: version number, resourceUrl, required scheme, per-offer acceptIndex, discriminated JWS/EIP-712 unions - receipt fixtures: receipt_verification kind with resourceUrl/payer/issuedAt/transaction model (5 vectors) - consistency fixtures: offer-receipt consistency_verification kind with resourceUrl and network matching (3 vectors) - JWS hardening: wrong segment count, padded base64url, non-object payload, oversize compact JWS (4 vectors) - EIP-712 placeholder normalization: validUntil 0, transaction "" (2 vectors) - manifest v0.3.0 with fixture_kinds enum, jws_hardening_rules, consistency_rules, placeholder_normalization sections - explicit kind field on all 35 fixtures with metadata validation - mapping and proof-preservation coverage uses direct tests (not fixture-driven) in the test harness 35 fixtures total (was 19). 68 tests in x402.spec.ts.
Updates X402-PROFILE.md, adapter docs, and example READMEs to reflect the current offer-receipt wire shapes: - profile version 0.2 references throughout - mapping table: resourceUrl, payer, issuedAt, transaction (optional), per-offer acceptIndex, proof preservation notes - error codes table expanded to 25 codes (JWS hardening, receipt verification, consistency, EIP-712 placeholder policy) - conformance fixture inventory updated to 35 vectors - replay protection updated from txHash-based to resourceUrl/payer/issuedAt model - CryptoVerifier and SignerAuthorizer interface documentation - example output updated (removed txHash, added new fields)
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Brings x402 conformance assets and adapter-facing docs in line with the current offer-receipt shapes already implemented in
@peac/adapter-x402.Scope
Conformance fixtures, test harness, and x402-facing docs. Includes one exported profile identifier update to keep code and documentation consistent.
Changes
peac-x402-offer-receiptprofile identifier to0.2kindrouting and metadata validationNotes
Wire compatibility follows current x402 shapes; PEAC-specific normalization and verification policy remain explicit adapter behavior rather than wire redefinition.
Validation
Follow-ups