A method and device for establishing a pump station safety control environment based on blockchain

Through blockchain technology, the data security signature, storage and abnormal detection of data is realized in the pump station control system, which solves the data security problems of the pump station control system and improves the security and reliability of data transmission and storage.

CN117997548BActive Publication Date: 2025-07-29TIANJIN UNIV +1
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202410070935.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-01-17
Publication Date
2025-07-29
Estimated Expiration
2044-01-17

AI Technical Summary

Technical Problem

The existing pump station control system has security risks in data transmission and storage, and the operation is complicated and complicated, and the intricacies of the Internet of Things system make it difficult to ensure data security.

Method used

Adopt a blockchain-based security control environment, use the elliptic curve digital signature algorithm to sign and authenticate information, build data blocks and store them securely, and use the improved PBFT consensus algorithm to achieve consistency consensus, detect abnormal data through smart contracts and trigger alarms.

Benefits of technology

Ensure the security of the operating data of the pump station during transmission and storage, avoid data leakage, tampering or loss, improve the system's response speed and real-time performance, reduce the probability of accidents, and enhance the reliability and credibility of data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117997548B_ABST
    Figure CN117997548B_ABST
Patent Text Reader

Abstract

The present invention relates to the technical field of pump station safety environment, and in particular to a method and device for establishing a pump station safety control environment based on blockchain. The method includes: using the elliptic curve digital signature algorithm to sign the information of the pump station control operation form and the pump station operation monitoring data, and authenticating the identity of the nodes uploading the data; constructing a data block and securely storing the authenticated data; using an improved PBFT consensus algorithm to obtain a consistent consensus protocol for each node of the blockchain after secure storage, and recording the data block that has completed consensus verification in the blockchain; deploying a smart contract to automatically analyze the running data in the blockchain, detect abnormal data and faults and trigger an alarm. Through the distributed network architecture and digital signature algorithm of the blockchain, the security of the pump station operation data during transmission and storage can be ensured, and the risks of data leakage, tampering or loss can be avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the technical field of pump station safety environment, and particularly to a method and device for establishing a pump station safety control environment based on blockchain. Background Art

[0002] Currently, most pump stations still use a centralized network architecture. Data is stored in a centralized server and regularly managed and maintained. Records of operation and control instructions are mainly stored in the form of paper-based forms. Remote monitoring of pump stations transmits information through the Internet of Things, enabling the storage of pump station data and the execution of operation instructions for pump station units. However, the Internet of Things system is intricate, and data will pass through different carriers during the entire transmission process. The existing operation data security issues have attracted people's attention. Therefore, protecting the data security of the Internet of Things in the pump station control process has become particularly challenging.

[0003] The prior art has problems such as centralized network architecture, lack of application layer security, and insufficient product safety standardization. These problems lead to potential safety hazards in the data transmission and storage of pump station control systems. At the same time, the complexity of the Internet of Things also makes data pass through different carriers during the transmission process, resulting in data security problems. Protecting the data security of the Internet of Things has become particularly challenging. The centralized network architecture and centralized server make the internal network system of the pump station vulnerable to malicious attacks, and the data information in the database is easily leaked, threatening the data security and operation safety of the pump station. The form information storage of paper-based operation and control instruction records is prone to loss and damage, and it is difficult to trace the operation records, making the operation cumbersome and complex.

[0004] In summary, how to provide a secure solution for the transmission and storage of pump station operation data is an urgent problem to be solved currently. Summary of the Invention

[0005] This application aims to solve at least one of the technical problems in the related art to some extent.

[0006] To this end, the first object of this application is to propose a method for establishing a pump station safety control environment based on blockchain to solve the problems such as potential safety hazards in the data transmission and storage of pump station control systems and cumbersome and complex operations in the prior art means.

[0007] The second object of this application is to propose a device.

[0008] The third object of this application is to propose an electronic device.

[0009] The fourth object of this application is to propose a computer-readable storage medium.

[0010] To achieve the above object, an embodiment of the first aspect of the present application provides a method for establishing a pumping station safety control environment based on a blockchain, including:

[0011] Using the elliptic curve digital signature algorithm to sign the information of the pumping station control operation form and the pumping station operation monitoring data, and authenticate the identity of the node uploading the data;

[0012] Construct a data block and securely store the authenticated data;

[0013] Using the improved PBFT consensus algorithm to obtain the consistency consensus protocol of each node in the blockchain after secure storage, and record the data block that has completed consensus verification in the blockchain;

[0014] Deploy a smart contract to automatically analyze the running data in the blockchain, detect abnormal data and faults and trigger an alarm.

[0015] Preferably, the step of using the elliptic curve digital signature algorithm to sign the information of the pumping station control operation form and the pumping station operation monitoring data, and authenticate the identity of the node uploading the data includes:

[0016] Create a double-chain structure for the pumping station operation control blockchain;

[0017] Before deploying the blockchain network, register the identities of the monitoring device nodes and the pumping station management platform nodes. After the nodes pass legal authentication, authorize each node to generate its corresponding key pair;

[0018] Use the private key corresponding to the monitoring device to generate signature information for the to-be-transmitted pumping station operation data;

