Intelligent water conservancy information management method and system based on block chain

By adopting a blockchain-based and IPFS-based data information management platform in the water conservancy industry, the shortcomings in water conservancy data sharing, security, scalability and real-time performance are solved, and the security, high throughput and scalable storage and sharing of water conservancy data are achieved.

CN119622795APending Publication Date: 2025-03-14HOHAI UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411657544.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-19
Publication Date
2025-03-14

AI Technical Summary

Technical Problem

The existing blockchain technology has shortcomings in data sharing, security, scalability and real-time performance in the water conservancy industry, and it is difficult to meet the specific needs of water conservancy data.

Method used

Adopt a data information management platform based on blockchain and IPFS, and through user control modules, data management modules and policy control modules, user permission management, data storage and process automation are realized. Optimize the consensus algorithm and masternode election method of blockchain using Hyperledger Fabric architecture and improved Raft algorithm.

Benefits of technology

Ensure the secure storage and sharing of water conservancy data, improve the verifiability and traceability of the system, enhance the scalability and throughput of the system, and reduce system latency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119622795A_ABST
    Figure CN119622795A_ABST
Patent Text Reader

Abstract

The invention discloses an intelligent water conservancy information management method and system based on a block chain, and relates to the field of water conservancy data storage and sharing. The method comprises the steps that (1) an intelligent water conservancy platform based on a block chain and an IPFS file system is constructed, and after a user makes a data uploading request, the platform receives data and stores the data in the IPFS; (2) the IPFS feeds back an address hash value corresponding to the data to the block chain, and the block chain node packages the hash value in a transaction record; (3) a main node election mode of the block chain adopts a vote change mechanism, the candidate node free time number and the slave node free time number are compared, and the candidate node with the maximum free time number is selected as a main node; and (4) the block passing through the node consensus is added into the block chain, the data on the chain is displayed on a platform page, and the user can check and modify the data according to the authority. Safe storage and sharing of the water conservancy data are achieved, the data storage efficiency is improved, the consensus time is shortened, and the system throughput is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of storage and sharing of water conservancy data, and in particular to a blockchain-based smart water conservancy information management method and system. Background Art

[0002] Due to the huge potential of blockchain, in recent years, various water conservancy departments have analyzed the application scenarios of blockchain technology in the water conservancy industry based on water conservancy business needs, and actively explored the application of blockchain technology in water conservancy information resources, safe operation of water projects, water project construction, urban and rural water supply and water conservation, and promoted the construction of smart water conservancy.

[0003] However, there are still some shortcomings in the application of blockchain in the water conservancy industry, especially in the water conservancy information platform. First of all, although there are explorations on data sharing in current domestic and foreign research, the response to the data types, data volume and real-time data transmission issues unique to the water conservancy industry is not sufficient. The data in the water conservancy industry often contains a large amount of geographic information and real-time monitoring data. The particularity of these data requires more in-depth research and targeted solutions. Secondly, the current research on the security, scalability and practical operability of blockchain technology in the water conservancy industry is also not in-depth enough. The water conservancy industry involves important infrastructure and public safety, so the ability of blockchain technology in ensuring data security, ensuring system stability and responding to emergencies still needs more verification and improvement. Summary of the invention

[0004] Purpose of the invention: Aiming at the characteristics of large data volume, high frequency of data changes and strong data confidentiality in the water conservancy industry, the present invention proposes a blockchain-based smart water conservancy information management method and system. The purpose is to achieve high throughput of the system under the premise of ensuring the security of water conservancy data.

[0005] Technical solution: To achieve the above-mentioned invention object, the present invention adopts the following technical solution:

[0006] A blockchain-based smart water conservancy information management method comprises the following steps:

[0007] (1) Build a data information management platform based on blockchain and IPFS. The platform includes the following functional modules: user control module, data management module, and policy control module.

[0008] The user control module is used to complete the registration of new users and user rights management. The access rights are generated by the system administrator by calling smart contracts and published on the blockchain. The blockchain stores basic user information and data permissions, and identifies users with unique blockchain IDs, thereby realizing user management functions.

[0009] The data management module combines blockchain and IPFS to store the data uploaded by users in IPFS, and stores the address hash value of the corresponding data in IPFS in the blockchain. In addition, the data management module automates the data storage process through smart contracts.

