Water sample traceability management method and system based on alliance blockchain ledger and smart contract

By adopting alliance blockchain ledger and smart contract technology in water sample traceability management, the problems of high cost of blockchain technology and data storage restrictions are solved, the safe and trustworthy management of water sample data is realized, and the water quality monitoring is improved. Accuracy and efficiency provide guarantees for drinking water safety.

WO2024239468A1PCT designated stage expired Publication Date: 2024-11-28SUN YAT SEN UNIV

Patent Information

Application Number
PCT/CN2023/114673
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-05-25
Filing Date
2023-08-24
Publication Date
2024-11-28

AI Technical Summary

Technical Problem

In the prior art, blockchain technology has high costs and data storage limitations in water sample traceability management, and it is impossible to effectively store a large amount of water sample monitoring data.

Method used

Using smart contract technology based on alliance blockchain ledgers, through data collection, data processing, data encryption and smart contract verification, the decentralized management and traceability of water sample data is realized, and the immutability and traceability of blockchain is utilized. , ensure the security and integrity of the data.

Benefits of technology

It realizes the safe, reliable and efficient management of water sample data, reduces costs, improves the accuracy and efficiency of water quality monitoring, and provides guarantees for drinking water safety.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2023114673_28112024_PF_FP_ABST
    Figure CN2023114673_28112024_PF_FP_ABST
Patent Text Reader

Abstract

Disclosed in the present invention is a water sample traceability management method based on an alliance blockchain ledger and a smart contract, comprising: collecting water sample data and processing same, and outputting a data identifier of the water sample data; uploading the data identifier to an alliance blockchain ledger to generate corresponding block information; designing a smart contract program, deploying the smart contract to an alliance blockchain, inputting the block information into the smart contract program, implementing data verification logic, and outputting smart contract verification information; recording the smart contract verification information in the alliance blockchain ledger, and outputting recorded data; and accessing the recorded data in the alliance blockchain ledger, analyzing the recorded data, outputting water quality testing data, and implementing data traceability. Further disclosed in the present invention is a water sample traceability management system based on the alliance blockchain ledger and the smart contract. According to the present invention, alliance blockchain ledger and smart contract technologies are used, decentralized management is achieved, data security is improved, and the whole-course trace leaving and traceability management of water samples are achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Water sample traceability management method and system based on alliance blockchain ledger smart contract Technical Field

[0001] The present invention relates to blockchain and smart contracts, and in particular to a water sample traceability management method and system based on alliance blockchain ledger smart contracts. Background Art

[0002] Blockchain technology is a distributed database characterized by decentralization, immutability, and trustlessness. In water sample traceability, blockchain technology can integrate all aspects of water sample collection, organization, compilation, and archiving into a consortium chain, enabling standardized management of water sample data and ensuring full traceability and traceability of water sample management data. This decentralized data storage method distributes data across different nodes, each of which has the authority to participate in data verification and management, thereby reducing the risk of data tampering or corruption. Furthermore, data management is shared across multiple nodes, reducing costs and improving efficiency.

[0003] Smart contract technology is a self-executing contract based on blockchain technology that can automatically execute specified operations under specific conditions. In water sample traceability, smart contract technology is used to automate the collection, organization, compilation, and archiving of water sample data, as well as automatically alert and handle abnormal water sample quality. Smart contracts run on blockchain networks, enabling decentralized automated interaction, making information transmission, interaction, and management more efficient, secure, and transparent. In water sample traceability management methods, smart contracts assume the role of management and control authority, ensuring the security and transparency of water sample data, enabling automated recording, querying, and verification of water sample data, and improving the reliability and accuracy of water sample traceability.

[0004] Consortium chain technology is a variant of blockchain technology. Compared to public chains, consortium chains have more clearly defined participants and typically require prior authorization to join. In water sample traceability, consortium chain technology can enable the sharing and collaboration of water sample management data. By joining a consortium chain, all participants participate in the full traceability and traceability of water sample management. Consortium blockchain technology features include decentralization, immutability, security, and traceability. Consortium blockchain technology records information such as the generation time, creator, and transaction data of each block, thereby achieving data traceability.