[0019] Receive the to-be-transmitted data and the signature information, and based on the public key of the monitoring device, decrypt the signature information and perform legality verification.

[0020] Preferably, the step of constructing a data block and securely storing the authenticated data includes:

[0021] After ensuring the legality of the node identities and data information in the network, collect the pumping station operation monitoring data and the pumping station control operation form data generated within a certain period of time;

[0022] Perform digital signature and verification on the pumping station operation monitoring data and the pumping station control operation form data, and temporarily store them in the local record pool in chronological order. When the size of the record pool is equal to the size of the block, pack the information into a block;

[0023] Construct a data block for the transaction information to form a chain structure, and record the operation condition information and the operation record information in the blockchain for distributed storage.

[0024] Preferably, constructing a data block for the transaction information to form a chain structure, and recording the operating condition information and operation record information in the blockchain for distributed storage includes:

[0025] Constructing a chain block structure for the transaction information. The block structure includes a block header and a block body. Each data block references the encrypted hash value Prev-Hash of the previous block and stores it in the block header of the linked list. Connect the current new data block to the previous block to form a chain structure;

[0026] Add the block number Version of the current block in the chain block structure, the timestamp Timestamp indicating the creation time of the current block, the random number Nonce generated during the consensus process of the current block, the hash value Prev-Hash of the previous block, the encrypted hash value Block Hash of the current block, and the Merkle root Merkle root generated through the hash process of the Merkle tree in the current block body to the block header of each data block. The hash value of the last block is saved in the system;

[0027] If any data in the blockchain is changed, the Hash value calculated by the block with data changes will be different from the Prev-Hash field saved in the next block;

[0028] Add the Merkle tree structure formed by hashing the transaction data records to the block body. Pair and perform hash operations on the transaction data records received within a certain period of time until a unique Merkle root is generated and recorded in the block header.

[0029] Preferably, using the improved PBFT consensus algorithm to obtain the consistency consensus protocol of each node in the blockchain after secure storage, and recording the data blocks that have completed consensus verification in the blockchain includes:

[0030] Based on the improved PBFT consensus algorithm, the authorized data acquisition terminal and the main node marked as the leader execute the consensus process. Other authorized nodes act as secondary nodes. The main node broadcasts its data block, timestamp and other information to the secondary nodes for verification and review. When all nodes reach a consistency consensus, it is considered that the new block can be added to the consortium chain;

[0031] Use the main node to send the currently audited data block and the corresponding digital signature record to all authorized data acquisition terminal nodes for storage, and then store the data block in the blockchain network;

[0032] For the operation record information in the pump station control operation blockchain, the authorized pump station management platform node and the main node execute the consensus process. After verifying and reviewing the data block, add it to the blockchain network for storage.

[0033] Preferably, the automatic analysis of the running data in the blockchain by deploying a smart contract, detecting abnormal data and faults and triggering an alarm includes:

[0034] Formulate smart contracts for each device respectively based on the data transmitted by the jurisdiction monitoring device, modularize and customize the operation monitoring data and its response events, preset thresholds for the data acquisition terminal, analyze the monitoring data based on the preset thresholds, and for the running data exceeding the thresholds, detect possible anomalies or faults and trigger corresponding alarms or operations.

[0035] To achieve the above object, an embodiment of the second aspect of the present application proposes a device for establishing a pump station safety control environment based on a blockchain, including:

[0036] An information verification module, which uses the elliptic curve digital signature algorithm to sign the information of the pump station control operation form and the pump station operation monitoring data, and authenticate the identity of the node uploading the data;

[0037] A block construction module, which constructs data blocks and securely stores the authenticated data;

[0038] An audit module, which uses an improved PBFT consensus algorithm to obtain a consensus protocol for the consistency of each node in the blockchain after secure storage, and records the data blocks that have completed consensus verification in the blockchain;

[0039] A data analysis module, which automatically analyzes the running data in the blockchain by deploying a smart contract, detects abnormal data and faults and triggers an alarm.

[0040] To achieve the above object, an embodiment of the third aspect of the present application proposes an electronic device, including: a processor, and a memory communicatively connected to the processor;

[0041] The memory stores computer execution instructions;

[0042] The processor executes the computer execution instructions stored in the memory to implement the method described in any one of the above.

[0043] To achieve the above object, an embodiment of the fourth aspect of the present application proposes a computer-readable storage medium, including computer execution instructions stored in the computer-readable storage medium, and the computer execution instructions are used to implement the method described in any one of the above when executed by a processor.

[0044] A method for establishing a pump station safety control environment based on blockchain can ensure the security of pump station operation data during transmission and storage, avoiding the risks of data leakage, tampering, or loss, through the distributed network architecture and digital signature algorithm of blockchain. Compared with the centralized network architecture of competing products, this technology can more effectively protect sensitive data and enhance the security of the product. By deploying smart contracts, real-time analysis of pump station operation data can be performed to detect possible anomalies or faults and trigger corresponding alarms or operations. This feature makes the product more responsive and real-time in operation management, helping to detect and solve problems in advance and reduce the probability of accidents.

[0045] Additional aspects and advantages of the present application will be given in part in the following description, become apparent in part from the following description, or be learned through the practice of the present application. Brief Description of the Drawings

