With the promotion of power market reform and distributed generation trading,more and more trading entities are involved in distributed power transactions.There are some problems in the current trading market,such as insufficient timeliness of information,lack of openness and transparency of related trading information,low enthusiasm of power users to participate in trading,and complex user information tracing and exchange process.With the"14th Five-Year Plan" proposed that blockchain as an emerging technology should accelerate its application field,blockchain technology should also be fully utilized in distributed power trading.Blockchain technology has technical characteristics such as decentralization,openness and transparency,distributed storage and traceability of information,which match the shortcomings of distributed power trading.On this basis,this paper conducts research on the application of blockchain technology for distributed power trading.Firstly,Firstly,the applicability of blockchain technology in the field of distributed power trading is analyzed,designs the blockchain technology framework based on the distributed power trading scenario,and comprehensively evaluates the performance of currently commonly used consensus algorithms to select the corresponding Byzantine fault-tolerant algorithm,and designs the distributed power trading scenario scheme based on the corresponding scenario and the combination of intelligent contract technology and cross-chain technology.Secondly,on the basis of LibraBFT algorithm with high performance at present,this paper designs C-LBFT consensus algorithm based on incentive mechanism,designs the master node selection mechanism of credit value and incentive module,improves the rotation consensus process,and the pacemaker improves the enthusiasm of participating users.The algorithm performance test shows that this algorithm can fully improve the efficiency of transaction consensus.Reduce latency and improve user participation.Finally,this paper designs a smart contract for distributed power trading.The smart contract consists of auction contract,depository contract and traceability contract,which is integrated with blockchain technology.After the auction transaction is finished,multiple users can digitally sign and save on the chain,and then the traceability contract is deployed to realize real-time query under the premise of data security.The whole transaction process is intelligent,so that the power users can obtain more satisfactory power transaction. |