Course outline · 11 lessons
Advanced Bitcoin Security & Privacy

Bitcoin Privacy: Why It Matters and How Chain Analysis Works

A hand lifts one of three blank cream cards linked by a cotton cord through plain binder clips on dark wool.

Why Bitcoin Privacy Matters

Many people assume Bitcoin is anonymous because a transaction doesn’t carry your name. It doesn’t, but every transaction is recorded forever on a public ledger that anyone can read. So Bitcoin is pseudonymous: your addresses work like a pen name. The pen name hides you only until someone connects it to the real you, and from then on everything done under it is readable.

By the end of this lesson you will be able to follow how an analyst links addresses to a person, recognise which of your own habits leak information, and decide which privacy steps matter for your situation. The rest of this course teaches those steps one by one.

Bitcoin Is Not Anonymous — It’s Pseudonymous

When you create a Bitcoin wallet, you get addresses: strings of characters like bc1q..., with no name, email or phone number attached. The moment you use one in the real world (you withdraw from an exchange that knows you, buy from a shop that has your delivery address, or receive from a friend), someone can link that address to you.

It helps to know how a wallet really holds bitcoin. It doesn’t keep one balance. It keeps separate coins, each one an output of an earlier transaction that hasn’t been spent yet. These are called UTXOs (unspent transaction outputs). When you pay, your wallet uses one or more of these coins as inputs, sends the payment, and returns the leftover to you as a new coin called change. (The transactions lesson covers this in detail.)

Every transaction is broadcast to the whole network and stored on the blockchain. For any address, anyone can see:

  • Every coin it received, when, and from which addresses (names are not on the chain; addresses are)
  • Every payment it made, when, and to which addresses
  • Its current balance
  • Its whole history since it was first used

Link one of those addresses to your identity and an observer can start reading the rest.

On the blockchain, an address such as bc1q... works like a pen name. Anyone can read the coins it received and from where, the payments it made and to where, its balance and its whole history, but the chain has no name for it. The name comes from outside: an exchange that knows you and that you withdraw from, a shop that has your delivery address, or a friend who pays you and knows you. Once one address is linked to you, everything done under it can be read.
The chain records addresses, not names. Your name gets attached from outside, by anyone who knows both you and one of your addresses. From then on, that address’s whole history is readable.

How Chain Analysis Works

Chain analysis means examining blockchain data to follow money and identify the people behind it. Companies such as Chainalysis, Elliptic and TRM Labs sell it to police, tax authorities, banks and exchanges. Their software rests on a few rules of thumb, called heuristics: guesses that are usually right, though not always.

The Common-Input-Ownership Heuristic

If several coins are spent as inputs of one transaction, analysts assume they belong to the same person, since normally only one wallet can sign for all of them. A payment funded by three coins from three addresses tells them those three addresses share an owner. Applied over and over, this rule groups hundreds of addresses into a single profile, called a cluster. (CoinJoin and its lighter relative PayJoin, both covered in the CoinJoin lesson, deliberately break this rule.)

One payment is funded by three coins held at addresses 1, 2 and 3. Since normally only one wallet can sign for all of them, the analyst assumes that the three addresses have one owner. Over and over: a later payment spends coins from addresses 3, 4 and 5, and another from 5, 6 and 7. Because they share addresses, the groups join into one cluster, a single profile that can grow to hundreds of addresses.
Coins spent together are assumed to have one owner. Each payment that combines coins adds their addresses to the same profile, and payments that share an address join up. That profile is called a cluster.

Change Address Detection

When you pay, the leftover goes back to your wallet as change. Analysts try to tell which output of a transaction is the payment and which is the change. Common clues: the change uses the same address type as the inputs, the payment is a round number while the change isn’t, or the change is later spent the same way your other coins are. Once they spot the change, it joins your cluster.

Timing and Amount Analysis

If you withdraw 0.5 BTC from an exchange and two minutes later 0.4998 BTC (0.5 minus a small fee) arrives somewhere else, the link is obvious. Analysts look for transactions that follow each other quickly and for amounts that match closely. These patterns can partly undo even mixing services.

0.5 BTC leaves an exchange. Two minutes later, 0.4998 BTC arrives somewhere else. The analyst links the two because they are close in time, 2 minutes apart, and close in amount: 0.4998 is 0.5 minus a small fee. Close in time and close in amount, the link is obvious.
A close match in time and amount links the two. Analysts look for transactions that follow each other quickly and for amounts that match closely. These patterns can partly undo even mixing services.

