Block chain-based anti-counterfeiting traceability system and method

By adopting blockchain technology and QR code tags in the anti-counterfeiting traceability system, the problems of low traceability efficiency and insufficient data security in the existing technology are solved, transparent storage and efficient traceability of participant records are realized, and product traceability is improved accuracy and consumer trust.

CN119067680APending Publication Date: 2024-12-03XIAMEN ANNI ENTERPRISE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411104865.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-13
Publication Date
2024-12-03

AI Technical Summary

Technical Problem

The existing anti-counterfeiting traceability system is inefficient in product traceability at different stages, the participant record information is blurred, and the data storage lacks security, so it is impossible to accurately track the participant record information at each stage.

Method used

Adopt a blockchain-based anti-counterfeiting traceability system, including a traceability platform, business module, blockchain traceability and security module, query and supervision module, and encryption and decryption module, through distributed storage, proof of stake mechanism, smart contract and QR code Tags to enable transparent and secure storage of participant records.

Benefits of technology

It improves the operating efficiency and accuracy of the traceability system, ensures the authenticity of the product, enhances consumer trust, and provides enterprises with safer data management and guarantees.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119067680A_ABST
    Figure CN119067680A_ABST
Patent Text Reader

Abstract

The invention discloses an anti-counterfeiting traceability system and method based on a block chain, and relates to the technical field of product anti-counterfeiting traceability, and the system comprises a business module, a block chain traceability and security module, a query and supervision module, and an encryption and decryption module. Participant records for commercial behaviors of products are obtained through a business module, the participant records are stored based on a set distributed storage subunit in a block chain tracing and security module, and consensus verification is performed on the participant records by adopting a right proving mechanism based on a beacon chain in a constructed block chain beacon chain system; a non-homogeneous token of the product is generated based on a smart contract stored in a main chain in the blockchain beacon chain system, and is randomly stored in any fragment chain in the blockchain beacon chain system, and in a query and supervision module, participant records of the product are determined from a distributed storage subunit based on an obtained uniform resource identifier, and the participant records of the product are stored in the blockchain beacon chain system. And the record of the participant is encrypted and decrypted through the encryption and decryption module.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of product anti-counterfeiting and traceability, and specifically to an anti-counterfeiting and traceability system and method based on blockchain. Background Art

[0002] Blockchain is a distributed database technology that stores data gradually in the form of blocks and uses cryptographic methods to ensure the security and integrity of the data. Each block contains data, timestamp, and hash value of the previous block, forming an unalterable chain. Blockchain uses a decentralized approach to allow data to be stored and verified on multiple nodes in the network without relying on a single centralized management agency. This technology can be used in application scenarios such as securely recording transactions, managing digital assets, and executing smart contracts.

[0003] In the existing anti-counterfeiting traceability system, the anti-counterfeiting traceability efficiency for products at different stages is low, the participant records corresponding to the product participants at different stages are ambiguous, the record information of the participants at each stage cannot be accurately tracked, and the data storage of product traceability lacks security. The above problems are all problems that we urgently need to solve. Summary of the invention

[0004] In order to solve the above problems, the purpose of the present invention is to provide an anti-counterfeiting and traceability system and method based on blockchain.

[0005] The purpose of the present invention can be achieved by the following technical solutions: A blockchain-based anti-counterfeiting traceability system, comprising a traceability platform, wherein the traceability platform is communicatively connected with a business module, a blockchain traceability and security module, a query and supervision module, and an encryption and decryption module;

[0006] The business module is used to obtain participant records of commercial activities for products;

[0007] The blockchain traceability and security module is provided with a distributed storage subunit and a blockchain beacon chain system, which stores participant records based on the distributed storage subunit, and uses a proof-of-stake mechanism to perform consensus verification on participant records based on the beacon chain in the blockchain beacon chain system, and generates a non-homogeneous token of the product based on the smart contract stored in the main chain in the blockchain beacon chain system, and randomly stores it in any shard chain in the blockchain beacon chain system;

[0008] The query and supervision module is used to determine the participant record of the product from the distributed storage subunit based on the acquired uniform resource identifier;

[0009] The encryption and decryption module is used to encrypt and decrypt participant records.

