Power grid data management method and device based on blockchain platform, computer device and readable storage medium

By generating binary keys through quantum entanglement or quantum randomness, and using XOR operations to encrypt power grid data early warning rules and upload them to the blockchain, the problem of multi-system trust in power grid data management is solved, and data security management and rule consensus are achieved.

CN119691068BActive Publication Date: 2026-02-27GUIZHOU POWER GRID CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411741126.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-11-29
Publication Date
2026-02-27
Estimated Expiration
2044-11-29

AI Technical Summary

Technical Problem

In power grid data management, the weak trust environment caused by data silos from multiple systems and the challenges of data management based on blockchain have not yet been effectively resolved.

Method used

By generating binary keys through quantum entanglement or quantum randomness, using XOR operations to encrypt early warning rule data, generating ciphertext, and deploying it on the blockchain to deploy smart contracts, the secure management and rule consensus of power grid data can be achieved.

Benefits of technology

It provides security management and immutability of early warning rules for power grid data, ensuring data integrity and consistency, and realizing full lifecycle management of power grid data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119691068B_ABST
    Figure CN119691068B_ABST
Patent Text Reader

Abstract

The application relates to a power grid data management method and device based on a blockchain platform, computer equipment and a readable storage medium. In the whole life management cycle of power grid data, early warning rule data is converted into a binary sequence D, a group of random binary keys K is generated through quantum entanglement or quantum randomness, a bitwise exclusive or operation is performed on the early warning rule data after processing of the binary sequence using the keys, ciphertext is obtained, an intelligent contract is generated based on the ciphertext, and the intelligent contract is chained and deployed, so that each node of the blockchain platform performs early warning on power grid data of the blockchain platform based on early warning rule data carried by the intelligent contract, effective data security guarantee is provided for power grid data management based on the blockchain platform, the early warning rule based on the encryption method can also be guaranteed not to be tampered with and to reach a rule consensus of the whole power grid, and therefore, safe management of power grid data can be realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of blockchain data management technology, and in particular to a power grid data management method, apparatus, computer equipment, and readable storage medium based on a blockchain platform. Background Technology

[0002] In the context of power grid data management, IT asset data involves multiple systems such as financial systems, asset management systems, and IT asset mobile application systems, resulting in a weak trust environment caused by data silos. While blockchain platforms can enable the integration of multiple systems, challenges in data management based on blockchain still exist. Summary of the Invention

[0003] Therefore, it is necessary to provide a power grid data management method, device, computer equipment, and readable storage medium based on a blockchain platform that can effectively manage power grid data, addressing the aforementioned technical problems.

[0004] In a first aspect, this application provides a power grid data management method based on a blockchain platform, the method comprising:

[0005] In response to the alert configuration operation performed in the alert configuration interface, alert rule data is generated;

[0006] The warning rule data is converted into a binary sequence D = {d1, d2, ..., dm}, where di ∈ {0, 1};

[0007] A set of random binary keys K = {k1, k2, ..., km} is generated through quantum entanglement or quantum randomness, where ki ∈ {0, 1};

[0008] The warning rule data after processing the binary sequence is XORed bit by bit using the key to obtain ciphertext C:

[0009] C=D⊕K

[0010] Where ⊕ represents the XOR operation;

[0011] A smart contract is generated based on encrypted data and deployed on the blockchain so that each node of the blockchain platform can issue early warnings for the power grid data based on the early warning rules data carried by the smart contract.

[0012] In one embodiment, the method further includes:

[0013] If data in a power grid is modified, deleted, or added, then based on the smart contract, ciphertext C is obtained;

[0014] Based on key K, ciphertext C is decrypted to obtain early warning rule data;

[0015] Based on the early warning rule data, the power grid data before and after the uplink comparison is performed;

[0016] If the comparison fails, an early warning information is generated, and the early warning information is stored in the uplink.

[0017] In one of the embodiments, the early warning rule data includes message name, message template, message attachment and recipient list, the message attachment includes early warning information, and the method further includes:

