• Catalog
  • Blog
  • Tor Relay
  • Jabber
  • Secret Notes
  • Temp Mail
  • Get Tor Browser
  • Crypto
    Bitcoin CoinJoin transaction diagram showing multiple inputs and equal-denomination outputs

    Bitcoin's ledger is public by design, which means every input, output, and amount on a transaction is permanently visible to anyone running a node, and to the chain-analysis companies that do. CoinJoin is the oldest and most widely deployed technique for breaking the deterministic links between those inputs and outputs. First described publicly by Bitcoin Core developer Gregory Maxwell in 2013, CoinJoin requires no changes to the Bitcoin protocol: it is simply a collaboratively constructed transaction in which several independent users pool their inputs so that an outside observer cannot tell which output belongs to which participant.

    This guide explains how CoinJoin actually works at the transaction level, the role of coordinators, the major implementations (Whirlpool, Wasabi's WabiSabi rounds, and JoinMarket), the realistic privacy gains, the limitations that chain analysts still exploit, and the legal landscape that changed dramatically after the 2024 Samourai Wallet prosecutions.

    How a CoinJoin Transaction Works

    Under normal Bitcoin use, a wallet that spends several unspent transaction outputs (UTXOs) in one transaction implicitly declares common ownership: all those coins belong to the same spender. Analysing this "common-input-ownership" heuristic is the foundation of most blockchain forensics.

    A CoinJoin breaks that heuristic by assembling a single transaction containing inputs and outputs from many unrelated wallets:

    1. Participants connect to a coordinator (or, in coordinator-less designs, a peer network) and agree on a transaction template: how many inputs each party contributes, the permitted output denominations, and the fee.
    2. Each participant selects UTXOs they want to "mix" and generates a new, fresh output address for receiving their mixed coins. The template constrains every output to specific denominations, e.g., all outputs are exactly 0.1 BTC, so that no output is distinguishable by amount.
    3. The coordinator assembles the candidate transaction: N inputs from N participants, N outputs of identical denomination, and any excess value returned as change outputs or consumed as the mining fee.
    4. Before broadcasting, each participant must produce a valid signature authorising their input(s) to be spent by this specific transaction. Because signatures commit to every input, output, and value, nobody can modify the template without invalidating the other participants' signatures. A party that refuses to sign simply cannot steal the pooled funds, their inputs are never broadcast unspent.
    5. Once all signatures are collected, the coordinator broadcasts the transaction. Confirmed on-chain, the result looks like one transaction with many inputs and many equal outputs, offering no on-chain evidence of which input funded which output.

    Two subtleties matter. First, real-world CoinJoin transactions are rarely perfectly symmetrical: participants often contribute slightly different input amounts, pay fees, and receive change back to fresh addresses. Implementations handle this with standardised change denominations or "no fee UTXOs" (inputs deliberately created solely to cover fees). Second, the security property is trustless in the cryptographic sense, the coordinator learns who paid what and when, but cannot steal the coins because it never holds the private keys.

    The Coordinator's Role and Trust Models

    Most CoinJoin designs rely on a coordinator, and the coordinator's visibility is the single biggest practical privacy variable. A coordinator necessarily sees the mapping between participants' session data and their inputs: it knows Alice's input funded output 7, even though the blockchain does not. It can also log participant IP addresses, associate multiple sessions to one identity, and, as history has shown, it can be subpoenaed or shut down.

    Coordinators fall into three broad categories:

    • Centralised software coordinators. Examples include Wasabi's (formerly zkSNACKs-run) coordination service and older Whirlpool coordination. Convenient and fast, but they concentrate metadata and represent a single point of failure. After the April 2024 Samourai arrests, zkSNACKs discontinued Wasabi's coordinated CoinJoin service in June 2024, forcing the community onto alternative coordination.
    • De-centralised / market coordinators. JoinMarket operates a peer-to-peer market where liquidity providers ("makers") post offers to join transactions for a fee, and takers schedule CoinJoins against them over the Tor network. No single entity sees the full mapping, and JoinMarket has kept the protocol alive through community-run instances. Whirlpool (a Samourai protocol, now maintained by community forks) likewise removes the trusted-coordinator role entirely: coordinators merely relay blinded signatures, and equal-denomination outputs plus an immutable "no inputs from unregistered pools" model reduce trust.
    • CoinJoin-adjacent protocols with weaker coordinator trust. PayJoin (BIP78) arranges a two-party join where the receiver adds inputs to the sender's payment transaction, useful for breaking address-reuse heuristics but providing a much smaller anonymity set than multi-party CoinJoin. CoinSwap (an atomic-swap-based technique) replaces on-chain linking with an off-chain chain of swaps, offering stronger separation but higher operational complexity.

    The recurring theme: every implementation trades convenience for coordinator exposure. De-centralised coordination improves privacy but introduces fee negotiation, matchmaking delays, and protocol-level complexity that can themselves become fingerprintable.

    Major Implementations

    Samourai Whirlpool was the most polished consumer CoinJoin implementation: fixed denominations (0.1, 0.05, 0.025, 0.01, and 0.001 BTC pools), Tor-only operation, coin control, and a UX that made mixing approachable. Whirlpool ran on the Samourai mobile and desktop wallets until the April 2024 DOJ indictments of founders Keonne Rodriguez and William Lonergan Hill; the service was seized and the developers later pleaded guilty to conspiracy charges.

    Wasabi Wallet implements CoinJoin via the WabiSabi protocol, which generalises equal-amount outputs to arbitrary amounts using secure multi-party computation commitments, allowing larger, more flexible joins while preserving the "cannot tell which output is whose" property. Wasabi remains functional but lost its paid coordination backend in 2024 and now relies on community-coordinated rounds with more limited liquidity.

    JoinMarket takes a market-based approach: makers earn fees by contributing liquidity to CoinJoins scheduled by takers, producing typical anonymity sets of tens to hundreds of participants. JoinMarket also pioneered PayJoin support and, through the JAMPAY/"JoinMarket Next Generation" work, continues to evolve toward stronger privacy guarantees.

    WabiSabi deserves special mention as a protocol rather than a product: its use of the "credentials" model and NTT (New Transcript Trees) lets participants prove membership without revealing which output they own, and it underpins both Wasabi and some Whirlpool-fork implementations.

    Realistic Privacy Gains: The Anonymity Set

    A CoinJoin's privacy is bounded by its anonymity set, the number of plausible counterparties for any given output. A 50-participant CoinJoin of equal-denomination outputs theoretically gives each output a 1-in-50 chance of belonging to a given input. In practice, effective anonymity is often lower because:

    • Change outputs leak ownership. If a participant's change returns to an address that ever touched KYC, clustering heuristics may still link the mixed output.
    • Timing analysis. An analyst who knows when you broadcast can correlate your session with the resulting transaction, especially if few CoinJoins occur in that window.
    • Input fingerprints. Distinctive input combinations, unusual denominations, taproot vs. legacy script types, specific coin ages, can narrow the candidate set even when amounts match.
    • Coordinator and network metadata. IP addresses, session logs, and behavioural patterns remain visible to the coordinator and to network observers unless carefully separated.

    CoinJoin raises the cost of tracing substantially, but it does not make transactions untraceable in the way Monero's ring signatures do. It is best understood as probabilistic plausible deniability, not anonymity.

    Limitations and What Chain Analysts Still Exploit

    CoinJoin cannot hide that a transaction is a CoinJoin, equal-denomination outputs and coordinated timing are themselves a fingerprint. Sophisticated analysts apply several residual heuristics:

    • Pre-join ownership clustering. If all of your inputs trace back to one exchange withdrawal, your mixed output inherits suspicion regardless of the join.
    • Post-join behaviour. Spending the mixed output alongside known coins, or sending it to a tagged address (a merchant, an exchange deposit address), re-links it to you.
    • Transaction graph statistics. The size, fee rate, and output pattern of a join are machine-learnable, letting analysts classify joins and even estimate participant counts.
    • Inadequate denominational uniformity. Implementation bugs or unusual amounts can make specific outputs stand out.

    Cost is another real limitation: CoinJoin fees scale with round size and liquidity. Wasabi rounds often charged per-coin fees that could exceed the privacy value for small amounts; JoinMarket fees are negotiated per-market and can vary widely. Privacy gains also decay over time, a mixed coin spent years later still carries whatever history its predecessors accumulated.

    CoinJoin vs Other Bitcoin Privacy Approaches

    CoinJoin is best compared against alternatives rather than treated as the only option:

    • PayJoin offers lower anonymity (typically 2 parties) but near-zero fees and no coordination round. It is a pragmatic first step, not a substitute for CoinJoin.
    • CoinSwap can provide stronger separation because the linking happens off-chain through atomic swaps, but it requires liquidity providers and more technical skill.
    • Lightning Network private channels can obscure payment flows at the routing layer, though channel funding and on-chain settlement still leak information.
    • Monero provides default-on privacy via ring signatures, stealth addresses, and RingCT, making it a stronger privacy tool by default, at the cost of weaker liquidity and exchange support.
    • Custodial mixers (Tornado Cash-style services, centralized tumblers) offer larger anonymity sets but introduce custodial risk, legal exposure, and the possibility of theft, risks CoinJoin's trustless design largely avoids.

    For most users, CoinJoin remains the best balance of trustlessness, implementability, and privacy on Bitcoin specifically.

    Legal and Regulatory Considerations

    CoinJoin occupies an unusual legal position because it involves no custodian, no pooled funds held by an operator, and no protocol changes. Whether it constitutes "money transmission" or money laundering depends heavily on jurisdiction and intent.

    In the United States, FinCEN's 2019 guidance (FIN-2019-G001) distinguishes custodial money transmitters from non-custodial software providers, and the DOJ's 2025 guidance on digital assets states that merely writing code, without ill intent, is not a crime. However, the April 2024 Samourai Wallet prosecution demonstrated that prosecutors will pursue developers of privacy tools under 18 U.S.C. §1960 (unlicensed money transmission) and §1956 (money laundering conspiracy) when they believe the tool was marketed to illicit users and processed substantial criminal proceeds, the Samourai founders were sentenced to five and four years respectively in late 2025, with over $237 million in forfeiture. No charges were brought against Wasabi's operator zkSNACKs, which exited CoinJoin coordination voluntarily.

    In the European Union, no blanket prohibition on CoinJoin exists; legality turns on whether the coins themselves derive from crime and whether the user is a regulated entity. The US Secret Service has issued advisories warning that decentralized mixers including CoinJoin-based services can be used to launder funds, which raises practical risk for users whose transactions attract scrutiny.

    Important disclaimer: this article is educational, not legal advice. Using CoinJoin to conceal proceeds of crime is illegal in virtually every jurisdiction. Even lawful users should understand that mixing transactions may trigger exchange compliance flags, delayed withdrawals, or account freezes.

    Practical Warnings and Best Practices

    Before running a CoinJoin, understand the operational risks:

    • Use reputable, open-source implementations (Wasabi, JoinMarket) rather than unknown forks or websites offering "mixing services", several have been scams.
    • Always operate over Tor; exposing your IP during a join can defeat the privacy gain.
    • Fund the wallet with coins that have no KYC link where possible; CoinJoin cannot retroactively cleanse tainted history.
    • Avoid reusing change addresses and never send mixed coins back to a previously used address.
    • Expect fees and delays; larger anonymity sets are worth the cost for meaningful amounts, but small CoinJoins may cost more in fees than the privacy is worth.
    • Do not treat CoinJoin as a substitute for legal compliance, it is a privacy tool, not a licence to evade reporting obligations.

    Conclusion

    CoinJoin remains the foundational privacy primitive for Bitcoin: a trustless, protocol-native technique that breaks the common-input-ownership heuristic by pooling inputs into equal-denomination outputs. Implementations have matured from Maxwell's 2013 proposal into production systems like Whirlpool, Wasabi/WabiSabi, and JoinMarket, each trading off anonymity set size, coordinator trust, and usability differently. Its privacy is real but bounded, chain analysts still exploit timing, change, and behavioural heuristics, and its legal status, while generally favourable for non-custodial use, has been tested aggressively by the Samourai prosecution. Users should approach CoinJoin with realistic expectations, strong operational hygiene, and an understanding that no single tool makes Bitcoin transactions untraceable.

    External sources consulted: Gregory Maxwell's original CoinJoin post, Open Bitcoin Privacy Project CoinJoin documentation, CoinLab's CoinJoin analysis, US Secret Service advisory on cryptocurrency mixers, Wasabi CoinJoin documentation, and reporting on the Samourai Wallet prosecution.

    Author OnionInfoDesk
    CoinJoin Explained: Bitcoin Privacy Technique Guide
    How Blockchain Analysis Traces Bitcoin Transactions
    How to Spend Bitcoin Privately: CoinJoin Tools and Threat Models
    Bitcoin vs Monero: Which Cryptocurrency Is More Private?

    Comments 0

    Add comment