[0010] Furthermore, the process of obtaining records of participants in commercial activities for a product includes:

[0011] Set the business receiving period corresponding to the business module. During the business receiving period, the business module obtains the participant records corresponding to different business behaviors for the product. Different business behaviors include production behaviors, supply behaviors, logistics behaviors, retail behaviors, and consumption behaviors. Different business behaviors correspond to different participants and their corresponding participant records. Participants include manufacturers, suppliers, logistics companies, retailers, and consumers. Participant records include production records, supply records, logistics records, retail records, and consumption records.

[0012] The correspondence between business activities, participants and participant records is as follows:

[0013] Production behavior - manufacturer - production records;

[0014] Supply behavior – suppliers – supply records;

[0015] Logistics activities—Logistics companies—Logistics records;

[0016] Retail Practices—Retailers—Retail Records;

[0017] Consumption behavior—consumers—consumption records.

[0018] Furthermore, the process of building a distributed storage sub-unit and blockchain beacon chain system includes:

[0019] Select a code integration environment and a database editing language. In the corresponding code integration environment, arrange code writers to write corresponding code snippets for the distributed database according to the set requirement documents, and then build an initial distributed database framework. After importing the set database configuration items, generate the corresponding distributed database. The distributed database includes several sub-database areas. The sub-database areas are numbered and recorded as i, i=1, 2, 3, ..., n, where n is a natural number greater than 0, and each sub-database area is regarded as a distributed storage sub-unit.

[0020] The steps of building a blockchain beacon chain system include node construction, smart contract association, test network deployment and security audit. Several beacon chains are generated through node construction. Smart contracts are associated to write smart contracts corresponding to the beacon chains, and the smart contracts are associated and stored in the beacon chains. When several beacon chains are associated with smart contracts, the blockchain beacon chain system is initially established. The blockchain beacon chain system is improved through test network deployment and security audit. A test network is set up and the blockchain beacon chain system is deployed to the test network to verify the function and stability of the blockchain beacon chain system. All relevant codes of the blockchain beacon chain system are deconstructed and obtained. The security level and attack resistance of all relevant codes are obtained through security audit. The code parts whose security level and attack resistance do not meet the preset audit conditions are reprogrammed until the security level and attack resistance of all codes meet the preset audit conditions. The security audit is stopped.

[0021] Furthermore, the process of storing participant records based on the distributed storage subunit includes:

[0022] Obtain the participant records corresponding to all participants, and obtain the storage status corresponding to all distributed storage sub-units. The storage status includes status 1, status 2, and status 3. Status 1 indicates that the storage capacity of the current distributed storage sub-unit is exhausted and cannot continue to store data. Status 2 indicates that the storage capacity of the current distributed storage sub-unit is still surplus and data can continue to be stored. Status 3 indicates that the current distributed storage sub-unit is faulty.

[0023] A storage number corresponding to the participant record of each participant is generated through a random function, and the participant record is stored in the distributed storage sub-unit corresponding to the storage number. If the storage status of the distributed storage sub-unit is state one and state three, the next distributed storage sub-unit is replaced to store the current participant record. If it is state two, it is determined whether the storage capacity of the current distributed storage sub-unit meets the data volume of the entire participant record. If so, it is directly stored. If not, the next distributed storage sub-unit is replaced for storage.

[0024] Furthermore, the process of consensus verification of participant records by the beacon chain in the blockchain beacon chain system using the proof-of-stake mechanism includes:

[0025] All beacon chains corresponding to the blockchain beacon chain system include different types. The types of beacon chains include main chains and sub-chains. Several sub-chains are used as several validators corresponding to consensus verification. Consensus verification is carried out by adopting a proof-of-stake mechanism to obtain the number of ETH initially held by each validator, store the smart contract in the main chain corresponding to the blockchain beacon chain system, and lock the ETH corresponding to each validator in the smart contract of the main chain;

[0026] Set the verification rounds. After each verification round, obtain a participant record for consensus verification. Validators holding different ETH obtain part of the participant record for verification and generate their own verification results. The verification results include verification success and verification failure. The total number of validators is recorded as N. 总 , the corresponding verification result of the verifier is the number of successful verifications is N`, and then the verification rate is obtained, the verification rate is Sc, and Sc=N` / N 总 ;

