← Bitcoin Encyclopedia

CoinSwap

🌳 Advanced

💡 The Plain-English Definition

CoinSwap is a privacy technique where two Bitcoin users swap coins with each other — each ending up with bitcoin that has a completely different transaction history — without trusting each other or using a custodian (a third party that holds your funds).

🤔 But Why Though?

CoinJoin (which combines several users’ transactions into one) improves privacy a lot, but a CoinJoin transaction is still recognisable on the blockchain — many equal-sized inputs and outputs from multiple parties is a visible pattern, even if the internal links are hidden. CoinSwap takes a different approach: two parties swap their coins outright, so Alice ends up with what was Bob’s bitcoin and Bob ends up with what was Alice’s. On the blockchain, these look like two completely normal, separate transactions with no obvious connection. The transaction graph (the record of how bitcoin flows between addresses) is genuinely broken, not merely blurred.

The crucial challenge is making the swap work without either party trusting the other. If Alice sends her bitcoin first, Bob could just take it and never send his. The fix uses HTLCs — Hash Time-Locked Contracts, conditional payments where each side’s coins are locked behind a shared secret, and the swap only completes if both sides act within a time window. If one party doesn’t act, both payments refund automatically. No trust required.

As of 2026, CoinSwap is still more complex and less mature than CoinJoin — fewer wallets support it, and there’s less liquidity. It’s a tool for advanced privacy users rather than everyday ones, but it points to where Bitcoin privacy is heading.

🌍 The Real-World Analogy

Imagine two people each wanting to swap £50 notes — one whose note came from a known criminal (a problem), one whose came legitimately. They agree on a method where neither hands over their note first: each seals their note in a box, they swap the sealed boxes at the same moment, and open them together. If either box turns out empty, both deals cancel automatically. Both walk away with a different note, and no observer can tell the exchange happened.

⚡ So What?

CoinSwap sits at the more powerful end of Bitcoin privacy tools — it breaks the transaction graph rather than hiding patterns within it. For most people today, CoinJoin is more practical. Understanding CoinSwap matters if you need strong privacy guarantees, or want to see where Bitcoin privacy technology is going.

📩 The Daily Bit · free

Get one plain-English Bitcoin email each morning.

The Daily Bit — free, two minutes, unsubscribe anytime.

The Bitcoin EncyclopediaPrefer a book? The Bitcoin Encyclopedia