Block chain platform-based power grid data management method and device, computer equipment and readable storage medium

By generating and managing grid data on the blockchain platform, using quantum entanglement to generate keys for encryption, and generating smart contracts to be chained, data silos and trust problems in grid data management are solved, and data security management and full grid consensus are achieved.

CN119691068AActive Publication Date: 2025-03-25GUIZHOU POWER GRID CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202411741126.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-29
Publication Date
2025-03-25
Estimated Expiration
2044-11-29

AI Technical Summary

Technical Problem

In the power grid data management scenario, IT asset data has multiple systems characteristics, resulting in data islands and weak trust environments. Data management problems based on blockchain platforms still exist.

Method used

By generating early warning rule data on the blockchain platform, converting it into binary sequences, and generating keys through quantum entanglement or quantum randomness, performing bit-by-bit XOR operations on the data, generating ciphertexts, and then generating smart contracts based on the ciphertext and deploying them on the chain, the warning and management of power grid data is realized.

Benefits of technology

It realizes the security management of power grid data, provides data integrity and immutability, ensures that the warning rules are not tampered with and the rules consensus of the entire grid, and improves the security and reliability of data management.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119691068A_ABST
    Figure CN119691068A_ABST
Patent Text Reader

Abstract

The invention relates to a power grid data management method and device based on a block chain platform, computer equipment and a readable storage medium. In a full 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, bit-by-bit XOR operation is performed on the early warning rule data after binary sequence processing by using the keys to obtain a ciphertext, and then an intelligent contract is generated based on the ciphertext. According to the method, the intelligent contract is encrypted, and the intelligent contract is subjected to uplink deployment, so that each node of the block chain platform performs early warning of the power grid data of the block chain platform based on the early warning rule data carried by the intelligent contract, effective data security assurance is provided for power grid data management based on the block chain platform, and the early warning rule uplink based on the encryption method is improved. And the early warning rule can be prevented from being tampered and the rule consensus of the whole power grid can be achieved, so that the safety management of the power grid data can be realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of blockchain data management, and in particular to a power grid data management method, device, computer equipment and readable storage medium based on a blockchain platform. Background Art

[0002] In the power grid data management scenario, IT asset data has the characteristics of multiple systems such as financial systems, asset management systems, and IT asset mobile application systems. There is a weak trust environment problem caused by data islands. The blockchain platform can achieve the connection of multiple systems, but the problem of blockchain-based data management still exists. Summary of the invention

[0003] Based on this, 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 in response to the above technical problems.

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

[0005] In response to the warning configuration operation performed on the warning configuration interface, generating warning rule data;

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

[0007] Generate a set of random binary keys K={k1, k2, …, km} through quantum entanglement or quantum randomness, where ki∈{0,1};

[0008] Use the key to perform bit-by-bit XOR operation on the warning rule data after binary sequence processing to obtain the ciphertext C:

[0009] C=D⊕K

[0010] Among them, ⊕ represents the exclusive OR operation;

[0011] A smart contract is generated based on the ciphertext and deployed on the chain, so that each node of the blockchain platform can provide early warning of the power grid data of the blockchain platform based on the early warning rule data carried by the smart contract.

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

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

[0014] Decrypt the ciphertext C based on the key K to obtain the warning rule data;

[0015] Based on the early warning rule data, compare the power grid data before and after it is uploaded to the chain;

[0016] If the comparison fails, a warning message will be generated and stored on the chain.

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

[0018] Based on the warning information, determine the message name and fill in the content of the message template;

[0019] Determine a recipient list based on the content of abnormal power grid data corresponding to the warning information;