[0027] Set the pass rate of consensus verification, and record the pass rate as τ. If Sc≥τ, it means that the consensus verification of the current participant record has passed. If Sc<τ, it means that the consensus verification of the current participant record has not passed. Repeat the corresponding operations of the above consensus verification until several participant records have completed the corresponding consensus verification.

[0028] Furthermore, the process of generating a non-homogeneous token of a product based on the smart contract stored in the main chain of the blockchain beacon chain system and randomly storing it in any shard chain in the blockchain beacon chain system includes:

[0029] Obtain the smart contract stored in the main chain of the blockchain beacon chain system. The smart contract defines the traceability information of the business behaviors of different participants recorded by each participant. The traceability information includes the traceability time, behavior content, and external input information;

[0030] The traceability information corresponding to each participant's record is used as the non-fungible token corresponding to each participant, and the non-fungible token is randomly stored in any sub-chain corresponding to the blockchain beacon chain system. The content of random storage of non-fungible tokens is: the non-fungible token is first stored in any sub-chain, and a transfer cycle is set. After each transfer cycle, the non-fungible token is transferred to another sub-chain.

[0031] Further, the process of determining the participant record of the product from the distributed storage subunit based on the uniform resource identifier includes:

[0032] Each participant record stored in the distributed storage subunit is associated with a unique URI identifier. The URI identifier includes a uniform resource locator and a uniform resource name, which are marked as URL and URN respectively. The URL and URN are summarized as the uniform resource identifier of each participant record and used as the retrieval key value of the distributed storage subunit.

[0033] A retrieval program is set up to retrieve participant records stored in several distributed storage sub-units, and the uniform resource identifier corresponding to the participant record to be accessed is input, and the uniform resource identifier is compared with the retrieval key value corresponding to each distributed storage sub-unit in turn, and the participant record in the distributed storage sub-unit where the uniform resource identifier and the retrieval key value are consistent is used as the target retrieval record, thereby determining the participant record corresponding to the product.

[0034] Furthermore, the process of encrypting and decrypting participant records includes:

[0035] A QR code program is set up to generate a corresponding anti-counterfeiting and traceability QR code for each participant record. The QR code program pre-enters a QR code label, which is a blank label. When the QR code program receives the participant record, it converts the participant record into corresponding QR code distribution data;

[0036] The two-dimensional code distribution data includes the area and distribution position of a plurality of image dot matrices, the two-dimensional code distribution data is topologically mapped onto a two-dimensional code label on a blank label, and the two-dimensional code label is printed and produced by a printing device, and in the printing link corresponding to the printing device, the two-dimensional code pattern corresponding to the two-dimensional code label is encrypted by an encrypted two-dimensional code recognition algorithm, and the encrypted two-dimensional code pattern is stored in the set cloud platform;

[0037] When the authenticity of the corresponding QR code label needs to be verified, the auditor is arranged to scan and enter the current QR code label through the scanning device equipped by himself, and upload the scanned and entered QR code pattern to the cloud platform. The QR code pattern is decrypted by decrypting the encrypted QR code recognition algorithm, and it is determined whether the decrypted QR code pattern is any QR code pattern stored in the cloud platform. If so, the current QR code label is an anti-counterfeiting and traceability QR code, if not, it is not.

[0038] Furthermore, an anti-counterfeiting traceability method of an anti-counterfeiting traceability system based on blockchain includes the following steps:

[0039] Step S1: Obtain participant records of commercial activities for a product;

[0040] Step S2: The participant records are stored based on the distributed storage sub-unit, and the participant records are verified by consensus using the proof-of-stake mechanism based on the beacon chain in the blockchain beacon chain system. The non-homogeneous token of the product is generated based on the smart contract stored in the main chain in the blockchain beacon chain system, and randomly stored in any shard chain in the blockchain beacon chain system.

[0041] Step S3: determining a participant record of the product from the distributed storage subunit based on the uniform resource identifier;

[0042] Step S4: Encrypt and decrypt participant records.

