Abstract
This dissertation investigates the strategic integration of Proof-of-Work(PoW)-based blockchains and ML models to improve transaction inclusion, and consequently molding transaction fees, for clients using cryptocurrencies such as Bitcoin. The research begins with an in-depth exploration of the Bitcoin fee market, focusing on the interdependence between users and miners, and the emergence of a fee market in PoW-based blockchains. Our observations are used to formalize a transaction inclusion pattern. To support our research, we developed the Blockchain Analytics System (BAS) to acquire, store, and pre-process a local dataset of the Bitcoin blockchain. BAS employs various methods for data acquisition, including web scraping, web browser APIs, and direct access to the blockchain using Bitcoin Core software. We utilize time-series data analysis as a tool for predicting future trends, and transactions are sampled on a monthly basis with a fixed interval, incorporating a notion of relative time represented by block-creation epochs.
We create a comprehensive model for transaction inclusion in a PoW-based blockchain system, with a focus on factors of revenue and fairness. Revenue serves as an incentive for miners to participate in the network and validate transactions, while fairness ensures equal opportunity for all users to have their transactions included upon paying an adequate fee value. The ML architecture used for prediction consists of three critical stages: the ingestion engine, the pre-processing stage, and the ML model. The ingestion engine processes and transforms raw data obtained from the blockchain, while the pre-processing phase transforms the data further into a suitable form for analysis, including feature extraction and additional data processing to generate a complete dataset. Our ML model showcases its effectiveness in predicting transaction inclusion, with an accuracy of more than 90%. Such a model enables users to save at least 10% on transaction fees while maintaining a likelihood of inclusion above 80%. Furthermore, adopting such model based on fairness and revenue, demonstrates that miners' average loss is never higher than 1.3%.
Our research proves the efficacy of a formal transaction inclusion model and ML prototype in predicting transaction inclusion. The insights gained from our study shed light on the underlying mechanisms governing miners' decisions, improving the overall user experience, and enhancing the trust and reliability of cryptocurrencies. Consequently, this enables Bitcoin users to better select suitable fees and predict transaction inclusion with notable precision, contributing to the continued growth and adoption of cryptocurrencies.
Has part(s)
Paper I: Tedeschi, E., Johansen, H.D. & Johansen, D. (2018). Trading Network Performance for Cash in the Bitcoin Blockchain. CLOSER 2018, the 8th International Conference on Cloud Computing and Services Science, 643-650. Also available at https://dx.doi.org/10.5220/0006805906430650.
Paper II: Tedeschi, E., Nordmo, T.S., Johansen, D. & Johansen, H.D. (2019). Predicting Transaction Latency with Deep Learning in Proof-of-Work Blockchains. 2019 IEEE International Conference on Big Data (Big Data), 4223-4231. Published version not available in Munin due to publisher’s restrictions. Published version available at https://doi.org/10.1109/BigData47090.2019.9006228. Accepted manuscript version available in Munin at https://hdl.handle.net/10037/17954.
Paper III: Tedeschi, E., Nordmo, T.A.S., Johansen, D. & Johansen, H.D. (2022). On Optimizing Transaction Fees in Bitcoin using AI: Investigation on Miners Inclusion Pattern. ACM Transactions on Internet Technology, 22(3), 77. Also available in Munin at https://hdl.handle.net/10037/25022.
Paper IV: Amores-Sesar, I., Cachin, C. & Tedeschi, E. When is Spring coming? A Security Analysis of Avalanche Consensus. (Manuscript). Also available on ArXiv at https://doi.org/10.48550/arXiv.2210.03423.