Breeding product tracing method and system based on block chain
By adopting blockchain-based breeding product traceability methods in supply chain management, the problems of data being easily tampered with and insufficient transparency in the existing technology are solved, and the data is high security and transparency are achieved, and food safety and Consumer trust.
Patent Information
- Application Number
- CN202411583264.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-07
- Publication Date
- 2025-02-18
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing supply chain management technologies have shortcomings in ensuring data transparency and authenticity, which leads to data being easily tampered with or errors, affecting the efficiency and trust of the supply chain. It is especially difficult to quickly and accurately track the source of the problem in food safety accidents, resulting in more A wide range of health crises and a decline in brand trust.
A blockchain-based breeding product traceability method is used to collect and encode data on the type, origin and growth cycle of breeding products, and upload it to the blockchain network through encrypted channels to generate encoded data records. Then, based on the encoded data record, the timestamp is associated with the data, and each record is processed using a hash function to verify the immutability of the data and the security of the supply chain nodes, and a hash security record is generated. Finally, by decrypting and verifying the encrypted data, ensuring the security and privacy protection of the data in storage and transmission, the blockchain query function is used to track the production and circulation process of the product.
Significantly enhances the security and immutability of data, ensures the authenticity and transparency of data throughout the supply chain, increases consumer trust in food sources and processing processes, improves food safety and regulatory compliance, and provides A powerful tool to address fraud and pollution problems in the supply chain.
Smart Images