[0043] Compared with the prior art, the beneficial effects of the present invention are: by realizing distributed storage, proof of equity, smart contracts and encrypting participant records by means of QR code labels, the goals of product anti-counterfeiting traceability, transparent and secure storage of participant records are achieved, the operating efficiency of the traceability system is improved, the accuracy of product traceability is improved, it helps to ensure the authenticity of the product, and improve consumer trust, while also providing more data support and security guarantees for enterprise management. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] Figure 1 It is a schematic diagram of the present invention. DETAILED DESCRIPTION

[0045] like Figure 1 As shown, a blockchain-based anti-counterfeiting traceability system includes a traceability platform, which is communicatively connected to a business module, a blockchain traceability and security module, a query and supervision module, and an encryption and decryption module;

[0046] The business module is used to obtain participant records of commercial activities for products;

[0047] The blockchain traceability and security module is provided with a distributed storage subunit and a blockchain beacon chain system, which stores participant records based on the distributed storage subunit, and uses a proof-of-stake mechanism to perform consensus verification on participant records based on the beacon chain in the blockchain beacon chain system, and generates a non-homogeneous token of the product based on the smart contract stored in the main chain in the blockchain beacon chain system, and randomly stores it in any shard chain in the blockchain beacon chain system;

[0048] The query and supervision module is used to determine the participant record of the product from the distributed storage subunit based on the acquired uniform resource identifier;

[0049] The encryption and decryption module is used to encrypt and decrypt participant records.

[0050] It should be further explained that, in a specific implementation process, the process of the business module obtaining the participant records of the commercial behavior for the product includes:

[0051] Set the service receiving period corresponding to the service module, and record the service receiving period as T 接收 , there is T 接收 =[t1, t2], where t1 is the start time of the service receiving period, and t2 is the end time of the service receiving period;

[0052] During the business receiving period, the business module obtains participant records corresponding to different business behaviors for the product, wherein the different business behaviors include production behavior, supply behavior, logistics behavior, retail behavior, and consumption behavior;

[0053] Different business behaviors correspond to different participants and their corresponding participant records. The participants include manufacturers, suppliers, logistics companies, retailers and consumers. The participant records include production records, supply records, logistics records, retail records and consumption records.

[0054] The correspondence between business activities, participants and participant records is as follows:

[0055] Production behavior - manufacturer - production records, the content of which includes production time, production location, production process and source of raw materials;

[0056] Supply behavior - supplier - supply record, the content of which includes supply time, supply quantity and quality inspection report;

[0057] Logistics behavior - logistics company - logistics records. The content of logistics records includes transportation routes, transportation time and transportation nodes;

[0058] Retail activities - retailers - retail records, including sales time, sales location and inventory management;

[0059] Consumption behavior - consumers - consumption records. The content of consumption records includes consumers’ purchase and use of products, and their feedback and usage are also part of the consumption records.

[0060] It should be further explained that, in the specific implementation process, the process of constructing the distributed storage sub-unit and blockchain beacon chain system includes:

[0061] Select a code integration environment and a corresponding database editing language. In the corresponding code integration environment, arrange code writers to write corresponding code snippets for the distributed database according to the set requirement documents, and then build the initial distributed database framework.

[0062] After the distributed database framework imports the set database configuration items, a corresponding distributed database is generated, and a server and a network are linked for the distributed database, wherein the distributed database includes a plurality of sub-database areas;

[0063] The sub-database areas are numbered and recorded as i, i=1, 2, 3, ..., n, where n is a natural number greater than 0, each sub-database area is regarded as a distributed storage sub-unit, and the number i is used as the identity authentication identifier of the distributed storage sub-unit;

[0064] The steps to build a blockchain beacon chain system include node construction, smart contract association, test network deployment, and security audit;

[0065] The content of node construction is: set up a validator node and several beacon nodes, connect all beacon nodes in the same group, and then generate several corresponding beacon chains. The validator node is used to verify the data on the beacon chain;

[0066] The contents of smart contract association are: choose Solidity development language to write the smart contract corresponding to the beacon chain, and store the smart contract in the corresponding beacon chain. Smart contracts include beacon contracts and reward contracts. Smart contracts define the core logic and core rules of the beacon chain.

[0067] When several beacon chains are associated with smart contracts, it means that the blockchain beacon chain system has been initially established. Next, the blockchain beacon chain system will be improved through test network deployment and security audit to obtain the final blockchain beacon chain system.

