Buyer-specific PayBot SDK / x402 receipt interop packet

Prove Python and TypeScript sign the same receipt bytes before receipts become reputation rails.

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.

1. Byte-compat matrix

Canonical payloads for nested receipt objects, omitted optional fields, empty nested objects, and camelCase wire keys in both SDKs.

2. Signer-role contract

Facilitator vs payer receipts, expected signer checks, payer wallet mismatch rejection, and what verifiers may trust.

3. Failure fixtures

Tamper, short hex, non-hex, missing signature, wrong expected signer, and stale receipt examples with safe API behavior.

Observed proof

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.

Readback deliverables

Implementation-room add-on

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.

Reference links