CoinJoin

CoinJoin is a privacy-enhancing technique for Bitcoin that combines multiple users’ transactions into a single joint transaction, making it difficult for blockchain analysts to determine which input addresses sent funds to which output addresses. Proposed by Bitcoin developer Gregory Maxwell in 2013, CoinJoin preserves privacy without requiring changes to the Bitcoin protocol – it works using standard Bitcoin transactions where multiple participants agree to mix their inputs and outputs together. CoinJoin is implemented in privacy-focused wallets like Wasabi Wallet and JoinMarket.

Definition

CoinJoin combines multiple transactions to enhance privacy:

AspectDescription
MechanismMultiple users create a single transaction with many inputs and equal-value outputs
Privacy benefitObscures the link between senders and recipients
Trust modelTrustless – no central mixer holds funds; users sign jointly
Protocol changeNone required – uses standard Bitcoin transaction format
ParticipantsMultiple users coordinating (typically via software)

How CoinJoin Differs from Mixers

FeatureCoinJoinCentralized Mixer
CustodyNon-custodial – no one holds your fundsCustodial – mixer holds funds temporarily
TrustTrustless – cryptographic guaranteesTrust required – mixer could steal funds
On-chain footprintSingle multi-party transactionMultiple transactions through mixer addresses
Regulatory statusGenerally legal (privacy tool)Often flagged as suspicious

Origin & History

DateEvent
2013Gregory Maxwell proposed CoinJoin on the Bitcoin Forum
2014Early CoinJoin implementations appeared but required manual coordination
2015JoinMarket launched – decentralized CoinJoin marketplace
2018Wasabi Wallet launched – first user-friendly CoinJoin implementation with Chaumian coinjoin (ZeroLink protocol)
2019Samourai Wallet’s Whirlpool launched – mobile CoinJoin implementation
2022Tornado Cash (Ethereum mixer, not CoinJoin) sanctioned by US Treasury – privacy tools faced regulatory pressure
2024Wasabi Wallet and Samourai Wallet faced regulatory challenges; privacy tool usage continued but with greater scrutiny
“CoinJoin allows Bitcoin users to combine their transactions for privacy without trusting anyone else with their money.”
Gregory Maxwell, CoinJoin proposal (2013)

How It Works

StepProcess
1Multiple users want to make Bitcoin transactions
2A coordinator (or peer-to-peer protocol) matches participants
3Each participant provides their input (UTXO) and desired output address
4All inputs and outputs are combined into a single transaction
5Each participant verifies the transaction includes their output
6Each participant signs only their input (no one controls others’ funds)
7The combined transaction is broadcast to the Bitcoin network
Standard TransactionCoinJoin Transaction
Alice: 0.5 BTC → BobCombined: Alice (0.1), Bob (0.1), Carol (0.1) → three 0.1 BTC outputs
Easy to trace sender → receiverCannot determine which input funded which output
ImplementationPlatformMethod
Wasabi WalletDesktop (Windows, Mac, Linux)Chaumian CoinJoin (WabiSabi protocol)
JoinMarketDesktop/ServerPeer-to-peer marketplace for CoinJoins
Samourai WhirlpoolMobile (Android)Zerolink-based mixing cycles

In Simple Terms

  1. CoinJoin is a privacy tool for Bitcoin– it mixes your transaction with other people’s transactions so no one can easily tell who sent money to whom.
  2. It works by combining transactions– instead of each person making a separate transaction, multiple people combine their transactions into one big transaction with many inputs and outputs.
  3. Your money is never held by anyone else– unlike mixers, CoinJoin is non-custodial. You sign your part of the transaction, and no one else can take your Bitcoin.
  4. It’s used by privacy-conscious Bitcoin users who don’t want their financial transactions to be publicly trackable on the blockchain.

Important: CoinJoin is a legitimate privacy tool, but it has attracted regulatory scrutiny. Some exchanges flag or reject coins that have been through CoinJoin transactions. The legal status varies by jurisdiction – in most places, using privacy tools is legal, but regulators are increasingly focused on anti-money laundering enforcement. Users should understand the regulatory market in their jurisdiction before using CoinJoin.

Real-World Examples

Example 1: Wasabi Wallet

  • Scenario: A privacy-conscious Bitcoin user wanted to break the link between their identity and their Bitcoin transactions.
  • Implementation: Using Wasabi Wallet, the user participated in automated CoinJoin rounds. The wallet coordinated with other users to create joint transactions with equal-denomination outputs (0.1 BTC, 0.01 BTC, etc.).
  • Outcome: After several CoinJoin rounds, the user’s Bitcoin history was thoroughly obscured. Blockchain analysts could no longer reliably trace the coins back to their origin.

Example 2: JoinMarket

  • Scenario: A Bitcoin holder wanted to earn fees while providing liquidity for CoinJoin transactions.
  • Implementation: JoinMarket operates as a marketplace where “makers” offer their coins for CoinJoin mixing and earn small fees, while “takers” initiate CoinJoins and pay those fees.
  • Outcome: JoinMarket created a self-sustaining privacy market where both parties benefit – makers earn yield on their Bitcoin, and takers gain transaction privacy.

Example 3: Regulatory Pressure

  • Scenario: Following the Tornado Cash sanctions in August 2022, privacy tools across the crypto ecosystem faced increased scrutiny.
  • Implementation: Some exchanges began flagging or rejecting Bitcoin that had been through CoinJoin transactions, and developers of privacy tools faced legal challenges.
  • Outcome: The situation highlighted the tension between financial privacy and regulatory compliance. CoinJoin usage continued but with greater awareness of the regulatory risks.

Advantages

AdvantageDescription
PrivacyObscures transaction links on the public blockchain
Non-custodialNo third party holds your funds at any point
TrustlessCryptographic guarantees prevent theft by coordinators
No protocol changesWorks with standard Bitcoin transactions
FungibilityImproves Bitcoin’s fungibility by breaking transaction history

Disadvantages & Risks

DisadvantageDescription
Regulatory riskSome jurisdictions may restrict privacy tool usage
Exchange rejectionSome exchanges flag CoinJoin-processed Bitcoin
CoordinationRequires enough participants for effective mixing
FeesCoinJoin transactions are larger and cost more in mining fees
ComplexityUsing CoinJoin correctly requires understanding its limitations

FAQ

Is CoinJoin legal?

CoinJoin itself is legal in most jurisdictions – it uses standard Bitcoin transactions. However, using it to launder money is illegal. Some regulators are increasing scrutiny of privacy tools. Check your local laws before using CoinJoin.

Does CoinJoin make Bitcoin anonymous?

CoinJoin significantly improves privacy by breaking the link between inputs and outputs, but it doesn’t make Bitcoin fully anonymous. Transaction amounts, timing analysis, and other techniques can still provide some information. Multiple CoinJoin rounds increase privacy.

Can CoinJoined Bitcoin be rejected by exchanges?

Some exchanges have policies of flagging or rejecting Bitcoin that has been through CoinJoin transactions. This has sparked debate about Bitcoin’s fungibility – whether all Bitcoin should be treated equally regardless of history.

News & Events