Method for generating smart contract in electricity transaction

By building a blockchain network in a virtual power plant and generating smart contracts, the problems of unreliable information transmission and trust between distributed energy entities in virtual power plants are solved, the reliability and trust of information transmission are realized, and the cost of information interaction is reduced. Improve the synergistic efficiency and profit distribution of virtual power plants.

CN118944033APending Publication Date: 2024-11-12XUCHANG XJ SOFTWARE TECHNOLOGIES LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202310522800.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-05-10
Publication Date
2024-11-12

AI Technical Summary

Technical Problem

Due to the participation of multiple subjects in virtual power plants, there are problems of unreliable information transmission and trust between distributed energy entities, resulting in inefficient coordination and information exchange and inability to stabilize external services.

Method used

By building a virtual power plant blockchain network, virtual power plant operators and distributed energy entities access the blockchain network, using blockchain technology to generate smart contracts, virtual power plant operators predict load and power generation, and distributed energy entities collaborate with each other Plan and adjust energy use and output to ensure the reliability and trust of information transmission.

Benefits of technology

It effectively solves the trust problem between distributed energy entities, reduces the cost of information interaction, improves the security and reliability of transactions, optimizes the synergistic efficiency and profit distribution of virtual power plants, and promotes the participation of more energy entities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118944033A_ABST
    Figure CN118944033A_ABST
Patent Text Reader

Abstract

The invention relates to a method for generating a smart contract in power transaction, and belongs to the technical field of data security. According to the method, all distributed energy main bodies are accessed to a block chain network constructed by a virtual power plant operator, the virtual power plant operator predicts the power generation amount and load in the next time period according to historical load data and historical power generation amount data, and a prediction result is broadcasted to the virtual power plant block chain network; each distributed energy main body determines a transaction plan and publishes the transaction plan in the block chain network; and after the virtual power plant operator confirms the transaction plan published in the block chain network, the smart contract takes effect. According to the method, the intelligent contract is generated by adopting the block chain technology, the current problems of reliable information transmission and cooperation among distributed energy main bodies in the current virtual power plant are solved, the trust problem among the distributed energy main bodies can be effectively solved, and meanwhile, the cost of information interaction can be reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a method for generating a smart contract in electric power trading, and belongs to the technical field of data security. Background Art

[0002] A virtual power plant needs to aggregate multiple distributed energy entities. In the current environment, various heterogeneous distributed energy sources are rapidly expanding, and the proportion of new energy is also increasing and will continue to increase. At the same time, there is a need to ensure the balance of the power grid and reduce the operating costs of the power grid as much as possible. The current mainstream system is still a centralized dispatching system, such as NARI's D5000 system, and it is mainly dominated by power supply companies. This model is inconsistent with the goal of power system reform. The marketization of the power system requires more energy entities to participate in the power system. The biggest problem of the centralized system is mutual distrust and inefficiency. At present, some studies on the operation and dispatch of virtual power plants based on blockchain have emerged, precisely because blockchain technology has the characteristics of decentralization, combined with distributed storage and encryption and decryption technology.

[0003] In the design and construction of virtual power plants, due to the participation of multiple entities, the coordinated operation of distributed energy sources needs to be considered. The operators of virtual power plants need to assume social and legal responsibilities and enjoy corresponding benefits; at the same time, they also need to coordinate the output of various distributed energy sources. If the information exchange in the middle cannot solve the problem of mutual trust, it will be impossible to coordinate the output and provide stable external services. Summary of the invention

[0004] The purpose of the present invention is to provide a method for generating smart contracts in power transactions to solve the current problems of unreliable information transmission in virtual power plants and lack of trust between distributed energy entities.

[0005] In order to solve the above technical problems, the present invention provides a method for generating a smart contract in power trading, and the method comprises the following steps:

[0006] 1) Build a virtual power plant blockchain network, in which virtual power plant operators and distributed energy entities are connected;

[0007] 2) The virtual power plant operator predicts the power generation and load for the next period based on historical load data and historical power generation data, and broadcasts the prediction results to the virtual power plant blockchain network;

[0008] 3) Each distributed energy entity makes a collaborative plan based on the data broadcast by the virtual power plant, determines the transaction plan and publishes it in the blockchain network;

[0009] 4) After the virtual power plant operator confirms the transaction plan published on the blockchain network, the smart contract takes effect, and each distributed energy entity uploads its real-time data and adjusts its energy consumption and output according to the transaction plan.

[0010] The present invention connects each distributed energy entity to the blockchain network built by the virtual power plant operator, and uses blockchain technology to generate smart contracts, which solves the current problems of reliable information transmission and coordination between distributed energy entities in virtual power plants. It can effectively solve the trust problem between distributed energy entities and reduce the cost of information interaction.

[0011] Furthermore, when a counting period ends, the virtual power plant operator summarizes the distributed energy entities of the virtual power plant to correct the system's strategic parameters.

[0012] The present invention can summarize the transaction data of each distributed energy entity at the end of the counting period and correct the system according to the summary result.

