Please note: We are currently experiencing some performance issues across the site, and some pages may be slow to load. We are working on restoring normal service soon. Importing new articles from Word documents is also currently unavailable. We apologize for any inconvenience.

Hamza Baniata

and 2 more

Blockchain (BC) technology provides a secure distributed transactional database, that can enhance the security and privacy of decentralized systems and applications, e.g. distributed identity, supply chain and Internet of Things (IoT). The most known secure consensus mechanism for permissionless BCs is the Proof-of-Wok (PoW) algorithm. Many argue that the fastest approach to mine new blocks in PoW-based BC networks (although too energy consuming) is Brute-forcing the nonce. In this paper, we demonstrate how a well-trained Machine Learning (ML) model can find more accurate initial nonce values for this problem aiming to decrease the total energy consumption. We attempt to identify linear relationships between inputs and outputs of the classical mining processes, which typically use pure Brute-force techniques to solve the problem. Then, we integrate two ML models, namely SGDRegressor and LinearRegressor with PolynomialFeatures, into a classical mining method to predict the solution. For this, we use more than 780k+ real Bitcoin blocks for training and testing. We mathematically formalize our analysis and propose equations to predict and score the total enhancement, for any ML model deployment, compared to classical mining. We experimentally prove that our method can mine faster than the classical method. Furthermore, we discuss the implications on the node level and the network level, including the allowance for taking over the system by controlling a portion of only 35.5% out of the total computational power of the network. Finally, we apply our method in an integrated IoT-Fog-Blockchain system to enhance the fairness among participating miners.

Hamza Baniata

and 1 more

Hamza Baniata

and 1 more

Hamza Baniata

and 1 more

A lot of hard work and years of research are still needed for developing successful Blockchain (BC) applications. Although it is not yet standardized, BC technology was proven as to be an enhancement factor for security, decentralization, and reliability, leading to be successfully implemented in cryptocurrency industries. Fog computing (FC) is one of the recently emerged paradigms that needs to be improved to serve Internet of Things (IoT) environments of the future. As hundreds of projects, ideas, and systems were proposed, one can find a great R\&D potential for integrating BC and FC technologies. Examples of organizations contributing to the R\&D of these two technologies, and their integration, include Linux, IBM, Google, Microsoft, and others. To validate an integrated Fog-Blockchain protocol or method implementation, before the deployment phase, a suitable and accurate simulation environment is needed. Such validation should save a great deal of costs and efforts on researchers and companies adopting this integration. Current available simulation environments facilitate Fog simulation, or BC simulation, but not both. In this paper, we introduce a Fog-Blockchain simulator, namely FoBSim, with the main goal is to ease the experimentation and validation of integrated Fog-Blockchain approaches. According to our proposed workflow of simulation, we implement different Consensus Algorithms (CA), different deployment options of the BC in the FC architecture, and different functionalities of the BC in the simulation. Furthermore, technical details and algorithms on the simulated integration are provided. We validate FoBSim by describing the technologies used within FoBSim, highlighting FoBSim novelty compared to the state-of-the-art, discussing the event validity in FoBSim, and providing a clear walk-through validation. Finally, we simulate two case studies, then present and analyze the obtained results.