Anti-counterfeiting traceability system and anti-counterfeiting method based on electronic tag

By integrating physical non-cloneable functions and blockchain technology on electronic tags and readers, combining non-cloneable electronic tag protocols and internal databases, the problem of insufficient data security in the existing technology is solved, and efficient data management is achieved and Access control enhances the security and transparency of the anti-counterfeiting traceability system.

CN118967159APending Publication Date: 2024-11-15王程
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202411035957.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-31
Publication Date
2024-11-15

AI Technical Summary

Technical Problem

The existing anti-counterfeiting traceability technology based on electronic tags has shortcomings in data security and privacy protection, resulting in a reduction in the security of the anti-counterfeiting traceability system and facing the risks of data attacks and tampering.

Method used

Designing the non-clone electronic tag protocol by integrating physical non-clone functions on electronic tags and readers, and combining internal databases and blockchains to realize data security management and access control, ensuring the security and integrity of data transmission, while also passing the Smart contracts perform access control to improve system security.

Benefits of technology

It improves data security during the electronic tag certification process, enhances the security of the anti-counterfeiting traceability system, reduces the risk of data tampering, and improves the identification ability of counterfeit and shoddy products and supply chain transparency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118967159A_ABST
    Figure CN118967159A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of anti-counterfeiting traceability, in particular to an anti-counterfeiting traceability system and method based on an electronic tag, and the method comprises the steps: firstly, integrating a physical unclonable function on the electronic tag and a reader to design an electronic tag protocol, and improving the safety of the electronic tag; secondly, data management is performed through combination of an internal database and a block chain, so that the transparency of a supply chain is improved while the data storage security is guaranteed; then, the authenticity of the product is effectively verified and the source of the product is tracked through the electronic tag and the block chain based on the physical unclonable function, an electronic tag certificate and a product ownership certificate are obtained, and more detailed product information is inquired by accessing an internal database through the certificates, so that the identification capability of shoddy products is improved; and finally, meticulous internal database access authority management is realized through attribute-based access control, so that the security of the system is enhanced. According to the invention, by enhancing data protection, a safe and reliable product anti-counterfeiting traceability technology is realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of anti-counterfeiting and tracing technology, and in particular to an anti-counterfeiting and tracing system and an anti-counterfeiting method based on electronic tags. Background Art

[0002] Electronic tags, also known as radio frequency tags, are the carriers of radio frequency identification (RFID) technology. They use radio frequency signals to achieve target identification and data exchange, and are widely used in logistics, retail, medical and other industries. In the specific field of anti-counterfeiting and traceability, electronic tags have become a key technical solution due to their unique advantages. Electronic tags not only have unique identification codes that are difficult to copy or tamper with, but also support wireless and fast reading without physical contact or visual inspection, greatly improving operational efficiency.

[0003] Although electronic tags have great potential in the field of anti-counterfeiting and traceability, the anti-counterfeiting and traceability technology based on electronic tags still has some limitations. For example, the Chinese patent with publication number CN116596017A discloses an anti-counterfeiting and traceability system and anti-counterfeiting method based on electronic tags, including a processor, a label preparation module, a data access module, a key management module and a user transceiver module. The system encodes and encrypts the product production and logistics process by generating a uniquely coded electronic tag to ensure the security and anti-counterfeiting ability of product information; the Chinese patent with publication number CN111639729A proposes an anti-counterfeiting and traceability method based on RFID and blockchain, which obtains its unique identity tag by reading the RFID tag of the target item. The TID of the identification and label is then encrypted to generate a public key, which is associated with the on-chain identity on the blockchain. By querying and verifying the anti-counterfeiting traceability information in the blockchain, including the on-chain identity and related public keys, the authenticity of the item and the transparency of the circulation process are ensured; the Chinese patent with publication number CN112801677A discloses an anti-counterfeiting traceability method based on electronic tags, firstly writing a unique identification code in the radio frequency chip, which is readable inside the chip but not readable and writable by external software and hardware, and then the radio frequency chip itself is used for secondary calculation to obtain the label identity code formed after secondary deformation, so that the label identity code cannot be reversibly calculated or decrypted, and finally the product anti-counterfeiting traceability information is checked through the radio frequency verification terminal. The above-mentioned prior art has significant advantages in anti-counterfeiting traceability, but does not pay enough attention to the issues of data security and privacy protection. It may still face the risk of being attacked and tampered during data transmission and storage, resulting in reduced security of the anti-counterfeiting traceability system.

[0004] Therefore, an anti-counterfeiting traceability system and an anti-counterfeiting method based on electronic tags are proposed. Summary of the invention

[0005] The purpose of the present invention is to provide an anti-counterfeiting and traceability system and anti-counterfeiting method based on electronic tags. By integrating a physical unclonable function on the electronic tag and the reader to design an unclonable electronic tag protocol, the data security in the electronic tag authentication process is improved; a data management method combining an internal database and a blockchain is adopted to ensure data storage security while improving supply chain transparency; through electronic tags based on physical unclonable functions and blockchain technology, the authenticity of products is effectively verified and the source of products is tracked, electronic tag certificates and product ownership certificates are obtained, and more detailed product information is queried through the internal database through the certificates, thereby improving the ability to identify counterfeit and inferior products; finally, detailed internal database access rights management is achieved through attribute-based access control to enhance the security of the system.

[0006] To achieve the above object, the present invention provides the following technical solutions:

[0007] An anti-counterfeiting and traceability system based on electronic tags, comprising a tag initialization module, a data management module, an anti-counterfeiting and traceability module and an access control module;

