• Catalog
  • Blog
  • Tor Relay
  • Jabber
  • Secret Notes
  • Temp Mail
  • Get Tor Browser
  • Crypto
    Diagram showing multiple Bitcoin users combining inputs into equal-value CoinJoin outputs to obscure transaction ownership links

    CoinJoin is the most widely deployed privacy technique on Bitcoin: a cooperative transaction in which multiple independent users combine their inputs into a single on-chain transaction so that observers cannot reliably match inputs to outputs. No consensus changes are needed, no new cryptography is required, and the result is an ordinary Bitcoin transaction anyone can broadcast. That simplicity is also its limitation: CoinJoin provides probabilistic privacy — it enlarges the set of possible owners of an output — rather than the cryptographic guarantees of ring signatures or zero-knowledge proofs.

    This guide covers what CoinJoin is, how the mechanics work under the hood, the major implementations in use today (Wasabi's WabiSabi rounds, Samourai/Ashigaru Whirlpool, and JoinMarket's maker-taker market), what privacy it realistically delivers according to academic measurement, the legal risks that have crystallized since the 2024 Samourai Wallet prosecution, and practical best practices for anyone considering it. It is written as risk-education: CoinJoin on your own funds is legal in most jurisdictions, but the regulatory boundary around privacy tools is actively contested, and enforcement actions now extend to the software itself.

    What CoinJoin Is and Where It Came From

    CoinJoin was proposed by Bitcoin developer Gregory Maxwell in 2013 in a post titled “CoinJoin: Bitcoin privacy for the real world.” The core observation behind it is that ordinary Bitcoin transactions leak their structure: when one wallet spends several UTXOs at once, every input in that transaction is presumed to belong to the same owner. That assumption — often called the common-input-ownership heuristic — is the foundation of almost all blockchain analytics. CoinJoin breaks the assumption by making inputs genuinely mixed.

    The technique does not hide amounts through cryptography. Instead it creates a crowd: if ten users each contribute inputs and each receives an output of the same value in the same transaction, an observer knows the funds came from one of those inputs but cannot determine which output belongs to which contributor. The size of that crowd is called the anonymity set (or k-anonymity set). Privacy scales with how large and how "clean" that set is.

    How a CoinJoin Transaction Works Step by Step

    Despite different implementations, every CoinJoin follows the same basic lifecycle:

    1. Input registration. Users select UTXOs they want to mix and prove they can spend them. In coordinated protocols like WabiSabi, users also register a change output and a blinded output for their desired payment amount.

    2. Output denomination selection. Each wallet decomposes its mixed amount into outputs of predefined or computed denominations, so that many participants end up requesting the same output sizes. In fixed-denomination systems (Whirlpool), outputs are standardized pool sizes such as 0.001, 0.01, 0.05, and 0.5 BTC. In variable-amount systems (WabiSabi, JoinMarket), an algorithm picks denominations that maximize the probability of collision across participants while minimizing “toxic change.”

    3. Transaction construction. A coordinator — or, in JoinMarket's case, a taker — assembles an unsigned transaction containing every participant's inputs, outputs, and fee allocation. The coordinator never sees private keys and cannot steal funds; it can, however, refuse to broadcast, attempt censorship, or learn timing and network metadata about participants.

    4. Signing and broadcast. Each participant verifies the assembled transaction contains exactly their requested inputs and outputs, signs it, and returns their signature. Once all signatures are collected, the coordinator broadcasts the final transaction, which is then an ordinary Bitcoin transaction indistinguishable from any other on-chain.

    The critical property: no single party ever sees the complete input-to-output mapping. Coordinated CoinJoin wallets use separate Tor circuits for input and output registration precisely to prevent the coordinator from correlating who contributed what. JoinMarket goes further: makers learn nothing about the taker's mapping at all, though the taker necessarily knows which makers they paired with.

    The Major Implementations

    Wasabi Wallet and the WabiSabi Protocol

    Wasabi is a desktop wallet whose CoinJoin implementation has gone through two generations. Wasabi 1.x was based on the ZeroLink protocol, using large coordinated rounds with dozens of participants and fixed denominations per denomination group. Wasabi 2.x adopted WabiSabi, a protocol described in a 2021 academic paper, which permits arbitrary input and output values while an algorithm steers users toward shared denominations.

    WabiSabi's advantages are practical: variable amounts mean less leftover “change” that could link pre-mix and post-mix UTXOs, and registration phases are separated over different Tor circuits. Rounds typically gather 50–150 participants over several minutes. Wasabi also maintains an anonymity-score heuristic per UTXO, though measurement studies note this score approximates rather than exactly equals true k-anonymity.

    Whirlpool (Samourai and Ashigaru)

    Whirlpool, originally built into Samourai Wallet and later maintained in the community-driven Ashigaru successor, used fixed-denomination pools with small, fast rounds. Classic Whirlpool rounds contained five participants, each receiving equal-sized outputs, and — distinctively — remixing was free and unlimited after the initial fee: a UTXO could cycle through repeated rounds, compounding its anonymity set each time. A one-time TX0 transaction first isolated the mixed funds from identifiable change, solving a classic linking problem.

    Whirlpool's design is elegant but was also the feature prosecutors focused on: every Whirlpool transaction was coordinated by Samourai's servers, which collected fees and, per the indictment, logged participant data. The protocol design itself was not the legal problem; the operated service around it was.

    JoinMarket

    JoinMarket, created by Adam Gibson and Chris Belcher around 2015, removes the coordinator entirely through a maker-taker market. Makers post offers of liquidity and earn fees; takers pay makers to include their inputs in a CoinJoin. There is no central server to trust or subpoena for the protocol itself, though orderbook and liquidity depend on a network of willing makers.

    The catch, documented in analyses of the protocol: because makers are compensated by takers, the transaction structure can leak roles. Takers pay makers via outputs equal in value to the taker's payment output, creating a k-anonymity set — but in many configurations the taker remains identifiable through fee and value patterns. JoinMarket rewards technical sophistication: it is the most decentralized option and the least beginner-friendly.

    Privacy Benefits: What CoinJoin Actually Buys You

    CoinJoin's benefit is breaking the common-input-ownership heuristic. After a successful round, an analyst examining your post-mix UTXO sees an output that could have come from dozens or hundreds of participants. For ordinary financial privacy — keeping your purchase history, balance trajectory, and counterparties away from merchants, exchanges' internal analytics, or casual observers — this is a meaningful upgrade over plain Bitcoin.

    Academic measurement supports real but bounded gains. A 2023 ACM Advances in Financial Technologies study measured actual deployments and found that CoinJoin meaningfully raises the cost of tracing specific outputs, with effectiveness depending heavily on anonymity-set size, remix count, and whether the user isolated change beforehand. The honest framing: CoinJoin converts “who sent this” from a trivial lookup into a probabilistic guess, but it does not make you anonymous.

    Privacy Limitations and Fingerprinting Risks

    CoinJoin has well-documented weaknesses:

    Toxic change. Any unmixed remainder output created in the same transaction can link your pre-mix and post-mix coins. Good implementations isolate change into separate transactions first; careless manual CoinJoins routinely destroy their own privacy.

    Amount and timing analysis. Fixed-denomination pools produce recognizable output sizes, and analysts maintain heuristics for pool detection. Participants who join small rounds, join once without remixing, or use unusual amounts stand out.

    Coordinator trust. Coordinated implementations require you to trust the operator not to log, delay, or selectively censor — and not to collude with chain-analysis firms. The Samourai case proved this trust can be misplaced: servers that coordinate rounds are also servers law enforcement can subpoena.

    Fingerprinting. Using a known CoinJoin wallet or joining identifiable rounds marks your coins as “privacy-conscious,” which paradoxically makes them more interesting to analysts. Privacy tools also attract scrutiny: in the United States, interaction with mixing services is now a recognized risk factor in exchange account reviews and law-enforcement inquiries.

    It is not Monero. CoinJoin is probabilistic obfuscation on a transparent ledger, not cryptographic anonymity. If your threat model includes a motivated nation-state or a well-resourced investigator, CoinJoin alone is a starting point rather than a solution.

    Legal Risks: The Post-Samourai Landscape

    CoinJoin itself — the open protocol — has not been criminalized anywhere we are aware of, and using it on funds you legally own is lawful in most jurisdictions. What changed dramatically is enforcement around the services that coordinate it.

    In April 2024, the U.S. Department of Justice indicted Samourai Wallet co-founders Keonne Rodriguez and William Lonergan Hill, alleging they operated an unlicensed money-transmitting business that processed over $2 billion in transactions, including more than $100 million in criminal proceeds from darknet markets, fraud schemes, and sanctioned jurisdictions. The founders were sentenced in November 2025 to five and four years in prison respectively, per IRS Criminal Investigation. Prosecutors emphasized that Samourai's operators knew substantial criminal use occurred and profited from it through fees.

    The precedent matters for two reasons. First, it establishes that coordinating CoinJoin rounds for profit can be charged as operating an unlicensed money transmitter, even though CoinJoin never takes custody of funds. Second, it signals that privacy-tool developers and coordinators — not just end users — are enforcement targets. Wallets like Wasabi continue operating with coordinator models, but users should understand that the legal theory used against Samourai could be applied elsewhere.

    For users, practical legal exposure is lower but nonzero: mixing can complicate tax reporting (every CoinJoin creates taxable events in some interpretations), can trigger exchange compliance flags when mixed coins are deposited, and may be viewed suspiciously in jurisdictions with strict anti-money-laundering regimes. Anyone with exposure to funds of unclear provenance should consult a qualified attorney rather than rely on general guidance.

    Best Practices for Using CoinJoin

    If you decide CoinJoin fits your threat model, these practices materially improve outcomes:

    Isolate change first. Send funds through an intermediate wallet or transaction so that identifiable change is separated from what you will mix. Never mix a UTXO whose change output sits in the same transaction.

    Remix. A single round gives you the anonymity set of that round. Repeating rounds compounds protection. Whirlpool made remixes free; WabiSabi users should run multiple rounds over time.

    Use Tor or a VPN. Coordinator and network-layer correlation can defeat on-chain mixing. Run the wallet over Tor, and avoid logging into the same wallet from identifiable IPs.

    Mind the timing. Joining rounds at unusual hours or with distinctive amounts reduces your crowd. Default settings are usually safer than customization.

    Keep amounts standard. Round numbers and pool denominations are your friends; unusual values are fingerprints.

    Verify software. Download wallets only from official sources, verify signatures where offered, and prefer implementations with public audits and reproducible builds.

    Match the tool to the threat model. For casual financial privacy, Wasabi's WabiSabi rounds are the most accessible. For maximum decentralization and acceptable technical skill, JoinMarket avoids a central coordinator. Whirlpool-style fixed pools still exist in successor implementations but carry the baggage of the Samourai prosecution.

    Recommendations

    CoinJoin remains the most practical privacy upgrade available on Bitcoin: it requires no consensus changes, costs modest fees, and has over a decade of production use. Its limits are equally real — probabilistic privacy, fingerprinting risk, coordinator trust, and an actively contested legal environment for the operators who make it work.

    Use it when you have a genuine privacy need: shielding purchase history from merchants and data brokers, protecting the financial trail of donations or sensitive payments, or general financial confidentiality. Combine it with network-layer protection (Tor), careful wallet hygiene, and clean change isolation. Do not treat it as anonymity, do not mix coins of unclear provenance, and stay current on enforcement developments — the Samourai precedent shows that the rules for privacy tools can change faster than the software does.

    For deeper context, see our guides on how blockchain analysis traces Bitcoin transactions, how to spend Bitcoin privately, crypto mixers and their legal status, and avoiding chain analysis.

    External References

    Bitcoin Magazine: What Is CoinJoin? — accessible overview of the technique. WabiSabi: Centrally Coordinated CoinJoins with Variable Amounts — the academic paper describing Wasabi's current protocol. Peter Todd: How Good Are the Widely Used CoinJoin Implementations? — detailed technical comparison of Wasabi, Whirlpool, and JoinMarket. ACM AFT 2023: Adoption and Actual Privacy of Decentralized CoinJoin Implementations in Bitcoin — empirical measurement of real-world deployments. JoinMarket on GitHub — the decentralized maker-taker implementation. U.S. DOJ: Samourai Wallet Superceding Indictment (SDNY) — the charging document. IRS Criminal Investigation: Samourai Founders Sentenced — November 2025 sentencing announcement.

    Author OnionInfoDesk
    How Blockchain Analysis Traces Bitcoin Transactions
    How to Spend Bitcoin Privately: CoinJoin, Tools and Threat Models
    Crypto Mixers and Tumblers: Legal Status and How They Work
    How to Avoid Chainalysis: Privacy Techniques Explained

    Comments 0

    Add comment