Abstract
Bitcoin is a popular alternative to fiat money, widely used for its perceived anonymity properties. However, recent attacks on Bitcoin's peer-to-peer (P2P) network demonstrated that its gossip-based flooding protocols, which are used to ensure global network consistency, may enable user deanonymization—the linkage of a user's IP address with her pseudonym in the Bitcoin network. In 2015, the Bitcoin community responded to these attacks by changing the network's flooding mechanism to a different protocol, known as diffusion. However, no systematic justification was provided for the change, and it is unclear if diffusion actually improves the system's anonymity. In this paper, we model the Bitcoin networking stack and analyze its anonymity properties, both pre- and post-2015. We theoretically prove that Bitcoin's networking protocols (both pre- and post-2015) offer poor anonymity properties on networks with a regular-tree topology. We validate this claim in simulation on a 2015 snapshot of the real Bitcoin P2P network topology.
Introduction
While much of the privacy discourse surrounding Bitcoin focuses on the public ledger (the application layer), the underlying networking layer presents a significant, often overlooked vulnerability. When a user broadcasts a transaction, it propagates through the P2P network via a flooding mechanism. An adversary operating "supernodes"—nodes with high connectivity—can observe the timing of these broadcasts across different parts of the network. By analyzing these timestamps, an attacker can potentially "triangulate" the source, linking a Bitcoin pseudonym to a specific IP address.
In 2015, the Bitcoin community transitioned from the "trickle" spreading protocol to "diffusion" to address these concerns. However, this shift lacked a formal theoretical foundation. This paper investigates whether diffusion provides a meaningful improvement in anonymity and quantifies the inherent risks of these gossip-based protocols.
Methodology
The study employs a combination of graph theory and stochastic modeling to evaluate network anonymity. The Bitcoin P2P network is modeled as a $d$-regular tree, where each node has a uniform degree $d$. This serves as a tractable mathematical proxy for the "locally tree-like" structure of the actual network.
The researchers define an "eavesdropper adversary" that establishes $\theta$ connections to every honest node to monitor transaction timestamps. To identify the source, two classes of estimators are analyzed:
- First-Timestamp Estimator: A baseline approach that identifies the first node to report a transaction as the source.
- Maximum-Likelihood (ML) Estimators: More advanced algorithms, such as Timestamp Rumor Centrality and Reporting Centrality, which leverage graph topology and timing data to pinpoint the origin.
Theoretical findings were validated using both synthetic $d$-regular trees and a real-world snapshot of the Bitcoin P2P network from 2015, comprising approximately 5,000 nodes.
Analysis and Insights
The core vulnerability in current protocols lies in their symmetry. Information spreads at a uniform rate in all directions, allowing centrality-based estimators to effectively locate the "center" of the spreading pattern—the source.
Furthermore, the study identifies a "law of diminishing returns" for adversaries. The most significant information gain occurs with the first few connections established to a node; additional connections provide decreasing marginal benefits. Crucially, the authors find that diffusion, while appearing more random, does not offer order-level anonymity improvements over trickle. Even with high network connectivity, the probability of detection remains significant.
Key Results
The theoretical and empirical analysis reveals that both trickle and diffusion protocols are fundamentally limited in the anonymity they provide.
As shown in the table above, for the trickle protocol, an ML estimator can identify the source with a probability of at least 1/2 on a $d$-regular tree, regardless of the degree $d$. For the diffusion protocol, while the simple first-timestamp estimator performs poorly as $d$ increases, the more sophisticated "Reporting Centrality" estimator maintains a constant, strictly positive detection probability ($\Theta(1)$) even as $d$ approaches infinity. Simulations on the 2015 Bitcoin graph confirmed these results, showing detection rates often exceeding 30-40% in practical adversarial scenarios.
Conclusion
The transition to diffusion in 2015 failed to provide the robust anonymity gains the Bitcoin community sought. The inherent symmetry of gossip-based flooding makes the network susceptible to centrality-based attacks. To achieve true anonymity, the authors suggest that spreading protocols must be designed to be intentionally "lopsided" or asymmetric to confuse estimators. This insight paved the way for the development of the "Dandelion" protocol, which aims to break the symmetry of transaction propagation.
Summary updated