| With the rapid development of power equipment in China,the circulation and operation of transmission and distribution equipment are gradually improving.However,there is a trust issue regarding the information asymmetry of transmission and distribution equipment information during the flow process,and traditional centralized information tracing solutions are not suitable for the supervision of transmission and distribution equipment due to the lack of traceability of production data,single point of failure,and low credibility.This thesis proposes the use of smart contracts to supervise the production and manufacturing process of the transmission and distribution industry and optimizes the VPBFT consensus algorithm for data consistency and security of the consortium blockchain.The specific research contents are as follows:(1)Improvement of the credit evaluation mechanism: The traditional Practical Byzantine Fault Tolerance(PBFT)consensus algorithm cannot accurately reflect the actual participation ability of nodes,and the risk of manipulating the leader selection still exists.This thesis introduces the weighted Page Rank algorithm and credit evaluation mechanism into the PBFT algorithm,assigns Page Rank values to different nodes based on their historical activity,and establishes a reward and punishment mechanism.Malicious behavior of nodes will affect their weight values,ensuring that the weight values of normal nodes in the consensus network remain above 80%,while reducing the election objects of the PBFT algorithm’s main node,thereby reducing the probability of Byzantine nodes becoming main nodes and greatly reducing their impact on consensus efficiency.(2)Improvement of polling for leader election when the view is changed: This thesis introduces Verifable Random Functions(VRF)based on the calculation of node PR values and weight values,and randomly elects the main node from the top-ranked nodes in terms of weight,solving the security issue of fixed polling of the main node in PBFT that may be predicted in advance.At the same time,it isolates malicious nodes with lower weight values,reducing the frequency of Byzantine nodes causing view changes.In the presence of Byzantine nodes,the entire consensus process’ s average throughput is increased from42 TPS to 195 TPS,and the consensus latency is reduced by 58%.(3)This thesis discusses the current situation and problems of regulatory information technology and proposes a new solution,elec Chain,based on the actual needs of the transmission and distribution industry.This solution is based on smart contract technology,which can realize real-time monitoring and verification of data by writing code to specify regulatory rules and standards,aiming to supervise the production and manufacturing process of transmission and distribution equipment and ensure the integrity and security of regulatory traceability data.Through simulation experiments,the VPBFT consensus algorithm can better resist malicious nodes.Compared with the PBFT algorithm,this algorithm performs better in terms of security,throughput,and consensus latency.This thesis implements the platform on the Hyperledger Fabric open-source framework,and the experimental results show that the platform ensures the integrity and traceability of data during the flow process and has good usability. |