[0018] Based on the early warning information, the message name is determined and the content of the message template is filled in;

[0019] Based on the content of the abnormal power grid data corresponding to the early warning information, the recipient list is determined;

[0020] Generate and send an email to each recipient in the recipient list, wherein the subject of the email is generated based on the message name, and the body of the email is generated based on the message template after filling in the content.

[0021] In one of the embodiments, after sending the email, the above method further includes:

[0022] Record the user information associated with the early warning information;

[0023] In response to the selection operation of the early warning trace link carried in the body of the email, an early warning trace interface is displayed, the early warning trace interface displays all operation logs corresponding to the user information, and the operation log content of the early warning information is defaulted to be on top.

[0024] In a second aspect, a power grid data management device based on a block chain platform is provided, and the device includes:

[0025] An early warning rule configuration module is configured to generate early warning rule data in response to early warning configuration operations performed in an early warning configuration interface;

[0026] A conversion module is configured to convert the early warning rule data into a binary sequence D={d1, d2, …, dm}, wherein di∈{0,1};

[0027] A key generation module is configured to generate a set of random binary keys K={k1, k2, …, km} through quantum entanglement or quantum randomness, wherein ki∈{0,1};

[0028] An encryption module is configured to perform a bitwise XOR operation on the early warning rule data processed by the binary sequence using the key to obtain ciphertext C:

[0029] C=D⊕K

[0030] Wherein, ⊕ represents XOR operation;

[0031] The early warning rule on-chain module is configured to generate a smart contract based on the ciphertext and deploy the smart contract on a chain to enable each node of a blockchain platform to perform early warning on power grid data of the blockchain platform based on early warning rule data carried by the smart contract.

[0032] In one of the embodiments, the apparatus further includes:

[0033] The ciphertext obtaining module is configured to obtain the ciphertext C based on the smart contract if the power grid data is modified, deleted or added.

[0034] The decryption module is configured to decrypt the ciphertext C based on the key K to obtain the early warning rule data.

[0035] The comparison module is configured to compare the power grid data before and after being uploaded on a chain based on the early warning rule data.

[0036] The early warning execution module is configured to generate early warning information and store the early warning information on a chain if the after-comparison fails.

[0037] In one of the embodiments, the early warning rule data includes a message name, a message template, a message attachment and a recipient list, the message attachment includes the early warning information, and the apparatus further includes:

[0038] The first email information generation module is configured to determine the message name and fill the content of the message template based on the early warning information.

[0039] The second email information generation module is configured to determine the recipient list based on the content of the abnormal power grid data corresponding to the early warning information.

[0040] The email sending module is configured to generate and send an email to each recipient in the recipient list, where a subject of the email is generated based on the message name, and a body of the email is generated based on the message template after the content is filled.

[0041] In one of the embodiments, the apparatus further includes:

[0042] The recording module is configured to record user information associated with the early warning information.

[0043] The early warning traceability module is configured to display an early warning traceability interface in response to a selection operation on an early warning traceability link carried in the body of the email, the early warning traceability interface displays all operation logs corresponding to the user information, and an operation log content of the early warning information is displayed by default.

[0044] In a third aspect, a computer device is provided, including a memory and a processor, the memory stores a computer program, and the processor implements the steps of the above method when executing the computer program.

[0045] In a fourth aspect, a computer readable storage medium is provided, and the computer readable storage medium stores a computer program. The computer program is executed by a processor to implement the steps of the method described above.

[0046] The power grid data management method, device, computer equipment and readable storage medium based on the blockchain platform described above. In the whole life management cycle of the power grid data, the early warning rule data is converted into a binary sequence D, and a group of random binary keys K is generated through quantum entanglement or quantum randomness. The early warning rule data processed by the binary sequence is subjected to bit-by-bit XOR operation using the key, and ciphertext is obtained. Then, the smart contract is generated based on the ciphertext, and the smart contract is deployed on the chain to enable each node of the blockchain platform to perform early warning of the power grid data of the blockchain platform based on the early warning rule data carried by the smart contract, thereby providing effective data security guarantee for the power grid data management based on the blockchain platform. In addition, the early warning rule based on the encryption method can also ensure that the early warning rule is not tampered with and the rule consensus of the whole power grid is reached. Based on this, the security management of the power grid data can be realized. BRIEF DESCRIPTION OF DRAWINGS

