Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions data/topics/chain-analysis.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
title: 'Chain Analysis'
summary: 'Tracing public Bitcoin transactions to infer ownership, follow payments, and connect addresses to real-world identities.'
category: 'Privacy'
aliases: ['Blockchain analysis', 'On-chain analysis', 'Chain surveillance']
---

Chain analysis is the study of public blockchain transactions to follow payments and infer who controls the funds. Bitcoin records transaction inputs, outputs, and amounts publicly, but it does not record the names of the people using it. Analysts combine this transaction history with information from outside the blockchain to connect addresses to people or services. Chainalysis is one company that sells tools for this work to exchanges, financial institutions, and law enforcement.

A common technique is address clustering: grouping addresses that appear to belong to the same owner. The common-input ownership heuristic assumes that the [UTXOs](/topics/utxo) spent together in a transaction belong to one party. Analysts also try to identify change outputs from transaction amounts and script types. Once an address is associated with an identity, for example through an exchange's customer records, these inferred links can expose more of that person's financial activity.

Those inferences can be wrong. [CoinJoin](/topics/coinjoin) transactions combine inputs from multiple participants, breaking the common-input assumption. [Payjoin](/topics/payjoin) applies this idea to a payment between a sender and receiver, while [CoinJoinXT](/topics/coinjoinxt) explores coordinated transactions spread across a larger transaction graph. An address cluster is therefore an estimate of common ownership, not proof of a person's identity.

Avoiding address reuse and choosing which UTXOs to spend together can reduce unwanted links between payments. Using your own [Bitcoin node](/topics/bitcoin-node) also avoids sending wallet address queries to a third-party server. These practices limit different sources of information; they do not erase the public transaction history or guarantee anonymity.

## References

- [Bitcoin whitepaper: Privacy, section 10](https://bitcoin.org/bitcoin.pdf#page=6)
- [Chainalysis](https://www.chainalysis.com/)
- [Learn to Bitcoin: Chain Analysis](https://learntobitcoin.org/learn/chain-analysis/)
- [Bitcoin Security: Chain Analysis](https://bitcoinsecurity.org/learn/chain-analysis/)
2 changes: 1 addition & 1 deletion data/topics/coinjoin.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ category: 'Privacy'
aliases: ['coinjoin', 'CoinJoins', 'collaborative transaction', 'WabiSabi', 'JoinMarket', 'ZeroLink']
---

A CoinJoin is a collaborative transaction: a Bitcoin transaction that is initiated and signed by multiple participants. Combining inputs from several parties breaks the common input ownership heuristic that chain-analysis firms rely on to link addresses to a single actor. The idea was first proposed on Bitcointalk in 2011 by a user going by `hashcoin`, and popularized in 2013 by Gregory Maxwell. Most CoinJoins are a specific type of batch transaction, and a dishonest coordinator cannot steal funds, only refuse to publish the final transaction.
A CoinJoin is a collaborative transaction: a Bitcoin transaction that is initiated and signed by multiple participants. Combining inputs from several parties breaks the common input ownership heuristic that [chain-analysis](/topics/chain-analysis) firms rely on to link addresses to a single actor. The idea was first proposed on Bitcointalk in 2011 by a user going by `hashcoin`, and popularized in 2013 by Gregory Maxwell. Most CoinJoins are a specific type of batch transaction, and a dishonest coordinator cannot steal funds, only refuse to publish the final transaction.

Beyond privacy, batching transactions has other benefits in some circumstances. Combining many payments into one transaction amortizes the fixed per-transaction overhead across all participants, so the total fee paid in aggregate is lower than it would be if each payment were sent on its own. Exchanges and payment processors use batching transactions for the same reason.

Expand Down
2 changes: 1 addition & 1 deletion data/topics/coinjoinxt.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ aliases: ['CoinJoin XT', 'proposed transaction graph', 'PTG']

CoinJoinXT is a proposed Bitcoin privacy protocol that extends the basic idea behind [CoinJoin](/topics/coinjoin). Instead of combining everyone into one shared transaction, participants build a connected set of transactions, often described as a proposed transaction graph, that moves funds through intermediate outputs and returns each participant the value they put in.

That structure aims to make the resulting on-chain footprint look less like a single obvious mix. If the graph blends in with ordinary transaction activity, chain analysis has a harder time identifying where the coordinated protocol starts and ends. Some designs also preserve CoinJoin-style ambiguity even after the construction is recognized, because observers still cannot reliably match equal-valued outputs back to specific inputs.
That structure aims to make the resulting on-chain footprint look less like a single obvious mix. If the graph blends in with ordinary transaction activity, [chain analysis](/topics/chain-analysis) has a harder time identifying where the coordinated protocol starts and ends. Some designs also preserve CoinJoin-style ambiguity even after the construction is recognized, because observers still cannot reliably match equal-valued outputs back to specific inputs.

The tradeoffs are extra block space, more coordination, and stricter transaction requirements. Early CoinJoinXT designs leaned on [SegWit](/topics/segwit) to avoid transaction malleability problems, and later writeups describe variants that would benefit from [Schnorr](/topics/taproot)-style aggregated signing. CoinJoinXT remains a research direction rather than a widely deployed wallet feature, though JoinMarket contributors and other privacy researchers have published design notes and proof-of-concept code.

Expand Down
2 changes: 1 addition & 1 deletion data/topics/payjoin.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ category: 'Privacy'
aliases: ['P2EP', 'pay-to-endpoint', 'BIP 78', 'BIP 77']
---

Payjoin is a way for a sender and a receiver to cooperate on a Bitcoin transaction so that the receiver also contributes one of their UTXOs as input. The result looks like an ordinary payment on chain, but it breaks the common-input heuristic that assumes all inputs to a transaction belong to the same wallet.
Payjoin is a way for a sender and a receiver to cooperate on a Bitcoin transaction so that the receiver also contributes one of their UTXOs as input. The result looks like an ordinary payment on chain, but it breaks the [common-input heuristic](/topics/chain-analysis) that assumes all inputs to a transaction belong to the same wallet.

The sender and receiver talk to each other before broadcasting. The original version (BIP 78) requires the receiver to run a reachable HTTP endpoint. The newer async version (BIP 77) uses a relay so the two sides do not have to be online at the same time.

Expand Down
Loading