• Catalog
  • Blog
  • Tor Relay
  • Jabber
  • Secret Notes
  • Temp Mail
  • Get Tor Browser
  • Crypto
    Bitcoin CoinJoin explained - collaborative transactions, anonymity sets, Wasabi, Whirlpool and JoinMarket

    Every Bitcoin transaction you have ever made is permanently recorded on a public ledger that anyone can inspect. Blockchain analytics firms trace payments daily, clustering addresses, linking them to exchanges and services, and building a picture of who spent what, when. CoinJoin is the most widely used technique for breaking that trail, and unlike centralized mixers, it keeps your coins under your own control at every moment. This guide explains how CoinJoin actually works, which implementations are worth using, what privacy it really buys you, and, just as importantly, the legal and operational risks that come with it.

    What CoinJoin is and why it exists

    CoinJoin is a collaborative transaction format first proposed by Bitcoin Core contributor Gregory Maxwell in 2013. Instead of one person broadcasting a single-input, single-output payment, several unrelated people combine their inputs into one on-chain transaction. Each participant contributes an input they control and receives an output of equal value back to a fresh address. To an outside observer, the transaction looks like a dozen payments tangled together, there is no cryptographic signature linking any particular input to any particular output.

    The key insight is that Bitcoin transactions are only valid once every input carries a valid signature. Each CoinJoin participant signs their own input, and only after verifying the draft transaction returns their funds correctly. Because signatures are independent per input, strangers can jointly produce one valid transaction without ever trusting each other with funds. There is nothing to steal: if anyone tampers with the outputs, the missing signatures mean the transaction simply never confirms. The worst a malicious coordinator can do is waste your time.

    How CoinJoin works mechanically

    A typical CoinJoin proceeds in stages. Participants connect to a coordinator (or to each other, in coordinatorless designs) and contribute inputs. The coordinator assembles a draft transaction containing all inputs and a set of equal-value outputs, often plus small outputs to cover miner fees. Each participant inspects the draft, confirms their output is intact, and broadcasts their signature for their input only. Once all signatures are collected, the transaction is broadcast and mined like any other.

    Two details matter enormously for privacy. First, outputs are deliberately standardized, say, exactly 0.05 BTC each, so that input values cannot be matched to output values by amount. Second, most serious tools support remixing: taking an output from a previous CoinJoin and mixing it again with new participants, so your coins pass through multiple rounds and the possible owner set keeps growing.

    That owner set is called the anonymity set. After one round with 100 participants, an analyst trying to identify which output belongs to you faces roughly 100 equally plausible candidates, a 1% chance of guessing correctly. Each additional round multiplies the possibilities, which is why single-round mixing is considered a half-measure by privacy researchers.

    The major implementations: Wasabi, Whirlpool/Ashigaru and JoinMarket

    Three families of CoinJoin tools dominate today, and they differ mainly in who coordinates the transaction.

    Wasabi Wallet is the most beginner-friendly option and uses the WabiSabi protocol, which supports flexible input and output amounts rather than rigid equal denominations. Wasabi coordinates CoinJoins through its own servers but never takes custody of coins, it only relays and assembles transactions. A fee is charged per mixed amount. Wasabi is open source, runs on desktop, and can connect to your own Bitcoin node for stronger privacy.

    Whirlpool (Samourai legacy) and Ashigaru use a fixed-denomination pool model: users break their coins into standard amounts (historically 0.001, 0.01, 0.05 and 0.5 BTC) and each mix transaction involves five inputs and five identical outputs. Whirlpool's original coordinator was run by Samourai Wallet, whose founders were arrested in 2024 and sentenced in November 2025, see the legal section below. The community forked the project into Ashigaru, which continues the pool model with a different coordinator approach, including an open-source option called Zerolink.

    JoinMarket is the decentralized alternative: a peer-to-peer market with no coordinator at all. "Takers" pay a small fee to makers who contribute liquidity; makers' coins get mixed as a side effect and makers earn the fees. Because no company sits in the middle, there is no server to seize or subpoena. JoinMarket's traditional weakness was its command-line interface, but the newer JoinMarket NG client and the Jam web interface have made it substantially more accessible. It still requires running your own Bitcoin node, which raises the technical bar.

    Privacy benefits, and what CoinJoin does not hide

    CoinJoin genuinely improves on-chain privacy for a specific problem: severing the link between your identifiable inputs and your subsequent spends. If you receive coins at an address linked to your identity, then CoinJoin them into a fresh output, an analyst can no longer prove which output is yours, they only know you are somewhere in the anonymity set. Done repeatedly, this is the standard advice for breaking address clustering before spending.

    However, analysts have documented real limits. Equal outputs protect against naive amount matching, but fees, change outputs, timing, and behavioral patterns can still leak information, Peter Todd's analysis of JoinMarket transactions showed that careful arithmetic on input and fee patterns can sometimes identify the taker. Mixing alone also does nothing about off-chain leaks: exchange KYC records, network-layer surveillance (Tor usage, ISP visibility), wallet fingerprints, and reusing mixed outputs in ways that re-link them. CoinJoin is one layer of a privacy stack, not the whole stack.

    Legal and regulatory risks

    This is the section most guides skip, and it is the most important one. CoinJoin sits in a genuinely contested legal area: it is a self-custody, non-custodial technique, but U.S. authorities have repeatedly treated facilitating mixing as money transmission.

    In April 2024 the DOJ arrested the two co-founders of Samourai Wallet, the company behind Whirlpool. In November 2025 they were sentenced to five and four years in prison after being convicted of conspiring to operate an unlicensed money transmitting business, the indictment alleged Whirlpool facilitated over $237 million in transactions tied to drug trafficking, darknet markets, fraud, and sanctioned jurisdictions. The Roman Storm / Tornado Cash trial ended in a mixed verdict in late 2025: convicted of conspiracy to operate an unlicensed money transmitting business, with the money-laundering and sanctions charges unresolved. The U.S. Secret Service and FinCEN have issued public advisories warning that cryptocurrency mixers facilitate money laundering and cybercrime.

    For end users rather than developers, the practical risks are different but real. Structuring transactions to evade reporting, mixing funds of clearly illicit origin, or using CoinJoin in sanctioned jurisdictions can create legal exposure. Merely using open-source, non-custodial software is not itself illegal in most jurisdictions, and many privacy advocates argue CoinJoin is ordinary transaction coordination, but "probably fine" is not legal advice. If your use case is unusual, consult an attorney familiar with digital-asset law.

    Limitations and analysis resistance

    Realistic expectations matter. CoinJoin is vulnerable to several attacks and weaknesses:

    • Small anonymity sets. A CoinJoin with 5 or 10 participants offers weak plausible deniability compared to pools of hundreds.
    • Timing and fee heuristics. Coordinators and analysts can fingerprint transactions by fee patterns, input selection, and broadcast timing.
    • Change-output linkage. Any non-standard output, change, payment destinations, can link back to your original coins.
    • Sybil participants. A well-funded adversary can join many mixes and gradually map ownership probabilities.
    • Endpoint exposure. If the exchange you withdraw to knows your identity and the timing of your CoinJoin is visible on-chain, correlation remains possible.
    • Coordinator trust. Centralized coordinators see your IP address and could log metadata even though they never see your keys.

    Best practices for using CoinJoin

    If you decide CoinJoin fits your needs, the difference between weak and strong privacy is mostly discipline:

    1. Use your own node. Running a full Bitcoin node hides your transaction queries from third-party servers and lets tools like Wasabi and JoinMarket connect without trusting infrastructure.
    2. Mix multiple times. Two or three rounds in different sessions, ideally days apart, vastly outperform a single round.
    3. Standardize amounts. Avoid unique denominations that fingerprint your outputs; let the tool normalize everything.
    4. Never reuse mixed outputs carelessly. Each mixed coin should be spent as a unit or re-mixed, splitting and recombining fragments can rebuild links.
    5. Mind the cash-in and cash-out. The weakest points are where coins enter and leave the mixed pool: KYC'd exchange withdrawals and identifiable payment recipients.
    6. Keep network hygiene separate. CoinJoin protects the ledger, not your IP address. Use Tor or a VPN consistently and never associate your node or wallet traffic with your identity.
    7. Verify before signing. Every tool shows you the draft transaction, check that outputs match your expected amounts and go to your addresses before signing.

    Recommendations

    For most users, Wasabi offers the best balance of privacy-per-effort: open source, non-custodial, flexible amounts, and simple enough for beginners. Users who want the strongest pool-based privacy and are comfortable with more setup should look at Ashigaru/Whirlpool-style fixed-denomination pools or JoinMarket NG with Jam, which eliminates the coordinator entirely at the cost of running your own node. For deeper context, our Bitcoin privacy threat-model guide and the privacy tools comparison cover selection criteria in more detail.

    Conclusion

    CoinJoin is the most mature privacy technique available on Bitcoin: non-custodial, permissionless, and genuinely effective at breaking transaction-graph links when used correctly. But it is not magic, privacy depends on anonymity set size, repeated rounds, disciplined cash management, and clean operational security, and it carries real legal exposure in an enforcement environment that has already imprisoned the founders of the biggest Whirlpool deployment. Treat CoinJoin as one layer in a broader privacy practice, understand your local laws, and never assume a mixed coin is anonymous just because the transaction was.

    Sources and further reading

    • Gregory Maxwell, CoinJoin: Bitcoin privacy for the real world (BitcoinTalk, 2013), bitcointalk.org
    • Peter Todd, How Good Are The Widely Used Coinjoin Implementations? (2025), petertodd.org
    • MIT Digital Currency Initiative, Evaluating usage of the Whirlpool Bitcoin privacy protocol, dci.mit.edu
    • Wasabi Wallet documentation, docs.wasabiwallet.io
    • JoinMarket project, joinmarket.org
    • Ashigaru open-source project, ashigaru.rs
    • U.S. DOJ / IRS Criminal Investigation, Samourai Wallet founders sentenced (November 2025), irs.gov
    • U.S. Secret Service / FinCEN, Public Alert: Cryptocurrency Mixers (2025), secretservice.gov
    • Coin Center, What are mixers and "privacy coins"?, coincenter.org
    Author OnionInfoDesk
    CoinJoin Explained: The Bitcoin Privacy Technique
    Bitcoin Privacy Tools Compared: Wasabi, Samourai, JoinMarket
    How to Spend Bitcoin Privately: Tools and Threat Models
    How Blockchain Analysis Traces Bitcoin Transactions

    Comments 0

    Add comment