[Paper Review] Bitcoin Selfish Mining and Dyck Words
This paper provides a novel, elementary proof for the long-term apparent hashrate of Bitcoin's selfish mining strategy using Dyck words and combinatorics, avoiding complex Markov chains or Poisson processes. It derives the attacker's effective hashrate as a function of mining power and network connectivity, and extends the analysis to stubborn mining strategies, offering closed-form expressions for profitability under various conditions.
We give a straightforward proof for the formula giving the long-term apparent hashrate of the Selfish Mining strategy in Bitcoin using only elementary probabilities and combinatorics, and more precisely, Dyck words. There is no need to compute stationary probabilities on Markov chain nor stopping times for Poisson processes as it was previously done. We consider also several other block withholding strategies.
Motivation & Objective
- To provide a simpler, combinatorial derivation of the long-term apparent hashrate in Bitcoin selfish mining, avoiding reliance on Markov chains or stochastic processes.
- To analyze the profitability of selfish mining and related block withholding strategies (stubborn mining) using elementary probability and Dyck word structures.
- To derive explicit formulas for the attacker's effective hashrate under different network connectivity conditions (γ).
- To compare the profitability of selfish mining, equal-fork stubborn mining, and lead stubborn mining across the parameter space of attacker hashrate (q) and connectivity (γ).
- To support protocol improvements by identifying the conditions under which selfish mining becomes profitable, using a clean mathematical framework.
Proposed method
- Model each attack cycle as a sequence of blocks mined by the selfish miner (S) or honest miners (H), forming a Dyck word structure when S and H are mapped to parentheses.
- Use the Catalan number C_{n-2} to count valid Dyck word sequences of length 2(n-2) that correspond to attack cycles ending with L = n blocks in the official chain.
- Compute the expected number of blocks Z added by the attacker to the official chain, E[Z], by conditioning on cycle length L and accounting for network connectivity γ in block replacement.
- Derive the apparent hashrate as E[Z]/E[L], using known generating function identities for Catalan numbers: ∑p(pq)^n C_n = 1 and ∑n p(pq)^n C_n = q/(p−q).
- Extend the framework to two stubborn mining variants: equal-fork and lead stubborn mining, each with distinct cycle-ending rules and Dyck word-based distributions.
- Use generating functions and conditional expectations to derive closed-form expressions for E[Z] and the resulting apparent hashrate Ẽq for each strategy.
Experimental results
Research questions
- RQ1What is the long-term apparent hashrate of the selfish mining strategy, and can it be derived without Markov chains or Poisson processes?
- RQ2How do Dyck words and Catalan numbers naturally describe the structure of selfish mining attack cycles?
- RQ3What is the profitability of equal-fork and lead stubborn mining strategies, and how do they compare to selfish mining?
- RQ4How does network connectivity γ affect the attacker’s effective hashrate in different mining strategies?
- RQ5Under what conditions does selfish mining become profitable, and what are the exact thresholds?
Key findings
- The long-term apparent hashrate for selfish mining is Ẽq = [(p−q)(1+pq)+pq]q − (p−q)p²q(1−γ) / (pq² + p−q), derived combinatorially using Dyck words.
- The distribution of attack cycle length L follows a Catalan-based distribution: P(L=n) = p^{n−1}q^n C_{n−2} for n≥3, with P(L=1)=p and P(L=2)=pq+pq².
- For equal-fork stubborn mining, the expected cycle length is E[L] = p/(p−q), and the apparent hashrate is Ẽq = q/p − (1−γ)(p−q)/γp (1−pC((1−γ)pq)).
- For lead stubborn mining, E[L] = (p−q+pq)/(p−q), and the apparent hashrate is Ẽq = q(p+pq−q²)/(p+pq−q) − pq(p−q)(1−γ)/γ ⋅ (1−p(1−γ)C((1−γ)pq))/(p+pq−q).
- The analysis shows that selfish mining remains profitable for q < 0.5, especially when γ is low, and provides exact thresholds for profitability without relying on simulation or complex stochastic calculus.
- The framework enables direct comparison of mining strategies across the (q,γ) parameter space, identifying dominance regions where each strategy outperforms others.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.