Training Settlement

Wallet-connected settlement console for the Rapha Protocol training economy on Polygon mainnet. AI companies: connect wallet, approve USDC to RaphaClearingVault, deposit escrow against an active RaphaNodeNFT token, and submit settlement proofs after training completes.

The clearing vault verifies the trusted attestor signature on the proof digest (encoding jobId, nodeTokenId, AI company wallet, and payload hash), then atomically splits escrow: 70% hospital treasury, 20% node NFT owner, 5% onboarder, 5% Rapha Protocol treasury. Built-in replay protection prevents double settlement.