CoinJoin is the most widely deployed privacy technique on Bitcoin today, and it works without any protocol change, no trusted third party holding funds, and no new cryptography beyond what Bitcoin already uses. The idea is almost embarrassingly simple: many independent users combine their inputs into a single ordinary transaction and receive equal-sized outputs at fresh addresses, so an outside observer can see that a transaction happened but cannot reliably say which output belongs to which participant. The complexity lives entirely in coordination, getting strangers to build, sign, and broadcast one transaction together without any of them being able to cheat the others. This deep-dive covers the mechanics of a CoinJoin round, the coordinator and protocol designs that make it work, the privacy math behind the anonymity set, the ways it fails in practice, and the legal landscape that changed dramatically after the 2024 Samourai Wallet prosecution.
How a CoinJoin Transaction Works at the Technical Level
To understand CoinJoin, it helps to recall what a normal Bitcoin transaction looks like. A transaction consumes one or more previous outputs as inputs, creates new outputs that assign value to addresses, and the difference between inputs and outputs (minus fees) becomes change back to the sender. Because Bitcoin signatures commit to each input independently, multiple parties can each sign different inputs of the same transaction. That fact, multiple signers on one transaction, is the entire foundation of CoinJoin.
In a CoinJoin round, each participant contributes inputs totaling slightly more than the target output denomination plus fees, and receives one or more outputs of identical size (for example, 0.1 BTC each) sent to addresses they generated inside their wallet and never published. The other inputs in the transaction belong to other participants. An observer looking at the blockchain sees a transaction with, say, 40 inputs and 40 equal outputs, plus small fee outputs. The mathematical problem of matching inputs to outputs is what the technique attempts to make hard.
The privacy guarantee is not that the observer learns nothing, it is that the observer must guess among plausible mappings. If your CoinJoin output is one of 40 identical outputs, a naive guess gives you a 1-in-40 chance of being correctly linked to your original funding address. In practice the effective anonymity set is often smaller than the raw output count because of timing, amount clustering, and heuristic analysis, which is why protocol designers obsess over pool sizes and mixing behavior.
The Coordination Problem and the Role of Coordinators
The hard part of CoinJoin is not cryptography; it is logistics. Participants cannot communicate their inputs before the transaction is broadcast without leaking information, they must all sign within seconds of each other, and the transaction must be fee-optimal for everyone. Someone has to assemble the transaction, collect signatures, and broadcast it. That someone is the coordinator, and CoinJoin implementations differ mainly in how much trust they place in it.
In the simplest design, the coordinator builds a template transaction and relays it to participants over an encrypted channel (Tor or a private transport). Each participant verifies the template locally, checking that their output amount is correct, that their change goes to an address they control, and that no hidden outputs or extra fees were injected, then signs their own inputs and returns signatures. The coordinator combines the signatures and broadcasts the final transaction. The coordinator can censor, delay, or refuse to broadcast, and it learns the timing correlation between participants' connections and the broadcast. What it cannot do is steal funds, because every input is signed by its owner and outputs go only to participant-controlled addresses. This is called a trusted coordinator or centralized coordinator model, and it is what Wasabi Wallet's Whirlpool-style rounds and the legacy Samourai Whirlpool implementation used.
JoinMarket takes a different approach: a peer-to-peer market where makers offer to join takers' CoinJoins for a fee. The taker proposes a transaction shape, makers contribute inputs and equal-value outputs, and everyone broadcasts through the normal Bitcoin network. Because there is no central coordinator, JoinMarket avoids the single point of censorship, but it trades that for slower liquidity and a steeper learning curve, historically it ran as a command-line tool aimed at technical users.
WabiSabi is a newer protocol family, implemented by Wasabi Wallet for its current rounds, that replaces the older Chaumian blind-signature approach with a more flexible zero-knowledge proof system. WabiSabi allows variable output amounts, multiple outputs per participant, and more complex transaction shapes while still preventing the coordinator from linking inputs to outputs. It is designed so that even a malicious coordinator cannot deanonymize participants without breaking cryptographic assumptions. CoinJoin implementations keep evolving toward these more flexible, proof-based designs because fixed-denomination rounds are increasingly fingerprintable on-chain.
For a broader survey of these tools and how they compare on fees and usability, see our Bitcoin privacy tools comparison and the CoinJoin explained guide.
What CoinJoin Actually Hides, and What It Does Not
CoinJoin breaks the direct link between the address that funded your coins and the address that receives them. If an analyst follows your wallet's history and sees a deposit from address A, then sees a CoinJoin transaction with 50 outputs, they cannot prove which of those 50 outputs is yours. That is the core win, and it is substantial for ordinary privacy: your spending history is no longer trivially clusterable with your receiving addresses.
What CoinJoin does not do is hide the fact that you used CoinJoin. The transaction shape itself is a fingerprint. An observer sees equal outputs, fee marker outputs, and typical round sizes, and can tag the transaction as a CoinJoin with high confidence. That matters because downstream services, exchanges, payment processors, blockchain analytics firms, treat CoinJoin as a risk signal. Your coins are not tainted by association with specific bad actors the way coins from a custodial mixer might be, but the transaction's privacy-enhancing nature is itself visible.
CoinJoin also does not protect against an attacker who controls one of your endpoints. If you CoinJoin coins that were sent to you by an exchange or a counterparty, that counterparty knows the pre-mix address and can watch the outputs. The technique severs the on-chain link, not the off-chain knowledge. Similarly, if you reuse addresses, link your CoinJoin outputs to a KYC'd exchange deposit, or time your transaction against identifiable events, you can undo much of the anonymity set yourself. Privacy on Bitcoin is a chain of practices, and CoinJoin is one link in it, for context on how it fits with other tools, read our Lightning Network technical deep-dive and complete Lightning guide.
The Anonymity Set: Why Size Matters and Why It Shrinks
The anonymity set is the number of plausible candidates an observer must choose among. In theory, a 100-output CoinJoin gives you a 1-in-100 chance of being correctly identified. In practice, researchers and analysts have repeatedly shown that effective anonymity sets are smaller than nominal ones for several reasons.
First, timing correlation. If participants' network connections to the coordinator can be observed (through traffic analysis or malicious infrastructure), the observer can narrow candidates to those who were online at the moment the transaction broadcast. Second, amount clustering: if your output denomination is unusual, or if you split your CoinJoin across unusual denominations, your outputs stand out. Third, multi-hop reasoning: an analyst does not need to identify your exact output, they only need to narrow the set enough that additional evidence (an exchange deposit, a payment to a known merchant) resolves it.
Academic work has quantified this. A 2021 study on decentralized CoinJoin adoption found that even large rounds provide less protection than users expect once heuristics are applied, and MIT Digital Currency Initiative research on Whirlpool transactions found that its fixed pool denominations create exploitable patterns. The practical takeaway is that anonymity-set size is the single most important variable under your control: larger, more popular pools produce better privacy than small or exotic ones, and consistent use of the same pool is often safer than one-off large joins. Fixed denominations also have a downside, they constrain how much you can mix at once and create recognizable denominations that analysts track over time.
Coordinator Trust, Censorship, and Failure Modes
A CoinJoin coordinator is trusted with coordination, not custody, but trust still matters. A malicious or compromised coordinator can:
- Censor participants by refusing to include them or by delaying broadcasts selectively.
- Time-correlate participant connections with the broadcast to shrink the anonymity set.
- Refuse to return change in a broken implementation, though correct implementations send change directly to participant addresses.
- Insert malicious outputs in poorly designed protocols, though modern implementations let participants verify the full transaction before signing.
Some older Chaumian CoinJoin designs required blind signatures from the coordinator, which introduced a different risk: a malicious coordinator could potentially sign malformed transactions. WabiSabi-style protocols reduce this by using zero-knowledge proofs of correct construction instead of blind signatures. Regardless of protocol, the golden rule is that participants must verify the transaction template independently before signing, never trust the coordinator's summary of what they are signing.
There is also a subtler failure mode: the coordinator learns the set of participants' IP addresses (or Tor exit information) and can potentially deanonymize them outside the blockchain. This is why CoinJoin coordinators typically operate over Tor and why some designs push coordination into peer-to-peer networks like JoinMarket. The on-chain privacy is strong; the network-layer privacy depends on how you connect.
CoinJoin vs. Custodial Mixers and Other Privacy Approaches
CoinJoin is often compared to custodial mixers (services that take your coins, pool them, and send them back from different addresses). The difference is fundamental: a custodial mixer holds your keys and can steal funds, exit-scam, or be seized by law enforcement along with its reserves. CoinJoin never gives up custody, if the coordinator disappears mid-round, you simply lose the fee opportunity, not your coins. For a detailed look at the legal and technical differences, see our crypto mixers and tumblers guide.
Compared to privacy coins like Monero, CoinJoin preserves Bitcoin's liquidity and merchant acceptance but offers weaker privacy guarantees, Monero hides amounts and uses ring signatures by default, while CoinJoin only obscures transaction linkage within Bitcoin's transparent ledger. Compared to PayJoin (which adds a collaborative input to an existing payment) or CoinSwap (an atomic-swap-based technique), CoinJoin is more mature and better understood, but all of these tools share the same limitation: they are used by a minority of Bitcoin users, so the anonymity set is bounded by adoption.
Legal and Regulatory Considerations
The legal status of CoinJoin is more nuanced than the legal status of custodial mixers, but the distinction is not as clean as privacy advocates sometimes claim. CoinJoin is a peer-to-peer transaction construction technique, it does not involve a service taking custody of funds. In most jurisdictions, merely using privacy-enhancing transaction techniques on your own coins is not illegal. However, the practical reality has shifted since April 2024, when U.S. authorities arrested the founders of Samourai Wallet and charged them with money laundering conspiracy, alleging the wallet's mixing features knowingly facilitated illicit finance. Our report on the Samourai arrests covers the case in detail.
After Samourai, several important developments occurred. The parent company of Wasabi Wallet, zkSnacks, stopped offering CoinJoin coordinator services citing legal risk, and the Wasabi wallet's built-in CoinJoin functionality was wound down, though the protocol and other implementations remain available. The U.S. Treasury's Financial Crimes Enforcement Network (FinCEN) has treated certain mixing services as money transmitters, and the Department of Justice has pursued cases against custodial mixers under anti-money-laundering statutes. While CoinJoin itself is not clearly prohibited, using it to obscure the proceeds of crime can constitute money laundering, and exchanges increasingly flag or restrict accounts with CoinJoin history.
The safest legal posture is straightforward: use CoinJoin for legitimate privacy on your own funds, keep records of your transaction history, and never use it to move funds you cannot legally explain. Privacy is a right in many jurisdictions, but it is not a shield against criminal liability. If you are in a jurisdiction with strict financial surveillance or capital controls, consult a local attorney before using any privacy tool.
Practical Recommendations for Users
If you decide to use CoinJoin, these practices meaningfully improve your privacy and reduce risk:
- Use large, well-established pools rather than small or private rounds. The anonymity set is your protection.
- Verify transactions before signing, never trust a coordinator's description of the transaction.
- Do not link your CoinJoin outputs to KYC'd exchanges, public payment addresses, or identifiable activity.
- Use Tor when connecting to coordinators to protect your network-layer metadata.
- Understand the fees, CoinJoin costs include transaction fees, coordinator fees (if any), and the mining fee for the larger transaction.
- Do not assume perfect privacy, CoinJoin is one layer, not a complete anonymity solution.
CoinJoin remains the most practical privacy tool for Bitcoin users who want to break transaction linkage without trusting a custodian. Its technical design is sound, its legal status is evolving, and its effectiveness depends heavily on how it is used. For the latest tool comparisons and threat-model guidance, see our WabiSabi and JoinMarket technical deep-dive and the broader CoinJoin explainer. As always with cryptocurrency privacy tools, the technology is neutral, the legal and ethical implications of how you use it are yours to understand.
Comments 0