Tamper-proof processing system for electric power data
By adopting blockchain and digital signature technology in the power data processing system, the problem of power data being easily tampered with is solved, the security and integrity of power data are achieved, and the security and reliability of data processing are improved.
Patent Information
- Application Number
- CN202411635085.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-15
- Publication Date
- 2025-02-25
AI Technical Summary
The existing power data processing system is prone to tampering and cannot effectively prevent power data tampering.
A power data tamper-proof processing system is designed, using blockchain technology and digital signature technology to encrypt and store power data in a distributed manner, and the integrity and security of data are monitored in real time through the exception judgment module and the monitoring and investigation module.
Through the combination of blockchain and digital signature technology, the security and integrity of power data are ensured, the possibility of data tampering and corruption is reduced, and the security and reliability of data processing are improved.
Smart Images

Figure CN119519955A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to an anti-tampering power data processing device. Background Art
[0002] Power data refers to data containing a variety of information such as voltage, current and power. These data can help people better understand and analyze the operation of the power system and its related problems. With the rapid development and increasing intelligence of the power system, there are behaviors of deliberately changing power data in the process of power data collection, transmission, storage and processing, including but not limited to modifying actual power consumption, changing power prices and changing power sources, etc. The purpose is usually to obtain unreasonable economic benefits or circumvent relevant laws and regulations. This is called power data tampering. The harm of power data tampering cannot be underestimated. It will affect the normal operation and management of the power system, lead to instability and insecurity of the power system, and affect the fairness and transparency of the power market. In response to the phenomenon of power data tampering, a variety of detection methods have been proposed, such as data integrity detection, data consistency detection, data anomaly detection, etc. These methods can effectively detect the tampering of power data, but cannot prevent the tampering of power data. Summary of the invention
[0003] The purpose of the present invention is to solve the problem that the existing power data is easily tampered with, and proposes a power data tamper-proof processing system.
[0004] The present invention discloses a power data tamper-proof processing system, which includes a storage encryption module, a digital signature module, an abnormality judgment module, a monitoring and troubleshooting module, a data clearing module and a backup memory module;
[0005] A storage encryption module, used to store the power data in a distributed manner on each block of the blockchain and encrypt the blocks, with a key being set for each block;
[0006] A digital signature module, used to digitally sign the block, if the power data in the block is changed, the digital signature will be invalid;
[0007] An abnormality judgment module is used to obtain a digital signature, determine the validity of the digital signature, and generate and send an abnormality warning if the digital signature is determined to be invalid;
[0008] A monitoring and troubleshooting module is used to monitor the data transmission link and storage link after receiving an abnormal warning, and to troubleshoot the transmission link and storage link of the power data, determine the abnormal nodes, and generate and send an abnormal list;
[0009] A data clearing module, used for clearing the power data in the block where the digital signature is invalid after receiving an abnormal warning;
[0010] The backup memory module is used to store the power data in the backup block after receiving an abnormal warning, and retrieve the corresponding power data in the backup block to supplement and clear the missing data in the block of power data.
[0011] Furthermore, the specific method of storing the encryption module to set the key in each of the blocks is:
[0012] Creating blocks and storing the collected power data in the blocks;
[0013] When the storage amount of the power data in the block is greater than the preset power data storage amount or the data storage time reaches a preset time threshold, creating a new block;
[0014] Encrypting the block and setting a key;
[0015] The created blocks are linked in sequence to form a blockchain.
[0016] Furthermore, the digital signature module digitally signs the block. If the power data in the block changes, the specific steps of invalidating the digital signature are:
[0017] Creating a key pair, the key pair comprising a public key and a private key;
[0018] Performing a hash operation on the power data in the block to generate a first hash value, and if the power data changes, the first hash value changes;
[0019] The first hash value is encrypted using the private key to generate a digital signature.
[0020] Furthermore, the specific method for the abnormality judgment module to generate and send an abnormality warning is:
[0021] Decrypt the digital signature using the public key to obtain a second hash value;
[0022] The first hash value is compared with the second hash value to determine whether they are the same. If so, the digital signature is determined to be valid. If not, the digital signature is determined to be invalid, and an abnormal warning is generated and issued.
[0023] Furthermore, the specific method for the data clearing module to clear the power data in the block where the digital signature is invalid is:
[0024] After receiving the abnormal warning, the data clearing module determines that the block with invalid signature is an invalid block;
[0025] Stop the data writing or data reading operation on the failed block, and clear the power data of the block.
[0026] Compared with the prior art, the present invention has the following beneficial effects:
[0027] Through the blockchain technology of the storage encryption module and the digital signature technology of the digital signature module, the power data is encrypted and distributedly stored to ensure the security and integrity of the power data and reduce the possibility of data tampering and damage. Through the abnormal judgment module and the monitoring and investigation module, the validity of the digital signature and the generation of abnormal warnings are monitored in real time, so that abnormal situations in the data transmission link and the storage link can be discovered and handled in time, reducing the risk of data loss and leakage; the investigation of data transmission and storage links and the generation of abnormal lists can be processed automatically by the program, avoiding errors and delays caused by manual operations, and improving processing efficiency and accuracy; after receiving the abnormal warning, the data clearing module clears the power data in the block where the digital signature is invalid, preventing the power data from being tampered with and improving the security of the power data; the backup block is set by the backup memory module, so that the backup data can be quickly called when the data is lost or attacked, ensuring the reliability and security of the power data. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] Figure 1 This is a structural block diagram of a power data tamper-proof processing system described in a specific implementation method. DETAILED DESCRIPTION
[0029] Specific implementation method 1. Combination Figure 1 The present embodiment is described as a power data tamper-proof processing system, the tamper-proof processing system comprises a storage encryption module 1, a digital signature module 2, an abnormality judgment module 3, a monitoring and troubleshooting module 4, a data clearing module 5 and a backup memory module 6;
[0030] A storage encryption module 1 is used to store the power data in a distributed manner on each block of the blockchain and encrypt the block, and a key is set for each block;
[0031] A digital signature module 2, used to digitally sign the block. If the power data in the block is changed, the digital signature becomes invalid;
[0032] The abnormality judgment module 3 is used to obtain the digital signature and judge the validity of the digital signature. If the digital signature is judged to be invalid, an abnormality warning is generated and sent;
[0033] The monitoring and troubleshooting module 4 is used to monitor the data transmission link and storage link after receiving the abnormal warning, and troubleshoot the transmission link and storage link of the power data, determine the abnormal nodes, and generate and send the abnormal list;
[0034] A data clearing module 5 is used to clear the power data in the block where the digital signature is invalid after receiving an abnormal warning;
[0035] The backup memory module 6 is used to store the power data in the backup block after receiving an abnormal warning, and retrieve the corresponding power data in the backup block to supplement and clear the missing data in the block of power data.
[0036] In this embodiment, the blockchain technology of the storage encryption module 1 and the digital signature technology of the digital signature module 2 are used to encrypt and distribute the power data, thereby ensuring the security and integrity of the power data and reducing the possibility of data tampering and damage. The validity of the digital signature and the generation of abnormal warnings are monitored in real time through the abnormal judgment module 3 and the monitoring and investigation module 4, so that abnormal situations in the data transmission link and the storage link can be discovered and handled in time, reducing the risk of data loss and leakage; the investigation of the data transmission and storage links and the generation of the abnormal list can be processed automatically by the program, avoiding errors and delays caused by manual operations, and improving processing efficiency and accuracy; after receiving the abnormal warning, the data clearing module 5 clears the power data in the block where the digital signature is invalid, preventing the power data from being tampered with and improving the security of the power data; the backup block is set by the backup memory module 6, so that the backup data can be quickly called when the data is lost or attacked, thereby ensuring the reliability and security of the power data.
[0037] Specific implementation method 2: This implementation method further limits the power data tamper-proof processing system described in specific implementation method 1. In this implementation method, the specific method of storing and encrypting the module 1 to set the key in each block is as follows:
[0038] Creating blocks and storing the collected power data in the blocks;
[0039] When the storage amount of the power data in the block is greater than the preset power data storage amount or the data storage time reaches a preset time threshold, creating a new block;
[0040] Encrypting the block and setting a key;
[0041] The created blocks are linked in sequence to form a blockchain.
[0042] In this embodiment, the power data is stored in the form of blockchain, and a key is set as the first layer of protection against tampering of the power data.
[0043] Specific implementation method 3: This implementation method further limits the power data tamper-proof processing system described in specific implementation method 2. In this implementation method, the digital signature module 2 digitally signs the block. If the power data in the block is changed, the specific steps of invalidating the digital signature are as follows:
[0044] Creating a key pair, the key pair comprising a public key and a private key;
[0045] Performing a hash operation on the power data in the block to generate a first hash value, and if the power data changes, the first hash value changes;
[0046] The first hash value is encrypted using the private key to generate a digital signature.
[0047] In this embodiment, a key pair is set for the block containing the power data to protect the power data from tampering in the form of a digital signature, which is a second layer of protection measure for preventing the power data from tampering.
[0048] Specific implementation method 4: This implementation method further limits the power data tamper-proof processing system described in specific implementation method 3. In this implementation method, the specific method for the abnormality judgment module 3 to generate and send an abnormality warning is:
[0049] Decrypt the digital signature using the public key to obtain a second hash value;
[0050] The first hash value is compared with the second hash value to determine whether they are the same. If so, the digital signature is determined to be valid. If not, the digital signature is determined to be invalid, and an abnormal warning is generated and issued.
[0051] In this embodiment, the abnormality determination module 3 determines whether there is an abnormality in the block containing the power data, and generates and issues an abnormality warning if there is an abnormality, so as to perform subsequent protection operations.
[0052] Specific implementation mode 5: This implementation mode further limits the power data tamper-proof processing system described in specific implementation mode 4. In this implementation mode, the specific method of the data clearing module 5 clearing the power data in the block with invalid digital signature is:
[0053] After receiving the abnormal warning, the data clearing module 5 determines that the block with invalid signature is an invalid block;
[0054] Stop the data writing or data reading operation on the failed block, and clear the power data of the block.
[0055] In this embodiment, the power data of the block containing power data with abnormal conditions is cleared; this is the third layer of protection against power data tampering, and is also the most effective protection against power data tampering; at the same time, the corresponding power data in the backup block is retrieved through the backup memory module 6 to supplement the missing data in the block where the power data is deleted; the specific power data supplement method is: the timestamp of the compared backup block is later than the timestamp of the failed block, and the update time of the backup block is determined to be the latest; the power data in the backup block is copied to the failed block; the third hash value of the copied power data is obtained, and in response to the third hash value being the same as the first hash value, it is determined that the copied power data is consistent with the deleted power data, and a confirmation instruction is generated and sent; in response to the confirmation instruction, the copied power data is retained in the failed block, and the validity of the failed block is restored.
[0056] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
Claims
1. A power data tamper-proof processing system, characterized in that: The anti-tampering processing system comprises a storage encryption module (1), a digital signature module (2), an abnormality judgment module (3), a monitoring and troubleshooting module (4), a data clearing module (5) and a backup memory module (6); A storage encryption module (1) is used to store the power data in a distributed manner on each block of the blockchain and to encrypt the block, with a key being set for each block; A digital signature module (2), used for digitally signing the block, and if the power data in the block is changed, the digital signature becomes invalid; An abnormality judgment module (3) is used to obtain a digital signature, determine the validity of the digital signature, and generate and send an abnormality warning if the digital signature is determined to be invalid; A monitoring and troubleshooting module (4) is used to monitor the data transmission link and the storage link after receiving the abnormal warning, and to troubleshoot the transmission link and the storage link of the power data, determine the abnormal nodes, and generate and send the abnormal list; A data clearing module (5), configured to clear the power data in the block where the digital signature is invalid after receiving an abnormality warning; The backup memory module (6) is used to store the power data in the backup block after receiving an abnormal warning, and retrieve the corresponding power data in the backup block to supplement and clear the missing data in the block of power data.
2. The power data tamper-proof processing system according to claim 1, characterized in that: The specific method of storing the encryption module (1) to set a key in each of the blocks is: Creating blocks and storing the collected power data in the blocks; When the storage amount of the power data in the block is greater than the preset power data storage amount or the data storage time reaches a preset time threshold, creating a new block; Encrypting the block and setting a key; The created blocks are linked in sequence to form a blockchain.
3. The power data tamper-proof processing system according to claim 2, characterized in that: The digital signature module (2) digitally signs the block. If the power data in the block changes, the specific steps of invalidating the digital signature are as follows: Creating a key pair, the key pair comprising a public key and a private key; Performing a hash operation on the power data in the block to generate a first hash value, and if the power data changes, the first hash value changes; The first hash value is encrypted using the private key to generate a digital signature.
4. The power data tamper-proof processing system according to claim 3, characterized in that: The specific method of the abnormality judgment module (3) generating and sending an abnormality warning is: Decrypt the digital signature using the public key to obtain a second hash value; The first hash value is compared with the second hash value to determine whether they are the same. If so, the digital signature is determined to be valid. If not, the digital signature is determined to be invalid, and an abnormal warning is generated and issued.
5. The power data tamper-proof processing system according to claim 1, characterized in that: The specific method of the data clearing module (5) clearing the power data in the block whose digital signature is invalid is: After receiving the abnormal warning, the data clearing module (5) determines that the block with invalid signature is an invalid block; Stop the data writing or data reading operation on the failed block, and clear the power data of the block.