x402 icon indicating copy to clipboard operation
x402 copied to clipboard

#515 scheme_exact_evm.md needs to specify encoding rules

Open kladkogex opened this issue 2 months ago • 2 comments

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, to and from are now explicitly defined as hex-encoded fields.
  • nonce, value, validFrom, and validTo are 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 PaymentPayload encoding with existing documentation examples.
  • Manually reviewed all affected references in scheme_exact_evm.md for 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)

kladkogex avatar Oct 27 '25 14:10 kladkogex

🟡 Heimdall Review Status

Requirement Status More Info
Reviews 🟡 0/1
Denominator calculation
Show calculation
1 if user is bot 0
1 if user is external 0
2 if repo is sensitive 0
From .codeflow.yml 1
Additional review requirements
Show calculation
Max 0
0
From CODEOWNERS 0
Global minimum 0
Max 1
1
1 if commit is unverified 0
Sum 1

cb-heimdall avatar Oct 27 '25 14:10 cb-heimdall

@kladkogex is attempting to deploy a commit to the Coinbase Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] avatar Oct 27 '25 14:10 vercel[bot]