[0047] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related art, the drawings needed to be used in the description of the embodiments of the present application or the related art will be briefly introduced. Obviously, the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other related drawings can also be obtained without creative labor.

[0048] Figure 1 One of the flowcharts of the power grid data management method based on the blockchain platform in an embodiment;

[0049] Figure 2 One of the flowcharts of the power grid data management method based on the blockchain platform in an embodiment;

[0050] Figure 3 One of the flowcharts of the power grid data management method based on the blockchain platform in an embodiment;

[0051] Figure 4 One of the flowcharts of the power grid data management method based on the blockchain platform in an embodiment;

[0052] Figure 5 The block diagram of the power grid data management device based on the blockchain platform in an embodiment;

[0053] Figure 6 The internal structure diagram of the computer equipment in an embodiment. DETAILED DESCRIPTION

[0054] In order to make the purpose, technical scheme and advantages of the present application clearer, the present application will be further described in detail below in combination with the drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and do not limit the present application.

[0055] The present application provides a power grid data management method based on a blockchain platform, as shown in Figure 1 The method comprises the following steps:

[0056] S101, in response to the pre-warning configuration operation performed in the pre-warning configuration interface, generating pre-warning rule data. The pre-warning configuration interface can display a form or configuration option of pre-warning configuration, including but not limited to comparison rules, threshold values, trigger conditions, recipients, notification methods, etc.

[0057] Optionally, before step S101, it can also include:

[0058] The user logs in to the system, usually by inputting the username and password to verify the identity.

[0059] The system verifies the user's authority to ensure that the user has the authority to access the pre-warning configuration interface.

[0060] Before generating the pre-warning rule data, the information submitted under the pre-warning configuration operation can be preliminarily verified to ensure that all mandatory items have been filled in and the data format is correct.

[0061] S102, converting the pre-warning rule data into a binary sequence D={d1, d2, …, dm}, where di∈{0,1};

[0062] S103, generating a set of random binary keys K={k1, k2, …, km} through quantum entanglement or quantum randomness, where ki∈{0,1}. Quantum mechanics-based encryption and decryption provides unconditional security and can resist future threats such as quantum computing.

[0063] S104, using the key to perform bit-by-bit XOR operation on the pre-warning rule data processed by the binary sequence, to obtain the ciphertext C:

[0064] C=D⊕K={d1⊕k1, d2⊕k2, …, di⊕ki}

[0065] Where, ⊕ represents XOR operation.

[0066] By processing the early warning rule data as a binary sequence and performing XOR operation on the binary sequence with a key, due to the reversibility of the XOR operation, the original data can be restored by performing the XOR operation twice with the same key. This means that no additional storage space is needed to save the intermediate state or ciphertext during encryption and decryption, thereby saving resources. When the user configures the early warning rule on the mobile device side, the occupation of the storage space of the mobile device can be effectively reduced.

[0067] In addition, the bit-by-bit XOR operation is very efficient and very fast. Under this encryption method, fast encryption and decryption in the process of massive data management of the power grid can be realized.

[0068] S105, generating a smart contract based on the ciphertext, and deploying the smart contract to make each node of the blockchain platform perform early warning on the power grid data of the blockchain platform based on the early warning rule data carried by the smart contract.

[0069] Specifically, in the whole life management cycle of the power grid data, the early warning rule data is converted into a binary sequence D, and a group of random binary keys K is generated through quantum entanglement or quantum randomness. The early warning rule data processed by the binary sequence is subjected to bit-by-bit XOR operation using the key, and ciphertext is obtained. Then, a smart contract is generated based on the ciphertext, and the smart contract is deployed to make each node of the blockchain platform perform early warning on the power grid data of the blockchain platform based on the early warning rule data carried by the smart contract. This provides effective data security guarantee for power grid data management based on the blockchain platform. In addition, the early warning rule based on this encryption method can also ensure that the early warning rule is not tampered with and that the rule consensus of the whole power grid is reached. Based on this, the security management of the power grid data can be realized.