[0046] The above and / or additional aspects and advantages of the present application will become apparent and be readily understood from the following description of the embodiments in conjunction with the drawings, where:

[0047] Figure 1 is a flowchart of the first specific embodiment of a method for establishing a pump station safety control environment based on blockchain provided by the present invention;

[0048] Figure 2 is the overall flowchart of the method for establishing a pump station safety control environment based on blockchain;

[0049] Figure 3 is a schematic diagram of the elliptic curve digital signature algorithm;

[0050] Figure 4 is the structure diagram of the blockchain data block;

[0051] Figure 5 is the flowchart of the improved PBFT consensus algorithm;

[0052] Figure 6 is the flowchart of the smart contract execution;

[0053] Figure 7 is the structural block diagram of a device for establishing a pump station safety control environment based on blockchain provided by the embodiments of the present invention. Detailed Embodiments

[0054] The core of the present invention is to provide a method and device for establishing a pump station safety control environment based on blockchain, which can ensure the security of pump station operation data during transmission and storage, avoiding the risks of data leakage, tampering, or loss, through the distributed network architecture and digital signature algorithm of blockchain.

[0055] To enable those skilled in the art to better understand the solution of the present invention, the present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the scope of protection of the present invention.

[0056] Please refer to Figure 1 , Figure 1 which is a flowchart of the first specific embodiment of a method for establishing a pump station safety control environment based on blockchain provided by the present invention; the specific operation steps are as follows:

[0057] Step S101: Use the elliptic curve digital signature algorithm to sign the information of the pump station control operation form and the pump station operation monitoring data, and authenticate the identity of the node uploading the data;

[0058] Create a double-chain structure for the pump station operation control blockchain;

[0059] Before deploying the blockchain network, register the identities of the monitoring device nodes and the pump station management platform nodes. After the nodes pass the legal authentication, authorize each node to generate its corresponding key pair;

[0060] The monitoring device uses its corresponding private key to generate signature information for the pump station operation data to be transmitted;

[0061] Receive the data to be transmitted and the signature information, and decrypt and verify the signature information based on the public key of the monitoring device.

[0062] Step S102: Construct a data block and securely store the data after authentication;

[0063] After ensuring the legality of the node identities and data information in the network, collect the pump station operation monitoring data and pump station control operation form data generated within a certain period of time;

[0064] Perform digital signature and verification on the pump station operation monitoring data and the pump station control operation form data, and temporarily store them in the local record pool in chronological order. When the size of the record pool is equal to the size of the block, pack the information into a block;

[0065] Construct a data block for the transaction information to form a chain structure, and record the operation condition information and operation record information in the blockchain for distributed storage, including:

[0066] Construct a chained block structure for transaction information. The block structure includes a block header and a block body. Each data block references the cryptographic hash value Prev-Hash of the previous block and stores it in the block header of the linked list, connecting the current new data block to the previous block to form a chained structure;

[0067] Add the block number Version of the current block in the chained block structure, the timestamp Timestamp indicating the creation time of the current block, the random number Nonce generated during the consensus process of the current block, the hash value Prev-Hash of the previous block, the cryptographic hash value Block Hash of the current block, and the Merkle root Merkle root generated through the hash process of the Merkle tree in the current block body to the block header of each data block. The hash value of the last block is saved in the system;

[0068] If any data in the blockchain is changed, the Hash value calculated by the block with data changes will be different from the Prev-Hash field saved in the next block;

[0069] Add the Merkle tree structure formed by hashing the transaction data records to the block body. Pair and perform hash operations on the transaction data records received within a certain period until a unique Merkle root is generated and recorded in the block header.

[0070] Step S103: Use the improved PBFT consensus algorithm to obtain the consistency consensus protocol of each node in the blockchain after secure storage, and record the data blocks that have completed consensus verification in the blockchain;

[0071] Based on the improved PBFT consensus algorithm, the authorized data acquisition terminal and the master node marked as the leader execute the consensus process, and other authorized nodes act as secondary nodes. The master node broadcasts its data block, timestamp and other information to the secondary nodes for verification and review. When all nodes reach a consistency consensus and believe that the new block can be added to the consortium chain, including:

[0072] Aggregate all the operation data monitored by the sensors uploaded by the master node into a new data block. The data block contains information such as the digital signature of the master node and the hash value of the block. The requesting end node sends a request message to all terminal nodes in the network to activate the service operation of the nodes;

[0073] After receiving the request, the master node sorts and stores multiple data information to be placed in the new block from the monitoring data uploaded by all sensors in a list, and broadcasts the list to all nodes in the entire blockchain network;

[0074] After each node receives the transaction list, it verifies and audits the integrity and legality of the transactions, adds the audit results to the digital signature of each node, and broadcasts them to other secondary nodes.

[0075] The master node is used to send the currently audited data block and the corresponding digital signature record to all authorized data acquisition terminal nodes for storage, and then store the data block in the blockchain network;

[0076] For the operation record information in the pump station control operation blockchain, the authorized pump station management platform node and the master node execute the consensus process. After verifying and reviewing the data block, it is added to the blockchain network for storage.

