How It Works — Step by Step
1. Market created — TEE generates PREIMAGE-SHA-256 conditions (YES / NO)
- Only conditions (hashes) stored in DB — preimages sealed in SGX
2. Participants bet — EscrowCreate with condition + CancelAfter
- Standard XRP wallet, native transaction, no bridge
3. Deposits scanned — XRPL ledger monitored for escrows to market address
4. Event resolves — UMA Oracle determines outcome
5. TEE releases fulfillments — EscrowFinish collects ALL escrows (both sides)
6. Payouts sent — losers' funds redistributed pro-rata to winners in native XRP
7. If market NOT resolved — CancelAfter triggers, ALL funds auto-return (safety net)