1. Byte-compat matrix
Canonical payloads for nested receipt objects, omitted optional fields, empty nested objects, and camelCase wire keys in both SDKs.
PayBot now has an approved Python PR for signed x402 receipt primitives. The next commercial step is an interop readback that freezes the trust contract: canonical JSON bytes, EIP-191 payloads, signer role checks, payer-wallet mismatch behavior, and malformed-signature failures across the TypeScript and Python SDKs.
This packet is built from RBKunnela/paybot-sdk#7, the merged TypeScript receipt contract, and Peter's approved Python proof PR #40.
Canonical payloads for nested receipt objects, omitted optional fields, empty nested objects, and camelCase wire keys in both SDKs.
Facilitator vs payer receipts, expected signer checks, payer wallet mismatch rejection, and what verifiers may trust.
Tamper, short hex, non-hex, missing signature, wrong expected signer, and stale receipt examples with safe API behavior.
PR RBKunnela/paybot-sdk#40 mirrors the signed receipt contract into Python with dataclasses, canonical JSON serialization, EIP-191 signing/verification through eth_account, public exports, and tests for canonicalization, signing, tamper rejection, explicit signer checks, payer-wallet mismatch, and malformed signatures.
e9e72f6 narrows verification exception handling to expected signature decoding/recovery failures.uv run pytest tests/test_receipts.py tests/test_scaffold.py -q -> 32 passed; py_compile and git diff --check passed.The A$2,400 room covers follow-through PRs and review iteration for docs/examples, receipt lookup helper interfaces, CI fixture sharing between TypeScript and Python, and a cross-runtime test harness that stays mock-first and no-spend.
Boundaries stay strict: this packet does not sign wallet messages with Peter's wallet, call paid endpoints, move crypto, request private keys, accept account/platform terms, or promise live settlement traces.