CN117749344A - Power data cross-domain supervision method, system and storage medium based on blockchain - Google Patents

Power data cross-domain supervision method, system and storage medium based on blockchain Download PDF

Info

Publication number
CN117749344A
CN117749344A CN202311057766.9A CN202311057766A CN117749344A CN 117749344 A CN117749344 A CN 117749344A CN 202311057766 A CN202311057766 A CN 202311057766A CN 117749344 A CN117749344 A CN 117749344A
Authority
CN
China
Prior art keywords
chain
cross
event
data
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311057766.9A
Other languages
Chinese (zh)
Inventor
饶庆
王晓婷
肖思昌
石川
刘雯
柳明
丰金浩
潘柳兆
涂京
项涛
彭学林
张梦
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuhan Power Supply Co of State Grid Hubei Electric Power Co Ltd
Original Assignee
Wuhan Power Supply Co of State Grid Hubei Electric Power Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wuhan Power Supply Co of State Grid Hubei Electric Power Co Ltd filed Critical Wuhan Power Supply Co of State Grid Hubei Electric Power Co Ltd
Priority to CN202311057766.9A priority Critical patent/CN117749344A/en
Publication of CN117749344A publication Critical patent/CN117749344A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application relates to a block chain-based power data cross-domain supervision method, a system and a storage medium, wherein the method comprises the following steps that a monitoring node module scans blocks to capture cross-chain events and traverse generation of newly added blocks; the blockchain network adds a cross-domain event identification to the event based on the captured cross-chain event; the communication node of the blockchain network finds out a corresponding event according to the cross-domain event identification, and uploads the event to the central chain for consensus contract audit verification; and the central chain sends the data consensus information to the target chain according to the auditing result of the consensus contract, so that the behavior of the event is synchronously stored on the target chain, the source chain and the target chain reach consensus, and a cross-chain tracing and anomaly discovery function is provided for the target chain. The method utilizes a cross-chain technology to build a central chain, detects abnormality through a consensus contract and then transmits the abnormality to a target chain, and provides functions of cross-chain circulation audit, tracking tracing, abnormality discovery and the like through the central chain.

Description