[0070] In one embodiment, as shown in Figure 2 the above method further comprises:

[0071] S201, if a power grid data is modified, deleted, or increased, the ciphertext C is obtained based on the smart contract;

[0072] S202, decrypting the ciphertext C based on the key K to obtain the early warning rule data. As described above, the XOR operation is a reversible process, and the early warning rule data can be obtained by performing the XOR operation twice with the same key. According to the binary sequence, the early warning rule data can be further determined reversely.

[0073] S203, comparing the power grid data before and after the chain based on the early warning rule data.

[0074] S204, if the comparison fails, generating early warning information and storing the early warning information on the chain.

[0075] For example, power grid data related to the early warning rule can be extracted from the blockchain, including real-time data and historical data. Based on the early warning rule data, the baseline point of data comparison is determined, for example, the data before the chain or the data at a certain time point as the baseline.

[0076] The extracted power grid data is compared and analyzed with the data of the baseline point, and the comparison result is recorded on the blockchain for subsequent query and analysis, and the early warning information is generated to notify the corresponding user.

[0077] The method provided by the embodiments of the application is based on data comparison, early warning judgment, and early warning information chaining for subsequent review, viewing, etc., to ensure that user operations in the event of early warning are traceable.

[0078] In one of the embodiments, the early warning rule data includes message name, message template, message attachment, and recipient list, and the message attachment includes early warning information, as shown in the following table. Figure 3 The method further includes:

[0079] S301, based on the early warning information, determining the message name and filling the content of the message template.

[0080] After receiving the early warning information of the power grid, the type or level of the early warning needs to be identified first, based on which a suitable message name is determined, for example, the structure of the message name can be "XX level XX type early warning". The message template can be a text framework containing placeholders (such as {early warning level}, {early warning type}, {occurrence time}, {impact range}, etc.), and when receiving the early warning information, the placeholders are replaced with actual values according to the specific content of the early warning information, thereby completing the filling of the message template.

[0081] S302, based on the content of the abnormal power grid data corresponding to the early warning information, determining the recipient list.

[0082] After filling the message template, it is determined which personnel need to receive this early warning notification according to the early warning type, early warning level, and impact range reflected by the early warning information. Based on the differences in early warning information, the recipient list can include power grid maintenance personnel, dispatchers, department heads, etc. The selection of the recipients is mainly based on their roles in the power grid architecture, the scope of their responsibilities, and the degree of association with the early warning area or equipment.

[0083] S303, generating and sending an email to each recipient in the recipient list, wherein the subject of the email is generated based on the message name, and the body of the email is generated based on the filled message template.

[0084] Through automatic generation of the mail based on rules for early warning notification when the early warning occurs, the relevant personnel can first know the abnormality of the power grid data uplink storage, so as to correct the data in time or adjust the permission of the relevant user.

[0085] Optionally, the permission of the recipient is verified before the mail is sent, so that only the personnel who have the right to receive such information can receive it. For example, if the personnel leave or the post is moved, the permission of the recipient will change, so that the verification is performed before the mail is sent, so as to avoid information leakage.

[0086] In one embodiment, after the mail is sent, as shown in Figure 4 The method further includes:

[0087] S401, record the user information associated with the early warning information;

[0088] S402, in response to the selection operation of the early warning trace link carried in the mail body, display the early warning trace interface, and the early warning trace interface displays all operation logs corresponding to the user information, and the operation log content existing in the early warning information is defaulted to be on top.

[0089] Each mail notification record is associated with early warning information, and the early warning information can be traced through the mail, so that the mail information can be traced to each piece of early warning information, and each piece of early warning information can be traced to the full life cycle transaction record of each piece of power grid data (such as IT asset management data).