[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 the content is filled in.

[0021] In one embodiment, after sending the email, the method further includes:

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

[0023] In response to selecting an operation on the warning tracing link in the body of the email, a warning tracing interface is displayed. The warning tracing interface displays all operation logs corresponding to the user information, and the operation log content with warning information is pinned to the top by default.

[0024] In a second aspect, a power grid data management device based on a blockchain platform is provided, the device comprising:

[0025] An early warning rule configuration module, used to generate early warning rule data in response to an early warning configuration operation performed on an early warning configuration interface;

[0026] The conversion module is used to convert the warning rule data into a binary sequence D = {d1, d2, ..., dm}, where di∈{0,1};

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

[0028] The encryption module is used to use the key to perform bit-by-bit XOR operation on the warning rule data after binary sequence processing to obtain the ciphertext C:

[0029] C=D⊕K

[0030] Among them, ⊕ represents the exclusive OR operation;

[0031] The early warning rule chain module is used 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 can issue an early warning of the power grid data of the blockchain platform based on the early warning rule data carried by the smart contract.

[0032] In one embodiment, the above device further comprises:

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

[0034] A decryption module, used to decrypt the ciphertext C based on the key K to obtain the warning rule data;

[0035] The comparison module is used to compare the power grid data before and after uploading to the chain based on the early warning rule data;

[0036] The early warning execution module is used to generate early warning information if the subsequent comparison fails, and store the early warning information on the chain.

[0037] In one embodiment, the warning rule data includes a message name, a message template, a message attachment, and a recipient list, the message attachment includes warning information, and the device further includes:

[0038] A first email information generating module, used to determine a message name and fill in the content of a message template based on the warning information;

[0039] A second email information generating module is used to determine a recipient list based on the content of the abnormal power grid data corresponding to the warning information;

[0040] The email sending module is used to generate and send emails 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 the content is filled.

[0041] In one embodiment, the above device further comprises:

[0042] A recording module is used to record user information associated with the warning information;

[0043] The early warning tracing module is used to respond to the selection operation of the early warning tracing link carried in the email body, and display the early warning tracing interface. The early warning tracing interface displays all operation logs corresponding to user information, and the operation log content with early warning information is pinned to the top by default.

[0044] In a third aspect, a computer device is provided, including a memory and a processor, wherein 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, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the above method are implemented.

[0046] The above-mentioned power grid data management method, device, computer equipment and readable storage medium based on the blockchain platform. In the full life cycle of power grid data management, by converting the warning rule data into a binary sequence D, and then generating a set of random binary keys K through quantum entanglement or quantum randomness, the warning rule data after binary sequence processing is subjected to bit-by-bit XOR operation using the key to obtain ciphertext, and then a smart contract is generated based on the ciphertext, and the smart contract is deployed on the chain, so that each node of the blockchain platform can perform a warning of the power grid data of the blockchain platform based on the warning rule data carried by the smart contract, providing effective data security guarantee for power grid data management based on the blockchain platform, and the warning rules based on the encryption method are chained, which can also ensure that the warning rules are not tampered with and reach a consensus on the rules of the entire power grid, based on which the safe management of power grid data can be achieved. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0048] Figure 1 This is one of the flow charts of a power grid data management method based on a blockchain platform in one embodiment;

[0049] Figure 2 The second flowchart of a power grid data management method based on a blockchain platform in one embodiment;

[0050] Figure 3 The third flowchart of a power grid data management method based on a blockchain platform in one embodiment;

[0051] Figure 4 The fourth flowchart of a power grid data management method based on a blockchain platform in one embodiment;

[0052] Figure 5 It is a structural block diagram of a power grid data management device based on a blockchain platform in one embodiment;

[0053] Figure 6 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0054] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0055] This application provides a power grid data management method based on a blockchain platform, such as Figure 1 As shown, the method includes:

[0056] S101, in response to an early warning configuration operation performed in an early warning configuration interface, early warning rule data is generated. The early warning configuration interface may display a form or configuration options of early warning configuration, including but not limited to comparison rules, thresholds, trigger conditions, recipients, notification methods, etc.

[0057] Optionally, before step S101, the following steps may also be included:

[0058] A user logs into a system, typically by entering a username and password to authenticate themselves.

[0059] The system verifies the user's permissions to ensure that the user has permission to access the warning configuration interface.

[0060] Before generating the alert rule data, you can perform a preliminary verification of the information submitted under the alert configuration operation to ensure that all required fields are filled in and the data format is correct.

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

[0062] S103, generate a set of random binary keys K={k1, k2, …, km} through quantum entanglement or quantum randomness, where ki∈{0,1}. Encryption and decryption based on quantum mechanics provide 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 warning rule data after binary sequence processing, to obtain ciphertext C:

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

[0065] Among them, ⊕ represents the exclusive OR operation.

[0066] By processing the warning rule data into a binary sequence and performing an XOR operation on the key and the binary sequence, due to the reversibility of the XOR operation, the original data can be restored by performing two XOR operations with the same key. This means that during the encryption and decryption process, no additional storage space is required to save the intermediate state or ciphertext, thereby saving resources. When users configure the above warning rules on the mobile device side, the storage space occupied by the mobile device can be effectively reduced.

[0067] In addition, the bit-by-bit XOR operation is very efficient and has a very fast processing speed. This encryption method can achieve fast encryption and decryption in the process of managing massive data in the power grid.

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

[0069] Specifically, in the full life cycle of power grid data management, the warning rule data is converted into a binary sequence D, and then a set of random binary keys K is generated through quantum entanglement or quantum randomness. The key is used to perform bit-by-bit XOR operations on the warning rule data after binary sequence processing to obtain ciphertext, and then a smart contract is generated based on the ciphertext, and the smart contract is deployed on the chain, so that each node of the blockchain platform can perform warning of the power grid data of the blockchain platform based on the warning rule data carried by the smart contract, thereby providing effective data security guarantees for power grid data management based on the blockchain platform. Moreover, the warning rules based on the encryption method are uploaded to the chain, which can also ensure that the warning rules are not tampered with and reach a consensus on the rules of the entire power grid. Based on this, the secure management of power grid data can be achieved.

[0070] In one embodiment, if Figure 2 As shown, the above method also includes:

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

[0072] S202, decrypt the ciphertext C based on the key K to obtain the warning rule data. As mentioned above, the XOR operation is a reversible process, and the binary sequence corresponding to the warning rule data can be obtained by performing two XOR operations using the same key, and the warning rule data can be further reversely determined based on the binary sequence.

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

[0074] S204: If the comparison fails, a warning message is generated and the warning message is stored on the chain.

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

[0076] The extracted power grid data is compared and analyzed with the data of the benchmark point, and the comparison results are recorded on the blockchain for subsequent query and analysis. At the same time, early warning information is generated to notify the corresponding users.

[0077] The method provided in the embodiment of the present application makes warning judgments based on data comparison, and uploads the warning information to the chain for subsequent review, viewing and other operations, thereby ensuring that user operations in the event of a warning can be traced.

[0078] In one embodiment, the warning rule data includes a message name, a message template, a message attachment, and a recipient list, and the message attachment includes warning information, such as Figure 3 As shown, the method also includes:

[0079] S301, based on the warning information, determine the message name and fill in the content of the message template.

[0080] After receiving the warning information from the power grid, the first thing to do is to identify the type or level of the warning, and then determine a suitable message name based on this. For example, the structure of the message name can be "XX level XX type warning". The message template can be a text frame containing placeholders (such as {warning level}, {warning type}, {occurrence time}, {impact range}, etc.). When the warning information is received, these placeholders are replaced with actual values ​​according to the specific content of the warning information, thereby completing the filling of the message template.

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

[0082] After filling in the message template, determine which personnel need to receive the warning notification based on the warning type, warning level, and impact range reflected in the warning information. Based on the differences in warning information, the recipient list may include power grid maintenance personnel, dispatchers, and heads of relevant departments. The selection of recipients is mainly based on their roles in the power grid architecture, scope of responsibilities, and relevance to the 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 message template after the content is filled.