Power data cross-domain supervision method, system and storage medium based on blockchain
Technical Field
The present disclosure relates to the field of power data supervision, and in particular, to a blockchain-based power data cross-domain supervision method, system, and storage medium.
Background
Digital management is an important work for smart grid construction, and due to the problems of complicated data forms, complex data sharing, application requirements of controlled sharing and the like in smart grids, how to cross systems and how to solve the problems of multi-dimensional data becomes a difficult point, and in order to realize cross-domain supervision of power data, the construction of data sharing and supervision systems by using blockchains has gradually become a research key point.
Disclosure of Invention
The embodiment of the application aims to provide a block chain-based power data cross-domain supervision method, a block chain-based power data cross-domain supervision system and a storage medium, wherein a cross-chain technology is utilized to build a central chain, the abnormal data is detected through a consensus contract and then transmitted to a target chain, and the functions of cross-chain circulation audit, tracking tracing, abnormal discovery and the like are provided through the central chain.
In order to achieve the above purpose, the present application provides the following technical solutions:
in a first aspect, an embodiment of the present application provides a blockchain-based power data cross-domain supervisory system, where the blockchain network includes a central chain formed by control center stations of a power system, a source chain formed by production service departments of the power system, a target chain formed by management departments of the power system, and a communication node, where the central chain is provided with a monitoring node module, the monitoring node module is connected with the source chain formed by the production service departments of the power system and the target chain formed by the management departments of the power system,
the monitoring node module scans the blocks to capture cross-chain events and traverse the generation of newly added blocks;
the blockchain network adds a cross-domain event identifier to the captured cross-chain event based on the event;
the communication node finds a corresponding event according to the identifier, obtains data of the event in the cross-link request, packages time parameters of the data and the block, signs the data by using a private key of the node, and uploads the data to a central chain for consensus contract audit verification;
and the central chain sends the data consensus information to the target chain according to the auditing result of the consensus contract, so that the behavior of the event is synchronously stored on the target chain, the source chain and the target chain reach consensus, and a cross-chain tracing and anomaly discovery function is provided for the target chain.
In a second aspect, embodiments of the present application provide a blockchain-based power data cross-domain supervision method, comprising the following specific steps,
the monitoring node module scans the blocks to capture cross-chain events and traverse the generation of newly added blocks;
the blockchain network adds a cross-domain event identification to the event based on the captured cross-chain event;
the communication node of the blockchain network finds a corresponding event according to the cross-domain event identifier, obtains data of the event in a cross-domain request, packages time parameters of the data and the block, signs the data and the time parameters of the block by using a private key of the node, and uploads the signature to a central chain for consensus contract audit verification;
and the central chain sends the data consensus information to the target chain according to the auditing result of the consensus contract, so that the behavior of the event is synchronously stored on the target chain, the source chain and the target chain reach consensus, and a cross-chain tracing and anomaly discovery function is provided for the target chain.
The method comprises the steps that events in a capturing cross-chain event are specific transactions processed by a block chain, which is equivalent to one independent contract call, the generation of a new added block is traversed, the events are sequenced according to time through an order node, the block structure is analyzed according to event identification and sent to a communication node, because the block is a fixed data structure model, the nested structure of the outer layer of the block is directly disassembled according to data offset, an event list is obtained, each event is provided with an event dictionary, event attributes are found to be event identifications, the communication node finds corresponding events according to the identifications, data of the event in the cross-chain request are obtained, the data are signed by using private keys of the node itself and uploaded to a central chain monitoring node in a package mode with time parameters of the block.
In the central chain, when a cross-chain event passes through the central chain, the blockchain network of the central chain traces all the variation behaviors made on the digital certificate and the event identifier of the cross-chain event specific transaction through the common contract, and checks with the data transferred by the cross-chain event specific transaction to judge whether abnormal and data tampering behaviors occur.
In a third aspect, embodiments of the present application provide a computer readable storage medium storing program code that, when executed by a processor, implements the steps of a blockchain-based power data cross-domain supervision method as described above.
Compared with the prior art, the invention has the beneficial effects that: the invention builds the central chain by using the cross-chain technology, detects the abnormality through the consensus contract, transmits the abnormality to the target chain, and provides the functions of cross-chain circulation audit, tracking tracing, abnormality discovery and the like through the central chain.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments of the present application will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and should not be considered as limiting the scope, and other related drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a system block diagram of an embodiment of the present invention;
FIG. 2 is a flow chart of a method according to an embodiment of the invention.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application. It should be noted that: like reference numerals and letters denote like items in the following figures, and thus once an item is defined in one figure, no further definition or explanation thereof is necessary in the following figures.
The terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The terms "first," "second," and the like, are used merely to distinguish one entity or action from another entity or action, and are not to be construed as indicating or implying any actual such relationship or order between such entities or actions.
Blockchains are a type of distributed ledgers or shared databases. The data stored in the blockchain has the following characteristics: transparency, collective maintainability, non-modifiable, traceability are disclosed. From a data perspective, a blockchain is a nearly non-tamperable distributed data whose distributed nature is manifested not only in the distributed storage of the data, but also as a distributed record of the data. From the technical aspect, the blockchain technology is a result of the common integration of multiple technologies and is not a novel single technology. These techniques are integrated together by a new formal structure that constitutes a new data structure for recording and storing data. Each block consists of a block head and a block body. The block header typically contains some basic information of this block, such as version number, record of the previous block, root value of Merkle tree, timestamp, target feature value, random number, etc. The block consists of transactions that are signed by the user using a private key and verified using a public key. Merkle Hash trees are typically used to generate Hash values for all transactions in this block to reduce the chain's storage overhead. One block also contains the hash value of the previous block to link the two blocks together.
Referring to fig. 1, the embodiment of the application provides a blockchain-based power data cross-domain supervision system, the blockchain network includes a central chain 1 composed of control center stations of a power system, a source chain 3 composed of production service departments of the power system, a target chain 4 composed of management departments of the power system, and communication nodes, a monitoring node module 2 is disposed on the central chain, the monitoring node module 2 is connected with the source chain 3 composed of the production service departments of the power system and the target chain 4 composed of the management departments of the power system,
the monitoring node module 2 scans the blocks to capture cross-chain events and traverse the generation of newly added blocks;
the blockchain network adds a cross-domain event identifier to the captured cross-chain event based on the event;
the communication node finds a corresponding event according to the identifier, obtains data of the event in the cross-link request, packages time parameters of the data and the block, signs the data by using a private key of the node, and uploads the data to a central chain for consensus contract audit verification;
the central chain 1 sends data consensus information to the target chain according to the auditing result of the consensus contract, so that the behavior of the event is synchronously stored on the target chain, the source chain 3 and the target chain 4 achieve consensus, and a cross-chain tracing and anomaly discovery function is provided for the target chain 4.
As shown in fig. 2, the embodiment of the present application provides a blockchain-based power data cross-domain supervision method, which includes the following specific steps,
the monitoring node module scans the blocks to capture cross-chain events and traverse the generation of newly added blocks;
the blockchain network adds a cross-domain event identification to the event based on the captured cross-chain event;
the communication node of the blockchain network finds a corresponding event according to the cross-domain event identifier, obtains data of the event in a cross-domain request, packages time parameters of the data and the block, signs the data and the time parameters of the block by using a private key of the node, and uploads the signature to a central chain for consensus contract audit verification;
and the central chain sends the data consensus information to the target chain according to the auditing result of the consensus contract, so that the behavior of the event is synchronously stored on the target chain, the source chain and the target chain reach consensus, and a cross-chain tracing and anomaly discovery function is provided for the target chain.
Various types of cross-chain transactions are agreed upon at the time of system initialization, and a cross-domain event identifier is allocated for different scheme types. When the user side initiates a cross-link request to the blockchain network, the blockchain network adds a cross-domain event identifier to the event according to the set allocation rule.
Cross-domain event identification is a function specific to the blockchain framework, and in smart contracts declaratively identifying event types and content specific smart contract decision schemes are agreed upon when co-compiling the contracts.
The monitoring node captures cross-chain events by sequentially scanning the blocks, where the events are specific transactions of the blockchain processing, and traverses the generation of new blocks. Equivalent to an independent contract call, and the traversed blocks are ordered in time by order nodes. And analyzing the event according to the event identification by analyzing the block structure, and sending the event to the communication node. Because the block is a fixed data structure model, the nested structure of the outer layer of the block is directly disassembled according to the data offset to obtain an EVENT list, each EVENT has an EVENT dictionary, and the EVENT attribute found in the EVENT dictionary is the EVENT identifier. The communication node finds the corresponding event according to the identification, obtains the data of the event in the cross-link request, such as the parameters required by the application file or the returned file storage address, the digital certificate of the transaction initiator and the like, packages the data with the time parameters of the block, uses the private key of the node itself to sign the data and uploads the data to the central link,
after the detection of the consensus contract, the consensus contract verifies the electronic signature to ensure that the data is not tampered, verifies whether the user certificate is outdated according to the unique user identifier of the transaction initiator, and finally writes the consensus information onto the block to perform uplink block-out.
The central chain sends the data consensus information to the target chain according to the auditing result of the consensus contract, so that the behavior of the event is synchronously stored on the target chain, the source chain and the target chain reach consensus, and the target chain can be provided with the functions of cross-chain tracing and anomaly discovery.
The consensus contract ensures that all chain stored trace-source data are consistent from time to time and cannot be modified randomly by a single node. In the central chain, when a cross-chain transaction passes through the central chain, the blockchain network of the central chain traces all the actions of making changes to the digital certificate and the event identifier of the transaction through a consensus contract, and checks with the data transferred by the transaction to judge whether the actions such as abnormality, data tampering and the like occur.
Under the condition that the system provided by the invention is used as a block chain cross-domain supervision system based on attributes, a cross-chain technology is utilized to build a central chain, the abnormal condition is detected through a consensus contract and then transmitted to a target chain, and the functions of cross-chain circulation audit, tracking tracing, abnormal discovery and the like are provided through the central chain.
The system is applied to the requirements of cross departments and cross mechanisms in the intelligent power grid, namely that the data and account book isolation requirements exist for the two parties, the data of the two parties are arranged in two block chains, the two chains have complete transaction processing capacity, and the request and the execution result of the cross-chain transaction are transmitted and commonly recognized in a cross-chain mode of a side chain.
For example, the system is used for a smart grid scene, the department a initiates a transaction to the department b, firstly sets a transaction list file, encrypts by using the attribute combination of the department b as an attribute encryption strategy, and then initiates a cross-chain request. The central chain consensus the file to the block based on the audit result and sends the request to the block chain where the b department is located. And b, checking the file data and the identity information in the request by using the hash value of the identity public key of the a department and the file, decrypting the file by using the attribute private key of the b department after the identity public key and the identity information of the a department are not tampered, and judging whether to accept the transaction according to the content of the transaction list. If not, a rejection message is returned directly. And (3) modifying the electronic data of the money or goods stored in the department b after the transaction is accepted, and returning the modification to the department a. The central chain can share the modification behaviors of the department b and synchronously store the data modification behaviors of the departments a and b on the central chain. The a department checks the reliability of the source of the message data returned by the b department according to the identity public key of the b department, and then modifies the data and consensus the behavior to the central chain. If a party misreports data, a central chain in broadcasting can find that the self-stored modification behavior is inconsistent with the modification behavior of the block chain where the a department or the b department is located, the central chain can set abnormal information, and contracts on the central chain can trace back the modification behavior of the data to find out which data modification behavior is inconsistent.
Embodiments of the present application provide a computer readable storage medium storing program code that, when executed by a processor, implements the steps of a blockchain-based power data cross-domain supervision method as described above.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In one typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, etc., such as Read Only Memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.
Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
The foregoing is merely exemplary embodiments of the present application and is not intended to limit the scope of the present application, and various modifications and variations may be suggested to one skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principles of the present application should be included in the protection scope of the present application.