[0008] The tag initialization module is used to assign an unclonable electronic tag to each product and encode product related information in the unclonable electronic tag; the unclonable electronic tag is verified by an unclonable reader; the unclonable electronic tag and the unclonable reader are generated by embedding a physical unclonable function into the electronic tag and the reader; the physical unclonable function is used to design an unclonable electronic tag protocol; the unclonable electronic tag protocol ensures data security by performing encryption calculations on the different physical unclonable functions at both ends of the unclonable electronic tag and the unclonable reader;

[0009] The data management module includes an internal database and a blockchain; wherein the internal database is used to store sensitive data such as the unclonable electronic tag and the unclonable reader related data, product production data and user information; and the blockchain is used to manage product transaction circulation records and deploy smart contracts;

[0010] The anti-counterfeiting traceability module is used to verify product authenticity and query product sources;

[0011] The access control module is used to implement access control to the internal database; the access control module includes a policy management submodule, a policy execution submodule and a policy decision submodule; the submodules are implemented using the smart contract.

[0012] Preferably, the non-clonable electronic tag protocol includes an initialization phase and an authentication phase;

[0013] The specific steps of the initialization phase include:

[0014] Generate shared keys S1 and S2; the shared keys are shared by all the non-clonable readers and the non-clonable electronic tags in the system;

[0015] Select four reader random values ​​a, b, d and e and calculate two reader keys using the formula:

[0016]

[0017] Among them, P R (·) represents the physical unclonable function embedded in each of the unclonable readers; c and f represent the reader keys;

[0018] storing the reader random value and the reader key in the internal database;

[0019] Select four random label values ​​u, v, x and y and calculate two label keys. The calculation formula is:

[0020]

[0021] Among them, P T (·) represents the physical unclonable function embedded in each unclonable electronic tag; w and z represent the tag key;

[0022] storing the tag random value and the tag key in the internal database;

[0023] Preferably, the specific steps of the authentication stage include:

[0024] Generate reader temporary random values ​​r1 and r2 and calculate reader first message;

[0025] Sending the reader first message to the non-clonable electronic tag;

[0026] Generate a label temporary random value r3 and calculate the label second message, the label third message and the label fourth message;

[0027] sending the tag second message, the tag third message and the tag fourth message to the non-clonable reader;

[0028] Calculate a reader second message according to the tag second message, the tag third message and the tag fourth message;

[0029] The reader's second message is compared with the tag's second message for verification, and if they are the same, the tag authentication is successful.

[0030] Preferably, the reader first message calculation step includes:

[0031] Calculate the reader first message initial value:

[0032]

[0033] After the calculation is completed, delete P R (a) and P R (r1);

[0034] Update the reader with the first message:

[0035]

[0036] After the calculation is completed, delete P R (b) and P R (r2);

[0037] Calculate the final result of the reader first message:

[0038]

[0039] Preferably, the steps of calculating the second label message, the third label message and the fourth label message include:

[0040] Calculate the initial value of the tag fourth message:

[0041]

[0042] Calculate the first temporary key k1:

[0043]

[0044] After the calculation is completed, delete r3 and P T (x), P T (u) and P T (y);

[0045] Calculate the second temporary key k2:

[0046] k2=H(k1,1,2);

[0047] Where H(·) represents a hash function;

[0048] Calculate the tag for the second message:

[0049]

[0050] Calculate the tag for the third message:

[0051]

[0052] Wherein, ID represents the unique identification of the electronic tag;

[0053] Update the label of the fourth message:

[0054]

[0055] Calculate the final result of the fourth message of the tag:

[0056]

[0057] Preferably, the reader specifically calculates the second message including:

[0058] Calculate the reader's fourth message:

[0059]

[0060] After the calculation is completed, delete P R (d) P R (r1),P R (e) and P R (r2);

[0061] Recover the first temporary key:

[0062]

[0063] Restore the unique identifier of the electronic tag:

[0064]

[0065] Calculate the reader second message:

[0066]

[0067] During the authentication process of the unclonable electronic tag protocol, it is necessary to delete the temporarily generated random value and the physical unclonable function value to reduce risks such as replay attacks and interception during data transmission.

[0068] Preferably, the anti-counterfeiting traceability module includes an electronic label verification submodule and a product anti-counterfeiting verification submodule;

[0069] The electronic tag verification submodule includes: using the non-clonable electronic tag protocol to verify the authenticity of the non-clonable electronic tag; obtaining the electronic tag certificate through the smart contract; and storing the electronic tag certificate in the blockchain;

[0070] The product anti-counterfeiting verification submodule includes: obtaining a unique product identifier through the non-clonable electronic tag; performing a matching query on the blockchain through the unique product identifier; obtaining a product ownership certificate through the smart contract; and storing the product ownership certificate in the blockchain.

[0071] Preferably, the access control module specifically includes:

[0072] Setting an access control policy; the access control policy is set according to data attribute information and user attribute information; the data attribute information includes data identification, data category, and data privacy level; the data privacy level is divided according to the sensitivity and influence of the data; the user attribute information includes user identification, user category, and user reputation level;

[0073] Storing and managing the access control policy through the policy management submodule;

[0074] Analyzing the initial access request by the policy execution submodule;

[0075] The initial access request is passed, and an attribute access request is generated; wherein, the initial access request is passed if the requester has the electronic tag certificate and the product ownership certificate;

[0076] The policy decision submodule analyzes the attribute access request, executes the corresponding access control policy and determines whether the access request is allowed.

