Nik Defense: An Artificial Intelligence Based Defense Mechanism against Selfish Mining in Bitcoin

Ali Nikhalat-Jahromi, Ali Mohammad Saghiri, Mohammad Reza Meybodi
1/26/2023
cs.CRcs.AIcs.DC

No official code found. Best implementation: AliNikhalat/SelfishMining (8 stars, last commit 2023-03-01).

Abstract

The Bitcoin cryptocurrency has received much attention recently. In the network of Bitcoin, transactions are recorded in a ledger. In this network, the process of recording transactions depends on some nodes called miners that execute a protocol known as mining protocol. One of the significant aspects of mining protocol is incentive compatibility. However, literature has shown that Bitcoin mining's protocol is not incentive-compatible. Some nodes with high computational power can obtain more revenue than their fair share by adopting a type of attack called the selfish mining attack. In this paper, we propose an artificial intelligence-based defense against selfish mining attacks by applying the theory of learning automata. The proposed defense mechanism ignores private blocks by assigning weight based on block discovery time and changes current Bitcoin's fork resolving policy by evaluating branches' height difference in a self-adaptive manner utilizing learning automata. To the best of our knowledge, the proposed protocol is the literature's first learning-based defense mechanism. Simulation results have shown the superiority of the proposed mechanism against tie-breaking mechanism, which is a well-known defense. The simulation results have shown that the suggested defense mechanism increases the profit threshold up to 40\% and decreases the revenue of selfish attackers.

View on arXivView PDF

Code Implementations(1)

This Repository contains implementation of different types of Selfish Mining and new Selfish Mining called Nik Selfish Mining.

86PythonNov 14, 20203 years ago
attackblockchaindefenseproof-of-workselfishmining

Similar Papers

Cite this paper

@article{nikhalatjahromi2023defense,
  title  = {Nik Defense: An Artificial Intelligence Based Defense Mechanism against Selfish Mining in Bitcoin},
  author = {Ali Nikhalat-Jahromi and Ali Mohammad Saghiri and Mohammad Reza Meybodi},
  year   = {2023},
  eprint = {2301.11463},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2301.11463v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2301.11463.svg)](https://codeofpaper.com/paper/2301.11463)

Discussion