Green electricity source tracing method and system based on block chain
By adopting a blockchain-based traceability method in green electricity transactions, the problems of green electricity traceability efficiency and security are solved, and efficient and secure green electricity transaction data management and user clear understanding of the contribution of users to the environment are achieved.
Patent Information
- Application Number
- CN202410852527.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-28
- Publication Date
- 2025-03-07
AI Technical Summary
The existing technology is difficult to effectively solve the efficiency and data security issues of green power traceability, especially when green power transaction data involves user privacy.
The green power traceability method based on blockchain is adopted to establish a blockchain network by deploying distributed nodes, obtaining key transaction data, generating smart contract blocks, and establishing traceability links to realize distributed storage and efficient traceability of green power transactions.
It improves the efficiency and security of green power traceability, realizes high-security storage and query of green power transaction data, supports two-way traceability, and meets users' effective assessment of green power consumption and clear understanding of environmental contribution.
Smart Images

Figure CN119579169A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of green electricity trading, and relates to a green electricity tracing method and system, and in particular to a green electricity tracing method and system based on blockchain. Background Art
[0002] With the continuous expansion of the scale of national green electricity trading, organizing and carrying out green electricity trading and improving green electricity trading related technologies have become increasingly important research directions.
[0003] Green electricity trading is still in the exploratory stage, especially in terms of green electricity traceability. Due to the lack of effective green electricity traceability methods, the power sector is unable to effectively evaluate users' green electricity consumption, and users and enterprises are unable to have a clear understanding of the contribution of their own electricity consumption to the environment.
[0004] At present, the power sector often uses the method of calculating and counting power flows to physically trace green power transactions. However, this method is difficult to trace, and requires real-time node flow calculations to clarify the transfer of green power between nodes. When the number of nodes increases, there is a problem of dimensional explosion. Current technical means cannot solve the efficiency problem of physical traceability of green power. On the other hand, green power transaction data involves user privacy. How to ensure the high security of transaction data during the traceability process is the second largest problem facing green power traceability.
[0005] Therefore, for this scenario, it is necessary to propose a blockchain-based electricity tracing method and system that can solve the above technical problems. Summary of the invention
[0006] The purpose of the present invention is to overcome the shortcomings of the prior art and propose a green electricity traceability method and system based on blockchain, which can achieve more efficient green electricity traceability in power trading.
[0007] The present invention solves the practical problem by adopting the following technical solutions:
[0008] A green electricity tracing method based on blockchain, comprising the following steps:
[0009] Step 1: Build a green electricity traceability system based on blockchain;
[0010] Step 2: Based on the blockchain-based green electricity traceability system constructed in Step 1, trace the transaction volume, transaction price, electricity source, and green electricity type.
[0011] Moreover, the specific steps of step 1 include:
[0012] Step S100 deploys distributed nodes and establishes a blockchain network;
[0013] Step S110: acquiring key transaction data;
[0014] Step S120 generates a blockchain-based contract block;
[0015] Step S130: Establishing a traceability link based on blockchain;
[0016] Step S140: The contract is packaged and uploaded to the chain, completing the construction of the green electricity traceability system based on blockchain.
[0017] Moreover, the specific steps of step S130 include:
[0018] Step S131: The computing nodes under each entity collect the key data of all power purchase contracts within the time period, including: contract number, trading period, power selling entity name, signature, location, power purchasing entity ID, signature, location, green power type, and transaction volume. The power purchase volume curve within the time period is generated based on the contract information.
[0019] Step S132 collects key data of all power sales contracts within the time period, and based on the power sales contract information of the subordinates, decomposes the power purchase curve to obtain the power purchase curve of each subordinate power purchasing entity.
[0020] In step S133, the power sales contract in the same time period is matched with the power purchase contract as the power source. For each green power sales contract, it is determined whether there is enough power purchase contract electricity to meet its power sales demand. If so, step S134 is executed to establish a traceability link from the power purchase contract to the power sales contract. If there is not enough power purchase contract electricity to meet its power sales demand, the abnormal green power transaction information is fed back to the power trading center.
[0021] Step S134 establishes a traceability link from the power purchase contract to the power sales contract. The linked corresponding transaction block Hash and the transaction volume are packaged and written into the traceability part of the contract between the two parties, completing the mutual reference between the upper and lower transaction blocks, and forming a traceability link for the power purchase-sales contract.
[0022] Moreover, the specific steps of step 2 include:
[0023] In step S200, the user submits a traceability request to the green electricity traceability service system. The service system verifies the legitimacy of the request by verifying the user's public and private keys and digital signature. After the verification is completed, the query node conducts green electricity traceability.
[0024] Step S210: The query node broadcasts to the blockchain network to verify the authenticity and integrity of its own data.
[0025] Step S220 stores the query information starting from one or more transactions that the user wants to query, locates the target block, reads the transaction information, reads the traceability link information, and then determines the block Hash linked to it.
[0026] Step S230 repeats the step of S220, traversing all linked blocks until the power generation transaction is traced back to the power generation side and a complete traceability chain is obtained.
[0027] Step S240 collects and organizes the information of each transaction contract in the traceability chain, including the contract number, green electricity type, green electricity traceability path, transaction volume, transaction time, etc., and hashes the above content to generate a unique green electricity traceability number as the unique identifier of the traceability information. Feedback the traceability results to the user.
[0028] A green electricity traceability system based on blockchain, which is divided into five layers. The top layer is the functional layer, which provides the functions of account registration, transaction query, and transaction verification for green electricity transactions based on blockchain.
[0029] The second layer is the transaction layer, where users with green power transactions conduct annual and monthly green power transactions with power generation companies;
[0030] The third layer is the contract layer. After the transaction is completed, the transaction information is uploaded to the contract layer for transaction validity verification. After the verification is passed, the green electricity contract is automatically generated, and the contract information is distributed and redundantly stored in the node layer and block layer below.
[0031] The fourth and fifth layers are the node layer and the contract layer, respectively, which realize the deployment of blockchain network nodes and the distributed trusted storage of transaction data.
[0032] Advantages and beneficial effects of the present invention:
[0033] 1. Compared with the traditional traceability method, the present invention integrates blockchain technology into the traditional electricity trading process, deploys a blockchain network, and stores transaction information in a distributed manner. The security of transaction information is greatly improved through the blockchain's non-tamperability and traceability.
[0034] 2. The present invention uses smart contracts to write traceability-related information into each transaction, greatly improving the processing efficiency of high-frequency and small-volume electricity transactions.
[0035] 3. The traceability method of the present invention is more flexible. By encapsulating the upper and lower hash addresses inside the blockchain, the upstream and downstream links of green electricity transactions are realized, so that the method is no longer limited to one-way traceability from bottom to top. The trading center and EV operators can perform two-way traceability according to their own traceability needs. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] Figure 1 This is an overall architecture diagram of a green electricity traceability system based on blockchain of the present invention;
[0037] Figure 2 This is an operation flow chart of a green electricity traceability system based on blockchain of the present invention;
[0038] Figure 3 It is a flow chart of a green electricity source tracing query method of a green electricity source tracing system based on blockchain of the present invention;
[0039] Figure 4 A flowchart of green electricity traceability subject transaction matching of a green electricity traceability system based on blockchain of the present invention;
[0040] Figure 5 This is a green electricity source tracing subject transaction matching example diagram of the present invention;
[0041] Figure 6 A schematic diagram of a transaction block structure and traceability link of the present invention;
[0042] Figure 7 This is a block storage and traceability structure diagram of the present invention. DETAILED DESCRIPTION
[0043] The embodiments of the present invention are further described in detail below with reference to the accompanying drawings:
[0044] A green electricity traceability method based on blockchain can achieve more efficient green electricity traceability for power trading, including the following steps:
[0045] Step 1: Build a green electricity traceability system based on blockchain;
[0046] like Figure 2 As shown, the specific steps of step 1 include:
[0047] Step S100 deploys distributed nodes and establishes a blockchain network;
[0048] The specific method is as follows:
[0049] Green power generators, trading centers, power load aggregators, and power users who meet the access requirements submit their information to the system for review and establishment of distributed accounting nodes to jointly store green power transaction information generated during the transaction process;
[0050] Entities participating in distributed accounting will be compensated accordingly based on the amount of data storage they provide and the computing power they consume.
[0051] Step S110: acquiring key transaction data;
[0052] The specific method is as follows:
[0053] Extract key information from existing trading platforms such as power trading centers, Internet of Vehicles platforms, and electric vehicle operators, and obtain green dot trading data for the current period based on the subject classification, taking 15 minutes as a time period:
[0054] (1) Green power plants, distributed wind power, and photovoltaic power: green power output curve and power generation in the current period.
[0055] (2) Trading center: power trading data;
[0056] (3) Load aggregators: green power procurement data, user order data
[0057] (4) Electricity users: Green electricity purchase order data
[0058] Step S120 generates a blockchain-based contract block;
[0059] The specific method is as follows:
[0060] The electricity trading contract is based on the transaction and order data in the previous section and is centrally generated through smart contracts. The buyer and seller submit corresponding electricity trading requests and public key signatures. The blocks are uploaded to the chain and the integrity of the extracted data and the legitimacy of the signature are verified. After verification, the transaction results are generated into a standardized contract and published to each distributed node.
[0061] Step S130 establishes a traceability link based on the blockchain.
[0062] Smart contracts establish tree-like traceability links in the order from the power generation side to the power consumption side. In the process of establishing traceability connections between upper and lower level transactions, due to the nature of electricity being available immediately upon purchase and cannot be stored on a large scale, within a certain period of time, the amount of electricity purchased by all nodes is equal to the amount of electricity sold (consumed). Therefore, this method introduces the concepts of parent blocks and child blocks. The establishment of child blocks must reference a legal parent block. In the scenario of power trading, the establishment of a power sales transaction contract as a subordinate must reference its corresponding power sales contract as a superior, thereby forming a traceability link for the power purchase-power sales contract.
[0063] like Figure 3 As shown, the specific steps include:
[0064] Step S131: The computing nodes under each entity collect the key data of all power purchase contracts within the time period, including: contract number, trading period, power selling entity name, signature, location, power purchasing entity ID, signature, location, green power type, and transaction volume. The power purchase volume curve within the time period is generated based on the contract information.
[0065] Step S132 collects key data of all power sales contracts within the time period, and based on the power sales contract information of the subordinates, decomposes the power purchase curve to obtain the power purchase curve of each subordinate power purchasing entity.
[0066] Step S133 is as follows Figure 5 As shown, the power sales contract in the same time period is matched with the power purchase contract as the power source. For each green power sales contract, it is determined whether there is enough power purchase contract electricity to meet its power sales demand. If so, step S134 is executed to establish a traceability link between the power purchase contract and the power sales contract. If there is not enough power purchase contract electricity to meet its power sales demand, the abnormal green power transaction information is fed back to the power trading center.
[0067] Step S134 establishes a traceability link from the power purchase contract to the power sales contract. The linked corresponding transaction block Hash and the transaction volume are packaged and written into the traceability part of the contract between the two parties, completing the mutual reference between the upper and lower transaction blocks, forming a traceability link between the power purchase and power sales contract, such as Figure 6 shown.
[0068] Step S140: The contract is packaged and uploaded to the chain, completing the construction of the green electricity traceability system based on blockchain.
[0069] The specific method is as follows:
[0070] After the traceability part is completed, the green electricity transaction contract is encapsulated in blocks, and the block information is encrypted through the hash encryption algorithm to generate the block header Hash. The block information is uploaded to the blockchain network for broadcasting. After verification by the consensus mechanism of each node, the block is uploaded to the chain, and the construction of the green electricity traceability system based on the blockchain is completed.
[0071] Step 2: Based on the blockchain-based green electricity traceability system built in step 1, trace the transaction volume, transaction price, electricity source, and green electricity type;
[0072] The green electricity traceability system based on blockchain can satisfy users' queries on transaction volume, transaction price, electricity source, and green electricity type for all transactions within a specific order and time period. The specific implementation steps are as follows:
[0073] like Figure 3 As shown, the specific steps of step 2 include:
[0074] In step S200, the user submits a traceability request to the green electricity traceability service system. The service system verifies the legitimacy of the request by verifying the user's public and private keys and digital signature. After the verification is completed, the query node conducts green electricity traceability.
[0075] Step S210: The query node broadcasts to the blockchain network to verify the authenticity and integrity of its own data.
[0076] Step S220 is as follows Figure 7 As shown, the storage query information starts from one or more transactions that the user wants to query, locates the target block, reads the transaction information, reads the traceability link information, and then determines the block Hash linked to it.
[0077] Step S230 repeats the step of S220, traversing all linked blocks until the power generation transaction is traced back to the power generation side and a complete traceability chain is obtained.
[0078] Step S240 collects and organizes the information of each transaction contract in the traceability chain, including the contract number, green electricity type, green electricity traceability path, transaction volume, transaction time, etc., and hashes the above content to generate a unique green electricity traceability number as the unique identifier of the traceability information. Feedback the traceability results to the user.
[0079] A green electricity traceability system based on blockchain, such as Figure 1 As shown, it is divided into 5 layers, the top layer is the functional layer, which provides account registration, transaction query, transaction verification and other related functions for green power transactions based on blockchain;
[0080] The second layer is the transaction layer, where users with green power transactions conduct annual and monthly green power transactions with power generation companies;
[0081] The third layer is the contract layer. After the transaction is completed, the transaction information is uploaded to the contract layer for transaction validity verification. After the verification is passed, the green electricity contract is automatically generated, and the contract information is distributed and redundantly stored in the node layer and block layer below.
[0082] The fourth and fifth layers are the node layer and the contract layer, respectively, which realize the deployment of blockchain network nodes and the distributed trusted storage of transaction data.
[0083] The innovation of the present invention lies in:
[0084] In response to the cost and efficiency issues of the green dot traceability technology mentioned in the background technology, the present invention proposes a green electricity traceability method and system based on blockchain. By extracting key information in the transaction process and uploading it to the blockchain, a transaction contract is generated using a smart contract and traceability links are established between transactions. The traceability information is written into each transaction contract, thereby achieving a more efficient and safer green electricity traceability process with lower operating costs.
[0085] Compared with the original tracing method, the present invention has the following advantages:
[0086] 1. High efficiency. No more calculation of power flow. Due to the characteristics of automatic triggering and automatic execution of smart contracts, it is extremely suitable for this kind of high-frequency and small-volume power trading process. Through smart contracts, the process of automatically completing transaction information extraction, upper and lower level transaction matching, establishing traceability links, and generating transaction contracts is greatly improved. The efficiency of green electricity traceability is greatly improved.
[0087] 2. High security. Blockchain technology connects the generated contracts in chronological order to form a blockchain. Once the transaction information in the block is tampered with, it will not only affect the legitimacy of the information in the block, but also affect all subsequent connected blocks, thereby ensuring the security of the transaction information.
[0088] 3. Bidirectional traceability. Since the block records both the upper-level transaction traceability information and the lower-level transaction traceability information, this method is no longer limited to bottom-up one-way traceability. The trading center and EV operators can perform bidirectional traceability according to their own traceability needs.
[0089] It should be emphasized that the embodiments of the present invention are illustrative rather than restrictive. Therefore, the present invention includes but is not limited to the embodiments described in the specific implementation modes. Any other implementation modes derived by those skilled in the art based on the technical solutions of the present invention also fall within the scope of protection of the present invention.
Claims
1. A green electricity traceability method based on blockchain, characterized by: The following steps are involved: Step 1: Build a green electricity traceability system based on blockchain; Step 2: Based on the blockchain-based green electricity traceability system constructed in Step 1, trace the transaction volume, transaction price, electricity source, and green electricity type.
2. A green electricity source tracing method based on blockchain according to claim 1, characterized in that: The specific steps of step 1 include: Step S100 deploys distributed nodes and establishes a blockchain network; Step S110: obtaining key transaction data; Step S120 generates a blockchain-based contract block; Step S130: Establishing a traceability link based on blockchain; Step S140: The contract is packaged and uploaded to the chain, completing the construction of the green electricity traceability system based on blockchain.
3. A green electricity source tracing method based on blockchain according to claim 2, characterized in that: The specific steps of step S130 include: Step S131 The computing nodes under each subject collect the key data of all power purchase contracts within the time period, including: contract number, trading period, power selling subject name, signature, location, power purchasing subject ID, signature, location, green power type, and transaction volume; generate the power purchase volume curve within the time period based on the contract information; Step S132 collects key data of all power sales contracts within the time period, and decomposes the power purchase curve based on the power sales contract information of the subordinates to obtain the power purchase curve of each subordinate power purchase entity; Step S133: The power sales contract in the same time period is matched with the power purchase contract as the power source. For each green power sales contract, it is determined whether there is enough power purchase contract quantity to meet its power sales demand. If there is, step S134 is executed to establish a traceability link from the power purchase contract to the power sales contract. If there is not enough power purchase contract quantity to meet its power sales demand, the abnormal information of green power transaction is fed back to the power trading center. Step S134 establishes a traceability link from the power purchase contract to the power sales contract; packages the corresponding transaction block Hash and transaction power volume of the link and writes them into the traceability part of the contract between the two parties, completes the mutual reference between the upper and lower transaction blocks, and forms a traceability link for the power purchase-sales contract.
4. According to a blockchain-based green electricity tracing method according to claim 1, it is characterized by: The specific steps of step 2 include: Step S200: The user submits a traceability request to the green electricity traceability service system. The service system verifies the legitimacy of the request by verifying the user's public and private keys and digital signature. After the verification is completed, the query node conducts green electricity traceability. Step S210: The query node broadcasts to the blockchain network to verify the authenticity and integrity of its own data; Step S220 stores the query information starting from the transaction or transactions that the user wants to query, locates the target block, reads the transaction information, reads the traceability link information, and then determines the block Hash linked to it; Step S230 repeats the step of S220, traversing all linked blocks until the power generation transaction on the power generation side is traced back to the end, and a complete traceability chain is obtained; Step S240 collects and organizes the information of each transaction contract in the traceability chain, including the contract number, green electricity type, green electricity traceability path, transaction volume, transaction time, etc., and hashes the above content to generate a unique corresponding green electricity traceability number as the unique identifier of the traceability information; and feeds back the traceability results to the user.
5. A green electricity traceability system based on blockchain, characterized by: It is divided into five layers, the top one is the functional layer, which provides account registration, transaction query, and transaction verification functions for green power transactions based on blockchain; The second layer is the transaction layer, where users with green power transactions conduct annual and monthly green power transactions with power generation companies; The third layer is the contract layer. After the transaction is completed, the transaction information is uploaded to the contract layer for transaction validity verification. After the verification is passed, the green electricity contract is automatically generated. The contract information is distributed and redundantly stored in the node layer and block layer below. The fourth and fifth layers are the node layer and the contract layer, respectively, which realize the deployment of blockchain network nodes and the distributed trusted storage of transaction data.