[0077] Preferably, the user reputation level is divided according to the user's comprehensive reputation value; the user reputation level division process is:

[0078] Calculate the initial reputation value using the following formula:

[0079]

[0080] Wherein, m represents the total number of data privacy levels; S i Indicates the number of successful visits by the user; F i Indicates the number of failed accesses by the user; α i represents the weight of successful access by users at different data privacy levels, ∑α=1; β i represents the weight of failed access of users at different data privacy levels, ∑β=-1;

[0081] Calculate the historical reputation value using the following formula:

[0082]

[0083] Among them, t i It indicates the total time from when the user makes an access request to when the policy matches and the authorization is completed; R Current Indicates the current credit value of the user at the end of each visit;

[0084] The comprehensive reputation value is calculated using the following formula:

[0085] RFinal =a·R Current +b·R History ;

[0086] Wherein, a represents the weight of the current reputation value; b represents the weight of the historical reputation value, a+b=1 and a>b;

[0087] At least two intervals are divided according to the comprehensive reputation value, and the intervals correspond to the user reputation levels one by one.

[0088] An anti-counterfeiting method based on electronic tags, the specific steps include:

[0089] Embed the physical unclonable function into the electronic tag and the reader to generate the unclonable electronic tag and the unclonable reader;

[0090] Performing a test to determine the physical unclonable function corresponding to each of the unclonable electronic tags and the unclonable reader;

[0091] Designing an unclonable electronic tag protocol to verify the authenticity of the unclonable electronic tag;

[0092] Assigning the unclonable electronic tag to each product and encoding product related information in the unclonable electronic tag;

[0093] Storing sensitive data such as the unclonable electronic tag and the unclonable reader related data, product production data and user information in an internal database;

[0094] Use blockchain to manage product transaction records and deploy smart contracts;

[0095] Verify product authenticity and check product origin;

[0096] The smart contract is used to implement attribute-based access control to the internal database.

[0097] Preferably, the non-clonable electronic tag protocol includes an initialization phase and an authentication phase;

[0098] The specific steps of the initialization phase include:

[0099] Generate shared keys S1 and S2; the shared keys are shared by all the non-clonable readers and the non-clonable electronic tags in the system;

[0100] Generate four reader random values ​​a, b, d and e, and calculate two reader keys using the following formula:

[0101]

[0102] Among them, PR (·) represents the physical unclonable function embedded in the unclonable reader; c and f represent the reader key;

[0103] Generate four random label values ​​u, v, x and y, and calculate two label keys. The calculation formula is:

[0104]

[0105] Among them, P T (·) represents the physical unclonable function embedded in the unclonable electronic tag; w and z represent the tag key;

[0106] storing the data generated in the initialization phase in the internal database;

[0107] The specific steps of the authentication stage include:

[0108] Generate reader temporary random values ​​r1 and r2 and calculate reader first message;

[0109] Sending the reader first message to the non-clonable electronic tag;

[0110] Generate a label temporary random value r3 and calculate the label second message, the label third message and the label fourth message;

[0111] sending the tag second message, the tag third message and the tag fourth message to the non-clonable reader;

[0112] Calculate a reader second message according to the tag second message, the tag third message and the tag fourth message;

[0113] The reader's second message is compared with the tag's second message for verification, and if they are the same, the tag authentication is successful.

[0114] Preferably, the reader first message calculation step includes:

[0115] Calculate the reader first message initial value:

[0116]

[0117] After the calculation is completed, delete P R (a) and P R (r1);

[0118] Update the reader with the first message:

[0119]

[0120] After the calculation is completed, delete P R(b) and P R (r2);

[0121] Calculate the final result of the reader first message:

[0122]

[0123] Preferably, the step of calculating the second tag message, the third tag message and the fourth tag message includes: calculating the initial value of the fourth tag message:

[0124]

[0125] Calculate the first temporary key k1:

[0126]

[0127] After the calculation is completed, delete r3 and P T (x), P T (u) and P T (y);

[0128] Calculate the second temporary key k2:

[0129] k2=H(k1,1,2);

[0130] Where H(·) represents a hash function;

[0131] Calculate the tag for the second message:

[0132]

[0133] Calculate the tag for the third message:

[0134]

[0135] Wherein, ID represents the unique identification of the electronic tag;

[0136] Update the label of the fourth message:

[0137]

[0138] Calculate the final result of the fourth message of the tag:

[0139]

[0140] Preferably, the reader specifically calculates the second message including:

[0141] Calculate the reader's fourth message:

[0142]

[0143] After the calculation is completed, delete P R (d) P R (r1),P R (e) and P R (r2);

[0144] Recover the first temporary key:

[0145]

[0146] Restore the unique identifier of the electronic tag:

[0147]

[0148] Calculate the reader second message:

[0149]

[0150] Preferably, the specific steps of verifying the authenticity of the product and querying the source of the product include:

[0151] Verifying the authenticity of the unclonable electronic tag using the unclonable electronic tag protocol;

[0152] Obtain electronic tag credentials through smart contracts;

[0153] Storing the electronic tag certificate in the blockchain;

[0154] Obtaining a unique product identifier through the non-clonable electronic tag;

[0155] Perform a matching query on the blockchain using the unique identifier of the product;

[0156] Obtain product ownership certificate through smart contracts;

[0157] The product ownership certificate is stored in the blockchain.

[0158] Preferably, the attribute-based access control specific steps include:

[0159] Setting an access control policy; the access control policy is set according to data attribute information and user attribute information; the data attribute information includes data identification, data category, and data privacy level; the data privacy level is divided according to the sensitivity and influence of the data; the user attribute information includes user identification, user category, and user reputation level;

[0160] Storing and managing the access control policy through the policy management submodule;

[0161] Analyzing the initial access request by the policy execution submodule;

[0162] The initial access request is passed, and an attribute access request is generated; wherein, the initial access request is passed if the requester has the electronic tag certificate and the product ownership certificate;

[0163] The policy decision submodule analyzes the attribute access request, executes the corresponding access control policy and determines whether the access request is allowed.

[0164] Preferably, the user reputation level is divided according to the user's comprehensive reputation value; the user reputation level division process is:

[0165] Calculate the initial reputation value using the following formula:

[0166]

[0167] Wherein, m represents the total number of data privacy levels; S i Indicates the number of successful visits by the user; F i Indicates the number of failed accesses by the user; α i represents the weight of successful access by users at different data privacy levels, ∑α=1; β i represents the weight of failed access of users at different data privacy levels, ∑β=-1;

[0168] Calculate the historical reputation value using the following formula:

[0169]

[0170] Among them, t i It indicates the total time from when the user makes an access request to when the policy matches and the authorization is completed; R Current Indicates the current credit value of the user at the end of each visit;

[0171] The comprehensive reputation value is calculated using the following formula:

[0172] R Final =a·R Current +b·R History ;

[0173] Wherein, a represents the weight of the current reputation value; b represents the weight of the historical reputation value, a+b=1 and a>b;

[0174] At least two intervals are divided according to the comprehensive reputation value, and the intervals correspond to the user reputation levels one by one.

[0175] Compared with the prior art, the present invention has the following beneficial effects:

[0176] 1. The present invention integrates a physical unclonable function into the electronic tag and the reader. The physical unclonable function uses the tiny differences in the chip manufacturing process to generate a unique response for each device. These responses are not easily copied or predicted, making the identity of each electronic tag unique. This not only prevents the illegal copying and counterfeiting of electronic tags, but also protects the data of related products, avoids unauthorized access and tampering, and greatly improves the security of the anti-counterfeiting and traceability system.

[0177] 2. An electronic tag protocol is designed based on the physical unclonable function. A shared key is generated during the initialization phase of the electronic tag protocol, which simplifies the key management process. During the authentication phase of the electronic tag protocol, the reader and electronic tag messages are interactively verified to ensure that the data has not been tampered with. By using the physical unclonable function on both the reader and the electronic tag, the communication security between the electronic tag and the reader is enhanced, ensuring the security and integrity of the data during the exchange process, greatly reducing the possibility of data tampering and enhancing the security of the anti-counterfeiting and traceability system.

[0178] 3. The present invention adopts attribute-based access control to define the access rights of the internal database according to the data and user attribute information. In the internal database, sensitive data such as product production details and supplier information need to be access controlled. Only users of specific categories and high credibility levels can access sensitive data based on electronic tag credentials and product ownership credentials. Attribute-based access control not only provides a flexible data access management method, but also ensures the security and privacy of the data, thereby improving the security of the anti-counterfeiting traceability system. BRIEF DESCRIPTION OF THE DRAWINGS

[0179] Figure 1 A schematic diagram of the structure of an anti-counterfeiting and traceability system based on electronic tags provided by an embodiment of the present invention;

[0180] Figure 2 A schematic flow chart of specific steps in the authentication phase of the non-clonable electronic tag protocol provided by an embodiment of the present invention;

[0181] Figure 3 The embodiment of the present invention provides Figure 2 Detailed step flow diagram of step S1;

[0182] Figure 4 The embodiment of the present invention provides Figure 2 Detailed step flow diagram of step S3;

[0183] Figure 5 The embodiment of the present invention provides Figure 2 Detailed step flow chart of step S5 in FIG. DETAILED DESCRIPTION

[0184] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0185] In order to improve the security of anti-counterfeiting and traceability technology, the present invention provides an anti-counterfeiting and traceability system and anti-counterfeiting method based on electronic tags. The technical solution is as follows:

[0186] Embodiment 1

[0187] In the embodiment of the present application, the anti-counterfeiting method based on the electronic tag is specifically implemented by the anti-counterfeiting traceability system, see Figure 1 , the system includes an initialization module, a data management module, an anti-counterfeiting traceability module and an access control module;

[0188] The tag initialization module is used to assign an unclonable electronic tag to each product and encode product related information in the unclonable electronic tag; the unclonable electronic tag is verified by an unclonable reader; the unclonable electronic tag and the unclonable reader are generated by embedding a physical unclonable function into the electronic tag and the reader; the physical unclonable function is used to design an unclonable electronic tag protocol; the unclonable electronic tag protocol ensures data security by performing encryption calculations on the different physical unclonable functions at both ends of the unclonable electronic tag and the unclonable reader;

[0189] The data management module includes an internal database and a blockchain; wherein the internal database is used to store sensitive data such as the unclonable electronic tag and the unclonable reader related data, product production data and user information; and the blockchain is used to manage product transaction circulation records and deploy smart contracts;

[0190] The anti-counterfeiting traceability module is used to verify product authenticity and query product sources;

[0191] The access control module is used to implement access control to the internal database; the access control module includes a policy management submodule, a policy execution submodule and a policy decision submodule; the submodules are implemented using the smart contract.

[0192] Furthermore, the non-clonable electronic tag protocol includes an initialization phase and an authentication phase;

