Dandelion Protocol

A relay design that first passes a transaction along a private stem and then flushes it to the wider network, hiding which peer started it.

Basically

Dandelion++ hides which internet address first sent your Bitcoin transaction. It passes the transaction along a private path before sharing it with the wider network.

Key Takeaways

  • The Dandelion protocol hides which node originated a transaction by splitting relay into two phases: a "stem" phase that forwards along a single random path, and a "fluff" phase that broadcasts normally across the peer-to-peer network.
  • Dandelion++ improved on the original design with a 4-regular anonymity graph and per-inbound-edge routing, making it resistant to graph-learning attacks, intersection attacks and black-hole attacks that could compromise the original scheme.
  • Dandelion++ has not been merged into Bitcoin Core despite its strong theoretical guarantees. It is deployed in Monero and Grin, while Bitcoin users who want IP-level privacy still rely on Tor.

What Is the Dandelion Protocol?

The Dandelion protocol is a network-layer privacy technique designed to stop adversaries linking Bitcoin transactions to the IP addresses of the nodes that created them. Researchers at the University of Illinois at Urbana-Champaign first proposed it in 2017, and BIP 156 formalised it.

Bitcoin uses diffusion-based relay by default: when a node creates a transaction, it announces it to all connected peers, who relay it to all of their peers, creating a spreading pattern that radiates outward from the originator. A well-connected surveillance node can observe which peer first relayed a transaction and use timing analysis to identify the source IP address. Research has shown that an adversary with roughly 50 connections to each reachable node can deanonymise the origin of about 11% of all transactions.

Dandelion solves this with a two-phase relay mechanism. In the first phase, the stem, the transaction travels privately along a single chain of nodes; in the second phase, the fluff, it is broadcast normally. Observers cannot determine how many stem hops occurred or which node started the chain by the time the transaction reaches the broader network.

How It Works

Dandelion splits transaction propagation into two distinct phases. The phases are named after the parts of a dandelion seed head: a thin stem followed by a diffuse fluff.

Stem Phase

A node that creates a new transaction sends it to a single randomly selected peer called the Dandelion relay instead of broadcasting it to all peers. That relay node flips a biased coin: with 10% probability (q = 0.10), it transitions the transaction to the fluff phase; with 90% probability, it forwards it to the next relay in the stem. This continues until a node's coin flip triggers the fluff transition.

A fluff probability of 10% per hop gives an expected 10 stem hops before the transition. Each hop moves the transaction further from the originator in the network graph, making it progressively harder for an observer to trace back to the source.

Fluff Phase

The transaction is broadcast via normal diffusion to all of a node's peers once that node's coin flip triggers the transition. Propagation looks identical to standard Bitcoin relay from this point. The node that initiates the fluff phase is not the originator, so surveillance nodes observing the broadcast pattern trace back to the wrong source.

Fail-Safe Embargo

Each relay node sets an embargo timer, typically 180 seconds, to prevent transactions from being lost if a stem-path node goes offline or maliciously drops the transaction. The node broadcasts the transaction directly via diffusion if it does not appear in the node's mempool via normal relay before the timer expires. The fail-safe ensures liveness without sacrificing privacy under normal conditions.

Pseudocode

The pseudocode below gives a simplified view of the Dandelion relay logic at each node. It summarises how the node relays a transaction.

Dandelion++ Improvements

The original Dandelion proposal assumed that all nodes follow the protocol honestly, each node generates exactly one transaction per observation window, and the entire network runs Dandelion. None of these assumptions hold in practice. Dandelion++, published in 2018 at ACM SIGMETRICS, addresses these weaknesses with several key changes.

4-Regular Anonymity Graph

The original Dandelion constructs a line graph (2-regular) for the stem phase, with each node using one outbound relay to form simple chains. An adversary who controls even a few nodes on the stem can learn the graph structure. Dandelion++ replaces this with a random approximate 4-regular graph in which each node selects two outbound Dandelion relay peers, making the adversary's state space exponentially larger and defeating graph-learning attacks.

Per-Inbound-Edge Routing

Each inbound peer in Dandelion++ is mapped to a specific Dandelion relay destination. All transactions arriving from the same inbound peer follow the same stem path. This prevents a fingerprinting attack where an adversary sends distinct transactions from multiple connections and observes which relay paths they take, gradually mapping the anonymity graph.

Epoch-Based Reshuffling

The Dandelion relay graph is reshuffled every epoch, approximately 10 minutes on average. This limits the window during which an adversary can perform intersection attacks: observations from one epoch provide no information about the routing topology in the next.

Default Bitcoin Relay (Diffusion)