Claims (5)

1. The block chain-based power data cross-domain supervision system comprises a block chain network, and is characterized in that the block chain network comprises a central chain composed of control center stations of a power system, a source chain composed of production service departments of the power system, a target chain composed of management departments of the power system and communication nodes, wherein the central chain is provided with a monitoring node module which is connected with the source chain composed of the production service departments of the power system and the target chain composed of the management departments of the power system,
the monitoring node module scans the blocks to capture cross-chain events and traverse the generation of newly added blocks;
the blockchain network adds a cross-domain event identifier to the captured cross-chain event based on the event;
the communication node finds a corresponding event according to the identifier, obtains data of the event in the cross-link request, packages time parameters of the data and the block, signs the data by using a private key of the node, and uploads the data to a central chain for consensus contract audit verification;
and the central chain sends the data consensus information to the target chain according to the auditing result of the consensus contract, so that the behavior of the event is synchronously stored on the target chain, the source chain and the target chain reach consensus, and a cross-chain tracing and anomaly discovery function is provided for the target chain.
2. A block chain-based power data cross-domain supervision method is characterized by comprising the following specific steps,
the monitoring node module scans the blocks to capture cross-chain events and traverse the generation of newly added blocks;
the blockchain network adds a cross-domain event identification to the event based on the captured cross-chain event;
the communication node of the blockchain network finds a corresponding event according to the cross-domain event identifier, obtains data of the event in a cross-domain request, packages time parameters of the data and the block, signs the data and the time parameters of the block by using a private key of the node, and uploads the signature to a central chain for consensus contract audit verification;
and the central chain sends the data consensus information to the target chain according to the auditing result of the consensus contract, so that the behavior of the event is synchronously stored on the target chain, the source chain and the target chain reach consensus, and a cross-chain tracing and anomaly discovery function is provided for the target chain.
3. The method for cross-domain supervision of electric power data based on blockchain as claimed in claim 2, wherein the capturing of events in cross-chain events is a specific transaction processed by blockchain, which is equivalent to an independent contract call, traversing generation of new blocks is ordered by order nodes in time, analyzing the events according to event identification by analyzing block structure, and sending to communication nodes, because the blocks are fixed data structure models, directly disassembling nested structures of outer layers of the blocks according to data offset to obtain event list, each event has an event dictionary, finding event attribute in event identification, the communication nodes find corresponding events according to the identification to obtain data of the event in cross-chain request, and packing the data with time parameters of the blocks to use private keys of the nodes to sign the private key and upload the private key to a central chain.
4. A blockchain-based power data cross-domain supervision method according to claim 3,
in the central chain, when a cross-chain event passes through the central chain, the blockchain network of the central chain traces all the variation behaviors made on the digital certificate and the event identifier of the cross-chain event specific transaction through the common contract, and checks with the data transferred by the cross-chain event specific transaction to judge whether abnormal and data tampering behaviors occur.
5. A computer readable storage medium storing program code which, when executed by a processor, implements the steps of the blockchain-based power data cross-domain supervision method of any one of claims 2 to 4.
CN202311057766.9A 2023-08-20 2023-08-20 Power data cross-domain supervision method, system and storage medium based on blockchain Pending CN117749344A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311057766.9A CN117749344A (en) 2023-08-20 2023-08-20 Power data cross-domain supervision method, system and storage medium based on blockchain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311057766.9A CN117749344A (en) 2023-08-20 2023-08-20 Power data cross-domain supervision method, system and storage medium based on blockchain