[0084] By automatically generating emails based on rules for early warning notifications when an early warning occurs, relevant personnel can be informed of abnormalities in the power grid data stored on the chain as soon as possible, so that they can correct the data in a timely manner or adjust the permissions of relevant users.

[0085] Optionally, before sending an email, verify the recipient's permissions to ensure that only those who are authorized to receive such information can receive it. For example, if an employee resigns or changes positions, the recipient's permissions will change, so verification before sending an email can avoid information leakage.

[0086] In one embodiment, after sending the email, Figure 4 As shown, the above method also includes:

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

[0088] S402, in response to selecting an operation on a warning tracing link in the body of the email, displaying a warning tracing interface, the warning tracing interface displays all operation logs corresponding to the user information, and by default places the operation log content containing the warning information at the top.

[0089] The warning information associated with each email notification record can be traced back to the warning information through email, and then each warning information can be traced back to the full life cycle transaction record of each power grid data (such as IT asset management data) through each warning information.

[0090] In addition, by pinning the operation log content with warning information to the top, all warning situations corresponding to the user information can be quickly viewed in a unified manner. If the frequency of warning information operations of a user exceeds the preset threshold, the user will be added to the blacklist and reported to the system administrator to review the user's identity to further improve the security of power grid data management based on the blockchain platform.

[0091] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages 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 to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

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

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

[0094] An early warning rule configuration module, used to generate early warning rule data in response to an early warning configuration operation performed on an early warning configuration interface;

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

[0096] A key generation module, used 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 used to use the key to perform bit-by-bit XOR operation on the warning rule data after binary sequence processing to obtain the ciphertext C:

[0098] C=D⊕K

[0099] Among them, ⊕ represents the exclusive OR operation;

[0100] The early warning rule chain module is used 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 can issue an early warning of the power grid data of the blockchain platform based on the early warning rule data carried by the smart contract.

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

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

[0103] A decryption module, used to decrypt the ciphertext C based on the key K to obtain the warning rule data;

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

[0105] The early warning execution module is used to generate early warning information if the subsequent comparison fails, and store the early warning information on the chain.

[0106] In one embodiment, the warning rule data includes a message name, a message template, a message attachment, and a recipient list, the message attachment includes warning information, and the device further includes:

[0107] A first email information generating module, used to determine a message name and fill in the content of a message template based on the warning information;

[0108] A second email information generating module is used to determine a recipient list based on the content of the abnormal power grid data corresponding to the warning information;

[0109] The email sending module is used to generate and send emails 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 the content is filled.

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

[0111] A recording module is used to record user information associated with the warning information;

[0112] The early warning tracing module is used to respond to the selection operation of the early warning tracing link carried in the email body, and display the early warning tracing interface. The early warning tracing interface displays all operation logs corresponding to user information, and the operation log content with early warning information is pinned to the top by default.

[0113] Each module in the above-mentioned power grid data management device based on the blockchain platform can be implemented in whole or in part by software, hardware and their combination. Each of the above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the corresponding operations of each of the above modules.

[0114] In an exemplary embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as shown in FIG. Figure 6As shown. 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 a 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 capabilities. 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 an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a power grid data management method based on a blockchain platform is implemented.

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

[0116] In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the steps in the above method embodiment are implemented and corresponding functions are realized, which are not described in detail here.

[0117] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above method embodiment are implemented and corresponding functions are realized, which are not described in detail here.

[0118] In one embodiment, a computer program product is provided, including a computer program. When the computer program is executed by a processor, the steps in the above method embodiment are implemented and corresponding functions are realized, which are not described in detail here.

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

[0120] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the 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. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.

[0121] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.