[0005] Data encryption and transmission are core technologies in the field of information security, ensuring the security and privacy of data during transmission and storage. Symmetric encryption algorithms use the same key for encryption and decryption. Asymmetric encryption algorithms use a pair of keys for encryption and decryption: the public key can be made public, while the private key can only be used by the key owner. Digital signature technology uses an asymmetric encryption algorithm to encrypt the data's hash value and private key to generate a signature. The recipient can use the public key to decrypt the signature and verify the integrity and authenticity of the data. The SSL / TLS protocol is a secure transmission protocol based on asymmetric and symmetric encryption algorithms. It establishes an encrypted channel on the network to protect the security and privacy of data during transmission. VPN technology can establish a secure encrypted channel on a public network, preventing data from being eavesdropped or tampered with during transmission and storage.

[0006] In the water sample traceability management method based on alliance chain and smart contracts, data encryption and transmission technology play a key role. In water sample traceability management, sensitive information that may be involved (such as water quality test results) is encrypted using symmetric encryption, asymmetric encryption, and other methods to ensure that only authorized personnel can decrypt and view the data. In the alliance chain, data needs to be shared between different nodes, using transport layer encryption technologies such as TLS / SSL protocols. Each node can use digital certificates and other methods for identity authentication to ensure that only authorized personnel can access the system. Smart contracts are key components in the alliance chain and can realize automated water sample traceability management processes.

[0007] One existing technology is a Chinese patent application with publication number CN111947626A, which discloses a blockchain-based water environment monitoring method. This method uses sensors to detect water environment data, collects water environment data, and uploads it to blockchain nodes. The blockchain nodes verify the authenticity and integrity of the data and store the data on a storage device. Users can query the blockchain to obtain water environment data. The system also provides data analysis and early warning functions. The disadvantage of this solution is that it has a high technical threshold and requires technicians to have a certain level of mastery of blockchain technology and cryptography.

[0008] The second existing technology is a Chinese patent application, CN110689471A, which discloses a blockchain-based water resource monitoring method. This method uses blockchain technology to establish a decentralized data storage and management platform, improving the credibility and transparency of water resource monitoring data. However, this method has the disadvantage of being more expensive, as compared to traditional water resource monitoring systems, it requires the establishment and maintenance of a blockchain network.

[0009] The third existing technology is the blockchain-based village sewage treatment monitoring method described in the paper "Design of a Blockchain-Based Village Sewage Treatment Monitoring System." This method uses blockchain technology to establish a decentralized data storage and management platform, recording village sewage treatment monitoring data on the blockchain in real time. The data is encrypted and digitally signed using cryptographic technology to ensure that the data is not tampered with or forged. At the same time, the system can also achieve real-time sharing and exchange of sewage treatment data, promoting information sharing and mutual trust between regulatory authorities, enterprises, and the public. The disadvantage of this method is that blockchain technology itself has data storage limitations and cannot store large amounts of sewage treatment monitoring data.

[0010] Summary of the Invention

[0011] This invention aims to overcome the shortcomings of existing methods by proposing a water sample traceability management method and system based on a consortium blockchain ledger smart contract. The main issues addressed by this invention are: first, the higher cost of establishing and maintaining a blockchain network compared to traditional sewage treatment monitoring systems; and second, the inherent data storage limitations of blockchain technology, which makes it incapable of storing large amounts of water sample monitoring data.

[0012] In order to solve the above problems, the present invention proposes a water sample traceability management method based on a consortium blockchain ledger smart contract, the method comprising:

[0013] Input water sample data to the data acquisition module and the data processing module, and output a data identifier of the water sample data;

[0014] Uploading the data identifier of the water sample data to the alliance blockchain account book to generate corresponding block information;

[0015] Design a smart contract program, deploy the smart contract on the consortium blockchain, input the block information into the smart contract program, implement data verification logic, and output smart contract verification information;

[0016] Record the smart contract verification information in the alliance blockchain ledger and output the recorded data;

[0017] Access the recorded data in the alliance blockchain ledger, analyze the recorded data, output water quality test data, and achieve data traceability;

[0018] Preferably, the water sample data is input to the data acquisition module and the data processing module, and the data identifier of the water sample data is output, specifically:

[0019] During the water sample data collection process, the purpose and scope of collecting water sample data are determined, and then the data collection module is used to collect water sample data in real time and transmit it to the data processing module. The data collection module includes water quality monitoring instruments, hydrological instruments and meteorological instruments;