Publications (1)

Publication Number Publication Date
CN117749344A true CN117749344A (en) 2024-03-22

Family

ID=90251444

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311057766.9A Pending CN117749344A (en) 2023-08-20 2023-08-20 Power data cross-domain supervision method, system and storage medium based on blockchain

Country Status (1)

Country Link
CN (1) CN117749344A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117972687A (en) * 2024-04-02 2024-05-03 汉华智能科技(佛山)有限公司 Block chain-based intelligent power monitoring system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117972687A (en) * 2024-04-02 2024-05-03 汉华智能科技(佛山)有限公司 Block chain-based intelligent power monitoring system
CN117972687B (en) * 2024-04-02 2024-06-11 汉华智能科技(佛山)有限公司 Block chain-based intelligent power monitoring system

Similar Documents

Publication Publication Date Title
CN109034833B (en) Product tracing information management system and method based on block chain
CN108681966B (en) Information supervision method and device based on block chain
CN110472116B (en) Alliance block chain service network, alliance node thereof and product data storage method
CN111538786B (en) Block chain data desensitization and tracing storage method and device
CN109255056B (en) Data reference processing method, device, equipment and storage medium of block chain
CN111415170A (en) Block chain-based food tracing method and equipment and related storage medium
CN113157648A (en) Block chain based distributed data storage method, device, node and system
CN117749344A (en) Power data cross-domain supervision method, system and storage medium based on blockchain
CN114880697A (en) Block chain-based data fingerprint generation method and device and storage medium
CN113612741A (en) Method, device, equipment and storage medium for storing article circulation records
WO2022206439A1 (en) Method and apparatus for providing cross-chain message
CN113495927B (en) Block management method and device
CN111245897A (en) Data processing method, device, system, storage medium and processor
CN113726525A (en) Energy industry cloud network data tracing method and device
CN113886890A (en) Digital resource co-construction sharing method and device
CN112884484A (en) Enterprise identity authentication method and system based on block chain
CN112291321A (en) Service processing method, device and system
CN111597191A (en) Method and system for managing drug informatization tracing data
CN116645061A (en) Customs clearance data processing method based on block chain system and consensus node
CN116910820A (en) Data report processing method, device, computer equipment and storage medium
CN114491662B (en) Block chain-based data asset auditing method, system and equipment
CN115701078B (en) Cross-chain transaction processing method, device, electronic equipment and storage medium
CN117118640A (en) Data processing method, device, computer equipment and readable storage medium
CN111709057A (en) Method, equipment and storage medium for tracing pesticide residue based on block chain
CN111127039A (en) Block chain-based computer accessory fidelity method, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination