A semi-centralized groundwater resource management system
Through a semi-centralized groundwater resource management system, using smart contracts and multiple functional sub-chains, the problems of centralization and excessive decentralization of traditional management systems are solved, safe, transparent and fair management of groundwater resources is achieved, and resources are improved. Utilization efficiency.
Patent Information
- Application Number
- CN202410344632.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-25
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2044-03-25
AI Technical Summary
Traditional groundwater resource management has problems such as centralized systems that are susceptible to data tampering, opacity, insufficient trust, unfair resource allocation, and inadequate supervision. Existing blockchain-based systems have the risk of information leakage caused by excessive decentralization.
Using a semi-centralized groundwater resource management system, combined with smart contracts, multiple functional sub-chains and public chains/consortium chains, data are recorded through the phreatic layer, confined water layer information sub-chain and transaction information sub-chain in the domain to achieve Modular and hierarchical management ensures data security and transparency.
It improves the safety, transparency and fairness of groundwater resource management, reduces labor supervision and audit costs, and ensures the sustainable supply of groundwater and resource utilization efficiency.
Smart Images

Figure CN118379007B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of groundwater resource treatment, and in particular to a semi-centralized groundwater resource management technology. Background Art
[0002] Groundwater is one of the most important water resources in human production and life. It is less affected by the natural environment on the surface and has stable water sources. It plays an irreplaceable role in residents' lives, industrial and agricultural production, and urban and rural construction. However, the problems of over-exploitation of groundwater, groundwater pollution, and land subsidence caused by the increase in global population, intensified climate change, and accelerated urbanization have put groundwater resources under serious pressure. It is becoming increasingly important to manage and protect groundwater resources to ensure sustainable water supply and environmental sustainability. However, traditional groundwater resource management usually has the following problems:
[0003] 1) Relying on centralized groundwater monitoring and reporting systems, which are vulnerable to data tampering, opacity, and data storage risks. Once hacked, they will cause immeasurable losses and are difficult to recover. Due to centralized management, water users cannot obtain some of the water source data and cannot judge the authenticity of the data;
[0004] 2) Decisions on the use and allocation of groundwater resources are usually made by central agencies or government agencies, lacking detailed records of resource flows and uses, that is, the management of extraction information (such as groundwater approval, water consumption, water resource uses, number of extraction wells, etc.) is missing. This opacity may lead to unfair resource allocation and potential abuse;
[0005] 3) There is often insufficient trust between groundwater rights trading entities, or they rely on third-party institutions, and the transaction review process is cumbersome, resulting in high labor costs;
[0006] 4) In some areas, water users generally illegally exploit groundwater resources, resulting in excessive water withdrawal, which in turn causes massive waste or indirect groundwater pollution. At the same time, relevant departments fail to supervise effectively and impose strict penalties.
[0007] Blockchain is a secure, shared, decentralized data management technology known for its decentralization, security, transparency, and traceability. The technology ensures the immutability of information and decentralized management by linking data together in the form of blocks. The distributed accounting technology of blockchain enables all parties to conduct verifiable transactions without the need for trusted intermediaries, and provides many potential applications, with great potential in solving traditional groundwater resource management problems. Blockchain can achieve decentralized data storage and exchange, ensure data integrity and transparency, reduce information asymmetry problems, and improve the compliance and fairness of groundwater resource management.
[0008] Patent document with application publication number CN113177731A discloses a water resource decision-making management system based on smart contracts. It manages a large amount of distributed water resource data through a blockchain platform, uses smart contracts to evaluate and predict water resource conditions, and makes dynamic water resource allocation decisions. The system uses blockchain to record a large amount of water resource data and transaction information. There is no hierarchical record of data, which is easy to cause data confusion. If a malicious node is encountered, the user's transaction information may be leaked. The particularity of groundwater information management is not considered. Patent document with application publication number CN113177730A discloses a water resource traceability management system, which uses a distributed ledger to The water resource data of each link is stored and managed, and the data recording process is open and transparent. Water quantity and water quality problems are identified and diagnosed through smart contracts, and the nodes where the problems occur are directly identified through traceability. The system uses a single chain to record all water resource data. There is no hierarchical storage of information, and the data of the entire system is mixed and difficult to manage. If the blockchain fails or is attacked, the data availability of the entire system may be threatened. Sensitive water resource data may be mixed with other non-sensitive data, which may increase the risk of privacy leakage. At the same time, the water resource management systems involved in the above patents do not impose rights constraints on blockchains at different levels, and there is a risk of information leakage due to excessive decentralization.
[0009] In response to the above shortcomings, the applicant proposed a semi-centralized groundwater resource management system. The present invention is based on technologies such as smart contracts, semi-centralized management, and digital signatures. It uses multiple functional sub-chains to collaboratively record information, and uses public chains and alliance chains in parallel, making the entire groundwater resource management system more modular and hierarchical, water rights transactions safer, and resource utilization more fair and reasonable, which greatly ensures the sustainable supply of groundwater, reduces manpower supervision and review, and saves a lot of time, financial and material resources. Summary of the invention
[0010] The purpose of this invention is to solve the problem of data non-disclosure and opacity caused by the high degree of centralization of traditional groundwater resource management, and the problem of information leakage caused by excessive decentralization in the existing blockchain-based water resource management system, and to propose a semi-centralized groundwater resource management technology.
[0011] In order to solve the above technical problems, the technical solution adopted by the present invention is:
[0012] A semi-centralized groundwater resource management system, including a groundwater source mining area monitoring module, a groundwater mining volume assessment module, a groundwater rights trading module, a sub-chain system for intra-domain aquifer information, a sub-chain system for intra-domain confined water layer information, a sub-chain system for intra-domain trading information, a main chain system for intra-domain information, and a main chain system for cross-domain trading information;
[0013] The output end of the groundwater source exploitation area monitoring module is respectively connected to the input end of the domain's aquifer information subchain system, the domain's confined water layer information subchain system and the groundwater exploitation volume assessment module; the output end of the groundwater exploitation volume assessment module is connected to the input end of the groundwater rights trading module; the output end of the groundwater rights trading module is connected to the input end of the domain's transaction information subchain system; the output ends of the domain's aquifer information subchain system, the domain's confined water layer information subchain system and the domain's transaction information subchain system are respectively connected to the input end of the domain's information main chain system.
[0014] The groundwater source mining area monitoring module includes water quality sensors, water level sensors, water temperature sensors, environmental monitoring systems, and groundwater assessment systems, which are used to monitor the real-time dynamic changes of groundwater levels and water quality as well as environmental geological characteristics, and to assess groundwater reserves;
[0015] The groundwater extraction volume assessment module is used to predict and assess the groundwater extraction volume in the target area;
[0016] The groundwater rights trading module is used to manage the trading of groundwater rights, including sales, leases and transfers, and automate the trading process based on smart contracts to better allocate groundwater resources.
[0017] The sub-chain system of the phreatic layer information in the region adopts public chain technology to record and store the phreatic layer information of the water source area and the hydrogeology, geomorphology, lithology, geological structure and environmental data;
[0018] The confined water layer information sub-chain system in the region adopts public chain technology to record and store the information of the confined water layer of the water source area and the hydrogeology, geomorphology, lithology, geological structure and environmental data;
[0019] The intra-domain transaction information sub-chain system adopts alliance chain technology to provide a groundwater rights trading and transfer platform for industrial, agricultural and domestic water users, and all personal information, transaction information and groundwater extraction information are recorded in the sub-chain to realize point-to-public and point-to-point transactions;
[0020] The domain information main chain system stores the information recorded by the three sub-chain systems in a certain time sequence as nodes on the chain;
[0021] The cross-domain transaction information main chain system adopts alliance chain technology to provide a groundwater resource allocation and transaction platform between regions. The management departments within the region can trade with other regions based on the groundwater reserves in the region, and record the overall groundwater resource situation in the region and cross-regional transaction information in chronological order in the blockchain.
[0022] The semi-centralized groundwater resource management system includes the following steps when it works:
[0023] Step 1: The user enters the groundwater resource management system and registers;
[0024] Step 2: Different users become nodes on the chain and obtain corresponding permissions;
[0025] Step 3: The groundwater source monitoring department node uploads the water source information to the subchain system;
[0026] Step 4: Water rights trading users apply for and conduct groundwater rights trading and transfer through smart contracts;
[0027] Step 5: The transaction information in the domain is uploaded to the corresponding sub-chain system respectively, and integrated with the other two sub-chains into the domain information main chain system;
[0028] Step 6: Different regions allocate, dispatch and trade groundwater resources according to groundwater conditions, and save transaction information on the chain to the cross-domain transaction information main chain system;
[0029] Step 7: The intra-domain information main chain system and the cross-domain transaction information main chain system are integrated into the groundwater resource management system.
[0030] In step 1, the user enters the groundwater resource management system and registers. The user registration categories include ordinary users within the domain, water rights trading users within the domain, groundwater management departments within the domain, and groundwater monitoring departments within the domain. Water rights trading users within the domain need to be reviewed and authorized by the groundwater management department within the domain, and groundwater management departments within the domain need to be reviewed and authorized by the global groundwater management department. After the authorization, the authoritative certificate certification body will issue a digital certificate as identity proof for legal information recording;
[0031] In step 2, the four types of authorized users become ordinary user nodes, water rights trading nodes, groundwater management department nodes, and groundwater monitoring department nodes in the domain, and go up to the subchain nodes of the aquifer information and confined water layer information in the domain, the subchain nodes of the transaction information in the domain, and the main chain nodes of the cross-domain transaction information respectively; ordinary user nodes are responsible for receiving new blocks and groundwater source data, and checking and supervising water source data; the transaction information node in the domain is the user node of water rights trading in the domain, which mainly initiates and completes transactions, records transaction information in the network, and can also view the subchain data of groundwater source information; the groundwater management department node in the domain mainly views the groundwater source data information in the domain, coordinates with other regional management agencies to dispatch groundwater resources, is responsible for initiating inter-domain groundwater dispatch and transactions, and packages cross-domain transaction information, and then stores it on the chain;
[0032] In step 3, the groundwater source monitoring department node uses the groundwater source exploitation area monitoring module (1) to monitor the real-time dynamic changes of groundwater level and water quality as well as environmental geological characteristics, and sends the monitored groundwater data to the groundwater exploitation volume assessment module to assess and predict the groundwater exploitation volume in the area;
[0033] In step 4, the water rights trading user node in the domain and the groundwater management department node in the domain, or the water rights trading user nodes in the domain apply for groundwater rights trading or groundwater rights transfer in the groundwater rights trading module according to the needs. The system automatically creates a smart contract based on the needs and information of both parties. The user obtains the water withdrawal permit certificate through approval, and the contract automatically executes the water rights transaction;
[0034] In step 5, the groundwater source information and the groundwater transaction information in the domain are uploaded to the corresponding sub-chain system after consensus and digital signature respectively. The sub-chain system in the domain is integrated into the main chain system of the domain information as a node in chronological order; among them, the digital signature is based on the PKI system, and the digital certificate is used in conjunction with the public key cryptography system. The asymmetric encryption method is used to verify the accuracy of the information. If it has not been tampered with, it will be uploaded to the corresponding blockchain after obtaining the node consensus;
[0035] In step 6, different regions can view the groundwater utilization and storage conditions in each region, and according to the assessment of groundwater resources, cross-regional groundwater resource allocation, dispatch and transaction can be carried out through smart contracts. Regions with rich groundwater reserves can sell them, and regions with less groundwater reserves can purchase water rights from other regions, artificially replenish the aquifers in the region or sell them to the people in the region. Finally, the transaction information is saved on the chain to the cross-domain transaction information main chain system. Cross-domain transactions are uniformly supervised and coordinated by the global groundwater management department, and unified groundwater resource management standards and protocols are formulated and promoted;
[0036] In step 7, the intra-domain information main chain system and the cross-domain transaction information main chain system are integrated into the semi-centralized groundwater resource management system through the API program interface, integrating a unified user identity authentication system to ensure the identity consistency and security of users in intra-domain and cross-domain water rights transactions.
[0037] In step 4, the system automatically creates a smart contract based on the needs and information of both parties, including setting the rules, trigger conditions, and default conditions for groundwater rights transactions. Without the intervention of a third party, the smart contract is triggered to automatically execute the program, conduct groundwater rights transactions, and produce fair and credible results. The specific steps include:
[0038] 4-1) Create and deploy trusted code and contract standards to the blockchain, and generate four types of groundwater trading smart contracts, including groundwater rights trading or transfer contracts, water quality real-time monitoring and alarm contracts, groundwater extraction quota contracts, and hydrogeological and environmental monitoring and early warning contracts;
[0039] 4-2) Agricultural, industrial and domestic water-using institutions apply for groundwater rights trading or transfer according to their needs, submit personal information, water demand, etc., and the smart contract confirms their rights and interests, allocates available groundwater resources through the intelligent decision-making module, and the contract is automatically executed;
[0040] 4-3) Water users extract groundwater resources and equip them with water quality sensors to monitor the extracted groundwater resources in real time, and set up a first water quality monitoring and determination device;
[0041] 4-4) If the water quality meets the standards, groundwater extraction can continue as per the contract;
[0042] 4-5) If the water quality is polluted, the alarm system will be triggered, the contract will be suspended, the pumping will stop, and the groundwater management department will intervene to further inspect and repair the groundwater quality;
[0043] 4-6) While extracting groundwater, an intelligent groundwater monitoring water meter is equipped and connected to the backend to monitor the user's water use in real time, and a second monitoring and determination device is set up;
[0044] 4-7) If the water withdrawal does not exceed the contractually agreed amount, the water meter will continue to be monitored;
[0045] 4-8) If the amount of water extracted exceeds the amount agreed in the contract, the alarm system will be triggered, the contract will be suspended and water extraction will be stopped. The management department will punish the water user or charge extra fees for the excess water;
[0046] 4-9) During the entire contract execution period, the groundwater resources management department will monitor the hydrogeology and environmental conditions around the water wells and set up a third environmental monitoring and determination device;
[0047] 4-10) If the environment meets the standards, groundwater extraction can continue as per the contract;
[0048] 4-11) If the environment or soil is contaminated, the early warning system is triggered, the contract is suspended, pumping is stopped, and the groundwater management department repairs the environment and investigates the contamination;
[0049] 4-12) The above transaction information, contract execution information and water quality, water quantity and environment-related monitoring information are all packaged and uploaded to the intra-domain transaction information sub-chain, and further uploaded to the intra-domain information main chain;
[0050] In step 4-2), when allocating available groundwater resources through the intelligent decision-making module, a two-layer optimization model is used to optimize the user's water use strategy, and the optimization strategy adopted by the optimization model includes upper-layer optimization and lower-layer optimization;
[0051] The upper optimization is for water resource management agencies to optimize the overall goal of groundwater resource management, maximize the ecological and environmental benefits, and consider various constraints, such as resource availability, environmental protection, and water demand of water users to ensure sustainable groundwater management; the lower optimization is for groundwater resource management agencies to consider how to allocate groundwater resources to maximize the total social benefits;
[0052] When optimizing the user water use strategy, the following steps are used:
[0053] (1) First, the groundwater units in the region are divided into i (i = 1, 2 ... n) according to the groundwater recharge area. Each groundwater unit contains w (w = 1, 2 ... x) exploitable areas, and each exploitation area contains s (s = 1, 2 ... S) water users;
[0054] (2) Taking the environmental ecological benefit as the upper optimization goal, the difference between the user's water intake and the groundwater recharge is selected as the main indicator, and the groundwater sustainability, groundwater level, water quality standard, and user water demand are taken as the upper constraint conditions, while taking into account the sustainability of groundwater resources and ecological protection. In short, from the perspective of environmental benefits, it is hoped that the system can achieve the best ecological sustainability while meeting the basic water use requirements. The function formula is:
[0055]
[0056] st
[0057]
[0058]
[0059]
[0060]
[0061] Where: P q i,w,t is the recoverable volume of the aquifer in mining area w of groundwater unit i in the domain at period t; q i,w,t is the water extraction coefficient of the aquifer for a user s in the exploitation area w of groundwater unit i in the domain at period t; P c i,w,t ξ is the recoverable volume of confined water layer in mining area w of groundwater unit i in the domain at period t; c i,w,t is the water extraction coefficient of the groundwater layer of a user s in the exploitation area w of the groundwater unit i in the domain at period t; β q i,w,t ,β c i,w,tare the recharge coefficients of the aquifer and confined aquifer in the mining area w of groundwater unit i in the domain due to rainfall or other factors in period t; G(β q i,w,t ,β c i,w,t ) is the groundwater recharge function of the aquifer and confined aquifer in the mining area w of groundwater unit i in the domain at period t; ΔQ groundwater,i is the difference between groundwater extraction and groundwater recharge in groundwater unit i within the domain; h i,w is the real-time water level of the mining area w of groundwater unit i; H 下限 , H 上限 are the upper and lower limits of the groundwater level respectively; f(h i,w )=P i,w is the groundwater level h i,w The recoverable amount at that time is P i,w ;P' i,w,t,min ,P' i,w,t,max are the sum of the maximum and minimum water volumes required by all users in the mining area w of groundwater unit i; P i,w,k is the maximum groundwater extraction volume in the mining area w according to national standards; S j i,w is the groundwater quality parameter of mining area w in groundwater unit i; S i,w,k D is the national standard for groundwater quality parameters in mining area w of groundwater unit i; j' i,w is the hydrogeological parameter of mining area w in groundwater unit i; D i,w,k National standards for hydrogeological parameters of mining area w in groundwater unit i;
[0062] (3) Taking the total social benefit as the lower optimization target, the net benefits of groundwater trading and water supply are selected as the main indicators, and the groundwater price, water supply cost, and groundwater pollution are taken as the lower constraints. In short, from the perspective of total social benefit, it is hoped that the system can obtain the maximum benefit under the premise of meeting ecological sustainability. The function formula is:
[0063]
[0064] st
[0065] z' i ∈z' i,t,k ,z i ∈z i,t,k
[0066] z GW,i,t ∈z GW,i,t,k
[0067]
[0068] Where: z' i is the groundwater price of groundwater unit i in the region, RMB / m 3 ;z i is the water supply cost of groundwater unit i in the region, yuan / m 3 ; W GW,i,t is the groundwater storage in groundwater unit i during period t; δ i,t is the groundwater pollution coefficient in groundwater unit i during period t; z GW,i,t is the cost of groundwater pollution remediation in groundwater unit i during period t, RMB / m 3 ; E groundwater,i The net benefit of trading, water supply, treatment and restoration of groundwater unit i within the region; z' i,t,k ,z i,t,k are the groundwater price and water supply cost of groundwater unit i in period t according to national standards; GW,i,t,k is the groundwater pollution remediation cost of groundwater unit i in period t according to national standards; i,t,k is the maximum groundwater pollution coefficient of groundwater unit i at period t as specified by national norms and standards;
[0069] (4) The two-layer optimization solution can be solved by a solution method that does not limit the solution to fuzzy satisfaction. After the model is established, the fuzzy satisfaction algorithm is used to solve it: Assuming that the upper and lower objective functions are independent of each other, the lingo software is used to solve them separately to obtain the ideal optimal results ΔQ of the upper and lower functions. u groundwater,i , E u groundwater,i Through subjective judgment or scenario-based discussion and negotiation by decision makers, the boundary of the upper and lower objective function values (Q 1 and E 1 ), establish the fuzzy membership function corresponding to the upper and lower satisfaction functions:
[0070]
[0071] Where: ΔQ groundwater,i is the upper objective function; E groundwater,i is the lower layer objective function; α is the upper layer satisfaction function; is the lower layer satisfaction function. Finally, through the global satisfaction function Solve max(γ) and output the user's groundwater resource allocation plan.
[0072] In step 5, the following steps are specifically included:
[0073] 5-1) In the intra-domain transaction information sub-chain system, the intra-domain water rights transaction user node is registered and authorized by the authoritative node, and the authoritative certificate certification authority CA issues a digital certificate.
[0074] 5-2) The user node of the water rights transaction in the domain submits the transaction application to two groundwater endorsement nodes. After receiving the transaction proposal, the groundwater endorsement node will verify the format of the transaction proposal, the user signature, whether it has the right to submit the transaction, etc. After verification, the transaction calculation is completed through the smart contract;
[0075] 5-3) The groundwater endorsement node signs the result and sends it to the water rights transaction user node in the domain. If one of the endorsement nodes does not return the result due to network problems, it must be sent to the third endorsement node, otherwise the transaction will be invalid.
[0076] 5-4) The water rights transaction user node in the domain receives and sends the endorsement result (transaction proposal, endorsement signature) and its own signature to the sorting node.
[0077] 5-5) This system adopts the Kafka consensus mechanism, and multiple sorting nodes work together. Each sorting node will send the transactions it receives to the Kafka cluster of the groundwater sorting system. After the transactions are sorted in the Kafka cluster, Kafka pushes the sorted transactions to the sorting node.
[0078] 5-6) The sorting node packages the sorted transactions into blocks at fixed time intervals and broadcasts them to all master nodes in the transaction information subchain system in the domain through gPRC. (This prevents the failure of a single sorting node from causing system operation paralysis).
[0079] 5-7) After receiving the block, the master node verifies the digital signature of each transaction in the block to determine whether it is valid: if it is valid, the world state will be updated; if it is invalid, it will be marked as "invalid" and the world state will not be updated, but the entire block will be fully recorded in the local ledger (including invalid transactions).
[0080] 5-8) If more than half of the nodes verify that a transaction is invalid, the transaction will be marked as invalid in the system block and returned to the user to re-initiate the transaction.
[0081] 5-9) All nodes in the system act as accounting nodes to keep accounts, and transmit messages between nodes through Gossip communication to synchronize blocks.
[0082] 5-10) In the domain-wide aquifer information sub-chain system and the domain-wide confined aquifer information sub-chain system, the domain-wide groundwater monitoring department node transmits the groundwater source information and hydrogeological information to the data verification determiner, and the authoritative node will determine its authenticity and validity;
[0083] 5-11) If the data is wrong or invalid, the authoritative node will find out the cause of the problem, hold the groundwater monitoring department node in the domain accountable or punish it, and re-upload the data;
[0084] 5-12) If the data is correct, it is passed to the sorting node, sorted by the Kafka cluster of the groundwater sorting system, and then sent to the sorting node;
[0085] 5-13) The sorting node transmits information to ordinary user nodes on the subchain through gPRC broadcast in a fixed time order.
[0086] 5-14) Ordinary user nodes in the domain act as read-only nodes and accounting nodes, and verify the digital signature of the information sent by the node. If valid, it will be recorded in its own account book. If invalid, it will be marked invalid and also recorded in the account book.
[0087] 5-15) The water rights trading user nodes within the domain are also granted the rights of ordinary user nodes within the domain, and can view the data of the aquifer information sub-chain system and the confined water layer information sub-chain system within the domain without the need for accounting.
[0088] 5-16) The functional nodes in the consensus mechanism of the three sub-chains in the domain must be dynamically adjusted and verified throughout the whole process, such as the replacement of groundwater endorsement nodes, the increase and decrease of sorting nodes, the inspection and verification of each functional node information and certificates, etc. If a fake or malicious node is encountered, it can be removed in time to ensure the maintainability and long-term availability of the system.
[0089] 5-17) The consensus mechanism of the cross-domain transaction information main chain system is the same as the consensus mechanism of the intra-domain transaction information sub-chain system.
[0090] In step 5-7), when performing digital signing, the following sub-steps are used:
[0091] (1) After registering, the user node will obtain a private key and a public key. The private key is unique and is kept only by the user. The private key is converted into a public key through a hash operation. The authoritative issuing agency CA will then issue a digital certificate to the user and define some content information (such as version information, serial number, issuing agency name, certificate owner name, public key information, issuing agency's signature on the certificate, etc.);
[0092] (2) When a transaction is initiated between nodes or groundwater source information (within / between domains) is uploaded, the contract is automatically executed, and the groundwater transaction information or water source information (within / between domains) is hashed to generate a groundwater information (within / between domains) summary, which is then encrypted into ciphertext by the private key. The sorting node broadcasts the groundwater information (within / between domains), public key, and ciphertext to all master nodes;
[0093] (3) After receiving the groundwater information broadcast by the user, the other nodes first verify its public key based on its digital certificate to ensure that the public key is not forged and has not been tampered with;
[0094] (4) After verification, the groundwater information is hashed to obtain groundwater information summary 1, and the ciphertext is decrypted using the verified public key to obtain groundwater information summary 2;
[0095] (5) comparing groundwater information summary 1 with groundwater information summary 2;
[0096] (6) If they are consistent, the remaining nodes will package and record the user's groundwater information (within the domain / between domains), store it in the local ledger, and update the world state;
[0097] (7) If there is any inconsistency, the groundwater information (within the domain / between domains) has been tampered with or is fake information, and is also recorded in the local ledger with an invalid label. The chain fails and the world state will not be updated. The transaction needs to be re-initiated.
[0098] The present invention also includes a semi-centralized groundwater resource management method, comprising the following steps:
[0099] Step 1: The user enters the groundwater resource management system and registers;
[0100] Step 2: Different users become nodes on the chain and obtain corresponding permissions;
[0101] Step 3: The groundwater source monitoring department node uploads the water source information to the subchain system;
[0102] Step 4: Water rights trading users apply for and conduct groundwater rights trading and transfer through smart contracts;
[0103] Step 5: The transaction information in the domain is uploaded to the corresponding sub-chain system respectively, and integrated with the other two sub-chains into the domain information main chain system;
[0104] Step 6: Different regions allocate, dispatch and trade groundwater resources according to groundwater conditions, and save transaction information on the chain to the cross-domain transaction information main chain system;
[0105] Step 7: The intra-domain information main chain system and the cross-domain transaction information main chain system are integrated into the groundwater resource management system.
[0106] The intra-domain information main chain system saves the information recorded by the three sub-chain systems as nodes on the chain in a certain time sequence; the cross-domain transaction information main chain system adopts alliance chain technology to provide a groundwater resource allocation and transaction platform between regions. The management departments within the region can trade with other regions based on the groundwater reserves in the region, and record the overall groundwater resources situation in the region and cross-regional transaction information in the blockchain in chronological order.
[0107] In step 1, the user enters the groundwater resource management system and registers. The user registration categories include ordinary users within the domain, water rights trading users within the domain, groundwater management departments within the domain, and groundwater monitoring departments within the domain. Water rights trading users within the domain need to be reviewed and authorized by the groundwater management department within the domain, and groundwater management departments within the domain need to be reviewed and authorized by the global groundwater management department. After the authorization, the authoritative certificate certification body will issue a digital certificate as identity proof for legal information recording;
[0108] In step 2, the four types of authorized users become ordinary user nodes, water rights trading nodes, groundwater management department nodes, and groundwater monitoring department nodes in the domain, and go up to the subchain nodes of the aquifer information and confined water layer information in the domain, the subchain nodes of the transaction information in the domain, and the main chain nodes of the cross-domain transaction information respectively; ordinary user nodes are responsible for receiving new blocks and groundwater source data, and checking and supervising water source data; the transaction information node in the domain is the user node of water rights trading in the domain, which mainly initiates and completes transactions, records transaction information in the network, and can also view the subchain data of groundwater source information; the groundwater management department node in the domain mainly views the groundwater source data information in the domain, coordinates with other regional management agencies to dispatch groundwater resources, is responsible for initiating inter-domain groundwater dispatch and transactions, and packages cross-domain transaction information, and then stores it on the chain;
[0109] In step 3, the groundwater source monitoring department node uses the groundwater source exploitation area monitoring module to monitor the real-time dynamic changes of groundwater level and water quality as well as environmental geological characteristics, and sends the monitored groundwater data to the groundwater exploitation volume assessment module to assess and predict the groundwater exploitation volume in the area;
[0110] In step 4, the water rights trading user node in the domain and the groundwater management department node in the domain, or the water rights trading user nodes in the domain apply for groundwater rights trading or groundwater rights transfer in the groundwater rights trading module according to the needs. The system automatically creates a smart contract based on the needs and information of both parties. The user obtains the water withdrawal permit certificate through approval, and the contract automatically executes the water rights transaction;
[0111] In step 5, the groundwater source information and the groundwater transaction information in the domain are uploaded to the corresponding sub-chain system after consensus and digital signature respectively. The sub-chain system in the domain is integrated into the main chain system of the domain information as a node in chronological order; among them, the digital signature is based on the PKI system, and the digital certificate is used in conjunction with the public key cryptography system. The asymmetric encryption method is used to verify the accuracy of the information. If it has not been tampered with, it will be uploaded to the corresponding blockchain after obtaining the node consensus;
[0112] In step 6, different regions can view the groundwater utilization and storage conditions in each region, and according to the assessment of groundwater resources, cross-regional groundwater resource allocation, dispatch and transaction can be carried out through smart contracts. Regions with rich groundwater reserves can sell them, and regions with less groundwater reserves can purchase water rights from other regions, artificially replenish the aquifers in the region or sell them to the people in the region. Finally, the transaction information is saved on the chain to the cross-domain transaction information main chain system. Cross-domain transactions are uniformly supervised and coordinated by the global groundwater management department, and unified groundwater resource management standards and protocols are formulated and promoted;
[0113] In step 7, the intra-domain information main chain system and the cross-domain transaction information main chain system are integrated into the semi-centralized groundwater resource management system through the API program interface, integrating a unified user identity authentication system to ensure the identity consistency and security of users in intra-domain and cross-domain water rights transactions.
[0114] In step 4, the system automatically creates a smart contract based on the needs and information of both parties, including setting the rules, trigger conditions, and default conditions for groundwater rights transactions. Without the intervention of a third party, the smart contract is triggered to automatically execute the program, conduct groundwater rights transactions, and produce fair and credible results. The specific steps include:
[0115] 4-1) Create and deploy trusted code and contract standards to the blockchain, and generate four types of groundwater trading smart contracts, including groundwater rights trading or transfer contracts, water quality real-time monitoring and alarm contracts, groundwater extraction quota contracts, and hydrogeological and environmental monitoring and early warning contracts;
[0116] 4-2) Agricultural, industrial and domestic water-using institutions apply for groundwater rights trading or transfer according to their needs, submit personal information, water demand, etc., and the smart contract confirms their rights and interests, allocates available groundwater resources through the intelligent decision-making module, and the contract is automatically executed;
[0117] 4-3) Water users extract groundwater resources and equip them with water quality sensors to monitor the extracted groundwater resources in real time, and set up a first water quality monitoring and determination device;
[0118] 4-4) If the water quality meets the standards, groundwater extraction can continue as per the contract;
[0119] 4-5) If the water quality is polluted, the alarm system will be triggered, the contract will be suspended, the pumping will stop, and the groundwater management department will intervene to further inspect and repair the groundwater quality;
[0120] 4-6) While extracting groundwater, an intelligent groundwater monitoring water meter is equipped and connected to the backend to monitor the user's water use in real time, and a second monitoring and determination device is set up;
[0121] 4-7) If the water withdrawal does not exceed the contractually agreed amount, the water meter will continue to be monitored;
[0122] 4-8) If the amount of water extracted exceeds the amount agreed in the contract, the alarm system will be triggered, the contract will be suspended and water extraction will be stopped. The management department will punish the water user or charge extra fees for the excess water;
[0123] 4-9) During the entire contract execution period, the groundwater resources management department will monitor the hydrogeology and environmental conditions around the water wells and set up a third environmental monitoring and determination device;
[0124] 4-10) If the environment meets the standards, groundwater extraction can continue as per the contract;
[0125] 4-11) If the environment or soil is contaminated, the early warning system is triggered, the contract is suspended, pumping is stopped, and the groundwater management department repairs the environment and investigates the contamination;
[0126] 4-12) The above transaction information, contract execution information and water quality, water quantity and environment-related monitoring information are all packaged and uploaded to the intra-domain transaction information sub-chain, and further uploaded to the intra-domain information main chain;
[0127] In step 4-2), when allocating available groundwater resources through the intelligent decision-making module, a two-layer optimization model is used to optimize the user's water use strategy, and the optimization strategy adopted by the optimization model includes upper-layer optimization and lower-layer optimization;
[0128] The upper optimization is for water resource management agencies to optimize the overall goal of groundwater resource management, maximize the ecological and environmental benefits, and consider various constraints, such as resource availability, environmental protection, and water demand of water users to ensure sustainable groundwater management; the lower optimization is for groundwater resource management agencies to consider how to allocate groundwater resources to maximize the total social benefits;
[0129] When optimizing the user water use strategy, the following steps are used:
[0130] (1) First, the groundwater units in the region are divided into i (i = 1, 2 ... n) according to the groundwater recharge area. Each groundwater unit contains w (w = 1, 2 ... x) exploitable areas, and each exploitation area contains s (s = 1, 2 ... S) water users;
[0131] (2) Taking the environmental ecological benefit as the upper optimization goal, the difference between the user's water intake and the groundwater recharge is selected as the main indicator, and the groundwater sustainability, groundwater level, water quality standard, and user water demand are taken as the upper constraint conditions, while taking into account the sustainability of groundwater resources and ecological protection. In short, from the perspective of environmental benefits, it is hoped that the system can achieve the best ecological sustainability while meeting the basic water use requirements. The function formula is:
[0132]
[0133] st
[0134]
[0135]
[0136]
[0137]
[0138] Where: P q i,w,t is the recoverable volume of the aquifer in mining area w of groundwater unit i in the domain at period t; q i,w,t is the water extraction coefficient of the aquifer for a user s in the exploitation area w of groundwater unit i in the domain at period t; P c i,w,t ξ is the recoverable volume of confined water layer in mining area w of groundwater unit i in the domain at period t; c i,w,t is the water extraction coefficient of the groundwater layer of a user s in the exploitation area w of the groundwater unit i in the domain at period t; β q i,w,t ,β c i,w,t are the recharge coefficients of the aquifer and confined aquifer in the mining area w of groundwater unit i in the domain due to rainfall or other factors in period t; G(β q i,w,t ,β c i,w,t ) is the groundwater recharge function of the aquifer and confined aquifer in the mining area w of groundwater unit i in the domain at period t; ΔQ groundwater,i is the difference between groundwater extraction and groundwater recharge in groundwater unit i within the domain; h i,w is the real-time water level of the mining area w of groundwater unit i; H 下限 , H 上限 are the upper and lower limits of the groundwater level respectively; f(h i,w )=P i,w is the groundwater level h i,w The recoverable amount at that time is P i,w ;P' i,w,t,min ,P' i,w,t,max are the sum of the maximum and minimum water volumes required by all users in the mining area w of groundwater unit i; P i,w,k is the maximum groundwater extraction volume in the mining area w according to national standards; S j i,wis the groundwater quality parameter of mining area w in groundwater unit i; S i,w,k D is the national standard for groundwater quality parameters in mining area w of groundwater unit i; j' i,w is the hydrogeological parameter of mining area w in groundwater unit i; D i,w,k National standards for hydrogeological parameters of mining area w in groundwater unit i;
[0139] (3) Taking the total social benefit as the lower optimization target, the net benefits of groundwater trading and water supply are selected as the main indicators, and the groundwater price, water supply cost, and groundwater pollution are taken as the lower constraints. In short, from the perspective of total social benefit, it is hoped that the system can obtain the maximum benefit under the premise of meeting ecological sustainability. The function formula is:
[0140]
[0141] st
[0142] z' i ∈z' i,t,k ,z i ∈z i,t,k
[0143] z GW,i,t ∈z GW,i,t,k
[0144]
[0145] Where: z' i is the groundwater price of groundwater unit i in the region, RMB / m 3 ;z i is the water supply cost of groundwater unit i in the region, yuan / m 3 ; W GW,i,t is the groundwater storage in groundwater unit i during period t; δ i,t is the groundwater pollution coefficient in groundwater unit i during period t; z GW,i,t is the cost of groundwater pollution remediation in groundwater unit i during period t, RMB / m 3 ; E groundwater,i The net benefit of trading, water supply, treatment and restoration of groundwater unit i within the region; z' i,t,k ,z i,t,k are the groundwater price and water supply cost of groundwater unit i in period t according to national standards; GW,i,t,k is the groundwater pollution remediation cost of groundwater unit i in period t according to national standards; i,t,k is the maximum groundwater pollution coefficient of groundwater unit i at period t as specified by national norms and standards;
[0146] (4) The two-layer optimization solution can be solved by a solution method that does not limit the solution to fuzzy satisfaction. After the model is established, the fuzzy satisfaction algorithm is used to solve it: Assuming that the upper and lower objective functions are independent of each other, the lingo software is used to solve them separately to obtain the ideal optimal results ΔQ of the upper and lower functions. u groundwater,i , E u groundwater,i Through subjective judgment or scenario-based discussion and negotiation by decision makers, the boundary of the upper and lower objective function values (Q 1 and E 1 ), establish the fuzzy membership function corresponding to the upper and lower satisfaction functions:
[0147]
[0148] Where: ΔQ groundwater,i is the upper objective function; E groundwater,i is the lower layer objective function; α is the upper layer satisfaction function; is the lower layer satisfaction function. Finally, through the global satisfaction function Solve max(γ) and output the user's groundwater resource allocation plan.
[0149] In step 5, the following steps are specifically included:
[0150] 5-1) In the intra-domain transaction information sub-chain system, the intra-domain water rights transaction user node is registered and authorized by the authoritative node, and the authoritative certificate certification authority CA issues a digital certificate.
[0151] 5-2) The user node of the water rights transaction in the domain submits the transaction application to two groundwater endorsement nodes. After receiving the transaction proposal, the groundwater endorsement node will verify the format of the transaction proposal, the user signature, whether it has the right to submit the transaction, etc. After verification, the transaction calculation is completed through the smart contract;
[0152] 5-3) The groundwater endorsement node signs the result and sends it to the water rights transaction user node in the domain. If one of the endorsement nodes does not return the result due to network problems, it must be sent to the third endorsement node, otherwise the transaction will be invalid.
[0153] 5-4) The water rights transaction user node in the domain receives and sends the endorsement result (transaction proposal, endorsement signature) and its own signature to the sorting node.
[0154] 5-5) This system adopts the Kafka consensus mechanism, and multiple sorting nodes work together. Each sorting node will send the transactions it receives to the Kafka cluster of the groundwater sorting system. After the transactions are sorted in the Kafka cluster, Kafka pushes the sorted transactions to the sorting node.
[0155] 5-6) The sorting node packages the sorted transactions into blocks at fixed time intervals and broadcasts them to all master nodes in the transaction information subchain system in the domain through gPRC. (This prevents the failure of a single sorting node from causing system operation paralysis).
[0156] 5-7) After receiving the block, the master node verifies the digital signature of each transaction in the block to determine whether it is valid: if it is valid, the world state will be updated; if it is invalid, it will be marked as "invalid" and the world state will not be updated, but the entire block will be fully recorded in the local ledger (including invalid transactions).
[0157] 5-8) If more than half of the nodes verify that a transaction is invalid, the transaction will be marked as invalid in the system block and returned to the user to re-initiate the transaction.
[0158] 5-9) All nodes in the system act as accounting nodes to keep accounts, and transmit messages between nodes through Gossip communication to synchronize blocks.
[0159] 5-10) In the domain-wide aquifer information sub-chain system and the domain-wide confined aquifer information sub-chain system, the domain-wide groundwater monitoring department node transmits the groundwater source information and hydrogeological information to the data verification determiner, and the authoritative node will determine its authenticity and validity;
[0160] 5-11) If the data is wrong or invalid, the authoritative node will find out the cause of the problem, hold the groundwater monitoring department node in the domain accountable or punish it, and re-upload the data;
[0161] 5-12) If the data is correct, it is passed to the sorting node, sorted by the Kafka cluster of the groundwater sorting system, and then sent to the sorting node;
[0162] 5-13) The sorting node transmits information to ordinary user nodes on the subchain through gPRC broadcast in a fixed time order.
[0163] 5-14) Ordinary user nodes in the domain act as read-only nodes and accounting nodes, and verify the digital signature of the information sent by the node. If valid, it will be recorded in its own account book. If invalid, it will be marked invalid and also recorded in the account book.
[0164] 5-15) The water rights trading user nodes within the domain are also granted the rights of ordinary user nodes within the domain, and can view the data of the aquifer information sub-chain system and the confined water layer information sub-chain system within the domain without the need for accounting.
[0165] 5-16) The functional nodes in the consensus mechanism of the three sub-chains in the domain must be dynamically adjusted and verified throughout the whole process, such as the replacement of groundwater endorsement nodes, the increase and decrease of sorting nodes, the inspection and verification of each functional node information and certificates, etc. If a fake or malicious node is encountered, it can be removed in time to ensure the maintainability and long-term availability of the system.
[0166] 5-17) The consensus mechanism of the cross-domain transaction information main chain system is the same as the consensus mechanism of the intra-domain transaction information sub-chain system.
[0167] In step 5-7), when performing digital signing, the following sub-steps are used:
[0168] (1) After registering, the user node will obtain a private key and a public key. The private key is unique and is kept only by the user. The private key is converted into a public key through a hash operation. The authoritative issuing agency CA will then issue a digital certificate to the user and define some content information (such as version information, serial number, issuing agency name, certificate owner name, public key information, issuing agency's signature on the certificate, etc.);
[0169] (2) When a transaction is initiated between nodes or groundwater source information (within / between domains) is uploaded, the contract is automatically executed, and the groundwater transaction information or water source information (within / between domains) is hashed to generate a groundwater information (within / between domains) summary, which is then encrypted into ciphertext by the private key. The sorting node broadcasts the groundwater information (within / between domains), public key, and ciphertext to all master nodes;
[0170] (3) After receiving the groundwater information broadcast by the user, the other nodes first verify its public key based on its digital certificate to ensure that the public key is not forged and has not been tampered with;
[0171] (4) After verification, the groundwater information is hashed to obtain groundwater information summary 1, and the ciphertext is decrypted using the verified public key to obtain groundwater information summary 2;
[0172] (5) comparing groundwater information summary 1 with groundwater information summary 2;
[0173] (6) If they are consistent, the remaining nodes will package and record the user's groundwater information (within the domain / between domains), store it in the local ledger, and update the world state;
[0174] (7) If there is any inconsistency, the groundwater information (within the domain / between domains) has been tampered with or is fake information, and is also recorded in the local ledger with an invalid label. The chain fails and the world state will not be updated. The transaction needs to be re-initiated.
[0175] Compared with the prior art, the present invention has the following technical effects:
[0176] 1) Information sub-chain management: Data information such as groundwater sources, geology, and environment are recorded on public chains to ensure openness and transparency of information and prevent fraud; transaction information is recorded on alliance chains, with a controllable number of members, easy management, stronger security, and moderate decentralization (semi-centralization); it can be used to manage groundwater source information (diving layer information, confined water layer information) and water rights transaction information in the region separately. This modular structure allows each sub-chain to focus on specific tasks while ensuring the coordinated work of various systems, which is more efficient, safe, clear and fast;
[0177] 2) Improve the efficiency of groundwater resource utilization: In smart contracts, smart contracts can automatically execute the allocation and management of groundwater resources. Smart contracts automatically adjust resource allocation strategies based on the data of the groundwater layer and the confined water layer to ensure the sustainable use of resources. Use program algorithms instead of human arbitration and contract execution to avoid interference with contract execution caused by human factors. Through the application of groundwater resource allocation decision-making modules and smart contracts, the utilization efficiency of groundwater resources is improved, the optimal utilization of resources is ensured, and the fairness and security of water rights transactions and the reasonable allocation of groundwater resources are guaranteed. Different contracts monitor and warn of groundwater in real time, and also prevent problems such as resource waste and environmental pollution caused by groundwater exploitation;
[0178] 3) Data security and traceability: The information and transactions of groundwater resources are stored in the form of blocks. At the same time, only the core water resource management department can record important water rights transaction information. The semi-centralized management and distributed accounting of the present invention ensure a high degree of groundwater data security, publicity and traceability, and eliminate the problems of data tampering and opacity;
[0179] 4) Reduce intermediary costs: The present invention reduces the involvement of intermediaries in groundwater resource management and water rights transactions, reduces labor costs, and thus reduces transaction costs and time, ensuring that transactions are accurate, convenient, and efficient;
[0180] 5) Resource utilization is more compliant and people’s awareness of environmental protection is enhanced: The automated execution of smart contracts ensures the compliance of transactions and groundwater resource utilization and also enhances people’s environmental protection, which contributes to ecological sustainable development. BRIEF DESCRIPTION OF THE DRAWINGS
[0181] The present invention will be further described below in conjunction with the accompanying drawings and embodiments:
[0182] Figure 1 It is a schematic diagram of the structure of the semi-centralized groundwater resource management system in the present invention;
[0183] Figure 2 It is a structural diagram of the cross-domain transaction information main chain system in the present invention;
[0184] Figure 3 A schematic diagram of the composition of users of the groundwater resource management system of the present invention;
[0185] Figure 4 This is a workflow diagram of the semi-centralized groundwater resource management system in the present invention;
[0186] Figure 5 This is a flowchart of the operation of the groundwater rights transaction smart contract in the present invention;
[0187] Figure 6 This is a flow chart of the consensus mechanism of the groundwater resource management system in the present invention;
[0188] Figure 7 This is a flow chart of the digital signature in the present invention. DETAILED DESCRIPTION
[0189] like Figure 1 As shown, a semi-centralized groundwater resource management system includes a groundwater source mining area monitoring module 1, a groundwater mining volume assessment module 2, a groundwater rights trading module 3, a subchain system for intra-domain aquifer information 4, a subchain system for intra-domain confined water layer information 5, an intra-domain transaction information subchain system 6, an intra-domain information main chain system 7, and a cross-domain transaction information main chain system 8;
[0190] The output end of the groundwater source exploitation area monitoring module 1 is respectively connected to the input end of the domain's aquifer information subchain system 4, the domain's confined water layer information subchain system 5 and the groundwater exploitation volume assessment module 2, the output end of the groundwater exploitation volume assessment module 2 is connected to the input end of the groundwater rights trading module 3, the output end of the groundwater rights trading module 3 is connected to the input end of the domain's transaction information subchain system 6, the output ends of the domain's aquifer information subchain system 4, the domain's confined water layer information subchain system 5 and the domain's transaction information subchain system 6 are respectively connected to the input end of the domain's information main chain system 7.
[0191] The groundwater source mining area monitoring module 1 includes a water quality sensor, a water level sensor, a water temperature sensor, an environmental monitoring system, a groundwater assessment system, etc., which is used to monitor the real-time dynamic changes of groundwater level and water quality as well as environmental geological characteristics, and to assess groundwater reserves;
[0192] The groundwater extraction volume assessment module 2 is used to predict and assess the groundwater extraction volume in the area;
[0193] Groundwater rights trading module 3 is used to manage the trading of groundwater rights, including sales, leases and transfers. It helps the government or groundwater management department automate the trading process based on smart contracts and better allocate groundwater resources.
[0194] The sub-chain system 4 of the groundwater layer information in the domain adopts public chain technology to record and store the groundwater quality detection data, groundwater level data, groundwater temperature data, groundwater reserve assessment results and hydrogeology, geomorphology, lithology, geological structure, environmental data, etc. of the groundwater layer information of the water source area;
[0195] The confined water layer information sub-chain system 5 in the region adopts public chain technology to record and store the information of the confined water layer of the water source area and the hydrogeology, geomorphology, lithology, geological structure, environmental data, etc.
[0196] The intra-domain transaction information sub-chain system 6 adopts alliance chain technology to provide a groundwater rights transaction and transfer platform for industrial, agricultural and domestic water users, and all personal information, transaction information and groundwater extraction information are recorded in the sub-chain, realizing point (water user) to public (groundwater management department) and point (water user) to point (water user) transactions;
[0197] The domain information main chain system 7 stores the information recorded by the above three sub-chain systems in a certain time sequence as nodes on the chain;
[0198] This system uses four functional chains, each subchain is a separate system, namely the intra-domain phreatic layer information subchain system, the intra-domain confined water layer information subchain system, the intra-domain transaction information subchain system, and the cross-domain transaction information main chain system. The intra-domain phreatic layer information subchain and the intra-domain confined water layer information subchain are public chains, the intra-domain transaction information subchain is a consortium chain, and the cross-domain transaction information chain is also a consortium chain. The intra-domain phreatic layer information subchain and the confined water layer information subchain respectively record the groundwater source information (groundwater level, water quality, water temperature) of each layer, hydrogeological information (such as permeability coefficient, hydraulic conductivity, water level conductivity, pressure conductivity, water supply, water release coefficient, overflow coefficient), geological structure, landform, lithology and environmental information; the intra-domain transaction information subchain records the groundwater rights transaction and transfer information in the region. The cross-domain transaction information main chain records the groundwater rights transaction, dispatch and allocation information between regions.
[0199] like Figure 2 As shown, the cross-domain transaction information main chain system 8 adopts alliance chain technology to provide a groundwater resource allocation and transaction platform between regions. The management departments within the region can trade with other regions based on the groundwater reserves in the region, and record the overall groundwater resource situation of the region and cross-regional transaction information in chronological order in the blockchain.
[0200] like Figure 4 As shown in the figure, the semi-centralized groundwater resource management system includes the following steps when it works:
[0201] Step 1: The user enters the groundwater resource management system and registers;
[0202] Step 2: Different users become nodes on the chain and obtain corresponding permissions;
[0203] Step 3: The groundwater source monitoring department node uploads the water source information to the subchain system;
[0204] Step 4: Water rights trading users apply for and conduct groundwater rights trading and transfer through smart contracts;
[0205] Step 5: The transaction information in the domain is uploaded to the corresponding sub-chain system respectively, and integrated with the other two sub-chains into the domain information main chain system (7);
[0206] Step 6: Different regions allocate, dispatch and trade groundwater resources according to groundwater conditions, and save transaction information on the chain to the cross-domain transaction information main chain system 8;
[0207] Step 7, the intra-domain information main chain system 7 and the cross-domain transaction information main chain system 8 are integrated into the groundwater resource management system.
[0208] The above steps 1 to 7 constitute a semi-centralized groundwater resource management method, which can also be used independently.
[0209] In step 1, the user enters the groundwater resource management system and registers. The user registration categories include ordinary users within the domain, water rights trading users within the domain, groundwater management departments within the domain, and groundwater monitoring departments within the domain; Figure 3 As shown, ordinary users in the domain include individual users in production and life, and ordinary residential users, who can view the status of groundwater sources and monitor groundwater usage, and trade to buy water; water rights trading users in the domain include farmers who need farmland irrigation, large-scale enterprise factories, mineral energy mining units, water companies, etc., who can view groundwater source data and apply for groundwater rights trading; groundwater management departments in the domain include relevant departments such as water affairs or natural resources in the management area, which are responsible for reviewing groundwater users, controlling the amount of groundwater extraction in the entire area, preventing and controlling pollution, maintaining a reasonable groundwater level, protecting groundwater quality, and dispatching and allocating groundwater resources with other areas; groundwater monitoring departments in the domain include water affairs in the region The groundwater monitoring department under the department or natural resources department is responsible for monitoring the water level, water quality, hydrogeology, and environment of the groundwater source, recording the monitoring and detection data, and uploading the data to the corresponding sub-chain system; the global groundwater management department includes the water affairs department or natural resources department that manages the global groundwater resources, which is responsible for the unified supervision and management of global groundwater; and the above-mentioned areas are administrative areas above the county level, and the global area is the national area; water rights trading users within the region need to be reviewed and authorized by the groundwater management department within the region, and the groundwater management department within the region needs to be reviewed and authorized by the global groundwater management department. After the authorization, the user shall be issued a digital certificate by an authoritative certificate certification body as an identity certificate for legal information recording;
[0210] In step 2, the four types of authorized users become ordinary user nodes, water rights trading nodes, groundwater management department nodes, and groundwater monitoring department nodes in the domain, and go up to the subchain nodes of the aquifer information and confined water layer information in the domain, the subchain nodes of the transaction information in the domain, and the main chain nodes of the cross-domain transaction information respectively; ordinary user nodes are responsible for receiving new blocks and groundwater source data, and checking and supervising water source data; the transaction information node in the domain is the user node of water rights trading in the domain, which mainly initiates and completes transactions, records transaction information in the network, and can also view the subchain data of groundwater source information; the groundwater management department node in the domain mainly views the groundwater source data information in the domain, coordinates with other regional management agencies to dispatch groundwater resources, is responsible for initiating inter-domain groundwater dispatch and transactions, and packages cross-domain transaction information, and then stores it on the chain;
[0211] In step 3, the groundwater source monitoring department node uses the groundwater source mining area monitoring module 1 to monitor the real-time dynamic changes of groundwater level and water quality and environmental geological characteristics, and sends the monitored groundwater data to the groundwater mining volume assessment module 2 to assess and predict the groundwater mining volume in the area;
[0212] In step 4, the water rights trading user node in the domain and the groundwater management department node in the domain, or the water rights trading user nodes in the domain apply for groundwater rights trading or groundwater rights transfer in the groundwater rights trading module 3 according to the needs. The system automatically creates a smart contract based on the needs and information of both parties. The user obtains the water withdrawal permit certificate through approval, and the contract automatically executes the water rights transaction;
[0213] In step 5, the groundwater source information and the groundwater transaction information in the domain are uploaded to the corresponding sub-chain system after consensus and digital signature respectively, and the sub-chain system in the domain is integrated into the main chain system of the domain information as a node in chronological order; among them, the digital signature is based on the PKI system, and the digital certificate is used in conjunction with the public key cryptography system, and the asymmetric encryption method is used to verify the accuracy of the information and that it has not been tampered with. After obtaining the node consensus, it is uploaded to the corresponding blockchain;
[0214] In step 6, different regions can view the groundwater utilization and storage conditions in each region, and according to the assessment of groundwater resource conditions, cross-regional groundwater resource allocation, dispatch and transaction can be carried out through smart contracts. Regions with abundant groundwater reserves can sell them, and regions with less groundwater reserves can purchase water rights from other regions, artificially replenish the aquifers in the region or sell them to the people in the region. Finally, the transaction information is saved on the chain to the cross-domain transaction information main chain system 8. Cross-domain transactions are uniformly supervised and coordinated by the global groundwater management department, and unified groundwater resource management standards and protocols are formulated and promoted;
[0215] In step 7, the intra-domain information main chain system and the cross-domain transaction information main chain system are integrated into the semi-centralized groundwater resource management system through the API program interface, integrating a unified user identity authentication system to ensure the identity consistency and security of users in intra-domain and cross-domain water rights transactions.
[0216] This system is divided into five categories of users and corresponding five categories of user nodes, including ordinary users within the domain, transaction users within the domain, groundwater management departments within the domain, groundwater monitoring departments within the domain, and global groundwater management departments. Ordinary users within the domain can only view and supervise the groundwater source information within the domain, while transaction users within the domain can trade groundwater rights and view the groundwater sources within the domain. The groundwater management department within the domain can conduct cross-domain groundwater resource transactions and dispatch with groundwater management departments in other regions. The groundwater monitoring department within the domain can monitor groundwater source information and evaluate groundwater reserves. The global groundwater management department monitors and manages the global groundwater situation.
[0217] like Figure 5 As shown, in step 4, the system automatically creates a smart contract based on the needs and information of both parties, including setting the rules, triggering conditions, and default conditions for groundwater rights transactions. Without the intervention of a third party, the smart contract is triggered to automatically execute the program, conduct groundwater rights transactions, and produce fair and credible results; specifically, the following steps are included:
[0218] 4-1) The groundwater resource management department creates and deploys trusted code and contract standards to the blockchain in accordance with national regulations such as the "Measures for the Management of Groundwater Protection and Utilization" and the "Groundwater Management Regulations", and generates four types of groundwater transaction smart contracts, including groundwater rights trading or transfer contracts, water quality real-time monitoring and alarm contracts, groundwater extraction quota contracts, and hydrogeological and environmental monitoring and early warning contracts;
[0219] 4-2) Agricultural, industrial and domestic water-using institutions apply for groundwater rights trading or transfer according to their needs, submit personal information, water demand, etc., and the smart contract confirms their rights and interests, allocates available groundwater resources through the intelligent decision-making module, and the contract is automatically executed;
[0220] 4-3) Water users extract groundwater resources and equip them with water quality sensors to monitor the extracted groundwater resources in real time, and set up a first water quality monitoring and determination device;
[0221] 4-4) If the water quality meets the standards, groundwater extraction can continue as per the contract;
[0222] 4-5) If the water quality is polluted, the alarm system will be triggered, the contract will be suspended, the pumping will stop, and the groundwater management department will intervene to further inspect and repair the groundwater quality;
[0223] 4-6) While extracting groundwater, an intelligent groundwater monitoring water meter is equipped and connected to the backend to monitor the user's water use in real time, and a second monitoring and determination device is set up;
[0224] 4-7) If the water withdrawal does not exceed the contractually agreed amount, the water meter will continue to be monitored;
[0225] 4-8) If the amount of water extracted exceeds the amount agreed in the contract, the alarm system will be triggered, the contract will be suspended and water extraction will be stopped. The management department will punish the water user or charge extra fees for the excess water;
[0226] 4-9) During the entire contract execution period, the groundwater resources management department will monitor the hydrogeology and environmental conditions around the water wells and set up a third environmental monitoring and determination device;
[0227] 4-10) If the environment meets the standards, groundwater extraction can continue as per the contract;
[0228] 4-11) If the environment or soil is contaminated, the early warning system is triggered, the contract is suspended, pumping is stopped, and the groundwater management department repairs the environment and investigates the contamination;
[0229] 4-12) The above transaction information, contract execution information and water quality, water quantity and environment-related monitoring information are all packaged and uploaded to the intra-domain transaction information sub-chain, and further uploaded to the intra-domain information main chain;
[0230] In step 4-2), when allocating available groundwater resources through the intelligent decision-making module, a two-layer optimization model is used to optimize the user's water use strategy, and the optimization strategy adopted by the optimization model includes upper-layer optimization and lower-layer optimization;
[0231] The upper optimization is for water resource management agencies to optimize the overall goal of groundwater resource management, maximize ecological and environmental benefits, and consider various constraints, such as resource availability, environmental protection, and water demand of water users, to ensure sustainable groundwater management. The lower optimization is for groundwater resource management agencies to consider how to allocate groundwater resources to maximize total social benefits;
[0232] (1) First, the groundwater units in the region are divided into i (i = 1, 2 ... n) according to the groundwater recharge area. Each groundwater unit contains w (w = 1, 2 ... x) exploitable areas, and each exploitation area contains s (s = 1, 2 ... S) water users;
[0233] (2) Taking the environmental ecological benefit as the upper optimization goal, the difference between the user's water intake and the groundwater recharge is selected as the main indicator, and the groundwater sustainability, groundwater level, water quality standard, and user water demand are taken as the upper constraint conditions, while taking into account the sustainability of groundwater resources and ecological protection. In short, from the perspective of environmental benefits, it is hoped that the system can achieve the best ecological sustainability while meeting the basic water use requirements. The function formula is:
[0234]
[0235] st
[0236]
[0237]
[0238]
[0239]
[0240] Where: P q i,w,t is the recoverable volume of the aquifer in mining area w of groundwater unit i in the domain at period t; q i,w,t is the water extraction coefficient of the aquifer for a user s in the exploitation area w of groundwater unit i in the domain at period t; P c i,w,t ξ is the recoverable volume of confined water layer in mining area w of groundwater unit i in the domain at period t; c i,w,t is the water extraction coefficient of the groundwater layer of a user s in the exploitation area w of the groundwater unit i in the domain at period t; β q i,w,t ,β c i,w,t are the recharge coefficients of the aquifer and confined aquifer in the mining area w of groundwater unit i in the domain due to rainfall or other factors in period t; G(β q i,w,t ,β c i,w,t ) is the groundwater recharge function of the aquifer and confined aquifer in the mining area w of groundwater unit i in the domain at period t; ΔQ groundwater,i is the difference between groundwater extraction and groundwater recharge in groundwater unit i within the domain; h i,w is the real-time water level of the mining area w of groundwater unit i; H 下限 , H 上限 are the upper and lower limits of the groundwater level respectively; f(h i,w )=P i,w is the groundwater level h i,w The recoverable amount at that time is Pi,w ;P' i,w,t,min ,P' i,w,t,max are the sum of the maximum and minimum water volumes required by all users in the mining area w of groundwater unit i; P i,w,k is the maximum groundwater extraction volume in the mining area w according to national standards; S j i,w is the groundwater quality parameter of mining area w in groundwater unit i; S i,w,k D is the national standard for groundwater quality parameters in mining area w of groundwater unit i; j' i,w is the hydrogeological parameter of mining area w in groundwater unit i; D i,w,k National standards for hydrogeological parameters of mining area w in groundwater unit i;
[0241] (3) Taking the total social benefit as the lower optimization target, the net benefits of groundwater trading and water supply are selected as the main indicators, and the groundwater price, water supply cost, and groundwater pollution are taken as the lower constraints. In short, from the perspective of total social benefit, it is hoped that the system can obtain the maximum benefit under the premise of meeting ecological sustainability. The function formula is:
[0242]
[0243] st
[0244] z' i ∈z' i,t,k ,z i ∈z i,t,k
[0245] z GW,i,t ∈z GW,i,t,k
[0246]
[0247] Where: z' i is the groundwater price of groundwater unit i in the region, RMB / m 3 ;z i is the water supply cost of groundwater unit i in the region, yuan / m 3 ; W GW,i,t is the groundwater storage in groundwater unit i during period t; δ i,t is the groundwater pollution coefficient in groundwater unit i during period t; z GW,i,t is the cost of groundwater pollution remediation in groundwater unit i during period t, RMB / m 3 ; E groundwater,i The net benefit of trading, water supply, treatment and restoration of groundwater unit i within the region; z' i,t,k ,z i,t,kare the groundwater price and water supply cost of groundwater unit i in period t according to national standards; GW,i,t,k is the groundwater pollution remediation cost of groundwater unit i in period t according to national standards; i,t,k is the maximum groundwater pollution coefficient of groundwater unit i at period t as specified by national norms and standards;
[0248] (4) The two-layer optimization solution can be solved by a solution method that does not limit the solution to fuzzy satisfaction. After the model is established, the fuzzy satisfaction algorithm is used to solve it: Assuming that the upper and lower objective functions are independent of each other, the lingo software is used to solve them separately to obtain the ideal optimal results ΔQ of the upper and lower functions. u groundwater,i , E u groundwater,i Through subjective judgment or scenario-based discussion and negotiation by decision makers, the boundary of the upper and lower objective function values (Q 1 and E 1 ), establish the fuzzy membership function corresponding to the upper and lower satisfaction functions:
[0249]
[0250] Where: ΔQ groundwater,i is the upper objective function; E groundwater,i is the lower layer objective function; α is the upper layer satisfaction function; is the lower layer satisfaction function. Finally, through the global satisfaction function Solve max(γ) and output the user's groundwater resource allocation plan.
[0251] This system uses four smart contracts (groundwater rights trading and transfer contract, water quality real-time monitoring and alarm contract, groundwater extraction quota contract, hydrogeology and environmental monitoring and early warning contract) and three determiners to conduct intelligent real-time management and monitoring of groundwater rights trading, groundwater extraction and other processes. A groundwater resource optimization configuration module is equipped inside the groundwater rights trading contract to optimize the configuration of groundwater resources in the same mining area. After the water rights transaction is executed, the water quality real-time monitoring and alarm contract is equipped with a water quality sensor and the groundwater extraction quota contract is equipped with an intelligent groundwater monitoring water meter to monitor the extraction of groundwater resources in real time to see if the water quality is polluted or the amount of water is over-extracted. The hydrogeology and environmental monitoring and early warning contract is equipped with an environmental monitoring sensor to monitor the surrounding environment in real time to see if it meets the pumping standards.
[0252] like Figure 6 As shown, in step 5, the consensus mechanism needs to be completed by each functional node;
[0253] The functional nodes in this system are: authority nodes, groundwater endorsement nodes, sorting nodes, accounting nodes, read-only nodes, and master nodes.
[0254] The authoritative nodes, groundwater endorsement nodes, and sorting nodes are nodes of relevant government departments or groundwater management departments; the master nodes are all nodes on each chain; the accounting nodes are the master nodes on each chain; and the read-only nodes are ordinary user nodes in the domain;
[0255] The authoritative node is mainly responsible for reviewing and authorizing water rights trading user information;
[0256] The groundwater endorsement node is mainly bound to the smart contract, responsible for reviewing and verifying user transaction applications and proposals, and returning endorsement results and signatures;
[0257] The groundwater sorting system is mainly responsible for receiving transaction information from the sorting nodes, globally sorting all legal transactions, and returning them to the sorting nodes.
[0258] The sorting node is responsible for packaging a batch of sorted transactions into blocks.
[0259] The accounting node is mainly responsible for recording the on-chain data and blocks in the local ledger.
[0260] Read-only nodes are also ordinary user nodes, which are mainly responsible for checking groundwater information on the sub-chain and supervising groundwater usage.
[0261] Introducing a multi-chain hierarchical interactive consensus mechanism:
[0262] 5-1) In the intra-domain transaction information sub-chain system, the intra-domain water rights transaction user node is registered and authorized by the authoritative node, and the authoritative certificate certification authority CA issues a digital certificate.
[0263] 5-2) The user node of the water rights transaction in the domain submits the transaction application to two groundwater endorsement nodes. After receiving the transaction proposal, the groundwater endorsement node will verify the format of the transaction proposal, the user signature, whether it has the right to submit the transaction, etc. After verification, the transaction calculation is completed through the smart contract;
[0264] 5-3) The groundwater endorsement node signs the result and sends it to the water rights transaction user node in the domain. If one of the endorsement nodes does not return the result due to network problems, it must be sent to the third endorsement node, otherwise the transaction will be invalid.
[0265] 5-4) The water rights transaction user node in the domain receives and sends the endorsement result (transaction proposal, endorsement signature) and its own signature to the sorting node.
[0266] 5-5) This system adopts the Kafka consensus mechanism, and multiple sorting nodes work together. Each sorting node will send the transactions it receives to the Kafka cluster of the groundwater sorting system. After the transactions are sorted in the Kafka cluster, Kafka pushes the sorted transactions to the sorting node.
[0267] 5-6) The sorting node packages the sorted transactions into blocks at fixed time intervals and broadcasts them to all master nodes in the transaction information subchain system in the domain through gPRC. (This prevents the failure of a single sorting node from causing system operation paralysis).
[0268] 5-7) After receiving the block, the master node verifies the digital signature of each transaction in the block to determine whether it is valid: if it is valid, the world state will be updated; if it is invalid, it will be marked as "invalid" and the world state will not be updated, but the entire block will be fully recorded in the local ledger (including invalid transactions).
[0269] 5-8) If more than half of the nodes verify that a transaction is invalid, the transaction will be marked as invalid in the system block and returned to the user to re-initiate the transaction.
[0270] 5-9) All nodes in the system act as accounting nodes to keep accounts, and transmit messages between nodes through Gossip communication to synchronize blocks.
[0271] 5-10) In the domain-wide aquifer information sub-chain system and the domain-wide confined aquifer information sub-chain system, the domain-wide groundwater monitoring department node transmits the groundwater source information and hydrogeological information to the data verification determiner, and the authoritative node will determine its authenticity and validity;
[0272] 5-11) If the data is wrong or invalid, the authoritative node will find out the cause of the problem, hold the groundwater monitoring department node in the domain accountable or punish it, and re-upload the data;
[0273] 5-12) If the data is correct, it is passed to the sorting node, sorted by the Kafka cluster of the groundwater sorting system, and then sent to the sorting node;
[0274] 5-13) The sorting node transmits information to ordinary user nodes on the subchain through gPRC broadcast in a fixed time order.
[0275] 5-14) Ordinary user nodes in the domain act as read-only nodes and accounting nodes, and verify the digital signature of the information sent by the node. If valid, it will be recorded in its own account book. If invalid, it will be marked invalid and also recorded in the account book.
[0276] 5-15) The water rights trading user nodes within the domain are also granted the rights of ordinary user nodes within the domain, and can view the data of the aquifer information sub-chain system and the confined water layer information sub-chain system within the domain without the need for accounting.
[0277] 5-16) The functional nodes in the consensus mechanism of the three sub-chains in the domain must be dynamically adjusted and verified throughout the whole process, such as the replacement of groundwater endorsement nodes, the increase and decrease of sorting nodes, the inspection and verification of each functional node information and certificates, etc. If a fake or malicious node is encountered, it can be removed in time to ensure the maintainability and long-term availability of the system.
[0278] 5-17) The consensus mechanism of the cross-domain transaction information main chain system is the same as the consensus mechanism of the intra-domain transaction information sub-chain system.
[0279] The consensus mechanism of this system adopts a multi-chain layered interactive consensus mechanism. The intra-domain transaction information sub-chain, intra-domain groundwater layer information sub-chain, and intra-domain confined water layer information sub-chain adopt independent consensus mechanisms, and intra-domain transaction users can interact across chains, and ordinary users can view the rights of the intra-domain groundwater layer information sub-chain and the intra-domain confined water layer information sub-chain; the operation and execution of the entire mechanism are completed by using functional nodes such as groundwater endorsement nodes, groundwater sorting systems and nodes; the functional nodes of the entire system are always dynamically adjusted, continuously updated and verified throughout the process to ensure the security of the entire system and prevent damage from malicious nodes.
[0280] like Figure 7 As shown, in step 5-7), the operation mechanism of the digital signature is as follows:
[0281] (1) After registering, the user node will obtain a private key and a public key. The private key is unique and is kept only by the user. The private key is converted into a public key through a hash operation. The authoritative issuing agency CA will then issue a digital certificate to the user and define some content information (such as version information, serial number, issuing agency name, certificate owner name, public key information, issuing agency's signature on the certificate, etc.);
[0282] (2) When a transaction is initiated between nodes or groundwater source information (within / between domains) is uploaded, the contract is automatically executed, and the groundwater transaction information or water source information (within / between domains) is hashed to generate a groundwater information (within / between domains) summary, which is then encrypted into ciphertext by the private key. The sorting node broadcasts the groundwater information (within / between domains), public key, and ciphertext to all master nodes;
[0283] (3) After receiving the groundwater information broadcast by the user, the other nodes first verify its public key based on its digital certificate to ensure that the public key is not forged and has not been tampered with;
[0284] (4) After verification, the groundwater information is hashed to obtain groundwater information summary 1, and the ciphertext is decrypted using the verified public key to obtain groundwater information summary 2;
[0285] (5) comparing groundwater information summary 1 with groundwater information summary 2;
[0286] (6) If they are consistent, the remaining nodes will package and record the user's groundwater information (within the domain / between domains), store it in the local ledger, and update the world state;
[0287] (7) If there is any inconsistency, the groundwater information (within the domain / between domains) has been tampered with or is fake information, and is also recorded in the local ledger with an invalid label. The chain fails and the world state will not be updated. The transaction needs to be re-initiated.
Claims
1. A semi-centralized groundwater resource management system, It is characterized in that The invention comprises a groundwater source exploitation area monitoring module (1), a groundwater exploitation volume assessment module (2), a groundwater rights trading module (3), a subchain system for information of a phreatic layer in a domain (4), a subchain system for information of a confined water layer in a domain (5), a subchain system for information of a transaction in a domain (6), a main chain system for information in a domain (7), and a main chain system for information of a transaction in a cross-domain (8); the output end of the groundwater source exploitation area monitoring module (1) is respectively connected to the input end of the subchain system for information of a phreatic layer in a domain (4), the subchain system for information of a confined water layer in a domain (5) and the groundwater exploitation volume assessment module (2); the output end of the groundwater exploitation volume assessment module (2) is connected to the input end of the groundwater rights trading module (3); the output end of the groundwater rights trading module (3) is connected to the input end of the subchain system for information of a transaction in a domain (6); the output ends of the subchain system for information of a phreatic layer in a domain (4), the subchain system for information of a confined water layer in a domain (5) and the subchain system for information of a transaction in a domain (6) are respectively connected to the input end of the main chain system for information in a domain (7); The groundwater source exploitation area monitoring module (1) includes a water quality sensor, a water level sensor, a water temperature sensor, an environmental monitoring system, and a groundwater assessment system, which are used to monitor the real-time dynamic changes of groundwater level and water quality and environmental geological characteristics, and to assess groundwater reserves; the groundwater exploitation volume assessment module (2) is used to predict and assess the exploitable groundwater volume in the target area; the groundwater rights trading module (3) is used to manage the trading of groundwater rights, including sale, lease and transfer, and to automate the trading process based on smart contracts to better allocate groundwater resources; The subchain system for information on the underground water layer (4) in the domain adopts public chain technology to record and store the underground water layer information and hydrogeology, geomorphology, lithology, geological structure and environmental data of the water source area; the subchain system for information on the confined water layer (5) in the domain adopts public chain technology to record and store the underground water confined water layer information and hydrogeology, geomorphology, lithology, geological structure and environmental data of the water source area; the subchain system for information on transaction information in the domain (6) adopts alliance chain technology to provide a groundwater rights transaction and transfer platform for industrial, agricultural and domestic water users, and to store personal information, transaction information and other information. All information on exchange and groundwater extraction is recorded in the sub-chain, enabling point-to-public and point-to-point transactions. The intra-domain information main chain system (7) stores the information recorded by the three sub-chain systems in a certain time sequence as nodes on the chain. The cross-domain transaction information main chain system (8) uses alliance chain technology to provide a groundwater resource allocation and transaction platform between regions. The management departments within the region can trade with other regions based on the groundwater reserves in the region, and record the overall groundwater resource situation of the region and cross-regional transaction information in the blockchain in time sequence. The semi-centralized groundwater resource management system includes the following steps when it works: Step 1: The user enters the groundwater resource management system and registers; Step 2: Different users become nodes on the chain and obtain corresponding permissions; Step 3: The groundwater source monitoring department node uploads the water source information to the subchain system; Step 4: Water rights trading users apply for and conduct groundwater rights trading and transfer through smart contracts; Step 5: The transaction information in the domain is uploaded to the corresponding sub-chain system respectively, and integrated with the other two sub-chains into the domain information main chain system (7); Step 6: Different regions allocate, dispatch and trade groundwater resources according to groundwater conditions, and save transaction information on the chain to the cross-domain transaction information main chain system (8); Step 7, the intra-domain information main chain system (7) and the cross-domain transaction information main chain system (8) are integrated into the groundwater resource management system; In step 1, the user enters the groundwater resource management system and registers. The user registration categories include ordinary users within the domain, water rights trading users within the domain, groundwater management departments within the domain, and groundwater monitoring departments within the domain. Water rights trading users within the domain need to be reviewed and authorized by the groundwater management department within the domain, and groundwater management departments within the domain need to be reviewed and authorized by the global groundwater management department. After the authorization, the authoritative certificate certification body will issue a digital certificate as identity proof for legal information recording; In step 2, the four types of authorized users become ordinary user nodes, water rights trading nodes, groundwater management department nodes, and groundwater monitoring department nodes in the domain, and go up to the subchain nodes of the aquifer information and confined water layer information in the domain, the subchain nodes of the transaction information in the domain, and the main chain nodes of the cross-domain transaction information respectively; ordinary user nodes are responsible for receiving new blocks and groundwater source data, and checking and supervising water source data; the transaction information node in the domain is the user node of water rights trading in the domain, which mainly initiates and completes transactions, records transaction information in the network, and can also view the subchain data of groundwater source information; the groundwater management department node in the domain mainly views the groundwater source data information in the domain, coordinates with other regional management agencies to dispatch groundwater resources, is responsible for initiating inter-domain groundwater dispatch and transactions, and packages cross-domain transaction information, and then stores it on the chain; In step 3, the groundwater source monitoring department node uses the groundwater source exploitation area monitoring module (1) to monitor the real-time dynamic changes of groundwater level and water quality as well as environmental geological characteristics, and sends the monitored groundwater data to the groundwater exploitation volume assessment module (2) to assess and predict the groundwater exploitation volume in the area; In step 4, the water rights trading user node in the domain and the groundwater management department node in the domain, or the water rights trading user nodes in the domain apply for groundwater rights trading or groundwater rights transfer in the groundwater rights trading module (3) according to the needs. The system automatically creates a smart contract based on the needs and information of both parties. The user obtains the water withdrawal permit certificate through approval, and the contract automatically executes the water rights transaction. In step 5, the groundwater source information and the groundwater transaction information in the domain are uploaded to the corresponding sub-chain system after consensus and digital signature respectively. The sub-chain system in the domain is integrated into the main chain system of the domain information as a node in chronological order; among them, the digital signature is based on the PKI system, and the digital certificate is used in conjunction with the public key cryptography system. The asymmetric encryption method is used to verify the accuracy of the information. If it has not been tampered with, it will be uploaded to the corresponding blockchain after obtaining the node consensus; In step 6, different regions can view the groundwater utilization and storage conditions in each region, and based on the assessment of the groundwater resource conditions, cross-regional groundwater resource allocation, dispatch and trading can be carried out through smart contracts. Regions with abundant groundwater reserves can sell them, and regions with less groundwater reserves can purchase water rights from other regions to artificially replenish the aquifers in their area or sell them to the people in their area. Finally, the transaction information is uploaded to the cross-domain transaction information main chain system (8). Cross-domain transactions are uniformly supervised and coordinated by the global groundwater management department, which formulates and promotes unified groundwater resource management standards and protocols; In step 7, the intra-domain information main chain system and the cross-domain transaction information main chain system are integrated into the semi-centralized groundwater resource management system through the API program interface, integrating a unified user identity authentication system to ensure the identity consistency and security of users in intra-domain and cross-domain water rights transactions.
2. The system according to claim 1, It is characterized in that In step 4, the system automatically creates a smart contract based on the needs and information of both parties, including setting the rules, trigger conditions, and default conditions for groundwater rights transactions. Without the intervention of a third-party agency, the smart contract is triggered to automatically execute the program, conduct groundwater rights transactions, and produce fair and credible results; The specific steps include: 4-1) Create and deploy trusted code and contract standards to the blockchain, and generate four types of groundwater trading smart contracts, including groundwater rights trading or transfer contracts, water quality real-time monitoring and alarm contracts, groundwater extraction quota contracts, and hydrogeological and environmental monitoring and early warning contracts; 4-2) Agricultural, industrial and domestic water-using institutions apply for groundwater rights trading or transfer according to their needs, submit personal information and water demand, and the smart contract confirms their rights and interests, allocates available groundwater resources through the intelligent decision-making module, and the contract is automatically executed; 4-3) Water users extract groundwater resources and equip them with water quality sensors to monitor the extracted groundwater resources in real time, and set up a first water quality monitoring and determination device; 4-4) If the water quality meets the standards, groundwater extraction can continue as per the contract; 4-5) If the water quality is polluted, the alarm system will be triggered, the contract will be suspended, the pumping will stop, and the groundwater management department will intervene to further inspect and repair the groundwater quality; 4-6) While extracting groundwater, an intelligent groundwater monitoring water meter is equipped and connected to the backend to monitor the user's water use in real time, and a second monitoring and determination device is set up; 4-7) If the water withdrawal does not exceed the contractually agreed amount, the water meter will continue to be monitored; 4-8) If the amount of water extracted exceeds the amount agreed in the contract, the alarm system will be triggered, the contract will be suspended and water extraction will be stopped. The management department will punish the water user or charge extra fees for the excess water; 4-9) During the entire contract execution period, the groundwater resources management department will monitor the hydrogeology and environmental conditions around the water wells and set up a third environmental monitoring and determination device; 4-10) If the environment meets the standards, groundwater extraction can continue as per the contract; 4-11) If the environment or soil is contaminated, the early warning system is triggered, the contract is suspended, pumping is stopped, and the groundwater management department repairs the environment and investigates the contamination; 4-12) The above transaction information, contract execution information and water quality, water quantity and environment-related monitoring information are packaged and uploaded to the intra-domain transaction information sub-chain, and further uploaded to the intra-domain information main chain.
3. The system according to claim 2, It is characterized in that In step 4-2), when allocating available groundwater resources through the intelligent decision-making module, a two-layer optimization model is used to optimize the user's water use strategy, and the optimization strategy adopted by the optimization model includes upper-layer optimization and lower-layer optimization; The upper optimization is for water resource management agencies to optimize the overall goal of groundwater resource management, with the greatest ecological and environmental benefits, and various constraints need to be considered; When optimizing the user water use strategy, the following steps are taken: (1) First, the groundwater units in the region are divided into i (i = 1, 2 ... n) according to the groundwater recharge area. Each groundwater unit contains w (w = 1, 2 ... x) exploitable areas, and each exploitation area contains s (s = 1, 2 ... S) water users; (2) Taking the environmental ecological benefit as the upper optimization goal, the difference between the user's water intake and the groundwater recharge is selected as the indicator, and the groundwater sustainability, groundwater level, water quality standard, and user water demand are taken as the upper constraint conditions. At the same time, the sustainability of groundwater resources and ecological protection are taken into account. The function formula is: st Where: P q i,w,t is the recoverable volume of the aquifer in mining area w of groundwater unit i in the domain at period t; q i,w,t,s is the water extraction coefficient of the aquifer for a user s in the exploitation area w of groundwater unit i in the domain at period t; P c i,w,t ξ is the recoverable volume of confined water layer in mining area w of groundwater unit i in the domain at period t; c i,w,t,s is the water extraction coefficient of the groundwater layer of a user s in the exploitation area w of the groundwater unit i in the domain at period t; β q i,w,t ,β c i,w,t are the recharge coefficients of the aquifer and confined aquifer in the mining area w of groundwater unit i in the domain due to rainfall or other factors in period t; G(β q i,w,t ,β c i,w,t ) is the groundwater recharge function of the aquifer and confined aquifer in the mining area w of groundwater unit i in the domain at period t; △Q groundwater,i is the difference between groundwater extraction and groundwater recharge in groundwater unit i within the domain; h i,w is the real-time water level of the mining area w of groundwater unit i; H 下限 , H 上限 are the upper and lower limits of the groundwater level respectively; f(h i,w )=P i,w is the groundwater level h i,w The recoverable amount at that time is P i,w ;P' i,w,t,min ,P' i,w,t,max are the sum of the minimum and maximum water volumes required by all users in the mining area w of groundwater unit i; P i,w,t,k is the maximum groundwater extraction volume in the mining area w according to national standards; S j i,w is the groundwater quality parameter of mining area w in groundwater unit i; S i,w,k D is the national standard for groundwater quality parameters in mining area w of groundwater unit i; j ' i,w is the hydrogeological parameter of mining area w in groundwater unit i; D i,w,k National standards for hydrogeological parameters of mining area w in groundwater unit i; (3) Taking the total social benefit as the lower optimization target, the net benefits of groundwater trading and water supply are selected as indicators, and the groundwater price, water supply cost, and groundwater pollution are taken as the lower constraint conditions. The function formula is: st With' i ∈z' i,t,k ,With i ∈z i,t,k With GW,i,t ∈z GW,i,t,k Where: z' i is the groundwater price of groundwater unit i in the region, RMB / m 3 ; z i is the water supply cost of groundwater unit i in the region, yuan / m 3 ; W GW,i,t is the groundwater storage in groundwater unit i during period t; δ i,t is the groundwater pollution coefficient in groundwater unit i during period t; z GW,i,t is the cost of groundwater pollution remediation in groundwater unit i during period t, RMB / m 3 ; E groundwater,i The net benefit of trading, water supply, treatment and restoration of groundwater unit i within the region; z' i,t,k ,z i,t,k are the groundwater price and water supply cost of groundwater unit i in period t according to national standards; GW,i,t,k is the groundwater pollution remediation cost of groundwater unit i in period t according to national standards; i,t,k is the maximum groundwater pollution coefficient of groundwater unit i at period t as specified by national norms and standards; (4) The two-layer optimization solution can be solved by a solution method that does not limit the solution to fuzzy satisfaction. After the model is established, the fuzzy satisfaction algorithm is used to solve it: Assuming that the upper and lower objective functions are independent of each other, the lingo software is used to solve them separately to obtain the ideal optimal results △Q of the upper and lower functions. u groundwater,i , E u groundwater,i Through subjective judgment or scenario-based discussion and negotiation by decision makers, the boundary Q of the objective function values of the upper and lower layers is given. 1 and E 1 , establish the fuzzy membership function corresponding to the upper and lower satisfaction functions: Where: △Q groundwater,i is the upper objective function; E groundwater,i is the lower layer objective function; α is the upper layer satisfaction function; is the lower layer satisfaction function, and finally, through the global satisfaction function Solve max(γ) and output the user's groundwater resource allocation plan.
4. The system according to claim 1, It is characterized in that In step 5, the following steps are specifically included: 5-1) In the intra-domain transaction information sub-chain system, the intra-domain water rights transaction user node is registered and authorized by the authoritative node, and the authoritative certificate certification authority CA issues a digital certificate; 5-2) The user node of the water rights transaction in the domain submits the transaction application to two groundwater endorsement nodes. After receiving the transaction proposal, the groundwater endorsement node will verify the format of the transaction proposal, the user signature, and whether it has the right to submit the transaction. After verification, the transaction calculation is completed through the smart contract; 5-3) The groundwater endorsement node signs the result and sends it to the water rights transaction user node in the domain. If one of the endorsement nodes does not return the result due to network problems, it must be sent to the third endorsement node, otherwise the transaction will be invalid; 5-4) The user node of water rights transaction in the domain receives and sends the endorsement result and its own signature to the sorting node; 5-5) This system adopts the Kafka consensus mechanism. Multiple sorting nodes work together. Each sorting node sends the transactions it receives to the Kafka cluster of the groundwater sorting system. After the transactions are sorted in the Kafka cluster, Kafka pushes the sorted transactions to the sorting node; 5-6) The sorting node packages the sorted transactions into blocks at fixed time intervals and broadcasts them to all master nodes in the transaction information subchain system in the domain through gPRC; 5-7) After receiving the block, the master node verifies the digital signature of each transaction in the block to determine whether it is valid: if it is valid, the world state will be updated; if it is invalid, it will be marked as "invalid" and the world state will not be updated, but the entire block will be fully recorded in the local ledger; 5-8) If more than half of the nodes verify that a transaction is invalid, the transaction will be marked as invalid in the system block and returned to the user to re-initiate the transaction; 5-9) All nodes in the system act as accounting nodes to keep accounts, and transmit messages and synchronize blocks between nodes through Gossip communication; 5-10) In the domain-wide aquifer information sub-chain system and the domain-wide confined aquifer information sub-chain system, the domain-wide groundwater monitoring department node transmits the groundwater source information and hydrogeological information to the data verification determiner, and the authoritative node will determine its authenticity and validity; 5-11) If the data is wrong or invalid, the authoritative node will find out the cause of the problem, hold the groundwater monitoring department node in the domain accountable or punish it, and re-upload the data; 5-12) If the data is correct, it is passed to the sorting node, sorted by the Kafka cluster of the groundwater sorting system, and then sent to the sorting node; 5-13) The sorting node transmits information to the ordinary user nodes on the subchain through gPRC broadcast in a fixed time order; 5-14) Ordinary user nodes in the domain act as read-only nodes and accounting nodes, and verify the digital signature of the information sent by the node. If it is valid, it will be recorded in its own account book. If it is invalid, it will be marked invalid and also recorded in the account book; 5-15) The user nodes of water rights trading in the domain are also granted the rights of ordinary user nodes in the domain, and can view the data of the sub-chain system of the aquifer information in the domain and the sub-chain system of the confined water layer information in the domain without the need for accounting; 5-16) The functional nodes in the consensus mechanism of the three sub-chains in the domain must be dynamically adjusted and verified throughout the process, including the replacement of groundwater endorsement nodes, the increase and decrease of sorting nodes, and the inspection and verification of the information and certificates of each functional node. If a fake or malicious node is encountered, it can be removed in time to ensure the maintainability and long-term availability of the system; 5-17) The consensus mechanism of the cross-domain transaction information main chain system is the same as the consensus mechanism of the intra-domain transaction information sub-chain system.
5. The system according to claim 4, It is characterized in that In step 5-7), when performing digital signing, the following sub-steps are used: (1) After registering as a user node, a private key and a public key are obtained. The private key is unique and is kept only by the user. The public key is obtained through hash operation of the private key. The authoritative issuing organization CA then issues a digital certificate to the user and defines some content information. (2) When a transaction is initiated between nodes or groundwater source information is uploaded, the contract is automatically executed, and the groundwater transaction information or water source information is hashed to generate a groundwater information summary, which is then encrypted into ciphertext using a private key. The sorting node broadcasts the groundwater information, public key, and ciphertext to all master nodes; (3) After receiving the groundwater information broadcast by the user, the other nodes first verify its public key based on its digital certificate to ensure that the public key is not forged and has not been tampered with; (4) After verification, the groundwater information is hashed to obtain groundwater information summary 1, and the ciphertext is decrypted using the verified public key to obtain groundwater information summary 2; (5) comparing groundwater information summary 1 with groundwater information summary 2; (6) If they are consistent, the remaining nodes will package and record the user’s groundwater information, store it in the local ledger, and update the world state; (7) If there is any inconsistency, the groundwater information has been tampered with or is fake information, and is also recorded in the local ledger with an invalid label. The chain fails and the world state will not be updated. The transaction needs to be re-initiated.