[0193] The specific steps of the initialization phase include:

[0194] Generate shared keys S1 and S2; the shared keys are shared by all the non-clonable readers and the non-clonable electronic tags in the system;

[0195] Select four reader random values ​​a, b, d and e and calculate two reader keys using the formula:

[0196]

[0197] Among them, P R (·) represents the physical unclonable function embedded in each of the unclonable readers; c and f represent the reader keys;

[0198] storing the reader random value and the reader key in the internal database;

[0199] Select four random label values ​​u, v, x and y and calculate two label keys. The calculation formula is:

[0200]

[0201] Among them, P T (·) represents the physical unclonable function embedded in each unclonable electronic tag; w and z represent the tag key;

[0202] storing the tag random value and the tag key in the internal database;

[0203] Further, see Figure 2 The specific steps of the authentication stage include:

[0204] S1. Generate reader temporary random values ​​r1 and r2 and calculate the reader first message;

[0205] S2. The reader sends a first message to the non-clonable electronic tag;

[0206] S3. Generate a temporary random value r3 for the tag and calculate the second tag message, the third tag message and the fourth tag message;

[0207] S4. Sending the second tag message, the third tag message and the fourth tag message to the non-clonable reader;

[0208] S5. Calculate the reader second message based on the tag second message, the tag third message and the tag fourth message;

[0209] S6. Compare and verify the second message from the reader with the second message from the tag. If they are the same, the tag authentication is successful.

[0210] In the embodiment of the present application, the unclonable electronic tag protocol performs encryption calculation based on the physical unclonable function, ensuring that the transmitted data has not been tampered with before being authenticated, because any unauthorized modification of the data will be detected during the verification process, and each authentication process is based on a one-time verification, avoiding the potential risk of privacy leakage. This method reduces the risk of the system being affected by external attacks and internal errors, and ensures the high reliability and stability of the system.

[0211] Further, see Figure 2 and Figure 3 , the specific steps of step S1 include:

[0212] S11. Calculate the initial value of the first message of the reader:

[0213]

[0214] S12. Delete P after calculation. R (a) and P R (r1);

[0215] S13. Update the reader first message:

[0216]

[0217] S14. Delete P after calculation. R (b) and P R (r2);

[0218] S15. Calculate the final result of the reader's first message:

[0219]

[0220] Further, see Figure 2 and Figure 4 The specific steps of step S3 include:

[0221] S31. Calculate the initial value of the fourth message of the tag:

[0222]

[0223] S32. Calculate the first temporary key k1:

[0224]

[0225] S33. Delete r3 and P after calculation. T (x), P T (u) and P T (y);

[0226] S34. Calculate the second temporary key k2:

[0227] k2=H(k1,1,2);

[0228] Where H(·) represents a hash function;

[0229] S35. Calculate the second tag message:

[0230]

[0231] S36. Calculate the third message of the tag:

[0232]

[0233] Wherein, ID represents the unique identification of the electronic tag;

[0234] S37. Update the fourth message of the tag:

[0235]

[0236] S38. Calculate the final result of the fourth message of the tag:

[0237]

[0238] Further, see Figure 2 and Figure 5 The specific steps of step S5 include:

[0239] S51 calculates the reader's fourth message:

[0240]

[0241] S52. Delete P after calculation. R (d) P R (r1),P R (e) and P R (r2);

[0242] S53. Restore the first temporary key:

[0243]

[0244] S54. Restore the unique identifier of the electronic tag:

[0245]

[0246] S55. Calculate the second message of the reader:

[0247]

[0248] During the authentication process of the electronic tag protocol, it is necessary to delete the temporarily generated random value and the physically unclonable function value to prevent risks such as replay attacks and interception during data transmission.

[0249] Furthermore, the anti-counterfeiting and traceability module includes an electronic label verification submodule and a product anti-counterfeiting verification submodule;

[0250] The electronic tag verification submodule includes: using the non-clonable electronic tag protocol to verify the authenticity of the non-clonable electronic tag; obtaining the electronic tag certificate through a smart contract; and storing the electronic tag certificate in a blockchain;

[0251] The product anti-counterfeiting verification submodule includes: obtaining a unique product identifier through the non-clonable electronic tag; performing a matching query on the blockchain through the unique product identifier; obtaining a product ownership certificate through a smart contract; and storing the product ownership certificate in the blockchain;

[0252] When a product circulates in the supply chain, each supply chain participant will perform label verification and obtain the electronic label certificate and product ownership certificate, and record and update product-related information in the blockchain; when a supply chain participant receives a product, it can obtain the electronic label certificate and product ownership certificate of the previous supply chain participant from the blockchain to further verify the authenticity of the product.

[0253] The embodiment of the present application ensures the authenticity and legal source of each product through electronic tag verification and product ownership verification, which not only helps to combat counterfeit and shoddy products, but also increases consumers' trust in the brand.

[0254] Furthermore, the access control module specifically includes:

[0255] Setting an access control policy; the access control policy is set according to data attribute information and user attribute information; the data attribute information includes data identification, data category, and data privacy level; the data privacy level is divided according to the sensitivity and influence of the data; the user attribute information includes user identification, user category, and user reputation level;

[0256] Storing and managing the access control policy through the policy management submodule;

[0257] Analyzing the initial access request by the policy execution submodule;

[0258] The initial access request is passed, and an attribute access request is generated; wherein, the initial access request is passed if the requester has the electronic tag certificate and the product ownership certificate;

