← Bitcoin Encyclopedia

CoinSwap

🌳 Advanced

💡 The Plain-English Definition

CoinSwap is a privacy technique where two Bitcoin users exchange 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 (the privacy technique that combines multiple users’ transactions into one) improves privacy significantly, but a CoinJoin transaction is still recognisable on the blockchain — a transaction with many equal-sized inputs and outputs from multiple parties is a visible pattern, even if the internal links are obscured. CoinSwap takes a different approach: two parties swap coins entirely, so Alice ends up with what was Bob’s Bitcoin and Bob ends up with what was Alice’s. On the blockchain, these appear as two completely normal, separate transactions with no obvious connection. The transaction graph (the record of how Bitcoin flows between addresses) is genuinely broken, not just obscured.

The crucial challenge is enabling this swap without either party having to trust the other. If Alice sends her Bitcoin first, Bob could simply take it and never send his. The solution uses HTLCs (Hash Time-Locked Contracts — conditional payment structures where each side’s payment is locked behind a cryptographic secret that only completes if both sides act within a time window). If one party fails to act, both payments automatically refund. No trust required. As of 2026, CoinSwap remains more complex and less mature than CoinJoin — fewer wallets support it and there’s lower liquidity. It’s a tool for advanced privacy practitioners rather than everyday users, but it represents the direction Bitcoin privacy is heading.

🌍 The Real-World Analogy

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

⚡ So What?

CoinSwap represents the more powerful end of Bitcoin privacy tools — it breaks the transaction graph rather than obscuring patterns within it. For most users today, CoinJoin is more practical. Understanding CoinSwap matters for anyone who needs strong privacy guarantees or wants to understand where Bitcoin privacy technology is heading.

Part of The Bitcoin Encyclopedia 167 terms, plain English, no jargon.