[0013] Furthermore, before accessing the blockchain network, each of the distributed energy entities must register their node information with the virtual power plant operator, who will then authenticate them based on the registration information and issue a certification mark to each of the distributed energy entities that have passed the authentication.

[0014] Furthermore, each distributed energy entity needs to display its authentication mark to the blockchain network when accessing the blockchain network. Only after the authentication is passed can the distributed energy entity access the blockchain network.

[0015] The present invention confirms the identity of each distributed energy entity before accessing the blockchain network to ensure that only distributed energy entities that have passed identity authentication can access the blockchain network, thereby further improving the security and reliability of transactions.

[0016] Furthermore, in step 3), when conducting collaborative planning, it is necessary to consider the hash value of the previous block, the block producer, the packaging timestamp and the power generation plan information.

[0017] Furthermore, the transaction plan includes information on the identity of the power generation unit, the amount of power generated, the power generation location, the power consumption location and the transaction price of the power. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 It is a schematic diagram of the principle of the method for generating a smart contract in power trading of the present invention;

[0019] Figure 2 It is a schematic diagram of the structure of the block body used in the present invention;

[0020] Figure 3 It is a flow chart of how nodes obtain blockchain network data. DETAILED DESCRIPTION

[0021] The specific implementation of the present invention will be further described below in conjunction with the accompanying drawings.

[0022] The present invention proposes a method for generating smart contracts in electricity transactions, which is implemented based on a blockchain network. Various types of distributed energy entities and virtual power plant operators are all members of the blockchain network. The virtual power plant operator predicts the power generation and load of the next period based on load data and historical data, and broadcasts the prediction results to the virtual power plant blockchain network; each distributed energy entity makes a collaborative plan based on the data broadcast by the received virtual power plant, determines the transaction plan and publishes it on the blockchain network; after the virtual power plant operator confirms the transaction plan published on the blockchain network, the smart contract takes effect, and each distributed energy entity uploads its real-time data and adjusts its energy consumption and output according to the transaction plan. Its implementation process is as follows: Figure 1 The above is described in detail below.

[0023] 1. Build a virtual power plant blockchain network, in which virtual power plant operators and distributed energy entities are connected.

[0024] The distributed energy entities DER can be of various types, such as traditional power plants, photovoltaic power plants, wind farms, energy storage power plants and loads. Among them, power plants that mainly provide energy supply are mainly used to provide electric energy for virtual power plants, and provide income for auxiliary services participated by other virtual power plants; energy storage power plants can also pay fees to other power plants according to the contract situation, but when the energy storage electricity sales are greater than the electricity purchase cost, the virtual power plant operator can pay the corresponding income to the load to generate incentives and promote the participation of various entities in the operation of smart contracts based on the blockchain network.

[0025] The blockchain network in the present invention is a consortium chain + private chain, with the consortium chain as the basic blockchain model, in which distributed energy entities (including energy suppliers and energy users) need to register node information with the virtual power plant operation center. The operation center recognizes the registered data information and issues authentication identification to the registered node, such as CA certificate, fingerprint information, etc.

[0026] When distributed energy entities access as nodes and obtain data, they need to provide these verification information, such as Figure 3 As shown, when a node wants to access the blockchain network, its legality is judged based on whether it has an authentication mark. If it is legal, the node can access the blockchain network. Nodes accessing the blockchain network need to perform permission verification when calling data in the network. Only after successful verification can they obtain data from the blockchain network.

[0027] 2. The virtual power plant operator predicts power generation and load and uploads the prediction results to the constructed blockchain network.

[0028] In the present invention, the virtual power plant operator predicts the power generation and load of the next time period based on the historical load data and the historical power generation data. The main reference value of the prediction is the historical data, such as the historical power generation and the historical load. The specific prediction value needs to be based on the gray prediction algorithm, such as constructing the gray model GM (1,1), and designing the model for each time period with reference to the historical data. The main consideration is to design it into a first-order equation and predict with 1 parameter. The historical load data and the historical power generation are obtained by interacting with external devices. After the prediction is completed, the virtual power plant operator broadcasts the prediction results to the blockchain network for use by various distributed energy entities in the network.

[0029] 3. Each distributed energy entity determines its trading plan.

[0030] Each distributed energy subject in the blockchain network receives the forecast of power generation and load from the broadcast data according to the authentication mark, and makes a collaborative plan based on the data broadcast by the virtual power plant, determines the trading plan and publishes it in the blockchain network. The process of making a trading plan is that the quotations, demand and some necessary credit information of each party of the energy trading subject are handed over to the virtual power plant for unified management, and then the transaction is matched, and the matching information is continuously sent to each party through the chain broadcast, so that each party can modify its own quotation and facilitate the collaborative plan. Once the transaction is successfully matched, the transaction information is broadcast on the chain, and all nodes verify the legitimacy of the data and confirm the transaction plan. When each distributed energy subject is connected to the blockchain network, the authority is equal and they can all be responsible for packaging and producing blocks. Distributed energy subjects must also participate in energy bidding in the blockchain network. The condition for successful bidding is to first obtain the approval of the virtual power plant operator. After the approval and confirmation, it is considered that the smart contract is reached. After the smart contract is reached, both parties broadcast the transaction plan information on the blockchain network, and each energy subject reaches an agreement through the consensus algorithm. The consensus process requires nodes to form a group of consensus nodes. Assuming the number of nodes is n, the nodes that make up the consensus committee need to change every cycle. A consensus process requires 1 leader node and n-1 backup nodes. When the client sends a request to any node, the first activated consensus node is the leader node. The leader node broadcasts the execution of the transaction to other backup nodes. After the backup node receives the data, it verifies, accepts and propagates the data. If a node receives more than n / 2 requests, it is considered to be "agreed" and reported to the leader node. When the leader node receives more than n / 2 "agreed", it proves to be truly credible and packages the data into a new block for chaining.