[0090] In addition, by defaulting the operation log content existing in the early warning information to be on top, the user corresponding to all early warning conditions can be quickly and uniformly viewed. If the operation frequency of a user existing in the early warning information exceeds a preset threshold, the user is pulled into a blacklist, and the system administrator is reported, and the identity of the user is re-audited, so as to further improve the security in the process of managing the power grid data based on the blockchain platform.

[0091] It should be understood that although each step in the flowchart involved in each embodiment as described above is displayed in sequence according to the arrow, these steps are not necessarily executed in sequence according to the arrow. Unless otherwise stated herein, the execution of these steps has no strict order limitation, and these steps can be executed in other orders. Moreover, at least part of the steps in the flowchart involved in each embodiment as described above can include multiple steps or multiple stages, which are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily sequential, but can be alternately executed with at least part of other steps or steps or stages in other steps.

[0092] Based on the same inventive concept, the embodiments of the present application also provide a blockchain platform-based power grid data management device for implementing the above-mentioned blockchain platform-based power grid data management method. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme described in the above-mentioned method, so the specific limitations in one or more blockchain platform-based power grid data management device embodiments provided below can be referred to the limitations of the blockchain platform-based power grid data management method described above, which will not be repeated here.

[0093] In one exemplary embodiment, as shown in Figure 5 A blockchain platform-based power grid data management device is provided, which includes: a pre-warning rule configuration module 501, a conversion module 502, a key generation module 503, an encryption module 504, and a pre-warning rule on-chain module 505.

[0094] The pre-warning rule configuration module is configured to generate pre-warning rule data in response to a pre-warning configuration operation performed on a pre-warning configuration interface;

[0095] The conversion module is configured to convert the pre-warning rule data into a binary sequence D = {d1, d2, …, dm}, where di∈ {0, 1};

[0096] The key generation module is configured to generate a set of random binary keys K = {k1, k2, …, km} through quantum entanglement or quantum randomness, where ki∈ {0, 1};

[0097] The encryption module is configured to perform a bitwise XOR operation on the pre-warning rule data processed by the binary sequence using the key to obtain ciphertext C:

[0098] C = D ⊕ K

[0099] Where ⊕ represents the XOR operation;

[0100] The pre-warning rule on-chain module is configured to generate a smart contract based on the ciphertext and deploy the smart contract on the chain, so that each node of the blockchain platform performs pre-warning on the power grid data of the blockchain platform based on the pre-warning rule data carried by the smart contract.

[0101] In one embodiment, the above-mentioned blockchain platform-based power grid data management device further includes:

[0102] The ciphertext acquisition module is configured to obtain the ciphertext C based on the smart contract if a power grid data is modified, deleted, or added;

[0103] The decryption module is configured to decrypt the ciphertext C based on the key K to obtain the pre-warning rule data;

[0104] The comparison module is configured to compare the power grid data before and after uploading based on the early warning rule data.

[0105] The early warning execution module is configured to generate early warning information if the post-contrast fails, and store the early warning information in the blockchain.

[0106] In one of the embodiments, the early warning rule data includes a message name, a message template, a message attachment, and a recipient list, and the message attachment includes early warning information. The device further includes:

[0107] The first email information generation module is configured to determine the message name and fill the content of the message template based on the early warning information.

[0108] The second email information generation module is configured to determine the recipient list based on the content of the abnormal power grid data corresponding to the early warning information.

[0109] The email sending module is configured to generate and send an email to each recipient in the recipient list, wherein the subject of the email is generated based on the message name, and the body of the email is generated based on the message template after filling the content.

[0110] In one of the embodiments, the power grid data management device based on the blockchain platform further includes:

[0111] The recording module is configured to record user information associated with the early warning information.

[0112] The early warning traceability module is configured to display an early warning traceability interface in response to a selection operation on the early warning traceability link carried in the body of the email. The early warning traceability interface displays all operation logs corresponding to the user information, and by default, the operation log content related to the early warning information is placed at the top.

