CoinSwap
Two parties swap outputs through contracts so the chain shows no link between them.
Basically
CoinSwap lets you exchange bitcoin with another person through separate payments. The payments look unrelated on the blockchain, so tracing your coins is harder.
Key Takeaways
- CoinSwap is a Bitcoin privacy protocol where two parties atomically exchange UTXOs through separate, unlinked transactions that appear as ordinary payments on-chain. Unlike CoinJoin, it does not combine inputs into a single detectable transaction.
- The protocol uses cryptographic primitives such as HTLCs or adaptor signatures to guarantee atomicity. Either both sides of the swap complete or neither does, with no trust required.
- CoinSwap offers the strongest on-chain unlinkability among Bitcoin privacy techniques. The trade-off is higher on-chain fees and the overhead of multiple transactions.
What Is CoinSwap?
CoinSwap is a privacy protocol for Bitcoin that allows two parties to exchange ownership of their coins through separate, independent transactions. Greg Maxwell proposed it in 2013 with a simple core idea: if Alice and Bob each send Bitcoin to the other in separate transactions, a blockchain observer sees two unrelated payments rather than a single mixing transaction. This breaks the on-chain link between your old coins and new coins.
CoinSwap transactions look identical to ordinary single-party payments, unlike CoinJoin, which merges multiple users' inputs into one large transaction with equal-sized outputs. There is no special transaction structure for chain analysis firms to flag. The swap participants simply appear to be sending normal payments to unrelated addresses.
CoinSwap remained largely theoretical for years because of its implementation complexity. In 2020, Bitcoin developer Chris Belcher published a detailed design document and began building Teleport Transactions, bringing CoinSwap closer to practical use.
How It Works
A basic CoinSwap involves two parties who want to break the transaction graph linking their coins. The process combines multisig escrow addresses and cryptographic locks to ensure atomicity.
The process produces four transactions in total: two funding transactions and two spending transactions. On-chain, these appear as unrelated payments. An observer sees Alice send coins to one address and later receive coins from a completely different address, with no visible connection between the two events.
Private Key Handover
Private key handover is an optimisation that can reduce the number of on-chain transactions. Instead of both parties creating spending transactions from the multisig, they exchange the private keys directly after the atomic swap completes. Each party can then spend from the other's multisig at any time without additional on-chain activity, reducing fees and improving privacy by leaving fewer footprints.
Adaptor Signatures vs. HTLCs
CoinSwap can use two different cryptographic mechanisms for atomicity: HTLCs or adaptor signatures. Both mechanisms ensure that either both sides of the swap complete or neither does.
Belcher's design originally used ECDSA-2P, or two-party ECDSA, to make the 2-of-2 multisig addresses indistinguishable from regular single-signature addresses. This maximises the anonymity set because the swap addresses blend in with every existing pay-to-witness-public-key address on the network. More recent implementations also support Taproot with MuSIG2 for the same effect using the key-path spend.
Multi-Hop Routing
CoinSwap supports multi-hop routing similar to onion routing for stronger privacy. Instead of swapping directly with one counterparty, Alice routes the swap through multiple intermediate makers.
Multi-hop routing means that even if one maker is compromised or cooperates with an analyst, they cannot determine the origin or destination of the coins. A minimum of three or more colluding makers would be needed to deanonymise a swap. Fidelity bonds make such attacks economically prohibitive.
CoinSwap vs. Other Privacy Techniques
Bitcoin offers several privacy techniques, each with different trade-offs. CoinSwap provides stronger unlinkability than CoinJoin but requires multiple transactions, while PayJoin and Silent Payments are more mature alternatives.
The research article on Bitcoin privacy and transaction graph privacy defences provides a deeper analysis of these approaches. You can use it to compare how the different techniques protect your transaction history.
Teleport Transactions and Current Implementations
Chris Belcher began building Teleport Transactions, originally called Teleport CoinSwap, in 2020 to make CoinSwap practical for everyday Bitcoin users. The project uses a maker/taker model inspired by JoinMarket's CoinJoin implementation.
Active development continues under the Citadel-Tech organisation on GitHub, with OpenSats funding. As of 2026, the implementation includes CLI tools, makerd and taker, a GUI application, fidelity bond support, and Taproot with MuSIG2 contract types. The software supports testnet4 and includes integration testing, though mainnet use is not yet recommended for production funds.
Breaking Transaction Graph Links
CoinSwap primarily improves fungibility by breaking the on-chain transaction graph. When coins pass through a CoinSwap, their history is effectively severed. This helps you prevent merchants, employers, or other parties from tracing your financial history through chain analysis.
High-Value Privacy
CoinSwap provides stronger unlinkability than CoinJoin, making it particularly suited to situations where privacy is critical. Multi-hop routing ensures that no single counterparty can connect your old and new coins, even under coercion.
Improving Network-Wide Privacy
CoinSwap improves privacy for all Bitcoin users, not just swap participants. Because CoinSwap transactions look like ordinary payments, an analyst can never be certain that any given transaction is not a CoinSwap. This creates doubt about the reliability of transaction graph analysis across the entire network.
Higher On-Chain Fees
A single CoinSwap requires multiple on-chain transactions, typically four for a basic swap and more with multi-hop routing. These costs can be significant during periods of high fee market activity. CoinJoin, by contrast, batches participants into a single transaction and shares the fee burden.
Amount Correlation
An analyst may correlate the amounts if Alice swaps exactly 1.5 BTC and receives exactly 1.5 BTC, minus fees, shortly after. CoinSwap implementations mitigate this by splitting outputs across multiple transactions. For example, they can return 1.5 BTC as three separate UTXOs of varying sizes at different times.
Sybil Attack Risk
An adversary could run many maker nodes to increase the chance of controlling all hops in a multi-hop swap. If the adversary controls every maker in the route, they can link the taker's old and new coins. Fidelity bonds address this by requiring makers to lock Bitcoin in time-locked outputs to prove economic commitment, making large-scale Sybil attacks prohibitively expensive.
Liveness Requirements
Both parties must remain online during the swap process. If a maker goes offline mid-swap, the taker must wait for the timelock to expire before recovering their funds. This can take hours or days depending on the configured timelock values, creating a poor user experience compared with instant CoinJoin rounds.
Maturity and Adoption
CoinSwap implementations are still in active development and are not yet recommended for mainnet use with significant funds. You may prefer more mature solutions such as PayJoin or Silent Payments while CoinSwap tooling continues to mature. The research on PayJoin and Silent Payments provides background on these alternatives.
This glossary entry is for informational purposes only and does not constitute financial or investment advice. Always do your own research before using any protocol or technology.