Monero keeps getting delisted from exchanges. ICP can’t custody XMR, and it doesn’t need to.
ProofSwap is a P2P swap design: a canister escrows only the ck-token leg (any ICRC token). The XMR seller pays on Monero and submits an OutProof (get_tx_proof). The canister fetches the transaction from k Monero nodes via HTTPS outcalls, requires t-of-k agreement after a deterministic transform, recomputes the txid and verifies the proof with a no_std port of Monero’s own check_tx_proof. No bridge, no ckXMR, no arbitrator.
What runs today (stagenet, local replica only):
- Verifier crate agrees with Monero’s check_tx_proof on all 11 real stagenet vectors (incl. negatives)
- Outcall layer: transform is byte-identical across 17 kinds of volatile variation in recorded node responses; only mined txs accepted (in-pool ⇒ retry), so replicas can’t split on pool→mined
- Cost per outcall measured with the replica’s cost_http_request_v2 (13-node subnet): ~65M cycles, ~196M per check with k=3
Where I’d like input:
- Only one public stagenet node currently serves get_transactions over HTTPS with a valid certificate. How do you pick k independent nodes for a canister that must not trust any single one?
- Responses carry the blob twice as hex (~4× blob size). Any experience pushing max_response_bytes (we set 604096 for the p99 tail) on a 13-node subnet?
- Known weak spot: the OutProof proves what a tx pays, not that it’s valid or mined. That rests on the t-of-k node quorum (SPEC §10). Better ideas welcome.
MIT, spec + code: https://github.com/n1c0la5-lab/proofswap
Research prototype, stagenet and test tokens only, not audited.