CoinJoin is a Bitcoin privacy technique that combines multiple users' transactions into a single transaction, breaking the common-input-ownership heuristic (CIOH) that blockchain analysts use to trace funds. Unlike centralized mixers that pool and redistribute funds, CoinJoin is collaborative, participants jointly construct a transaction where each receives an equal output, making it impossible to determine which input funded which output. It is one of the most important privacy tools in the Bitcoin ecosystem and a fundamental alternative to Monero for users who prefer to stay on Bitcoin.
How CoinJoin works
The common-input-ownership heuristic is the foundation of Bitcoin blockchain analysis. The assumption is simple: if multiple inputs appear in the same transaction, they are likely controlled by the same entity. This heuristic enables address clustering, grouping addresses that belong to the same user, and transaction tracing, following funds from one address to another.
CoinJoin breaks this assumption by having multiple independent participants contribute inputs to a single transaction. Each participant provides an input (typically a UTXO of similar value) and receives an output of equal denomination at a fresh address. Because every output is identical in value, an analyst cannot determine which input funded which output.
The process works as follows: participants register their inputs and output addresses with a coordinator (either centralized or decentralized). The coordinator assembles a transaction containing all inputs and equal outputs. Each participant verifies that their input and output are correctly represented, then signs the transaction. Once all signatures are collected, the transaction is broadcast. No single participant could have constructed the transaction alone, and no single party knows the complete mapping of inputs to outputs.
The implementations
Wasabi Wallet uses the WabiSabi protocol, a centralized coordinator model. Users connect to Wasabi's coordinator server, which assembles CoinJoin transactions. The coordinator cannot link inputs to outputs because users reconnect through Tor after registering, and cryptographic credentials (blinded tokens) prevent the coordinator from correlating the registration with the signing phase. Wasabi charges a small fee for coordination.
Samourai Wallet offers Whirlpool, another centralized coordinator model. Whirlpool uses a similar approach to WabiSabi, users register inputs and outputs, the coordinator assembles the transaction, and participants sign independently. Samourai's founders were charged in 2024 with unlicensed money transmission, raising questions about the legal status of CoinJoin coordination services.
JoinMarket uses a decentralized marketplace model. Instead of a centralized coordinator, JoinMarket has an orderbook (currently over IRC) where "makers" advertise offers to provide liquidity and "takers" pay fees to use that liquidity. Makers contribute inputs and outputs to CoinJoin transactions, earning fees from takers. This model creates a free market for mixing liquidity and avoids reliance on a single coordinator.
The privacy guarantees
CoinJoin provides strong privacy guarantees against common blockchain analysis techniques. By breaking the common-input-ownership heuristic, it prevents address clustering and makes transaction tracing significantly harder. An analyst who sees a CoinJoin transaction with five inputs and five equal outputs cannot determine which output belongs to which input.
However, CoinJoin is not perfect anonymity. Several limitations remain. Timing analysis can sometimes link inputs to outputs if participants join and leave at different times. Amount analysis can reveal information if participants contribute different amounts or receive different change. Network analysis can identify participants if they use identifiable Tor exit nodes or fail to use Tor at all.
The size of the anonymity set matters. A CoinJoin with two participants provides k=2 anonymity, better than nothing but still weak. A CoinJoin with 50 participants provides k=50 anonymity, significantly stronger. The larger the anonymity set, the harder it is for analysts to make educated guesses about input-output mapping.
CoinJoin versus centralized mixers
CoinJoin differs fundamentally from centralized mixers like Tornado Cash or Blender.io. Centralized mixers pool funds from many users and redistribute them, creating a timing-based anonymity set. CoinJoin is collaborative, participants jointly construct a transaction, and no funds ever leave their control until the transaction is broadcast.
This distinction has legal implications. Centralized mixers have been sanctioned (Tornado Cash by OFAC in 2022) and prosecuted (Blender.io operators arrested). CoinJoin, because it is collaborative rather than custodial, has generally been treated more favorably by courts, though the Samourai founders' prosecution shows that legal gray areas remain.
CoinJoin also differs from Monero, which provides privacy at the protocol level. Monero transactions are private by default, amounts, addresses, and transaction graph are all hidden. CoinJoin provides privacy at the transaction level, individual transactions are obfuscated, but the overall transaction graph remains visible. Users who want maximum privacy may prefer Monero; users who want to stay on Bitcoin may prefer CoinJoin.
The legal landscape
CoinJoin's legal status is complex and evolving. In most jurisdictions, CoinJoin is legal because it is a privacy-enhancing technique that does not involve custody of funds. Users retain control of their coins throughout the process, and the collaborative nature means no single party can steal funds.
However, the Samourai founders' prosecution in 2024 charged them with unlicensed money transmission, arguing that their coordination service constituted money transmission under U.S. law. This case could set a precedent for how CoinJoin coordinators are regulated, though it does not affect individual users who run their own CoinJoin transactions.
The legal landscape also varies by jurisdiction. Some countries may view CoinJoin as a money laundering tool, while others may see it as a legitimate privacy technique. Users should understand their local laws before using CoinJoin, though the technique itself is widely available and used by privacy-conscious Bitcoin holders.
The limitations in detail
CoinJoin's privacy guarantees are strong but not absolute. The most significant limitation is the persistence of the transaction graph. While CoinJoin breaks the link between specific inputs and outputs, it does not hide the fact that a CoinJoin transaction occurred. Analysts can still see that a group of participants engaged in a mixing transaction, which itself may be incriminating.
Timing analysis is another weakness. If a user joins a CoinJoin at a specific time and receives their output shortly after, an analyst may be able to correlate the timing with other known transactions. Using Tor and waiting between CoinJoin and subsequent transactions can mitigate this, but it requires discipline.
Amount analysis can also reveal information. If participants contribute different amounts or receive different change outputs, an analyst may be able to match inputs to outputs by value. Standardized CoinJoin transactions with equal inputs and outputs minimize this risk, but they are not always practical.
The practical use cases
CoinJoin is primarily used by Bitcoin holders who want to improve their privacy without switching to another cryptocurrency. Common use cases include breaking the link between past and future transactions, obfuscating the source of funds, and protecting against blockchain surveillance.
Wasabi and Samourai wallets integrate CoinJoin directly, making it accessible to non-technical users. JoinMarket is more technical but offers more control and potentially better privacy through its decentralized model. Advanced users can also run their own CoinJoin transactions manually, though this requires significant technical expertise.
For darknet market users, CoinJoin can help break the link between Bitcoin purchases and subsequent transactions. However, most darknet markets now prefer Monero for its stronger privacy guarantees, making CoinJoin less relevant for market transactions. CoinJoin remains valuable for users who want to transact on Bitcoin while maintaining reasonable privacy.
How to use CoinJoin
For most users, the easiest way to use CoinJoin is through a wallet that integrates it. Wasabi Wallet and Samourai Wallet both offer built-in CoinJoin functionality, users simply enable the feature and the wallet handles the coordination automatically.
JoinMarket is more technical but offers more control. Users need to run a JoinMarket client, connect to the IRC orderbook, and either offer liquidity as a maker or pay for mixing as a taker. The learning curve is steeper, but the decentralized model avoids reliance on a centralized coordinator.
Advanced users can also construct CoinJoin transactions manually using Bitcoin Core or other tools, though this requires significant technical expertise. For most users, the integrated wallet approach is sufficient and significantly safer than attempting manual CoinJoin construction.
The future of CoinJoin
CoinJoin continues to evolve as new implementations and protocols emerge. The WabiSabi protocol has improved upon earlier CoinJoin designs by adding more flexibility in input and output amounts. JoinMarket's marketplace model continues to attract users who prefer decentralized coordination.
The legal landscape will shape CoinJoin's future. If the Samourai prosecution establishes that CoinJoin coordination constitutes money transmission, centralized coordinators may be forced to shut down or relocate. Decentralized models like JoinMarket may become more attractive as they avoid the centralized coordinator that is the target of legal action.
CoinJoin's place in the privacy landscape is secure, it is a proven technique that has been used by thousands of Bitcoin holders and is likely to remain a staple of Bitcoin privacy for years to come. Whether it can compete with Monero's protocol-level privacy is a different question, but for users who prefer Bitcoin, CoinJoin offers a compelling middle ground between transparency and privacy.
The Bitcoin Wiki CoinJoin article, Bitcoin Magazine JoinMarket analysis, Peter Todd CoinJoin comparison, and COLDCARD CoinJoin guide are the primary sources. For related coverage, see our mixers guide and the Bitcoin vs Monero comparison.
Comments 0