CoinJoin gets almost all the attention when people talk about Bitcoin privacy, and for good reason: it is the most deployed, best understood technique for breaking the on-chain transaction graph. But CoinJoin is not the only tool, and for several real-world situations it is not even the best tool. PayJoin hides your payment in someone else's inputs, CoinSwap swaps coins without mixing them together, silent payments hide the act of receiving, and the Lightning Network keeps routine payments off the public ledger entirely. Each attacks a different part of the problem.
This guide walks through the four major non-CoinJoin privacy techniques, explains what each actually protects and what it does not, compares them in one table, and maps them to the threat models they are suited for. If you want the CoinJoin side covered in depth, see our darknet market Bitcoin privacy guide and the CoinJoin explainer.
Why CoinJoin alone is not enough
CoinJoin works by pooling your inputs with other people's inputs in a single transaction, so that an outside observer cannot tell which inputs paid which outputs. That breaks the common-input-ownership heuristic, but it does nothing about other leaks: the fact that you used CoinJoin is itself visible on-chain, exchange compliance teams increasingly flag or refuse UTXOs with recent coinjoin history, the coordinator (even a non-custodial one) can in principle learn who joined which round, and the technique does nothing to hide your payment destinations or your Lightning activity at all. The techniques below cover those gaps. They are complements, not replacements.
PayJoin explained (BIP78 and BIP77)
PayJoin, specified in BIP78, is a protocol where the receiver of a payment contributes inputs to the sender's transaction. The result looks like a normal payment but contains extra inputs and change outputs that actually belong to the payee. This defeats three classic chain-analysis heuristics at once: common input ownership (inputs now genuinely belong to two parties), change script type (mixed scriptPubTypes poison the heuristic), and round amounts (the receiver can send change back to themselves to break round-number patterns).
The original BIP78 design required the receiver to run an always-online server that could sign within seconds, which limited adoption mostly to merchants running servers like BTCPay Server. BIP77 (PayJoin v2) fixes this: a "Payjoin Directory" stores small encrypted payloads and an oblivious HTTP layer hides IP metadata, so receivers no longer need a live server. Privacy impact is asymmetric and deliberately subtle, the sender's UTXOs get mixed with the receiver's, but the receiver's benefit is mostly fee consolidation and not leaking. Notably, even non-participating transactions benefit: once PayJoin is common, the heuristics it breaks become unreliable network-wide.
Practical caveats: PayJoin requires sender wallet support, the receiver must signal a PayJoin endpoint (usually via a pj= parameter in the BIP21 URI), and if both parties use distinctive script types it can still be partially deanonymized. It protects the payment itself, not your broader wallet history.
CoinSwap and atomic swaps explained
CoinSwap, invented by Greg Maxwell alongside CoinJoin in 2013 and documented in the Bitcoin Optech topic page and the Bitcoin wiki, takes a fundamentally different approach: instead of mixing coins in one transaction, two parties each pay a full UTXO to a separate address and then cooperatively move the coins to each other. Because there is no transaction linking the two legs, the transaction graph heuristic is broken without any visible "mixing" transaction at all. To a chain analyst, the two payments look like unrelated spends.
The original design used 2-of-2 multisig addresses, but modern implementations lean on HTLC-based atomic swaps, Hashed Time-Locked Contracts where a hash preimage lets the swap complete or a timelock refunds the sender, which make the exchange trustless: either both sides get paid or neither does. Several swap services and wallets implement variants of this (Trocador, SideSwap-style protocols, and cross-chain atomic swaps between Bitcoin and other chains). Unlike CoinJoin, CoinSwap can work across different blockchains, something no on-chain join can do.
Weaknesses: equal-amount swaps can still be matched by amount and timing, so real deployments chunk payments across multiple swaps; liquidity providers can learn more than a CoinJoin coordinator in some designs; and the technique is still early enough that wallet support is limited compared to CoinJoin.
Silent payments explained (BIP352)
BIP352 silent payments solve a different problem entirely: the receiver's privacy. Normally, receiving a payment requires handing the sender a fresh address, and a batch or an xpub lets the sender link all payments to you. Silent payments eliminate interaction entirely. The receiver publishes one static "silent payment address" built from two public keys, a spend key and a scan key, and the sender derives a unique, unguessable output key for each payment using elliptic-curve Diffie-Hellman against the receiver's public key plus a tweak derived from the sender's own input.
The result: an observer scanning the blockchain cannot tell that a payment to a silent address even happened, let alone link it to the receiver. The receiver scans the chain with their scan key to detect and claim payments; importantly, the scan key can be separated from the spend key so an always-on scanning machine cannot move funds. The trade-off is real: detection requires scanning every transaction's inputs, feasible for full nodes, hard for light clients, and an open research area per the BIP itself. Sender privacy is also strong: no notification scheme means senders cannot be linked to each other through a shared address either.
Lightning Network privacy properties
The Lightning Network's privacy model is onion routing, the same concept TOR popularized. Only the two endpoints know the payment's final destination; intermediate hops see an encrypted blob and their immediate neighbors. For routine micropayments this is genuinely strong: there is no permanent public record linking sender to recipient, channel opens/closes can be disguised, and amounts and timing stay private. For a deeper technical treatment see our Lightning Network guide.
But the research is sobering. Lightning's path selection is optimized for cost and speed, not anonymity: paths are short and predictable, the network topology is highly centralized, and academic work ("How Lightning's Routing Diminishes its Anonymity", and "An Empirical Analysis of Privacy in the Lightning Network") found that a single on-path adversary can uniquely identify sender or recipient for roughly 70% of observed payments, and colluding nodes can often identify both. Single-hop payments provide essentially zero privacy. Failed payments leak even more because retries reveal information about channel balances. Lightning also leaks your channel counterparties permanently on-chain at open and close.
Side-by-side comparison
| Technique | What it hides | Fees | Usability | Trust requirements | Best for |
|---|---|---|---|---|---|
| PayJoin (BIP78/77) | Your inputs mixed with payee's; breaks coin-selection heuristics | Normal tx fee, sometimes cheaper for receiver | Easy once both wallets support it; merchants via BTCPay | Receiver hosts directory/server (v2 uses untrusted directory + OHTTP) | Everyday payments to supporting merchants; breaking heuristics cheaply |
| CoinSwap / atomic swap | The fact that coins moved between your addresses; full transaction-graph break | Two on-chain tx fees + possible liquidity fee | Moderate, limited wallet/service support | HTLC makes it trustless; intermediaries can collude in some designs | Breaking ownership chains without a visible mix; cross-chain swaps |
| Silent payments (BIP352) | That you received a payment at all; sender linkability | Normal tx fee + output overhead (~equal) | Sender-side easy if wallet supports; receiver must scan chain | None, fully non-interactive, non-custodial | Receiving payments without leaking your address set; donations, invoices |
| Lightning | Payment path, amounts, timing for multi-hop payments | Routing fees per hop + channel open/close on-chain cost | Easy for users; needs liquidity management | Trust channel counterparties; hops see metadata | Frequent small payments; keeping routine activity off-chain |
| CoinJoin (for reference) | Which inputs pay which outputs | Coordinator fee or miner fee + premium | Good, many mature wallets | Coordinator sees participation metadata; KYC services may flag UTXOs | Large anonymity-set breaks before spending |
When to use each technique
PayJoin fits best when you are paying a merchant or service that supports it, it costs about the same as a normal payment and makes your transaction look like a batch payment. It is the lowest-friction upgrade available. CoinSwap fits when you need to sever the chain-of-custody link between two wallets you control, or when you want privacy that does not look like CoinJoin on-chain, valuable because some exchanges and analytics firms treat coinjoined UTXOs differently from ordinary payments. Silent payments are for receivers: if you publish a static address for donations, tips, or recurring invoices, BIP352 keeps both your receive history and your senders' linkability hidden. Lightning is for volume: if you make frequent small payments, routing them through well-connected multi-hop paths keeps them off the permanent public record, though you should assume on-path adversaries have plausible deniability rather than ironclad anonymity.
These techniques stack. A privacy-conscious stack looks like: acquire coins via a non-KYC source or a CoinJoin/PayJoin-funded purchase, break chain-of-custody with CoinSwap or PayJoin where possible, receive via silent payments where supported, and spend routine amounts over Lightning while reserving on-chain spends for larger, well-mixed outputs.
Limitations and legal considerations
No technique here is magic. PayJoin only protects the transaction it is used in, your wallet's other history still links to you. CoinSwap protects the swap but says nothing about what you do with the coins afterward. Silent payments protect receivers but require full-node scanning and do nothing about the sender's own UTXO selection. Lightning privacy degrades sharply on short paths, low-degree nodes, and single-hop payments, and channel opens/close are permanent on-chain records. Every technique also inherits base-layer risks: if your wallet is compromised, no mixing protocol helps.
On the legal side: CoinJoin has faced scrutiny (FinCEN's 2020 guidance on anonymizing services, various exchange delistings), and CoinSwap/atomic-swap services occupy similar gray zones depending on jurisdiction, some are treated as money transmitters, others as non-custodial software. Silent payments and PayJoin are ordinary transaction constructions and carry no special status, but using any privacy technique does not immunize you: if you are in a jurisdiction where financial privacy tools are restricted, or if funds have illicit origins, these tools can be cited as evidence of intent. Nothing here is legal advice; consult a qualified attorney about your specific situation. Finally, treat every privacy tool as attack surface, only use open-source, audited implementations, verify signatures, and never paste seed phrases into swap services or "privacy" websites, which are common scam vectors.
The honest summary: CoinJoin is one tool in a toolkit. PayJoin makes payments unremarkable, CoinSwap makes ownership untraceable, silent payments make receiving invisible, and Lightning keeps everyday payments off-chain. Pick based on your threat model, and remember that the strongest privacy comes from layering them, not from any single one.
Comments 0