A blockchain traceability method and system for functional egg non-antibiotic production
By using blockchain technology to record and manage multi-source traceability data of functional eggs, generating hash values and digital identity identifiers, the problems of incomplete information and information silos in traditional traceability systems are solved, realizing the traceability of the egg production process and the authenticity of data, and providing a complete life cycle archive.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- TUMUSHUKE CONGYUAN VALLEY AGRI & ANIMAL HUSBANDRY CO LTD
- Filing Date
- 2026-03-05
- Publication Date
- 2026-06-05
AI Technical Summary
In the existing technology, there are trust and traceability challenges in the production and market circulation of antibiotic-free functional eggs. Traditional centralized traceability systems have incomplete information and low credibility. Moreover, the information systems of various parties in the industrial chain are not interconnected, forming information silos and failing to provide a complete life cycle record.
Blockchain technology is used to record multi-source traceability data of the entire chain of functional eggs, generate hash values and digital identity identifiers, and realize data binding and traceability through QR codes. Data management is carried out by combining recording units, crack units, central units, blockchain units and traceability units to ensure data authenticity and integrity.
It enables full traceability of the production process of functional eggs, avoids data tampering, ensures the authenticity and consistency of information, provides a complete life cycle record, and supports consumers' comprehensive understanding of egg information.
Smart Images

