Browse > Article
http://dx.doi.org/10.13089/JKIISC.2019.29.1.225

Machine Learning Based Prediction of Bitcoin Mining Difficulty  

Lee, Joon-won (Information Security Lab, Graduation School of Information, Yonsei University)
Kwon, Taekyoung (Information Security Lab, Graduation School of Information, Yonsei University)
Abstract
Bitcoin is a cryptocurrency with characteristics such as de-centralization and distributed ledger, and these features are maintained through a mining system called "proof of work". In the mining system, mining difficulty is adjusted to keep the block generation time constant. However, Bitcoin's current method to update mining difficulty does not reflect the future hash power, so the block generation time can not be kept constant and the error occurs between designed time and real time. This increases the inconsistency between block generation and real world and causes problems such as not meeting deadlines of transaction and exposing the vulnerability to coin-hopping attack. Previous studies to keep the block generation time constant still have the error. In this paper, we propose a machine-learning based method to reduce the error. By training with the previous hash power, we predict the future hash power and adjust the mining difficulty. Our experimental result shows that the error rate can be reduced by about 36% compared with the current method.
Keywords
Bitcoin; Mining difficulty; Time-series analysis; Predictive model; Machine learning;
Citations & Related Records
연도 인용수 순위
  • Reference
1 S. Nakamoto, "Bitcoin: A Peer-to-Peer Electronic Cash System," Oct. 2008.
2 Back, A, "A partial hash collision bas ed postage scheme," http://www.hashcash.org/papers/announce.txt, last accessed 2018/10/27.
3 Kiraly, Tamas, and Lilla Lomoschitz. "Profitability of the coin-hopping strategy," EGRES quick proof, no. 2018-03, Mar. 2018.
4 D. Kraft, "Difficulty control for blockchain-based consensus systems," Peer-to-Peer Networking and Applications, vol. 9, no. 2, pp.397-413, Mar. 2016.   DOI
5 BIP 34 : Consensus (soft fork), https://github.com/bitcoin/bips/blob/master/bip-0034.mediawiki, last accessed 2018/10/27.
6 Meshkov, Dmitry, Alexander Chepurnoy, and Marc Jansen. "Short paper: revisiting difficulty control for blockchain systems," Data Privacy Management, Cryptocurrencies and Blockchain Technology. Springer, Cham, vol. 10436, pp. 429-436, Sep. 2017.
7 Kalodner, Harry, et al. "BlockSci: Design and applications of a blockchain analysis platform," arXiv preprint arXiv:1709.02489, Sep. 2017.
8 Bitcoin Wiki : Difficulty, https://en.bitcoin.it/wiki/Difficulty, last accessed 2018/10/27.
9 Bitcoin Wiki : Block timestamp, https://en.bitcoin.it/wiki/Block_timestamp, last accessed 2018/10/27.
10 Akita, Ryo, et al. "Deep learning for stock prediction using numerical and textual information," Computer and Information Science (ICIS), 2016 IEEE/ACIS 15th International Conference on. IEEE, pp. 1-6, Jun. 2016.
11 McNally, Sean, Jason Roche, and Simon Caton. "Predicting the price of Bitcoin using Machine Learning," Parallel, Distributed and Networkbased Processing (PDP), 2018 26th Euromicro International Conference on. IEEE, pp.339-343, Mar. 2018.
12 Bitcoin cash : Difficulty Adjustment Algorithm Update, https://www.bitcoinabc.org/2017-11-01-DAA/, last accessed 2018/10/27.
13 https://github.com/zawy12/difficulty-algorithms/issues, last accessed 2018/10/27.
14 Madan, Isaac, Shaurya Saluja, and Aojia Zhao. "Automated bitcoin trading via machine learning algorithms," Dept. Comput. Sci., Stanford Univ., Stanford, CA, USA, Tech Rep, https://pdfs.semanticscholar.org/e065/3631b4a476abf5276a264f6bbff40b132061.pdf, last accessed 2018/10/27.
15 Jang, Huisu, and Jaewook Lee. "An empirical study on modeling and prediction of bitcoin prices with bayesian neural networks based on blockchain information," IEEE Access, vol. 6, pp. 5427-5437. Dec. 2017.   DOI
16 Rosenfeld, Meni. "Analysis of hashrate-based double spending," arXiv preprint arXiv:1402.2009, Feb. 2014.
17 Ittay Eyal and Emin Gun Sirer, "Majority is not enough: Bitcoin mining is vulnerable," Financial Cryptography and Data Security. vol. 8437, pp. 436-454, Mar. 2014.
18 Bahack, Lear. "Theoretical Bitcoin Attacks with less than Half of the Computational Power (draft)," arXiv preprint arXiv:1312.7013, Dec. 2013.