[0020] The data processing module uses data cleaning, data verification and data integration technologies to process the collected water sample data; data cleaning removes outliers, duplicate values ​​and missing values ​​in the data to ensure data quality; data verification verifies the data to ensure data accuracy and consistency; data integration merges data from different instruments into one data set to facilitate subsequent analysis and application. Calibration equipment is used during the collection process to avoid sample contamination to ensure equipment accuracy and data integrity, and a unique data identifier is generated, including timestamps and sampling point numbers, for subsequent data upload and traceability. In addition, water sample data is encrypted using an asymmetric encryption algorithm to protect data privacy, and only people with the corresponding keys can decrypt the data.

[0021] Preferably, the data identifier of the water sample data is uploaded to the alliance blockchain account book to generate corresponding block information, specifically:

[0022] Confirm the access rights and upload method of the alliance blockchain account book, upload the data identifier of the collected water sample data to the alliance blockchain account book, and use digital signature technology to sign the data when uploading the data identifier to generate corresponding block information. The block information includes the uploaded water sample data, data identifier information and data uploader information. The digital signature uses public key encryption technology, and only the private key holder can verify the digital signature to ensure the authenticity and integrity of the data.

[0023] Preferably, the smart contract program is designed, the smart contract is deployed on the alliance blockchain, the block information is input into the smart contract program, the data verification logic is implemented, and the smart contract verification information is output, specifically:

[0024] Smart contracts are automatically executed computer programs that implement data verification, recording, and interaction functions on the blockchain. Smart contract programs are written in the Solidity programming language and contain verification rules and processing logic for uploaded data. They are used to verify the source, test items, and test results of uploaded water sample data, ensuring the accuracy and credibility of the data. Smart contract programs are then deployed on consortium chain nodes.

[0025] In the water sample traceability management method, block information is input into the smart contract program, and digital signature technology is used to verify the water sample data to ensure the authenticity and integrity of the data. Role-based access control authentication and authorization technology is used to verify and authorize user identity and permissions. The identity of the user is verified based on digital certificates and digital authentication, and it is ensured that only authorized users can access protected resources or perform restricted operations. When uploading water sample data, a smart contract is used to verify the data to check whether the data complies with the specifications and is complete, and return smart contract verification information. When the data verification passes, the smart contract verification information is confirmation information, otherwise it returns an error message and prevents the data from being uploaded and recorded.

[0026] Preferably, the smart contract verification information is recorded in the alliance blockchain account book, and the record data is output, specifically:

[0027] When recording verified water sample data in the alliance blockchain ledger, the integrity, reliability and security of the data must be ensured during the recording process. Homomorphic encryption technology in blockchain privacy protection technology is used to ensure that only authorized personnel can access the data. Homomorphic encryption technology does not require decryption of data, and performs calculations in an encrypted state. Data analysis and processing are performed without exposing the data content, thereby protecting data privacy and outputting record information. The record information includes collection time, location, data identifier, and water quality monitoring data information.

[0028] Preferably, the accessing of the recorded data in the alliance blockchain account book, analyzing the recorded data, outputting the water quality test data, and achieving data traceability are specifically as follows:

[0029] Access the alliance blockchain account book, query and analyze recorded data, screen and filter by data identifier, collection time, and location conditions, understand the historical records and change trends of water quality monitoring data, and provide a basis for subsequent decision-making. When tracing water quality monitoring data, obtain relevant data from the alliance blockchain account book based on the data identifier information, output the water quality monitoring data, and realize the full traceability and source tracking of data;

[0030] When analyzing water sample data, secure multi-party computing technology is used to ensure that the data is not leaked during the calculation process. Secure multi-party computing technology can realize the calculation results among multiple participants without leaking the private data of the participants.

[0031] Accordingly, the present invention also provides a water sample traceability management system based on a consortium blockchain ledger smart contract, comprising:

[0032] A data acquisition unit, used for inputting water sample data into the data acquisition module and the data processing module, and outputting a data identifier of the water sample data;

[0033] A block information unit, used to upload the data identifier of the water sample data to the alliance blockchain account book and generate corresponding block information;

[0034] A smart contract verification unit, which is used to design a smart contract program, deploy the smart contract on the consortium blockchain, input the block information into the smart contract program, implement data verification logic, and output smart contract verification information;

[0035] A blockchain ledger recording unit, configured to record the smart contract verification information in the alliance blockchain ledger and output the recorded data;

[0036] The water quality detection and traceability unit is used to access the recorded data described in the alliance blockchain account book, analyze the recorded data, output water quality detection data, and realize data traceability.