[0077] Step S104: Automatically analyze the running data in the blockchain through the deployment of smart contracts, detect abnormal data and faults, and trigger an alarm.

[0078] Based on the data transmitted by the monitored devices under its jurisdiction, the data acquisition terminal formulates smart contracts for each device respectively, modularizes and customizes the operation monitoring data and its response events, sets a preset threshold for the data acquisition terminal, analyzes the monitoring data based on the preset threshold, and for the running data exceeding the threshold, detects possible anomalies or faults, and triggers corresponding alarms or operations, which are sent to the pump station operation control platform for display.

[0079] This embodiment provides a method for establishing a pump station security control environment based on blockchain. Through the distributed network architecture and digital signature algorithm of the blockchain, it can ensure the security of pump station operation data during transmission and storage, and avoid the risks of data leakage, tampering or loss. Compared with the centralized network architecture of competing products, this technology can more effectively protect sensitive data, enhance the security of the product, and use the improved PBFT consensus algorithm to solve the mutual trust problem between nodes in a decentralized system, ensuring the consistency and reliability of data. This feature helps to improve the trust between the pump station management platform and the data acquisition terminal, and while ensuring the accuracy and integrity of the data, it enhances the overall credibility of the product.

[0080] Based on the above embodiment, this embodiment describes the method for establishing a pump station security control environment based on blockchain, as Figure 2 shown, specifically as follows:

[0081] As Figure 3 shown, the elliptic curve digital signature algorithm is used to sign the information of the pump station control operation form and the pump station operation monitoring data, and authenticate the identity of the node uploading the data to ensure the legality of the node identity and data information in the blockchain; (Digital signature and identity authentication)

[0082] Create a double-chain structure for the operation control blockchain of the pumping station, including two consortium blockchains: the operation monitoring blockchain and the control operation blockchain;

[0083] Before deploying the blockchain network, register the identities of the monitoring device nodes and the pumping station management platform nodes. After the nodes are legally authenticated, authorize each node to generate its corresponding key pair, namely the private key and the public key, including:

[0084] Select a bilinear mapping e: G*G = GT, where G is an additive group, GT is a multiplicative group, and the generator is P. Select a Hash function H: {0,1}* → G;

[0085] The blockchain node randomly selects d in the unit group finite field Zq* of the prime modulus n, and d is the private key; randomly selects P in G* and calculates Q = Pd, and Q is the public key.

[0086] For the pumping station operation monitoring data information data to be transmitted, the monitoring device uses its own private key d to generate signature information (r, s), where r and s are authentication parameters, including:

[0087] Select a random number k in the interval [1, n - 1], where n is the order of G and n is a prime number, and G is the base point of the elliptic curve;

[0088] Calculate the curve point (x1, y2) = k*G;

[0089] Calculate the authentication parameter r = x1 mod n;

[0090] Use the hash function Hash() to calculate Hash(data), where data is the data information to be sent, and convert the obtained hash value into an integer e;

[0091] Calculate the authentication parameter s = k-1(e + rd) mod n, where d is the private key of the monitoring device, and obtain the signature information (r, s) of the data;

[0092] Upload the data data to be transmitted and the signature information (r, s) to the data acquisition terminal.

[0093] The data acquisition terminal receives the data to be transmitted and the signature information, decrypts the encrypted information using the public key of the monitoring device, and verifies its legality, including:

[0094] Check whether r and s are integers in the interval [1, n - 1];

[0095] Calculate e = Hash(data);

[0096] Calculate u1 = es-1 mod n and u2 = rs-1 mod n respectively;

[0097] Calculate the curve point (x1, y1) = u1*G + u2*Q, where Q is the public key of the monitoring device;

[0098] If (x1, y1) = 0, the signature is invalid; if r ≡ x1 (mod n), the signature is valid, otherwise it is invalid. If the verification is successful, upload the pump station operation monitoring data to the pump station management platform and the pump station operation monitoring blockchain.

[0099] Similarly, for the control operation form data (pump station operation records) of the pump station, the pump station management platform generates signature information using its private key. The management center accepts the corresponding data and signature information, decrypts the data using the public key of the management platform and completes its legality verification. After successful verification, upload the data information to the pump station control operation blockchain.

[0100] The data acquisition terminal and the pump station management platform collect transaction records within a certain period of time, including pump station operation monitoring data and pump station control operation form data respectively, and construct data blocks to securely store the data;

[0101] As Figure 4 shown, after ensuring the legality of the node identities and data information in the network, the data acquisition terminal and the pump station management platform respectively collect transaction records generated within a certain period of time after the generation of the previous block, namely pump station operation monitoring data and pump station control operation form data;

[0102] The data acquisition terminal and the pump station management platform perform digital signature and verification on the records, and temporarily store them in the local record pool in chronological order. When the size of the record pool is equal to the size of the block, the system packs the information into a block;

[0103] Construct a data block for the transaction information to form a chain structure, record the operating condition information and operation record information in the blockchain for distributed storage, and ensure the traceability and anti-tampering of the data information, including:

[0104] Construct a chain block structure for the transaction information. The block structure includes a block header and a block body. Each data block references the encrypted hash value Prev-Hash of the previous block and stores it in the block header of the linked list. Connect the current new data block to the previous block to form a chain structure. Therefore, the historical information of the data block can be traced through the value of Prev-Hash to verify the legality of the data block;