[0259] The policy decision submodule analyzes the attribute access request, executes the corresponding access control policy and determines whether the access request is allowed.

[0260] The embodiment of the present application sets access control policies through data and user attributes, provides enhanced protection measures for sensitive data, and can effectively prevent unauthorized access and reduce the risk of data leakage by finely controlling data access rights, thereby increasing the overall security of the anti-counterfeiting and traceability system.

[0261] Furthermore, the user reputation level is divided according to the user's comprehensive reputation value; the user reputation level division process is:

[0262] Calculate the initial reputation value using the following formula:

[0263]

[0264] Wherein, m represents the total number of data privacy levels; S i Indicates the number of successful visits by the user; F i Indicates the number of failed accesses by the user; α i represents the weight of successful access by users at different data privacy levels, ∑α=1; β i represents the weight of failed access of users at different data privacy levels, ∑β=-1;

[0265] Calculate the historical reputation value using the following formula:

[0266]

[0267] Among them, t i It indicates the total time from when the user makes an access request to when the policy matches and the authorization is completed; R Current Indicates the current credit value of the user at the end of each visit;

[0268] The comprehensive reputation value is calculated using the following formula:

[0269] R Final =a·R Current +b·R History ;

[0270] Wherein, a represents the weight of the current reputation value; b represents the weight of the historical reputation value, a+b=1 and a>b;

[0271] At least two intervals are divided according to the comprehensive reputation value, and the intervals correspond to the user reputation levels one by one.

[0272] The embodiment of the present application analyzes the user's access behavior, sets a credibility level for each user, and uses the user's credibility level to assist in implementing internal database access control, which can effectively prevent malicious behavior and data leakage.

[0273] In the embodiment of the present application, the physical unclonable function is first integrated into the electronic tag and the reader through the tag initialization module, thereby enhancing the security of data transmission during the electronic tag authentication process and effectively preventing forgery and copying; then, through the combined use of the internal database and the blockchain, the system not only ensures the security and privacy of key data, but also provides a transparent and tamper-proof product transaction record, thereby enhancing the credibility of the supply chain; in addition, the anti-counterfeiting traceability module can effectively verify the authenticity and source of the product, while the access control module automatically executes the access control policy through the smart contract to ensure that only authorized users can access sensitive data, greatly improving the security of the data, effectively preventing unauthorized access and data leakage, and improving the anti-attack capability of the entire system and the security of the anti-counterfeiting method.

[0274] Embodiment 2

[0275] In Example 1, the system and method of the present invention are combined to realize the anti-counterfeiting traceability of products. The method proposed by the present invention will be described again in the examples of this application.

[0276] The present invention proposes an anti-counterfeiting method based on electronic tags, and the specific steps include:

[0277] Embed the physical unclonable function into the electronic tag and the reader to generate the unclonable electronic tag and the unclonable reader;

[0278] Performing a test to determine the physical unclonable function corresponding to each of the unclonable electronic tags and the unclonable reader;

[0279] Design an unclonable electronic tag protocol to verify the authenticity of the unclonable electronic tag;

[0280] Assigning the unclonable electronic tag to each product and encoding product related information in the unclonable electronic tag;

[0281] Storing sensitive data such as the unclonable electronic tag and the unclonable reader related data, product production data and user information in an internal database;

[0282] Use blockchain to manage product transaction records and deploy smart contracts;

[0283] Verify product authenticity and check product origin;

[0284] The smart contract is used to implement attribute-based access control to the internal database.

[0285] Furthermore, the non-clonable electronic tag protocol includes an initialization phase and an authentication phase;

[0286] The specific steps of the initialization phase include:

[0287] Generate shared keys S1 and S2; the shared keys are shared by all the readers and electronic tags in the system;

[0288] Generate four reader random values ​​a, b, d and e, and calculate two reader keys using the following formula:

[0289]

[0290] Among them, P R (·) represents the physical unclonable function embedded in the unclonable reader; c and f represent the reader key;

[0291] storing the tag random value and the tag key in the internal database;

[0292] Generate four random label values ​​u, v, x and y, and calculate two label keys. The calculation formula is:

[0293]

[0294] Among them, P T (·) represents the physical unclonable function embedded in the unclonable electronic tag; w and z represent the tag key;

[0295] storing the tag random value and the tag key in the internal database;

[0296] The specific steps of the authentication stage include:

[0297] Generate reader temporary random values ​​r1 and r2 and calculate reader first message;

[0298] Sending the reader first message to the non-clonable electronic tag;

[0299] Generate a label temporary random value r3 and calculate the label second message, the label third message and the label fourth message;

[0300] sending the tag second message, the tag third message and the tag fourth message to the non-clonable reader;

[0301] Calculate a reader second message according to the tag second message, the tag third message and the tag fourth message;

[0302] The reader's second message is compared with the tag's second message for verification, and if they are the same, the tag authentication is successful.

[0303] Furthermore, the specific steps of verifying the authenticity of the product and querying the source of the product include:

[0304] Verifying the authenticity of the unclonable electronic tag using the unclonable electronic tag protocol;

[0305] Obtain electronic tag credentials through smart contracts;

[0306] Storing the electronic tag certificate in the blockchain;

[0307] Obtaining a unique product identifier through the electronic tag;

[0308] Perform a matching query on the blockchain using the unique identifier of the product;

[0309] Obtain product ownership certificate through smart contracts;

[0310] The product ownership certificate is stored in the blockchain.

[0311] Furthermore, the attribute-based access control specific steps include:

[0312] Setting an access control policy; the access control policy is set according to data attribute information and user attribute information; the data attribute information includes data identification, data category, and data privacy level; the data privacy level is divided according to the sensitivity and influence of the data; the user attribute information includes user identification, user category, and user reputation level;

[0313] Storing and managing the access control policy through the policy management submodule;

[0314] Analyzing the initial access request by the policy execution submodule;

[0315] The initial access request is passed, and an attribute access request is generated; wherein, the initial access request is passed if the requester has the electronic tag certificate and the product ownership certificate;

[0316] The policy decision submodule analyzes the attribute access request, executes the corresponding access control policy and determines whether the access request is allowed.

[0317] Furthermore, the user reputation level is divided according to the user's comprehensive reputation value; the user reputation level division process is:

[0318] Calculate the initial reputation value using the following formula:

[0319]

[0320] Wherein, m represents the total number of data privacy levels; S i Indicates the number of successful visits by the user; F i Indicates the number of failed accesses by the user; α i represents the weight of successful access by users at different data privacy levels, ∑α=1; β i represents the weight of failed access of users at different data privacy levels, ∑β=-1;

[0321] Calculate the historical reputation value using the following formula:

[0322]

[0323] Among them, t i It indicates the total time from when the user makes an access request to when the policy matches and the authorization is completed; R Current Indicates the current credit value of the user at the end of each visit;

[0324] The comprehensive reputation value is calculated using the following formula:

[0325] R Final =a·R Current +b·R History ;

[0326] Wherein, a represents the weight of the current reputation value; b represents the weight of the historical reputation value, a+b=1 and a>b;

[0327] At least two intervals are divided according to the comprehensive reputation value, and the intervals correspond to the user reputation levels one by one.

[0328] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.

Claims

1. An anti-counterfeiting and traceability system based on electronic tags, characterized in that: It includes initialization module, data management module, anti-counterfeiting traceability module and access control module; The tag initialization module is used to assign an unclonable electronic tag to each product and encode product related information in the unclonable electronic tag; the unclonable electronic tag is verified by an unclonable reader; the unclonable electronic tag and the unclonable reader are generated by embedding a physical unclonable function into the electronic tag and the reader; the physical unclonable function is used to design an unclonable electronic tag protocol; the unclonable electronic tag protocol ensures data security by performing encryption calculations on the different physical unclonable functions at both ends of the unclonable electronic tag and the unclonable reader; The data management module includes an internal database and a blockchain; wherein the internal database is used to store sensitive data such as the unclonable electronic tag and the unclonable reader related data, product production data and user information; and the blockchain is used to manage product transaction circulation records and deploy smart contracts; The anti-counterfeiting traceability module is used to verify product authenticity and query product sources; The access control module is used to implement access control to the internal database; the access control module includes a policy management submodule, a policy execution submodule and a policy decision submodule; the submodules are implemented using the smart contract.

2. The anti-counterfeiting and traceability system based on electronic tags according to claim 1 is characterized in that: The non-clonable electronic tag protocol includes an initialization phase and an authentication phase; The specific steps of the initialization phase include: Generate shared keys S1 and S2; the shared keys are shared by all the non-clonable electronic tags and the non-clonable readers in the system; Generate four reader random values ​​a, b, d and e, and calculate two reader keys using the following formula: Among them, P R (·) represents the physical unclonable function embedded in the unclonable reader; c and f represent the reader key; storing the reader random value and the reader key in the internal database; Generate four random label values ​​u, v, x and y, and calculate two label keys. The calculation formula is: Among them, P T (·) represents the physical unclonable function embedded in the unclonable electronic tag; w and z represent the tag key; storing the tag random value and the tag key in the internal database; The specific steps of the authentication stage include: Generate reader temporary random values ​​r1 and r2 and calculate reader first message; Sending the reader first message to the non-clonable electronic tag; Generate a label temporary random value r3 and calculate the label second message, the label third message and the label fourth message; sending the tag second message, the tag third message and the tag fourth message to the non-clonable reader; Calculate a reader second message according to the tag second message, the tag third message and the tag fourth message; The reader's second message is compared with the tag's second message for verification, and if they are the same, the tag authentication is successful.

3. The anti-counterfeiting and traceability system based on electronic tags according to claim 1 is characterized in that: The anti-counterfeiting and traceability module includes an electronic label verification submodule and a product anti-counterfeiting verification submodule; The electronic tag verification submodule includes: using the non-clonable electronic tag protocol to verify the authenticity of the non-clonable electronic tag; obtaining the electronic tag certificate through the smart contract; and storing the electronic tag certificate in the blockchain; The product anti-counterfeiting verification submodule includes: obtaining a unique product identifier through the non-clonable electronic tag; performing a matching query on the blockchain through the unique product identifier; obtaining a product ownership certificate through the smart contract; and storing the product ownership certificate in the blockchain.

4. The anti-counterfeiting and traceability system based on electronic tags according to claim 1 is characterized in that: The access control module specifically includes: Setting an access control policy; the access control policy is set according to data attribute information and user attribute information; wherein the data attribute information includes data identification, data category, and data privacy level; the data privacy level is divided according to the sensitivity and influence of the data; the user attribute information includes user identification, user category, and user reputation level; Storing and managing the access control policy through the policy management submodule; Analyzing the initial access request by the policy execution submodule; The initial access request is passed, and an attribute access request is generated; wherein the initial access request is passed on the condition that the requester possesses the electronic tag certificate and the product ownership certificate; The policy decision submodule analyzes the attribute access request, executes the corresponding access control policy and determines whether the access request is allowed.

