In Bitcoin We Trust Newsletter

In Bitcoin We Trust Newsletter

Bitcoin On-Chain Privacy: Implementing PayJoin and CoinJoin.

Shattering Chain Analysis and Reclaiming Your Financial Sovereignty Through Collaborative Transactions.

Sylvain Saurel
Jun 03, 2026
∙ Paid

Bitcoin is not anonymous. It never was.

Since the genesis block, Bitcoin has been designed as a completely transparent, radically public, immutable ledger. Every transaction, every balance, and every interaction is permanently etched into a database distributed across tens of thousands of nodes globally. For a system requiring trustless verification, this transparency is a feature, not a bug. But for the individual seeking financial privacy, this transparency presents a profound vulnerability.

In the early days, the pseudonymity of Bitcoin—using cryptographic addresses instead of real names—provided a thin veil of privacy. Today, that veil has been aggressively torn away. A multi-billion-dollar chain surveillance industry, pioneered by firms like Chainalysis, Elliptic, and CipherTrace, has mapped the public ledger. By combining advanced heuristics, machine learning, and vast databases of KYC (Know Your Customer) information acquired from centralized exchanges, these entities de-anonymize network participants with alarming accuracy.

If you are buying, holding, or spending Bitcoin without deliberately utilizing privacy protocols, your financial life is an open book to corporations, governments, and potentially malicious actors.

Privacy on the Bitcoin network is not a default setting; it is an active, operational practice. It requires understanding how your transactions leak metadata and deploying specific cryptographic countermeasures to break the deterministic links of the blockchain.

In this deep dive, we are exploring the two most powerful on-chain privacy tools available to Bitcoiners today: CoinJoin and PayJoin. We will break down the mechanics of chain analysis, dissect the technical architecture of these collaborative transaction protocols, and provide a practical framework for implementing them to safeguard your financial sovereignty.


The $5.4 Billion Fugazi: How Michael Burry Uncovered the Shadow Machine Funding the AI Boom with Retiree Money.

Inside the 16x-leveraged, offshore shell game hiding billions in Silicon Valley debt—and quietly betting America’s retirement on the lifespan of a computer chip.


Part 1: The Anatomy of Chain Surveillance

To defeat chain analysis, you must first understand how it works. Chain surveillance relies on exploiting the structural realities of Bitcoin’s Unspent Transaction Output (UTXO) model.

Unlike traditional bank accounts, which use an account-balance model, Bitcoin operates like cash. When you hold “1 BTC,” you do not have a spreadsheet cell reading “1.” Instead, your wallet holds cryptographic keys to one or more discrete chunks of Bitcoin—UTXOs. When you send Bitcoin, you consume existing UTXOs as inputs and create new UTXOs as outputs.

Because UTXOs are discrete chunks, they rarely match the exact amount you want to send. If you want to buy a 0.1 BTC item but only have a 0.5 BTC UTXO, your wallet consumes the entire 0.5 BTC input, sends 0.1 BTC to the merchant, and creates a 0.4 BTC change output that returns to your wallet (minus network fees).

Chain surveillance firms exploit this architecture using several core heuristics.

The Common Input Ownership Heuristic (CIOH)

This is the foundational assumption of all chain analysis. The CIOH dictates that if a transaction consumes multiple inputs, all of those inputs belong to the same entity.

Imagine you are buying a car for 1.5 BTC. Your wallet automatically selects three UTXOs to fund the purchase: 0.5 BTC, 0.7 BTC, and 0.4 BTC. By signing that transaction, you have cryptographically proven that you own the private keys for all three addresses. To an observer, those three previously distinct UTXOs are now permanently linked to a single identity. If even one of those inputs was previously tied to your KYC identity on an exchange, the surveillance firm now knows you own the other two as well.

Change Output Heuristics

When a transaction creates multiple outputs, chain analysts must determine which output went to the payee and which was the change returning to the sender. They use several tricks:

  • Round Number Heuristic: If a transaction sends 0.05000000 BTC and 0.01438211 BTC, the round number is almost certainly the payment, and the messy number is the change.

  • Script Type Matching: If the input is a Native SegWit address (bech32) and one output is Legacy (Base58) while the other is Native SegWit, the Native SegWit output is likely the change returning to the sender’s modern wallet.

  • Wallet Fingerprinting: Different wallet software structures transactions differently (e.g., placing the change output at a specific index, using specific locktimes, or implementing specific fee estimation logic). Analysts fingerprint your wallet software to track your change outputs accurately.

Once a surveillance firm identifies your change output, they can track your future spending indefinitely, plotting a “peel chain” as you slowly spend down your balance.

The Attack on Fungibility

The combination of these heuristics leads to a systemic threat against Bitcoin: the erosion of fungibility. Fungibility is the property that ensures one unit of a currency is indistinguishable from another. If chain analysis can taint specific UTXOs—flagging them as associated with hacks, dark markets, or sanctioned entities—those UTXOs become worth less than “clean” Bitcoin. Centralized exchanges routinely freeze accounts that deposit Bitcoin with a high “risk score.”

To preserve Bitcoin as neutral, sound money, we must actively break these heuristics.



Part 2: CoinJoin – The Crowd Hiding in Plain Sight

User's avatar

Continue reading this post for free, courtesy of Sylvain Saurel.

Or purchase a paid subscription.
© 2026 Sylvain Saurel · Privacy ∙ Terms ∙ Collection notice
Start your SubstackGet the app
Substack is the home for great culture