[0037] The implementation of the present invention has the following beneficial effects:

[0038] In the present invention, water sample data is recorded in transactions on the blockchain, making it impossible to tamper with or forge the data, thereby ensuring the security and credibility of the data; based on the alliance blockchain ledger and smart contract technology, decentralized management and data sharing are achieved, improving the security and reliability of the data; through the alliance chain technology, the whole process of water sample traceability and traceability management is realized, which has high practicality and commercial value, ensuring the credibility and integrity of data in each link such as water sample collection, inspection, and analysis, and improving the efficiency and accuracy of water quality monitoring. The chain data structure is conducive to the standardized management of data, providing comprehensive, dynamic, and reliable data security information for regulatory authorities, and providing strong support for ensuring the safety of drinking water for the people. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] FIG1 is an overall flow chart of a water sample traceability management method based on a consortium blockchain ledger smart contract according to an embodiment of the present invention;

[0040] FIG2 is a structural diagram of a water sample traceability management system based on a consortium blockchain ledger smart contract according to an embodiment of the present invention. DETAILED DESCRIPTION

[0041] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments of the present invention without making any creative efforts shall fall within the scope of protection of the present invention.

[0042] FIG1 is an overall flow chart of a water sample traceability management method based on a consortium blockchain ledger smart contract according to an embodiment of the present invention. As shown in FIG1 , the method includes:

[0043] S1, input water sample data to the data acquisition module and data processing module, and output the data identifier of the water sample data;

[0044] S2, uploading the data identifier of the water sample data to the alliance blockchain account book to generate corresponding block information;

[0045] S3, designing a smart contract program, deploying the smart contract on the consortium blockchain, inputting the block information into the smart contract program, implementing data verification logic, and outputting smart contract verification information;

[0046] S4, recording the smart contract verification information in the alliance blockchain ledger and outputting the recorded data;

[0047] S5, access the recorded data described in the alliance blockchain account book, analyze the recorded data, output water quality test data, and realize data traceability;

[0048] Step S1 is as follows:

[0049] S1-1, during the water sample data collection process, the purpose and scope of collecting water sample data are determined, and then the water sample data is collected in real time using the data collection module and transmitted to the data processing module. The data collection module includes water quality monitoring instruments, hydrological instruments and meteorological instruments;

[0050] S1-2, the data processing module uses data cleaning, data verification and data integration technologies to process the collected water sample data; data cleaning removes outliers, duplicate values ​​and missing values ​​in the data to ensure data quality; data verification verifies the data to ensure data accuracy and consistency; data integration merges data from different instruments into a data set to facilitate subsequent analysis and application. Calibration equipment is used during the collection process to avoid sample contamination to ensure equipment accuracy and data integrity, and a unique data identifier is generated, including timestamps and sampling point numbers, for subsequent data upload and traceability. In addition, water sample data is encrypted using an asymmetric encryption algorithm to protect data privacy, and only people with the corresponding keys can decrypt the data.

[0051] Step S2 is as follows:

[0052] S2-1, confirm the access rights and upload method of the alliance blockchain account book, upload the data identifier of the collected water sample data to the alliance blockchain account book, and use digital signature technology to sign the data when uploading the data identifier to generate corresponding block information. The block information includes the uploaded water sample data, data identifier information and data uploader information. The digital signature uses public key encryption technology, and only the private key holder can verify the digital signature to ensure the authenticity and integrity of the data.

[0053] Step S3 is as follows:

[0054] S3-1, smart contracts are automatically executed computer programs that implement data verification, recording, and interaction functions on the blockchain. Smart contract programs are written in the Solidity programming language. Smart contract programs contain verification rules and processing logic for uploaded data. They are used to verify the source, test items, and test results of uploaded water sample data to ensure the accuracy and credibility of the data. Smart contract programs are deployed on consortium chain nodes.

[0055] S3-2, in the water sample traceability management method, the block information is input into the smart contract program, and the digital signature technology is used to verify the water sample data to ensure the authenticity and integrity of the data. The authentication and authorization technology based on role-based access control is used to verify and authorize the user identity and authority. The identity of the user is verified based on digital certificates and digital authentication, and it is ensured that only authorized users can access protected resources or perform restricted operations. When uploading water sample data, the data is verified by a smart contract to check whether the data complies with the specifications and whether it is complete, and the smart contract verification information is returned. When the data verification passes, the smart contract verification information is confirmation information, otherwise it is returned as an error message, and the uploading and recording of the data are blocked.