Exchange and Service Data

The strongest tool isn’t on the blockchain at all. Regulated exchanges know which addresses they paid to which verified customer, and they share that with authorities when required (for example in response to a court order, or in a suspicious activity report). That gives analysts a fixed starting point, and from it they trace funds forward and backward with the heuristics above.

A Trace, Step by Step

Here is how the pieces combine, using made-up but typical amounts:

StepWhat you doWhat the analyst concludes
1Withdraw 0.10 BTC from an exchange that has your passport, to your address A.The exchange’s records say A belongs to you.
2Pay a shop 0.03 BTC from that coin. The 0.0699 BTC left over goes to your change address C.One output went to the shop, the other is probably yours.
3Nothing; the clues are already there.C is the same address type as A and isn’t a round amount, so C is your change. C joins your cluster.
4Weeks later, pay 0.08 BTC by spending C together with coin D, which you bought privately from a person.Common inputs: D has the same owner as C.
5Nothing more.D is now labelled with your name too, and where it came from and where it went are linked to you.

Two habits did the damage: letting the wallet merge coins from different sources (step 4) and leaving change that was easy to spot (step 3). The coin control lesson shows how to avoid both.

The trace from the table, step by step. 1: an exchange that has your passport pays 0.10 BTC to your address A, so its records label A with your name. 2: you pay a shop 0.03 BTC from that coin; 0.0699 BTC goes to your change address C, and 0.0001 BTC is the fee. 3: C is the same address type as A and not a round amount, so the analyst spots it as your change and labels it too. 4: weeks later you pay 0.08 BTC by spending C together with coin D, which you bought privately from a person. 5: spent together, D gets the same owner as C, so D is labelled with your name too, and where it came from and where it went are linked to you. Steps 3 and 4 are the two habits that did the damage: change that was easy to spot, and coins from different sources merged in one payment.
One known address was enough to put your name on coin D. The label spread from A to your change and then to D. Coin control, covered in its own lesson in this course, avoids both habits that let it spread.

Who Is Watching and Why?

Chain analysis isn’t only used to catch criminals:

  • Tax authorities such as the IRS and HMRC use it to find unreported income. If you bought on an exchange and moved the coins to your own wallet, they already know about the exchange side; chain analysis helps them see what came after.
  • Exchanges screen incoming deposits for links to sanctioned addresses, darknet markets or gambling sites. Your account can be frozen or closed because of what happened to a coin before it reached you.
  • Banks use it to assess customers who deal in bitcoin.
  • Companies may use it to profile customers or follow market activity.
  • Authoritarian governments can use the same tools to track dissidents, opposition donors, or citizens moving money abroad.

Privacy isn’t about hiding wrongdoing. You wouldn’t want your employer, your neighbour or a stranger online to see your balance, your salary and every purchase you’ve made. Once your addresses are identified, a public blockchain can show exactly that.

Real-World Consequences of Poor Bitcoin Privacy

Physical danger. A balance that can be linked to your name makes you a target for robbery, extortion and kidnapping. The “$5 wrench attack” (forcing someone by violence to hand over their keys) is not hypothetical: Jameson Lopp keeps a public list of documented physical attacks on bitcoin holders. Your first defence is the subject of this lesson: keep your holdings from being linked to you, and don’t advertise them. The physical security lesson covers the rest.

Discrimination and disputes. Employers, landlords and business partners who learn what you hold may treat you differently, and opponents in a divorce or lawsuit can use chain analysis to find assets. Anyone with modest skills can read the history of an address once they know it’s yours.

Political pressure. Financial surveillance can be turned against protest. In February 2022 Canada invoked its Emergencies Act during the trucker-convoy protest, and banks froze more than 200 accounts linked to it. A bank can freeze an account and Bitcoin has no equivalent switch, but surveillance still matters: it is how people are identified in the first place.

Frozen exchange accounts. If coins you receive once passed through flagged addresses, an exchange may freeze your account and demand documents, even if you received them innocently.

Start With Your Threat Model

A threat model is a plain answer to “who might want to know, and what could they do with it?” Your answer decides which steps are worth the effort:

If you mainly worry about...Start with
People around you: employer, neighbours, people you payA new address for every payment, never discussing your holdings, and coin control
Exchanges and their compliance checksKeeping exchange coins apart from other coins (coin control), and buying without ID checks for coins you want private
Criminals who could come for your coinsNot advertising your holdings, keys that can’t all be taken in one place (multisig), and the habits in the physical security lesson
A government with broad surveillance powersAll of the above, plus your own node over Tor (a network that hides your IP address; see network privacy) and, where it makes sense, CoinJoin

