Power dispatching data processing method, system, device and medium based on blockchain
Through the power dispatching data processing method based on the blockchain, the problems of power dispatching data transmission pressure and insufficient security are solved, the safe interaction and real-time synchronization of power dispatching data are realized, and the reliability and efficiency of data processing are improved.
Patent Information
- Application Number
- CN202210327142.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-30
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2042-03-30
AI Technical Summary
The existing power dispatching data transmission method has problems such as frequent data interaction, transmission pressure caused by large data volume, difficulty in maintenance and management, low data sharing efficiency, and insufficient security.
A blockchain-based power dispatch data processing method is used to establish a secure channel through identity verification to realize data interaction between the power dispatch system and the blockchain, perform data processing and consensus elections, and ensure data security and real-time synchronization.
It effectively prevents unauthorized users from obtaining power dispatch data, improves the reliability and confidentiality of data interaction, realizes real-time and dynamic synchronization of power dispatch data, and reduces the difficulty of maintenance and management.
Smart Images

Figure CN114650298B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of electric power automation and relates to a blockchain-based electric power dispatching data processing method, system, equipment and medium. Background Art
[0002] During the construction of new power systems, due to the access of multiple entities such as microgrids, distributed power generation units and new energy power systems, as well as the improvement of the intelligence of new power systems, power dispatching data has the characteristics of scattered data sources, large data volume and high data transmission frequency, which puts forward higher requirements on the interactive capabilities of data transmission and processing of power systems, especially power dispatching systems.
[0003] At present, power dispatching data mostly adopts a one-to-many transmission mode, and the superior dispatching organization only exchanges data with multiple subordinate dispatching organizations within its jurisdiction. However, this interaction mode, on the one hand, brings huge pressure to the upstream data transmission channel when the power dispatching data interaction is frequent and the data volume is large, and it is not easy to maintain and manage; on the other hand, the data sharing and interaction efficiency between dispatching organizations at all levels, dispatching systems and other systems is low, and the power dispatching data cannot be synchronized in real time and dynamically. In addition, there is a risk of tampering with the power dispatching data during transmission, and the security of the power dispatching data cannot be effectively guaranteed, which in turn brings certain difficulties to the development of new dispatching services such as source-grid-load-storage and load dispatching. Summary of the invention
[0004] The purpose of the present invention is to overcome the shortcomings of the above-mentioned prior art and provide a blockchain-based power dispatching data processing method, system, device and medium.
[0005] In order to achieve the above object, the present invention adopts the following technical solutions:
[0006] In a first aspect of the present invention, a method for processing power dispatching data based on blockchain comprises:
[0007] Receive identity information and channel establishment request sent by the power dispatching system;
[0008] Respond to the channel establishment request to verify the identity information. When the identity information verification is passed, a blockchain interface is allocated to the power dispatching system, and channel establishment confirmation information is generated and sent to the power dispatching system; wherein the channel establishment confirmation information is used to trigger the power dispatching system to send a data processing task;
[0009] Receive the data processing task sent by the power dispatching system and send it to the blockchain through the blockchain interface; the data processing task is used to trigger the blockchain to process data, obtain the data processing results and send them;
[0010] Receive the data processing results sent by the blockchain and send them to the power dispatching system.
[0011] Optionally, before the response channel establishes the request to verify the identity information, the process further includes:
[0012] Traverse each identity information in the preset blacklist. When the identity information that is the same as the current identity information exists in the blacklist, refuse to respond to the channel establishment request; when the identity information that is the same as the current identity information does not exist in the blacklist, respond to the channel establishment request to verify the identity information, and when the number of times the current identity information verification fails is greater than the preset number, add the current identity information to the blacklist.
[0013] Optionally, the response channel establishment request verification identity information includes:
[0014] Traverse each identity information in the preset whitelist. When the identity information identical to the current identity information does not exist in the whitelist, the identity information verification fails. When the identity information identical to the current identity information exists in the whitelist, generate a key negotiation request and send it to the power dispatching system. The key negotiation request is used to trigger the power dispatching system to feedback key response information.
[0015] Receive the response information sent by the electric power dispatching system and verify it. When the response information verification fails, the identity information verification fails; when the response information verification passes, the identity information verification passes.
[0016] Optionally, the receiving of a data processing task sent by the electric power dispatching system and sending the task to the blockchain through the blockchain interface includes:
[0017] Receive and parse the data processing task sent by the power dispatching system, obtain the task type and sender identity information of the data processing task, and verify the sender identity information;
[0018] When the sender's identity information verification fails, the data processing task is rejected from being sent to the blockchain; when the sender's identity information verification passes, the data processing task and task type are sent through the blockchain interface to the network node corresponding to the type of data processing task in the blockchain.
[0019] Optionally, the task type of the data processing task includes a calculation type and a text type;
[0020] When the task type of the data processing task is a computing type, the sending of the data processing task and the task type to the network node corresponding to the type of the data processing task in the blockchain through the blockchain interface includes: sending the data processing task and the computing type to each computing node in the blockchain through the blockchain interface; wherein the data processing task and the computing type are used to trigger each computing node in the blockchain to verify, calculate and elect a consensus on the data processing task to obtain a data processing result; and triggering the broadcast node in the blockchain to broadcast the data processing result to all network nodes of the blockchain, and send the data processing result;
[0021] When the task type of the data processing task is a text type, sending the data processing task and the task type to the network node corresponding to the type of the data processing task in the blockchain through the blockchain interface includes: sending the data processing task and the text type to each broadcast node in the blockchain through the blockchain interface; wherein the data processing task and the text type are used to trigger each broadcast node in the blockchain to verify and consensus elect the data processing task to obtain a data processing result, and broadcast the data processing result to all network nodes of the blockchain, and send the data processing result.
[0022] Optionally, the receiving of the data processing result sent by the blockchain and sending it to the power dispatching system specifically includes:
[0023] Receive the data processing results sent by the blockchain and convert them into a form suitable for processing by the power dispatching system;
[0024] The address information of the electric power dispatching system is obtained, and according to the address information of the electric power dispatching system, the converted data processing result is sent to the electric power dispatching system.
[0025] In a second aspect of the present invention, a blockchain-based power dispatching data processing system comprises:
[0026] A request receiving module, used to receive identity information and channel establishment request sent by the power dispatching system;
[0027] An identity recognition module is used to respond to a channel establishment request to verify identity information. When the identity information verification is successful, a blockchain interface is allocated to the electric power dispatching system, and channel establishment confirmation information is generated and sent to the electric power dispatching system; wherein the channel establishment confirmation information is used to trigger the electric power dispatching system to send a data processing task;
[0028] The information management module is used to receive the data processing tasks sent by the power dispatching system and send them to the blockchain through the blockchain interface; the data processing tasks are used to trigger the blockchain to process data, obtain the data processing results and send them;
[0029] The forwarding module is used to receive the data processing results sent by the blockchain and send them to the power dispatching system.
[0030] Optionally, the identity recognition module is specifically used for:
[0031] Traverse each identity information in the preset whitelist. When the identity information identical to the current identity information does not exist in the whitelist, the identity information verification fails. When the identity information identical to the current identity information exists in the whitelist, generate a key negotiation request and send it to the power dispatching system. The key negotiation request is used to trigger the power dispatching system to feedback key response information.
[0032] Receive the response information sent by the electric power dispatching system and verify it. When the response information verification fails, the identity information verification fails; when the response information verification passes, the identity information verification passes.
[0033] Optionally, the information management module is specifically used to:
[0034] Receive and parse the data processing task sent by the power dispatching system, obtain the task type and sender identity information of the data processing task, and verify the sender identity information;
[0035] When the sender's identity information verification fails, the data processing task is rejected from being sent to the blockchain;
[0036] When the sender's identity information is verified and the task type of the data processing task is computing type, the data processing task and computing type are sent to each computing node in the blockchain through the blockchain interface; the data processing task and computing type are used to trigger each computing node in the blockchain to verify, calculate and elect consensus on the data processing task to obtain the data processing result; and trigger the broadcast node in the blockchain to broadcast the data processing result to all network nodes of the blockchain, and send the data processing result;
[0037] When the sender's identity information is verified and the task type of the data processing task is text type, the data processing task and the text type are sent to each broadcast node in the blockchain through the blockchain interface; wherein, the data processing task and the text type are used to trigger each broadcast node in the blockchain to verify and elect a consensus on the data processing task, obtain the data processing result, broadcast the data processing result to all network nodes of the blockchain, and send the data processing result.
[0038] In a third aspect of the present invention, a computer device comprises a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above-mentioned blockchain-based power dispatching data processing method when executing the computer program.
[0039] A fourth aspect of the present invention is a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the above-mentioned blockchain-based power dispatching data processing method are implemented.
[0040] Compared with the prior art, the present invention has the following beneficial effects:
[0041] The electric power dispatching data processing method based on blockchain of the present invention first verifies the identity information of the electric power dispatching system. When the identity information verification is passed, a secure channel is established between the electric power dispatching system and the blockchain for data interaction between the electric power dispatching system and the blockchain, which can effectively prevent unauthorized users from obtaining electric power dispatching data during the interaction process, and improve the reliability and confidentiality of data interaction. Then, by establishing a secure channel, the electric power dispatching data of the electric power dispatching system and the data processing results of the blockchain are realized, and data interaction is performed between the electric power dispatching system and the blockchain, realizing the secure interaction of the whole process of chaining, chain processing and reading of the electric power dispatching data, and can synchronize the electric power dispatching data in real time and dynamically, effectively reducing the difficulty of maintenance and management of a large amount of electric power dispatching data. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] Figure 1 This is a flow chart of the power dispatching data processing method based on blockchain of the present invention;
[0043] Figure 2 Establish a flow chart for the safety channel of the present invention;
[0044] Figure 3 A schematic diagram of the interactive process of the computational data processing task of the present invention;
[0045] Figure 4 A schematic diagram of the interactive process of the text data processing task of the present invention;
[0046] Figure 5 A schematic diagram of the interactive process of the data processing results of the present invention;
[0047] Figure 6 This is a schematic diagram of the structure of the blockchain-based power dispatching data processing system of the present invention. DETAILED DESCRIPTION
[0048] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0049] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0050] The present invention is further described in detail below in conjunction with the accompanying drawings:
[0051] First, the basic structure of the current blockchain is introduced. Generally, the blockchain is a decentralized system composed of several network nodes. Among them, the network node can be a separate computer, server, cloud server or server cluster. In addition, based on the capabilities of different network nodes, each network node in the blockchain can be used as a broadcast node and a computing node respectively. Among them, the network nodes with strong computing power and storage capacity in the blockchain serve as broadcast nodes, responsible for verifying and executing the scheduling tasks. After reaching a consensus among the broadcast nodes, the results are broadcast to the entire blockchain. After receiving the results and verifying the source of the information, other network nodes in the blockchain store the results, and the entire blockchain reaches a consensus. All network nodes in the blockchain can serve as computing nodes, responsible for participating in scheduling tasks that require all network nodes to calculate together. After each network node calculates independently, the consensus result is selected according to the election algorithm and then broadcast by the broadcast node, and the entire blockchain reaches a consensus.
[0052] See also Figure 1 In one embodiment of the present invention, a blockchain-based power dispatching data processing method is provided to effectively solve the problem of information security transmission and processing during data interaction between power dispatching systems, and ensure the security of the data interaction process.
[0053] Specifically, the blockchain-based power dispatching data processing method includes the following steps:
[0054] S1: Receive the identity information and channel establishment request sent by the power dispatching system.
[0055] S2: Respond to the channel establishment request to verify the identity information. When the identity information verification is successful, a blockchain interface is allocated to the power dispatching system, and channel establishment confirmation information is generated and sent to the power dispatching system; wherein, the channel establishment confirmation information is used to trigger the power dispatching system to send a data processing task.
[0056] S3: Receive the data processing task sent by the power dispatching system and send it to the blockchain through the blockchain interface; the data processing task is used to trigger the blockchain to perform data processing, obtain the data processing results and send them.
[0057] S4: Receive the data processing results sent by the blockchain and send them to the power dispatching system.
[0058] Specifically, in step S1, before data interaction, a secure channel needs to be established between the power dispatching system and the blockchain, and in order to ensure the security of data interaction, the power dispatching system that is allowed to access needs to be verified to ensure data interaction with a legitimate power dispatching system. In this embodiment, for the power dispatching system that needs to interact with data, the power dispatching system needs to first provide its identity information and channel establishment request, and then implement verification based on the identity information and channel establishment request.
[0059] Among them, in the step S2, after receiving the identity information and channel establishment request sent by the electric power dispatching system, the identity information is verified in response to the channel establishment request. In a possible implementation, the legality of the current identity information is verified in the form of a preset whitelist, and whether to respond to the current channel establishment request is determined by a preset blacklist. The legality specifically refers to that the current electric power dispatching system is a set electric power dispatching system that can interact with the blockchain for data, the whitelist refers to the list of identity information of all set electric power dispatching systems that can interact with the blockchain for data, and the blacklist refers to the list of identity information of all electric power dispatching systems that do not need to respond.
[0060] Specifically, in step S2, responding to the channel establishment request to verify the identity information includes: traversing each identity information in a preset blacklist, and when there is identity information identical to the current identity information in the blacklist, refusing to respond to the channel establishment request; when there is identity information identical to the current identity information in the blacklist, responding to the channel establishment request to verify the identity information, and when the number of times the current identity information verification fails is greater than the preset number of times, adding the current identity information to the blacklist.
[0061] In one possible implementation, when the current identity information verification fails more than 5 times, the identity information is added to a preset blacklist, and no longer responds to the channel establishment request sent by the power dispatching system corresponding to the identity information, so as to avoid wasting system resources caused by continuous responses.
[0062] Specifically, in step S2, the process of verifying the identity information includes: traversing each identity information in the preset white list, when there is no identity information identical to the current identity information in the white list, the identity information verification fails, and when the identity information verification fails, the process of responding to the channel establishment request is terminated. When there is identity information identical to the current identity information in the white list, a key negotiation request is generated and sent to the electric power dispatching system; wherein the key negotiation request is used to trigger the electric power dispatching system to feedback key response information; receiving the response information sent by the electric power dispatching system and verifying it, when the response information verification fails, the identity information verification fails; when the response information verification passes, the identity information verification passes.
[0063] Specifically, steps S1 and S2 are used to establish a secure channel for data interaction between the power dispatching system and the blockchain. Figure 2 , showing the specific process of establishing a secure channel between the power dispatching system and the blockchain, including the following steps:
[0064] 1. The power dispatching system sends identity information and a channel establishment request.
[0065] 2. After receiving the identity information and the channel establishment request, confirm the identity of the power dispatching system and confirm it with the pre-encrypted and stored whitelist to ensure that the identity of the power dispatching system is safe and legal. In addition, when the identity of the power dispatching system is illegal, a warning will be fed back and the channel establishment will be organized at the same time. When the power dispatching system continuously sends the channel establishment request for more than 5 times, the power dispatching system will be blacklisted and will no longer respond to its channel establishment request.
[0066] 3. After identity information verification, a blockchain interface is allocated to the power dispatching system, and a key negotiation request is fed back to the power dispatching system to determine the keys of the communicating parties.
[0067] 4. The electric power dispatching system responds to the key negotiation request and feeds back key response information.
[0068] 5. After receiving the key response information, generate channel establishment confirmation information and send it to the power dispatching system.
[0069] 6. After the power dispatching system receives the channel establishment confirmation information, it completes the establishment of a secure channel with the blockchain.
[0070] Specifically, in step S3, receiving the data processing task sent by the electric power dispatching system and sending it to the blockchain through the blockchain interface includes: receiving the data processing task sent by the electric power dispatching system and parsing it to obtain the task type of the data processing task and the identity information of the sender, and verifying the sender identity information; when the sender identity information verification fails, refusing to send the data processing task to the blockchain; when the sender identity information verification passes, sending the data processing task and the task type through the blockchain interface to the network node corresponding to the type of the data processing task in the blockchain.
[0071] In a possible implementation, verifying the sender identity information is to verify whether the current sender identity information is the same as the identity information of the requester establishing the secure channel. Wherein, when the task type of the data processing task is obtained by parsing the data processing task sent by the power dispatching system, the task type of the data processing task can be built-in before the power dispatching system sends the data processing task, or the specific information of the data processing task is obtained by parsing, and the task type of the data processing task is determined by a preset task division method.
[0072] In a possible implementation, the task type of the data processing task includes a computing type and a text type; when the task type of the data processing task is a computing type, sending the data processing task and the task type to the network node corresponding to the type of the data processing task in the blockchain through the blockchain interface includes: sending the data processing task and the computing type to each computing node in the blockchain through the blockchain interface; wherein the data processing task and the computing type are used to trigger each computing node in the blockchain to verify, calculate and consensus-elect the data processing task to obtain a data processing result; and trigger the broadcast node in the blockchain to broadcast the data processing result to all network nodes of the blockchain, and send the data processing result.
[0073] For details, see Figure 3 , shows the data interaction between the power dispatching system and the blockchain when the task type of the data processing task is computing type, specifically including the following steps:
[0074] 1. The electric power dispatching system sends data processing tasks.
[0075] 2. Parse the data processing task to obtain the task type and sender identity information of the data processing task.
[0076] 3. Verify the sender's identity information. If the verification is successful, the data processing task will be forwarded. If the verification fails, the data processing task will be refused to be forwarded.
[0077] 4. Send the data processing tasks and calculation types through the blockchain interface to the computing nodes in the blockchain for processing. Optionally, the data processing tasks and calculation types are packaged before sending, and the data is converted into a processing format suitable for the blockchain, thereby improving the information processing efficiency of the blockchain.
[0078] 5. The blockchain computing node verifies the legitimacy of the data processing task based on the task information summary contained in the data processing task. After the verification is passed, the data processing task is calculated according to the calculation request.
[0079] 6. After calculation, the blockchain computing node uses PBFT (Byzantine Fault Tolerant Consensus Algorithm) or PoA (Proof of Activity Consensus Algorithm) to conduct consensus elections and confirm the data processing results.
[0080] 7. After the data processing results are confirmed, the broadcast node in the blockchain will broadcast the data processing results to all network nodes of the blockchain and store the data processing results on the blockchain.
[0081] 8. The broadcast nodes within the blockchain feed back the data processing results to the power dispatching system.
[0082] Among them, when the task type of the data processing task is text type, sending the data processing task and the task type to the network node corresponding to the type of the data processing task in the blockchain through the blockchain interface includes: sending the data processing task and the text type to each broadcast node in the blockchain through the blockchain interface; wherein the data processing task and the text type are used to trigger each broadcast node in the blockchain to verify and consensus elect the data processing task, obtain the data processing result, and broadcast the data processing result to all network nodes of the blockchain, and send the data processing result.
[0083] For details, see Figure 4 , shows the data interaction between the power dispatching system and the blockchain when the task type of the data processing task is text type, which specifically includes the following steps:
[0084] 1. The electric power dispatching system sends data processing tasks.
[0085] 2. Parse the data processing task to obtain the task type and sender identity information of the data processing task.
[0086] 3. Verify the sender's identity information. If the verification is successful, the data processing task will be forwarded. If the verification fails, the data processing task will be refused to be forwarded.
[0087] 4. Send the data processing tasks and text types to the broadcast nodes in the blockchain through the blockchain interface for processing. Optionally, the data processing tasks and calculation types are packaged before sending, and the data is converted into a processing format suitable for the blockchain, thereby improving the information processing efficiency of the blockchain.
[0088] 5. The blockchain broadcast node verifies the legitimacy of the data processing task based on the task information summary contained in the data processing task. After the verification, the text-based task is processed and a consensus election is conducted among the broadcast nodes to confirm the data processing results.
[0089] 6. After the data processing results are confirmed, the broadcast node in the blockchain will broadcast the data processing results to all network nodes of the blockchain and store the data processing results on the blockchain.
[0090] 7. The broadcast nodes within the blockchain feed back the data processing results to the power dispatching system.
[0091] In one possible implementation, see Figure 5 In step S4, receiving the data processing results sent by the blockchain and sending them to the electric power dispatching system specifically includes: receiving the data processing results sent by the blockchain, encapsulating the data processing results, that is, converting the data processing results into a form suitable for processing by the electric power dispatching system, and then obtaining and confirming the address information of the electric power dispatching system, and then sending the encapsulated data processing results to the electric power dispatching system according to the address information of the electric power dispatching system.
[0092] To sum up, the electric power dispatching data processing method based on blockchain of the present invention first verifies the identity information of the electric power dispatching system. When the identity information verification is passed, a secure channel is established between the electric power dispatching system and the blockchain for data interaction between the electric power dispatching system and the blockchain, which can effectively prevent unauthorized users from obtaining electric power dispatching data during the interaction process, and improve the reliability and confidentiality of data interaction. Then, by establishing a secure channel, the electric power dispatching data of the electric power dispatching system and the data processing results of the blockchain are realized, and data interaction is performed between the electric power dispatching system and the blockchain, realizing the secure interaction of the entire process of chaining, on-chain processing and reading of the electric power dispatching data, and can synchronize the electric power dispatching data in real time and dynamically, effectively reducing the difficulty of maintenance and management of a large amount of electric power dispatching data.
[0093] Furthermore, for data processing tasks of different task types, the data processing tasks and task types are sent to different types of network nodes of the blockchain, thereby triggering the blockchain to perform different data processing methods, effectively reducing the data consensus and communication pressure between blockchain network nodes, and improving the efficiency of on-chain and off-chain data interaction.
[0094] The following are device embodiments of the present invention, which can be used to implement the method embodiments of the present invention. For details not disclosed in the device embodiments, please refer to the method embodiments of the present invention.
[0095] See also Figure 6 In another embodiment of the present invention, a blockchain-based power dispatching data processing system is provided, which can be used to implement the above-mentioned blockchain-based power dispatching data processing method. Specifically, the blockchain-based power dispatching data processing system includes a request receiving module, an identity recognition module, an information management module and a forwarding module.
[0096] Among them, the request receiving module is used to receive the identity information and channel establishment request sent by the power dispatching system; the identity recognition module is used to verify the identity information in response to the channel establishment request. When the identity information verification is passed, a blockchain interface is allocated to the power dispatching system, and channel establishment confirmation information is generated and sent to the power dispatching system; wherein, the channel establishment confirmation information is used to trigger the power dispatching system to send a data processing task; the information management module is used to receive the data processing task sent by the power dispatching system, and send it to the blockchain through the blockchain interface; wherein, the data processing task is used to trigger the blockchain to perform data processing, obtain the data processing results and send them; the forwarding module is used to receive the data processing results sent by the blockchain, and send them to the power dispatching system.
[0097] In a possible implementation, the identity recognition module is specifically used to: traverse each identity information in a preset whitelist, and when there is no identity information identical to the current identity information in the whitelist, the identity information verification fails; when there is identity information identical to the current identity information in the whitelist, generate a key negotiation request and send it to the power dispatching system; wherein the key negotiation request is used to trigger the power dispatching system to feedback key response information; receive the response information sent by the power dispatching system and verify it, and when the response information verification fails, the identity information verification fails; when the response information verification passes, the identity information verification passes.
[0098] In a possible implementation, the responding channel establishment request to verify identity information includes: traversing each identity information in a preset blacklist, and when there is identity information identical to the current identity information in the blacklist, refusing to respond to the channel establishment request; when there is identity information identical to the current identity information in the blacklist, responding to the channel establishment request to verify the identity information, and when the number of times the current identity information verification fails is greater than a preset number, adding the current identity information to the blacklist.
[0099] In a possible implementation, the information management module is specifically used to: receive and parse the data processing task sent by the power dispatching system, obtain the task type of the data processing task and the identity information of the sender, and verify the identity information of the sender; when the sender identity information verification fails, refuse to send the data processing task to the blockchain; when the sender identity information verification passes, and the task type of the data processing task is a calculation type, send the data processing task and the calculation type to each computing node in the blockchain through the blockchain interface; wherein the data processing task and the calculation type are used to trigger each computing node in the blockchain to verify, calculate and consensus-elect the data processing task to obtain the data processing result; and trigger the broadcast node in the blockchain to broadcast the data processing result to all network nodes of the blockchain, and send the data processing result; when the sender identity information verification passes, and the task type of the data processing task is a text type, send the data processing task and the text type to each broadcast node in the blockchain through the blockchain interface; wherein the data processing task and the text type are used to trigger each broadcast node in the blockchain to verify and consensus-elect the data processing task to obtain the data processing result, and broadcast the data processing result to all network nodes of the blockchain, and send the data processing result.
[0100] In one possible implementation, the forwarding module is specifically used to: receive the data processing results sent by the blockchain and convert them into a form suitable for processing by the power dispatching system; obtain the address information of the power dispatching system, and send the converted data processing results to the power dispatching system based on the address information of the power dispatching system.
[0101] All relevant contents of each step involved in the aforementioned embodiment of the blockchain-based power dispatching data processing method can be referred to the functional description of the functional modules corresponding to the blockchain-based power dispatching data processing system in the embodiment of the present invention, and will not be repeated here.
[0102] The division of modules in the embodiments of the present invention is schematic and is only a logical function division. There may be other division methods in actual implementation. In addition, each functional module in each embodiment of the present invention may be integrated into one processor, or may exist physically separately, or two or more modules may be integrated into one module. The above-mentioned integrated modules may be implemented in the form of hardware or in the form of software functional modules.
[0103] In another embodiment of the present invention, a computer device is provided, the computer device includes a processor and a memory, the memory is used to store a computer program, the computer program includes program instructions, and the processor is used to execute the program instructions stored in the computer storage medium. The processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. It is the computing core and control core of the terminal, which is suitable for implementing one or more instructions, and is specifically suitable for loading and executing one or more instructions in the computer storage medium to implement the corresponding method flow or corresponding function; the processor described in the embodiment of the present invention can be used for the operation of the power dispatching data processing method based on blockchain. In a possible implementation, the computer device can be used as a network node in the blockchain, and can choose to assume a broadcast node or a computing node according to its own capabilities.
[0104] In another embodiment of the present invention, the present invention also provides a storage medium, specifically a computer-readable storage medium (Memory), which is a memory device in a computer device for storing programs and data. It is understandable that the computer-readable storage medium here can include both built-in storage media in a computer device and, of course, extended storage media supported by the computer device. The computer-readable storage medium provides a storage space, which stores the operating system of the terminal. In addition, one or more instructions suitable for being loaded and executed by a processor are also stored in the storage space, and these instructions can be one or more computer programs (including program codes). It should be noted that the computer-readable storage medium here can be a high-speed RAM memory or a non-volatile memory, such as at least one disk memory. The processor can load and execute one or more instructions stored in the computer-readable storage medium to implement the corresponding steps of the blockchain-based power dispatch data processing method in the above embodiment.
[0105] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0106] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0107] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0108] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0109] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the above embodiments, ordinary technicians in the relevant field should understand that the specific implementation methods of the present invention can still be modified or replaced by equivalents. Any modification or equivalent replacement that does not depart from the spirit and scope of the present invention should be covered within the scope of protection of the claims of the present invention.
Claims
1. A method for processing power dispatching data based on blockchain, characterized in that: include: Receive identity information and channel establishment request sent by the power dispatching system; Respond to the channel establishment request to verify the identity information. When the identity information verification is passed, allocate a blockchain interface to the power dispatching system, establish a secure channel between the power dispatching system and the blockchain, and generate channel establishment confirmation information and send it to the power dispatching system; wherein the channel establishment confirmation information is used to trigger the power dispatching system to send a data processing task; Receive the data processing task sent by the power dispatching system and send it to the blockchain through the blockchain interface; the data processing task is used to trigger the blockchain to process data, obtain the data processing results and send them; Receive the data processing results sent by the blockchain and send them to the power dispatching system; The receiving of the data processing task sent by the power dispatching system and sending it to the blockchain through the blockchain interface includes: Receive and parse the data processing task sent by the power dispatching system, obtain the task type and sender identity information of the data processing task, and verify the sender identity information; When the sender's identity information verification fails, the data processing task is rejected from being sent to the blockchain; when the sender's identity information verification passes, the data processing task and the task type are sent to the network node corresponding to the type of data processing task in the blockchain through the blockchain interface; The task types of the data processing tasks include calculation type and text type; When the task type of the data processing task is a computing type, the sending of the data processing task and the task type to the network node corresponding to the type of the data processing task in the blockchain through the blockchain interface includes: sending the data processing task and the computing type to each computing node in the blockchain through the blockchain interface; wherein the data processing task and the computing type are used to trigger each computing node in the blockchain to verify, calculate and elect a consensus on the data processing task to obtain a data processing result; and triggering the broadcast node in the blockchain to broadcast the data processing result to all network nodes of the blockchain, and send the data processing result; When the task type of the data processing task is a text type, the sending of the data processing task and the task type to the network node corresponding to the type of the data processing task in the blockchain through the blockchain interface includes: sending the data processing task and the text type to each broadcast node in the blockchain through the blockchain interface; wherein the data processing task and the text type are used to trigger each broadcast node in the blockchain to verify and elect a consensus on the data processing task, obtain a data processing result, broadcast the data processing result to all network nodes of the blockchain, and send the data processing result; The receiving of the data processing result sent by the blockchain and sending it to the power dispatching system specifically includes: Receive the data processing results sent by the blockchain and convert them into a form suitable for processing by the power dispatching system; The address information of the electric power dispatching system is obtained, and according to the address information of the electric power dispatching system, the converted data processing result is sent to the electric power dispatching system.
2. The method for processing power dispatching data based on blockchain according to claim 1, characterized in that: Before the response channel establishes the request to verify the identity information, it also includes: Traverse each identity information in the preset blacklist. When the identity information that is the same as the current identity information exists in the blacklist, refuse to respond to the channel establishment request; when the identity information that is the same as the current identity information does not exist in the blacklist, respond to the channel establishment request to verify the identity information, and when the number of times the current identity information verification fails is greater than the preset number, add the current identity information to the blacklist.
3. The method for processing power dispatching data based on blockchain according to claim 1, characterized in that: The response channel establishment request verification identity information includes: Traverse each identity information in the preset whitelist. When the identity information identical to the current identity information does not exist in the whitelist, the identity information verification fails. When the identity information identical to the current identity information exists in the whitelist, generate a key negotiation request and send it to the power dispatching system. The key negotiation request is used to trigger the power dispatching system to feedback key response information. Receive the response information sent by the electric power dispatching system and verify it. When the response information verification fails, the identity information verification fails; when the response information verification passes, the identity information verification passes.
4. A blockchain-based power dispatching data processing system, characterized in that: include: A request receiving module, used to receive identity information and channel establishment request sent by the power dispatching system; The identity recognition module is used to respond to the channel establishment request to verify the identity information. When the identity information verification is passed, the blockchain interface is allocated to the power dispatching system, a secure channel is established between the power dispatching system and the blockchain, and channel establishment confirmation information is generated and sent to the power dispatching system; wherein the channel establishment confirmation information is used to trigger the power dispatching system to send a data processing task; The information management module is used to receive the data processing tasks sent by the power dispatching system and send them to the blockchain through the blockchain interface; the data processing tasks are used to trigger the blockchain to process data, obtain the data processing results and send them; The forwarding module is used to receive the data processing results sent by the blockchain and send them to the power dispatching system; The receiving of the data processing task sent by the power dispatching system and sending it to the blockchain through the blockchain interface includes: Receive and parse the data processing task sent by the power dispatching system, obtain the task type and sender identity information of the data processing task, and verify the sender identity information; When the sender's identity information verification fails, the data processing task is rejected from being sent to the blockchain; when the sender's identity information verification passes, the data processing task and the task type are sent to the network node corresponding to the type of data processing task in the blockchain through the blockchain interface; The information management module is specifically used for: When the sender's identity information is verified and the task type of the data processing task is computing type, the data processing task and computing type are sent to each computing node in the blockchain through the blockchain interface; the data processing task and computing type are used to trigger each computing node in the blockchain to verify, calculate and elect consensus on the data processing task to obtain the data processing result; and trigger the broadcast node in the blockchain to broadcast the data processing result to all network nodes of the blockchain, and send the data processing result; When the sender's identity information is verified and the task type of the data processing task is text type, the data processing task and the text type are sent to each broadcast node in the blockchain through the blockchain interface; the data processing task and the text type are used to trigger each broadcast node in the blockchain to verify and elect a consensus on the data processing task, obtain the data processing result, broadcast the data processing result to all network nodes of the blockchain, and send the data processing result; The receiving of the data processing result sent by the blockchain and sending it to the power dispatching system specifically includes: Receive the data processing results sent by the blockchain and convert them into a form suitable for processing by the power dispatching system; The address information of the electric power dispatching system is obtained, and according to the address information of the electric power dispatching system, the converted data processing result is sent to the electric power dispatching system.
5. The blockchain-based power dispatching data processing system according to claim 4 is characterized in that: The identity recognition module is specifically used for: Traverse each identity information in the preset whitelist. When the identity information identical to the current identity information does not exist in the whitelist, the identity information verification fails. When the identity information identical to the current identity information exists in the whitelist, generate a key negotiation request and send it to the power dispatching system. The key negotiation request is used to trigger the power dispatching system to feedback key response information. Receive the response information sent by the electric power dispatching system and verify it. When the response information verification fails, the identity information verification fails; when the response information verification passes, the identity information verification passes.
6. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the blockchain-based power dispatching data processing method as described in any one of claims 1 to 3 are implemented.
7. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the blockchain-based power dispatching data processing method as described in any one of claims 1 to 3 are implemented.
Citation Information
Patent Citations
Blockchain network identity authentication system, data processing method and gateway equipment
CN111010372A
Block chain-based data sharing platform system, equipment and data sharing method
CN112583802A