Figure CN119476716A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of supply chain management, and in particular to a blockchain-based aquaculture product traceability method and system. Background Art
[0002] Supply chain management is a technical and management field that studies and optimizes supply chain activities, covering the entire process from raw material procurement, production and processing to product delivery to consumers. The main goal is to improve efficiency, reduce costs, and ensure product quality and delivery reliability. With the advancement of technology, supply chain management has included advanced information technology and automation tools such as the Internet of Things (IoT), artificial intelligence (AI) and blockchain technology to enhance transparency and traceability.
[0003] Among them, the blockchain aquaculture product traceability method refers to the use of blockchain technology to record and track every link of aquaculture products from origin to consumer. The immutability and decentralization of blockchain are used to ensure the transparency and authenticity of data, so that consumers can obtain reliable information about the source, processing and transportation of food. The main uses include improving food safety, strengthening regulatory compliance and enhancing consumer trust, which is of great significance in solving fraud and pollution problems in the food supply chain.
[0004] Existing supply chain management technologies have certain deficiencies in ensuring the transparency and authenticity of data in supply chain management. In typical supply chain management, data collection and storage rely on centralized systems, which makes data susceptible to tampering or errors, affecting the efficiency and trust of the entire supply chain. For example, in food safety incidents, if the source of the problem cannot be quickly and accurately traced, it will lead to a wider health crisis and a decline in brand trust. Traditional methods lack sufficient security measures when processing and storing large-scale data, exposing data to the risk of illegal access or theft. The lack of effective timestamp binding and hash verification mechanisms also makes the data verification process more complicated, increasing the difficulty and cost of supervision. The shortcomings lead to challenges in regulatory compliance, as well as problems in food safety and consumer trust. Summary of the invention
[0005] The purpose of the present invention is to solve the shortcomings of the prior art and propose a blockchain-based aquaculture product traceability method and system.
[0006] In order to achieve the above purpose, the present invention adopts the following technical solution, a blockchain-based aquaculture product traceability method, comprising the following steps: S1: Collect data on the types, origins and growth cycles of aquaculture products, assign identifiers to each data item, encode the data and associated identifiers into an uploadable format, upload them to the blockchain network through an encrypted channel, and generate encoded data records; S2: Based on the encoded data record, associating the timestamp with the data, including the records of the breeding environment conditions and the growth stage, uploading the information to the blockchain, and creating a timestamp-bound record; S3: Based on the timestamp binding record, apply the hash function to process each record, check the immutability of each record, verify the security of the product supply chain node, and generate a hash security record; S4: Based on the key information in the hash security record, use symmetric encryption technology to process the information, check the security and privacy protection of the data during storage and transmission, and generate encrypted privacy data; S5: decrypt the encrypted private data using the associated decryption key, check the consistency between the decrypted data and the original data, verify the integrity and authenticity of the data, and generate a data verification result; S6: By accessing the data verification results and combining the query function of the blockchain, the production and circulation history of the aquaculture products is tracked, the consistency of the history with the preset standard process is analyzed, and a product traceability log is generated.
[0007] As a further solution of the present invention, the encoded data record includes a coded set of the type number, origin code and growth cycle days of the aquaculture product, the timestamp binding record includes a timestamp, ambient temperature, ambient humidity and real-time growth stage, the hash security record includes the result of processing using a hash function and a unique hash value associated with each data record, the encrypted privacy data includes encrypted entries for aquaculture process data, transit node data and product status, the data verification result includes a verification record of decrypting the encrypted privacy data using a decryption key, verifying the consistency of the decrypted data with the original data, and a verification record of the matching degree of the decrypted data with the original data, and the product traceability log includes records of the planting, growth, processing and market circulation of aquaculture products.
[0008] As a further solution of the present invention, the type, origin and growth cycle data of aquaculture products are collected, an identifier is assigned to each data item, the data and the associated identifier are encoded into an uploadable format, and uploaded to the blockchain network through an encrypted channel. The steps of generating the encoded data record are specifically as follows: S101: Collect data on the types, origins and growth cycles of aquaculture products, match associated identifiers for each data item, organize them into a key-value pair format, and generate a data and identifier mapping table; S102: using the data and identifier mapping table, convert each piece of data and identifier into JSON format, check data integrity and verify format consistency, verify that the data item complies with the upload specification, and obtain a format conversion record; S103: Through the format conversion record, set the encryption protocol and establish a data upload channel, upload the data to the blockchain network through the encrypted channel, record the upload log of each data, and obtain the encoded data record.
[0009] As a further solution of the present invention, based on the encoded data record, the timestamp is associated with the data, including the record of the breeding environment conditions and the growth stage, and the information is uploaded to the blockchain. The steps of creating the timestamp-bound record are specifically as follows: S201: Based on the coded data record, assign a corresponding timestamp to the data, and associate the timestamp with the type, origin and growth cycle information of the aquaculture product to generate a timestamp associated data table; S202: using the timestamp association data table to integrate the data of the breeding environment conditions and the growth stage, adding a corresponding timestamp to each growth stage and environmental condition, updating the data record to check the integrity of the information, and obtaining the environment and stage binding data; S203: Through the environment and stage binding data, using the pre-set encryption channel and data upload protocol, upload the complete timestamp binding data to the blockchain network to obtain a timestamp binding record.
[0010] As a further solution of the present invention, according to the timestamp binding record, a hash function is applied to process each record, the immutability after each record is checked, and the security of the product supply chain node is verified. The steps of generating a hash security record are specifically as follows: S301: Based on the timestamp binding record, the timestamp, breeding environment conditions and growth stage data in each record are encoded using the SHA256 hash algorithm to generate a hashed data table; S302: Check each hash record through the hashed data table to check the consistency and integrity of the hash value and the consistency of the data point, verify the integrity and tamper-proofness of the data, and obtain a data tamper-proof verification record; S303: Use the data non-tamperable verification record to verify the data security of the supply chain nodes, check that the data transmission and storage between nodes are carried out in a secure environment, and generate a hash security record.
[0011] As a further solution of the present invention, the formula of the SHA256 hash algorithm is as follows:
[0012] in, is the hash value, Representative The value of the data item, Representative The weight coefficient of each data item, Represents the number of data items, is the absolute value function, is the total number of data items.
[0013] As a further solution of the present invention, according to the key information in the hash security record, the information is processed using symmetric encryption technology to check the security and privacy protection of the data during storage and transmission, and the steps of generating encrypted privacy data are specifically as follows: S401: Based on the hash security record, screen key information associated with the aquaculture product, including product type, origin and timestamp, encrypt the information, check the security and integrity of the data during processing, and generate encrypted key data; S402: By encrypting the key data, setting a security protocol to perform storage and transmission tests on the data, checking the security and integrity of the data in a differentiated network environment, verifying the confidentiality and tamper-proof capability of the encrypted data, and obtaining a data security verification record; S403: Using the data security verification record, review and verify the privacy protection measures of the data, check whether the storage and transmission of the encrypted data in the supply chain meet the predetermined security standards, and generate encrypted privacy data.
[0014] As a further solution of the present invention, the encrypted private data is decrypted using an associated decryption key, the consistency of the decrypted data with the original data is checked, the integrity and authenticity of the data are verified, and the steps of generating a data verification result are specifically as follows: S501: Based on the encrypted private data, decrypt the data using a pre-assigned decryption key, restore the encrypted information to its original format, and generate a decrypted data table; S502: Compare the decrypted data with the original data through the decrypted data table, check the matching degree of the type, origin and timestamp of the aquaculture product, verify that the data has not been tampered with or damaged during decryption, and obtain a data consistency record; S503: Using the data consistency record, verify the integrity and authenticity of the data, check the consistency of the data item with the original record, verify the integrity of the data, and generate a data verification result.
[0015] As a further solution of the present invention, by accessing the data verification results, combined with the query function of the blockchain, the production and circulation history of the aquaculture products is tracked, and the consistency of the history with the preset standard process is analyzed. The steps of generating a product traceability log are specifically as follows: S601: Based on the data verification result, using the query function of the blockchain, access and collect the production and circulation data of the aquaculture products, and generate a production and circulation query record; S602: Compare the real-time production and circulation history with the preset standard process through the production and circulation query record, analyze data consistency and deviation, evaluate the standardization degree and deviation of process execution, and obtain a process consistency analysis record; S603: Use the process consistency analysis record to analyze the cause of the deviation, summarize the information and key deviation points of multiple links, and combine the timestamp and blockchain technology to generate a product traceability log.
[0016] A blockchain-based aquaculture product traceability system, the blockchain-based aquaculture product traceability system is used to execute the blockchain-based aquaculture product traceability method, the system comprising: The data entry module collects species, origin and growth cycle data, assigns a unique identifier to each data item, converts it into an uploadable format and uploads it to the blockchain through an encrypted channel to generate a coded data record; The timestamp binding module associates each piece of data with a timestamp based on the encoded data record, including the association of environmental conditions with growth stage data, uploads it to the blockchain, and generates a timestamp record; The security verification module extracts data from the timestamp record, processes each record using a hash function, checks the immutability of each record, verifies the security of each supply chain node, checks the security of data storage and transmission, and generates encrypted privacy data; The data encryption module decrypts the data based on the encrypted privacy data using the associated decryption key, verifies the consistency between the decrypted data and the original data, and generates a data verification result; The data query and analysis module uses the data verification results and blockchain to track and locate the production and circulation process of aquaculture products, analyze the consistency of the process with the preset standard process, and generate a product traceability log.
[0017] Compared with the prior art, the advantages and positive effects of the present invention are: In the present invention, by encoding the data items and uploading them to the blockchain network through an encrypted channel, the security and immutability of the data are significantly enhanced. The process ensures the authenticity and transparency of the data throughout the supply chain, increasing consumers' trust in the source and processing of food. Binding timestamps to data records and using hash functions to process each record further verifies the security of each supply chain node. This strategy not only improves the integrity of data processing, but also provides consumers with an effective means of verification to ensure that the information received is accurate. By decrypting and verifying encrypted data, the security and privacy protection of data during storage and transmission are ensured. The production and circulation history of products can be tracked through the blockchain query function to improve food safety, strengthen regulatory compliance, and provide a powerful tool for solving fraud and pollution problems in the supply chain. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 It is a schematic diagram of the workflow of the present invention; Figure 2 This is a detailed flow chart of S1 of the present invention; Figure 3 This is a detailed flow chart of S2 of the present invention; Figure 4 This is a detailed flow chart of S3 of the present invention; Figure 5 This is a detailed flow chart of S4 of the present invention; Figure 6 This is a detailed flow chart of S5 of the present invention; Figure 7 This is a detailed flow chart of S6 of the present invention; Figure 8 It is a system flow chart of the present invention. DETAILED DESCRIPTION
[0019] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0020] In the description of the present invention, it should be understood that the terms "length", "width", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside" and the like indicate positions or positional relationships based on the positions or positional relationships shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, in the description of the present invention, "multiple" means two or more, unless otherwise clearly and specifically defined.
[0021] See also Figure 1 The present invention provides a technical solution, a blockchain-based aquaculture product traceability method, comprising the following steps: S1: Collect data on the types, origins and growth cycles of aquaculture products, assign identifiers to each data item, encode the data and associated identifiers into an uploadable format, upload them to the blockchain network through an encrypted channel, and generate encoded data records; S2: Based on the coded data records, assign a timestamp to each piece of data, associate the timestamp with the data, including the records of the breeding environment conditions and growth stages, upload the information to the blockchain, and create a timestamp-bound record; S3: Extract data from timestamp-bound records, apply hash functions to each record, check the immutability of each record, verify the security of each node in the product supply chain, and generate hash security records; S4: Based on the key information in the hash security record, use symmetric encryption technology to process the information, check the security and privacy protection of the data during storage and transmission, and generate encrypted privacy data; S5: Decrypt the encrypted private data using the associated decryption key, check the consistency between the decrypted data and the original data, verify the integrity and authenticity of the data, and generate a data verification result; S6: By accessing the data verification results and combining the query function of the blockchain, the production and circulation process of the aquaculture products is tracked, the consistency of the process with the preset standard process is analyzed, and a product traceability log is generated.
[0022] The coded data records include the coded sets of the type number, origin code and growth cycle days of the aquaculture products. The timestamp-bound records include the timestamp, ambient temperature, ambient humidity and real-time growth stage. The hash security records include the results of processing using the hash function and the unique hash value associated with each data record. The encrypted privacy data includes encrypted entries for the aquaculture process data, transit node data and product status. The data verification results include the use of the decryption key to decrypt the encrypted privacy data, verify the consistency of the decrypted data with the original data, and verify the matching records of the decrypted data with the original data. The product traceability log includes records of the planting, growth, processing and market circulation of aquaculture products.
[0023] See also Figure 2 , collect the type, origin and growth cycle data of aquaculture products, assign identifiers to each data item, encode the data and the associated identifiers into an uploadable format, and upload them to the blockchain network through an encrypted channel. The specific steps for generating encoded data records are: S101: Collect the types, origins and growth cycle data of aquaculture products, match the associated identifiers for each data item, organize them into a key-value pair format, and generate a data and identifier mapping table. The execution process is as follows; When collecting data, the type, origin and growth cycle data of aquaculture products are collected. Different types of aquaculture products have different data characteristics. Origin data is crucial for tracing the source of products, and the growth cycle reflects the entire process of products from breeding to maturity. In order to ensure the consistency and traceability of data, matching associated identifiers for each data item is a necessary step. Identifiers can be used to effectively manage data and quickly locate specific data items in subsequent processing. For example, type code K, origin code P and cycle code C can be assigned to different aquaculture products respectively. Such mapping relationships can simplify database query operations and reduce errors in data processing. It not only facilitates data storage, but also ensures the integrity and security of information, and generates a data and identifier mapping table.
[0024] S102: Use the data and identifier mapping table to convert each piece of data and identifier into JSON format, check the data integrity and verify the consistency of the format, verify that the data item complies with the upload specification, and obtain the execution process of the format conversion record as follows; Convert each piece of data and identifier into JSON format according to the formula encode , calculate the format conversion record. In the formula, Represents a data item, Represents an identifier associated with a data item.
[0025] Detailed explanation of the formula and the process of formula calculation: Data items and the corresponding identifier It is converted into a standardized JSON format through the JSON encoding process. For example, if the data item is {Species: "Fish", Origin: "China", Growth Period: "6 Months"}, and there is a corresponding identifier {Species: "001", Origin: "010", Growth Period: "020"} The conversion process is: 1. Map data and identifiers to JSON key-value pairs 2. Serialize the key-value pairs into JSON objects. Calculation example: before data conversion: {Species: "Fish", Origin: "China", Growth period: "6 months"}, {Species: "001", Origin: 010, Growth period: "020"), the converted JSON object is: Name: "Fish", Identifier: "001"} S103: Through the format conversion record, set the encryption protocol and establish a data upload channel, upload the data to the blockchain network through the encrypted channel, record the upload log of each data, and obtain the execution process of the encoded data record as follows; Based on the format conversion records, the setting of encryption protocols and the establishment of data upload channels are key links. Encryption processing before data upload ensures the security and privacy of data. Uploading to the blockchain network through a secure channel is a key step to ensure that data is not tampered with and easy to track. For example, use a symmetric encryption algorithm to encrypt data, generate encrypted data blocks, and transmit them to the blockchain network through the established secure channel. Each data upload will be recorded in the upload log to ensure data integrity and traceability of transmission. The upload log records the upload time and status of the data, providing a basis for data tracking and management. Data uploaded to the blockchain can be verified and viewed globally to ensure the openness and transparency of the data and obtain encoded data records.
[0026] See also Figure 3 , based on the coded data record, the timestamp is associated with the data, including the records of the breeding environment conditions and growth stages, and the information is uploaded to the blockchain. The specific steps for creating a timestamp-bound record are: S201: Based on the coded data record, a corresponding timestamp is assigned to the data, and the timestamp is associated with the type, origin and growth cycle information of the aquaculture product to generate a timestamp associated data table. The execution process is as follows; Assign corresponding timestamps to the data and associate them according to the formula , calculate the timestamp associated data table. In the formula, Represents timestamp associated data, Represents an encoded data record.
[0027] Detailed explanation of the formula and the process of formula calculation and derivation: Each coded data record A unique timestamp is assigned based on the time of creation. The timestamp is in UNIX time format based on the creation time of the data record. For example, if a data record is created on September 13, 2024 at 12:00:00, the UNIX timestamp is 1631539200 seconds. Calculation example, data record for: "Type": "Fish", Origin: China, Growth cycle: 6 months} The timestamp generation process is: Capture the exact point in time when a data record is created Convert a time point to a UNIX timestamp Generated timestamp associated data For: "Timestamp": , "data": {"type":"fish","origin":"China"} S202: Use the timestamp to associate the data table, integrate the data of the breeding environment conditions and the growth stage, add a corresponding timestamp to each growth stage and environmental condition, update the data record to check the integrity of the information, and obtain the execution process of the environment and stage binding data as follows; Based on the timestamp associated data, integrating the data of breeding environment conditions and growth stages is a complex process. Adding corresponding timestamps for each growth stage and environmental condition involves data screening and time marking. By time-stamping each breeding stage and environmental factor, data changes can be effectively tracked and data records can be updated in a timely manner. The verification of data integrity ensures the accuracy and reliability of the information. The updated environment and stage binding data contains detailed time information, which is critical for analyzing breeding efficiency and environmental impact. The update and verification of records are completed through an automated system to ensure the efficiency and accuracy of data processing and obtain environment and stage binding data.
[0028] S203: By binding the data with the environment and stage, using the pre-set encrypted channel and data upload protocol, upload the complete timestamp binding data to the blockchain network, and obtain the execution process of the timestamp binding record as follows; Using the pre-set encryption channel and data upload protocol, in the process of uploading complete timestamp-bound data to the blockchain network, the encryption protocol ensures the security of the data, while the data upload protocol ensures the standardization of data transmission, and associates the breeding data with specific timestamps. Through the blockchain network, the data can be accessed and verified by stakeholders around the world. The data sharing mechanism enhances the transparency of the data and improves the traceability and credibility of the breeding products. It contains detailed time tags and breeding-related information, which is crucial to ensure the transparency and traceability of data in the breeding industry, and obtain timestamp-bound records.
[0029] See also Figure 4 , bind the records according to the timestamp, apply the hash function to process each record, check the immutability of each record, verify the security of the product supply chain nodes, and generate the hash security record in the following steps: S301: Based on the timestamp binding record, the SHA256 hash algorithm is used to encode the timestamp, breeding environment conditions and growth stage data in each record to generate a hashed data table. The execution process is as follows; The formula for the SHA256 hash algorithm is as follows:
[0030] in, is the hash value, Representative The value of the data item, Representative The weight coefficient of each data item, Represents the number of data items, is the absolute value function, is the total number of data items.
[0031] Detailed explanation of the formula and the process of formula calculation and derivation: During the calculation process, the timestamp, breeding environment condition data (such as temperature and humidity) and growth stage data of each record need to be quantified. The timestamp itself is numerical data and is used directly. The temperature and humidity are monitored in real time by sensors to obtain numerical data. The growth stage is quantified by observation and according to preset standards, such as the seedling stage, growth stage and maturity stage are assigned values of 1, 2, and 3 respectively.
[0032] Detailed explanation of quantitative standards: Timestamp : UNIX timestamp of the recording moment, for example 1622520000 (June 1, 2021) temperature : Real-time data obtained through the temperature sensor, set to 25°C humidity : Real-time data obtained through the humidity sensor, set to 60% Growth stage : According to the plant growth cycle, it is divided into three stages. Set the current stage to the growth stage and assign a value of 2 Weight coefficient Setting basis: : Timestamp has a higher weight to ensure the uniqueness of the record : Temperature has a relatively important effect on growth, but is slightly lower than timestamp : Humidity is also important, affecting plant water absorption and photosynthesis :The growth stage is an important reflection of the plant's physiological state and has the greatest impact on the overall data The setting is the number of data items, set to 4 Calculation process: 1. Calculate the product of each data item and the weight:
[0033] 2. Sum the above results: sum=486756000+5+12+0.6=486756017.6 Divide the sum by
[0034]
[0035] The results show that the hash value calculated by the SHA-256 hash algorithm is 121689004.4. The hash value uniquely identifies a specific record in the database, including the recorded time, environmental conditions, and growth stage. The numerical results reflect the numerical characteristics of the original data after weighted processing and normalization, which are used for subsequent data encryption, comparison, and query to ensure data security and consistency.
[0036] S302: Through the hash data table, each hash record is checked to check the coherence and integrity of the hash value and the consistency of the data point, and the integrity and tamper-proofness of the data are verified. The execution process of obtaining the data tamper-proof verification record is as follows; It is an important security measure to check each hash record through hashing the data table. The consistency and integrity check of the hash value involves the verification of the consistency of the data points to ensure the tamper-proof characteristics of the data. This is completed through special software tools. The checking algorithm verifies the continuity and integrity of the hash value. Any illegal modification of the data will cause the hash value to change and be detected by the system. The mechanism significantly improves data security and the trust foundation of the entire data chain, ensuring the transparency and security of supply chain data. By checking the integrity of the hash record, it can effectively prevent the data from being maliciously tampered with during transmission or storage, and obtain a data non-tamperable verification record.
[0037] S303: Use data tamper-proof verification records to verify the data security of supply chain nodes, check that data transmission and storage between nodes are carried out in a secure environment, and generate hash security records. The execution process is as follows; The use of data non-tamperable verification records to further verify the data security of supply chain nodes is a comprehensive security measure. It verifies that data transmission and storage between nodes are carried out in a secure environment. Hash security records can effectively track and verify the data processing and storage process of each node. Records ensure the security and transparency of data at every link in the supply chain and strengthen the overall security architecture of the supply chain. Data security inspection is not limited to checking the integrity of the data itself, but also includes the security of the transmission and storage environment. It can ensure that each node in the supply chain can operate data in a controlled and secure environment and generate hash security records.
[0038] See also Figure 5 , based on the key information in the hash security record, symmetric encryption technology is used to process the information, and the security and privacy protection of the data during storage and transmission are checked. The specific steps for generating encrypted privacy data are as follows: S401: Based on the hash security record, the key information associated with the aquaculture products is screened, including the product type, origin and timestamp, the information is encrypted, the security and integrity of the data during processing are checked, and the execution process of generating encrypted key data is as follows; The key information related to aquaculture products is encrypted according to the formula , calculate the encryption key data. In the formula, Represents the encrypted data. Representative product categories, Represents the place of origin, Represents a timestamp.
[0039] Detailed explanation of the formula and the process of formula calculation: Product categories , Origin and timestamp A data set is formed by encrypting it using an encryption algorithm. For example, the species is fish, the origin is China, and the timestamp is 1631539200.
[0040] Calculation example, before data combination: Fish China
[0041] After encryption, encrypt key data is: 0f4b…9c3e S402: By encrypting key data, setting security protocols to test data storage and transmission, checking the security and integrity of data in a differentiated network environment, verifying the confidentiality and tamper-proof capability of encrypted data, and obtaining the execution process of data security verification records are as follows; Encrypting key data and testing data storage and transmission are key steps to ensure data security. Setting up security protocols to encrypt and protect data ensures security and integrity in different network environments. Security testing includes testing data transmission security and storage integrity in multiple network environments. The verification process simulates network attacks and data leakage scenarios to verify the confidentiality and tamper-proof capabilities of encrypted data. The design of the security protocol takes into account the strength of data encryption and the security of key management, as well as data integrity checks during transmission to obtain data security verification records.
[0042] S403: Using data security verification records, review and verify the privacy protection measures of the data, and check whether the storage and transmission of encrypted data in the supply chain meet the predetermined security standards. The execution process of generating encrypted privacy data is as follows; Using data security verification records to review and verify data privacy protection measures is an important part of supply chain management. The review process includes verifying whether the storage and transmission of encrypted data in the supply chain meet the predetermined security standards. The inspection work ensures that the privacy of data at each supply chain node is fully protected by analyzing the application of encryption technology and the implementation of data processing protocols, including data encryption strength testing, key management audits, and data access control assessments. It provides comprehensive certification of data privacy protection measures in the supply chain, strengthens the security and trust of data processing processes, and generates encrypted privacy data.
[0043] See also Figure 6 , decrypt the encrypted privacy data using the associated decryption key, check the consistency of the decrypted data with the original data, verify the integrity and authenticity of the data, and generate the data verification results in the following steps: S501: Based on the encrypted privacy data, the data is decrypted using a pre-assigned decryption key, the encrypted information is restored to its original format, and the execution flow of generating a decrypted data table is as follows; In the above content, the data is decrypted using the pre-assigned decryption key according to the formula , calculate the decryption data table. In the formula, Represents the decrypted data, Represents encrypted key data, Represents the decryption key.
[0044] Detailed explanation of the formula and the process of formula calculation and derivation: Encrypt critical data Decrypted using the decryption key key and restored to the original data format For example, the encrypted data is 0f4b…9c3e.
[0045] Calculation example, data before decryption: = "0f4b...9c3e" The decryption process is: Apply the decryption algorithm.
[0046] Use the key key to process the encrypted data and the decrypted data for: "Type": "Fish", "Origin": China, Timestamp: 1631539200} S502: By decrypting the data table, comparing the consistency of the decrypted data with the original data, checking the matching degree of the type, origin and timestamp of the aquaculture product, verifying that the data has not been tampered with or damaged during decryption, and obtaining the execution process of the data consistency record is as follows; The core verification process is to decrypt the data table and compare the decrypted data with the original data for consistency, ensuring that the data has not been tampered with or damaged during the decryption process. The comparison process involves a detailed inspection of the type, origin and timestamp of the aquaculture products. A high degree of match indicates that the decryption process maintains the integrity and authenticity of the data. The consistency record provides reliable evidence for data security. The inspection is completed through special comparison software to ensure the accuracy of data processing, confirm that the original state of the data is correctly restored, enhance the transparency and credibility of the data processing process, and obtain data consistency records.
[0047] S503: Using data consistency records, verifying the integrity and authenticity of data, checking the consistency of data items with original records, verifying the integrity of data, and generating data verification results. The execution process is as follows; Using data consistency records to verify the integrity and authenticity of data is a key step in ensuring data quality. The verification process includes a detailed comparison of the decrypted data items with the original records to verify the integrity of the data and ensure that all data items are not tampered with and are accurate. The verification process is performed through automated testing tools. The tools detect every detail of the data to ensure the authenticity and integrity of all information, provide important support for data management, ensure the efficiency and accuracy of data processing, and generate data verification results.
[0048] See also Figure 7 By accessing the data verification results and combining the query function of the blockchain, the production and circulation process of the aquaculture products can be tracked, and the consistency between the process and the preset standard process can be analyzed. The specific steps for generating the product traceability log are as follows: S601: Based on the data verification results, the query function of the blockchain is used to access and collect the production and circulation data of the aquaculture products, and the execution process of generating the production and circulation query record is as follows; Use the query function of blockchain to access and collect production and circulation data of aquaculture products, according to the formula , calculate the production and circulation query records. In the formula, Represents the query record, Represents the blockchain platform, Represents the data verification result.
[0049] Detailed explanation of the formula and the process of formula calculation and derivation: Data verification results Guide to query blockchain , collect production and circulation data of aquaculture products. For example, the verification result is the confirmation of data integrity and authenticity.
[0050] Calculation example, verification result: Data integrity and authenticity The query process is: 1. Connect to the blockchain .
[0051] 2. Submit a query request based on .
[0052] Generated query records for: {"Production data":"Data details","Circulation data":"Data details"} S602: Through the production and circulation query records, the real-time production and circulation history is compared with the preset standard process, the data consistency and deviation are analyzed, the standardization degree and deviation of the process execution are evaluated, and the execution process of the process consistency analysis record is obtained as follows; Through production and circulation query records, the real-time production and circulation history is compared with the preset standard process. The comparison process involves detailed analysis of the data and deviation evaluation. Through special analysis software, every stage of production and circulation is monitored in real time. The standard process is used as a comparison benchmark. Deviation analysis reveals the deficiencies and excesses in process execution. It not only provides an intuitive understanding of the execution of the production process, but also points out the key links that need to be improved. The evaluation results are helpful to optimize the production process, improve the degree of standardization of operations, reduce resource waste and improve efficiency, and obtain process consistency analysis records.
[0053] S603: Use process consistency analysis records to analyze the causes of deviations, summarize information and key deviation points in multiple links, and combine timestamps and blockchain technology to generate product traceability logs. The execution process is as follows; Using process consistency analysis records and analyzing the causes of deviations is an important feedback link for production process management. By summarizing information and key deviation points from multiple links and combining timestamps and blockchain technology to generate product traceability logs, transparent and traceable data support is provided for the entire supply chain. The analysis method ensures that every link in the production process can be accurately recorded and evaluated. The identification and organization of key deviation points help managers locate problems and formulate improvement measures. It not only provides detailed product records, but also strengthens the monitoring and management of the production process, ensures product quality and the overall security of the supply chain, and generates product traceability logs.
[0054] See also Figure 8 A blockchain-based aquaculture product traceability system is provided. The blockchain-based aquaculture product traceability system is used to execute the blockchain-based aquaculture product traceability method. The system includes: The data entry module collects species, origin and growth cycle data, assigns a unique identifier to each data item, converts it into an uploadable format and uploads it to the blockchain through an encrypted channel to generate a coded data record; The timestamp binding module associates each piece of data with a timestamp based on the encoded data record, including the association of environmental conditions with growth stage data, uploads it to the blockchain, and generates a timestamp record; The security verification module extracts data from timestamp records, processes each record using a hash function, checks the immutability of each record, verifies the security of each supply chain node, checks the security of data storage and transmission, and generates encrypted privacy data; The data encryption module decrypts the data based on the encrypted privacy data using the associated decryption key, verifies the consistency between the decrypted data and the original data, and generates a data verification result; The data query and analysis module uses blockchain to track and locate the production and distribution process of aquaculture products through data verification results, analyzes the consistency of the process with the preset standard process, and generates a product traceability log.
[0055] The above are only preferred embodiments of the present invention and are not intended to limit the present invention in other forms. Any technician familiar with the profession may use the technical contents disclosed above to change or modify them into equivalent embodiments with equivalent changes and apply them to other fields. However, any simple modification, equivalent change and modification made to the above embodiments based on the technical essence of the present invention without departing from the technical solution of the present invention still falls within the protection scope of the technical solution of the present invention.
Claims
1. A blockchain-based aquaculture product traceability method, characterized in that: The following steps are involved: Collect data on the types, origins and growth cycles of aquaculture products, assign identifiers to each data item, encode the data and associated identifiers into an uploadable format, upload them to the blockchain network through an encrypted channel, and generate encoded data records; Based on the encoded data record, associating a timestamp with the data, including records of farming environmental conditions and growth stages, uploading the information to the blockchain, and creating a timestamp-bound record; According to the timestamp binding record, a hash function is applied to process each record, the immutability of each record is checked, the security of the product supply chain node is verified, and a hash security record is generated; Based on the key information in the hash security record, the information is processed using symmetric encryption technology to check the security and privacy protection of the data during storage and transmission, and generate encrypted privacy data; Decrypt the encrypted private data using the associated decryption key, check the consistency of the decrypted data with the original data, verify the integrity and authenticity of the data, and generate a data verification result; By accessing the data verification results and combining the query function of the blockchain, the production and circulation process of the aquaculture products can be tracked, the consistency of the process with the preset standard process can be analyzed, and a product traceability log can be generated.
2. The blockchain-based aquaculture product traceability method according to claim 1 is characterized in that: The coded data record includes a coded set of the type number, origin code and growth cycle days of the aquaculture product; the timestamp binding record includes a timestamp, ambient temperature, ambient humidity and real-time growth stage; the hash security record includes the result of processing using a hash function and a unique hash value associated with each data record; the encrypted privacy data includes encrypted entries for aquaculture process data, transit node data and product status; the data verification result includes a verification record of decrypting the encrypted privacy data using a decryption key, verifying the consistency of the decrypted data with the original data, and the matching degree of the decrypted data with the original data; the product traceability log includes records of the planting, growth, processing and market circulation of aquaculture products.
3. The blockchain-based aquaculture product traceability method according to claim 1 is characterized in that: Collect data on the type, origin and growth cycle of aquaculture products, assign identifiers to each data item, encode the data and associated identifiers into an uploadable format, and upload them to the blockchain network through an encrypted channel. The specific steps for generating encoded data records are: Collect data on the types, origins and growth cycles of aquaculture products, match associated identifiers for each data item, organize them into key-value pair formats, and generate a data-to-identifier mapping table; Using the data and identifier mapping table, convert each piece of data and identifier into JSON format, check data integrity and verify format consistency, verify that the data item complies with the upload specification, and obtain a format conversion record; Through the format conversion record, an encryption protocol is set and a data upload channel is established, the data is uploaded to the blockchain network through the encrypted channel, and a log of each data upload is recorded to obtain an encoded data record.
4. The blockchain-based aquaculture product traceability method according to claim 1 is characterized in that: Based on the coded data record, the timestamp is associated with the data, including the records of the breeding environment conditions and the growth stage, and the information is uploaded to the blockchain. The steps of creating the timestamp-bound record are as follows: Based on the coded data record, assign a corresponding timestamp to the data, and associate the timestamp with the type, origin and growth cycle information of the aquaculture product to generate a timestamp associated data table; The timestamp-associated data table is used to integrate the data of the breeding environment conditions and the growth stage, a corresponding timestamp is added to each growth stage and environmental condition, the data record is updated to check the integrity of the information, and the environment and stage binding data are obtained; By binding the data with the environment and stage, using the pre-set encryption channel and data upload protocol, the complete timestamp binding data is uploaded to the blockchain network to obtain the timestamp binding record.
5. The blockchain-based aquaculture product traceability method according to claim 1 is characterized in that: According to the timestamp binding record, a hash function is applied to process each record, the immutability of each record is checked, and the security of the product supply chain node is verified. The specific steps of generating a hash security record are: Based on the timestamp binding record, the timestamp, breeding environment conditions and growth stage data in each record are encoded using the SHA256 hash algorithm to generate a hashed data table; Through the hashed data table, each hash record is checked to check the coherence and integrity of the hash value and the consistency of the data point, verify the integrity and tamper-proofness of the data, and obtain a data tamper-proof verification record; The data cannot be tampered with to verify the record, verify the data security of the supply chain nodes, check that the data transmission and storage between nodes are carried out in a secure environment, and generate a hash security record.
6. The blockchain-based aquaculture product traceability method according to claim 5 is characterized in that: The formula for the SHA256 hash algorithm is as follows: in, is the hash value, Representative The value of the data item, Representative The weight coefficient of each data item, Represents the number of data items, is the absolute value function, is the total number of data items.
7. The blockchain-based aquaculture product traceability method according to claim 1, characterized in that: According to the key information in the hash security record, the information is processed using symmetric encryption technology to check the security and privacy protection of the data during storage and transmission. The specific steps for generating encrypted privacy data are as follows: Based on the hash security record, key information related to the aquaculture products is screened, including product type, origin and timestamp, the information is encrypted, the security and integrity of the data during processing are checked, and encrypted key data is generated; By encrypting the key data, setting the security protocol to test the storage and transmission of the data, checking the security and integrity of the data in a differentiated network environment, verifying the confidentiality and tamper-proof capability of the encrypted data, and obtaining a data security verification record; The data security verification record is used to review and verify the privacy protection measures of the data, check that the storage and transmission of encrypted data in the supply chain meet the predetermined security standards, and generate encrypted privacy data.
8. The blockchain-based aquaculture product traceability method according to claim 1, characterized in that: The encrypted private data is decrypted using the associated decryption key, the consistency of the decrypted data with the original data is checked, the integrity and authenticity of the data are verified, and the steps of generating the data verification result are specifically as follows: Based on the encrypted private data, decrypt the data using a pre-assigned decryption key, restore the encrypted information to its original format, and generate a decrypted data table; By comparing the decrypted data with the original data through the decrypted data table, checking the matching degree of the type, origin and timestamp of the aquaculture product, verifying that the data has not been tampered with or damaged during decryption, and obtaining a data consistency record; The data consistency record is used to verify the integrity and authenticity of the data, check the consistency of the data items with the original records, verify the integrity of the data, and generate a data verification result.
9. The blockchain-based aquaculture product traceability method according to claim 1, characterized in that: By accessing the data verification results, combined with the query function of the blockchain, the production and circulation process of the aquaculture products is tracked, and the consistency of the process with the preset standard process is analyzed. The specific steps for generating a product traceability log are as follows: Based on the data verification results, the query function of the blockchain is used to access and collect the production and circulation data of the aquaculture products and generate production and circulation query records; Through the production and circulation query records, the real-time production and circulation history is compared with the preset standard process, the data consistency and deviation are analyzed, the standardization degree and deviation of the process execution are evaluated, and the process consistency analysis record is obtained; The process consistency analysis record is used to analyze the causes of deviations, and the information and key deviation points of multiple links are summarized, combined with timestamp and blockchain technology to generate a product traceability log.
10. A blockchain-based aquaculture product traceability system, characterized in that: According to the blockchain-based aquaculture product traceability method according to any one of claims 1 to 9, the system comprises: The data entry module collects species, origin and growth cycle data, assigns a unique identifier to each data item, converts it into an uploadable format and uploads it to the blockchain through an encrypted channel to generate a coded data record; The timestamp binding module associates each piece of data with a timestamp based on the encoded data record, including the association of environmental conditions with growth stage data, uploads it to the blockchain, and generates a timestamp record; The security verification module extracts data from the timestamp record, processes each record using a hash function, checks the immutability of each record, verifies the security of each supply chain node, checks the security of data storage and transmission, and generates encrypted privacy data; The data encryption module decrypts the data based on the encrypted privacy data using the associated decryption key, verifies the consistency between the decrypted data and the original data, and generates a data verification result; The data query and analysis module uses the data verification results and blockchain to track and locate the production and circulation process of aquaculture products, analyze the consistency of the process with the preset standard process, and generate a product traceability log.
Citation Information
Cited By
Green product authentication and tracing system based on block chain
CN120181875A
Industrial internet encryption method and system based on block chain evidence storage
CN120200830A
An industrial Internet encryption method and system based on blockchain evidence storage
CN120200830B
Aquaculture production process full-cycle tracing management platform based on block chain
CN120373669A
Holothurian culture whole-process traceability method, system and equipment based on block chain technology and medium
CN120387836A