Standard Bitcoin transaction relay broadcasts to all peers immediately, which is fast and reliable but leaks timing information. A surveillance node connected to many peers can observe which node first announced a transaction and infer that it is likely the originator. Dandelion++ breaks this correlation by ensuring the transaction first travels through an unpredictable stem path before entering diffusion, so the first node an observer sees is not the creator.

Tor

Tor provides strong anonymity by routing all network traffic through a separate overlay network with multiple layers of encryption. However, Tor adds significant latency, requires explicit user configuration, and can be blocked by some Bitcoin nodes. Dandelion++ is designed as a complement to Tor, not a replacement: it provides network-wide baseline privacy with minimal overhead of a few seconds of added propagation delay, while Tor provides stronger individual-level protection against targeted adversaries and ISP-level surveillance.

Erlay

Erlay is a separate relay protocol improvement focused on reducing bandwidth, not privacy. Erlay uses set reconciliation to minimise redundant transaction announcements between peers. Both Dandelion++ and Erlay modify how transactions propagate through the peer-to-peer network, but they address different problems and could potentially be deployed together.

Implementation Status

Dandelion++ has had a complicated path to real-world deployment across Bitcoin clients. Its theoretical strength has not removed those deployment hurdles.

Bitcoin Core

A pull request (PR #13947) was opened in August 2018 to implement BIP 156 in Bitcoin Core, but it was closed in July 2019 without being merged. Key concerns included potential DoS vulnerabilities related to the stempool, a holding area for stem transactions, unclear handling of transaction chains where child transactions depend on unconfirmed stem parents, and risks of information leakage through the stempool itself. A follow-up issue (#20203) in October 2020 revisited Dandelion++ but was also closed, and Dandelion++ is not implemented in Bitcoin Core as of 2026.

Monero

Monero was the first major cryptocurrency to ship Dandelion++, merging it in April 2020. The implementation adds only a few seconds of propagation delay and integrates with Monero's existing privacy features: ring signatures and stealth addresses.

Grin

Grin, a MimbleWimble implementation, deploys a simplified Dandelion++ variant using a 2-regular anonymity graph instead of a 4-regular one. Its parameters include a 600-second epoch, 180-second embargo timeout and 10% fluff probability.

Why It Matters

IP-address deanonymisation is one of the most practical threats to Bitcoin user privacy. Your node's IP address can still be linked to specific transactions through network-level observation even if you use CoinJoin or other on-chain privacy techniques to obscure the transaction graph. This information can be used for targeted surveillance, chain analysis enrichment or even physical attacks.

Dandelion++ provides what researchers call "anonymity inoculation": if enough nodes adopt the protocol, even users running older software benefit because the diffusion patterns of the entire network become harder to analyse. This herd-immunity property makes it particularly valuable as a network-wide upgrade rather than a per-user tool.

Network-layer privacy is equally important for Bitcoin layer-2 protocols. Nodes participating in protocols like Lightning channels or off-chain systems reveal IP addresses when broadcasting on-chain settlement transactions. A protocol like Dandelion++ would protect those IP addresses at the base layer, complementing higher-layer privacy mechanisms like onion routing for payment forwarding; the research article on Dandelion and network-level privacy provides a deeper technical analysis.

Partial Adoption Weakens Guarantees

Dandelion++'s privacy depends on a critical mass of nodes running the protocol. Stem paths are short if only a small fraction of the network supports it, because non-Dandelion nodes immediately fluff, and adversaries can more easily identify the originator. Unlike Tor, which benefits individual users regardless of network-wide adoption, Dandelion++ is most effective as a near-universal upgrade.

Stempool Complexity

Transactions in the stem phase must be held in a separate stempool rather than the regular mempool. This introduces complexity: child transactions that depend on unconfirmed stem parents need special handling, fee estimation becomes harder when stem transactions are not yet publicly visible, and the stempool itself could leak information if not implemented carefully. These engineering challenges were a primary reason Bitcoin Core's implementation attempt stalled.

Propagation Delay

The stem phase adds propagation latency: with 10 expected hops, each requiring a network round trip, transactions may take several seconds longer to reach the full network. This is negligible for most use cases, but applications that depend on rapid mempool visibility, such as replace-by-fee monitoring or real-time fee estimation tools, could be affected.

Not a Complete Privacy Solution

Dandelion++ protects against network-level deanonymisation by passive observers, but it does not protect against ISP-level or AS-level adversaries who can observe all traffic entering and leaving a node's network connection. It also provides no on-chain privacy: transaction amounts, addresses and the UTXO graph remain fully transparent. You should combine Dandelion++ with Tor for network-layer protection and techniques like CoinJoin or silent payments for on-chain privacy if you need comprehensive privacy; the research article on Bitcoin privacy in 2026 offers a broader view.

The glossary entry is for informational purposes only and does not constitute financial or investment advice. You should always do your own research before using any protocol or technology.

0

← All 1876 glossary terms