[0010] The policy control module is to formulate rules for establishing user permissions, clarify the process of users uploading, modifying, and viewing data, manage the corresponding smart contracts, and realize the smooth execution of the above rules and processes through automatic management and control of smart contracts.

[0011] (2) In step (1), the platform acts as a central hub to receive data uploaded by users of water conservancy agencies and save it on IPFS. IPFS can provide distributed and permanent storage for water conservancy data without any storage restrictions. The water conservancy data in the blockchain is replaced by the hash value that identifies the data or file in IPFS. These data include water conservancy agency personnel information P i , Equipment operating status E j , Scheduling information D m Etc. Staff of water conservancy agencies can submit requests to upload data at any time, and upload permissions are automatically controlled by smart contracts.

[0012] The request is such as a request to upload the device operating status It can be expressed as:

[0013]

[0014] Where N d Indicates the request number, EN d Indicates the equipment number, ET d Indicates the device type, ES d Indicates device status, PID d Indicates the uploader ID of the device running status, T d Indicates the time when the device running status was created.

[0015] (3) IPFS stores the request as an object and generates a hash value corresponding to the entire request data. The blockchain receives and stores the hash value to ensure that the data cannot be tampered with and is traceable.

[0016] (4) In steps (1) to (3), the system uses the Hyperledger Fabric architecture as the blockchain used and the improved Raft algorithm as the consensus algorithm.

[0017] The Raft master node election method is optimized and a ballot change mechanism is adopted. If the term number (Term) of a candidate node is smaller than the term number (currentTerm) of a slave node, the candidate node is reminded that its term number has expired and the vote for the node is refused. If Term is not smaller than currentTerm and the slave node has not voted for other candidate nodes in this round of voting, the number of votes for the candidate node is increased by one. If the slave node has voted for other candidate nodes, a comparison voting request is triggered to vote for the candidate node with a larger term number.

[0018] (5) On-chain data such as agency personnel management and equipment operation monitoring are displayed in the form of charts on the platform. Government regulatory departments, water conservancy agency staff, and ordinary people can view the data according to their permissions, and the viewing permissions are automatically controlled by smart contracts.

[0019] Beneficial effects: Compared with the prior art, the present invention has the following beneficial effects:

[0020] (1) Due to the immutability and openness of blockchain, the present invention can ensure the secure storage and sharing of water conservancy data, while improving the verifiability and traceability of the system.

[0021] (2) By moving data to IPFS and storing its address hash value on the blockchain, the burden and limitations of blockchain data storage are reduced, making the system scalable to a certain extent. As the scale of platform data increases, the system can expand well without affecting its performance.

[0022] (2) A vote change mechanism is adopted to prevent deadlock caused by competition among multiple candidate nodes, shorten the election time, thereby reducing system latency and increasing system throughput. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] Figure 1 This is a schematic diagram of the framework of the smart water conservancy information management system based on blockchain;

[0024] Figure 2 It is a workflow diagram of the vote change mechanism. DETAILED DESCRIPTION

[0025] The present invention is further explained below in conjunction with the accompanying drawings and specific embodiments. It should be understood that these embodiments are only used to illustrate the present invention and are not used to limit the scope of the present invention. After reading the present invention, various equivalent forms of modifications to the present invention by those skilled in the art all fall within the scope defined by the claims attached to this application.

[0026] The present invention provides a blockchain-based smart water conservancy information management method and system, comprising the following steps:

[0027] like Figure 1As shown, a blockchain-based smart water conservancy information management system disclosed in an embodiment of the present invention includes the following construction process:

[0028] (1) Build a water conservancy data display platform, which includes the following functional pages: personnel management page, equipment management page, operation data page and task management page. They are used to view, add, delete and modify the organization personnel information, equipment in and out data, equipment operation data and personnel dispatch data.

[0029] (2) Configure user control and policy control functions so that users with different roles can obtain different data operation permissions. This includes the following three main processes: new user registration; establishing access and policy updates.

[0030] New user registration: When a new user joins the network, the system calls the smart contract to complete the new user's registration and generate the new user's data permissions. The permissions and user information will be uploaded to the blockchain for storage and automatically managed by the smart contract.