[0113] Each of the modules in the power grid data management device based on the blockchain platform can be realized by software, hardware, or a combination thereof, in whole or in part. Each of the modules can be embedded in or independent of the processor in the computer device in hardware form, or stored in the memory in the computer device in software form, so as to be called and executed by the processor to perform the operations corresponding to each of the modules.

[0114] In one exemplary embodiment, a computer device, which can be a server, is provided, and an internal structure diagram of the computer device can be as shown in Figure 6As shown in the figure. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. Among them, the processor, the memory and the input / output interface are connected through the system bus, and the communication interface is connected to the system bus through the input / output interface. Among them, the processor of the computer device is used to provide computing and control capability. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store XX data. The input / output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used to communicate with the terminal outside through the network connection. The computer program is executed by the processor to realize a power grid data management method based on a blockchain platform.

[0115] Those skilled in the art can understand that, Figure 6 The structure shown in the figure is only a block diagram of part of the structure related to the scheme of the present application, and does not constitute a limitation on the computer device to which the scheme of the present application is applied. The specific computer device can include more or fewer components than those shown in the figure, or combine certain components, or have a different component arrangement.

[0116] In one exemplary embodiment, a computer device is provided, including a memory and a processor, the memory storing a computer program, and the processor executing the computer program to realize the steps in the above method embodiments and realize the corresponding functions, which are not repeated here.

[0117] In one embodiment, a computer readable storage medium is provided, which stores a computer program, and the computer program is executed by the processor to realize the steps in the above method embodiments and realize the corresponding functions, which are not repeated here.

[0118] In one embodiment, a computer program product is provided, including a computer program, and the computer program is executed by the processor to realize the steps in the above method embodiments and realize the corresponding functions, which are not repeated here.

[0119] It should be noted that the user information (including but not limited to user equipment information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, displayed data, etc.) involved in the present application are all information and data authorized by the user or authorized by all parties, and the collection, use and processing of related data need to comply with relevant regulations.

[0120] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a non-volatile computer readable storage medium, and when executed, can include the processes of the above-mentioned embodiment methods. Any reference to memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. The non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical storage, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. The volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration but not limitation, the RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc. The database involved in the embodiments provided in the present application can include at least one of a relational database and a non-relational database. The non-relational database can include a distributed database based on a block chain, etc., without being limited thereto. The processor involved in the embodiments provided in the present application can be a general-purpose processor, a central processing unit, a graphics processing unit, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., without being limited thereto.

[0121] The technical features of the above embodiments can be combined in any manner. To make the description concise, not all possible combinations of the technical features in the above embodiments are described, but as long as the combinations of the technical features do not exist contradictions, they should be considered as the scope of the present application.

[0122] The above-described embodiments are merely illustrative of several embodiments of the present application, and the description is relatively specific and detailed, but should not be understood as a limitation on the scope of the patent. It should be noted that for those skilled in the art, without departing from the concept of the present application, a number of modifications and improvements can be made, which are all within the scope of the present application. Therefore, the scope of protection of the present application should be subject to the appended claims.

Claims

1. A blockchain platform-based power grid data management method, characterized in that, The method comprises: In response to the early warning configuration operation in the early warning configuration interface, generate early warning rule data; Convert the early warning rule data into a binary sequence D = {d1, d2, …, dm}, where di∈{0,1}; Generate a set of random binary keys K = {k1, k2, …, km} through quantum entanglement or quantum randomness, where ki∈{0,1}; Perform bit-by-bit XOR operation on the early warning rule data processed by the binary sequence using the key to obtain ciphertext C: C = D ⊕ K Where ⊕ represents XOR operation; Based on the ciphertext, generate a smart contract and deploy it on the chain to enable each node of the blockchain platform to perform early warning on the power grid data of the blockchain platform based on the early warning rule data carried by the smart contract; The method further comprises: If a power grid data is modified, deleted, or increased, obtain the ciphertext C based on the smart contract; Decrypt the ciphertext C based on the key K to obtain the early warning rule data; Compare the power grid data before and after the chain based on the early warning rule data; If the comparison fails, generate an early warning information and store it on the chain; Wherein, the XOR operation is a reversible process, and the same key is used for two times of XOR operation to obtain the binary sequence corresponding to the early warning rule data, and the early warning rule data can be determined reversely according to the binary sequence.