Privacy Techniques: A High-Level Overview

Each technique below closes one of the leaks you’ve just seen. Other lessons in this course go into detail.

Four places where privacy leaks, and the technique that closes each. Your identity, when buying: an exchange that checked your ID knows which coins are yours; the fix is to buy without KYC, peer-to-peer. On the chain, when receiving: reusing an address shows its payments go to one wallet; the fix is a fresh address every time. When spending: merged coins and change that is easy to spot join your cluster; the fix is coin control, and CoinJoin where it helps. The network, when connecting: someone else's server learns your addresses and nodes see your IP address; the fix is your own node, over Tor. Buying without KYC is the one fix that prevents the link instead of repairing it.
Each technique closes one leak. Your name leaks at the exchange, your habits leak on the chain, and your IP address and addresses leak on the network. Pick the fixes that match your threat model.

Never Reuse Addresses

Modern wallets show a fresh address each time you receive. Use it: if every sender gets a different address, an observer can’t tell that those addresses belong to one wallet (unless you later spend the coins together). This is the minimum, and most wallets do it automatically.

CoinJoin

CoinJoin combines payments from many people into one transaction with outputs of equal size, so an observer can’t tell whose coin went where. Tools have changed a lot since 2024: Samourai’s Whirlpool coordinator was seized that year and Wasabi’s original coordinator shut down, and the original JoinMarket software was archived in April 2026 with a warning not to use it. The CoinJoin lesson explains what still works in November 2026 (Wasabi with an independent coordinator, Ginger, Ashigaru and JoinMarket NG) and when CoinJoin isn’t worth it. It also covers PayJoin, an ordinary payment in which the person you pay adds a coin of their own, so the common-input rule gives the wrong answer.

Buy Without KYC

KYC (“know your customer”) is the identity check regulated exchanges carry out. If you get bitcoin through peer-to-peer markets such as Bisq or RoboSats without showing ID, no exchange database ties your name to those coins. It’s the one technique that prevents the link instead of repairing it.

Coin Control

Coin control means choosing by hand which coins pay for a transaction, so you never spend coins from different sources together (step 4 in the trace above). Sparrow and Electrum let you label each coin and pick it yourself; the coin control lesson walks through it.

Running Your Own Node

A light wallet asks someone else’s server about your addresses, and that server learns which addresses are yours. With your own node, your wallet asks your own machine. Why run a node explains the reasons, and Setting Up a Bitcoin Node shows how to connect a wallet to it.

The same goes for your extended public key (xpub), the read-only key from which software can calculate every address in your wallet. Paste it into a portfolio app, a tax tool or a block explorer and whoever runs that service can see every coin you hold and every coin you will receive, though it can’t move any of them. Treat it as private; the multisig wallets lesson explains why in more detail.

Tor and VPN

When you broadcast a transaction, the first nodes to see it can note your IP address, and your internet provider can see that you’re using Bitcoin. Tor is a free network that relays your traffic through several volunteers so that no single one sees both who you are and what you send; Sparrow and most node packages can use it. A VPN also hides your IP address from peers, but the VPN company sees your traffic instead, so you move your trust rather than remove it. The network privacy lesson shows how to put your node and wallet on Tor and how to check that they really use it.

Lightning: What It Hides and What It Doesn’t

Payments on the Lightning Network, Bitcoin’s network for fast payments through channels, don’t appear on the blockchain one by one, so the heuristics above can’t read them. That makes Lightning good for everyday spending, but it hides less than people often assume:

  • Opening and closing a channel are ordinary on-chain transactions, linked to the coins that funded them.
  • Your wallet’s channel partner can usually tell which payments come from you. Most phone wallets have a single channel, to a company called an LSP (Lightning service provider). With some wallets, such as Phoenix, that company also sees where your payments go.
  • Every node on a route sees roughly how much is paid. Onion routing, in which each node learns only the hop before it and the hop after it, keeps the nodes in the middle from learning who paid whom.
  • A custodial Lightning wallet, where a company holds the keys, sees all your payments, the way a bank does.

The channels and routing lesson shows what each node on a route can tell, Lightning wallets compared shows who sees your payments with each wallet, and the network privacy lesson covers what your provider and your invoices reveal.

The Privacy Spectrum