[0068] The content of the test network deployment is: setting up a test network, deploying the blockchain beacon chain system to the test network, and then verifying the function and stability of the blockchain beacon chain system to ensure its stable operation;

[0069] The content of the security audit is: deconstruct and obtain all relevant codes of the blockchain beacon chain system, obtain the security level and attack resistance of all relevant codes through security audit, reprogram the code parts with lower security level and attack resistance, and stop the security audit until the security level and attack resistance of all codes meet the preset audit conditions.

[0070] It should be further explained that, in the specific implementation process, the process of storing participant records based on the distributed storage sub-unit includes:

[0071] Obtaining participant records corresponding to all participants, and obtaining storage states corresponding to all distributed storage subunits, wherein the storage states include state 1, state 2, and state 3;

[0072] Among them, state 1 means that the storage capacity of the current distributed storage subunit is exhausted and can no longer be stored; state 2 means that the storage capacity of the current distributed storage subunit is still surplus and data can continue to be stored; state 3 means that the current distributed storage subunit is faulty and relevant personnel need to be contacted for maintenance;

[0073] A storage number for the participant record corresponding to each participant is generated through a random function, and the participant record is stored in the distributed storage subunit corresponding to the storage number. If the storage status of the distributed storage subunit is state one or state three, the next distributed storage subunit is replaced to store the current participant record. If it is state two, determine whether the storage capacity of the current distributed storage subunit meets the data volume of the entire participant record. If so, store it directly. If not, continue to replace the next distributed storage subunit for storage.

[0074] It should be further explained that in the specific implementation process, the process of consensus verification of participant records by the beacon chain in the blockchain beacon chain system using the proof-of-stake mechanism includes:

[0075] All beacon chains corresponding to the blockchain beacon chain system include different types, and the types of beacon chains include main chains and sub-chains, wherein the number of main chains is 1, and the number of sub-chains is several, and the several sub-chains are used as several validators corresponding to the consensus verification;

[0076] The consensus verification is carried out by adopting the proof-of-stake mechanism, obtaining the number of ETH initially held by each validator, storing the smart contract in the main chain corresponding to the blockchain beacon chain system, and locking the ETH corresponding to each validator in the smart contract of the main chain;

[0077] Set the verification rounds. After each verification round, obtain a participant record for consensus verification. Validators holding different ETH obtain part of the participant record for verification and generate their own verification results. The verification results include verification success and verification failure. The total number of validators is N. 总 , the corresponding verification result of the verifier is the number of successful verifications is N`, and then the verification rate is obtained, the verification rate is Sc, and Sc=N` / N 总 ;

[0078] Set the pass rate of consensus verification, and record the pass rate as τ. If Sc≥τ, it means that the consensus verification of the current participant record has passed. If Sc<τ, it means that the consensus verification of the current participant record has not passed. Repeat the above consensus verification operations until several participant records have completed the corresponding consensus verification;

[0079] It should be noted that the smart contracts of the blockchain beacon chain system are run based on the virtual machines deployed by the blockchain. The execution of smart contracts requires a certain amount of computing fees, which are used to measure and pay for the computing resource consumption of smart contracts.

[0080] It should be further explained that, in the specific implementation process, the process of generating non-homogeneous tokens of products based on the smart contract stored in the main chain of the blockchain beacon chain system and randomly storing them in any shard chain in the blockchain beacon chain system includes:

[0081] Obtain the smart contract stored in the main chain of the blockchain beacon chain system. The smart contract defines the traceability information of the business behaviors of different participants recorded by each participant. The traceability information includes the traceability time, behavior content, and external input information;

[0082] The traceability information corresponding to each participant's record is used as the non-fungible token corresponding to each participant, and the non-fungible token is randomly stored in any sub-chain corresponding to the blockchain beacon chain system. The content of random storage of non-fungible tokens is: the non-fungible token is first stored in any sub-chain, and a transfer cycle is set. After each transfer cycle, the non-fungible token is transferred to another sub-chain.

[0083] It should be further explained that, in a specific implementation process, the process of determining the participant record of a product from the distributed storage subunit based on the uniform resource identifier includes:

[0084] Each participant record stored in the distributed storage subunit is associated with a unique URI identifier, which includes a uniform resource locator and a uniform resource name, which are marked as URL and URN respectively. The URL and URN are aggregated as the uniform resource identifier of each participant record and used as the retrieval key value of the distributed storage subunit;

[0085] A retrieval program is set up, and the retrieval program is used to retrieve participant records stored in several distributed storage sub-units. The uniform resource identifier corresponding to the participant record to be accessed is input, and the uniform resource identifier is compared with the retrieval key value corresponding to each distributed storage sub-unit in turn. The participant record in the distributed storage sub-unit where the uniform resource identifier and the retrieval key value are consistent is used as the target retrieval record, that is, the required participant record that can determine the product is located.

[0086] It should be further explained that, in the specific implementation process, the process of encrypting and decrypting participant records includes:

[0087] A QR code program is set up, and the QR code program is used to generate a corresponding anti-counterfeiting and traceability QR code for each participant record. The QR code program pre-enters a QR code label, and the QR code label is a blank label. When the QR code program receives the participant record, it converts the participant record into corresponding QR code distribution data;

[0088] The two-dimensional code distribution data includes the area and distribution position of a plurality of image dot matrices, the two-dimensional code distribution data is topologically mapped onto a two-dimensional code label on a blank label, and the two-dimensional code label is printed and produced by a printing device, and in the printing link corresponding to the printing device, the two-dimensional code pattern corresponding to the two-dimensional code label is encrypted by an encrypted two-dimensional code recognition algorithm, and the encrypted two-dimensional code pattern is stored in the set cloud platform;

[0089] When the authenticity of the corresponding QR code label needs to be verified, the auditor is arranged to scan and enter the current QR code label through the scanning device equipped by himself, and upload the scanned and entered QR code pattern to the cloud platform. The QR code pattern is decrypted by decrypting the encrypted QR code recognition algorithm, and it is determined whether the decrypted QR code pattern is any QR code pattern stored in the cloud platform. If so, the current QR code label is an anti-counterfeiting and traceability QR code, if not, it is not.

[0090] It should be noted that all participant records are input into the set MES management system, and the MES management system provides visual management of the entire participant records, including work equipment management, procurement management, cost management, generation process control, planning and scheduling management, and project kanban management.

[0091] The present invention also discloses an anti-counterfeiting traceability method of an anti-counterfeiting traceability system based on blockchain, comprising the following steps:

[0092] Step S1: Obtain participant records of commercial activities for a product;

[0093] Step S2: The participant records are stored based on the distributed storage sub-unit, and the participant records are verified by consensus using the proof-of-stake mechanism based on the beacon chain in the blockchain beacon chain system. The non-homogeneous token of the product is generated based on the smart contract stored in the main chain in the blockchain beacon chain system, and randomly stored in any shard chain in the blockchain beacon chain system.

[0094] Step S3: determining a participant record of the product from the distributed storage subunit based on the uniform resource identifier;

[0095] Step S4: Encrypt and decrypt participant records.

[0096] The above embodiments are only used to illustrate the technical method of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical method of the present invention may be modified or replaced by equivalents without departing from the spirit and scope of the technical method of the present invention.

Claims

1. A blockchain-based anti-counterfeiting traceability system, including a traceability platform, characterized in that: The traceability platform is communicatively connected with a business module, a blockchain traceability and security module, a query and supervision module, and an encryption and decryption module; The business module is used to obtain participant records of commercial activities for products; The blockchain traceability and security module is provided with a distributed storage subunit and a blockchain beacon chain system, which stores participant records based on the distributed storage subunit, and uses a proof-of-stake mechanism to perform consensus verification on participant records based on the beacon chain in the blockchain beacon chain system, and generates a non-homogeneous token of the product based on the smart contract stored in the main chain in the blockchain beacon chain system, and randomly stores it in any shard chain in the blockchain beacon chain system; The query and supervision module is used to determine the participant record of the product from the distributed storage subunit based on the acquired uniform resource identifier; The encryption and decryption module is used to encrypt and decrypt participant records.