2. The method of claim 1, wherein, The early warning rule data includes message name, message template, message attachment and recipient list, and the message attachment includes the early warning information, and the method further comprises: Determine the message name and fill the content of the message template based on the early warning information; Determine the recipient list based on the content of the abnormal power grid data corresponding to the early warning information; Generate and send an email to each recipient in the recipient list, wherein the subject of the email is generated based on the message name, and the body of the email is generated based on the filled message template.

3. The method of claim 2, wherein, After sending the email, the method further comprises: Record the user information associated with the early warning information; In response to the selection operation of the early warning trace link carried in the email body, display an early warning trace interface, and the early warning trace interface displays all operation logs corresponding to the user information, and the operation log content of the early warning information is displayed by default. 4.A blockchain platform-based power grid data management device, characterized in that, The device comprises: An early warning rule configuration module for generating early warning rule data in response to early warning configuration operation in the early warning configuration interface; A conversion module for converting the early warning rule data into a binary sequence D = {d1, d2, …, dm}, where di∈{0,1}; A key generation module for generating a set of random binary keys K = {k1, k2, …, km} through quantum entanglement or quantum randomness, where ki∈{0,1}; An encryption module for performing bit-by-bit XOR operation on the early warning rule data processed by the binary sequence using the key to obtain ciphertext C: C = D ⊕ K Where ⊕ represents XOR operation; The early warning rule chaining module is configured to generate a smart contract based on the ciphertext and deploy the smart contract on a chain to enable each node of a blockchain platform to perform early warning on power grid data of the blockchain platform based on early warning rule data carried by the smart contract; The apparatus further includes: The ciphertext obtaining module is configured to, if the power grid data is modified, deleted or increased, obtain ciphertext C based on the smart contract; The decryption module is configured to decrypt the ciphertext C based on the key K to obtain the early warning rule data; The comparison module is configured to compare the power grid data before and after being chained based on the early warning rule data; The early warning execution module is configured to, if the after-the-fact comparison fails, generate early warning information and store the early warning information on a chain. The XOR operation is a reversible process, and the same key is used to perform the XOR operation twice to obtain a binary sequence corresponding to the early warning rule data, and the early warning rule data can be reversely determined based on the binary sequence.

5. The apparatus of claim 4, wherein, The early warning rule data includes a message name, a message template, a message attachment and a recipient list, the message attachment includes the early warning information, and the apparatus further includes: The first email information generation module is configured to determine the message name and fill the content of the message template based on the early warning information. The second email information generation module is configured to determine the recipient list based on the content of the abnormal power grid data corresponding to the early warning information. The email sending module is configured to generate and send an email to each recipient in the recipient list, wherein the subject of the email is generated based on the message name, and the body of the email is generated based on the message template after filling the content.

6. The apparatus of claim 5, wherein, The apparatus further includes: The recording module is configured to record user information associated with the early warning information. The early warning trace module is configured to, in response to a selection operation on an early warning trace link carried in the body of the email, display an early warning trace interface, and the early warning trace interface displays all operation logs corresponding to the user information and defaults to top the operation log content of the early warning information. 7.A computer device, comprising a memory and a processor, wherein the memory stores a computer program, and the computer device is configured to perform the method according to any one of claims 1-6 when the computer program is executed by the processor. The processor executes the computer program to implement the steps of the method of any one of claims 1 to 3.

8. A computer-readable storage medium having stored thereon a computer program, characterized in that, The computer program is executed by the processor to implement the steps of the method of any one of claims 1 to 3.

Citation Information

Patent Citations

  • Multivariate heterogeneous data model of agricultural product detection result and construction method thereof

    CN113222625A

  • Block chain oracle machine updatable encryption method and system based on post quantum cryptography

    CN118677687A