CN116561815A - Water sample traceability management method and system based on alliance block chain account book intelligent contract - Google Patents

Water sample traceability management method and system based on alliance block chain account book intelligent contract Download PDF

Info

Publication number
CN116561815A
CN116561815A CN202310597628.3A CN202310597628A CN116561815A CN 116561815 A CN116561815 A CN 116561815A CN 202310597628 A CN202310597628 A CN 202310597628A CN 116561815 A CN116561815 A CN 116561815A
Authority
CN
China
Prior art keywords
data
water sample
intelligent contract
alliance
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310597628.3A
Other languages
Chinese (zh)
Inventor
周凡
林格
刘宇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sun Yat Sen University
Original Assignee
Sun Yat Sen University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sun Yat Sen University filed Critical Sun Yat Sen University
Priority to CN202310597628.3A priority Critical patent/CN116561815A/en
Publication of CN116561815A publication Critical patent/CN116561815A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • G06F16/2379Updates performed during online database operations; commit processing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • G06F21/33User authentication using certificates
    • G06F21/335User authentication using certificates for accessing specific resources, e.g. using Kerberos tickets
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/604Tools and structures for managing or administering access control systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • G06F21/6245Protecting personal data, e.g. for financial or medical purposes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
    • H04L63/0442Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload wherein the sending and receiving network entities apply asymmetric encryption, i.e. different keys for encryption and decryption
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0823Network architectures or network communication protocols for network security for authentication of entities using certificates
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/10Network architectures or network communication protocols for network security for controlling access to devices or network resources
    • H04L63/101Access control lists [ACL]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/12Applying verification of the received information
    • H04L63/123Applying verification of the received information received data contents, e.g. message integrity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/40Network security protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/50Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols using hash chains, e.g. blockchains or hash trees
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2221/00Indexing scheme relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/21Indexing scheme relating to G06F21/00 and subgroups addressing additional information or applications relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/2141Access rights, e.g. capability lists, access control lists, access tables, access matrices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2209/00Additional information or applications relating to cryptographic mechanisms or cryptographic arrangements for secret or secure communication H04L9/00
    • H04L2209/46Secure multiparty computation, e.g. millionaire problem
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2209/00Additional information or applications relating to cryptographic mechanisms or cryptographic arrangements for secret or secure communication H04L9/00
    • H04L2209/72Signcrypting, i.e. digital signing and encrypting simultaneously
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02ATECHNOLOGIES FOR ADAPTATION TO CLIMATE CHANGE
    • Y02A20/00Water conservation; Efficient water supply; Efficient water use
    • Y02A20/152Water filtration

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Databases & Information Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Software Systems (AREA)
  • Computing Systems (AREA)
  • Bioethics (AREA)
  • Health & Medical Sciences (AREA)
  • Data Mining & Analysis (AREA)
  • Medical Informatics (AREA)
  • Automation & Control Theory (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The invention discloses a water sample traceability management method based on an intelligent contract of a alliance block chain ledger. Comprising the following steps: collecting and processing water sample data, and outputting a data identifier of the water sample data; uploading the data identifier to a alliance blockchain ledger to generate corresponding blockinformation; designing an intelligent contract program, deploying the intelligent contract on a alliance blockchain, inputting block information into the intelligent contract program, realizing data verification logic, and outputting intelligent contract verification information; recording the intelligent contract verification information in a alliance block chain account book, and outputting recorded data; accessing record data in the alliance block chain account book, analyzing the record data, outputting water quality detection data and realizing data tracing. The invention also discloses a water sample traceability management system based on the intelligent contract of the alliance block chain ledger. The invention adopts the alliance block chain account book and the intelligent contract technology to realize the decentralized management, improve the data security and realize the whole-course trace and traceability management of the water sample.

Description

Water sample traceability management method and system based on alliance block chain account book intelligent contract
Technical Field
The invention relates to blockchain and intelligent contracts, in particular to a water sample traceability management method and system based on a alliance blockchain ledger intelligent contract.
Background
The block chain technology is a distributed database technology and has the characteristics of decentralization, non-falsification, decrustation and the like. In the water sample tracing, all links such as water sample collection, arrangement, assembly, archiving and the like can be accommodated into a alliance chain by using a blockchain technology, so that standardized management of water sample data is realized, and whole trace and tracing management of water sample management data is ensured. The data storage mode of decentralization stores the data on different nodes in a scattered way, and each node has the right to participate in the verification and management of the data, so that the risk of tampering or damage of the data is avoided. Meanwhile, the management of the data is commonly born by a plurality of nodes, so that the cost of the data management can be reduced, and the efficiency of the data management is improved.
The smart contract technology is an automatic execution contract based on the blockchain technology, and can automatically execute specified operations under specific conditions. In the water sample tracing, the intelligent contract technology is utilized to realize the automatic management of the links of water sample data collection, arrangement, assembly, archiving and the like, and the automatic alarm and treatment of abnormal water sample quality are realized. The intelligent contracts run on the blockchain network to realize the automatic interaction of decentralization, so that the transmission, interaction and management of information are more efficient, safe and transparent. In the water sample tracing management method, the intelligent contract plays the roles of management and control authority, so that the safety and transparency of water sample data are ensured, the automatic recording, inquiring and verifying of the water sample data are realized, and the reliability and precision of water sample tracing are improved.
Federated chain technology is a variation of blockchain technology that is more explicit to participants than public chains, and typically requires prior authorization to join. In water sample tracing, sharing and collaboration of water sample management data can be achieved by utilizing a alliance chain technology, and all participants participate in whole-course trace and tracing management of water sample management together by adding an alliance chain. The alliance block chain technical characteristics include: the alliance blockchain technology can record the generation time, the generator, transaction data and other information of each block, so that the traceability of the data is realized.
Data encryption and transmission are core technologies in the field of information security, and the security and privacy of data in the transmission and storage processes are guaranteed. The symmetric encryption algorithm uses the same key for encryption and decryption. The asymmetric encryption algorithm uses a pair of keys to encrypt and decrypt, the public key may be public, and the private key may only be used by the key owner. The digital signature technology uses an asymmetric encryption algorithm to encrypt a hash value and a private key of data to generate a signature, and a receiver can use a public key to decrypt the signature to verify the integrity and authenticity of the data. The SSL/TLS protocol is a secure transmission protocol based on an asymmetric encryption algorithm and a symmetric encryption algorithm, and an encryption channel is established on a network to protect the security and privacy of data in the transmission process. VPN technology can establish a secure encrypted channel over a public network so that data is not eavesdropped or tampered with during transmission and storage.
In the water sample traceability management method based on the alliance chain and the intelligent contract, the data encryption and transmission technology plays a key role. In the water sample tracing management, sensitive information (such as water quality detection results) possibly related to the water sample is encrypted in a symmetrical encryption mode, an asymmetrical encryption mode and the like, so that only authorized personnel can decrypt and view data. In the alliance chain, data needs to be shared among different nodes, and each node can carry out identity authentication in a digital certificate mode by adopting a transport layer encryption technology such as a TLS/SSL protocol and the like so as to ensure that only authorized personnel can access the system. The intelligent contract is a key component in the alliance chain, and can realize an automatic water sample traceability management flow.
One of the prior art at present is that China patent with publication number of CN111947626A discloses a water environment monitoring method based on a blockchain, the method utilizes a sensor to detect water environment data, the water environment data is collected and uploaded to a blockchain node, the blockchain node verifies the authenticity and the integrity of the data, the data is stored in a storage device, a user can inquire the blockchain to obtain the water environment data, and the system also provides data analysis and early warning functions. The disadvantage of this solution is the high technical threshold, which requires a technician to have a certain knowledge of the blockchain technique and the cryptography technique.
In the second prior art, china patent with publication number of CN110689471A discloses a water resource monitoring method based on a blockchain, which utilizes a blockchain technology to establish a data storage and management platform for decentralization, so that the credibility and transparency of water resource monitoring data are improved. The disadvantage of this approach is the high cost, which requires the creation and maintenance of a blockchain network, as compared to conventional water resource monitoring systems.
The third prior art is a village sewage treatment monitoring method based on the blockchain in the paper 'village sewage treatment monitoring system design based on the blockchain', which utilizes the blockchain technology to establish a data storage and management platform for decentralization, records village sewage treatment monitoring data on the blockchain in real time, encrypts and digitally signs the data through the cryptography technology, and ensures that the data is not tampered and forged. Meanwhile, the system can realize real-time sharing and exchange of sewage treatment data and promote information sharing and mutual trust among the supervision departments, enterprises and the public. The disadvantage of this method is that the blockchain technology itself has data storage limitations and cannot store large amounts of wastewater treatment monitoring data.
Disclosure of Invention
The invention aims to overcome the defects of the existing method and provides a water sample traceability management method and system based on an intelligent contract of a alliance blockchain ledger. The invention solves the main problems that firstly, compared with the traditional sewage treatment monitoring system, the blockchain technology needs higher cost to establish and maintain a blockchain network; secondly, the blockchain technology has the limitation of data storage, and a large amount of water sample monitoring data cannot be stored.
In order to solve the problems, the invention provides a water sample traceability management method based on an intelligent contract of a alliance block chain ledger, which comprises the following steps:
inputting water sample data to a data acquisition module and a data processing module, and outputting a data identifier of the water sample data;
uploading the data identifier of the water sample data to a alliance blockchain ledger to generate corresponding blockinformation;
designing an intelligent contract program, deploying the intelligent contract on a alliance blockchain, inputting the block information into the intelligent contract program, realizing data verification logic, and outputting intelligent contract verification information;
recording the intelligent contract verification information in a alliance blockchain ledger, and outputting recorded data;
accessing record data in the alliance block chain account book, analyzing the record data, outputting water quality detection data, and realizing data tracing;
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:
in the water sample data acquisition process, determining the purpose and the range of acquiring water sample data, and then utilizing a data acquisition module to acquire the water sample data in real time and transmitting the water sample data to a data processing module, wherein the data acquisition module comprises a water quality monitoring instrument, a hydrological instrument and a meteorological instrument;
the data processing module processes the collected water sample data by using data cleaning, data checking and data integration technologies; the data is cleaned to remove abnormal values, repeated values and missing values in the data so as to ensure the quality of the data; verifying the data by data verification to ensure the accuracy and consistency of the data; the data integration combines the data from different instruments into a data set so as to facilitate subsequent analysis and application, the calibration equipment is adopted in the acquisition process, sample pollution is avoided, the accuracy of the equipment and the integrity of the data are ensured, a unique data identifier is generated, the unique data identifier comprises a time stamp and a sampling point number so as to facilitate subsequent data uploading and tracing, in addition, the water sample data is encrypted by adopting an asymmetric encryption algorithm so as to protect data privacy, and only personnel with corresponding keys can decrypt the data.
Preferably, the uploading the data identifier of the water sample data to a alliance blockchain ledger to generate corresponding block information specifically includes:
and (3) confirming the access authority and uploading mode of the alliance block chain account book, uploading the data identifier of the collected water sample data to the alliance block chain account book, signing the data by using a digital signature technology when uploading the data identifier, and generating corresponding block information, wherein the block information comprises the uploaded water sample data, the data identifier information and the data uploading information, and the digital signature uses a public key encryption technology, so that only a private key holder can verify the digital signature, thereby ensuring the authenticity and the integrity of the data.
Preferably, the intelligent contract program is designed, the intelligent contract is deployed on a alliance blockchain, the block information is input into the intelligent contract program to realize data verification logic, and the intelligent contract verification information is output, specifically:
the intelligent contract is a computer program which is automatically executed, realizes the functions of data verification, recording and interaction on a blockchain, writes the intelligent contract program by adopting a Solidity programming language, comprises a verification rule and processing logic of uploading data, is used for verifying the source, detection items and detection result information of the uploaded water sample data, ensures the accuracy and the credibility of the data, and deploys the intelligent contract program on a alliance chain node;
in the water sample tracing management method, block information is input into an intelligent contract program, digital signature technology is used for verifying the water sample data, authenticity and integrity of the data are ensured, authentication and authorization technology based on role access control is adopted for verifying and authorizing user identity and authority, the identity of a user is verified based on a digital certificate and a digital identity, only the authorized user can access protected resources or execute limited operation, when the water sample data are uploaded, intelligent contract is adopted for verifying the data, whether the data conform to specifications or not and are complete or not is checked, intelligent contract verification information is returned, when the data verification passes, the intelligent contract verification information is confirmation information, otherwise, the data are returned as error information, and uploading and recording of the data are prevented.
Preferably, the intelligent contract verification information is recorded in a federation blockchain ledger, and recorded data is output, specifically:
when the verified water sample data is recorded in the alliance blockchain account book, the integrity, the reliability and the safety of the data are required to be ensured in the recording process, the homomorphic encryption technology in the blockchain privacy protection technology is used for ensuring that only authorized personnel can access the data, the homomorphic encryption technology does not need to decrypt the data, the data are calculated in an encryption state, the data are analyzed and processed under the condition that the data content is not exposed, so that the data privacy is protected, the recording information is output, and the recording information comprises the acquisition time, the location, the data identifier and the water quality monitoring data information.
Preferably, the accessing the record data in the alliance blockchain ledger, analyzing the record data, outputting water quality detection data, and realizing data tracing specifically includes:
accessing a alliance block chain account book, inquiring and analyzing recorded data, screening and filtering through data identifiers, acquisition time and place conditions, knowing the historical record and change trend of water quality monitoring data, providing basis for subsequent decision, acquiring related data from the alliance block chain account book according to data identifier information when tracing the water quality monitoring data, outputting the water quality monitoring data, and realizing whole-course trace and tracing of the data;
when analyzing the water sample data, a safe multiparty computing technology is used to ensure that the data is not leaked in the computing process, and the safe multiparty computing technology can realize the computing result among a plurality of participants without revealing private data of the participants.
Correspondingly, the invention also provides a water sample traceability management system based on the intelligent contract of the alliance blockchain ledger, which comprises the following steps:
the data acquisition unit is used for inputting water sample data to the data acquisition module and the data processing module and outputting a data identifier of the water sample data;
the block information unit is used for uploading the data identifier of the water sample data to a alliance block chain account book to generate corresponding block information;
the intelligent contract verification unit is used for designing an intelligent contract program, deploying the intelligent contract on the alliance block chain, inputting the block information into the intelligent contract program, realizing data verification logic and outputting intelligent contract verification information;
the blockchain account book recording unit is used for recording the intelligent contract verification information in the alliance blockchain account book and outputting recording data;
the water quality detection and tracing unit is used for accessing the record data in the alliance blockchain ledger, analyzing the record data, outputting water quality detection data and realizing data tracing.
The implementation of the invention has the following beneficial effects:
according to the invention, the water sample data is recorded through the transaction on the blockchain, so that the data cannot be tampered or forged, and the safety and the credibility of the data are ensured; based on the alliance block chain account book and the intelligent contract technology, decentralization management and data sharing are realized, and the safety and reliability of the data are improved; the water sample whole-course trace and tracing management is realized through the alliance chain technology, the water sample whole-course trace and tracing management method has higher practicability and commercial value, the credibility and the integrity of data of each link of water sample collection, inspection, analysis and the like are ensured, the efficiency and the accuracy of water quality monitoring are improved, the chain data structure is favorable for standardized management of the data, comprehensive, dynamic and credible data safety information is provided for the supervision department, and powerful support is provided for guaranteeing the drinking water safety of people.
Drawings
FIG. 1 is a general flow chart of a water sample traceability management method based on a federated blockchain ledger intelligent contract in accordance with an embodiment of the present invention;
fig. 2 is a block diagram of a water sample traceability management system based on a federation blockchain ledger intelligent contract according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
FIG. 1 is a general flow chart of a water sample traceability management method based on a federated blockchain ledger intelligent contract according to an embodiment of the present invention, as shown in FIG. 1, the method includes:
s1, inputting water sample data to a data acquisition module and a data processing module, and outputting a data identifier of the water sample data;
s2, uploading the data identifier of the water sample data to a alliance blockchain ledger to generate corresponding blockinformation;
s3, designing an intelligent contract program, deploying the intelligent contract to a alliance block chain, inputting the block information into the intelligent contract program, realizing data verification logic, and outputting intelligent contract verification information;
s4, recording the intelligent contract verification information in a alliance block chain account book, and outputting recorded data;
s5, accessing the record data in the alliance block chain account book, analyzing the record data, outputting water quality detection data and realizing data tracing;
step S1, specifically, the following steps are performed:
s1-1, in the water sample data acquisition process, determining the purpose and the range of acquiring water sample data, and then utilizing a data acquisition module to acquire the water sample data in real time and transmitting the water sample data to a data processing module, wherein the data acquisition module comprises a water quality monitoring instrument, a hydrological instrument and a meteorological instrument;
s1-2, a data processing module processes collected water sample data by using a data cleaning, data checking and data integration technology; the data is cleaned to remove abnormal values, repeated values and missing values in the data so as to ensure the quality of the data; verifying the data by data verification to ensure the accuracy and consistency of the data; the data integration combines the data from different instruments into a data set so as to facilitate subsequent analysis and application, the calibration equipment is adopted in the acquisition process, sample pollution is avoided, the accuracy of the equipment and the integrity of the data are ensured, a unique data identifier is generated, the unique data identifier comprises a time stamp and a sampling point number so as to facilitate subsequent data uploading and tracing, in addition, the water sample data is encrypted by adopting an asymmetric encryption algorithm so as to protect data privacy, and only personnel with corresponding keys can decrypt the data.
Step S2, specifically, the following steps are performed:
s2-1, confirming access authority and uploading mode of the alliance block chain account book, uploading the collected data identifier of the water sample data to the alliance block chain account book, signing the data by using a digital signature technology when uploading the data identifier, generating corresponding block information, wherein the block information comprises the uploaded water sample data, the data identifier information and the data uploading information, and the digital signature uses a public key encryption technology, so that only a private key holder can verify the digital signature, and the authenticity and the integrity of the data are ensured.
Step S3, specifically, the following steps are performed:
s3-1, an intelligent contract is an automatically executed computer program, data verification, recording and interaction functions are realized on a blockchain, a intelligent contract program is written by adopting a solubility programming language, the intelligent contract program comprises a verification rule and processing logic of uploading data, the intelligent contract program is used for verifying the source, detection items and detection result information of uploaded water sample data, the accuracy and the credibility of the data are ensured, and the intelligent contract program is deployed on a alliance chain node;
s3-2, in the water sample tracing management method, block information is input into an intelligent contract program, digital signature technology is used for verifying the water sample data, authenticity and integrity of the data are guaranteed, authentication and authorization technology based on role-based access control is used for verifying and authorizing user identity and authority, the identity of a user is verified through digital certificates and digital identities, only the authorized user can access protected resources or execute limited operation, when the water sample data are uploaded, intelligent contract is used for verifying the data, whether the data conform to specifications or are complete is checked, intelligent contract verification information is returned, when the data verification passes, the intelligent contract verification information is confirmation information, otherwise, error information is returned, and uploading and recording of the data are prevented.
Step S4, specifically, the following steps are performed:
s4-1, when the verified water sample data is recorded in the alliance blockchain ledger, the integrity, reliability and safety of the data are required to be ensured in the recording process, the homomorphic encryption technology in the blockchain privacy protection technology is used for ensuring that only authorized personnel can access the data, the homomorphic encryption technology does not need to decrypt the data, the data are calculated in an encryption state, the data are analyzed and processed under the condition that the data content is not exposed, so that the data privacy is protected, the recording information is output, and the recording information comprises the acquisition time, the place, the data identifier and the water quality monitoring data information.
Step S5, specifically, the following steps are performed:
s5-1, accessing a alliance block chain account book, inquiring and analyzing recorded data, screening and filtering through data identifiers, acquisition time and site conditions, knowing historical records and change trends of water quality monitoring data, providing a basis for subsequent decisions, acquiring related data from the alliance block chain account book according to data identifier information when tracing the water quality monitoring data, outputting the water quality monitoring data, and realizing whole-course trace and tracing of the data;
s5-2, when analyzing the water sample data, a safe multiparty computing technology is used to ensure that the data is not leaked in the computing process, and the safe multiparty computing technology can realize the computing result among a plurality of participants without leaking private data of the participants.
Correspondingly, the invention also provides a water sample traceability management system based on the intelligent contract of the alliance blockchain ledger, as shown in fig. 2, comprising:
the data acquisition unit 1 is used for inputting water sample data to the data acquisition module and the data processing module and outputting a data identifier of the water sample data.
Specifically, in the water sample data acquisition process, the purpose and the range of acquiring water sample data are determined, and then the data acquisition module is utilized to acquire the water sample data in real time and transmit the water sample data to the data processing module, wherein the data acquisition module comprises a water quality monitoring instrument, a hydrological instrument and a meteorological instrument;
the data processing module processes the collected water sample data by using data cleaning, data checking and data integration technologies; the data is cleaned to remove abnormal values, repeated values and missing values in the data so as to ensure the quality of the data; verifying the data by data verification to ensure the accuracy and consistency of the data; the data integration combines the data from different instruments into a data set so as to facilitate subsequent analysis and application, the calibration equipment is adopted in the acquisition process, sample pollution is avoided, the accuracy of the equipment and the integrity of the data are ensured, a unique data identifier is generated, the unique data identifier comprises a time stamp and a sampling point number so as to facilitate subsequent data uploading and tracing, in addition, the water sample data is encrypted by adopting an asymmetric encryption algorithm so as to protect data privacy, and only personnel with corresponding keys can decrypt the data.
And the block information unit 2 is used for uploading the data identifier of the water sample data to the alliance block chain account book to generate corresponding block information.
Specifically, the access authority and the uploading mode of the alliance block chain account book are confirmed, the collected data identifier of the water sample data is uploaded to the alliance block chain account book, when the data identifier is uploaded, the data is signed by using a digital signature technology, corresponding block information is generated, the block information comprises the uploaded water sample data, the data identifier information and the data uploading information, the digital signature uses a public key encryption technology, and only a private key holder can verify the digital signature, so that the authenticity and the integrity of the data are ensured.
The intelligent contract verification unit 3 is used for designing an intelligent contract program, deploying the intelligent contract on the alliance blockchain, inputting the block information into the intelligent contract program, realizing data verification logic and outputting intelligent contract verification information.
Specifically, the intelligent contract is an automatically executed computer program, the data verification, recording and interaction functions are realized on a blockchain, a intelligent contract program is written by adopting a solubility programming language, the intelligent contract program comprises a verification rule and processing logic of uploading data, the intelligent contract program is used for verifying the source, the detection item and the detection result information of uploaded water sample data, the accuracy and the credibility of the data are ensured, and the intelligent contract program is deployed on a alliance chain node;
in the water sample tracing management method, block information is input into an intelligent contract program, digital signature technology is used for verifying the water sample data, authenticity and integrity of the data are ensured, authentication and authorization technology based on role access control is adopted for verifying and authorizing user identity and authority, the identity of a user is verified based on a digital certificate and a digital identity, only the authorized user can access protected resources or execute limited operation, when the water sample data are uploaded, intelligent contract is adopted for verifying the data, whether the data conform to specifications or not and are complete or not is checked, intelligent contract verification information is returned, when the data verification passes, the intelligent contract verification information is confirmation information, otherwise, the data are returned as error information, and uploading and recording of the data are prevented.
And the blockchain ledger recording unit 4 is used for recording the intelligent contract verification information in the alliance blockchain ledger and outputting recorded data.
Specifically, when the water sample data passing verification is recorded in the alliance blockchain ledger, the integrity, reliability and safety of the data are required to be ensured in the recording process, the homomorphic encryption technology in the blockchain privacy protection technology is used for ensuring that only authorized personnel can access the data, the homomorphic encryption technology does not need to decrypt the data, the data are calculated in an encryption state, the data are analyzed and processed under the condition that the data content is not exposed, so that the data privacy is protected, the recording information is output, and the recording information comprises the acquisition time, the location, the data identifier and the water quality monitoring data information.
The water quality detection and tracing unit 5 is used for accessing the record data in the alliance blockchain ledger, analyzing the record data, outputting water quality detection data and realizing data tracing.
Specifically, accessing a alliance blockchain ledger, inquiring and analyzing recorded data, screening and filtering through data identifiers, acquisition time and place conditions, knowing the historical record and change trend of water quality monitoring data, providing basis for subsequent decision, acquiring related data from the alliance blockchain ledger according to data identifier information when tracing the water quality monitoring data, outputting the water quality monitoring data, and realizing whole-course trace and tracing of the data;
when analyzing the water sample data, a safe multiparty computing technology is used to ensure that the data is not leaked in the computing process, and the safe multiparty computing technology can realize the computing result among a plurality of participants without revealing private data of the participants.
Therefore, the water sample tracing management method based on the intelligent contract of the alliance blockchain ledger realizes that the data cannot be tampered and counterfeited through the transaction record on the blockchain, and ensures the safety and the credibility of the data; based on the alliance block chain account book and the intelligent contract technology, decentralization management and data sharing are realized, and the safety and reliability of the data are improved; the water sample whole-course trace and tracing management is realized through the alliance chain technology, the water sample whole-course trace and tracing management method has higher practicability and commercial value, the credibility and the integrity of data of each link of water sample collection, inspection, analysis and the like are ensured, the efficiency and the accuracy of water quality monitoring are improved, the chain data structure is favorable for standardized management of the data, comprehensive, dynamic and credible data safety information is provided for the supervision department, and powerful support is provided for guaranteeing the drinking water safety of people.
The water sample tracing management method and system based on the intelligent contract of the alliance blockchain ledger provided by the embodiment of the invention are described in detail, and specific examples are applied to the description of the principle and the implementation mode of the invention, and the description of the above embodiments is only used for helping to understand the method and the core idea of the invention; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in accordance with the ideas of the present invention, the present description should not be construed as limiting the present invention in view of the above.

Claims (12)

1. A water sample traceability management method based on a alliance blockchain ledger intelligent contract is characterized by comprising the following steps:
inputting water sample data to a data acquisition module and a data processing module, and outputting a data identifier of the water sample data;
uploading the data identifier of the water sample data to a alliance blockchain ledger to generate corresponding blockinformation;
designing an intelligent contract program, deploying the intelligent contract on a alliance blockchain, inputting the block information into the intelligent contract program, realizing data verification logic, and outputting intelligent contract verification information;
recording the intelligent contract verification information in a alliance blockchain ledger, and outputting recorded data;
accessing record data in the alliance block chain account book, analyzing the record data, outputting water quality detection data and realizing data tracing.
2. The water sample traceability management method based on the intelligent contract of the alliance blockchain ledger of claim 1, wherein 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:
in the water sample data acquisition process, determining the purpose and the range of acquiring water sample data, and then utilizing a data acquisition module to acquire the water sample data in real time and transmitting the water sample data to a data processing module, wherein the data acquisition module comprises a water quality monitoring instrument, a hydrological instrument and a meteorological instrument;
the data processing module processes the collected water sample data by using data cleaning, data checking and data integration technologies; the data is cleaned to remove abnormal values, repeated values and missing values in the data so as to ensure the quality of the data; verifying the data by data verification to ensure the accuracy and consistency of the data; the data integration combines the data from different instruments into a data set so as to facilitate subsequent analysis and application, the calibration equipment is adopted in the acquisition process, sample pollution is avoided, the accuracy of the equipment and the integrity of the data are ensured, a unique data identifier is generated, the unique data identifier comprises a time stamp and a sampling point number so as to facilitate subsequent data uploading and tracing, in addition, the water sample data is encrypted by adopting an asymmetric encryption algorithm so as to protect data privacy, and only personnel with corresponding keys can decrypt the data.
3. The water sample traceability management method based on intelligent contract of alliance blockchain ledger of claim 1, wherein the uploading the data identifier of the water sample data to the alliance blockchain ledger generates corresponding block information, specifically:
and (3) confirming the access authority and uploading mode of the alliance block chain account book, uploading the data identifier of the collected water sample data to the alliance block chain account book, signing the data by using a digital signature technology when uploading the data identifier, and generating corresponding block information, wherein the block information comprises the uploaded water sample data, the data identifier information and the data uploading information, and the digital signature uses a public key encryption technology, so that only a private key holder can verify the digital signature, thereby ensuring the authenticity and the integrity of the data.
4. The water sample traceability management method based on intelligent contracts of the alliance blockchain ledger of claim 1, wherein the design intelligent contract program deploys the intelligent contracts on the alliance blockchain, inputs the block information into the intelligent contract program to realize data verification logic, and outputs intelligent contract verification information, specifically:
the intelligent contract is a computer program which is automatically executed, realizes the functions of data verification, recording and interaction on a blockchain, writes the intelligent contract program by adopting a Solidity programming language, comprises a verification rule and processing logic of uploading data, is used for verifying the source, detection items and detection result information of the uploaded water sample data, ensures the accuracy and the credibility of the data, and deploys the intelligent contract program on a alliance chain node;
in the water sample tracing management method, block information is input into an intelligent contract program, digital signature technology is used for verifying the water sample data, authenticity and integrity of the data are ensured, authentication and authorization technology based on role access control is adopted for verifying and authorizing user identity and authority, the identity of a user is verified based on a digital certificate and a digital identity, only the authorized user can access protected resources or execute limited operation, when the water sample data are uploaded, intelligent contract is adopted for verifying the data, whether the data conform to specifications or not and are complete or not is checked, intelligent contract verification information is returned, when the data verification passes, the intelligent contract verification information is confirmation information, otherwise, the data are returned as error information, and uploading and recording of the data are prevented.
5. The water sample traceability management method based on intelligent contracts of the alliance blockchain ledger of claim 1, wherein the intelligent contract verification information is recorded in the alliance blockchain ledger, and recorded data is output, specifically:
when the verified water sample data is recorded in the alliance blockchain account book, the integrity, the reliability and the safety of the data are required to be ensured in the recording process, the homomorphic encryption technology in the blockchain privacy protection technology is used for ensuring that only authorized personnel can access the data, the homomorphic encryption technology does not need to decrypt the data, the data are calculated in an encryption state, the data are analyzed and processed under the condition that the data content is not exposed, so that the data privacy is protected, the recording information is output, and the recording information comprises the acquisition time, the location, the data identifier and the water quality monitoring data information.
6. The water sample tracing management method based on the intelligent contract of the alliance block chain ledger of claim 1, wherein the accessing of the record data in the alliance block chain ledger, the analysis of the record data, the output of water quality detection data and the realization of data tracing are specifically as follows:
accessing a alliance block chain account book, inquiring and analyzing recorded data, screening and filtering through data identifiers, acquisition time and place conditions, knowing the historical record and change trend of water quality monitoring data, providing basis for subsequent decision, acquiring related data from the alliance block chain account book according to data identifier information when tracing the water quality monitoring data, outputting the water quality monitoring data, and realizing whole-course trace and tracing of the data;
when analyzing the water sample data, a safe multiparty computing technology is used to ensure that the data is not leaked in the computing process, and the safe multiparty computing technology can realize the computing result among a plurality of participants without revealing private data of the participants.
7. A water sample traceability management system based on a federated blockchain ledger intelligent contract, the system comprising:
the data acquisition unit is used for inputting water sample data to the data acquisition module and the data processing module and outputting a data identifier of the water sample data;
the block information unit is used for uploading the data identifier of the water sample data to a alliance block chain account book to generate corresponding block information;
the intelligent contract verification unit is used for designing an intelligent contract program, deploying the intelligent contract on the alliance block chain, inputting the block information into the intelligent contract program, realizing data verification logic and outputting intelligent contract verification information;
the blockchain account book recording unit is used for recording the intelligent contract verification information in the alliance blockchain account book and outputting recording data;
the water quality detection and tracing unit is used for accessing the record data in the alliance blockchain ledger, analyzing the record data, outputting water quality detection data and realizing data tracing.
8. The water sample traceability management system based on the intelligent contract of the alliance blockchain ledger of claim 7, wherein the data acquisition unit is used for determining the purpose and the range of acquiring water sample data in the process of acquiring water sample data, then utilizing the data acquisition module to acquire the water sample data in real time and transmitting the water sample data to the data processing module, wherein the data acquisition module comprises a water quality monitoring instrument, a hydrological instrument and a meteorological instrument;
the data processing module processes the collected water sample data by using data cleaning, data checking and data integration technologies; the data is cleaned to remove abnormal values, repeated values and missing values in the data so as to ensure the quality of the data; verifying the data by data verification to ensure the accuracy and consistency of the data; the data integration combines the data from different instruments into a data set so as to facilitate subsequent analysis and application, the calibration equipment is adopted in the acquisition process, sample pollution is avoided, the accuracy of the equipment and the integrity of the data are ensured, a unique data identifier is generated, the unique data identifier comprises a time stamp and a sampling point number so as to facilitate subsequent data uploading and tracing, in addition, the water sample data is encrypted by adopting an asymmetric encryption algorithm so as to protect data privacy, and only personnel with corresponding keys can decrypt the data.
9. The water sample traceability management system based on the intelligent contract of the alliance blockchain ledger of claim 7, wherein the block information unit is required to confirm the access right and the uploading mode of the alliance blockchain ledger, uploads the data identifier of the collected water sample data to the alliance blockchain ledger, when uploading the data identifier, a digital signature technology is used for signing the data to generate corresponding block information, the block information comprises the uploaded water sample data, the data identifier information and the data uploading information, the digital signature uses a public key encryption technology, and only a private key holder can verify the digital signature to ensure the authenticity and the integrity of the data.
10. The water sample traceability management system based on intelligent contracts of a alliance blockchain ledger of claim 7, wherein the intelligent contract verification unit needs the intelligent contracts to be an automatically executed computer program, realizes data verification, recording and interaction functions on the blockchain, writes intelligent contract programs by adopting a Solidity programming language, comprises verification rules and processing logic for uploading data, is used for verifying the source, detection items and detection result information of the uploaded water sample data, ensures the accuracy and credibility of the data, and deploys the intelligent contract programs on nodes of the alliance chain;
in the water sample tracing management method, block information is input into an intelligent contract program, digital signature technology is used for verifying the water sample data, authenticity and integrity of the data are ensured, authentication and authorization technology based on role access control is adopted for verifying and authorizing user identity and authority, the identity of a user is verified based on a digital certificate and a digital identity, only the authorized user can access protected resources or execute limited operation, when the water sample data are uploaded, intelligent contract is adopted for verifying the data, whether the data conform to specifications or not and are complete or not is checked, intelligent contract verification information is returned, when the data verification passes, the intelligent contract verification information is confirmation information, otherwise, the data are returned as error information, and uploading and recording of the data are prevented.
11. The water sample traceability management system based on intelligent contracts of the alliance blockchain ledger of claim 7, wherein when the blockchain ledger recording unit needs to record the verified water sample data in the alliance blockchain ledger, the integrity, reliability and safety of the data need to be ensured in 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, the calculation is performed in an encryption state, the data analysis and the processing are performed under the condition of not exposing the data content, so that the data privacy is protected, and the recorded information including the acquisition time, the location, the data identifier and the water quality monitoring data information is output.
12. The water sample traceability management system based on the intelligent contract of the alliance blockchain ledger of claim 7, wherein the water quality detection and traceability unit needs to access the alliance blockchain ledger, inquire and analyze recorded data, screen and filter through data identifiers, acquisition time and place conditions, know the historical record and change trend of the water quality monitoring data, provide basis for subsequent decision, acquire related data from the alliance blockchain ledger according to data identifier information when tracing the water quality monitoring data, output the water quality monitoring data, and realize the whole trace and traceability of the data;
when analyzing the water sample data, a safe multiparty computing technology is used to ensure that the data is not leaked in the computing process, and the safe multiparty computing technology can realize the computing result among a plurality of participants without revealing private data of the participants.
CN202310597628.3A 2023-05-25 2023-05-25 Water sample traceability management method and system based on alliance block chain account book intelligent contract Pending CN116561815A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310597628.3A CN116561815A (en) 2023-05-25 2023-05-25 Water sample traceability management method and system based on alliance block chain account book intelligent contract

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310597628.3A CN116561815A (en) 2023-05-25 2023-05-25 Water sample traceability management method and system based on alliance block chain account book intelligent contract

Publications (1)

Publication Number Publication Date
CN116561815A true CN116561815A (en) 2023-08-08

Family

ID=87499965

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310597628.3A Pending CN116561815A (en) 2023-05-25 2023-05-25 Water sample traceability management method and system based on alliance block chain account book intelligent contract

Country Status (1)

Country Link
CN (1) CN116561815A (en)

Similar Documents

Publication Publication Date Title
CN108681966B (en) Information supervision method and device based on block chain
Li et al. Blockchain-based digital forensics investigation framework in the internet of things and social systems
CN112217868B (en) Water environment automatic monitoring and analysis evaluation method based on block chain
WO2019227602A1 (en) Blockchain-based sleeve grouting quality tracing method and system, and collection terminal
CN113495920B (en) Content auditing system, method and device based on blockchain and storage medium
CN107612698B (en) Commercial password detection method, device and system
CN111916217A (en) Block chain-based medical data management method, system, storage medium and terminal
CN117040896A (en) Internet of things management method and Internet of things management platform
CN117313122A (en) Data sharing and exchanging management system based on block chain
Feng et al. Autonomous vehicles' forensics in smart cities
CN116561815A (en) Water sample traceability management method and system based on alliance block chain account book intelligent contract
CN116684160A (en) Public service litigation data security sharing and privacy protecting method and system
CN114493867A (en) Real estate registration management transaction method and system based on block chain
CN111741031B (en) Block chain based network communication encryption method
CN115118751A (en) Block chain-based supervision system, method, equipment and medium
CN114372092A (en) Case collaborative search processing method, system, device and electronic equipment
CN113672655A (en) File collaborative checking method and device based on block chain
Yan et al. Research on key technologies of industrial internet data security
CN112507355A (en) Individual health data storage system based on block chain
Rajasekar et al. Blackchain-based Identity Management Systems in Digital Forensics
CN112532395A (en) Data credit granting system, method and medium based on block chain
Kotevska et al. Analyzing data privacy for edge systems
Hawanna et al. Risk assessment of X. 509 certificate by evaluating Certification Practice Statements
CN116308841B (en) Financial supervision method based on RPA and blockchain
Yadegari et al. A novel network based privacy framework

Legal Events

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