x402
x402 copied to clipboard
#515 scheme_exact_evm.md needs to specify encoding rules
Title
Specify encoding rules for hex vs decimal in PaymentPayload
Description
This PR updates scheme_exact_evm.md to clearly define the acceptable encoding formats for fields in PaymentPayload.
Specifically:
signature,toandfromare now explicitly defined as hex-encoded fields.nonce,value,validFrom, andvalidToare defined as hex-encoded or decimal-encoded fields, depending on the prefix.
It is also specified, that leading zeroes may omitted for nonce, value, validFrom, and validTo.
This clarification ensures consistent interpretation of payloads across implementations and avoids ambiguity when encoding or decoding payment data.
Tests
- Verified consistency of
PaymentPayloadencoding with existing documentation examples. - Manually reviewed all affected references in
scheme_exact_evm.mdfor accuracy and clarity. - Confirmed that example payloads follow the specified encoding rules.
Checklist
- [x] I have formatted and linted my code
- [x] All new and existing tests pass
- [x] My commits are signed (required for merge)
🟡 Heimdall Review Status
| Requirement | Status | More Info | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Reviews |
🟡
0/1
|
Denominator calculation
|
@kladkogex is attempting to deploy a commit to the Coinbase Team on Vercel.
A member of the Team first needs to authorize it.