[0031] In a counting cycle, the operator settles the accounts of each energy entity. Each energy entity only needs to verify the legitimacy of the block and store the block in its own account book. In principle, the block packing machine can also be any energy entity. The legitimacy verification includes verifying whether the data structure of the block is valid, verifying whether the timestamp is legal, and verifying whether the block size is within the length limit. In the transaction block, the root of the merkle tree must also be verified to see if it is equal to the hashMerkleRoot value in the block header.

[0032] 4. Generate smart contract.

[0033] After the virtual power plant operator confirms the trading plan published on the blockchain network, the smart contract will take effect, and each distributed energy entity will upload its real-time data and adjust its energy consumption and output according to the trading plan. The trading plan involves the matching of price and credit. Each participating entity can choose whether to adjust the price or the output and energy consumption according to its actual situation. Among them, the signing of the smart contract requires all distributed energy entities to reach a consensus and broadcast it to the blockchain network. The collaborative plan needs to include the hash value of the previous block, the block producer, the packaging timestamp, and the power generation plan information. Each power generation plan information needs to include the identity information of the power generation unit, the power generation, the power generation location, the power consumption location, and the transaction price. The composition of the block here is as follows: Figure 2 The block structure is shown.

[0034] When a billing cycle ends, the virtual power plant operator will summarize the distributed energy entities of the virtual power plant, and the results will be used to correct the system's strategic parameters and improve the efficiency of coordination. The credit status of each energy entity will be corrected. When trading, the corresponding credit value will be given based on the performance of each energy entity. If the performance is not in accordance with the content of the contract, the corresponding credit value will be deducted. Energy parties with low credit values ​​will lose their competitive advantage in transactions.

[0035] The present invention uses blockchain technology to generate smart contracts, which solves the current problems of reliable information transmission and coordination between distributed energy entities in virtual power plants. It can effectively solve the trust problem between distributed energy entities and reduce the cost of information interaction. Introducing a consensus algorithm based on the alliance chain in the smart contract can reduce the energy consumption of the overall coordination mechanism of the virtual power plant while ensuring the stability of the system. On the basis of ensuring the efficiency of system operation, it optimizes intelligent scheduling, provides a credible basis for better profit distribution, and improves the participation and enthusiasm of individual energy entities.

Claims

1. A method for generating a smart contract in power trading, characterized in that: The generation method comprises the following steps: 1) Build a virtual power plant blockchain network, in which virtual power plant operators and distributed energy entities are connected; 2) The virtual power plant operator predicts the power generation and load for the next period based on historical load data and historical power generation data, and broadcasts the prediction results to the virtual power plant blockchain network; 3) Each distributed energy entity makes a collaborative plan based on the data broadcast by the virtual power plant, determines the transaction plan and publishes it in the blockchain network; 4) After the virtual power plant operator confirms the transaction plan published on the blockchain network, the smart contract takes effect, and each distributed energy entity uploads its real-time data and adjusts its energy consumption and output according to the transaction plan.

2. The method for generating a smart contract in power trading according to claim 1, characterized in that: When a counting period ends, the virtual power plant operator summarizes the distributed energy entities of the virtual power plant to correct the system's strategic parameters.

3. The method for generating a smart contract in power trading according to claim 1, characterized in that: Before accessing the blockchain network, each of the distributed energy entities mentioned above must register their node information with the virtual power plant operator, who will then authenticate them based on the registration information and issue a certification mark to each distributed energy entity that has passed the authentication.

4. The method for generating a smart contract in power trading according to claim 3, characterized in that: When accessing the blockchain network, each distributed energy entity needs to show its authentication mark to the blockchain network. Only after the authentication is passed can the distributed energy entity access the blockchain network.

5. The method for generating a smart contract in power trading according to claim 1 or 2, characterized in that: In step 3), when making collaborative plans, the hash value of the previous block, the block producer, the packaging timestamp, and the power generation plan information need to be considered.

6. The method for generating a smart contract in power trading according to claim 1 or 2, characterized in that: The transaction plan includes information on the identity of the power generation unit, the amount of power generated, the location of the power generation, the location of the power consumption, and the transaction price of the power.

Citation Information

Cited By

  • Virtual power plant false data detection method and system based on block chain, and medium

    CN119151723A

  • Cross-regional electric energy transaction automatic settlement system based on smart contract

    CN122601241A