[0105] For the described block structure, add the version number Version of the current block, the timestamp Timestamp representing the creation time of the current block, the nonce Nonce generated during the consensus process of the current block, the hash value Prev-Hash of the previous block, the encrypted hash value Block Hash of the current block, and the Merkle root Merkle root generated through the hash process of the Merkle tree in the current block body to the block header of each data block. The hash value of the last block is saved in the system;

[0106] If any data in the blockchain is changed, the Hash value calculated for the block with data changes will be different from the Prev-Hash field saved in the next block, enabling the detection of data changes in the relevant block and finding the location of the corresponding block, thus achieving the feature of immutability;

[0107] Add the Merkle tree structure formed by hashing the transaction data records to the block body. The Merkle tree is a binary tree structure used to store transaction information and the number of transactions. Pair and perform hash operations on the transaction data records received within a certain period until a unique Merkle root is generated and recorded in the block header;

[0108] For the blockchain of pump station operation monitoring, the transaction information in the block body is the operation monitoring data of the pump station, specifically including information such as the type of monitoring equipment, the monitoring content, the operation monitoring data (data such as flow rate, head, blade angle, number of operating units, etc.), the monitoring time, the processing node, and the processing node signature;

[0109] For the blockchain of pump station control operations, the transaction information in the block body is the form data of the pump station control operations, specifically including information such as the operation number, operation task, operation item and sequence number, operation mark, the person issuing the order, the person receiving the order, the order time, the operator, the supervisor, the start and end times of the operation, the processing node, and the signature in the operation form;

[0110] Broadcast a data block constructed to the entire blockchain network. Nodes in other blockchain networks review and verify the transaction records in this block. If the block is verified successfully, the message records in the block will be added to the end of the main chain in a linear and chronological order and connected to the previous block.

[0111] As Figure 5 shown, use the improved PBFT consensus algorithm to obtain the consensus protocol of each participating node in the blockchain. After the data block is completed with consensus verification, it is recorded in the blockchain, solving the problem of mutual trust between nodes in the decentralized system;

[0112] Based on the improved PBFT consensus algorithm, the consensus process is executed by authorized data collection terminals and the primary node marked as the leader. Other authorized nodes act as secondary nodes. The leader broadcasts its data block, timestamp, and other information to the secondary nodes for verification and review, including:

[0113] Aggregate all the operation data monitored by sensors uploaded within the primary node into a new data block. The data block contains information such as the digital signature of the primary node and the hash value of the block. The requesting end node (i.e., the leader) sends a request message to all terminal nodes in the network to activate the service operation of the nodes;

[0114] After receiving the request, the primary node sorts and stores multiple data information to be placed in the new block from the monitoring data uploaded by all sensors in a list, and broadcasts the list to all nodes in the entire blockchain network;

[0115] After each node receives the transaction list, it verifies and audits the integrity and legality of the transaction, adds the audit result to the digital signature of each node, and broadcasts it to other secondary nodes. If a node receives information from 2f different nodes, it indicates that the preparation phase of the node has been completed;

[0116] For abnormal nodes, the maximum number of abnormal nodes that the system can tolerate is f (where n ≥ 3f + 1), and abnormal nodes cannot be broadcast;

[0117] The node receives and aggregates the audit results from other secondary nodes, and compares them with its own audit results. The secondary node broadcasts a confirmation message to other secondary nodes;

[0118] If both the primary node and the secondary nodes receive (n - f) identical confirmation request messages (including their own information), they send a feedback result to the client and write the result into the block.

[0119] The total number of nodes in the blockchain network is n, and the total number of abnormal nodes is f. For malicious or faulty abnormal secondary nodes that appear in the network, they generally do not respond to requests from other nodes;

[0120] All nodes reach a consensus and believe that the new block can be added to the consortium chain;

[0121] The leader sends the currently audited data block and the corresponding digital signature record to all authorized data collection terminal nodes for storage, and then stores the data block in the blockchain network;

[0122] The leader further analyzes the audit results of the nodes not approved in the system to determine whether these nodes are malicious, and promptly processes abnormal secondary nodes. For secondary nodes participating in the consensus, the pump station manager will maintain or reject abnormal secondary nodes based on the feedback results;

[0123] Similarly, for the operation record information in the pump station control operation blockchain, after the authorized pump station management platform nodes and the main node execute the consensus process and complete the verification and review of the data block, it is added to the blockchain network for storage.

[0124] As Figure 6 shown, by deploying smart contracts, the operation data is automatically analyzed, displayed on the pump station operation management platform, while detecting possible anomalies or faults and triggering corresponding alarms or operations.

[0125] The data acquisition terminal formulates smart contracts for each device according to the data transmitted by the jurisdiction monitoring devices, modularizing and customizing the operation monitoring data and its response events;

[0126] Set thresholds for the data acquisition terminal. Only the smart contract management party has the permission to upload data, and the created smart contract is uploaded to the pump station operation monitoring blockchain;

