Energy-saving data authentication method for energy-saving equipment in power distribution and utilization system based on blockchain technology
By deploying off-chain verification nodes in off-chain servers to compress and process and consensus authentication the energy-saving equipment data of the distribution system, the problem of large amount of data and tampering risks in the blockchain network is solved, and efficient operation and data security are achieved. Combined.
Patent Information
- Application Number
- CN202010950253.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-09-11
- Publication Date
- 2024-12-24
- Estimated Expiration
- 2040-09-11
AI Technical Summary
In the energy blockchain network, high-frequency data collection of power-saving systems leads to a huge amount of data. Direct uploading to the blockchain network will increase data transmission and processing links, increase the risk of data tampering, and cannot effectively prevent data tampering, becoming Application bottleneck.
By deploying off-chain verification nodes on off-chain servers, the electrical data of energy-saving equipment is compressed and processed and verified, and consensus authentication is carried out before the data is put on the chain to ensure data security and blockchain operation efficiency.
It effectively reduces the data flow and storage volume in the blockchain system, ensures the security and authenticity of energy-saving data, and realizes the advantage of blockchain to prevent data tampering.
Smart Images

Figure CN112231763B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of energy blockchain technology, and in particular to a method for authenticating energy-saving data of energy-saving equipment in a power distribution system based on blockchain technology. Background Art
[0002] With the development and improvement of blockchain technology, its application in the energy field has also continued to deepen. However, the amount of data in the energy field is huge. Due to the decentralized and distributed storage characteristics of blockchain, the internal data circulation of the energy blockchain network is large and the nodes consume a lot of storage space. The data collection frequency required for the energy saving measurement of the power distribution energy-saving system is high and the volume is huge. If this type of data is uploaded directly to the blockchain network, it will also face the above problems. The general method to solve this problem in the industry is to use an off-chain server to compress the on-chain data before uploading it to the blockchain. However, this method increases the risk of data being tampered with before being uploaded to the chain due to the increase in data transmission and processing links, making it impossible for the blockchain to prevent data tampering. Therefore, data anti-counterfeiting authentication is the bottleneck of the application of blockchain in the energy saving measurement of the power distribution system. Summary of the invention
[0003] The present invention provides a method for authenticating energy-saving data of energy-saving equipment in a power distribution system based on blockchain technology. The method can utilize off-chain verification nodes deployed in off-chain servers to compress and verify energy-saving metering data of energy-saving equipment in a power distribution system, and perform consensus authentication before data is uploaded to the chain. The method can reduce the amount of data to ensure the efficiency of blockchain operation and ensure data security, thereby realizing the advantage of blockchain in preventing data tampering and breaking through the application bottleneck of blockchain in energy-saving metering of power distribution systems.
[0004] The present invention provides a method for authenticating energy-saving data of energy-saving equipment in a power distribution and utilization system based on blockchain technology, comprising the following steps:
[0005] S1. The energy-saving device server collects the electrical quantity data of the energy-saving devices in the power distribution system within a time period through smart meters, calculates the data characteristics of the electrical quantity data and sends a data verification application to all off-chain verification nodes;
[0006] S2. The off-chain verification node obtains the electrical quantity data of energy-saving devices that meet the measurement standards and are submitted by all energy-saving device servers that have joined the blockchain system within the time period, extracts the data features of the electrical quantity data of all energy-saving devices within the time period, and performs verification;
[0007] S3. The off-chain verification node packages and signs the verified electrical quantity data and data features of the energy-saving equipment to obtain a data packet, and waits for the on-chain authentication node to authenticate the data packet;
[0008] S4. The on-chain authentication node forms a new block with all the data packets verified by the off-chain verification node within the time period. After the content of the new block is authenticated as true by the on-chain authentication node, the on-chain authentication node selects a blockchain node according to the blockchain consensus mechanism to package the new block and send it to the chain;
[0009] S5. The on-chain authentication nodes and off-chain verification nodes are updated synchronously from time to time.
[0010] Furthermore, in step S4, the criteria for the new block content to be authenticated as true by the on-chain authentication node are:
[0011]
[0012] in, Refers to the number of on-chain authentication nodes that have passed energy-saving data authentication. Refers to the total number of authentication nodes on the chain, n To set the ratio of the number of nodes that pass the on-chain authentication to the total number of on-chain authentication nodes.
[0013] Furthermore, the n The value of is 2 / 3.
[0014] Furthermore, the method for updating the on-chain authentication nodes and off-chain verification nodes in step S5 is as follows: the on-chain authentication nodes vote to elect a new group of on-chain authentication nodes from time to time according to the blockchain consensus mechanism, and the off-chain verification nodes change synchronously with the changes in the on-chain authentication nodes.
[0015] The present invention proposes a method for authenticating energy-saving data of energy-saving equipment in a power distribution system based on blockchain technology. The method designs a method for linking blockchain nodes with off-chain servers. Before data is uploaded to the chain, it needs to be verified by an off-chain verification node deployed in the off-chain server. Before verification, the data features of the electrical quantity data reflecting the energy saving of the energy-saving equipment are first extracted to perform data compression processing. After the verification is passed, consensus authentication is performed by the on-chain authentication node. The authentication result is written into the blockchain to ensure the authenticity of the data before it is uploaded to the chain. This method can effectively reduce the data circulation and storage volume in the blockchain system, so that the blockchain system can operate efficiently while ensuring the security and authenticity of the energy-saving data. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 It is a schematic diagram of the physical architecture corresponding to the energy-saving data authentication method of energy-saving equipment in the power distribution system based on blockchain technology of the present invention.
[0017] Figure 2 It is a flow chart of the energy-saving data authentication method of energy-saving equipment in a power distribution system based on blockchain technology of the present invention. DETAILED DESCRIPTION
[0018] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0019] To facilitate the understanding of the present invention, the design ideas of the off-chain verification, the authentication standards of the on-chain authentication nodes, and the on-chain authentication nodes and off-chain authentication node update methods involved in the present invention are first explained. Considering that the authenticity of the energy-saving device data requires the transmission of a large amount of data, the off-chain verification node is set to extract the data features of the electrical quantity data reflecting the energy-saving amount of the energy-saving device for data compression processing, and the data features are verified, which avoids the flow of a large amount of data on the chain and reduces the pressure of blockchain data transmission, processing and storage. In order to ensure the consistency of blockchain data, the standard for the on-chain authentication node to authenticate as true is designed to judge the authenticity of the data. The on-chain authentication node and the off-chain verification node update method are designed, and the POA (Proof-of-authority, Proof of Authority) consensus mechanism is applied to update the off-chain verification node and the on-chain authentication node from time to time through the on-chain node election. The present invention not only greatly reduces the flow of on-chain data, but also ensures the authenticity of the data before it is uploaded to the chain.
[0020] Combination Figure 1 and Figure 2 As shown, an embodiment of the present invention provides a method for authenticating energy-saving data of energy-saving equipment in a power distribution system based on blockchain technology, which includes the following steps:
[0021] S1: The energy-saving device server collects the electrical quantity data of the energy-saving devices in the power distribution system within a time period through smart meters, calculates the data characteristics of the electrical quantity data and sends a data verification application to all off-chain verification nodes, where the off-chain verification nodes are deployed in the off-chain servers, which are the physical devices corresponding to the off-chain verification nodes;
[0022] S2: The off-chain verification node obtains the electrical quantity data of energy-saving equipment that meets the measurement standards and is submitted by all energy-saving equipment servers that have joined the blockchain system within the time period, extracts the data features of the electrical quantity data of all energy-saving equipment within the time period, and performs verification;
[0023] S3: The off-chain verification node packages and signs the electrical quantity data and data features of the energy-saving equipment that have passed the verification to obtain a data packet. After all the data packets within Δt are collected, the on-chain authentication node is triggered to authenticate the data packet.
[0024] S4: The on-chain authentication node will All data packets verified by off-chain verification nodes within a time period form a new block. After the content of the new block is verified as true by the on-chain verification node, the on-chain verification node selects a blockchain node according to the blockchain consensus mechanism to package the new block and send it to the chain;
[0025] Specifically, the criteria for the content of a new block to be authenticated as true by the on-chain authentication nodes are:
[0026]
[0027] in, Refers to the number of on-chain authentication nodes that have passed energy-saving data authentication. Refers to the total number of authentication nodes on the chain, n To set the ratio of the number of nodes that pass the on-chain authentication to the total number of on-chain authentication nodes.
[0028] S5: The on-chain authentication nodes and off-chain verification nodes are updated synchronously from time to time.
[0029] Specifically, the update method of on-chain authentication nodes and off-chain verification nodes is as follows: on-chain authentication nodes vote to elect a new group of on-chain authentication nodes from time to time according to the blockchain consensus mechanism, and the off-chain verification nodes change synchronously with the changes of on-chain authentication nodes.
[0030] In the embodiment of the present invention, a building materials company A is selected as the analysis object. The energy-saving equipment of building materials company A sends a data verification application to all off-chain verification nodes at the same time every day, and sends the electrical quantity data of the energy-saving equipment and the calculated data features. In order to ensure that the electrical quantity data is fully collected and reduce the data transmission pressure brought to the network by real-time communication, the current verification data of the off-chain verification node is the electrical quantity data uploaded by each energy-saving device 12 hours ago. The energy-saving equipment of building materials company A initiated a data verification application at 6:00 on May 14, and the time period of the electrical quantity data and data features sent was from 4:00 to 5:00 on the same day. The energy-saving equipment checks every 10 minutes whether the data verification application has been completed in the target time period, and initiates the application if not. The off-chain verification node continuously receives the electrical quantity data and stores it locally, and verifies the received electrical quantity data at the same time every day. If a verification is started at 16:00 on May 14, the time period of the verified electrical quantity data is from 16:00 on May 13 to 4:00 on May 14. The off-chain verification node checks every 10 minutes whether the verification has been completed in the target time period, and initiates verification if not. After the off-chain verification node verifies that the electrical quantity data of energy-saving equipment including building materials company A and the data characteristics are true, it packages and signs the data packet and uploads the data packet to the on-chain authentication node.
[0031] In the embodiment of the present invention, the standard for the block content to be authenticated as true by the on-chain authentication nodes is set as follows: when the total number of on-chain authentication nodes is 100, if 67 on-chain authentication nodes authenticate the data as true, the data authentication is passed. =100, =67, n=2 / 3. The on-chain authentication node packages the received data packets and forms a new block. After the block content is authenticated as true by the on-chain authentication node, the on-chain authentication node selects a blockchain node to package the block and send it to the chain according to the blockchain POA consensus mechanism when packaging the data packets and forming the block.
[0032] In the embodiment of the present invention, the method for updating the on-chain authentication node and the off-chain verification node is as follows: the on-chain authentication node starts voting at irregular intervals, and the POA consensus mechanism is applied to elect new on-chain authentication nodes. The off-chain verification nodes change synchronously with the changes of the on-chain authentication nodes, thereby realizing the update of the on-chain authentication nodes and the off-chain verification nodes.
[0033] It should be noted that, since the information interaction, execution process, etc. between the units in the above-mentioned devices and systems are based on the same concept as the embodiments of the method of the present invention, the specific contents can be found in the description of the embodiments of the method of the present invention and will not be repeated here.
[0034] A person skilled in the art may understand that all or part of the steps in the various methods of the above embodiments may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the storage medium may include: a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, etc.
[0035] The above is a detailed introduction to the energy-saving data authentication method for energy-saving equipment in a power distribution system based on blockchain technology provided by an embodiment of the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for general technical personnel in this field, according to the idea of the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.
Claims
1. A method for authenticating energy-saving data of energy-saving equipment in a power distribution system based on blockchain technology, characterized in that: The steps include: S1. The energy-saving device server collects the electrical quantity data of the energy-saving devices in the power distribution system within a time period through smart meters, calculates the data characteristics of the electrical quantity data and sends a data verification application to all off-chain verification nodes; S2. The off-chain verification node obtains the electrical quantity data of energy-saving devices that meet the measurement standards and are submitted by all energy-saving device servers that have joined the blockchain system within the time period, extracts the data features of the electrical quantity data of all energy-saving devices within the time period, and performs verification; S3. The off-chain verification node packages and signs the electrical quantity data and data features of the energy-saving equipment that have passed the verification to obtain a data packet, and waits for the on-chain authentication node to authenticate the data packet; S4. The on-chain authentication node forms a new block with all the data packets verified by the off-chain verification node within the time period. After the content of the new block is authenticated as true by the on-chain authentication node, the on-chain authentication node selects a blockchain node according to the blockchain consensus mechanism to package the new block and send it to the chain; S5. The on-chain authentication nodes and off-chain verification nodes are updated synchronously from time to time; Among them, in step S4, the standard for the new block content to be authenticated as true by the on-chain authentication node is: , in, Refers to the number of on-chain authentication nodes that have passed energy-saving data authentication. Refers to the total number of authentication nodes on the chain, n To set the ratio of the number of nodes that pass the on-chain authentication to the total number of on-chain authentication nodes; n The value of is 2 / 3; in step S5, the on-chain authentication node and the off-chain verification node update method are: the on-chain authentication node votes to elect a new group of on-chain authentication nodes from time to time according to the blockchain consensus mechanism, and the off-chain verification nodes change synchronously with the changes of the on-chain authentication nodes.
Citation Information
Patent Citations
A product traceability information management system and method based on a block chain
CN109034833A
A data storage method and device
CN109543459A
Data interaction method based on block chain on-chain and off-chain collaboration
CN110673966A
IPK-based blockchain uplink data security authentication method and system
CN111526023A