5. The anti-counterfeiting and traceability system based on electronic tags according to claim 4 is characterized in that: The user reputation level is divided according to the user's comprehensive reputation value; the user reputation level division process is: Calculate the initial reputation value using the following formula: Wherein, m represents the total number of data privacy levels; S i Indicates the number of successful visits by the user; F i Indicates the number of failed accesses by the user; α i represents the weight of successful access by users at different data privacy levels, ∑α=1; β i represents the weight of failed access of users at different data privacy levels, ∑β=-1; Calculate the historical reputation value using the following formula: Among them, t i It indicates the total time from when the user makes an access request to when the policy matches and the authorization is completed; R Current Indicates the current credit value of the user at the end of each visit; The comprehensive reputation value is calculated using the following formula: R Final =a·R Current +b·R History ; Wherein, a represents the weight of the current reputation value; b represents the weight of the historical reputation value, a+b=1 and a>b; At least two intervals are divided according to the comprehensive reputation value, and the intervals correspond to the user reputation levels one by one.

6. An anti-counterfeiting method based on electronic tags, characterized in that: The specific steps include: Embed the physical unclonable function into the electronic tag and the reader to generate the unclonable electronic tag and the unclonable reader; Performing a test to determine the physical unclonable function corresponding to each of the unclonable electronic tags and the unclonable reader; Designing an unclonable electronic tag protocol for verifying the authenticity of the unclonable electronic tag; Assigning the unclonable electronic tag to each product and encoding product related information in the unclonable electronic tag; Storing sensitive data such as the unclonable electronic tag and the unclonable reader related data, product production data and user information in an internal database; Use blockchain to manage product transaction records and deploy smart contracts; Verify product authenticity and check product origin; The smart contract is used to implement attribute-based access control to the internal database.

7. The anti-counterfeiting method based on electronic tags according to claim 6, characterized in that: The non-clonable electronic tag protocol includes an initialization phase and an authentication phase; The specific steps of the initialization phase include: Generate shared keys S1 and S2; the shared keys are shared by all the non-clonable readers and the non-clonable electronic tags in the system; Generate four reader random values ​​a, b, d and e, and calculate two reader keys using the following formula: Among them, P R (·) represents the physical unclonable function embedded in the unclonable reader; c and f represent the reader key; storing the reader random value and the reader key in the internal database; Generate four random label values ​​u, v, x and y, and calculate two label keys. The calculation formula is: Among them, P T (·) represents the physical unclonable function embedded in the unclonable electronic tag; w and z represent the tag key; storing the tag random value and the tag key in the internal database; The specific steps of the authentication stage include: Generate reader temporary random values ​​r1 and r2 and calculate reader first message; Sending the reader first message to the non-clonable electronic tag; Generate a label temporary random value r3 and calculate the label second message, the label third message and the label fourth message; sending the tag second message, the tag third message and the tag fourth message to the non-clonable reader; Calculate a reader second message according to the tag second message, the tag third message and the tag fourth message; The reader's second message is compared with the tag's second message for verification, and if they are the same, the tag authentication is successful.

8. The anti-counterfeiting method based on electronic tags according to claim 6, characterized in that: The specific steps of verifying the authenticity of the product and checking the source of the product include: Verifying the authenticity of the unclonable electronic tag using the unclonable electronic tag protocol; Obtaining an electronic tag certificate through the smart contract; Storing the electronic tag certificate in the blockchain; Obtaining a unique product identifier through the non-clonable electronic tag; Perform a matching query on the blockchain using the unique identifier of the product; Obtain product ownership certificate through the smart contract; The product ownership certificate is stored in the blockchain.

9. The anti-counterfeiting method based on electronic tags according to claim 6, characterized in that: The specific steps of attribute-based access control include: Setting an access control policy; the access control policy is set according to data attribute information and user attribute information; the data attribute information includes data identification, data category, and data privacy level; the data privacy level is divided according to the sensitivity and influence of the data; the user attribute information includes user identification, user category, and user reputation level; Storing and managing the access control policy through the policy management submodule; Analyzing the initial access request by the policy execution submodule; The initial access request is passed, and an attribute access request is generated; wherein the initial access request is passed on the condition that the requester possesses the electronic tag certificate and the product ownership certificate; The policy decision submodule analyzes the attribute access request, executes the corresponding access control policy and determines whether the access request is allowed.

10. The anti-counterfeiting method based on electronic tags according to claim 9, characterized in that: The user reputation level is divided according to the user's comprehensive reputation value; the user reputation level division process is: Calculate the initial reputation value using the following formula: Wherein, m represents the total number of data privacy levels; S i Indicates the number of successful visits by the user; F i Indicates the number of failed accesses by the user; α i represents the weight of successful access by users at different data privacy levels, ∑α=1; β i represents the weight of failed access of users at different data privacy levels, ∑β=-1; Calculate the historical reputation value using the following formula: Among them, t i It indicates the total time from when the user makes an access request to when the policy matches and the authorization is completed; R Current Indicates the current credit value of the user at the end of each visit; The comprehensive reputation value is calculated using the following formula: R Final =a·R Current +b·R History ; Wherein, a represents the weight of the current reputation value; b represents the weight of the historical reputation value, a+b=1 and a>b; At least two intervals are divided according to the comprehensive reputation value, and the intervals correspond to the user reputation levels one by one.

Citation Information

Cited By

  • Security access control method and system for soil census data

    CN119416264A