2. According to the blockchain-based anti-counterfeiting traceability system of claim 1, it is characterized in that: The process of obtaining records of participants in commercial activities for a product includes: Set the business receiving period corresponding to the business module. During the business receiving period, the business module obtains the participant records corresponding to different business behaviors for the product. Different business behaviors include production behaviors, supply behaviors, logistics behaviors, retail behaviors, and consumption behaviors. Different business behaviors correspond to different participants and their corresponding participant records. Participants include manufacturers, suppliers, logistics companies, retailers, and consumers. Participant records include production records, supply records, logistics records, retail records, and consumption records. The correspondence between business activities, participants and participant records is as follows: Production behavior - manufacturer - production records; Supply behavior – suppliers – supply records; Logistics activities—Logistics companies—Logistics records; Retail Practices—Retailers—Retail Records; Consumption behavior—consumers—consumption records.

3. According to claim 2, the anti-counterfeiting and traceability system based on blockchain is characterized in that: The process of building a distributed storage sub-unit and blockchain beacon chain system includes: Select a code integration environment and a database editing language. In the corresponding code integration environment, arrange code writers to write corresponding code snippets for the distributed database according to the set requirement documents, and then build an initial distributed database framework. After importing the set database configuration items, generate the corresponding distributed database. The distributed database includes several sub-database areas. The sub-database areas are numbered and recorded as i, i=1, 2, 3, ..., n, where n is a natural number greater than 0, and each sub-database area is regarded as a distributed storage sub-unit. The steps of building a blockchain beacon chain system include node construction, smart contract association, test network deployment and security audit. Several beacon chains are generated through node construction. Smart contracts are associated to write smart contracts corresponding to the beacon chains, and the smart contracts are associated and stored in the beacon chains. When several beacon chains are associated with smart contracts, the blockchain beacon chain system is initially established. The blockchain beacon chain system is improved through test network deployment and security audit. A test network is set up and the blockchain beacon chain system is deployed to the test network to verify the function and stability of the blockchain beacon chain system. All relevant codes of the blockchain beacon chain system are deconstructed and obtained. The security level and attack resistance of all relevant codes are obtained through security audit. The code parts whose security level and attack resistance do not meet the preset audit conditions are reprogrammed until the security level and attack resistance of all codes meet the preset audit conditions. The security audit is stopped.

4. According to claim 3, the anti-counterfeiting and traceability system based on blockchain is characterized in that: The process of storing participant records based on the distributed storage subunit includes: Obtain the participant records corresponding to all participants, and obtain the storage status corresponding to all distributed storage sub-units. The storage status includes status 1, status 2, and status 3. Status 1 indicates that the storage capacity of the current distributed storage sub-unit is exhausted and cannot continue to store data. Status 2 indicates that the storage capacity of the current distributed storage sub-unit is still surplus and data can continue to be stored. Status 3 indicates that the current distributed storage sub-unit is faulty. A storage number corresponding to the participant record of each participant is generated through a random function, and the participant record is stored in the distributed storage sub-unit corresponding to the storage number. If the storage status of the distributed storage sub-unit is state one and state three, the next distributed storage sub-unit is replaced to store the current participant record. If it is state two, it is determined whether the storage capacity of the current distributed storage sub-unit meets the data volume of the entire participant record. If so, it is directly stored. If not, the next distributed storage sub-unit is replaced for storage.

5. According to the blockchain-based anti-counterfeiting and traceability system of claim 4, it is characterized in that: The process of consensus verification of participant records using the proof-of-stake mechanism by the beacon chain in the blockchain beacon chain system includes: All beacon chains corresponding to the blockchain beacon chain system include different types. The types of beacon chains include main chains and sub-chains. Several sub-chains are used as several validators corresponding to consensus verification. Consensus verification is carried out by adopting a proof-of-stake mechanism to obtain the number of ETH initially held by each validator, store the smart contract in the main chain corresponding to the blockchain beacon chain system, and lock the ETH corresponding to each validator in the smart contract of the main chain; Set the verification rounds. After each verification round, obtain a participant record for consensus verification. Validators holding different ETH obtain part of the participant record for verification and generate their own verification results. The verification results include verification success and verification failure. The total number of validators is recorded as N. 总 , the corresponding verification result of the verifier is the number of successful verifications is N`, and then the verification rate is obtained, the verification rate is Sc, and Sc=N` / N 总 ; Set the pass rate of consensus verification, and record the pass rate as τ. If Sc≥τ, it means that the consensus verification of the current participant record has passed. If Sc<τ, it means that the consensus verification of the current participant record has not passed. Repeat the corresponding operations of the above consensus verification until several participant records have completed the corresponding consensus verification.

