• Catalog
  • Blog
  • Tor Relay
  • Jabber
  • Secret Notes
  • Temp Mail
  • Get Tor Browser
  • Crypto
    Bitcoin CoinJoin diagram showing multiple participants combining inputs into one transaction with equal-sized outputs to fresh addresses

    CoinJoin is the most important privacy technique available on Bitcoin that does not require changing the protocol itself. Instead of trusting a mixing service with your coins, a CoinJoin constructs a single ordinary Bitcoin transaction in which several independent participants combine their inputs, then send identically sized outputs to fresh addresses they each control. Because every participant signs their own input, and because the outputs are deliberately indistinguishable, an outside observer cannot reliably tell which output belongs to which participant. This guide walks through how CoinJoin actually works at the transaction level, traces its history from Gregory Maxwell's 2013 proposal to the protocols used today, explains what it does and does not hide, and covers the legal and practical realities of using it in 2026.

    What a CoinJoin Actually Is on the Blockchain

    Bitcoin transactions are built from inputs and outputs. An input spends a previous output, and outputs assign new amounts to addresses. Normally, a wallet creates a transaction alone: your inputs, your payment, your change. That creates a cluster of addresses that analysts assume belong to one entity, because few users routinely combine inputs from different sources.

    A CoinJoin breaks that assumption by combining inputs from many participants in one transaction. The canonical example is a "Wasabi-style" round: a group of participants each contribute one or more inputs, the coordinator assembles them into a single transaction, and each participant receives outputs of equal value (say, 0.1 BTC each) sent to addresses they generated privately. The transaction has dozens of inputs and a long row of identical outputs, plus small "marker" outputs that pay the coordinator or miners.

    The critical property is non-custodial trustlessness. No participant ever gives up control of their coins. Each participant signs only their own inputs, and the transaction is only valid if every signature checks out. If the coordinator disappears, tries to steal, or broadcasts a modified transaction, the round simply fails and the participants can abort. This is fundamentally different from a classic mixer or tumbler, where you send coins to a service and trust it to return different coins later. In a CoinJoin there is no intermediary holding funds at any point, which matters enormously for both security and for how regulators classify the activity.

    How a CoinJoin Round Works Step by Step

    Although implementations differ, most CoinJoin protocols follow the same shape, originally formalized by Maxwell as "CoinShuffle" and later refined into the Chaumian blind-signature scheme used by Whirlpool and WabiSabi.

    Step 1, Input registration. Each participant connects to the coordinator over an anonymity network such as Tor and declares which of their UTXOs they want to contribute. In Chaumian schemes, the participant does not reveal the actual input to the coordinator in a linkable way; they submit blinded or pseudonymized registrations so the coordinator cannot pair inputs with identities.

    Step 2, Output registration. Each participant also provides the outputs they want to receive, fresh addresses generated locally in their wallet, plus amounts that match the round's denomination scheme. The coordinator collects all inputs and outputs and builds a candidate transaction.

    Step 3, Verification and signing. The coordinator broadcasts the unsigned transaction structure. Each participant independently verifies that their own inputs are present, their own outputs are present at the expected amounts, the fee is acceptable, and that the change returns to them. Only then do they sign their inputs. Because every input must sign correctly, the coordinator cannot quietly alter amounts or redirect funds, tampering would invalidate the transaction or, worse for the attacker, be caught during verification.

    Step 4, Broadcast. Once enough signatures are collected, anyone (usually the coordinator) broadcasts the transaction. The outputs now appear on-chain as equal-valued payments to unrelated addresses. An analyst sees, at most, that "one of these N outputs" belongs to each participant, a k-anonymity guarantee where k is the number of same-denomination outputs.

    Some protocols improve on this baseline. PayJoin adds the payee as a second participant so that a normal payment contains inputs from both sender and receiver, defeating common-input-ownership heuristics without equal outputs. First-Time CoinJoin (an idea popularized by cold-storage vendors) proposes doing the mixing in the mempool, broadcasting a CoinJoin-shaped transaction that gets confirmed in the same block as ordinary payments, so it blends in with background noise. Mempool-based and stealth CoinJoin proposals attempt the same trick: make the mixing transaction statistically indistinguishable from ordinary activity.

    The Main Implementations and Their Trade-offs

    CoinJoin has gone through several generations, and the landscape shifted dramatically after April 2024.

    CoinShuffleXT (Gregory Maxwell, 2013) was the original centralized CoinShuffle, a trusted coordinator shuffled inputs to outputs. It never shipped widely but established the idea.

    JoinMarket pioneered a decentralized market model: makers offer liquidity (their inputs/outputs) for a fee, and takers assemble rounds by matching offers. There is no central coordinator at all, just a peer-to-peer order book of liquidity offers, with fees set by market supply and demand. It remains one of the most censorship-resistant options, though it demands more technical skill.

    Samourai Wallet's Whirlpool used a Chaumian blind-signature protocol with fixed denominations, 0.001, 0.01, 0.05 and 0.5 BTC pools, each round mixing exactly five participants. It was the most user-friendly CoinJoin product, but in April 2024 US authorities arrested Samourai's founders and seized infrastructure; Sparrow Wallet removed Whirlpool support shortly after. Important warning: old Samourai or Whirlpool software and abandoned domains are a malware risk, do not install them.

    Wasabi Wallet moved from its ZeroLink protocol to WabiSabi in 2022, enabling variable-amount CoinJoins with zero-knowledge proofs and keyed-verification anonymous credentials. After zkSNACKs shut down its own coordinator in June 2024 (citing regulatory uncertainty following the Samourai arrests), Wasabi 2.x lets users choose third-party coordinators. Rounds typically include 50-150 participants with a minimum of around 21 inputs, though analysis suggests effective per-denomination anonymity sets are often much smaller than round size, commonly in the range of 5-14 within a single denomination tier.

    Ashigaru is Samourai's successor mixing tool, continuing the fixed-denomination Chaumian approach. Whether a given client or coordinator is currently operational changes month to month, so verify the current status before use rather than relying on old guides.

    What CoinJoin Hides, and What It Does Not

    CoinJoin's privacy guarantee is narrower than many users assume. It breaks the direct link between a specific input and a specific output within the transaction. That means an analyst cannot say "this 0.1 BTC output came from that 0.3 BTC input." What they can often still see is that you participated in a CoinJoin at all, equal-denomination outputs in a many-input transaction are a recognizable pattern, even if attribution within the set is impossible.

    The anonymity set is the number of equally plausible outputs. Larger rounds and uniform denominations produce stronger guarantees; a five-person Whirlpool round gives you k=5, which is meaningful but not large. Repeating CoinJoins compounds protection, the standard practice of mixing coins several times over days or weeks, but each round leaks timing, fee, and denomination fingerprints.

    There are also leaks outside the transaction itself. The coordinator can see the input-to-identity mapping during registration unless the protocol uses strong blinding; WabiSabi and Chaumian schemes specifically address this. Network-layer correlation matters: if your wallet connects to the coordinator without Tor, an observer watching network traffic can link your IP to your participation. And behavioral clustering persists, if all your UTXOs later converge into one wallet or one payment, analysts can still associate the cluster with you. CoinJoin is a tool for breaking transaction-level linkage, not a magic cloak.

    Limitations and How Analysts Fight Back

    CoinJoin has well-documented weaknesses that academic and commercial analysts actively exploit.

    Detectability. Researchers have published heuristics that classify CoinJoin transactions with high accuracy, distinguishing them from ordinary payments by input counts, output uniformity, fee patterns, and change-output absence. A 2021 study showed machine-learning models could identify Wasabi rounds with near-perfect accuracy, and follow-up work generalized detection across implementations. Being "obviously in a CoinJoin" is itself information.

    Dust and change fingerprints. Coin-selection algorithms leave traces. If a wallet uses "optimal change" heuristics, the change output's size can reveal which participant is which. PayJoin implementations that select inputs poorly can leak the same way via the unnecessary-input heuristic. Sophisticated wallets mitigate this; naive ones do not.

    Small effective anonymity sets. A round of 100 participants might contain only a handful of same-denomination outputs, so your true k-anonymity is the per-denomination count, not the round size. Fees also matter: if your output is the only one paying a particular coordinator fee tier, you are de-anonymized by the fee column.

    Taint propagation. CoinJoin breaks linkage within the transaction, but downstream analysis still works. If a deanonymized output later funds a known service deposit, analysts can trace forward, and backward taint analysis combined with timing can sometimes reconstruct links the CoinJoin was meant to hide.

    Coordinator trust remains. Even in Chaumian schemes, the coordinator learns who participated (metadata) and could in theory collude with an analyst, censor rounds, or selectively serve targeted users. Coordinator diversity, running or choosing among independent coordinators, is the practical mitigation.

    Legal Considerations: Participants vs. Operators

    The legal picture for CoinJoin is genuinely unsettled, and it differs sharply between using the technology and operating it. This is not legal advice; consult a qualified attorney in your jurisdiction.

    For end users: CoinJoin is not custodial, you never hand coins to a third party, which distinguishes it from money-transmission services on paper. No major jurisdiction has prosecuted merely participating in a CoinJoin round. However, regulators have not blessed it either: FinCEN's 2019 guidance treats anonymizing services that accept and transmit funds as money transmitters, and CoinJoin sits in a gray zone precisely because no funds are custodied. Using CoinJoin to conceal proceeds of crime is money laundering almost everywhere, and "I was just being private" is not a defense if the underlying funds are illicit. Tax reporting obligations are unaffected, you must still report crypto gains.

    For operators: the risk is severe and demonstrated. In April 2024, US prosecutors charged Samourai Wallet's founders Keonne Rodriguez and William Lonergan Hill with conspiracy to commit money laundering and operating an unlicensed money transmitting business, alleging the service processed over $2 billion and laundered at least $100 million in crime proceeds from darknet markets and fraud. The indictment's theory was that Samourai marketed anonymity and operated as a service, making it an unlicensed transmitter, not merely that users mixed coins. The parallel Tornado Cash litigation produced a split outcome: the Fifth Circuit ruled in late 2024 that immutable smart contracts are not "property" subject to sanctions, while the developers' trial raised separate questions. Running a CoinJoin coordinator, selling Whirlpool-as-a-service, or operating mixing infrastructure carries real criminal exposure in the US, EU and UK.

    Practical takeaway: if you use CoinJoin, use reputable open-source clients, verify coordinator reputations, keep your own records, and never mix funds you cannot legally explain. If you operate infrastructure, understand that "it's just a coordinator, we never touch coins" is a defense that has not been tested in court, Samourai's prosecution shows prosecutors will argue the service itself is the crime.

    CoinJoin vs. Other Privacy Tools

    CoinJoin is one tool among several, each with different guarantees:

    Custodial mixers/tumblers offer strong anonymity if honest but require total trust, they can steal, keep logs, or be seized. CoinJoin eliminates the custody risk but produces publicly visible "mixing-shaped" transactions.

    Monero hides sender, recipient and amount at the protocol level for every transaction, making it categorically stronger privacy than opt-in CoinJoin, at the cost of a smaller ecosystem and, for some merchants, less acceptance. See our comparison of Bitcoin vs Monero privacy.

    Zcash shielded transactions similarly hide amounts and parties via zk-SNARKs, with the caveat that shielded-pool usage has been low enough that participation itself can be distinctive.

    PayJoin (BIP78) breaks common-input heuristics on ordinary payments with minimal overhead, a complement to CoinJoin rather than a replacement, since it does not equalize outputs or provide a large anonymity set.

    Lightning Network moves payments off-chain into private channel transactions, which hides payment details from the public ledger but introduces its own topology-analysis risks. See the Lightning privacy guide for how channel privacy actually works.

    For darknet or high-threat users, the usual guidance is layered: private acquisition, CoinJoin or Monero for consolidation, Tor for network traffic, and no address reuse. Our threat-model guide to spending Bitcoin privately covers that stack in detail.

    Practical Guidance for Using CoinJoin Safely

    If you decide CoinJoin fits your threat model, the operational rules are straightforward but easy to get wrong:

    Use only actively maintained open-source software, Wasabi (with a chosen third-party coordinator) or JoinMarket are the current realistic options; verify that whatever you download is still supported. Always connect through Tor; coordinator logs plus IP logs defeat the entire exercise. Prefer larger rounds and avoid unique denominations or fee tiers that single you out. Repeat CoinJoins over time rather than one large round, and never send mixed outputs directly to an exchange deposit or a known-linked address, spend through an intermediate step so the post-mix cluster doesn't trivially identify you. Keep records for taxes; CoinJoin does not change your reporting obligations.

    Finally, treat every CoinJoin as probabilistic privacy, not anonymity. It raises the cost of analysis and breaks the most common heuristics, but it does not make you untraceable. For users whose threat model includes nation-state analysis or whose funds must be deniable, Monero or Zcash shielded pools remain the stronger tools, covered in our guides to Monero's privacy model and Zcash shielded transactions.

    Further Reading and Sources

    For deeper technical reading: Peter Todd's comparison of CoinJoin implementations, the arXiv paper on adoption and actual privacy of decentralized CoinJoin implementations, the heuristics for detecting CoinJoin transactions, the SDNY Samourai superseding indictment, and CoinDesk's coverage of the Samourai arrests and the Tornado Cash and Samourai suits. Related OnionInfoDesk coverage includes the CoinJoin explainer, the privacy tools comparison, mixers and tumblers explained, and how blockchain analysis works.

    Disclaimer: This article is for educational purposes only and is not legal or financial advice. Cryptocurrency privacy tools carry legal risks that vary by jurisdiction; consult a qualified professional before use. Never use mixing or privacy tools to conceal proceeds of crime.

    Author OnionInfoDesk
    CoinJoin Explained: The Bitcoin Privacy Technique Guide
    Bitcoin Privacy Tools Compared: Wasabi, JoinMarket, JAM, PayJoin and CoinSwap
    Crypto Mixers and Tumblers: How They Work and Whether They Are Legal
    Samourai Wallet Executives Arrested on Money Laundering Charges

    Comments 0

    Add comment