[0122] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A power grid data management method based on a blockchain platform, characterized in that: The method comprises: In response to the warning configuration operation performed on the warning configuration interface, generating warning rule data; Convert the 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}; Use the key to perform bit-by-bit XOR operation on the warning rule data after binary sequence processing to obtain ciphertext C: C=D⊕K Among them, ⊕ represents the exclusive OR operation; A smart contract is generated based on the ciphertext, and the smart contract is deployed on the chain, so that each node of the blockchain platform can perform early warning of the power grid data of the blockchain platform based on the early warning rule data carried by the smart contract.

2. The method according to claim 1, characterized in that The method further comprises: If a power grid data is modified, deleted, or added, the ciphertext C is obtained based on the smart contract; Decrypt the ciphertext C based on the key K to obtain the warning rule data; Based on the early warning rule data, compare the power grid data before and after uploading to the chain; If the comparison fails, a warning message will be generated and stored on the chain.

3. The method according to claim 2, characterized in that The warning rule data includes a message name, a message template, a message attachment and a recipient list, the message attachment includes the warning information, and the method further includes: Based on the warning information, determine the message name and fill in the content of the message template; Determining a recipient list based on the content of the abnormal power grid data corresponding to the 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 message template after the content is filled.

4. The method according to claim 3, characterized in that After sending the email, the method further includes: Record the user information associated with the warning information; In response to selecting an early warning tracing link in the body of the email, an early warning tracing interface is displayed, wherein the early warning tracing interface displays all operation logs corresponding to the user information, and the operation log content with early warning information is pinned to the top by default.

5. A power grid data management device based on a blockchain platform, characterized in that: The device comprises: An early warning rule configuration module, used to generate early warning rule data in response to an early warning configuration operation performed on an early warning configuration interface; A conversion module, used for converting the warning rule data into a binary sequence D={d1, d2, ..., dm}, where di∈{0,1}; A key generation module, used to generate a set of random binary keys K={k1, k2, …, km} through quantum entanglement or quantum randomness, where ki∈{0,1}; The encryption module is used to use the key to perform bit-by-bit XOR operation on the warning rule data after binary sequence processing to obtain the ciphertext C: C=D⊕K Among them, ⊕ represents the exclusive OR operation; The early warning rule chain module is used 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 can perform early warning of the power grid data of the blockchain platform based on the early warning rule data carried by the smart contract.

6. The device according to claim 5, characterized in that The device also includes: The ciphertext acquisition module is used to obtain the ciphertext C based on the smart contract if a power grid data is modified, deleted or added; A decryption module, used to decrypt the ciphertext C based on the key K to obtain the warning rule data; A comparison module, used for comparing the power grid data before and after uploading to the chain based on the warning rule data; The early warning execution module is used to generate early warning information if the subsequent comparison fails, and store the early warning information on the chain.

7. The device according to claim 6, characterized in that The warning rule data includes a message name, a message template, a message attachment and a recipient list, the message attachment includes the warning information, and the device further includes: A first email information generating module, used to determine a message name and fill in the content of a message template based on the warning information; A second email information generating module, configured to determine a recipient list based on the content of the abnormal power grid data corresponding to the warning information; The mail sending module is used to generate and send mails to each recipient in the recipient list, wherein the subject of the mail is generated based on the message name, and the body of the mail is generated based on the message template after filling in the content.

8. The device according to claim 7, characterized in that The device also includes: A recording module is used to record user information associated with the warning information; The early warning tracing module is used to respond to the early warning tracing link selection operation carried in the email body, and display the early warning tracing interface, wherein the early warning tracing interface displays all operation logs corresponding to the user information, and the operation log content with early warning information is pinned to the top by default.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 4 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 4 are implemented.

Citation Information

Patent Citations

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

    CN113222625A

  • Block chain data processing method and device, electronic equipment and storage medium

    CN115952519A

  • Network data information security protection method based on block chain technology

    CN118013560A

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

    CN118677687A

  • Data processing method and apparatus for blockchain privacy protection, and computer device

    WO2022007243A1