A secure and highly efficient blockchain PBFT consensus algorithm for microgrid power trading

Zhongyuan Yao,Yonghao Fang,Heng Pan,Xiangyang Wang,Xueming Si
DOI: https://doi.org/10.1038/s41598-024-58505-w
IF: 4.6
2024-04-11
Scientific Reports
Abstract:There are a series of challenges in microgrid transactions, and blockchain technology holds the promise of addressing these challenges. However, with the increasing number of users in microgrid transactions, existing blockchain systems may struggle to meet the growing demands for transactions. Therefore, this paper proposes an efficient and secure blockchain consensus algorithm designed to meet the demands of large-scale microgrid electricity transactions. The algorithm begins by utilizing a Spectral clustering algorithm to partition the blockchain network into different lower-level consensus set based on the transaction characteristics of nodes. Subsequently, a dual-layer consensus process is employed to enhance the efficiency of consensus. Additionally, we have designed a secure consensus set leader election strategy to promptly identify leaders with excellent performance. Finally, we have introduced an authentication method that combines zero-knowledge proofs and key sharing to further mitigate the risk of malicious nodes participating in the consensus. Theoretical analysis indicates that our proposed consensus algorithm, incorporating multiple layers of security measures, effectively withstands blockchain attacks such as denial of service. Simulation experiment results demonstrate that our algorithm outperforms similar blockchain algorithms significantly in terms of communication overhead, consensus latency, and throughput.
multidisciplinary sciences
What problem does this paper attempt to address?
The problem that this paper attempts to solve is that in micro - grid power trading, the existing blockchain systems may not be able to meet the growing trading demands. As the number of users participating in micro - grid trading increases, the existing blockchain consensus algorithms face problems of inefficiency and insufficient security when dealing with high - frequency small - amount transactions. These problems include: 1. **Limited transaction processing capacity**: Inefficient consensus algorithms limit the number of transactions that can be processed per second, which may lead to transaction congestion, especially in the case of high - frequency trading. 2. **Long confirmation time**: Inefficient consensus algorithms extend the transaction confirmation time, which is a major problem in the micro - grid scenario where real - time trading is required. 3. **High energy consumption**: Inefficient consensus algorithms may not be in line with the sustainable development goals of micro - grids, resulting in unnecessary energy consumption. 4. **Poor system security**: Inefficient consensus algorithms increase the risk of the system being attacked, such as double - spending attacks or denial - of - service attacks, because attackers can easily push the network to its limits, reducing performance or causing system failures. To solve the above problems, the paper proposes an efficient and secure blockchain consensus algorithm - Sharding - based Practical Byzantine Fault Tolerance (S - PBFT). S - PBFT aims to improve the existing consensus algorithms in the following ways: - **Sharding technology**: Use the spectral clustering algorithm to divide the blockchain network into multiple lower - level consensus sets, and each consensus set is responsible for processing specific types of transactions. - **Two - layer consensus process**: First, reach a local consensus in the lower - level consensus sets, and then perform a global consensus on these local consensus results in the high - level consensus sets. - **Secure leader election strategy**: Design a leader election strategy based on the historical transaction behavior of nodes to quickly identify excellent leaders. - **Zero - knowledge proof and key - sharing authentication method**: Introduce an authentication method that combines zero - knowledge proof and Diffie - Hellman key exchange algorithm to further reduce the risk of malicious nodes participating in the consensus. Through these improvements, the S - PBFT algorithm is significantly superior to the existing blockchain algorithms in terms of communication overhead, consensus delay, and throughput, and can better meet the needs of large - scale micro - grid power trading.