[0127] After the smart contract is deployed, it cannot be edited again. If the contract of the device needs to be updated and replaced, the original contract must be destroyed and a new contract must be deployed, without affecting the operation of other contracts;

[0128] The monitoring device uploads the pump station operation monitoring data to the data acquisition terminal through the wireless network, and the data acquisition terminal sends the data to the corresponding smart contract;

[0129] The smart contract analyzes the monitoring data according to the set thresholds. For the operation data exceeding the thresholds, it detects possible anomalies or faults and triggers corresponding alarms or operations;

[0130] Write the pump station operation monitoring data and analysis results into the operation monitoring blockchain, and send them to the pump station operation control platform for display and early warning.

[0131] A method for establishing a pump station safety control environment based on blockchain provided by an embodiment of the present invention can ensure the security of pump station operation data during transmission and storage through the distributed network architecture and digital signature algorithm of the blockchain, avoiding the risks of data leakage, tampering, or loss. Compared with the centralized network architecture of competing products, this technology can more effectively protect sensitive data and enhance the security of the product. By deploying smart contracts, real-time analysis of pump station operation data can be carried out to detect possible anomalies or faults and trigger corresponding alarms or operations. This feature makes the product more responsive and real-time in operation management, helps to detect and solve problems in advance, reduces the probability of accidents, ensures two-way secure interaction between the platform and the pump station automatic control system, ensures the secure transmission and execution of operation instructions, and thus improves the reliability and stability of the entire system. Compared with traditional data transmission methods, this two-way secure interaction mechanism can reduce the risks of misoperation and malicious attacks. The improved PBFT consensus algorithm is used to solve the problem of mutual trust between nodes in a decentralized system, ensuring the consistency and reliability of data. This feature helps to improve the trust level between the pump station management platform and the data acquisition terminal, and while ensuring the accuracy and integrity of the data, it enhances the overall credibility of the product.

[0132] Please refer to Figure 7 , Figure 7 which is a structural block diagram of a device for establishing a pump station safety control environment based on blockchain provided by an embodiment of the present invention; the specific device may include:

[0133] An information verification module 100 uses the elliptic curve digital signature algorithm to sign the information of the pump station control operation form and the pump station operation monitoring data, and authenticates the identity of the nodes uploading the data;

[0134] A block construction module 200 constructs data blocks and securely stores the data after identity verification;

[0135] An audit module 300 uses the improved PBFT consensus algorithm to obtain a consistency consensus protocol for each node of the blockchain after secure storage, and records the data blocks that have completed consensus verification in the blockchain;

[0136] A data analysis module 400 automatically analyzes the operation data in the blockchain by deploying smart contracts, detects abnormal data and faults, and triggers alarms.

[0137] An apparatus for establishing a pump station safety control environment based on blockchain in this embodiment is used to implement the aforementioned method for establishing a pump station safety control environment based on blockchain. Therefore, the specific implementation manners in the apparatus for establishing a pump station safety control environment based on blockchain can be seen in the embodiment part of the method for establishing a pump station safety control environment based on blockchain in the foregoing text. For example, the information verification module 100, the block construction module 200, the review module 300, and the data analysis module 400 are respectively used to implement steps S101, S102, S103, and S104 in the aforementioned method for establishing a pump station safety control environment based on blockchain. Therefore, the specific implementation manners can refer to the descriptions of the corresponding various part embodiments and will not be elaborated herein.

[0138] To implement the above embodiment, the present application also provides an electronic device, including: a processor, and a memory communicatively connected to the processor; the memory stores computer-executable instructions; the processor executes the computer-executable instructions stored in the memory to implement the method provided in the foregoing embodiment.

[0139] To implement the above embodiment, the present application also provides a computer-readable storage medium storing computer-executable instructions, and the computer-executable instructions are used to implement the method provided in the foregoing embodiment when executed by a processor.

[0140] To implement the above embodiment, the present application also provides a computer program product including a computer program, and the computer program implements the method provided in the foregoing embodiment when executed by a processor.

[0141] The collection, storage, use, processing, transmission, provision, and disclosure of the user's personal information involved in the present application all comply with the provisions of relevant laws and regulations and do not violate public order and good customs.

[0142] It should be noted that personal information from users should be collected for legal and reasonable purposes and should not be shared or sold outside of these legitimate uses. In addition, such collection / sharing should be carried out after obtaining the informed consent of the user, including but not limited to notifying the user to read the user agreement / user notice and signing an agreement / authorization including authorizing the relevant user information before the user uses the function. In addition, any necessary steps should be taken to safeguard and protect access to such personal information data and ensure that others with access to the personal information data comply with their privacy policies and procedures.

[0143] This application is expected to provide an implementation scheme for users to selectively block the use or access of personal information data. That is, the present disclosure is expected to provide hardware and / or software to prevent or block access to such personal information data. Once the personal information data is no longer needed, the risk can be minimized by restricting data collection and deleting the data. In addition, when applicable, personal identifiers are removed from such personal information to protect the privacy of users.

[0144] In the description of the foregoing embodiments, the descriptions referring to terms such as "one embodiment", "some embodiments", "example", "specific example", or "some examples" mean that the specific features, structures, materials, or characteristics described in connection with the embodiment or example are included in at least one embodiment or example of this application. In this specification, the schematic descriptions of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials, or characteristics described can be combined in a suitable manner in any one or more embodiments or examples. In addition, without contradiction, those skilled in the art can combine and combine the different embodiments or examples described in this specification and the features of different embodiments or examples.