At one end: buying on an exchange that checked your ID and receiving everything to one reused address. That is financial glass. At the other: buying peer-to-peer without ID, running your own node over Tor, using coin control, never mixing exchange coins with private ones, and using CoinJoin where it helps. That gives strong, though never perfect, privacy.

Most people are somewhere in between, and every step helps. A fresh address each time beats reusing one; keeping exchange coins separate beats merging everything; your own node beats someone else’s. The rest of this course takes the defences one at a time, in this order: coin control, the everyday habit; checking the software you install and putting your node and wallet on Tor; buying without KYC; and CoinJoin and PayJoin. Then come the lessons that keep your coins safe for life: multisig, inheritance and physical security. The course ends with a plan that puts it all together.

Key Takeaways

  • Bitcoin is pseudonymous, not anonymous: every transaction is public, and once one address is linked to you, analysts can read much of the rest.
  • The core heuristic is common-input ownership: coins spent together are assumed to have one owner. Change detection and timing do the rest.
  • Exchanges that verified your identity give analysts their starting point.
  • Pick your defences from your threat model: fresh addresses, coin control, buying without KYC, your own node over Tor, and CoinJoin where it fits.
  • Your xpub reveals every address in your wallet, so keep it private. Lightning keeps payments off the chain, but not out of sight of your wallet’s provider.
  • A balance linked to your name is a physical risk too. Don’t advertise what you hold.

Frequently Asked Questions

Can the government track my Bitcoin transactions?

Often, yes. Agencies such as the IRS and FBI contract chain analysis firms. If one of your addresses is linked to you through an exchange, a purchase or anything else, they can follow the money. The heuristics are not infallible, but combined with exchange records and legal powers they work well against people who take no precautions.

Is Bitcoin more private than a bank account?

In some ways less, in some ways more. Your neighbour can’t look up your bank balance, but the bank, the government and whoever the bank shares data with can see everything. On Bitcoin, anyone can see the transactions but no central party controls the record. With good habits (no KYC, your own node, coin control), Bitcoin can be more private than a bank. Without them, it can be far worse.

Does using a VPN make my Bitcoin transactions private?

No. A VPN hides your IP address from the network, but the transaction itself is still public and chain analysis works exactly the same. Network privacy is one layer; you still need on-chain habits (coin control, fresh addresses) and identity privacy (no KYC). Many Bitcoiners prefer Tor because it doesn’t ask you to trust a single company; the network privacy lesson compares the two.

Is it illegal to use privacy tools for Bitcoin?

In most countries, using Tor or CoinJoin is legal: they are general-purpose tools. The risks fall elsewhere. People who run mixing services have been prosecuted: the founders of Samourai Wallet pleaded guilty in 2025 to conspiring to operate an unlicensed money-transmitting business (see the CoinJoin lesson). The US sanctioned Tornado Cash, an Ethereum tool, in 2022, but a US appeals court ruled in November 2024 that the Treasury had exceeded its authority, and the Treasury lifted those sanctions in March 2025. For an ordinary user, the likeliest problem is an exchange questioning or refusing coins with mixing history. Check the rules where you live.

Check Your Understanding

1. Your wallet pays a 0.02 BTC bill by spending a coin you withdrew from an exchange together with a coin a friend sent you. What can an analyst now conclude?

Answer

That both coins have the same owner (the common-input-ownership heuristic). Since the exchange knows the first coin is yours, the friend’s coin, and the change from this payment, now sit in a cluster with your name on it. Choosing coins by hand with coin control would have avoided it.

2. Your blockchain explorer shows an address’s full history. Can a stranger see the names of the people who paid it?

Answer

No. The chain records addresses and amounts, not names. Names enter from outside: exchange records, shops, people you’ve dealt with, or careless sharing. That’s why the link between your identity and your first address matters so much.

3. You withdraw 0.10 BTC from an exchange that knows your name. What can the exchange follow afterwards, and what can you keep from it?

Answer

The exchange knows the address it paid, so it can always follow that coin onward: the address you pay with it and, usually, the change that comes back to you. Fresh addresses and keeping coins apart don’t hide that path. What they do is stop the exchange from learning about your other coins: never spend exchange coins together with any others, receive everything else to fresh addresses, and get the coins you want private without KYC where you can. Only breaking the link hides where the withdrawn coins end up. CoinJoin does that, although the exchange can still see that the coin went into a CoinJoin, and some exchanges question coins with mixing history, so keep anything mixed away from them.

Practical guides