caelum0x dc88a1f91f fix(solana): payer binding was never enforced on Solana payment verification
The EVM and Zcash on-chain verifiers both enforce the session's declared
`payer` and `notBefore` bindings (packages/chains/src/evm-verifier.ts,
settlement.ts). The Solana verifier (packages/solana/src/x402-verifier.ts,
verify.ts) read neither field, even though payment-verification.ts's
sessionCheck() passes both to every network's verifier identically.

Concretely: a checkout session created with a declared payerAddress (the
pre-authorized-wallet / recurring on-chain-billing flow in
apps/api/src/routes/onchain-billing.ts) accepted a Solana payment of the
right amount to the right address from ANY wallet, not just the declared
payer - the exact binding EVM/Zcash already enforce.

Add payer + notBefore to VerifySplTransferParams/evaluateSplTransfer and
wire them through createSolanaPaymentVerifier, matching the EVM verifier's
semantics (fail closed, including when a tx has no on-chain block time).
The route-provider "routedFill" path (no Solana Pay reference) already has
its own independent notBefore check in
apps/api/src/config/verifier-registry.ts's verifyRoutedSolanaFill, which
bypasses this adapter and is unaffected.

28 solana-package tests pass (8 new), plus full chains (211) and api (231)
suites green; tsc --noEmit clean on both packages.
2026-10-26 22:42:47 +03:00
..