• Catalog
  • Blog
  • Tor Relay
  • Jabber
  • Secret Notes
  • Temp Mail
  • Get Tor Browser
  • Crypto
    Diagram showing a Bitcoin CoinJoin transaction combining inputs from multiple participants into equal outputs

    A CoinJoin is a Bitcoin transaction that combines multiple users' inputs into a single transaction with multiple outputs, so that an outside observer can no longer reliably tell which input paid for which output. Instead of every user broadcasting their own transaction, which instantly links their addresses through the "common input ownership" heuristic, participants collaboratively sign one joint transaction in which everyone's coins look interchangeable. CoinJoin is the dominant privacy technique available on Bitcoin today, and understanding it properly matters whether you are protecting ordinary spending privacy or weighing the legal and operational risks that come with using mixing-adjacent tools.

    This guide explains how CoinJoin works at the protocol level, how the major implementations differ, what anonymity a CoinJoin actually buys you, where it falls short, and the legal risks, especially in the United States, where the developers of one major CoinJoin service were sentenced to prison in late 2025. If you are deciding whether CoinJoin is appropriate for your threat model, this is the article to read first. For wallet-specific comparisons, see our Bitcoin privacy tools comparison and the CoinJoin vs mixing vs PayJoin explainer.

    What CoinJoin is and where it came from

    The basic idea dates to a 2013 post by Bitcoin Core developer Gregory Maxwell, who sketched how several users could merge their transactions into one to break the link between inputs and outputs. The original "decentralized CoinJoin" concept had participants meet in person or over chat and construct the transaction among themselves, with no trusted middleman, elegant, but impractical at scale because it required everyone to be online simultaneously and coordinate manually.

    Modern CoinJoin keeps the cryptographic core, a multi-party transaction signed by all participants, but replaces the in-person coordination with coordinators: software servers that collect participants' inputs and outputs, construct a candidate transaction, and relay partial signatures until the transaction is complete and broadcast. The coordinator learns much less than it might appear to, provided the protocol is well designed: participants typically connect over Tor with fresh identities, submit inputs and outputs without linkable identifiers, and the coordinator cannot steal funds because every participant must sign the same transaction. In most designs the worst a malicious coordinator can do is refuse to include your input, censor specific participants, or try (usually unsuccessfully) to deanonymize by correlating metadata.

    The crucial point for beginners: a CoinJoin is not a mixer in the old centralized sense. No custodial pool holds your coins. The transaction is atomic, every participant signs or nobody transacts, and funds move only according to outputs the participants themselves specified.

    How a CoinJoin transaction works mechanically

    At the Bitcoin protocol level, a CoinJoin is an ordinary transaction. It has many inputs (one or more per participant) and many outputs (typically several per participant or standardized denominations). What makes it private is the indistinguishability of the outputs: if a transaction has 50 inputs of roughly equal value and 50 equal-value outputs, there are astronomically many possible input-to-output mappings, and the public ledger cannot tell which satoshis went where.

    There are two broad output designs:

    Equal Output Value (EOV) CoinJoin. Every output has the same value (e.g., 0.1 BTC). This maximizes indistinguishability but forces participants to split their coins into fixed denominations, and any leftover value must go to a change output, which itself links back to its owner and partially defeats the purpose. Wasabi's original "Chaumian" CoinJoin and Samourai Whirlpool use structured variants of this approach.

    Arbitrary-value CoinJoin. Participants register inputs and outputs of any amount; the coordinator ensures each participant gets back exactly what they put in minus fees, using cryptographic credentials (in the WabiSabi protocol used by Wasabi 2.x, these are blind-signature-based "credentials" that prove an output is authorized without revealing which input it corresponds to). This avoids change outputs entirely, every coin in the round becomes part of the anonymity set, but requires more complex cryptography to prevent participants from registering fake outputs.

    A typical centralized-coordinator round proceeds in phases: participants connect over Tor with fresh identities and register inputs (proving ownership with signatures, without revealing which wallet they belong to); the coordinator verifies the inputs are unspent and match denomination requirements; participants register outputs; the coordinator assembles and partially signs the transaction; participants verify the transaction matches what they registered, critically, checking that their own outputs are present and correct, and sign; once enough signatures are collected, anyone broadcasts the transaction to the Bitcoin network. If any phase detects tampering, the round aborts and participants simply retry.

    Two design philosophies matter here. Trustless/taker-maker designs like JoinMarket let makers offer liquidity and takers pay them a fee to join a joint transaction, no central server sees the whole round at once. Coordinator designs like Wasabi, Whirlpool, and JoinMarket NG's JAM mode use a central coordinator for simplicity and liquidity, accepting that the coordinator is a potential adversary that the protocol is designed to resist.

    The major CoinJoin implementations

    Wasabi Wallet (WabiSabi). Wasabi is the most widely used CoinJoin wallet. Version 2.x implements the WabiSabi protocol, an academic design (eprint 2021/206) that supports arbitrary-value outputs and eliminates change outputs. Coordination runs through zkSNacks coordinators, historically the largest liquidity pool on Bitcoin. Fees are typically a service fee plus mining fees; rounds form when enough participants register, which can take minutes to hours depending on demand.

    Whirlpool (Samourai/Ashigaru). Whirlpool is a structured, denomination-based CoinJoin that organizes transactions into five fixed "pools" (0.1 to 100 BTC). Samourai Wallet popularized it, and after the U.S. government's action against Samourai in 2024, the open-source Ashigaru project released a compatible Whirlpool implementation with its own Tor-only Zerolink coordinators, keeping the protocol alive independent of Samourai. Whirlpool's cycle-based design and fixed pools give it a very clean anonymity-set story, at the cost of denomination constraints and sometimes longer waits.

    JoinMarket and JoinMarket NG (JAM). The original JoinMarket is a taker-maker market: makers earn fees for contributing liquidity, takers pay to mix. JoinMarket NG modernized it with the JAM (JoinMarket Asymmetric Mixer) protocol, which adds trust-minimized coordination and is now the basis of several coordinated rounds. It generally produces cheaper CoinJoins than coordinator services but requires more active management and has thinner liquidity at times.

    Others worth knowing. Sparrow Wallet supports PayJoin (BIP78) and can act as a client for several coordinators. Blockstream's CoinJoin service runs small coordinated rounds. Trezor hardware wallets integrate CoinJoin through third-party coordinators. And PayJoin itself, while technically a two-party CoinJoin, deserves separate mention: it mixes your payment with the payee's own inputs, defeating the common-input heuristic for routine payments with almost no cost or wait.

    Choosing between them is mostly a liquidity-versus-control tradeoff: Wasabi offers the biggest anonymity sets and simplest UX; Whirlpool offers clean denomination pools; JoinMarket offers the most decentralized trust model and often the lowest fees. Our head-to-head privacy tools review goes deeper on current options.

    What CoinJoin actually buys you: the anonymity set

    A CoinJoin's privacy guarantee is statistical, not absolute. Your effective anonymity set is the number of outputs in the transaction that are indistinguishable from yours. A Wasabi round with 100 participants gives you roughly 100 candidate outputs; a Whirlpool pool cycle can give you hundreds or thousands of identical denomination outputs over repeated mixes. Within that set, an analyst cannot tell which output is yours, as long as no outside information narrows it down.

    This is where most of the real-world weakness lives:

    Entry and exit points. The CoinJoin hides the transaction's interior, not your wallet's history. If you deposit KYC'd Bitcoin into a mixing wallet and later withdraw to a KYC exchange, the endpoints are fully doxxed, sophisticated analysis can often infer "these outputs belong to entity X" even inside a large anonymity set by correlating timing, amounts, and behavioral patterns. Chain analysis firms explicitly sell "CoinJoin-aware" clustering that shrinks effective anonymity sets by 10-50% in some studied designs.

    Timing and behavior. Joining a round the moment your coins arrive, always at the same hour, or always using the same fee pattern creates side channels. Waiting random intervals, using fresh addresses, and avoiding unique round sizes all matter.

    Change and consolidation. Spending two outputs from the same CoinJoin together re-links them via the common-input heuristic. Combining outputs from different rounds into one wallet is generally fine; combining outputs from the same round is not. Similarly, a change output in an EOV design leaks information.

    Coordinator metadata. Even over Tor, a malicious or compelled coordinator could log timing and volume patterns. This is why protocols like Zerolink emphasize identity isolation, and why self-hosting or rotating coordinators reduces risk.

    Limitations and deanonymization research

    Academic and industry research consistently shows CoinJoin raises the cost of analysis rather than making Bitcoin private. Studies of Dash's CoinJoin (a close structural cousin) found that a large fraction of transactions could be deanonymized under realistic assumptions, largely because users aggregate outputs across rounds, the "coin aggregation problem." Bitcoin research on Wasabi and Whirlpool similarly shows anonymity degrades as users spend mixed outputs in identifiable patterns. The practical takeaway: CoinJoin protects against passive, naive chain analysis extremely well; it does not protect against a motivated analyst with exchange cooperation, timing data, or knowledge of your endpoints.

    For stronger guarantees, privacy stacks layer CoinJoin with other tools, PayJoin for payments, atomic swaps or payjoins-to-external-chains to break the trail at withdrawal, Lightning for small payments, and Monero for transfers where legal and practical. See our Bitcoin privacy stack guide for how these fit together, and how blockchain analysis traces transactions for the attacker's side.

    Legal risks: the Samourai precedent and beyond

    This is the section most guides gloss over, and it is now the most consequential. In April 2024, the U.S. Department of Justice indicted the founders of Samourai Wallet, Keonne Rodriguez and William Lonergan Hill, alleging the wallet's Whirlpool CoinJoin and other features constituted operating an unlicensed money transmitting business and conspiring to commit money laundering. In July 2025 both pleaded guilty; in November 2025 Rodriguez was sentenced to five years in prison and Hill to four, with roughly $238 million in combined forfeitures. Prosecutors alleged over $2 billion in transactions facilitated, including proceeds from darknet markets, drug trafficking, and fraud.

    Two features of this case matter for anyone considering CoinJoin tools:

    Non-custodial did not mean safe for operators. Samourai never held user funds, it was open-source software users ran themselves. Prosecutors nonetheless treated the coordinator service and wallet features as a money transmission business under 18 U.S.C. § 1960. The legal theory, that facilitating anonymizing transactions is itself transmitting money, is aggressive and remains contested, but the precedent now exists.

    Users face a different, lower but real risk profile. The Samourai prosecution targeted developers, not users. However, mixing-adjacent activity attracts scrutiny: FinCEN has long designated mixing as a "primary money laundering concern" in its guidance, exchanges flag and freeze mixed coins, and travelers' reporting obligations can attach to large crypto movements. If law enforcement can link mixed outputs back to you through endpoint analysis, the CoinJoin did not protect you legally, only transactionally.

    Practical implications: do not run a public CoinJoin coordinator or market-making service from a jurisdiction that treats this as money transmission without counsel; be aware that Tornado Cash's 2024 Fifth Circuit ruling (immutable smart contracts aren't sanctionable) does not clearly extend to hosted coordinators or maintained software; and understand that "I was just using a privacy wallet" is not a legal defense if the funds traced to crime. CoinJoin use for lawful privacy is legal in many places, but the enforcement climate is tightening, not loosening. This is general information, not legal advice, consult a qualified attorney before high-stakes decisions.

    Best practices for CoinJoin users

    If CoinJoin fits your threat model, the following practices materially improve outcomes:

    • Separate entry and exit. Ideally, source funds that are already detached from your identity (e.g., via a no-KYC acquisition route or accumulated small purchases) rather than depositing exchange-withdrawn coins directly into a mixing wallet.
    • Use Tor/Tails and fresh identities. Every serious implementation routes through Tor; never join over clearnet. Don't reuse the same wallet fingerprint across rounds.
    • Wait and randomize. Delay joining after receiving funds; avoid joining rounds at predictable times; if liquidity allows, join larger rounds for bigger anonymity sets.
    • Don't consolidate same-round outputs. Spend outputs from different CoinJoins together freely; keep outputs from the same round separate until they've aged through additional mixes.
    • Repeat mixes for sensitive amounts. One round of 50 participants is weaker than two or three rounds, especially for large sums, though each round costs fees and time.
    • Verify the transaction. Always confirm your outputs appear correctly and that no unexpected change address was added before signing.
    • Match the tool to the threat. For everyday payments, PayJoin is cheaper and sufficient. For high-value privacy needs, layer CoinJoin with swaps and non-KYC exits. For recipients who don't care about your graph, Monero often obviates the problem entirely.

    Also remember operational security basics: keep the mixing software updated, never paste seeds into web wallets, and treat any service asking for your seed phrase as theft.

    Recommendations

    For most privacy-conscious Bitcoin users in 2026, the sensible stack is: acquire or hold coins with minimal KYC linkage, run CoinJoin through Wasabi (largest liquidity) or Whirlpool via Ashigaru (clean pools, post-Samourai continuity) depending on preference, use PayJoin for routine payments, and route withdrawals through privacy-preserving off-ramps. JoinMarket NG suits users comfortable with more manual control who want decentralized coordination and lower fees.

    CoinJoin is not anonymity, it is plausible deniability within a crowd. Used correctly, it makes blockchain analysis dramatically harder and more expensive. Used naively, KYC endpoints, reused outputs, predictable timing, it provides little real protection while still attracting the attention of analytics firms and, in some jurisdictions, law enforcement. Treat it as one layer in a privacy stack, size your expectations to your threat model, and stay current on enforcement developments, because the legal ground is shifting.

    External references

    Author OnionInfoDesk
    Bitcoin privacy tools comparison: Wasabi vs Samourai vs JoinMarket NG
    CoinJoin vs mixing vs PayJoin: which privacy technique fits?
    How blockchain analysis traces Bitcoin transactions
    How to avoid chain analysis

    Comments 0

    Add comment