• Catalog
  • Blog
  • Tor Relay
  • Jabber
  • Secret Notes
  • Temp Mail
  • Get Tor Browser
  • Crypto
    Bitcoin CoinJoin privacy technique - collaborative transaction mixing for blockchain privacy

    Bitcoin is a transparent ledger: every transaction, every address, and every amount is permanently recorded and readable by anyone. For many users that transparency is a feature, but for anyone who wants financial privacy it creates a permanent public record that can be analyzed, clustered, and de-anonymized over time. CoinJoin is the most widely used privacy technique that works inside the Bitcoin protocol itself, no trusted third party, no new blockchain, and no change to the base layer. It lets multiple people combine their coins into a single transaction in a way that makes it impossible for an outside observer to say which input funded which output.

    This guide explains how CoinJoin actually works at the technical level, how the major implementations compare, what privacy it does and does not provide, the real legal risks in the United States and elsewhere, and how to use it safely if that is what you choose to do. Analysis and recommendations are labeled as such; verified facts are sourced at the end.

    What CoinJoin is and what problem it solves

    A CoinJoin is a single Bitcoin transaction constructed by several independent participants. Each participant contributes one or more inputs they control, coins they already own, and each receives one or more outputs of a standard, identical size sent back to a fresh address they control. The result looks like this to an observer: five people each put in a 0.1 BTC input, and five identical 0.1 BTC outputs appear, each to a different address. Because the outputs are indistinguishable, the observer cannot tell which input paid for which output.

    The technique was proposed by Bitcoin developer Gregory Maxwell in a 2013 BitcoinTalk post, and it works entirely within Bitcoin's existing consensus rules. A CoinJoin transaction is an ordinary transaction, it just has many inputs and outputs with equal amounts, which is a pattern that naturally breaks the deterministic input-to-output mapping that blockchain analytics firms rely on.

    The key idea is the anonymity set: the group of outputs that are indistinguishable from each other. In a five-person, five-output CoinJoin, each output has five possible sources, so your coins are hidden among four other participants. In a Whirlpool transaction with a hundred participants, the anonymity set is far larger. The privacy you get is only ever as good as the crowd you blend into, a crucial point we return to below.

    CoinJoin is not a mixer in the traditional sense. In an old-style centralized mixer you send your coins to a company, wait, and receive different coins back, trusting the operator completely and creating a honeypot for law enforcement. In a CoinJoin your coins never leave your control: your wallet checks that the draft transaction pays you back in full, and you sign only your own inputs. A coordinator can assemble the transaction, but it cannot take your coins. The trust assumption is weaker, you trust the coordinator with availability and possibly some privacy, never with custody.

    How a CoinJoin transaction works step by step

    Every CoinJoin implementation follows the same basic protocol, whether it is centralized, coordinated, or market-based:

    1. Input registration. Each participant's wallet announces that it has a coin it wants to mix. Depending on the protocol, this may involve a Tor-hidden session or a pseudonymous identity.
    2. Transaction construction. A coordinator, or, in JoinMarket, a taker acting as the builder, gathers all inputs and drafts a transaction with equal-sized outputs. The outputs are shuffled randomly so their positions carry no information.
    3. Output verification. Each participant inspects the draft transaction and confirms it contains an output of the expected amount to an address they control. Critically, each participant verifies this before signing, your wallet refuses to sign if the transaction does not pay you correctly.
    4. Signing. Each participant signs only their own inputs, typically over separate Tor circuits or through blinded signatures so the coordinator cannot link which input belongs to which participant. Because Bitcoin input signatures are independent, partial signatures can be combined without any participant revealing their private key to anyone else.
    5. Broadcast. Once all signatures are collected, the transaction is broadcast to the Bitcoin network like any other. It is mined in a normal block.

    The security property comes from a detail of Bitcoin's transaction format: signatures on different inputs are mathematically independent. The coordinator cannot forge your signature, and you cannot forge anyone else's, but anyone can assemble the pieces. This is why CoinJoin needs no trusted custodian: the worst a dishonest coordinator can do is censor you, delay you, or learn which outputs are yours (a privacy loss, not a theft).

    Two technical details matter for understanding privacy limits. First, most implementations mix a denomination, a fixed output size like 0.1 BTC, so all outputs look identical. Second, the change output (if any) and any unequal outputs break anonymity, so well-designed CoinJoins send the entire mixed amount to the equal outputs and handle fees carefully.

    The major CoinJoin implementations

    CoinJoin has evolved through several generations of design, and the implementations differ mainly in who coordinates the transaction and how much you have to trust them:

    Wasabi Wallet (WabiSabi / CoinJoin)

    Wasabi is a desktop Bitcoin wallet that has offered coordinated CoinJoin since 2018. Its newer protocol, WabiSabi (building on the earlier JoinMarket-derived ideas and the academic "WabiSabi" paper), uses keyed-verification anonymous credentials (KVACs) and homomorphic commitments so participants can prove they contributed valid coins without the coordinator learning which inputs map to which outputs. This makes Wasabi's rounds more private than naive centralized CoinJoin. Fees are typically around 0.1-0.3% of the mixed amount plus miner fees, and Wasabi historically charged an additional coordination fee on its free tier for larger rounds. It connects through Tor by default, which limits IP-based linking.

    Samourai Wallet (Whirlpool)

    Samourai's mobile wallet implemented Whirlpool, a CoinJoin protocol that pools users into fixed-denomination "pools" (typically 0.1, 1, 10, 25, 50, and 100 BTC) and mixes them in rounds. Whirlpool used blinded output registration: participants submitted a blinded address, then reconnected through a fresh Tor circuit to reveal it, so the coordinator could verify participation without knowing which input belonged to which output. The Samourai case, covered in detail below, has made Whirlpool historically significant as the protocol that attracted DOJ attention, and its code and forks live on in other implementations.

    JoinMarket

    JoinMarket takes the opposite approach: it is a market-based, coordinator-free protocol. Instead of a central server, a "taker" (the person who wants to mix) posts an offer, and "makers" (other users) respond with liquidity. The taker pays makers a small fee for their inputs, and makers earn that fee for participating. Because there is no coordinator, there is no single point of failure or trust, but liquidity depends on market depth, and fees are negotiated per transaction. JoinMarket is the most technically complex option and appeals to users who want maximum decentralization, at the cost of a steeper learning curve.

    Other and emerging protocols

    Newer research continues to improve on CoinJoin. CoinSwap attempts atomic swaps that avoid the on-chain CoinJoin pattern entirely, though it remains less battle-tested. PayJoin (BIP78) is a two-party collaborative transaction that breaks the common-input heuristic for payments rather than providing a large anonymity set. Ashigaru is a recent implementation focused on mobile usability. The field is active, and protocol details continue to evolve, readers should verify current implementations rather than relying on any single snapshot.

    For a head-to-head comparison of fees, ease of use, and privacy properties across these tools, see our CoinJoin implementation comparison and the technical deep dive.

    What privacy CoinJoin actually provides

    CoinJoin's privacy benefit is real but bounded, and understanding the boundaries is essential:

    • It breaks deterministic linking. After a CoinJoin, the standard heuristic "this input paid for this output" no longer works. An analyst sees a set of equal outputs with multiple possible sources.
    • It raises the cost of analysis. Clustering algorithms that work trivially on ordinary transactions must now assign probabilities across a much larger hypothesis space.
    • It does not hide that you used CoinJoin. A transaction with many inputs and many equal outputs is itself a recognizable pattern. Sophisticated analysts flag CoinJoin transactions and can apply special handling, sometimes giving participants more scrutiny because they chose to mix.
    • It is vulnerable to timing and amount analysis. If a CoinJoin round is small, or if you mix a unique amount, or if your transaction timing correlates with an exchange withdrawal, analysts can narrow the anonymity set dramatically.
    • It does not protect against endpoint observation. The coordinator sees your IP address (unless you use Tor), your wallet software fingerprint, and potentially your input-output linkage if the protocol is flawed. Network-level privacy requires additional measures.
    • It does not make you anonymous to counterparties. If you CoinJoin and then send to a merchant or exchange, that endpoint still knows who you are.

    The honest summary: CoinJoin provides plausible deniability within a crowd, not true anonymity. It is best understood as raising the cost of blockchain analysis, not eliminating it. For a deeper look at how analysts actually trace transactions and where their methods break down, see our guide on how blockchain analysis works.

    Legal risks: the Samourai precedent and the money-transmitter theory

    This is the section that matters most for anyone considering CoinJoin, and it has changed dramatically since 2024.

    The Samourai Wallet case

    In April 2024, the U.S. Department of Justice charged the two founders of Samourai Wallet, Keonne Rodriguez and William Lonergan Hill, with operating an unlicensed money transmitting business. The indictment alleged that Samourai's Whirlpool CoinJoin service and its Ricochet feature facilitated over $2 billion in transactions and laundered more than $100 million in criminal proceeds, including funds from darknet markets, sanctions evasion, and fraud. In November 2025, Rodriguez was sentenced to five years in prison and Hill to four. The IRS Criminal Investigation release and Cointelegraph's analysis document the case in detail.

    The legal theory is important to understand: the DOJ did not charge Samourai as a money launderer in the traditional sense, it charged the founders under 18 U.S.C. § 1960, which criminalizes operating an unlicensed money transmitting business. The theory is that a CoinJoin coordinator that knowingly processes criminal proceeds is itself a money transmitter, even though it never takes custody of the coins. This is a novel and contested application of the statute.

    Notably, FinCEN staff reportedly told DOJ attorneys that they believed Samourai did not qualify as a money services business because it did not take custody, a disclosure that created tension between DOJ and FinCEN. The case remains legally significant because it establishes that providing CoinJoin coordination services, not just using them, can expose operators to criminal liability.

    What this means for users vs. providers

    The Samourai case primarily targets the operators of mixing services, not the end users who ran CoinJoins. However, the legal landscape is unsettled:

    • Using CoinJoin is not clearly illegal in most jurisdictions. It is a standard Bitcoin transaction, and many wallets include it as a built-in feature. However, "not clearly illegal" is not the same as "clearly legal", prosecutors have wide discretion, and the legal theories are evolving.
    • Mixing services face real risk. The Tornado Cash sanctions (2022) and the Samourai prosecution (2024-2025) show that U.S. authorities treat mixing infrastructure as a priority target. Operators of CoinJoin coordinators should assume they are under scrutiny.
    • Lawful-source requirement. In the United States, transmitting funds known to be criminal proceeds is a crime regardless of the tool used. CoinJoin does not launder your money; it obscures the transaction graph. If your coins are already tainted, CoinJoin does not cleanse them, it may even make them more suspicious to analysts.
    • Exchange and tax reporting. Using CoinJoin may complicate tax reporting and exchange compliance. Many exchanges flag or restrict accounts that interact with known mixing services, and some jurisdictions require disclosure of privacy-enhancing transactions.

    This section is not legal advice. Cryptocurrency mixing and privacy tools occupy a legally ambiguous space that varies by jurisdiction and continues to evolve through litigation. Anyone considering CoinJoin, especially at scale, for business purposes, or with funds of uncertain provenance, should consult a qualified attorney familiar with digital asset regulation in their jurisdiction.

    Limitations and failure modes

    Beyond the legal risks, CoinJoin has technical and practical limitations that users should understand:

    • Small anonymity sets. A CoinJoin with only three participants provides almost no privacy, you are hiding among two other people. Privacy scales with participation, which is why large, well-funded rounds matter.
    • Timing correlation. If you deposit to an exchange, immediately CoinJoin, and withdraw, the timing pattern can link the transactions even if the amounts are mixed.
    • Amount fingerprinting. Mixing a unique or unusual amount creates a fingerprint. Standard denominations exist precisely to avoid this, but they also mean your mixed amount may not match what you need to spend.
    • Change output leakage. If your wallet creates a change output with a different amount, that output is trivially linkable back to your inputs.
    • Coordinator trust. Even in privacy-preserving protocols, the coordinator controls availability. A malicious coordinator can censor you, delay rounds, or learn partial information. JoinMarket's market model reduces but does not eliminate this.
    • Network metadata. Without Tor or VPN, your IP address is visible to the coordinator and potentially to network observers. Most major wallets default to Tor for this reason, but users should verify.
    • Analytics evolution. Blockchain analysis firms actively research CoinJoin detection and deanonymization. Techniques like "peel chain" analysis, timing analysis, and machine-learning clustering continue to improve. CoinJoin is an arms race, not a solved problem.

    For a broader discussion of the trade-offs between different privacy approaches, including when CoinJoin is sufficient and when it is not, see our guide on spending Bitcoin privately and the Bitcoin vs Monero comparison.

    Best practices if you choose to use CoinJoin

    If, after considering the legal and technical landscape, you decide CoinJoin is appropriate for your situation, these practices reduce risk:

    • Use reputable, open-source implementations. Wasabi, JoinMarket, and audited forks of Samourai's Whirlpool code are the most established options. Avoid obscure "CoinJoin services" that ask for your seed phrase or private keys, legitimate CoinJoin never requires custody of your keys.
    • Always verify before signing. Your wallet should show you the full transaction and confirm your output before signing. Never sign a transaction you have not inspected. This is the single most important security property of CoinJoin.
    • Use Tor or a VPN. Most implementations connect through Tor by default, but verify. IP address correlation is one of the easiest ways to defeat CoinJoin's privacy.
    • Mix in larger rounds. Wait for rounds with many participants rather than rushing through small ones. A 50-person round provides far more anonymity than a 5-person round.
    • Avoid timing correlation. Do not immediately spend mixed outputs to exchanges or merchants. Introduce delay and additional transactions to break the timing link.
    • Do not reuse addresses. Generate fresh addresses for every output. Address reuse destroys privacy regardless of CoinJoin.
    • Understand your threat model. CoinJoin protects against blockchain analytics, not against endpoint compromise, network surveillance, or legal coercion. If your threat model includes state-level adversaries, CoinJoin alone is insufficient, Monero or other privacy-preserving alternatives may be more appropriate.
    • Keep records for tax purposes. CoinJoin does not change your tax obligations. Document the transactions, the fees, and the amounts for your jurisdiction's reporting requirements.
    • Do not use CoinJoin to launder illicit funds. This is not a legal gray area, it is a serious federal crime in the United States and most other jurisdictions. CoinJoin is a privacy tool, not a money laundering service.

    For wallet security fundamentals that apply regardless of which privacy tool you use, see our crypto wallet security guide and the wallet security deep dive.

    CoinJoin vs. alternatives: mixers, CoinSwap, and privacy coins

    CoinJoin is one tool in a broader privacy toolkit, and it is worth understanding where it fits:

    • Centralized mixers (like the old Sinbad or Blender.io) offer stronger anonymity sets but require trusting a custodian who can steal funds, keep logs, or be seized by law enforcement. They have largely been shut down or sanctioned.
    • CoinSwap attempts atomic swaps that avoid the recognizable CoinJoin transaction pattern, but it is less mature and less widely deployed.
    • PayJoin (BIP78) is a two-party collaborative transaction that breaks the common-input heuristic for payments, useful for merchant privacy but not a substitute for large-scale mixing.
    • Monero provides privacy at the protocol level: sender, recipient, and amount are hidden by default on every transaction, with no need for CoinJoin-style coordination. For users whose primary goal is transaction privacy rather than staying on Bitcoin, Monero is architecturally simpler. See our Monero overview and technical deep dive.
    • Lightning Network moves transactions off-chain, reducing on-chain footprint, but it does not provide the same anonymity guarantees as CoinJoin and introduces its own privacy trade-offs.

    The right choice depends on your threat model, technical comfort, and jurisdiction. There is no universally "best" privacy tool, only tools that fit specific situations.

    Conclusion

    CoinJoin is a clever, protocol-native privacy technique that has survived a decade of development, law enforcement attention, and academic scrutiny. It works by pooling multiple users' coins into a single transaction with identical outputs, breaking the deterministic links that blockchain analytics rely on. The major implementations, Wasabi, JoinMarket, and Whirlpool forks, offer different trade-offs between usability, decentralization, and privacy guarantees.

    But CoinJoin is not a panacea. It provides plausible deniability within a crowd, not true anonymity. It is vulnerable to timing analysis, small anonymity sets, and evolving detection techniques. And the legal landscape has shifted dramatically: the Samourai prosecution demonstrates that operating mixing infrastructure, even without custody, can result in serious criminal charges in the United States.

    For users who choose to use CoinJoin, the key practices are: use reputable open-source tools, verify every transaction before signing, protect your network metadata, participate in large rounds, and understand that CoinJoin is one layer of privacy, not a complete solution. For anyone handling significant funds or operating at scale, consult legal counsel before proceeding.

    Sources: Gregory Maxwell's original CoinJoin proposal (BitcoinTalk, 2013); Peter Todd's CoinJoin implementation comparison (2025); MIT Digital Currency Initiative on Whirlpool timing analysis; Knowing Bitcoin on CoinJoin methods compared; Self Custody Labs CoinJoin guide; IRS CI on Samourai founders' sentencing (November 2025); Cointelegraph analysis of Samourai shutdown implications; Bloomberg Law on DOJ-FinCEN tension in Samourai case; U.S. Secret Service public alert on cryptocurrency mixers (June 2025); JoinMarket open-source repository; Wasabi Wallet open-source repository.

    Author OnionInfoDesk
    Bitcoin privacy tools: CoinJoin, Wasabi, Whirlpool & JoinMarket comparison
    Bitcoin CoinJoin deep dive: Wasabi, Samourai, JoinMarket & WabiSabi technical analysis
    How to spend Bitcoin privately: CoinJoin tools and threat model guide
    Bitcoin vs Monero: which cryptocurrency is more private?

    Comments 0

    Add comment