Figure CN122155750A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of functional egg production management technology, and more specifically to a blockchain traceability method and system for antibiotic-free production of functional eggs. Background Technology
[0002] With consumers' increasing demand for food safety and nutritional health, the functional egg market is growing rapidly. Meanwhile, antibiotic-free farming, where no antibiotics are used in the breeding process, has become a core quality commitment and a key selling point for high-end poultry egg products. However, the current antibiotic-free production and market distribution of functional eggs face severe challenges in terms of trust and traceability. In terms of information credibility, traditional centralized traceability systems have inherent defects. From feed formula, chick source, breeding process, to egg processing, warehousing and logistics and sales, the information at each stage is mostly recorded and uploaded by the production entity itself. Therefore, the records are incomplete and may be tampered with or forged, so it is impossible to grasp the information about eggs. In terms of supply chain collaboration, functional eggs involve multiple independent entities such as feed suppliers, farms, quarantine agencies, processing plants, logistics providers, and retailers. The information systems of these entities are often not interconnected, forming "information silos." Data is easily distorted, lost, or interrupted during transmission, making it impossible to provide consumers with a complete, coherent, and multi-verified lifecycle profile. Summary of the Invention
[0003] In order to overcome the above-mentioned defects of the prior art, the embodiments of the present invention provide a blockchain traceability method and system for the production of antibiotic-free functional eggs, so as to solve the technical problems mentioned in the background art.
[0004] To achieve the above objectives, the present invention provides the following technical solution: a blockchain traceability method for antibiotic-free production of functional eggs, comprising the following steps: Step S1: Record multi-source traceability data for the entire chain of functional eggs from breeding to sales; Step S2: Generate hash values and digital identity identifiers using multi-source traceability data, and associate the digital identity identifiers with the multi-source traceability data; Step S3: Use blockchain to bind hash values with digital identity identifiers and store all the data; Step S4: Generate a QR code image using the digital identity identifier and record the QR code image on the functional egg packaging box; Step S5: When scanning the QR code, obtain multi-source traceability data of this batch of functional eggs during production from the blockchain and database.
[0005] In a preferred embodiment, a blockchain traceability system for antibiotic-free production of functional eggs includes a recording unit, a crack unit, a central unit, a blockchain unit, a traceability unit, and a quality inspection unit. The recording unit records data information throughout the entire production process of functional eggs. The crack unit records crack data information within the functional eggs. The central unit receives data from the recording unit and the crack unit and generates a hash value and a digital identity identifier. The blockchain unit associates the hash value with the digital identity identifier. The database stores the data information. The traceability unit traces the data information throughout the entire production process of functional eggs. The recording unit includes a breeding module, an environment module, a production module, a logistics module, and a sales module. The breeding module records information on chicken breeds, feed formulations, veterinary drug usage, and drinking water reports. The environment module records temperature, humidity, and ammonia levels within the farm. The production module records the collection time and disinfection information for functional eggs. The logistics module records information on the storage and transportation of functional eggs. The sales module records data on functional eggs sold through distributors and at retail outlets. The recording unit sends the recorded data to the central unit.
[0006] In a preferred embodiment, the crack unit is used to collect crack data information on the surface of functional eggs. The crack unit collects crack data in the production module, logistics module, and sales module within the recording unit. When recording crack data, the crack unit uses a color industrial camera with more than 2 million pixels to identify cracks in functional eggs. The data sent by the recording unit and the crack unit serve as multi-source traceability data for the production of functional eggs.
[0007] In a preferred embodiment, the central unit receives data from the recording unit and data from the crack unit and generates a hash value. When generating a hash value from structured data, the data is converted into the JSON standard format and sorted alphabetically to fix the order. The standardized JSON object is converted into a string, and the string is input into the SHA-256 algorithm to generate a hash value.
[0008] In a preferred embodiment, when the central unit generates a hash value for an unstructured file, it uploads the file to an immutable IPFS off-chain storage system, directly reads the binary stream of the unstructured file, inputs it into the SHA-256 algorithm for calculation, generates a hash value, and the central unit establishes a data passport containing all hash values generated from the same batch of functional eggs. This data passport is calculated into a total hash value and sent to the blockchain unit.
[0009] In a preferred embodiment, the central unit receives data from the recording unit and the crack unit and generates a unique digital identity for each batch of functional eggs. The central unit associates the digital identity with the multi-source traceability data sent by the recording unit and the crack unit. The central unit sends the associated digital identity, multi-source traceability data, and total hash value to the blockchain unit. The blockchain unit binds the total hash value with the digital identity.
[0010] In a preferred embodiment, the blockchain unit is associated with a database, and the blockchain unit stores the bound hash value, digital identity identifier, and multi-source traceability data associated with the digital identity identifier. When the QR code in the traceability unit is scanned, the blockchain unit retrieves the data in the database.
[0011] In a preferred embodiment, the traceability unit generates a URL code for the digital identity identifier within the central unit, and then uses a standard QR code generation library to generate a QR code image using the URL code as input. The QR code images of the same batch are recorded on the functional egg packaging box. Scanning the QR code image on the packaging box will redirect to a query page. The query page first obtains the key hash value of the batch of functional eggs from the blockchain unit, and then retrieves the multi-source traceability data bound to the hash value from the blockchain unit.
[0012] In a preferred embodiment, the quality inspection unit conducts random inspections of all units within the system. The quality inspection unit checks the authenticity of the data recorded in the random inspection record unit, the accuracy of crack identification in the random inspection crack unit, the completeness of the data in the random inspection center unit, the logic of the data in the random inspection blockchain unit, and whether the data in the traceability unit can be traced. Furthermore, if the quality inspection unit finds any violations during random inspections, it will investigate the same batch of functional eggs that were found to be in violation.
[0013] In a preferred embodiment, the quality inspection unit retrieves antibiotic data from the veterinary drug usage record information in the breeding module of the recording unit, and when the quality inspection unit detects that the antibiotic content exceeds the threshold, it directly records the batch of eggs as non-antibiotic-free production.
[0014] The technical effects and advantages of this invention are as follows: This invention records and collects multi-source traceability data from the entire egg production chain, from breeding to sales, resulting in more comprehensive information. It uses multi-source traceability data to generate hash values and digital identity identifiers, and associates the digital identity identifiers with the multi-source traceability data. By setting hash values, data modification can be prevented, improving data authenticity and enabling better control over the data. Blockchain is used to record all information, avoiding information silos. This invention uses five different modules for data recording. The breeding module can monitor the status of laying hens during the egg-laying stage, the environmental unit can monitor the environment within the farm, the production module can monitor the data on egg production, the logistics module can monitor the data on eggs during transportation, and can understand the location of eggs at different stages and their state during storage, while the sales module can monitor the state of eggs when they are sold, ensuring that buyers can understand all the information about the eggs before they are purchased. This invention generates hash values for all data within a recording unit. After generating the hash values, a data passport is used to calculate a total hash value for a unified batch of hash values, thereby improving data transmission. By generating hash values, this application can prevent data from being tampered with, thus ensuring the authenticity of the data. The total hash value is associated with a digital identity identifier, so that data on the production process of eggs can be quickly found when tracing the source. Attached Figure Description
[0015] Figure 1 This is a schematic diagram of the blockchain traceability method of the present invention.
[0016] Figure 2 This is a schematic diagram of the overall system composition of the present invention. Detailed Implementation
[0017] The technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings. In addition, the forms of the various structures described in the following embodiments are merely illustrative. The blockchain traceability method and system for the production of antibiotic-free functional eggs involved in the present invention are not limited to the structures described in the following embodiments. All other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0018] Reference Figure 1 This invention provides a blockchain traceability method for antibiotic-free production of functional eggs, comprising the following steps: Step S1: Record multi-source traceability data for the entire chain of functional eggs from breeding to sales; Step S2: Generate hash values and digital identity identifiers using multi-source traceability data, and associate the digital identity identifiers with the multi-source traceability data; Step S3: Use blockchain to bind hash values with digital identity identifiers and store all the data; Step S4: Generate a QR code image using the digital identity identifier and record the QR code image on the functional egg packaging box; Step S5: When scanning the QR code, obtain multi-source traceability data of this batch of functional eggs during production from the blockchain and database.
[0019] In this embodiment of the application, when producing antibiotic-free functional eggs, the application first records and collects multi-source traceability data of the entire egg production chain from breeding to sales in the production environment. The recorded information is more comprehensive. After collection, hash values and digital identity identifiers are generated using the multi-source traceability data. The digital identity identifiers are associated with the multi-source traceability data. By setting hash values, data modification can be avoided, improving data authenticity and enabling better control over the data. Blockchain is used to record all information, avoiding information silos and enabling more comprehensive traceability of egg production information.
[0020] Reference Figure 2 A blockchain traceability system for antibiotic-free production of functional eggs includes a recording unit, a crack unit, a central unit, a blockchain unit, a traceability unit, and a quality inspection unit. The recording unit records data information throughout the entire production process of functional eggs. The crack unit records crack data information within the functional eggs. The central unit receives data from the recording unit and the crack unit and generates hash values and digital identity identifiers. The blockchain unit associates the hash values with the digital identity identifiers. The database stores the data information. The traceability unit traces the data information throughout the entire production process of functional eggs.
[0021] Reference Figure 2 The recording unit includes a breeding module, an environment module, a production module, a logistics module, and a sales module. The breeding module records information on chicken breeds, feed formulations, veterinary drug usage, and drinking water reports. The environment module records temperature, humidity, and ammonia levels within the farm. The production module records the collection time and disinfection information for functional eggs. The logistics module records information on the storage and transportation of functional eggs. The sales module records data on functional eggs sold through distributors and at retail outlets. The recording unit sends the recorded data to the central unit.
[0022] In this embodiment of the application, five different modules are used for data recording when producing antibiotic-free functional eggs: a breeding module, an environmental module, a production module, a logistics module, and a sales module. The breeding module can monitor the status of laying hens during the egg-laying stage, thus avoiding the addition of antibiotics at this stage. The environmental module can monitor the environment within the farm to prevent egg production from occurring in a polluted environment. The production module monitors egg production data to understand the shelf life of eggs after they are laid. The logistics module monitors data during egg transportation to understand the location of eggs at different stages and their state during storage. The sales module monitors the state of eggs when they are sold, ensuring that buyers can understand all the information about the eggs before they are purchased.
[0023] Reference Figure 2 The crack unit is used to collect crack data information on the surface of functional eggs. The crack unit collects crack data in the production module, logistics module and sales module within the recording unit. When recording crack data, the crack unit uses a color industrial camera with more than 2 million pixels to identify cracks in functional eggs. The data sent by the recording unit and the crack unit serve as multi-source traceability data for the production of functional eggs.
[0024] In this embodiment, eggs may be damaged at any stage of production. Once cracks appear on the surface of an egg, it will spoil in a short time. Eggs are also relatively fragile and therefore more easily damaged. This application records cracks at different stages, so as to know in time at which stage the egg cracks and avoid the situation where adjacent eggs rot because the cracks are not detected.
[0025] Reference Figure 2 The central unit receives data from the recording unit and data from the crack unit and generates hash values. When generating hash values for structured data, the data is converted into JSON standard format and sorted alphabetically to fix the order. The standardized JSON object is converted into a string, which is then input into the SHA-256 algorithm to generate a hash value. When generating hash values for unstructured files, the central unit uploads the file to an immutable IPFS off-chain storage system, directly reads the binary stream of the unstructured file, inputs it into the SHA-256 algorithm for calculation, and generates a hash value. The central unit also creates a data passport containing all hash values generated from the same batch of functional eggs. This data passport is calculated into a total hash value and sent to the blockchain unit.
[0026] In this embodiment, after the recording unit generates various data, it divides them into structured data and unstructured data, and therefore processes them in different ways so that all data can generate hash values. After generating hash values, a data passport is used to calculate a total hash value for a unified batch of hash values, thereby improving data transmission. By generating hash values, this application can prevent data from being tampered with, thereby ensuring the authenticity of the data.
[0027] Reference Figure 2 The central unit receives data from the recording unit and the crack unit and generates a unique digital identity for each batch of functional eggs. The central unit associates the digital identity with the multi-source traceability data sent by the recording unit and the crack unit. The central unit sends the associated digital identity, multi-source traceability data, and total hash value to the blockchain unit. The blockchain unit binds the total hash value with the digital identity and associates it with the database. The blockchain unit stores the bound total hash value, the digital identity, and the multi-source traceability data associated with the digital identity. When scanning the QR code in the traceability unit, the blockchain unit retrieves data from the database.
[0028] In this embodiment, the total hash value of eggs in a unified batch is associated with and bound to a digital identity identifier, and stored in a database. Storing the data in the database reduces the processing frequency of the blockchain, thereby avoiding a heavy burden on the blockchain. Furthermore, by binding the total hash value with the digital identity identifier, the data of the eggs during production can be quickly retrieved when tracing the source.
[0029] Reference Figure 2 The traceability unit generates a URL code from the digital identity identifier within the central unit, and then uses a standard QR code generation library to generate a QR code image with the URL code as input. The QR code images of the same batch are recorded on the functional egg packaging box. Scanning the QR code image on the packaging box will redirect to a query page. The query page first obtains the key hash value of the batch of functional eggs from the blockchain unit, and then retrieves the multi-source traceability data bound to the hash value from the blockchain unit.
[0030] In this embodiment of the application, the digital identity is ultimately converted into a QR code and printed on the packaging box. When the purchaser scans the QR code, they can quickly obtain multi-source traceability data on the antibiotic-free production of this batch of eggs, and the purchaser can understand that the eggs they are buying are functional eggs.
[0031] Referring to the figure, the quality inspection unit conducts random inspections of all units within the system. The quality inspection unit checks the authenticity of the data recorded in the recording unit, the accuracy of crack identification in the crack inspection unit, the completeness of the data in the central unit, the logic of the data in the blockchain unit, and whether the data in the traceability unit is traceable. When the quality inspection unit finds violations during random inspections, it will investigate the same batch of functional eggs that violated the regulations. The quality inspection unit retrieves antibiotic data from the veterinary drug use record information in the breeding module of the recording unit. When the quality inspection unit detects that the antibiotic content exceeds the threshold, it directly records the batch of eggs as non-antibiotic-free production.
[0032] In this embodiment, the quality inspection unit inspects the recording unit, crack unit, central unit, and blockchain unit. When illegal production occurs, it is stopped in time to ensure that the eggs are produced without antibiotics. The quality inspection unit focuses on checking the antibiotic data in the veterinary drug use record information to ensure that it is produced without antibiotics.
[0033] The above embodiments can be implemented, in whole or in part, by software, hardware, firmware, or any other combination thereof. When implemented in software, the above embodiments can be implemented, in whole or in part, as a computer program product. The units and algorithm steps of the various examples described in the embodiments can be implemented in electronic hardware or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0034] In the several embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.
[0035] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
[0036] In conclusion, the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the protection scope of the present invention.
Claims
1. A blockchain-based traceability method for antibiotic-free production of functional eggs, characterized in that: Includes the following steps: Step S1: Record multi-source traceability data for the entire chain of functional eggs from breeding to sales; Step S2: Generate hash values and digital identity identifiers using multi-source traceability data, and associate the digital identity identifiers with the multi-source traceability data; Step S3: Use blockchain to bind hash values with digital identity identifiers and store all the data; Step S4: Generate a QR code image using the digital identity identifier and record the QR code image on the functional egg packaging box; Step S5: When scanning the QR code, obtain multi-source traceability data of this batch of functional eggs during production from the blockchain and database.
2. A blockchain traceability system for antibiotic-free production of functional eggs, employing the blockchain traceability method for antibiotic-free production of functional eggs as described in claim 1, characterized in that: It includes a recording unit, a crack unit, a central unit, a blockchain unit, a traceability unit, and a quality inspection unit. The recording unit is used to record data information of the entire production process of functional eggs. The crack unit is used to record crack data information within functional eggs. The central unit receives data from the recording unit and the crack unit and generates hash values and digital identity identifiers. The blockchain unit is used to associate hash values with digital identity identifiers. The database is used to store data information. The traceability unit is used to trace data information of the entire production process of functional eggs. The recording unit includes a breeding module, an environment module, a production module, a logistics module, and a sales module. The breeding module records information on chicken breeds, feed formulations, veterinary drug usage, and drinking water reports. The environment module records temperature, humidity, and ammonia levels within the farm. The production module records the collection time and disinfection information for functional eggs. The logistics module records information on the storage and transportation of functional eggs. The sales module records data on functional eggs sold through distributors and at retail outlets. The recording unit sends the recorded data to the central unit.
3. The blockchain traceability system for antibiotic-free production of functional eggs according to claim 2, characterized in that: The crack unit is used to collect crack data information on the surface of functional eggs. The crack unit collects crack data in the production module, logistics module and sales module within the recording unit. When recording crack data, the crack unit uses a color industrial camera to identify cracks in functional eggs. The data sent by the recording unit and the crack unit serve as multi-source traceability data for the production of functional eggs.
4. A blockchain traceability system for antibiotic-free production of functional eggs according to claim 3, characterized in that: The central unit receives data from the recording unit and data from the crack unit and generates hash values. When generating hash values from structured data, the data is converted into JSON standard format and sorted alphabetically to fix the order. The standardized JSON object is converted into a string and the string is input into the SHA-256 algorithm to generate hash values.
5. A blockchain traceability system for antibiotic-free production of functional eggs according to claim 4, characterized in that: When the central unit generates a hash value for an unstructured file, it uploads the file to an immutable IPFS off-chain storage system, directly reads the binary stream of the unstructured file, inputs it into the SHA-256 algorithm for calculation, and generates a hash value. The central unit also creates a data passport containing all the hash values generated from the same batch of functional eggs. This data passport is calculated into a total hash value and sent to the blockchain unit.
6. A blockchain traceability system for antibiotic-free production of functional eggs according to claim 2, characterized in that: The central unit receives data from the recording unit and the crack unit and generates a unique digital identity for each batch of functional eggs. The central unit associates the digital identity with the multi-source traceability data sent by the recording unit and the crack unit. The central unit sends the associated digital identity, multi-source traceability data, and total hash value to the blockchain unit. The blockchain unit binds the total hash value with the digital identity.
7. A blockchain traceability system for antibiotic-free production of functional eggs according to claim 6, characterized in that: The blockchain unit is associated with the database, and the blockchain unit stores the bound hash value, digital identity identifier, and multi-source traceability data associated with the digital identity identifier. When the QR code in the traceability unit is scanned, the blockchain unit retrieves the data in the database.
8. A blockchain traceability system for antibiotic-free production of functional eggs according to claim 7, characterized in that: The traceability unit generates a URL code from the digital identity identifier within the central unit, and then uses a standard QR code generation library to generate a QR code image using the URL code as input. The QR code images of the same batch are recorded on the functional egg packaging box. Scanning the QR code image on the packaging box will redirect to a query page. The query page first obtains the key hash value of the batch of functional eggs from the blockchain unit, and then retrieves the multi-source traceability data bound to the hash value from the blockchain unit.
9. A blockchain traceability system for antibiotic-free production of functional eggs according to claim 2, characterized in that: The quality inspection unit conducts random inspections of all units within the system. The quality inspection unit checks the authenticity of the data recorded in the random inspection record unit, the accuracy of crack identification in the random inspection crack unit, the completeness of the data in the random inspection center unit, the logic of the data in the random inspection blockchain unit, and whether the data in the traceability unit can be traced. If any violations are found during the random inspection, the quality inspection unit will investigate the same batch of functional eggs that violated the regulations.
10. A blockchain traceability system for antibiotic-free production of functional eggs according to claim 9, characterized in that: The quality inspection unit retrieves antibiotic data from the veterinary drug usage record information in the breeding module of the recording unit. When the quality inspection unit detects that the antibiotic content exceeds the threshold, it directly records the batch of eggs as non-antibiotic-free production.