This research paper demonstrates that the optimal mining strategy for a Bitcoin-like blockchain can be approximated using multivariate reinforcement learning (RL) without prior knowledge of the model parameters—the attacker’s computational power fraction α and their communication advantage γ . We use this work as a testable “testing ground” and link it to questions of blockchain quantum resilience: the quantum threat is not another parameter α , but a separate resource model that should not be confused with the optimal mining problem. The central question of the paper is: which statements about blockchain resilience can be tested experimentally, and which remain estimates of future risk? The paper 1911.12942v3, “When Blockchain Meets AI: Optimal Mining Strategy Achieved By Machine Learning,” examines mining strategy in a Bitcoin-like blockchain as a Markov Decision Process (MDP) problem with a nonlinear objective—the relative payoff of a miner RMG . The authors show that standard Q-learning is not directly suitable due to nonlinearity and propose a multivariate RL algorithm that simultaneously evaluates the Q-functions of the attacker and the honest network. In simulations, RL mining approaches the optimal policy obtained by a model-based method [18] and adapts as α and γ change . We do three things. First, we provide an in-depth analysis of the model, actions, reward, and work constraints. Second, we select testable questions from the “Quantum Technologies: 75 Questions” constructor—primarily about Bitcoin, cryptanalysis, resource assessments, and migration. Third, we construct a sequential research chain: honest mining → selfish mining [15] → lead stubborn mining [17] → optimal MDP [18] → model-free RL [P] → deep RL [22] and a more complete MDP model [29]. The quantum part of the paper is an evaluation framework and a research program , not an empirical result 1911.12942v3.
blockchain, proof-of-work, reinforcement learning, quantum cryptanalysis, post-quantum cryptography
Content
- 1. Central intrigue
- 2. Deep analysis of 1911.12942v3
- 3. Selected research questions
- 4. Hypotheses and refutation criteria
- 5. Sequential chain of works
- 6. Evidence and Interpretation
- 7. Bitcoin’s Quantum Profile
- 8. Design of the study being tested
- 9. Limitations and threats to validity
- 10. Conclusion and further experiments
- Sources
- Appendices: matrix and checklist
1. Central intrigue: honesty, optimality and unknown parameters
For a long time, it was believed that the most profitable mining strategy was honest: publishing a block immediately after finding it. However, the work [15] showed that selfish mining can yield more rewards: with a power share of α = 1/4, a selfish miner can receive up to 1/3 of all rewards. Then [17] proposed even more profitable options, and [18] formulated the optimal mining problem as an MDP with a nonlinear objective. A paradox arises: an optimal strategy exists, but calculating it requires knowledge of network parameters, which in reality are unknown and change .
Paper 1911.12942v3 proposes a model-free approach: learning a strategy through interaction, without knowing α and γ . This creates a second intrigue: if a strategy adapts to unknown parameters, then what statements about blockchain security can we consider verified? The quantum threat adds a third unknown—the resource model of a future adversary. But it can’t simply be “substituted” for α : quantum cryptanalysis attacks signatures and hashes, not the branch selection rule in MDP mining. It is this distinction that we make explicit.
2. Deep analysis of file 1911.12942v3
2.1 What exactly does the work explore?
A Bitcoin-like blockchain with proof-of-work is considered. The network is divided into two pools: an attacker with a power share of α and an honest network with a share of 1 − α . The parameter γ models the attacker’s communication advantage: the share of honest power that, upon near-simultaneous block releases, begins mining on the attacker’s branch. The work uses the MDP model from [18]: state, action, transitions, and rewards. The goal is not to maximize the absolute reward, but to maximize the relative gain, because the network difficulty automatically maintains the average block interval.
2.2. Status, Actions, and Reward
State: , where is the length of the private/attacking branch, is the length of the honest branch after the last fork; . Attacker actions:(l(a), l(h), fork)l(a)l(h)fork ∈ {irrelevant, relevant, active}
| Action | Meaning | When is it acceptable? | Risk/Meaning to Check |
|---|---|---|---|
| Adopt | Accept the honest chain and start mining on its last block; the private branch is discarded. | Always | Attack reset; “price of stubbornness” check. |
| Override | Publish a block, block the honest thread.l(h) + 1 | l(a) > l(h) | Direct attack on the main chain; a key scenario for RMG. |
| Match | Publish the same number of blocks as the fair network by creating a public fork. | l(a) ≥ l(h) And fork = relevant | Checking the role of γ : some of the fair power may go to the attacker’s branch. |
| Wait | Do not publish blocks, continue private mining. | Always | Accumulating advantage; checking timing. |
The reward is a pair : how many blocks from the attacker and the honest network are ultimately accepted by the entire network. Blocks that lose the competition are not considered successfully implemented. This is important: the attacker’s strategy is aimed at increasing the number of honest blocks discarded and minimizing their own losses .(r(a), r(h))
2.3. Nonlinear RMG target
Objective function:
RMG = E[ limT→∞ Σ r(a)t+1 / ( Σ r(a)t+1 + Σ r(h)t+1 ) ].
This is not a linear reward function, so a standard MDP solver is not directly applicable. In [18], the problem was transformed into a family of MDPs with linear objectives and the optimum was sought numerically. This is a model-based approach: α and γ must be known . In a real network, these parameters are unknown and drift. This is the motivation for RL.
2.4 Multivariate RL Algorithm
Conventional Q-learning maximizes the scalar convolution of rewards. For RMG, the authors introduce two Q-functions: is the attacker’s expected discounted reward, and is the honest network’s expected discounted reward. The greedy action is chosen not by , but by the ratio:Q(a)(s,a)Q(h)(s,a)Q(a)
f(s,a) = q(a)(s,a) / (q(a)(s,a) + q(h)(s,a)).
Both Q-functions are updated using a Q-learning-like scheme. ε-greedy is used for exploration, but ε decreases according to a schedule , where is the number of state visits and is the temperature governing exploration. This is a tradeoff: more exploration helps avoid getting stuck in a local optimum, but slows convergence.ε(st) = exp(−V(st)/Tε)V(st)Tε
2.5. What the experiments confirm
In a 1000-miner Monte Carlo simulation, instead of real hashing, the step window, , , MDP is truncated at . Results:Tw = 105λ = 0.999β = 0.05l(a) = 100
- Fig. 9–11: RL mining approaches the optimal policy [18] for γ = 1, 0.5, 0 and different α ; selfish mining [15] performs worse than the optimal policy.
- Fig. 12–14: Larger gives more exploration and better asymptotics, but takes longer; too small gets stuck sooner.
TεTε - Fig. 16–18: As (α, γ) is successively changed , the optimal policy calculated for the old parameters ceases to be optimal, and RL adapts.
This is a strong argument in favor of model-free adaptation. However, this is a simulation , not a deployment to a real network; the environment parameters are still generated by the simulator, although they are not communicated to the algorithm.
2.6. What cannot be removed from work
It cannot be claimed that 1911.12942v3 solves the quantum threat, proves Bitcoin’s security, or demonstrates that RL mining “hacks” the network. The work addresses a narrow problem: maximizing the RMG in a given MDP model with unknown α and γ . Quantum algorithms, post-quantum migration, and real-world network latency are not explored in this work.
3. Selected research questions
Fourteen general and seven specialized questions were selected from the “Quantum Technologies: 75 Questions” constructor. These questions don’t require answers to everything at once; they provide a framework for review.
| Block | Numbers | Why were they chosen? |
|---|---|---|
| Staging and intrigue | 1, 2, 3, 4, 5, 6 | Separate the physical/algorithmic object from the prediction; formulate a falsifiable hypothesis. |
| Mechanism | 7, 11 | Understand what exactly is being modeled: MDP transitions, RMG, resource model of a quantum adversary. |
| History and controversy | 13, 18 | Link honest → selfish → stubborn → optimal → RL as a sequence of refinements. |
| Algorithms | 25 | Check how the problem is translated into Q-functions and a multidimensional goal. |
| Errors/reliability | 31 | Evaluate the error model and the stability of RL under parameter drift. |
| Fair comparison | 37, 43 | Compare RL with optimal policy and classical baselines under the same metrics. |
| Cryptography/Bitcoin | 49, 50, 51, 52, 54, 55, 56 | Separate signatures from hashing; explicitly define the threat model and resources; separate QKD and PQC. |
Questions 53, 57–75 are not included: they require separate work on communications, sensors, economics, or future scenarios.
4. Hypotheses and refutation criteria
| Hypothesis | What is considered confirmation? | What will refute |
|---|---|---|
| H1. Multivariate RL mining achieves RMG close to the optimal model-based policy without explicit knowledge of α and γ . | After convergence, RMG RL is no worse than the optimal policy within the statistical error on the series α , γ . | Systematic lag of RL from the optimum; non-reproducibility; convergence only by “peeping” at the parameters. |
| H2. As α and γ change , RL adapts faster than the fixed optimal policy computed for the old parameters. | Recovery metric: time until RMG returns to the neighborhood of the new optimum; RL outperforms the fixed policy. | RL does not recover; fixed policy is no worse; adaptation is explained by noise. |
| H3. Bitcoin’s quantum threat should be assessed using a separate resource model (ECDSA signatures, SHA-256 hashing, public key disclosure window), rather than by substituting “quantum α” into the mining MDP. | Explicit table: what is being attacked, what resources are needed, what data is available, what migration standard is applied. | Mixing mining strategy and cryptanalysis; lack of a threat model; conclusions without evaluating logical/physical qubits. |
5. Sequential chain of works: from fairness to adaptive RL
File 1911.12942v3 is conveniently read as a node in a chain. Below are the “several works” it relies on and which define the next steps.
| Job | Model/idea | Key result | Limitation | Connection to the next step |
|---|---|---|---|---|
| Honest mining [3]–[5] | Publish block immediately; mine on the longest chain. | The share of rewards ≈ the share of power. | Does not check for deviations. | Baseline for comparison. |
| Selfish mining [15] | Hide blocks and publish at a favorable ratio. | With α = 1/4, you can get up to 1/3 of the rewards. | Not optimal in general. | Shows that honesty is not always optimal. |
| Lead stubborn mining [17] | Always publish one block per match when l (a) ≥ l (h) ; do not override. | Selfish mining may be more profitable. | Heuristic, not general optimum. | Motivates the search for optimal policy. |
| Optimal MDP [18] | MDP with nonlinear objective; transformation into a family of linear MDPs. | Finds the optimal policy for known α , γ . | Model-based; parameters must be known. | Sets the goal of model-free learning. |
| 1911.12942v3 [P] | Multivariate RL: Two Q-functions and a relation .q(a)/(q(a)+q(h)) | Approaches optimum without knowing parameters; adapts to drift. | Simulator, truncated MDP, no real network. | Opens questions about deep RL and full MDP. |
| Deep RL [22] | Neural networks as approximators of Q-functions. | Scaling to large state spaces. | Difficulty of learning, instability. | Future step for full MDP [29]. |
| Complete MDP [29] | Accounting for stale blocks, double spending, eclipse attacks, etc. | A more realistic security model. | Huge space for action. | Checking whether RL adaptation is preserved. |
6. Evidence and Interpretation
6.1 What is considered evidence in 1911.12942v3
The proof in this paper is a combination of a formal MDP formulation and simulation experiments. Formal part: multidimensional Q-function update and relational action selection are consistent with RMG. Experimental part: comparison of RL with an optimal policy and selfish mining; analysis ; testing in a changing environment. This is not a proof of the security of real Bitcoin.Tε
6.2. Strengths
- The nonlinearity of RMG is explicitly stated and it is shown why conventional Q-learning is not suitable.
- A simple and interpretable multivariate RL algorithm is proposed.
- There is a comparison with the model-based optimum [18], and not only with honest/selfish.
- There is a drift test for parameters – an important step towards practical robustness.
6.3. Weaknesses and what to check next
- The 1000 miner simulator and Monte Carlo may not reflect real latencies, orphans and stratums.
- MDP is truncated; behavior outside of this is untested.
l(a) = 100 - Hyperparameters
λ,β, were selected; sensitivity is needed.Tε - There is no real online training on a live network; “model-free” means omitting explicit parameters in the solution, but not the simulator.
- The quantum part is missing; it cannot be attributed to work.
7. Bitcoin’s Quantum Profile: What Exactly Might Change
To connect RL mining with quantum questions, three layers need to be separated.
| Layer | What is being attacked? | Quantum algorithm/effect | What is needed for a verifiable output? |
|---|---|---|---|
| Digital signatures | ECDSA secp256k1 in Bitcoin; private key from public key. | Shor’s algorithm (in an idealized model). | Public key disclosure model; logical and physical qubit estimates; time; errors. |
| Proof-of-work | Finding nonce for SHA-256. | Grover’s acceleration is quadratic, not exponential. | Comparison with difficulty increase; mining economics; not to be confused with “instant hack”. |
| Protocol/Migration | Signatures, keys, wallets, infrastructure. | Post-quantum standards; QKD is a separate technology. | Transition costs; compatibility; trust model; NIST FIPS 203/204/205 standards. |
Important: in Bitcoin, the public key is not always available to an attacker. For many addresses, the public key is revealed when funds are spent; before that, the address is a hash. Therefore, the statement “a quantum computer will steal all Bitcoin tomorrow” is incorrect without a threat model. The correct question is: at what public key disclosure window and at what resources does the quantum adversary have does the risk become practically significant?
QKD and post-quantum cryptography address different challenges. QKD requires specialized infrastructure and trusted nodes; PQC requires software and hardware migration of algorithms. For blockchain, practical migration is closer to PQC but requires verification of signatures, wallets, hardware modules, and compatibility. NIST approved FIPS 203 (ML-KEM), FIPS 204 (ML-DSA), and FIPS 205 (SLH-DSA) in August 2024; NCCoE describes practical migration. These are historical reference points, not proof that the migration is complete.
8. Design of the study being tested
8.1. Stages
- Reproduce the baseline. Implement MDP from [18] and RL from [P]; check RMG for mesh α , γ .
- RL stress test. Change α and γ abruptly and smoothly; measure regret relative to the new optimum and recovery time.
- Ablations. Disable multidimensionality (scalar reward), compare; vary , , ; check MDP truncation.
Tεβλ - Quantum threat model. Separately: (a) signatures; (b) PoW; (c) migration. For each – a table of resources and assumptions.
- Synthesis: Check whether RL conclusions are preserved when adding a more complete MDP [29] and under different migration scenarios.
8.2. Metrics
| Region | Metrics | How to avoid substitution |
|---|---|---|
| Mining | RMG; regret to the optimum; convergence time; recovery time after a shift. | Same windows, seeds, interaction budgets. |
| RL | Average reward, variance, number of episodes before threshold. | Comparison with model-based optimum and honest/selfish baseline. |
| Quantum cryptanalysis | Logical/physical qubits; circuit depth; time; error probability; key disclosure window. | Explicitly state the error model and assumptions; do not mix with mining simulation. |
| Migration | Cost, delay, compatibility, risk of vendor dependency. | Compare PQC and QKD by different criteria, not by one “quantum” label. |
8.3. Control experiments
- RL with “oracle” α , γ is the upper bound; RL without parameters is the model being tested.
- Fixed optimal policy for old parameters – adaptation baseline.
- Random policy and honest mining are the lower/simple baseline.
- Different seeds and confidence intervals; negative results should be published explicitly.
9. Limitations and threats to validity
- External validity: the simulator is not equal to the real network; real stratums, orphans, and latencies may change the RMG.
- Construct validity: RMG is a relative metric; it does not measure the security of signatures or resistance to quantum cryptanalysis.
- Statistical validity: Confidence intervals and independent runs are needed; “after convergence” must be formally defined.
- Quantum part: resource estimates are highly dependent on the error model and architecture; an exact hack date cannot be promised.
- Ethical/Dual-Use: Work on mining strategies and cryptanalysis requires responsible reporting; we do not provide attack instructions.
10. Conclusion and further experiments
1911.12942v3 teaches an important lesson: optimality depends on the model, and the model depends on the parameters . RL mining shows that an adaptive policy can approach the optimum without explicit knowledge of α and γ . But this doesn’t automatically make a blockchain “quantum-resistant.” Quantum security is a separate resource-intensive problem that must be formulated in terms of signatures, hashing, key discovery window, and migration.
The following experiments are: (1) deep RL for full MDP [29]; (2) regret analysis under parameter drift; (3) explicit quantum adversary model for ECDSA and SHA-256; (4) comparison of PQC migration and QKD under different criteria; (5) reproducible code and data package.
The main new question is: is it possible to construct a unified blockchain resilience metric that simultaneously takes into account both the adaptive mining strategy and the quantum cryptanalysis resource model, without mixing the two? So far, the answer is no; and this is a fair, verifiable conclusion.
Sources
- T. Wang, S. C. Liew, S. Zhang. “When Blockchain Meets AI: Optimal Mining Strategy Achieved By Machine Learning.” arXiv:1911.12942v3. https://arxiv.org/abs/1911.12942
- I. Eyal, E. G. Sirer. “Majority is not enough: Bitcoin mining is vulnerable.” Communications of the ACM, 2018.
- K. Nayak, S. Kumar, A. Miller, E. Shi. “Stubborn mining: Generalizing selfish mining and combining with an eclipse attack.” IEEE EuroS&P, 2016.
- A. Sapirshtein, Y. Sompolinsky, A. Zohar. “Optimal selfish mining strategies in bitcoin.” Financial Cryptography and Data Security, 2016.
- R. S. Sutton, A. G. Barto. Reinforcement Learning: An Introduction. MIT Press, 2018.
- C. J. Watkins, P. Dayan. “Q-learning.” Machine Learning, 1992.
- V. Mnih et al. “Human-level control through deep reinforcement learning.” Nature, 2015.
- A. Gervais et al. “On the security and performance of proof of work blockchains.” ACM CCS, 2016.
- National Quantum Initiative. https://www.quantum.gov/national-quantum-initiative/
- NIST. FIPS 203, 204, 205 approved, August 2024. https://csrc.nist.gov/news/2024/postquantum-cryptography-fips-approved
- NIST NCCoE. Migration to Post-Quantum Cryptography. https://www.nccoe.nist.gov/applied-cryptography/migration-to-pqc
