feat(adapter): track current x402 offer-receipt extension#511
Merged
feat(adapter): track current x402 offer-receipt extension#511
Conversation
Raw wire types now follow the current x402 offer-receipt shapes. JWS and EIP-712 artifacts use discriminated unions. Verification is split into wire, offer, receipt, and consistency checks. Record mapping preserves raw proofs and produces normalized evidence fields.
This was referenced Mar 13, 2026
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
Update
@peac/adapter-x402to track the current x402 offer-receipt extension at the raw wire layer. The adapter keeps PEAC's normalization, verification helpers, and record mapping above that wire format without changing x402 payload semantics.Scope
@peac/adapter-x402sourceNo kernel, schema, protocol, or other adapter source changes.
What changed
payloadat the envelope levelx402 compatibility
signatureremains the field name for both JWS and EIP-712 artifactsoffer-receiptremains the extension keyAdapter policy surfaces
These behaviors are adapter-level and are separate from x402 wire semantics:
API changes
versionis now numericresourceUrl,payer,issuedAt, andtransactionoffers[]acceptIndexis per-offerAcceptEntry.schemeis requiredAcceptEntry.settlementis removedX402OfferReceiptChallengeis a post-extraction convenience type, not the upstream wire messageValidation
Not included
Follow-ups