6. According to claim 5, the anti-counterfeiting and traceability system based on blockchain is characterized in that: The process of generating a non-homogeneous token of a product based on the smart contract stored in the main chain of the blockchain beacon chain system and randomly storing it in any shard chain in the blockchain beacon chain system includes: Obtain the smart contract stored in the main chain of the blockchain beacon chain system. The smart contract defines the traceability information of the business behaviors of different participants recorded by each participant. The traceability information includes the traceability time, behavior content, and external input information; The traceability information corresponding to each participant's record is used as the non-fungible token corresponding to each participant, and the non-fungible token is randomly stored in any sub-chain corresponding to the blockchain beacon chain system. The content of random storage of non-fungible tokens is: the non-fungible token is first stored in any sub-chain, and a transfer cycle is set. After each transfer cycle, the non-fungible token is transferred to another sub-chain.

7. The blockchain-based anti-counterfeiting and traceability system according to claim 6 is characterized in that: The process of determining the participant record of a product from the distributed storage subunit based on the uniform resource identifier includes: Each participant record stored in the distributed storage subunit is associated with a unique URI identifier. The URI identifier includes a uniform resource locator and a uniform resource name, which are marked as URL and URN respectively. The URL and URN are summarized as the uniform resource identifier of each participant record and used as the retrieval key value of the distributed storage subunit. A retrieval program is set up to retrieve participant records stored in several distributed storage sub-units, and the uniform resource identifier corresponding to the participant record to be accessed is input, and the uniform resource identifier is compared with the retrieval key value corresponding to each distributed storage sub-unit in turn, and the participant record in the distributed storage sub-unit where the uniform resource identifier and the retrieval key value are consistent is used as the target retrieval record, thereby determining the participant record corresponding to the product.

8. The blockchain-based anti-counterfeiting and traceability system according to claim 7 is characterized in that: The process for encrypting and decrypting participant records includes: A QR code program is set up to generate a corresponding anti-counterfeiting and traceability QR code for each participant record. The QR code program pre-enters a QR code label, which is a blank label. When the QR code program receives the participant record, it converts the participant record into corresponding QR code distribution data; The two-dimensional code distribution data includes the area and distribution position of a plurality of image dot matrices, the two-dimensional code distribution data is topologically mapped onto a two-dimensional code label on a blank label, and the two-dimensional code label is printed and produced by a printing device, and in the printing link corresponding to the printing device, the two-dimensional code pattern corresponding to the two-dimensional code label is encrypted by an encrypted two-dimensional code recognition algorithm, and the encrypted two-dimensional code pattern is stored in the set cloud platform; When the authenticity of the corresponding QR code label needs to be verified, the auditor is arranged to scan and enter the current QR code label through the scanning device equipped by himself, and upload the scanned and entered QR code pattern to the cloud platform. The QR code pattern is decrypted by decrypting the encrypted QR code recognition algorithm, and it is determined whether the decrypted QR code pattern is any QR code pattern stored in the cloud platform. If so, the current QR code label is an anti-counterfeiting and traceability QR code, if not, it is not.

9. The anti-counterfeiting traceability method of the blockchain-based anti-counterfeiting traceability system according to any one of claims 1 to 8, characterized in that: The following steps are involved: Step S1: Obtain participant records of commercial activities for a product; Step S2: The participant records are stored based on the distributed storage sub-unit, and the participant records are verified by consensus using the proof-of-stake mechanism based on the beacon chain in the blockchain beacon chain system. The non-homogeneous token of the product is generated based on the smart contract stored in the main chain in the blockchain beacon chain system, and randomly stored in any shard chain in the blockchain beacon chain system. Step S3: determining a participant record of the product from the distributed storage subunit based on the uniform resource identifier; Step S4: Encrypt and decrypt participant records.