• Catalog
  • Blog
  • Tor Relay
  • Jabber
  • Secret Notes
  • Temp Mail
  • Get Tor Browser
  • Crypto
    Bitcoin CoinJoin field guide: privacy mixing, anonymity sets, Wasabi, Whirlpool, JoinMarket

    CoinJoin is Bitcoin's most important on-chain privacy technique: instead of sending a transaction alone, you cryptographically merge your inputs and outputs with those of other, unrelated users into a single transaction in which every participant receives an identical output amount. To anyone watching the blockchain, the result looks like a crowd, a handful or dozens of equally-sized coins changed hands, and it becomes genuinely hard to say which output belongs to which participant. Because no third party ever takes custody of your coins, CoinJoin avoids the single biggest risk of traditional mixers: you never hand your funds to someone who can run off with them.

    This field guide covers how CoinJoin actually works under the hood, the major implementations in use today (JoinMarket, Wasabi's WabiSabi, Whirlpool and its Ashigaru successor, PayJoin and related techniques), what an "anonymity set" really means in practice, where CoinJoin falls short, the legal and regulatory landscape, including the 2024 Samourai Wallet prosecution, and concrete best practices for getting real privacy without creating new risks. If you need the fundamentals first, read our CoinJoin explainer, and for the adversary's perspective see how blockchain analysis traces Bitcoin transactions.

    How CoinJoin works: the mechanics

    The core idea is simple enough to explain in one sentence: many people each contribute an input of roughly the same size to one transaction, and each receives back the same output amount, so no observer can map inputs to outputs. In practice the mechanics are more subtle, because Bitcoin has no native mixing primitive. Every implementation has to solve the same problems.

    The coordinator. In every mainstream CoinJoin, a "round server" or coordinator collects participants' inputs and desired outputs, assembles a transaction, and broadcasts it once everyone has signed. The coordinator is a central point of failure and a privacy leak: it learns, at minimum, which inputs belong to the same participant and which outputs each participant registered. Designs differ in how much the coordinator can actually link. Some protocols (like early Chaumian rounds) require the coordinator to see input-output associations; modern protocols like WabiSabi use zero-knowledge proofs so that even the coordinator cannot determine which output belongs to which input.

    Equal outputs and the anonymity set. The privacy unit is the anonymity set: the set of output addresses that could plausibly be yours. If five people join a round and each receives 0.1 BTC, an observer knows your coin is one of five, a k-anonymity set of five. Bigger rounds, more participants, and larger denominations pools all enlarge the set. Anything that distinguishes your output, a unique amount, an unusual fee, a timing signature, or an off-chain leak, shrinks it.

    Signatures and the trust problem. Participants never need to trust the coordinator with their keys, because each participant signs only their own inputs with a Schnorr signature committed to the final transaction. The coordinator cannot steal funds; it can only censor or refuse to broadcast. Some protocols add a "blame round" so that if a participant fails to sign, their coins can be blacklisted and the round retried.

    Heuristics still apply. CoinJoin defeats the basic input-ownership and change-output heuristics, but it does not make the transaction invisible. Analysts can still flag CoinJoin transactions (equal outputs are a giveaway), measure round sizes, and apply timing, fee-pattern, and wallet-fingerprint analysis. CoinJoin is a probabilistic defense, not a guarantee.

    The main implementations

    JoinMarket. The oldest surviving CoinJoin implementation (running since roughly 2016) works as an open market rather than a fixed round. "Makers" post offers to contribute liquidity to joins; "takers" pay a fee to schedule a join. Because it is decentralized with no single coordinator, it has no central operator to seize, but its fee market and pseudonymous maker identities add complexity. JoinMarket was reimplemented in 2024-2025 as JoinMarket NG with a cleaner codebase and better wallet integrations, and it remains the implementation of choice for technically inclined users.

    Wasabi Wallet (WabiSabi). Wasabi's CoinJoin is built on WabiSabi, a protocol based on keyed-verification anonymous credentials that generalizes older Chaumian designs. Its big advantages: variable amounts are allowed (you don't have to join a fixed denomination pool), change outputs are possible without leaking which is which, and the coordinator cannot link inputs to outputs thanks to zero-knowledge proofs. Wasabi connects over Tor by default and has historically produced the largest CoinJoin rounds on Bitcoin. Trade-offs: the coordinator fee model and reliance on Tor for deanonymization resistance, plus the trust you place in the Wasabi project's infrastructure choices.

    Whirlpool and Ashigaru. Samourai Wallet's Whirlpool is a ZeroLink-based coinjoin with fixed denomination pools (0.001, 0.01, 0.05 and 0.5 BTC) and a distinctive "premix" transaction (Tx0) that splits your coins into pool-sized outputs before joining, so no change output exists to fingerprint. Whirlpool's design targets forward privacy: users can repeatedly send outputs back through Whirlpool so that a later spend is separated from the original deposit by multiple hops. In April 2024, US authorities arrested Samourai's founders and seized its servers, ending Whirlpool as operated by Samourai. In June 2025 the Ashigaru Open Source Project released a Tor-only Whirlpool coordinator built on the Samourai codebase, and Ashigaru also ships a mobile wallet, currently the practical way to run Whirlpool-style joins.

    PayJoin (BIP78). Strictly speaking PayJoin is not a CoinJoin, but it belongs in any field guide. It is a two-party protocol in which the payer and payee collaborate on a single transaction that combines both parties' inputs, defeating the common-input-ownership heuristic. PayJoin gives a modest anonymity set (essentially two parties' coins) but costs almost nothing and can be used for every ordinary payment, many wallets now support it automatically. It is best viewed as a complement to CoinJoin, not a replacement.

    Adjacent techniques. Silent payments (BIP352), CoinSwap, and atomic swaps offer different privacy trade-offs, see our privacy tools comparison for how they stack up. For darknet-specific payment hygiene, our guide on Bitcoin privacy on darknet markets covers how these tools fit a threat model.

    Understanding anonymity sets: what "k" really means

    Anonymity-set size is the number that matters, and it is almost always smaller than people assume. A Whirlpool 0.05 BTC round with five participants gives you a k-anonymity set of five for that transaction. Several factors shrink the effective set:

    • Amount filtering. If your funds originated from a deposit of a unique size, analysts can restrict the candidate set to inputs matching that amount. Equal outputs help, but the input side still carries information.
    • Timing. If you join a round seconds after a known deposit or withdrawal, temporal correlation can link the two. Longer delays and larger pools blunt this.
    • KYC linkage. If one of your inputs traces back to a KYC'd exchange withdrawal with a distinctive amount, the anonymity set collapses for that input regardless of how many other participants joined.
    • Clustering. Researchers have shown that linking your post-CoinJoin transactions (for example, by spending two outputs together later) enables intersection attacks that narrow down which outputs were yours. This is why re-joining outputs through further rounds, Whirlpool's chain approach, exists.
    • Small rounds. Many CoinJoin transactions on-chain are tiny. Research measuring Wasabi and Whirlpool adoption found thousands of detected joins but with widely varying participant counts; the median round is far smaller than the headline maximums.

    The practical rule: a CoinJoin is only as private as the largest honest crowd it puts you in, minus everything an adversary already knows about your coins. Aim for rounds with many participants, avoid unique amounts, and never reuse linked addresses afterward.

    Limitations and failure modes

    CoinJoin has well-documented weaknesses worth understanding before relying on it:

    It only breaks links, it doesn't create anonymity. Your pre-join history and post-join behavior remain visible. If you deposit KYC-linked coins and later spend to a known merchant, the join helps but does not erase the trail. Privacy is cumulative, you need good practices before and after the join.

    Coordinator risks. A malicious coordinator can attempt timing analysis, selectively censor participants, or run sybil rounds. Tor-only designs (Ashigaru, Wasabi by default) mitigate IP-based linkage. Because the coordinator cannot steal funds, the residual risk is privacy loss and denial of service, not theft, but privacy loss is often the whole point.

    Fingerprinting your wallet. Wallets that always select the same UTXO patterns, use identical fee rates, or broadcast instantly can be clustered across joins. Your transaction construction matters as much as the join itself.

    Regulatory visibility. Exchanges and blockchain-analytics firms (Chainalysis and peers) flag CoinJoin transactions heuristically. Coins that have passed through identifiable CoinJoin rounds can trigger enhanced due diligence, delayed withdrawals, or outright refusal at some venues. That is a feature of the ecosystem's current compliance posture, not a bug in CoinJoin.

    Legal and regulatory risks

    Using CoinJoin is legal in most jurisdictions, it is a self-custody, non-custodial technique you run on your own wallet. But "legal" comes with important caveats, and the landscape shifted dramatically in 2024.

    The Samourai precedent. In April 2024, the US Department of Justice arrested Samourai Wallet founders Keonne Rodriguez and William Hill, alleging the service facilitated more than $100 million in money laundering and executed over $2 billion in unlawful transactions. The charges, conspiracy to commit money laundering and conspiracy to operate an unlicensed money-transmitting business, targeted the operators of the mixing service, not individual users who joined Whirlpool rounds. Still, the case established that US prosecutors view CoinJoin coordination infrastructure as potentially regulable money-transmission activity, and it chilled the entire ecosystem: Whirlpool's coordinator went dark and community forks like Ashigaru emerged.

    Mixer regulation. In October 2023 FinCEN proposed treating international convertible virtual currency mixing as a class of transactions of primary money laundering concern under Section 311 of the Bank Secrecy Act. Separately, FinCEN has long held that custodial mixing services must register as money transmitters with AML/KYC programs, rules that privacy-focused services effectively cannot satisfy. Non-custodial, user-run CoinJoins sit in a grayer zone, but the direction of travel is toward more scrutiny, and Tornado Cash-style sanctions designations show that even smart-contract protocols can be targeted.

    Practical legal exposure for users. The realistic risks for individuals are: (1) exchanges may refuse or delay withdrawals of tainted/mixed coins; (2) receiving funds from sanctioned mixers or entities can create OFAC exposure; (3) in some jurisdictions, structuring transactions to evade reporting thresholds is itself an offense regardless of the tool used; (4) law enforcement can subpoena or seize coordinator infrastructure, as happened with Samourai. None of this makes CoinJoin illegal for ordinary users, but it means "I used a privacy tool" can become a question you have to answer, to an exchange's compliance team, a bank, or a court.

    Best practices for effective CoinJoin privacy

    Based on the mechanics and threat models above, here is a practical checklist:

    Before joining. Use coins with clean, unremarkable histories, avoid inputs traceable to a KYC'd exchange deposit with a unique amount. Fund your wallet privately where possible (peer-to-peer purchase, or mined/earned coins). Connect over Tor or a reputable VPN; several implementations require Tor anyway.

    Choosing a round. Prefer rounds with more participants and standard denominations. For Whirlpool/Ashigaru, use the chain feature: send your output back through Whirlpool multiple times so the eventual spend is several hops removed from the join. For Wasabi, larger rounds and avoiding change-heavy patterns improves the set. For JoinMarket, compare maker fees and liquidity.

    During and after. Do not announce or timestamp-correlate your join. After joining, treat every output as potentially linked: never spend two outputs from the same round together, never reuse addresses, and vary your future transaction patterns. When paying a merchant, consider PayJoin so the payment itself blends inputs.

    Wallet hygiene. Use a dedicated privacy wallet (Wasabi, Ashigaru, Sparrow with JoinMarket) separate from your everyday wallet. Keep the seed offline, verify software signatures, and remember that CoinJoin does nothing for metadata privacy, IP leaks, exchange KYC, and physical-world identification remain outside its scope. For high-sensitivity situations, compare Bitcoin privacy approaches honestly: Monero's ring signatures and stealth addresses provide stronger default privacy than any Bitcoin technique, at the cost of smaller liquidity and exchange acceptance.

    Know when not to bother. If your threat model includes a motivated nation-state or the coins are already tainted by a major hack or sanction, CoinJoin alone will not save you, layer it with other techniques, source clean coins, and get qualified legal advice before moving funds. CoinJoin is a strong tool for everyday financial privacy; it is not magic, and treating it as such is how people get hurt.

    Bottom line

    CoinJoin remains the most practical way to add real anonymity to Bitcoin transactions without trusting a custodian. Wasabi's WabiSabi offers the most flexible modern design, Whirlpool/Ashigaru offers denomination-based chains with strong forward-privacy properties, JoinMarket offers a decentralized market model, and PayJoin quietly improves every payment. The technique's limits are well understood: anonymity sets are smaller than they look, clustering and timing attacks persist, and the post-2024 regulatory environment means mixed coins can attract scrutiny at off-ramps. Used with disciplined wallet hygiene and realistic expectations, CoinJoin is a legitimate and effective privacy layer, just never mistake a crowd for a cloak.

    Author OnionInfoDesk
    CoinJoin explained: the Bitcoin privacy technique guide
    How blockchain analysis traces Bitcoin transactions
    CoinJoin implementations: Wasabi, Samourai, JoinMarket & Ashigaru
    Darknet market Bitcoin privacy: CoinJoin and mixing best practices

    Comments 0

    Add comment