[0056] Step S4 is as follows:

[0057] S4-1, when recording the verified water sample data in the alliance blockchain ledger, the integrity, reliability and security of the data must be ensured during the recording process. The homomorphic encryption technology in the blockchain privacy protection technology is used to ensure that only authorized personnel can access the data. Homomorphic encryption technology does not require decryption of data, and performs calculations in an encrypted state. Data analysis and processing are performed without exposing the data content, thereby protecting data privacy and outputting record information. The record information includes collection time, location, data identifier, and water quality monitoring data information.

[0058] Step S5 is as follows:

[0059] S5-1, access the alliance blockchain account book, query and analyze recorded data, screen and filter by data identifier, collection time, and location conditions, understand the historical records and change trends of water quality monitoring data, and provide a basis for subsequent decision-making. When tracing water quality monitoring data, obtain relevant data from the alliance blockchain account book based on the data identifier information, output the water quality monitoring data, and realize the full traceability and source tracking of data;

[0060] S5-2, when analyzing water sample data, use secure multi-party computing technology to ensure that the data is not leaked during the calculation process. Secure multi-party computing technology can realize the calculation results among multiple participants without leaking the private data of the participants.

[0061] Accordingly, the present invention also provides a water sample traceability management system based on the alliance blockchain ledger smart contract, as shown in FIG2 , including:

[0062] The data acquisition unit 1 is used to input water sample data to the data acquisition module and the data processing module, and output a data identifier of the water sample data.

[0063] Specifically, during the water sample data collection process, the purpose and scope of collecting water sample data are determined, and then the water sample data is collected in real time using the data collection module and transmitted to the data processing module. The data collection module includes water quality monitoring instruments, hydrological instruments and meteorological instruments;

[0064] The data processing module uses data cleaning, data verification and data integration technologies to process the collected water sample data; data cleaning removes outliers, duplicate values ​​and missing values ​​in the data to ensure data quality; data verification verifies the data to ensure data accuracy and consistency; data integration merges data from different instruments into one data set to facilitate subsequent analysis and application. Calibration equipment is used during the collection process to avoid sample contamination to ensure equipment accuracy and data integrity, and a unique data identifier is generated, including timestamps and sampling point numbers, for subsequent data upload and traceability. In addition, water sample data is encrypted using an asymmetric encryption algorithm to protect data privacy. Only people with the corresponding keys can decrypt the data.

[0065] The block information unit 2 is used to upload the data identifier of the water sample data to the alliance blockchain account book to generate corresponding block information.

[0066] Specifically, the access rights and upload method of the alliance blockchain account book are confirmed, and the data identifier of the collected water sample data is uploaded to the alliance blockchain account book. When uploading the data identifier, the data is signed using digital signature technology to generate corresponding block information. The block information includes the uploaded water sample data, data identifier information and data uploader information. The digital signature uses public key encryption technology, and only the private key holder can verify the digital signature to ensure the authenticity and integrity of the data.

[0067] The smart contract verification unit 3 is used to design a smart contract program, deploy the smart contract on the alliance blockchain, input the block information into the smart contract program, implement data verification logic, and output smart contract verification information.

[0068] Specifically, a smart contract is an automatically executed computer program that implements data verification, recording, and interaction functions on the blockchain. The smart contract program is written in the Solidity programming language. The smart contract program contains verification rules and processing logic for uploaded data. It is used to verify the source, test items, and test results of uploaded water sample data to ensure the accuracy and credibility of the data. The smart contract program is then deployed on the consortium chain node.

[0069] In the water sample traceability management method, block information is input into the smart contract program, and digital signature technology is used to verify the water sample data to ensure the authenticity and integrity of the data. Role-based access control authentication and authorization technology is used to verify and authorize user identity and permissions. The identity of the user is verified based on digital certificates and digital authentication, and it is ensured that only authorized users can access protected resources or perform restricted operations. When uploading water sample data, a smart contract is used to verify the data to check whether the data complies with the specifications and is complete, and return smart contract verification information. When the data verification passes, the smart contract verification information is confirmation information, otherwise it returns an error message and prevents the data from being uploaded and recorded.

[0070] The blockchain ledger recording unit 4 is used to record the smart contract verification information in the alliance blockchain ledger and output the recorded data.

