• Catalog
  • Blog
  • Tor Relay
  • Jabber
  • Secret Notes
  • Temp Mail
  • Get Tor Browser
  • Crypto
    Technical history of XMR atomic swaps and why Monero's privacy architecture resists trustless exchange protocols

    Atomic swaps are the holy grail of decentralized exchange: a trustless, peer-to-peer way to move between cryptocurrencies without an intermediary holding funds or slashing the fee. Bitcoin can do them cleanly because its script language supports hashlocks and timelocks, and because Bitcoin's secp256k1 curve enables adaptor signatures, the cryptographic trick that lets a secret leak itself only when a transaction is revealed. Monero, the most private cryptocurrency in circulation, has resisted this category of exchange almost since it was invented. This article traces the technical history of XMR atomic swaps: why Monero's design actively fights the atomic swap model, the failed proposals that preceded real implementations, the COMIT network's workaround, and what practitioners actually use today.

    How atomic swaps are supposed to work

    A standard atomic swap relies on a single primitive: conditional execution. On Bitcoin and its descendants, that means scriptable outputs, hashlocked payments (Hash Time-Locked Contracts) and timelocked refunds built on OP_CSV or CLTV. Two parties construct transactions that pay each other only if both reveal the same secret, or that refund after a timeout if the counterparty vanishes. If both cooperate, both swaps settle; if either disappears, each side's refund path eventually matures. The swap is "atomic" because there is no state in which one party keeps the money while the other gets nothing.

    Modern scriptless variants, adaptor signatures (as pioneered by Tadge Dryja for Lightning Network discrete log contracts), let participants swap without putting locking scripts on-chain at all. A party publishes an adaptor signature on a public key; when the counterparty reveals the secret, the adaptor resolves into a valid signature on the destination key. The leaked secret then pays the other side. This removes timelocks entirely and, importantly, leaves ordinary-looking transactions on the blockchain, preserving privacy.

    Why Monero is architecturally hostile to swaps

    Monero breaks every assumption the atomic swap playbook makes. First, it has no scripting language. There are no hashlocks, no conditional outputs, no "pay this only if" logic on-chain. An output is spendable by whoever can produce a valid signature against a specific key, which brings the second problem: Monero does not use ordinary Schnorr or ECDSA signatures for single-signature spends. It uses ring signatures (specifically the MLSAG scheme, later CLSAG), where a spend proves membership in an anonymity set of fifteen decoy inputs without revealing which one is real. Third, Monero lives on ed25519 / edwards25519, not secp256k1, the curve Bitcoin, Ethereum, and Litecoin use, so a key pair on Monero does not even correspond to a valid key pair on the Bitcoin side. Fourth, stealth addresses mean there is no stable "payment address" to lock funds to; every output is a one-time key, and outputs cannot even be spent while unconfirmed because RingCT's key-image anti-double-spend scheme requires confirmed outputs.

    The consequence is stark: Monero has no way to express "refund after N blocks if counterparty X doesn't show up." Its timelock implementation exists but is incompatible with the atomic swap requirement, a Monero timelock prevents anyone from spending until expiry rather than enabling a sender-refund path, and unconfirmed-output spending restrictions prevent the classic pre-broadcast refund dance. As early as 2017, Bitcoin StackExchange answers and the monero-project research lab were already concluding that vanilla HTLC-style swaps were impossible on Monero without protocol changes.

    The failed proposals that came first

    Before a working protocol existed, the community produced a string of academic proposals that each foundered on Monero's constraints.

    The earliest discussions (2017-2018) centered on multisignature-based swaps, putting XMR into a 2-of-2 construction that could be jointly released, but Monero's ring signatures make per-output multisig meaningless: a "multisig" spend still has to embed itself in a ring, and refund paths still cannot be expressed. Monero Research Lab published "Thring Signatures" (MRL-0009, November 2018) by Goodell and Noether, proposing threshold ring signatures to enable spender-ambiguous atomic swaps without a trusted setup. The paper proved the concept cryptographically but was never implemented in Monero's transaction format.

    A second wave came from Monero Research Lab again: the Dual Linkable Spontaneous Anonymous Group Signature (DLSAG) scheme, published by Moreno-Sanchez, Blue, Le, Noether, Goodell, and Kate (IACR ePrint 2019/595, updated 2020). DLSAG introduced non-interactive refund transactions natively compatible with Monero's linkable ring signatures, explicitly marketed as enabling "atomic swaps and interoperable payments with virtually all cryptocurrencies." Despite being evaluated as practical, computation and communication comparable to the existing scheme, it remains a research artifact. It would require a Monero protocol upgrade to deploy, and the Monero project has historically been extremely conservative about consensus-level changes to protect privacy properties.

    A third path, PayMo (IACR ePrint 2020/1441), proposed payment channels and, as a byproduct, scriptless atomic swaps compatible with Monero's existing signature scheme using a "verifiable timed linkable ring signature." PayMo demonstrated ~93,500 off-chain payments in two minutes in testing, but like DLSAG it requires changes outside a vanilla Monero node and has not shipped as a deployed swap service.

    Meanwhile, a 2018-2019 CCS proposal to the Monero community (funding ECDSA adaptor signatures and cross-group discrete-log proofs) stalled in milestone planning, the Monero project's cautious review process, combined with the sheer cryptographic complexity, kept it from reaching mainnet.

    COMIT and the Farcaster breakthrough

    The first working answer came from outside the Monero core, led by the COMIT Network and researcher Joël Gugger (h4sh3d). COMIT learned at the 36C3 conference in late 2018 that a swap could be built using timelocks on only one chain, the arbitrating chain, while the other chain plays a passive role.

    Gugger published the Bitcoin-Monero Cross-chain Atomic Swap paper (IACR ePrint 2020/1126), which uses ECDSA adaptor signatures on the Bitcoin side plus two proofs of knowledge of equal discrete logarithms across edwards25519 and secp256k1, plus a one-time verifiable encryption scheme, to make the protocol work despite Monero lacking scripts, timelocks, and Schnorr signatures. His design splits the Monero spend key into two secret shares exchanged via the adaptor mechanism, so revealing one share on the Bitcoin side cryptographically commits to the Monero spend.

    COMIT then simplified Gugger's protocol (removing one Bitcoin transaction) and hit a race condition between redeem and refund paths caused by Bitcoin's non-instant finality, a subtlety only visible once you deeply understand both chains. Their final design kept timelocks entirely on Bitcoin (2-of-2 multisig scripts plus transaction-level CSV timelocks) while Monero used only off-chain primitives. The XMR side ends up looking like two ordinary Monero transactions; all the "logic" lives in Bitcoin script and in the off-chain cryptographic dance. The COMIT repository (comit-network/xmr-btc-swap) shipped an MVP implementing the protocol, and Unstoppable Swap later productized it into a usable GUI application, the basis of what users today know as eigenwallet.

    The persistent limitations of the COMIT approach

    The COMIT protocol works, but its constraints explain why XMR atomic swaps remain a niche tool rather than a mainstream venue. First, it is BTC↔XMR only, the cross-curve DLEQ proofs and curve-specific adaptor math are hard-coded to the secp256k1↔ed25519 pairing. Swaps to ETH, LTC, or any other chain require bespoke re-derivation. Second, every participant must run both a Bitcoin node (or at least a full Bitcoin infrastructure path) and a Monero node; there is no way to do the swap against remote/light nodes without leaking metadata. Third, transactions are slow, a swap takes tens of minutes to hours as confirmations accumulate on both chains, because the refund path must outlive any possible reorg window. Fourth, liquidity is bilateral and thin: you need a counterparty willing to swap the exact amount, which makes larger trades impractical and price discovery poor. Fifth, the cryptographic setup is fragile, key share exchange, DLEQ proof verification, and adaptor signature handling are all places where implementation bugs could lose funds, which is why early versions demanded extreme care.

    Where things stand in 2026

    The ecosystem has matured unevenly. eigenwallet (formerly Unstoppable Swap) remains the reference implementation for BTC↔XMR atomic swaps, now coupled with a GUI Monero wallet under a Monero Community Crowdfunding System grant that ran through 2025. BasicSwap offers atomic swaps across many coins including Monero, using the COMIT protocol family with a self-hosted DEX interface, powerful but requiring both full nodes on one machine. Haveno (the RetoSwap network) provides a Tor-based P2P exchange secured by 2-of-3 multisig rather than true atomicity. Separately, community projects like Serai and the hbs EVM atomic swaps effort (deployed on Gnosis Chain as of 2025) attempt Monero↔EVM swaps via smart contracts, avoiding the need for a long-lived local swap daemon.

    Academic work continues to push the boundary. The PayMo authors' verifiable timed linkable ring signature, DLSAG, and thring signatures all point toward a future where Monero could natively express conditional spends, but none has reached consensus.

    What most people actually use instead

    Because true atomic swaps are slow, technical, and illiquid, the practical market for XMR liquidity runs through three alternatives:

    Instant exchangers. Services like ChangeNOW, FixedFloat, Exch (when operating), Cake Wallet's built-in swap, and the Trocador aggregator route XMR→BTC (and back) through liquidity pools or their own books. They are fast and simple but custodial or quasi-custodial: the exchanger sees both sides of the swap, can hold "suspicious" orders for KYC, charges a spread, and represents a counterparty risk that atomic swaps were designed to eliminate.

    Centralized exchanges. Kraken, KuCoin, and others list XMR/BTC pairs. Deep liquidity and instant settlement, at the cost of KYC, account risk, and exchange surveillance of deposit/withdrawal flows.

    Peer-to-peer and escrow. LocalMonero shut down, but Haveno, Bisq, and traditional P2P desks with escrow fill the gap, faster than atomic swaps, with multisig escrow providing partial (not full) trustlessness.

    Atomic swaps vs. alternatives: the trade-off table

    MethodTrust modelSpeedPrivacyLiquidityTechnical barrier
    XMR-BTC atomic swap (COMIT/eigenwallet)Trustless30 min - several hoursHigh (no third party)Low, bilateralHigh, two full nodes, careful key handling
    BasicSwap atomic swapTrustlessSimilar to aboveHighLow-mediumHigh, self-hosted DEX, full nodes
    Instant exchanger (ChangeNOW, Trocador, etc.)Custodial/quasi-custodialMinutesMedium, exchanger sees both legsHighLow
    Centralized exchangeCustodial + KYCInstantLow, full transaction visibility to exchangeVery highLow
    Haveno / Bisq P2PMultisig escrow (partial trust)Hours-daysMedium-high (Tor-based)MediumMedium

    The honest verdict

    XMR atomic swaps exist, work, and represent a genuine cryptographic achievement, compressing what should require scripting and timelocks into off-chain proofs and a Bitcoin-side HTLC. But they remain a specialist tool: slow, illiquid, and demanding of both participants. For most users moving between XMR and other assets, instant exchangers or CEXs dominate on convenience while P2P markets dominate on privacy-per-effort. The deeper story is that Monero's privacy is not merely inconvenient for atomic swaps, it is constitutionally opposed to them. Until Monero's consensus layer adopts something like DLSAG or a PayMo-style scheme, every XMR swap will remain a workaround rather than a primitive. For readers exploring Monero's privacy architecture in depth, our deep dive into ring signatures, RingCT, and stealth addresses explains exactly why the signature scheme that powers Monero's anonymity is the same one that blocks conditional execution. Our earlier practical guide to XMR-BTC atomic swaps covers the how-to side, and the Bitcoin vs Monero comparison frames why anyone would want this exchange in the first place.

    Legal and safety note: Atomic swaps themselves are legal software, but they are frequently used to move funds without KYC. Depending on jurisdiction, using privacy coins or non-KYC swap services can trigger AML obligations, tax reporting requirements, or sanctions exposure. Instant exchangers and some atomic swap frontends may be sanctioned or restricted in your country, check local law before use. Never run swap software you don't understand, verify contract addresses and open-source code, and remember that "trustless" refers to the swap mechanics, not to the safety of the software implementing them.

    Author OnionInfoDesk
    Monero Atomic Swaps: XMR-BTC Trustless Exchange Guide
    Monero Privacy Internals: Ring Signatures, RingCT, and Stealth Addresses
    Bitcoin vs Monero: Which Cryptocurrency Is More Private
    What Is Monero? Why XMR Is the Most Private Cryptocurrency

    Comments 0

    Add comment