• Catalog
  • Blog
  • Tor Relay
  • Jabber
  • Secret Notes
  • Temp Mail
  • Get Tor Browser
  • Crypto
    Bitcoin CoinJoin anonymity set analysis: mixed transaction outputs and privacy risks

    An anonymity set is the group of users who could plausibly own a given coin, and it is the central concept behind every Bitcoin privacy technique. The larger and more homogeneous that group, the better your privacy. CoinJoin is the most widely used way to enlarge that set on Bitcoin: by merging many users' inputs and outputs into one transaction, each participant's coins are shuffled into a crowd of identically-sized outputs that an outside observer cannot distinguish. But the size of the anonymity set is not fixed, it depends on how the protocol works, which implementation you choose, how many people join your round, and what you (and everyone else) do with their coins afterward. This analysis breaks down the mechanics behind CoinJoin anonymity sets, compares the major implementations, reviews the published research on real-world set sizes, and explains the deanonymization attacks that can shrink an anonymity set back toward zero.

    The short version: CoinJoin provides meaningful privacy only when the anonymity set is large, uniform, and uncontaminated. A 100-person Whirlpool round is dramatically safer than a three-person JoinMarket swap, and even the largest set decays over time as participants consolidate, spend, or reveal themselves through behavior.

    How CoinJoin Anonymity Sets Work

    A standard Bitcoin transaction leaks information through two obvious channels: every input is provably owned by the same entity (the common-input-ownership heuristic), and output values often betray which payment goes where. CoinJoin attacks both channels at once. Multiple unrelated participants contribute inputs of their own and receive outputs of an identical denomination in a single shared transaction. From the blockchain's perspective, the transaction is one blob containing, say, 50 inputs and 50 outputs of 0.1 BTC each, and there is no cryptographic or on-chain reason to believe any particular input belongs to any particular output.

    The anonymity set for each 0.1 BTC output is therefore all 50 (or however many) outputs in that denomination class. An analyst knows the real owner is one of them, but cannot tell which. This is k-anonymity in practice: the attacker's best guess has probability 1/k of being correct. That single number, k, is what everyone means when they talk about "anonymity set size," and nearly every factor that determines privacy quality reduces to either growing k or preventing k from being reduced.

    Two design properties matter most for set quality. First, denomination uniformity: if every participant receives the same output value, the outputs form a clean equivalence class. If amounts vary, matching inputs to outputs by value or remainder becomes possible. Second, participant independence: every input and output should belong to a distinct, unrelated user. If one party controls multiple slots in the round, they have inflated the set with fake candidates and can often narrow down the real answer.

    Major Implementations and Their Anonymity Set Models

    There is no single CoinJoin, there are several protocols with very different anonymity set properties. Understanding which model a wallet uses is essential before evaluating how private a transaction really is.

    Wasabi and WabiSabi. Wasabi's default coordinator runs WabiSabi (formerly WabiSaki), a newer protocol that allows flexible input and output amounts, which dramatically improves liquidity and round frequency compared to the older fixed-denomination design. Because amounts are flexible, WabiSabi rounds can be larger and form faster, but the anonymity set must be analyzed more carefully: the protocol's credential and fee structure prevents obvious input-output matching, yet the variable amounts create "remaining value" heuristics that skilled analysts can exploit. Empirical studies (discussed below) found Wasabi 2.x rounds carry meaningful sets but with measurable degradation from fee and denomination clustering.

    Samourai Whirlpool. Whirlpool enforces strict denomination pools, 0.1, 0.05, and smaller fixed amounts, and charges mixing fees proportional to the round. The fixed denominations produce textbook-perfect anonymity sets: every output in a round is interchangeable by construction. The trade-off is cost and wait time, and the fee structure can signal pool usage. Whirlpool remains the reference implementation for clean-set analysis in academic work.

    JoinMarket (and JoinMarket NG). JoinMarket is a market rather than a fixed-denomination pool: "makers" contribute liquidity and "takers" pay them to join a transaction. The protocol produces equal-value outputs, but the taker-makes relationship means roles are structurally distinguishable. Independent analysis by Peter Todd demonstrated that JoinMarket transactions frequently give away no privacy at all when only one maker participates, the taker simply paid one maker, which is publicly visible. Sybil attacks are also cheaper here in theory, though the market's fee mechanism makes flooding expensive.

    Ashigaru and coordinator models. Ashigaru is a coordinator-based CoinJoin implementation popular in the Samourai/Whirlpool ecosystem that emphasizes configurable fee markets. Its anonymity sets work like Whirlpool's, fixed or near-fixed denominations with coordinator-assembled rounds, but the trust model shifts: the coordinator sees participant credentials and can, in principle, attempt correlation attacks unless the protocol design cryptographically prevents it. Always evaluate whether your anonymity set is protected by the protocol or merely by the coordinator's honesty.

    Measuring Anonymity Set Size in Practice

    How large are CoinJoin anonymity sets actually, in the wild? The honest answer from published research is "smaller than marketing suggests, but still meaningful." A 2025 arXiv study analyzing real Wasabi 2.x coinjoins found that input-output mapping analysis reduced the effective post-mix anonymity set by an average of 10-50%, depending on the protocol version and round size. The reduction was largest in the first day after a mix and shrank toward negligible levels after roughly a year, as subsequent unrelated activity blurred the initial clustering.

    Several factors drive this shrinkage:

    • Fee patterns. The exact fee amount paid often differs per participant and leaks information about which inputs produced which outputs when combined with change outputs.
    • Implementation limits. Protocols cap round size, participation windows, and denomination options, capping the maximum possible k.
    • Remainder and change outputs. Any output that is not part of the equal-denomination class (change, fees, mining outputs) belongs to exactly one user and can act as an anchor for clustering analysis.
    • Denomination clustering. If many users mix the same amount at the same time, analysts cannot distinguish "one big CoinJoin" from "several small CoinJoins merged on-chain", but they can also sometimes split them apart using timing and fee data.

    Whirlpool's design makes its anonymity sets easier to measure because denominations are fixed, but even there the true set size is smaller than the raw output count: only participants who actually joined that specific round count, and a 50-output round where 20 outputs came from the same wallet is really a 30-person set. Researchers emphasize that "effective anonymity set", the number of independent candidates, is always smaller than the nominal output count.

    For a concrete comparison: a JoinMarket transaction with one taker and one maker has an anonymity set of effectively 1 for the taker's payment output, the payment is as traceable as a normal send. A Whirlpool 0.1 BTC round with 40 independent participants gives roughly a 1-in-40 guess for any observer. The difference is not marginal; it is the difference between privacy and none.

    Deanonymization Risks and Attack Vectors

    CoinJoin raises the cost of analysis but does not eliminate it. The main attack categories are:

    Sybil attacks. If an attacker can join a CoinJoin round with many of their own inputs and outputs, they can perform process-of-elimination: remove their own coins and the remaining set is attributed to the real participant(s). This attack is fundamental to any open-access multi-party protocol and applies in theory to Monero and Zcash too, the only question is cost. Market mechanisms (JoinMarket) make it expensive; fixed pools make it cheaper but still bounded by round size and fees. Large anonymity sets are the primary defense: flooding a 100-person round requires controlling most of it.

    Coordinator attacks. The coordinator assembles the transaction and, depending on protocol, sees participant credentials or at least timing and fee information. WabiSabi's design deliberately limits what a malicious coordinator can learn, but older Wasabi versions and simple coordinator models give the coordinator a real correlation advantage. Choosing implementations where the protocol, not the operator's goodwill, protects you matters.

    Common-input-ownership leakage. If you contribute multiple inputs to a round that come from addresses already linked (same wallet, same funding source), you have told analysts those inputs belong together, and sometimes that the outputs belong to the same entity. Best practice is one input per round per identity, funded through an already-mixed or hard-to-link source.

    Timing and behavioral correlation. Joining a CoinJoin immediately before or after a known spend, withdrawing to an exchange at a recognizable time, or using distinctive amounts creates temporal fingerprints that survive the mix. Blockchain analysts routinely combine on-chain data with exchange deposit records, merchant payment flows, and network-layer metadata.

    Input-output mapping analysis. As the arXiv research shows, even without breaking the protocol, analysts can probabilistically map inputs to outputs by exploiting fee structures, change patterns, and post-mix spending behavior. The effective anonymity set is always somewhat smaller than the nominal one.

    Post-Mix Behavior and Long-Term Anonymity Decay

    This is the most underappreciated factor in CoinJoin privacy. Your anonymity set does not stay the size it was at mix time, it decays with everything you do afterward.

    Consolidating two mixed outputs into one spend instantly links them through the common-input-ownership heuristic: if outputs A and B ever appear as inputs to the same transaction, analysts know they had the same owner, and both get re-clustered. Spending a mixed output to a known service (an exchange deposit address, a merchant, a donation address) attaches the entire ambiguity set to that service's identity. Re-mixing helps only if you break the chain, mixing outputs that are already linked together gains nothing.

    The research suggests a practical model: anonymity is strongest immediately after a well-executed mix into a large, clean set, then erodes as your coins interact with the rest of the network. Treat CoinJoin output as "privacy budget", spend it carefully, consolidate rarely, and prefer spending patterns that preserve the equivalence class (e.g., spending the full mixed denomination onward rather than splitting it in ways that create distinguishable remainders).

    Limitations of CoinJoin Anonymity Sets

    A few structural limits deserve emphasis:

    • CoinJoin only protects the transaction, not the endpoints. It hides which inputs map to which outputs, but it does nothing about how you acquired the coins, where you withdraw them, or what you do on the network layer. If your IP address, wallet fingerprint, or funding source identifies you, the mix is decoration.
    • Small sets are worse than none. A two- or three-person "mix" can actually reduce privacy by confirming that a small group of related transactions happened together. Never join a round with fewer participants than the protocol's safe minimum.
    • Uniformity cuts both ways. Fixed denominations create clean sets but also create recognizable "mixed coin" fingerprints, analysts know these outputs came from a Whirlpool pool and can track the pool's health over time.
    • It does not hide amounts forever. If you receive a mixed output and later spend a distinctive remainder, the remainder itself can re-identify the cluster.
    • Legal exposure remains. Participating in CoinJoin is legal in most jurisdictions, but mixing services have historically attracted regulatory scrutiny (see FinCEN's 2023 actions against Tornado Cash for context on how authorities view privacy protocols, though CoinJoin is non-custodial and structurally different). Users should understand their local obligations.

    Best Practices for Maximizing Your Anonymity Set

    Based on the mechanics and attack analysis above, the practical recommendations are:

    1. Choose protocols with large, frequent rounds. Wasabi/WabiSabi and Whirlpool pools generally produce larger sets than ad-hoc JoinMarket swaps. Larger k is the single most effective privacy lever.
    2. Wait for full rounds. Joining a half-empty round because it is convenient halves your anonymity set. Patience is a privacy feature.
    3. Use one input per round. Never contribute multiple linked inputs; fund your mixing input from a source that does not already cluster with your other coins.
    4. Avoid change outputs where possible. Change outputs are singleton outputs, they belong to exactly one user and can anchor clustering. Prefer transactions that sweep the full input into the mixed output plus fee.
    5. Do not consolidate mixed outputs. Keep mixed denominations separate; spend them onward as whole units when possible.
    6. Separate your network identity. Run your wallet behind Tor or a VPN, on a device with no other identifying activity, and never link your mixed coins to exchange accounts or known services.
    7. Re-evaluate periodically. Anonymity sets decay; if your threat model requires stronger guarantees, consider that CoinJoin is one layer, for many threat models, a privacy-preserving chain like Monero offers fundamentally stronger guarantees because every transaction is private by default rather than opt-in.

    For a broader comparison of where CoinJoin fits among Bitcoin privacy tools, including PayJoin, CoinSwap, and Lightning-based approaches, see our CoinJoin wallet comparison and the deeper technical coverage in CoinJoin explained.

    Legal and Safety Considerations

    CoinJoin is a collaborative transaction construction technique, not a custodial mixing service, no third party takes possession of your funds, which distinguishes it from services regulators have targeted. That said, privacy-enhancing technology attracts scrutiny, and rules vary by jurisdiction. Users in the EU should note that MiCA and AMLD6 frameworks increasingly treat privacy tools as within scope of financial surveillance expectations, and US users should be aware that FinCEN has asserted authority over certain anonymizing services even where no custody exists. Using CoinJoin for lawful privacy purposes, protecting transaction history from public exposure, commercial confidentiality, personal security, is generally defensible; using it to obscure proceeds of crime is not, and law enforcement routinely uses exactly the clustering and timing analyses described above.

    From a safety standpoint, the biggest practical risks are operational: trusting a malicious coordinator, joining dust-sized or tiny rounds that provide false confidence, and leaking identity through post-mix behavior. Verify implementations, check round sizes before joining, and treat your mixed coins with the same operational security you would apply to any sensitive wallet.

    Conclusion

    CoinJoin anonymity sets are real but fragile. The nominal set size, the number of equal outputs in a round, overstates the effective protection because fees, change outputs, timing, and post-mix behavior all erode it. The published research is clear that well-executed mixes into large Whirlpool or WabiSabi rounds provide meaningful k-anonymity, while small JoinMarket swaps and careless post-mix handling can provide effectively none. The most important takeaway is that anonymity set size is not a property of the protocol alone, it is a property of the protocol, the round you join, and everything you do afterward. Choose large rounds, protect your endpoints, and spend your mixed coins in ways that preserve the equivalence class you paid to create.

    For related reading on the broader privacy landscape, see how blockchain analysis traces Bitcoin transactions, Bitcoin vs Monero privacy comparison, and our guide to CoinJoin and mixing best practices for darknet market users.

    Sources and Further Reading

    Author OnionInfoDesk
    CoinJoin explained: the Bitcoin privacy technique guide
    How blockchain analysis traces Bitcoin transactions
    CoinJoin wallet comparison: Wasabi, Whirlpool and JoinMarket
    Darknet market Bitcoin privacy: CoinJoin and mixing best practices

    Comments 0

    Add comment