[0071] Specifically, when the verified water sample data is recorded in the alliance blockchain ledger, the integrity, reliability and security of the data must be ensured during the recording process. The homomorphic encryption technology in the blockchain privacy protection technology is used to ensure that only authorized personnel can access the data. The homomorphic encryption technology does not require decryption of the data, and performs calculations in an encrypted state. It performs data analysis and processing without exposing the data content, thereby protecting data privacy and outputting record information. The record information includes collection time, location, data identifier, and water quality monitoring data information.

[0072] The water quality detection and traceability unit 5 is used to access the recorded data described in the alliance blockchain account book, analyze the recorded data, output the water quality detection data, and realize data traceability.

[0073] Specifically, access the alliance blockchain account book, query and analyze the recorded data, screen and filter by data identifier, collection time, and location conditions, understand the historical records and change trends of water quality monitoring data, and provide a basis for subsequent decision-making. When tracing water quality monitoring data, obtain relevant data from the alliance blockchain account book based on the data identifier information, output water quality monitoring data, and realize full data traceability and traceability;

[0074] When analyzing water sample data, secure multi-party computing technology is used to ensure that the data is not leaked during the calculation process. Secure multi-party computing technology can realize the calculation results among multiple participants without leaking the private data of the participants.

[0075] Therefore, the present invention adopts a water sample traceability management method based on the alliance blockchain ledger smart contract. In the present invention, the water sample data is recorded in the transaction record on the blockchain, so that the data cannot be tampered with or forged, thereby ensuring the security and credibility of the data; based on the alliance blockchain ledger and smart contract technology, decentralized management and data sharing are realized, thereby improving the security and reliability of the data; through the alliance chain technology, the whole process of water sample traceability and traceability management is realized, which has high practicality and commercial value, ensures the credibility and integrity of data in each link such as water sample collection, inspection, and analysis, and improves the efficiency and accuracy of water quality monitoring. The chain data structure is conducive to the standardized management of data, and provides comprehensive, dynamic, and reliable data security information for regulatory authorities, providing strong support for ensuring the safety of drinking water for the people.

[0076] The above is a detailed introduction to the water sample traceability management method and system based on the alliance blockchain ledger smart contract provided by the embodiments of the present invention. Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core ideas. At the same time, for those skilled in the art, according to the ideas of the present invention, there may be changes in the specific implementation methods and application scopes. In summary, the content of this specification should not be understood as limiting the present invention.

Claims

1. A water sample traceability management method based on a consortium blockchain ledger smart contract, characterized in that: The method comprises: Input water sample data to the data acquisition module and the data processing module, and output a data identifier of the water sample data; Upload the data identifier of the water sample data to the alliance blockchain account book to generate corresponding block information; Design smart contract program, deploy smart contract to alliance blockchain, input block information into smart contract program, implement data verification logic, and output smart contract verification information; Record the smart contract verification information in the alliance blockchain account book and output the record data; Access the recorded data described in the alliance blockchain ledger, analyze the recorded data, output water quality test data, and achieve data traceability.

2. The water sample traceability management method based on the alliance blockchain ledger smart contract as claimed in claim 1 is characterized in that: Input water sample data to the data acquisition module and the data processing module, and output the data identifier of the water sample data, specifically: During the water sample data collection process, the purpose and scope of collecting water sample data are determined, and then the water sample data is collected in real time using the data collection module and transmitted to the data processing module. The data collection module includes water quality monitoring instruments, hydrological instruments and meteorological instruments; The data processing module uses data cleaning, data verification and data integration techniques to process the collected water sample data; Data cleaning removes outliers, duplicate values, and missing values ​​to ensure data quality. quantity; Data verification verifies the data to ensure its accuracy and consistency; Data integration combines data from different instruments into one data set to facilitate subsequent analysis and application. Calibration equipment is used during the collection process to avoid sample contamination to ensure the accuracy of the equipment and the integrity of the data. A unique data identifier is generated, including timestamp and sampling point number, to facilitate subsequent data upload and traceability. In addition, water sample data is encrypted using an asymmetric encryption algorithm to protect data privacy. Only people with the corresponding key can decrypt the data.