[0031] Establishing access: When a user wants to access protected data, such as the dispatch information of Pump No. 1, the system calls the smart contract for access authentication and queries whether the required authorization is stored on the blockchain. After confirming that it exists, the user can perform corresponding operations on the data, otherwise the system rejects the user's operation request.

[0032] Policy update: System administrators can revoke or update the permissions granted to a requester by calling a smart contract. They only need to pass a new permission set in the blockchain transaction record. If the set is empty, it means that all permissions of the user are revoked.

[0033] (3) Users with data upload permissions submit requests to upload data on the platform. The platform calls the smart contract to save the request to IPFS. IPFS generates an address hash value corresponding to the entire request data. The blockchain receives and stores the hash value. At the same time, the platform displays the data that has been uploaded to the chain. Users with different roles can view, modify, and perform other operations on the data with different permissions on the platform.

[0034] like Figure 2 As shown, the present invention uses an improved Raft algorithm and a vote change mechanism. The specific process is as follows:

[0035] If the term number (Term) of the candidate node is less than the term number (currentTerm) of the slave node, the candidate node is reminded that its term number has expired and the vote for the node is refused; if Term is not less than currentTerm, and the slave node has not voted for other candidate nodes in this round of voting, the number of votes for the candidate node is increased by one. If the slave node has voted for other candidate nodes, a comparison voting request is triggered, and the candidate node with a larger term number is chosen to vote.

Claims

1. A blockchain-based smart water conservancy information management method and system, characterized in that: The steps include: (1) Build a smart water conservancy platform based on blockchain and IPFS file system. After the user submits a data upload request, the platform receives the data and saves it in IPFS; (2) IPFS feeds back the address hash value corresponding to the data to the blockchain. The nodes in the blockchain network encapsulate the hash value in the transaction record and package the transaction record into a block. (3) The blockchain uses a vote change mechanism to elect the master node; (4) Blocks that pass node consensus are added to the blockchain, and the on-chain data is displayed on the platform page. Users can view and modify the data according to their permissions.

2. According to a blockchain-based smart water conservancy information management method and system according to claim 1, it is characterized in that: When a new user requests to join the network, the system calls the smart contract to complete the new user's registration and generate the new user's data permissions. The permissions and user information will be uploaded to the blockchain for storage and automatically managed by the smart contract.

3. According to a blockchain-based smart water conservancy information management method and system according to claim 1, it is characterized in that: After the user submits a data upload request, the smart contract reviews the user's permissions based on the agreed rules. After the permission review is passed, the platform receives the data uploaded by the user and saves it to IPFS. This data includes but is not limited to the personnel information of the water conservancy agency, the equipment operating status, and the equipment scheduling information.

4. According to a blockchain-based smart water conservancy information management method and system according to claim 3, it is characterized in that: The IPFS file system stores the data uploaded by the user, the blockchain ID of the uploader, and the upload time. The blockchain stores the address hash value of the above information in IPFS, and the blockchain node can obtain the complete data through the hash value.

5. According to a blockchain-based smart water conservancy information management method and system according to claim 1, it is characterized in that: The blockchain's master node election method uses a ballot change mechanism to change the voting affiliation of the slave nodes by comparing the term numbers of the candidate nodes. If the term number (Term) of the candidate node is smaller than the term number (currentTerm) of the slave node, the candidate node is reminded that its term number has expired and the vote for the node is refused. If Term is not less than currentTerm, and the slave node has not voted for other candidate nodes in this round of voting, the vote for the candidate node is increased by one. If the slave node has voted for other candidate nodes, a comparison vote request is triggered to vote for the candidate node with a larger term number.

6. According to a blockchain-based smart water conservancy information management method and system according to claim 1, it is characterized in that: The blocks that pass the node consensus are added to the blockchain, completing the data on-chain. The on-chain data is displayed on the platform page, and users can view and modify the data according to the permissions described in claim 2.

7. According to a blockchain-based smart water conservancy information management method and system according to claim 6, it is characterized in that: When a user submits a data access request to the system, the system calls the smart contract to complete the user's permission review; in addition, the system administrator can call the smart contract to revoke or update the access rights granted to a user.