| The traditional unified dispatching mode of electric energy has problems such as opaque information,high construction cost,low efficiency,and difficult to trust data.However,the distributed power transaction is different from the traditional unified dispatching mode of the power grid.The main bodies of production capacity and energy consumption are distributed at the end of the grid,except for point-to-point In addition to its characteristics,there is a development trend of increasing the number of participants,and the size of a single transaction also tends to become smaller.Therefore,it combines blockchain technology,which has many advantages such as decentralization,non-tampering,and traceability.It is of great significance in promoting the nearby consumption of renewable energy,making investment and operating decisions by both parties to the transaction,and promoting the maximum utilization of resources.The characteristics of blockchain technology have perfectly promoted the transformation of power transactions from centralized to distributed.At present,most distributed electricity transactions based on blockchain are based on peerto-peer matching transactions,mainly through blockchain-based trading centers and platforms,or by writing rules into smart contracts in advance,according to the transaction power,price,and maximization of both parties The two parties’ profit function,power flow constraint function and other conditions are calculated to match the two parties in the transaction.However,as more and more power generators enter the market,the identity of a single participant in the system between producers and consumers is becoming blurred,and the one-to-one model of power users and producers is difficult to adapt to the power distribution under the new situation.The demand for multi-party power supply cannot better guarantee the participation of power producers,and the supply stability of a single power producer is difficult to guarantee.Therefore,it is urgent to explore the mode of multi-party power supply.The main work of the thesis is as follows:The thesis designs a set of nested election consensus algorithms based on random representatives.The algorithm ensures that the identity information of multiple parties participating in the transaction is authentic and verifiable through the identity registration smart contract;the qualified committee members are screened out through constraints;the verifiable random function is used to obtain consistent results when multiple parties are related,and the uniqueness of the consensus results is guaranteed;the committee’s verification mechanism on the proposal eliminates the hidden danger of the proposer’s node doing evil.The thesis completes the design of a blockchain-based multi-party power supply distributed transaction system,and clarifies the function of each module of the system and the possible risks.The system uses smart contracts and on-chain storage to record and distribute data throughout the entire process of identity registration,consensus process,and fund settlement,ensuring that the system can be verified in every critical period;it is determined by a nested election consensus algorithm based on random representatives Multiple power suppliers have been established,providing new ideas for the new distributed power trading model;through the early freezing of funds and designing an anti-repudiation mechanism for all participants,designing a punishment mechanism for malicious nodes that maliciously invade the system to protect the system The stability and security.In the thesis,the designed consensus algorithm and system are simulated through experiments,and their safety is analyzed,and their performance is tested at the same time.The results show that the algorithm in the thesis can guarantee the mutual trust under the multi-party participation and fairness under the interest-related relationship,so that multiple parties can reach a consistent result.The system in the thesis solves the contradiction between multi-party participation and single transaction party in the new environment of distributed power transactions.Has a higher efficiency,which can effectively stimulate the vitality of the distributed electricity trading market,promote more distributed energy to complete the consumption,and provide support for current and future distributed electricity trading. |