3. The water sample traceability management method based on the alliance blockchain ledger smart contract as claimed in claim 1 is characterized in that: The data identifier of the water sample data is uploaded to the alliance blockchain account book to generate corresponding block information, specifically: Confirm the access rights and upload method of the alliance blockchain account book, upload the data identifier of the collected water sample data to the alliance blockchain account book, and use digital signature technology to sign the data when uploading the data identifier to generate corresponding block information. The block information includes the uploaded water sample data, data identifier information and data uploader information. The digital signature uses public key encryption technology, and only the private key holder can verify the digital signature to ensure the authenticity and integrity of the data.

4. The water sample traceability management method based on the alliance blockchain ledger smart contract as claimed in claim 1 is characterized in that: The smart contract program is designed, the smart contract is deployed on the alliance blockchain, the block information is input into the smart contract program, the data verification logic is implemented, and the smart contract verification information is output, specifically: Smart contracts are automatically executed computer programs that implement data verification, recording and interaction functions on the blockchain. Smart contract programs are written in the Solidity programming language. Smart contract packages Contains verification rules and processing logic for uploaded data, which are used to verify the source, test items and test result information of uploaded water sample data, ensure the accuracy and credibility of the data, and deploy the smart contract program on the alliance chain node; In the water sample traceability management method, the block information is input into the smart contract program, and the digital signature technology is used to verify the water sample data to ensure the authenticity and integrity of the data. The authentication and authorization technology based on role-based access control is used to verify and authorize the user identity and authority. The identity of the user is verified based on digital certificates and digital authentication, and it is ensured that only authorized users can access protected resources or perform restricted operations. When uploading water sample data, the smart contract is used to verify the data to check whether the data complies with the specifications and whether it is complete, and the smart contract verification information is returned. When the data verification passes, the smart contract verification information is confirmation information, otherwise it is returned as an error message, and the uploading and recording of the data are blocked.

5. The water sample traceability management method based on the alliance blockchain ledger smart contract as claimed in claim 1 is characterized in that: The smart contract verification information is recorded in the alliance blockchain account book, and the record data is output, specifically: When recording the verified water sample data in the alliance blockchain ledger, the integrity, reliability and security of the data must be ensured during the recording process. The homomorphic encryption technology in the blockchain privacy protection technology is used to ensure that only authorized personnel can access the data. The homomorphic encryption technology does not need to decrypt the data, and performs calculations in an encrypted state. It performs data analysis and processing without exposing the data content, thereby protecting data privacy and outputting record information. The record information includes collection time, location, data identifier, and water quality monitoring data information.

6. The water sample traceability management method based on the alliance blockchain ledger smart contract as claimed in claim 1 is characterized in that: The access to the recorded data in the alliance blockchain account book, analysis of the recorded data, output of water quality test data, and data traceability are specifically as follows: Access the alliance blockchain account book, query and analyze the recorded data, screen and filter by data identifier, collection time, and location conditions, understand the historical records and change trends of water quality monitoring data, and provide a basis for subsequent decision-making. When tracing water quality monitoring data, obtain relevant data from the alliance blockchain account book according to the data identifier information, output water quality monitoring data, and realize full data traceability and traceability; When analyzing water sample data, secure multi-party computing technology is used to ensure that the data is not leaked during the calculation process. Secure multi-party computing technology can realize calculation results among multiple parties without leaking the private data of the participants.

7. A water sample traceability management system based on a consortium blockchain ledger smart contract, characterized in that: The system comprises: A data acquisition unit, used for inputting water sample data into the data acquisition module and the data processing module, and outputting a data identifier of the water sample data; A block information unit, used to upload the data identifier of the water sample data to the alliance blockchain account book to generate corresponding block information; A smart contract verification unit, used to design a smart contract program, deploy the smart contract on the alliance blockchain, input the block information into the smart contract program, implement data verification logic, and output smart contract verification information; Blockchain ledger recording unit, used to record the smart contract verification information in the alliance block In the chain ledger, output record data; The water quality detection and traceability unit is used to access the recorded data described in the alliance blockchain ledger, analyze the recorded data, output the water quality detection data, and realize data traceability.