[0145] In addition, the terms "first" and "second" are only used for descriptive purposes and cannot be understood as indicating or implying relative importance or implicitly specifying the quantity of the indicated technical features. Thus, the features defined with "first" and "second" can explicitly or implicitly include at least one of the features. In the description of this application, "a plurality" means at least two, such as two, three, etc., unless otherwise specifically defined.

[0146] Any process or method description shown in the flowchart or described in other ways herein can be understood as representing a module, segment, or part of code including one or more executable instructions for implementing a customized logic function or process, and the scope of the preferred implementation of this application includes additional implementations, where the functions can be executed in a substantially simultaneous manner or in the reverse order according to the functions involved, rather than in the order shown or discussed, which should be understood by those skilled in the art to which the embodiments of this application belong.

[0147] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a definable sequence list of executable instructions for implementing logical functions, and can be specifically implemented in any computer-readable medium for use by an instruction execution system, apparatus, or device (such as a computer-based system, a system including a processor, or other systems that can fetch and execute instructions from the instruction execution system, apparatus, or device), or in conjunction with these instruction execution systems, apparatus, or devices. For the purposes of this specification, a "computer-readable medium" can be any device that can contain, store, communicate, propagate, or transport a program for use by or in conjunction with an instruction execution system, apparatus, or device. More specific examples (non-exhaustive list) of computer-readable media include the following: an electrical connection portion with one or more wirings (electronic device), a portable computer diskette (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium can even be paper or other suitable media on which the program can be printed, because the program can be obtained electronically, for example, by optically scanning the paper or other media, followed by editing, interpretation, or otherwise processing as appropriate, and then storing it in a computer memory.

[0148] It should be understood that various parts of the present application can be implemented by hardware, software, firmware, or a combination thereof. In the above-described embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or a combination of the following techniques well known in the art can be used: discrete logic circuits having logic gate circuits for implementing logical functions on data signals, application-specific integrated circuits having appropriate combinational logic gate circuits, programmable gate arrays (PGAs), field programmable gate arrays (FPGAs), etc.

[0149] Those of ordinary skill in the art of this technology can understand that all or part of the steps carried by the method of implementing the above embodiments can be completed by a program instructing relevant hardware, and the program can be stored in a computer-readable storage medium. When the program is executed, it includes one or a combination of the steps of the method embodiments.

[0150] In addition, in each embodiment of the present application, each functional unit may be integrated in a processing module, may exist separately physically for each unit, or two or more units may be integrated in one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. When the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.

[0151] The above-mentioned storage medium may be a read-only memory, a magnetic disk, an optical disc, etc. Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and should not be construed as limiting the present application. Those of ordinary skill in the art can make changes, modifications, substitutions, and variations to the above embodiments within the scope of the present application.

Claims

1. A method for establishing a safety control environment of a pumping station based on blockchain, characterized in that, Including: Using the elliptic curve digital signature algorithm to perform information signature on the pump station control operation form and the pump station operation monitoring data, and authenticate the identity of the nodes uploading the data; Constructing data blocks and securely storing the authenticated data; Using the improved PBFT consensus algorithm to obtain the consensus protocol of each node in the blockchain after secure storage, and recording the data blocks that have completed consensus verification in the blockchain; Deploying smart contracts to automatically analyze the running data in the blockchain, detect abnormal data and faults and trigger alarms; Among them, the step of using the elliptic curve digital signature algorithm to perform information signature on the pump station control operation form and the pump station operation monitoring data, and authenticate the identity of the nodes uploading the data includes: Creating a double-chain structure for the pump station operation control blockchain, including two consortium blockchains: the pump station operation monitoring blockchain and the pump station control operation blockchain; Before deploying the blockchain network, register the identities of the monitoring device nodes and the pump station management platform nodes. After the nodes pass legal authentication, authorize each node to generate its corresponding key pair; Using the private key corresponding to the monitoring device to generate signature information for the to-be-transmitted pump station operation data; Receiving the to-be-transmitted data and signature information through the data acquisition terminal, decrypting the signature information based on the public key of the monitoring device, and performing legality verification; After successful verification, upload the pump station operation monitoring data to the pump station management platform and the pump station operation monitoring blockchain; For the control operation form data of the pump station, the pump station management platform uses its private key to generate signature information. The management center receives the corresponding data and signature information, decrypts the data using the public key of the pump station management platform to complete its legality verification, and uploads the data to the pump station control operation blockchain after successful verification; The step of constructing data blocks and securely storing the authenticated data includes: After ensuring the legality of the node identities and data information in the network, collect the pump station operation monitoring data and the pump station control operation form data generated within a certain period of time; Perform digital signature and verification on the pump station operation monitoring data and the pump station control operation form data, and temporarily store them in the local record pool in chronological order. When the size of the record pool is equal to the size of the block, pack the information into a block; Construct data blocks for the transaction information to form a chain structure, and record the operation condition information and operation record information in the blockchain for distributed storage. Among them, the transaction information in the pump station operation monitoring blockchain is the pump station operation monitoring data, and the transaction information in the pump station control operation blockchain is the pump station control operation form data; The step of deploying smart contracts to automatically analyze the running data in the blockchain, detect abnormal data and faults and trigger alarms includes: Formulating smart contracts for each device based on the data transmitted by the jurisdiction monitoring devices, modularizing and customizing the operation monitoring data and its response events, presetting thresholds for the data acquisition terminal, analyzing the monitoring data based on the preset thresholds, and detecting possible anomalies or faults for the running data exceeding the thresholds, and triggering corresponding alarms or operations; The method further includes: Write the operation monitoring data and analysis results of the pumping station into the operation monitoring blockchain, and send them to the operation management platform of the pumping station equipment for display and early warning.

2. The method for establishing a pump station safety control environment based on blockchain according to claim 1, wherein Construct data blocks for the transaction information to form a chain structure, and record the operation condition information and operation record information in the blockchain for distributed storage, including: Construct a chain block structure for the transaction information. The block structure includes a block header and a block body. Each data block references the encrypted hash value Prev-Hash of the previous block and stores it in the block header of the linked list. Connect the current new data block to the previous block to form a chain structure; Add the block number Version of the current block of the chain block structure, the timestamp Timestamp indicating the creation time of the current block, the random number Nonce generated during the consensus process of the current block, the hash value Prev-Hash of the previous block, the encrypted hash value Block Hash of the current block, and the Merkle root Merkle root generated through the hash process of the Merkle tree in the current block body to the block header of each data block. The hash value of the last block is saved in the system; If any data in the blockchain is changed, the Hash value calculated by the block with data changes will be different from the Prev-Hash field saved in the next block; Add the Merkle tree structure formed by hashing the transaction data records to the block body. Pair and perform hash operations on the transaction data records received within a certain period of time until a unique Merkle root is generated and recorded in the block header.

3. The method for establishing a pump station safety control environment based on blockchain according to claim 1, characterized in that The improved PBFT consensus algorithm is used to obtain the consistency consensus protocol of each node in the blockchain after secure storage. Recording the data blocks that have completed consensus verification in the blockchain includes: Based on the improved PBFT consensus algorithm, the authorized data acquisition terminal and the main node marked as the leader execute the consensus process. Other authorized nodes act as secondary nodes. The main node broadcasts its data block, timestamp and other information to the secondary nodes for verification and review. When all nodes reach a consistency consensus, it is considered that the new block can be added to the consortium chain; Use the main node to send the currently audited data block and the corresponding digital signature record to all authorized data acquisition terminal nodes for storage, and then store the data block in the blockchain network; For the operation record information in the pumping station control operation blockchain, the authorized pumping station management platform node and the main node execute the consensus process. After verifying and reviewing the data block, add it to the blockchain network for storage.

4. The method for establishing a pump station safety control environment based on blockchain according to claim 3, wherein Based on the improved PBFT consensus algorithm, the authorized data acquisition terminal and the main node marked as the leader execute the consensus process. Other authorized nodes act as secondary nodes. The main node broadcasts its data block, timestamp and other information to the secondary nodes for verification and review, including: Aggregate all the operation data monitored by sensors uploaded by the main node into a new data block. The data block contains information such as the digital signature of the main node and the hash value of the block. The requesting end node sends a request message to all terminal nodes in the network to activate the service operation of the nodes; After receiving the request, the main node sorts multiple data information to be placed in the new block from the monitoring data uploaded by all sensors and stores them in a list, and broadcasts the list to all nodes in the entire blockchain network; When each node receives the transaction list, it verifies and audits the integrity and legality of the transactions, adds the audit results to the digital signature of each node, and broadcasts them to other secondary nodes.

5. An apparatus for establishing a pump station safety control environment based on blockchain, characterized in that, The device implements the method for establishing a pump station safety control environment as described in claim 1, including: An information verification module that uses the elliptic curve digital signature algorithm to sign the pump station control operation form and the pump station operation monitoring data, and authenticates the identity of the nodes uploading the data; A block construction module that constructs a data block and securely stores the data after authentication; An audit module that uses an improved PBFT consensus algorithm to obtain a consensus protocol for the consistency of each node in the blockchain after secure storage, and records the data block that has completed consensus verification in the blockchain; A data analysis module that automatically analyzes the operation data in the blockchain by deploying a smart contract to detect abnormal data and faults and trigger an alarm.

6. An electronic device, characterized in that, Including: A processor and a memory communicatively connected to the processor; The memory stores computer execution instructions; The processor executes the computer execution instructions stored in the memory to implement the method as described in any one of claims 1-4.

7. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer execution instructions, and when the computer execution instructions are executed by the processor, they are used to implement the method as described in any one of claims 1-4.

Citation Information

Patent Citations

  • Vehicular ad-hoc network data security sharing and storage system based on blockchain technology

    CN109451467A

  • Internet of Vehicles cross-domain authentication method based on side chain technology trust model

    CN112153608A

  • Equipment management method and device, equipment and storage medium

    CN114638500A

  • Environment monitoring data sharing method and system based on block chain

    CN116055157A