Commodity anti-counterfeiting method and terminal
Through the collaborative work of the commodity side, the manufacturer platform side and the blockchain side, and the use of preset private keys for signature and verification, the problem of product anti-counterfeiting cannot be used multiple times in the existing technology is solved, and high security and reliability product anti-counterfeiting is achieved.
Patent Information
- Application Number
- CN202111316914.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-09
- Publication Date
- 2025-04-11
- Estimated Expiration
- 2041-11-09
AI Technical Summary
Existing product anti-counterfeiting technology cannot achieve multiple anti-counterfeiting, and it relies on back-end verification, which has security and reliability problems.
Through the collaborative work of the commodity side, the manufacturer platform side and the blockchain side, the preset private key is used for signature and verification, the immutability and decentralization of the blockchain are used to identify the authenticity of the product, and the private key is updated in the identification results.
It realizes multiple anti-counterfeiting of products, improves the security and reliability of anti-counterfeiting, and avoids the risk of backend dependence.
Smart Images

Figure CN114092111B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of anti-counterfeiting technology, and in particular to a commodity anti-counterfeiting method and terminal. Background Art
[0002] In order to prevent the anti-counterfeiting code from being recognized multiple times, the existing product anti-counterfeiting method adopts the method of only recognizing it once as authentic and recognizing it repeatedly as counterfeit. This makes it impossible for merchants to confirm the authenticity of the goods to consumers before they buy them. Once verified as authentic, consumers must buy the goods, and the goods cannot be authenticated for a second time, which affects secondary sales. This anti-counterfeiting method cannot be used repeatedly.
[0003] In addition, the existing anti-counterfeiting system for some products verifies the authenticity after the products leave the factory, which needs to be done by logging into a website, making a phone call or sending a text message. However, it is difficult for consumers to distinguish the authenticity of the website, phone call or text message background. It is completely dependent on the background. If the background is a fake background, the final identification result is also unreliable. Counterfeiters may use the fake background to pass off the fake as the real thing. Summary of the invention
[0004] The technical problem to be solved by the present invention is to provide a commodity anti-counterfeiting method and terminal, which can improve the security and reliability of anti-counterfeiting while achieving multiple anti-counterfeiting.
[0005] In order to solve the above technical problems, a technical solution adopted by the present invention is:
[0006] A commodity anti-counterfeiting method, comprising:
[0007] The commodity end receives the authenticity identification information of the commodity, and signs the authenticity identification information using a preset private key to obtain first signature data;
[0008] The manufacturer platform receives the first signature data and the authenticity identification information, and signs the first signature data using the preset private key according to the authenticity identification information to obtain second signature data;
[0009] The blockchain end receives the second signature data and the authenticity identification information, and uses a preset public key corresponding to the authenticity identification information to verify the second signature data to obtain an authenticity identification result of the commodity;
[0010] The commodity end receives the authenticity identification result, and updates the preset private key based on the authenticity identification result.
[0011] In order to solve the above technical problems, another technical solution adopted by the present invention is:
[0012] A commodity anti-counterfeiting terminal includes a commodity end, a manufacturer platform end, and a blockchain end; the commodity end includes a first memory, a first processor, and a first computer program stored in the first memory and executable on the first processor, the manufacturer platform end includes a second memory, a second processor, and a second computer program stored in the second memory and executable on the second processor, the blockchain end includes a third memory, a third processor, and a third computer program stored in the third memory and executable on the third processor, and the first processor implements the following steps when executing the first computer program:
[0013] Receive the authenticity identification information of the commodity, and sign with a preset private key based on the authenticity identification information to obtain first signature data; receive the authenticity identification result, and update the preset private key based on the authenticity identification result;
[0014] When the second processor executes the second computer program, the following steps are implemented:
[0015] receiving the first signature data and the authenticity identification information, and signing the first signature data using the preset private key according to the authenticity identification information to obtain second signature data;
[0016] When the third processor executes the third computer program, the following steps are implemented:
[0017] The second signature data and the authenticity identification information are received, and the second signature data is verified using a preset public key corresponding to the authenticity identification information to obtain an authenticity identification result of the commodity.
[0018] The beneficial effects of the present invention are as follows: the commodity end receives the authenticity identification information of the commodity, and signs based on the authenticity identification information using a preset private key; the manufacturer platform end receives the first signature data and the authenticity identification information and signs the first signature data using the preset private key; the blockchain end receives the second signature data and the authenticity identification information and verifies the second signature data using the preset public key to obtain the authenticity identification result; finally, the commodity end updates the preset private key based on the authenticity identification result, which is no longer like the prior art that uses the background for anti-counterfeiting and can only achieve anti-counterfeiting once, but by sending the second signature data and the authenticity identification information to the blockchain end. , so that the blockchain end can authenticate the authenticity of the goods. Finally, the product end updates the preset private key based on the authentication result, uses the key technology to jointly sign the product authenticity authentication information, and updates the private key based on the authentication result after obtaining the authentication result. When the product is authenticated again, the updated private key can be used for anti-counterfeiting again, thereby achieving multiple anti-counterfeiting. Moreover, since the private key can be updated in time after the authentication is completed, even if the private key is obtained by the counterfeiter during the anti-counterfeiting process, the private key obtained by the counterfeiter will be invalidated during the next product authenticity authentication, thereby achieving multiple anti-counterfeiting while improving the security and reliability of anti-counterfeiting. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1 A flowchart of a commodity anti-counterfeiting method according to an embodiment of the present invention;
[0020] Figure 2 A schematic diagram of the structure of a commodity anti-counterfeiting terminal according to an embodiment of the present invention;
[0021] Figure 3 This is a schematic diagram of the initialization process in the commodity anti-counterfeiting method according to an embodiment of the present invention;
[0022] Figure 4 A schematic diagram of the authenticity identification process in the commodity anti-counterfeiting method according to an embodiment of the present invention;
[0023] Figure 5 The figure is a schematic diagram of the key update process in the commodity anti-counterfeiting method according to an embodiment of the present invention. DETAILED DESCRIPTION
[0024] In order to explain the technical content, achieved objectives and effects of the present invention in detail, the following is an explanation in combination with the implementation modes and the accompanying drawings.
[0025] Please refer to Figure 1 The embodiment of the present invention provides a commodity anti-counterfeiting method, comprising:
[0026] The commodity end receives the authenticity identification information of the commodity, and signs the authenticity identification information using a preset private key to obtain first signature data;
[0027] The manufacturer platform receives the first signature data and the authenticity identification information, and signs the first signature data using the preset private key according to the authenticity identification information to obtain second signature data;
[0028] The blockchain end receives the second signature data and the authenticity identification information, and uses a preset public key corresponding to the authenticity identification information to verify the second signature data to obtain an authenticity identification result of the commodity;
[0029] The commodity end receives the authenticity identification result, and updates the preset private key based on the authenticity identification result.
[0030] From the above description, it can be seen that the beneficial effects of the present invention are: the commodity end receives the authenticity identification information of the commodity, and signs based on the authenticity identification information using a preset private key, the manufacturer platform end receives the first signature data and the authenticity identification information and then signs the first signature data using a preset private key, the blockchain end receives the second signature data and the authenticity identification information and then verifies the second signature data using a preset public key to obtain an authenticity identification result, and finally the commodity end updates the preset private key based on the authenticity identification result, which is no longer like the prior art that uses the background for anti-counterfeiting and can only achieve anti-counterfeiting once, but by sending the second signature data and the authenticity identification information to the backstage. On the blockchain side, the blockchain side performs authenticity authentication on the goods. Finally, the product side updates the preset private key based on the authentication result, uses the key technology to jointly sign the product authenticity authentication information, and updates the private key based on the authentication result after obtaining the authentication result. When the product is authenticated again, the updated private key can be used for anti-counterfeiting again, thereby achieving multiple anti-counterfeiting. Moreover, since the private key can be updated in time after the authentication is completed, even if the private key is obtained by the counterfeiter during the anti-counterfeiting process, the private key obtained by the counterfeiter will be invalidated when the product is authenticated next time. This improves the security and reliability of anti-counterfeiting while achieving multiple anti-counterfeiting.
[0031] Furthermore, the authenticity identification information includes basic commodity information, commodity transaction information and commodity terminal identification;
[0032] The preset private key includes a first preset private key fragment;
[0033] The commodity end receives the authenticity identification information of the commodity, and signs the authenticity identification information using a preset private key, and obtains the first signature data including:
[0034] The commodity terminal receives the commodity basic information, the commodity transaction information and the commodity terminal identifier of the commodity;
[0035] The first preset private key fragment is determined according to the commodity end identifier, and the commodity end identifier and the commodity transaction information are signed using the first preset private key fragment to obtain first signature data.
[0036] From the above description, it can be seen that the commodity end uses the first preset private key shard to sign the commodity end identification and commodity transaction information to obtain the first signature data, utilizes the key sharing technology, and places the sharded key on different terminals, which can improve the security of the encryption process.
[0037] Further, the preset private key includes a second preset private key fragment;
[0038] The manufacturer platform receives the first signature data and the authenticity identification information, and signs the first signature data using the preset private key according to the authenticity identification information, and obtains the second signature data including:
[0039] The manufacturer platform receives the first signature data and the product terminal identifier;
[0040] The second preset private key fragment is determined according to the commodity end identifier, and the first signature data is signed using the second preset private key fragment to obtain second signature data.
[0041] From the above description, it can be seen that the manufacturer platform determines the second preset private key shard based on the product identifier, and uses the second preset private key shard to sign the first signature data to obtain the second signature data, and uses the key sharing technology to directly use another private key shard to sign the first signature data after the product is signed, thereby realizing a joint signature and improving the security of product anti-counterfeiting.
[0042] Furthermore, the blockchain terminal receives the second signature data and the authenticity identification information, and uses a preset public key corresponding to the authenticity identification information to verify the second signature data, and obtains the authenticity identification result of the commodity, including:
[0043] The blockchain end receives the second signature data and the commodity end identifier;
[0044] A preset public key is determined according to the commodity terminal identifier, and the second signature data is verified using the preset public key to obtain an authenticity identification result of the commodity.
[0045] From the above description, it can be seen that the blockchain uses the preset public key to verify the joint signature data of the product and the manufacturer platform to obtain the authenticity identification result of the product, thereby ensuring the reliability of the authenticity identification result of the product. Authenticity identification is carried out through blockchain, and the "unalterable" and "decentralized" characteristics of blockchain are used to ensure the reliability of data storage and the openness and transparency of authentication.
[0046] Furthermore, the commodity end receives the authenticity identification result, and updates the preset private key based on the authenticity identification result, including:
[0047] The commodity terminal receives the authenticity identification result;
[0048] The commodity end determines whether the authenticity identification result is true, and if not, determines the commodity as false; if so, determines the commodity as true, and updates the first preset private key shard and the commodity transaction information according to the commodity end identifier to obtain an updated first preset private key shard and updated commodity transaction information;
[0049] The manufacturer platform receives the commodity end identifier, the updated first preset private key fragment, and the updated commodity transaction information, and updates the second preset private key fragment and the preset public key according to the commodity end identifier and the updated first preset private key fragment, to obtain an updated second preset private key fragment and an updated preset public key;
[0050] The manufacturer platform sends the commodity terminal identifier, the updated preset public key and the updated commodity transaction information to the blockchain terminal;
[0051] The blockchain end receives the commodity end identifier, the updated preset public key and the updated commodity transaction information;
[0052] The blockchain end obtains the corresponding basic information of the commodity according to the commodity end identifier, and generates a new block according to the commodity end identifier, the updated preset public key, the updated commodity transaction information and the commodity basic information.
[0053] From the above description, it can be seen that when the product is authenticated as authentic, the product side, the manufacturer platform side and the blockchain side respectively update the first preset private key shard, the second preset private key shard and the preset public key, so as to realize the timely update of the key. The first authenticity identification is realized after the product is sold for the first time. After the authenticity identification, the key is updated, and the updated key can be used for another authenticity identification, so as to realize multiple anti-counterfeiting, thereby realizing multiple anti-counterfeiting while improving the security and reliability of anti-counterfeiting.
[0054] Please refer to Figure 2Another embodiment of the present invention provides a commodity anti-counterfeiting terminal, including a commodity end, a manufacturer platform end and a blockchain end; the commodity end includes a first memory, a first processor and a first computer program stored in the first memory and executable on the first processor, the manufacturer platform end includes a second memory, a second processor and a second computer program stored in the second memory and executable on the second processor, the blockchain end includes a third memory, a third processor and a third computer program stored in the third memory and executable on the third processor, and the first processor implements the following steps when executing the first computer program:
[0055] Receive the authenticity identification information of the commodity, and sign with a preset private key based on the authenticity identification information to obtain first signature data; receive the authenticity identification result, and update the preset private key based on the authenticity identification result;
[0056] When the second processor executes the second computer program, the following steps are implemented:
[0057] receiving the first signature data and the authenticity identification information, and signing the first signature data using the preset private key according to the authenticity identification information to obtain second signature data;
[0058] When the third processor executes the third computer program, the following steps are implemented:
[0059] The second signature data and the authenticity identification information are received, and the second signature data is verified using a preset public key corresponding to the authenticity identification information to obtain an authenticity identification result of the commodity.
[0060] From the above description, it can be seen that the beneficial effects of the present invention are: the commodity end receives the authenticity identification information of the commodity, and signs based on the authenticity identification information using a preset private key, the manufacturer platform end receives the first signature data and the authenticity identification information and then signs the first signature data using a preset private key, the blockchain end receives the second signature data and the authenticity identification information and then verifies the second signature data using a preset public key to obtain an authenticity identification result, and finally the commodity end updates the preset private key based on the authenticity identification result, which is no longer like the prior art that uses the background for anti-counterfeiting and can only achieve anti-counterfeiting once, but by sending the second signature data and the authenticity identification information to the backstage. On the blockchain side, the blockchain side performs authenticity authentication on the goods. Finally, the product side updates the preset private key based on the authentication result, uses the key technology to jointly sign the product authenticity authentication information, and updates the private key based on the authentication result after obtaining the authentication result. When the product is authenticated again, the updated private key can be used for anti-counterfeiting again, thereby achieving multiple anti-counterfeiting. Moreover, since the private key can be updated in time after the authentication is completed, even if the private key is obtained by the counterfeiter during the anti-counterfeiting process, the private key obtained by the counterfeiter will be invalidated when the product is authenticated next time. This improves the security and reliability of anti-counterfeiting while achieving multiple anti-counterfeiting.
[0061] Furthermore, the authenticity identification information includes basic commodity information, commodity transaction information and commodity terminal identification;
[0062] The preset private key includes a first preset private key fragment;
[0063] When the first processor executes the first computer program, it receives the authenticity identification information of the commodity, and signs the authenticity identification information using a preset private key, and obtains the first signature data including:
[0064] Receiving the commodity basic information, the commodity transaction information and the commodity terminal identifier of the commodity;
[0065] The first preset private key fragment is determined according to the commodity end identifier, and the commodity end identifier and the commodity transaction information are signed using the first preset private key fragment to obtain first signature data.
[0066] From the above description, it can be seen that the commodity end uses the first preset private key shard to sign the commodity end identification and commodity transaction information to obtain the first signature data, utilizes the key sharing technology, and places the sharded key on different terminals, which can improve the security of the encryption process.
[0067] Further, the preset private key includes a second preset private key fragment;
[0068] When the second processor executes the second computer program, it receives the first signature data and the authenticity identification information, and signs the first signature data using the preset private key according to the authenticity identification information, and obtains the second signature data including:
[0069] Receiving the first signature data and the commodity terminal identifier;
[0070] The second preset private key fragment is determined according to the commodity end identifier, and the first signature data is signed using the second preset private key fragment to obtain second signature data.
[0071] From the above description, it can be seen that the manufacturer platform determines the second preset private key shard based on the product identifier, and uses the second preset private key shard to sign the first signature data to obtain the second signature data, and uses the key sharing technology to directly use another private key shard to sign the first signature data after the product is signed, thereby realizing a joint signature and improving the security of product anti-counterfeiting.
[0072] Furthermore, when the third processor executes the third computer program, it receives the second signature data and the authenticity identification information, and uses a preset public key corresponding to the authenticity identification information to verify the second signature data, and obtains the authenticity identification result of the commodity, including:
[0073] Receiving the second signature data and the commodity terminal identifier;
[0074] A preset public key is determined according to the commodity terminal identifier, and the second signature data is verified using the preset public key to obtain an authenticity identification result of the commodity.
[0075] From the above description, it can be seen that the blockchain uses the preset public key to verify the joint signature data of the product and the manufacturer platform to obtain the authenticity identification result of the product, thereby ensuring the reliability of the authenticity identification result of the product. Authenticity identification is carried out through blockchain, and the "unalterable" and "decentralized" characteristics of blockchain are used to ensure the reliability of data storage and the openness and transparency of authentication.
[0076] Furthermore, the first processor executes the first computer program to receive the authenticity identification result, and updates the preset private key based on the authenticity identification result, including:
[0077] When the first processor executes the first computer program, receiving the authenticity identification result is achieved;
[0078] When the first processor executes the first computer program, it determines whether the authenticity identification result is true, and if not, determines the commodity as false; if so, determines the commodity as true, and updates the first preset private key shard and the commodity transaction information according to the commodity end identifier to obtain an updated first preset private key shard and updated commodity transaction information;
[0079] When the second processor executes the second computer program, it receives the commodity end identifier, the updated first preset private key fragment, and the updated commodity transaction information, and updates the second preset private key fragment and the preset public key according to the commodity end identifier and the updated first preset private key fragment, to obtain the updated second preset private key fragment and the updated preset public key;
[0080] When the first processor executes the first computer program, the commodity terminal identifier, the updated preset public key, and the updated commodity transaction information are sent to the blockchain terminal;
[0081] The third processor receives the commodity terminal identifier, the updated preset public key and the updated commodity transaction information when executing the third computer program;
[0082] When the third processor executes the third computer program, it obtains the corresponding basic information of the commodity according to the commodity-end identifier, and generates a new block according to the commodity-end identifier, the updated preset public key, the updated commodity transaction information and the commodity basic information.
[0083] From the above description, it can be seen that when the product is authenticated as authentic, the product side, the manufacturer platform side and the blockchain side respectively update the first preset private key shard, the second preset private key shard and the preset public key, so as to realize the timely update of the key. The first authenticity identification is realized after the product is sold for the first time. After the authenticity identification, the key is updated, and the updated key can be used for another authenticity identification, so as to realize multiple anti-counterfeiting, thereby realizing multiple anti-counterfeiting while improving the security and reliability of anti-counterfeiting.
[0084] The commodity anti-counterfeiting method and terminal of the present invention can be applied to any commodity that requires anti-counterfeiting and traceability, and are described below through specific implementation methods:
[0085] Embodiment 1
[0086] Please refer to Figure 1 , 3 4. A commodity anti-counterfeiting method of this embodiment includes:
[0087] S0, initialization process: Figure 3As shown, before the product is sold, the manufacturer platform will write the basic information of the product into the product end, and the product end will generate a first preset private key fragment corresponding to the basic information of the product according to the basic information of the product and the product end identifier; in an optional implementation, the product end is a product NFC chip, and the product end identifier is the UID of the product NFC chip, so the basic information of the product, the first preset private key fragment and the UID in the product end correspond one to one;
[0088] The commodity end sends the commodity end identifier and the first preset private key fragment to the manufacturer platform end;
[0089] The manufacturer platform generates a second preset private key shard corresponding to the basic information of the product according to the product identifier and the first preset private key shard, and generates product transaction information; the UID, the basic information of the product, the second preset private key shard and the product transaction information correspond one to one in the manufacturer platform; the product transaction information includes product owner information, query information, circulation information, query time and transaction time. Before the product is sold, the product owner information is the manufacturer platform, the query information is the manufacturer platform, and the circulation information is the production information. The circulation information includes various links of the product from production to logistics turnover, consumer purchase, etc., but before the product is sold, the circulation information only includes production information;
[0090] After the product is sold, the product information such as the product owner can be updated through a dedicated sales system, which is not specifically limited here;
[0091] The manufacturer platform sends the UID, the basic information of the product, the transaction information of the product and the preset public key to the blockchain end;
[0092] The blockchain end saves the UID, the basic information of the commodity, the commodity transaction information and the preset public key into a block, and the preset public key corresponds to the first preset private key shard and the second preset private key shard, such as Figure 3 As shown, the block includes the version number, the hash value of the previous block, the Merklet root node, the timestamp and the business data, and the business data is the UID, the basic information of the commodity, the preset public key and the commodity transaction information;
[0093] The basic information of the commodity includes the raw materials, process, production date, batch and manufacturing plant of the commodity; the preset private key includes the first preset private key shard and the second preset private key shard; the first preset private key shard and the second preset private key shard are both partial keys in an asymmetric algorithm, and the first preset private key shard and the second preset private key are used to form a signature effect of a complete private key;
[0094] The storage of the basic information of the goods on the goods side, the manufacturer platform side and the blockchain side is conducive to better product traceability for buyers. The multi-terminal storage of basic information of goods is conducive to the security and reliability of product traceability and the real-time display of product traceability;
[0095] like Figure 4 As shown, steps S1-S3 are the process of identifying the authenticity of the product;
[0096] S1. The product end receives the authenticity identification information of the product, and signs the authenticity identification information using a preset private key to obtain the first signature data, such as Figure 4 As shown;
[0097] The authenticity identification information includes the basic information of the commodity, commodity transaction information and commodity terminal identification;
[0098] Specifically, when a product is sold, the smart terminal authentication APP sends the authenticity authentication information to the product end, and the product end receives the basic product information, the product transaction information and the product end identifier of the product;
[0099] Determine the first preset private key fragment according to the commodity end identifier, and use the first preset private key fragment to sign the commodity end identifier and the commodity transaction information to obtain first signature data;
[0100] At this time, the commodity transaction information is the transaction information after the commodity is sold once;
[0101] The commodity end sends the commodity end identifier and the first signature data to the manufacturer platform end;
[0102] S2. The manufacturer platform receives the first signature data and the authenticity identification information, and signs the first signature data using the preset private key according to the authenticity identification information to obtain second signature data;
[0103] The preset private key includes a second preset private key fragment;
[0104] Specifically, Figure 4 As shown, the manufacturer platform receives the first signature data and the commodity terminal identifier;
[0105] Determine the second preset private key fragment according to the commodity terminal identifier, and use the second preset private key fragment to sign the first signature data to obtain second signature data;
[0106] The manufacturer platform sends the second signature data and the commodity terminal identifier to the blockchain terminal;
[0107] S3. The blockchain terminal receives the second signature data and the authenticity identification information, and uses a preset public key corresponding to the authenticity identification information to verify the second signature data to obtain an authenticity identification result of the commodity;
[0108] Specifically, Figure 4 As shown, the blockchain end receives the second signature data and the commodity end identifier;
[0109] Determine a preset public key according to the commodity terminal identifier, and use the preset public key to verify the second signature data to obtain an authenticity identification result of the commodity;
[0110] S4. The commodity end receives the authenticity identification result, and updates the preset private key based on the authenticity identification result.
[0111] Embodiment 2
[0112] Please refer to Figure 1 , 5 Based on the first embodiment, this embodiment further defines how to update the preset private key, specifically:
[0113] like Figure 5 As shown, steps S41-S43 are the key update process: S41, the commodity end receives the authenticity identification result;
[0114] The commodity end determines whether the authenticity identification result is true. If not, the commodity is determined to be false and the authenticity identification result is displayed. If yes, the commodity is determined to be true, and the first preset private key shard and the commodity transaction information are updated according to the commodity end identifier to obtain the updated first preset private key shard and the updated commodity transaction information;
[0115] The commodity end sends the commodity end identifier, the updated first preset private key fragment and the updated commodity transaction information to the manufacturer platform end, such as Figure 5 As shown;
[0116] S42, the manufacturer platform receives the commodity end identifier, the updated first preset private key fragment and the updated commodity transaction information, and updates the second preset private key fragment and the preset public key according to the commodity end identifier and the updated first preset private key fragment, to obtain an updated second preset private key fragment and an updated preset public key;
[0117] The manufacturer platform sends the commodity terminal identifier, the updated preset public key and the updated commodity transaction information to the blockchain terminal, such as Figure 5 As shown;
[0118] S43, the blockchain end receives the commodity end identifier, the updated preset public key and the updated commodity transaction information;
[0119] The blockchain end obtains the corresponding basic information of the commodity according to the commodity end identifier, and generates a new block according to the commodity end identifier, the updated preset public key, the updated commodity transaction information and the commodity basic information;
[0120] Specifically, the blockchain end obtains the corresponding basic information of the commodity from the existing block according to the commodity end identifier, such as Figure 5 As shown;
[0121] When a commodity is identified or traded multiple times, the blockchain end will query through the commodity end identifier and obtain multiple blocks corresponding to the commodity. Then, it will search in the order of transaction time to obtain the most recent block. The preset public key in the most recent block is the latest public key. In addition, the multiple blocks corresponding to the commodity can reflect the circulation status of the commodity.
[0122] Embodiment 3
[0123] Please refer to Figure 2 , a commodity anti-counterfeiting terminal includes a commodity end, a manufacturer platform end and a blockchain end; the commodity end includes a first memory, a first processor and a first computer program stored in the first memory and executable on the first processor, the manufacturer platform end includes a second memory, a second processor and a second computer program stored in the second memory and executable on the second processor, the blockchain end includes a third memory, a third processor and a third computer program stored in the third memory and executable on the third processor, when the first processor executes the first computer program, each step of the commodity anti-counterfeiting method in Embodiment 1 or Embodiment 2 is implemented, when the second processor executes the second computer program, each step of the commodity anti-counterfeiting method in Embodiment 1 or Embodiment 2 is implemented, when the third processor executes the third computer program, each step of the commodity anti-counterfeiting method in Embodiment 1 or Embodiment 2 is implemented.
[0124] In summary, the present invention provides a commodity anti-counterfeiting method and terminal, in which the commodity end receives the commodity basic information, the commodity transaction information and the commodity end identifier of the commodity, determines the first preset private key shard according to the commodity end identifier, and uses the first preset private key shard to sign the commodity end identifier and the commodity transaction information to obtain first signature data; the manufacturer platform end receives the first signature data and the commodity end identifier, determines the second preset private key shard according to the commodity end identifier, and uses the second preset private key shard to sign the first signature data to obtain second signature data; the blockchain end receives the second signature data and the commodity end identifier, determines the preset public key according to the commodity end identifier, and uses the preset public key to verify the second signature data to obtain the authenticity identification result of the commodity, utilizes the key sharing technology, and places the sharded keys on different terminals to improve the security of the encryption process, and utilizes the "unalterable" and "decentralized" characteristics of the blockchain to ensure the reliability and The authentication is open and transparent; when the product end determines that the authenticity authentication result is true, the first preset private key shard and the product transaction information are updated according to the product end identifier, the manufacturer platform end updates the second preset private key shard and the preset public key according to the product end identifier and the updated first preset private key shard, and the blockchain end generates a new block according to the product end identifier, the updated preset public key, the updated product transaction information and the basic information of the product, thereby realizing the key update. When the product is authenticated again, the updated private key can be used for anti-counterfeiting again, thereby realizing multiple anti-counterfeiting, and because the private key can be updated in time after the authentication is completed, even if the private key is obtained by the counterfeiter during the anti-counterfeiting process, the private key obtained by the counterfeiter will be invalidated during the next product authenticity authentication. In addition, the entire anti-counterfeiting process is realized by the cooperation of the three ends, which can effectively avoid the anti-counterfeiting information of one end being stolen, resulting in a decrease in the security of the entire anti-counterfeiting process, thereby realizing multiple anti-counterfeiting while improving the security and reliability of anti-counterfeiting.
[0125] The above descriptions are merely embodiments of the present invention and are not intended to limit the patent scope of the present invention. Any equivalent transformations made using the contents of the present invention's specification and drawings, or directly or indirectly applied in related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A commodity anti-counterfeiting method, characterized in that: include: The commodity end receives the authenticity identification information of the commodity, and signs the authenticity identification information using a preset private key to obtain first signature data; The manufacturer platform receives the first signature data and the authenticity identification information, and signs the first signature data using the preset private key according to the authenticity identification information to obtain second signature data; The blockchain end receives the second signature data and the authenticity identification information, and uses a preset public key corresponding to the authenticity identification information to verify the second signature data to obtain an authenticity identification result of the commodity; The commodity end receives the authenticity identification result, and updates the preset private key based on the authenticity identification result; The authenticity identification information includes basic commodity information, commodity transaction information and commodity terminal identification; The preset private key includes a first preset private key fragment and a second preset private key fragment; The commodity end receives the authenticity identification information of the commodity, and signs the authenticity identification information using a preset private key, and obtains the first signature data as follows: The commodity terminal receives the commodity basic information, the commodity transaction information and the commodity terminal identifier of the commodity; Determine the first preset private key fragment according to the commodity end identifier, and use the first preset private key fragment to sign the commodity end identifier and the commodity transaction information to obtain first signature data; The manufacturer platform receives the first signature data and the authenticity identification information, and signs the first signature data using the preset private key according to the authenticity identification information, and obtains the second signature data as follows: The manufacturer platform receives the first signature data and the product terminal identifier; The second preset private key fragment is determined according to the commodity end identifier, and the first signature data is signed using the second preset private key fragment to obtain second signature data.
2. A commodity anti-counterfeiting method according to claim 1, characterized in that: The blockchain end receives the second signature data and the authenticity identification information, and verifies the second signature data using a preset public key corresponding to the authenticity identification information, and obtains the authenticity identification result of the commodity, including: The blockchain end receives the second signature data and the commodity end identifier; A preset public key is determined according to the commodity terminal identifier, and the second signature data is verified using the preset public key to obtain an authenticity identification result of the commodity.
3. A commodity anti-counterfeiting method according to claim 1, characterized in that: The commodity end receives the authenticity identification result, and updates the preset private key based on the authenticity identification result, including: The commodity terminal receives the authenticity identification result; The commodity end determines whether the authenticity identification result is true, and if not, determines the commodity as false; if so, determines the commodity as true, and updates the first preset private key shard and the commodity transaction information according to the commodity end identifier to obtain an updated first preset private key shard and updated commodity transaction information; The manufacturer platform receives the commodity end identifier, the updated first preset private key fragment, and the updated commodity transaction information, and updates the second preset private key fragment and the preset public key according to the commodity end identifier and the updated first preset private key fragment, to obtain an updated second preset private key fragment and an updated preset public key; The manufacturer platform sends the commodity terminal identifier, the updated preset public key and the updated commodity transaction information to the blockchain terminal; The blockchain end receives the commodity end identifier, the updated preset public key and the updated commodity transaction information; The blockchain end obtains the corresponding basic information of the commodity according to the commodity end identifier, and generates a new block according to the commodity end identifier, the updated preset public key, the updated commodity transaction information and the commodity basic information.
4. A commodity anti-counterfeiting terminal, characterized in that: The method comprises a commodity end, a producer platform end and a blockchain end; the commodity end comprises a first memory, a first processor and a first computer program stored in the first memory and executable on the first processor, the producer platform end comprises a second memory, a second processor and a second computer program stored in the second memory and executable on the second processor, the blockchain end comprises a third memory, a third processor and a third computer program stored in the third memory and executable on the third processor, and the first processor implements the following steps when executing the first computer program: Receive the authenticity identification information of the commodity, and sign with a preset private key based on the authenticity identification information to obtain first signature data; receive the authenticity identification result, and update the preset private key based on the authenticity identification result; When the second processor executes the second computer program, the following steps are implemented: receiving the first signature data and the authenticity identification information, and signing the first signature data using the preset private key according to the authenticity identification information to obtain second signature data; When the third processor executes the third computer program, the following steps are implemented: Receiving the second signature data and the authenticity identification information, and verifying the second signature data using a preset public key corresponding to the authenticity identification information to obtain an authenticity identification result of the commodity; The authenticity identification information includes basic commodity information, commodity transaction information and commodity terminal identification; The preset private key includes a first preset private key fragment and a second preset private key fragment; When the first processor executes the first computer program, it receives the authenticity identification information of the commodity, and signs the authenticity identification information using a preset private key, and obtains the first signature data as follows: Receiving the commodity basic information, the commodity transaction information and the commodity terminal identifier of the commodity; Determine the first preset private key fragment according to the commodity end identifier, and use the first preset private key fragment to sign the commodity end identifier and the commodity transaction information to obtain first signature data; When the second processor executes the second computer program, it receives the first signature data and the authenticity identification information, and signs the first signature data using the preset private key according to the authenticity identification information, and obtains the second signature data as follows: Receiving the first signature data and the commodity terminal identifier; The second preset private key fragment is determined according to the commodity end identifier, and the first signature data is signed using the second preset private key fragment to obtain second signature data.
5. A commodity anti-counterfeiting terminal according to claim 4, characterized in that: When the third processor executes the third computer program, it receives the second signature data and the authenticity identification information, and uses a preset public key corresponding to the authenticity identification information to verify the second signature data, and obtains the authenticity identification result of the commodity, including: Receiving the second signature data and the commodity terminal identifier; A preset public key is determined according to the commodity terminal identifier, and the second signature data is verified using the preset public key to obtain an authenticity identification result of the commodity.
6. A commodity anti-counterfeiting terminal according to claim 4, characterized in that: The first processor executes the first computer program to receive the authenticity identification result, and updates the preset private key based on the authenticity identification result, including: When the first processor executes the first computer program, receiving the authenticity identification result is achieved; When the first processor executes the first computer program, it determines whether the authenticity identification result is true, and if not, determines the commodity as false; if so, determines the commodity as true, and updates the first preset private key shard and the commodity transaction information according to the commodity end identifier to obtain an updated first preset private key shard and updated commodity transaction information; When the second processor executes the second computer program, it receives the commodity end identifier, the updated first preset private key fragment, and the updated commodity transaction information, and updates the second preset private key fragment and the preset public key according to the commodity end identifier and the updated first preset private key fragment, to obtain the updated second preset private key fragment and the updated preset public key; When the first processor executes the first computer program, the commodity terminal identifier, the updated preset public key, and the updated commodity transaction information are sent to the blockchain terminal; The third processor receives the commodity terminal identifier, the updated preset public key and the updated commodity transaction information when executing the third computer program; When the third processor executes the third computer program, it obtains the corresponding basic information of the commodity according to the commodity-end identifier, and generates a new block according to the commodity-end identifier, the updated preset public key, the updated commodity transaction information and the commodity basic information.
Citation Information
Patent Citations
System and method for identifying authenticity of general commodities
CN102236862A
Temporary identity authentication method, device and system
CN110177088A
Anti-counterfeiting method and system
CN110310130A