8. The water sample traceability management system based on the alliance blockchain ledger smart contract as claimed in claim 7, characterized in that: The data acquisition unit needs to determine the purpose and scope of collecting water sample data during the water sample data collection process, and then use the data acquisition module to collect water sample data in real time and transmit it to the data processing module. The data acquisition module includes water quality monitoring instruments, hydrological instruments and meteorological instruments; The data processing module uses data cleaning, data verification and data integration techniques to process the collected water sample data; Data cleaning removes outliers, duplicate values, and missing values ​​in the data to ensure data quality; Data verification verifies the data to ensure its accuracy and consistency; Data integration combines data from different instruments into one data set to facilitate subsequent analysis and application. Calibration equipment is used during the collection process to avoid sample contamination to ensure the accuracy of the equipment and the integrity of the data. A unique data identifier is generated, including timestamp and sampling point number, to facilitate subsequent data upload and traceability. In addition, water sample data is encrypted using an asymmetric encryption algorithm to protect data privacy. Only people with the corresponding key can decrypt the data.

9. The water sample traceability management system based on the alliance blockchain ledger smart contract as claimed in claim 7, characterized in that: The block information unit needs to confirm the access rights and upload method of the alliance blockchain account book, and upload the data identifier of the collected water sample data to the alliance blockchain account book. When uploading the data identifier, the data is signed using digital signature technology to generate corresponding block information. The block information includes the uploaded water sample data, data identifier information and data uploader information. The digital signature uses public key encryption technology, and only the private key holder can verify the digital signature to ensure the authenticity and integrity of the data.

10. The water sample traceability management system based on the alliance blockchain ledger smart contract as claimed in claim 7, characterized in that: The smart contract verification unit requires that the smart contract is an automatically executed computer program that implements data verification, recording and interaction functions on the blockchain. The smart contract program is written in the Solidity programming language. The smart contract program contains verification rules and processing logic for uploaded data, which is used to verify the source, test items and test result information of the uploaded water sample data, ensure the accuracy and credibility of the data, and deploy the smart contract program on the alliance chain node; In the water sample traceability management method, the block information is input into the smart contract program, and the digital signature technology is used to verify the water sample data to ensure the authenticity and integrity of the data. The authentication and authorization technology based on role-based access control is used to verify and authorize the user identity and authority. The identity of the user is verified based on digital certificates and digital authentication, and it is ensured that only authorized users can access protected resources or perform restricted operations. When uploading water sample data, the smart contract is used to verify the data to check whether the data complies with the specifications and whether it is complete, and the smart contract verification information is returned. When the data verification passes, the smart contract verification information is confirmation information, otherwise it is returned as an error message, and the uploading and recording of the data are blocked.

11. The water sample traceability management system based on the alliance blockchain ledger smart contract as claimed in claim 7, characterized in that: When the blockchain ledger recording unit needs to record the verified water sample data in the alliance blockchain ledger, the integrity, reliability and security of the data must be ensured during the recording process, and the homomorphic encryption technology in the blockchain privacy protection technology must be used to ensure that only authorized personnel can access the data. The homomorphic encryption technology does not require decryption of the data, and performs calculations in an encrypted state. It performs data analysis and processing without exposing the data content, thereby protecting data privacy and outputting record information. The record information includes collection time, location, data identifier, and water quality monitoring data information.

12. The water sample traceability management system based on the alliance blockchain ledger smart contract as claimed in claim 7, characterized in that: The water quality detection and traceability unit needs to access the alliance blockchain account book, query and analyze the recorded data, screen and filter by data identifier, collection time, and location conditions, understand the historical records and change trends of water quality monitoring data, and provide a basis for subsequent decision-making. When tracing water quality monitoring data, it obtains relevant data from the alliance blockchain account book according to the data identifier information, outputs the water quality monitoring data, and realizes the full traceability and traceability of the data; When analyzing water sample data, secure multi-party computing technology is used to ensure that the data is not leaked during the calculation process. Secure multi-party computing technology can realize calculation results among multiple parties without leaking the private data of the participants.

Citation Information

Patent Citations

  • Product deep traceability system based on block chain technology

    CN110969447A

  • Urban water supply operation and maintenance supervision system based on block chain

    CN111080134A

  • Water environment pollution tracing method and system based on alliance chain

    CN114037580A

  • Water sample traceability management method and system based on alliance block chain account book smart contract

    CN116561815A

Cited By

  • Trusted data exchange method and device based on trusted space and storage medium

    CN119227120A

  • Trusted data exchange and shared space management system supporting multi-party cooperation

    CN119583223A

  • Multi-satellite multi-user data right confirmation method based on block chain in remote sensing intelligent scene

    CN119670041A

  • Assembly line process diagram delivery system and method based on block chain

    CN119670153A

  • Engineering test detection data tracing method and system based on block chain

    CN119720287A