CN109472604B - Product anti-counterfeiting method and system based on real-name block chain - Google Patents

Product anti-counterfeiting method and system based on real-name block chain Download PDF

Info

Publication number
CN109472604B
CN109472604B CN201811492271.8A CN201811492271A CN109472604B CN 109472604 B CN109472604 B CN 109472604B CN 201811492271 A CN201811492271 A CN 201811492271A CN 109472604 B CN109472604 B CN 109472604B
Authority
CN
China
Prior art keywords
transaction
platform
real
verification
name
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811492271.8A
Other languages
Chinese (zh)
Other versions
CN109472604A (en
Inventor
严志
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Core Chain Beijing Technology Co ltd
Original Assignee
Core Chain Beijing Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Core Chain Beijing Technology Co ltd filed Critical Core Chain Beijing Technology Co ltd
Priority to CN201811492271.8A priority Critical patent/CN109472604B/en
Publication of CN109472604A publication Critical patent/CN109472604A/en
Application granted granted Critical
Publication of CN109472604B publication Critical patent/CN109472604B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3829Payment protocols; Details thereof insuring higher security of transaction involving key management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/018Certifying business or products

Abstract

The invention relates to a product anti-counterfeiting method based on a real-name block chain, which comprises the following steps: the terminal scans a graphic code carried by a product, and analyzes the graphic code to obtain a first product number, signature information and an actual name responsibility address, wherein the graphic code is signed and issued by an enterprise node through a private key corresponding to the actual name responsibility address and is disclosed on an actual name block chain; the terminal sends the first product number, the signature information and the real-name responsibility address to the platform; the platform generates a verification transaction package according to the first product number and the signature information, and sends the verification transaction package to an enterprise node corresponding to the real-name responsibility address in a transaction form; the enterprise node verifies the first product number and the signature information, generates a verification result transaction package, and sends the verification result transaction package to the platform according to the original route; the platform returns the verification result corresponding to the verification result transaction packet to the terminal; the terminal carries out anti-counterfeiting judgment on the product according to the verification result, so that the anti-counterfeiting accuracy is improved.

Description

Product anti-counterfeiting method and system based on real-name block chain
Technical Field
The invention relates to a computer technology, in particular to a product anti-counterfeiting method and a product anti-counterfeiting system based on a real-name block chain.
Background
With the development of economy, the commodity economy is steadily developed, but counterfeit and shoddy products still exist in the market.
The existing commodity anti-counterfeiting mode is based on an anonymous block chain, namely, a merchant uploads the serial number of a commodity by using a merchant client to want a block chain network, a public key and a private key corresponding to needs are configured by adopting a non-permutation algorithm, the public key is fed back to the merchant, and a two-dimensional code is generated according to the public key and printed on the commodity.
Disclosure of Invention
Therefore, it is necessary to provide a product anti-counterfeiting method and system based on a real-name block chain for solving the problem of commodity anti-counterfeiting failure.
A product anti-counterfeiting method based on real-name block chains comprises the following steps:
the method comprises the steps that a terminal scans a graphic code carried by a product, and analyzes the graphic code to obtain a first product number, signature information and an actual name responsibility address, wherein the graphic code is signed and published by an enterprise node through a private key corresponding to the actual name responsibility address and is shown on an actual name block chain;
the terminal sends the first product number, the signature information and the real-name responsibility address to the platform;
the platform generates a verification transaction package according to the first product number and the signature information, and sends the verification transaction package to an enterprise node corresponding to the real-name responsibility address in a transaction form;
the enterprise node verifies the first product number and the signature information, generates a verification result transaction packet and sends the verification result transaction packet to the platform according to the original route;
the platform returns the verification result corresponding to the verification result transaction packet to the terminal;
and the terminal performs anti-counterfeiting judgment on the product according to the verification result.
In one embodiment, the verifying the first product number and the signature information by the enterprise node includes:
the enterprise node decodes the signature information through a public key corresponding to the real-name responsibility address to obtain a second product number;
the enterprise node judges whether the second product number is the same as the first product number;
if the first product number is the same as the second product number, the enterprise node judges whether the number of times that the first product number is verified exceeds a preset number of times;
and if not, the enterprise node generates a verification result transaction packet with successful verification, otherwise, the enterprise node generates a verification result transaction packet with failed verification.
In one embodiment, the platform generates a verification transaction package according to the first product number and the signature information, and includes:
the platform signs the first product number and the signature information through a secret key distributed to the terminal by the platform;
the platform obtains a first transaction value;
and the platform packages the first transaction value, the signed first product number and the signature information to obtain a verification transaction package.
In one embodiment, the enterprise node generates a verification result transaction package with successful verification, including:
the enterprise node obtains a second transaction value;
the enterprise node packs the first transaction value and the second transaction value to obtain a verification result transaction packet which is verified successfully;
the platform returns the verification result corresponding to the verification result transaction packet to the terminal, and the method comprises the following steps:
when the platform analyzes the verification result transaction packet which is successfully verified to obtain a first transaction value and a second transaction value, the platform obtains a real-name address corresponding to the second transaction value and recovers the first transaction value;
the platform judges whether the real-name address is matched with the real-name responsibility address;
and when the real-name address is matched with the real-name responsibility address, the platform returns a verification result of successful verification and the second transaction value to the terminal.
In one embodiment, the method further comprises:
the enterprise node packs the product pictures to a verification result transaction packet which is verified successfully;
the platform analyzes the verification result transaction packet which is successfully verified to obtain the product picture;
and the platform also returns the product picture to the terminal.
In one embodiment, the enterprise node generates a verification result transaction package that fails verification, including:
the enterprise node packs the second transaction value to obtain a verification result transaction packet with verification failure;
the platform returns the verification result corresponding to the verification result transaction packet to the terminal, and the method comprises the following steps:
and when the platform analyzes the verification result transaction packet with the verification failure to obtain only the first transaction value, the platform recovers the first transaction value and returns the verification result with the verification failure to the terminal.
In one embodiment, the method further comprises:
the enterprise node generates a first product number corresponding to the product;
the enterprise node signs the first product number through a private key corresponding to the real-name address to obtain signature information;
and the enterprise node generates a graphic code according to the first product number, the signature information and the real-name responsibility address.
In one embodiment, the method further comprises:
the terminal analyzes the graphic code to obtain a platform website;
the terminal sends the first product number, the signature information and the real-name responsibility address to the platform, and the method comprises the following steps:
and the terminal sends the first product number, the signature information and the real-name responsibility address to a platform corresponding to the platform website.
A product anti-counterfeiting system based on a real-name blockchain, the system comprising:
the terminal is used for scanning a graphic code carried by a product, analyzing the graphic code to obtain a first product number, signature information and a real-name responsibility address, wherein the graphic code is signed and disclosed on a real-name block chain by an enterprise node through a private key corresponding to the real-name responsibility address; the terminal sends the first product number, the signature information and the real-name responsibility address to the platform;
the platform is used for generating a verification transaction package according to the first product number and the signature information and sending the verification transaction package to an enterprise node corresponding to the real-name responsibility address in a transaction form;
the enterprise node is used for verifying the first product number and the signature information, generating a verification result transaction package and sending the verification result transaction package to the platform according to an original route;
the platform is also used for returning the verification result corresponding to the verification result transaction packet to the terminal;
and the terminal is also used for carrying out anti-counterfeiting judgment on the product according to the verification result.
In one embodiment, the enterprise node is further configured to decode the signature information by the enterprise node through a public key corresponding to the real-name address to obtain a second product number; judging whether the second product number is the same as the first product number or not; if so, judging whether the number of times that the first product number is verified exceeds a preset number of times; if not, generating a verification result transaction packet with successful verification, otherwise, generating a verification result transaction packet with failed verification.
According to the product anti-counterfeiting method and system based on the real-name block chain, the graphic code carried by the product is issued by the enterprise node through the private key corresponding to the real-name responsibility address and is disclosed on the real-name block chain, no intermediate process exists, so that the graphic code cannot be counterfeited, the terminal scans the graphic code to obtain the first product number, the signature information and the real-name responsibility address, and then sends the first product number, the signature information and the real-name responsibility address to the platform, the platform sends the first product number and the signature information to the enterprise node corresponding to the real-name address for anti-counterfeiting verification, the anti-counterfeiting verification process is disclosed on the real-name block chain, one-time effectiveness of the graphic code is guaranteed, and the anti-counterfeiting accuracy of the product is guaranteed through a one-go-one-time transaction handshaking process.
Drawings
FIG. 1 is a diagram illustrating an embodiment of a product anti-counterfeiting system based on a real-name blockchain;
FIG. 2 is a flowchart of a method for product anti-counterfeiting based on real-name blockchains in an embodiment;
fig. 3 is a timing diagram of an anti-counterfeiting method for a product based on a real-name blockchain in an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Before describing in detail embodiments that are in accordance with the present invention, it should be observed that the embodiments reside primarily in combinations of steps and system components related to real name blockchain based product counterfeiting prevention and systems. Accordingly, the system components and method steps have been represented where appropriate by conventional symbols in the drawings, showing only those details that are pertinent to understanding the embodiments of the present invention so as not to obscure the disclosure with details that will be readily apparent to those of ordinary skill in the art having the benefit of the description herein.
In this document, relational terms such as left and right, top and bottom, front and back, first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. The terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus.
Referring to fig. 1, in one embodiment, an anti-counterfeiting system for a product based on a real-name block chain is provided, where the system includes a terminal, a platform, and an enterprise node, where the terminal scans a graphic code carried by the product and analyzes the graphic code to obtain a first product number, signature information, and a real-name responsibility address, the terminal sends the first product number, signature information, and real-name responsibility address to the platform, and the platform allocates an address to the terminal, where the address belongs to the platform, and the platform is responsible for performing real-name authentication on a user. The platform generates a verification transaction packet according to the first product number and the signature information, the verification transaction packet is sent to an enterprise node corresponding to an enterprise responsibility address in a transaction mode in a block chain, after a service program deployed on the enterprise node receives the transaction, the first product number and the signature information can be verified, after the verification is completed, the enterprise node sends the verification result transaction packet to the platform in a transaction mode according to the original route, the platform analyzes the verification result transaction packet to obtain a verification result, and the verification result is returned to the terminal, so that the whole anti-counterfeiting verification process is completed, the anti-counterfeiting verification process is automatically disclosed on the real name block chain in the transaction mode, the one-time effectiveness of the graphic code is guaranteed, and the anti-counterfeiting accuracy of the product is guaranteed through the transaction handshaking process of one-time and one-time return.
In one embodiment, a product anti-counterfeiting method based on a real-name blockchain is provided, and the method can include:
s202: the terminal scans the graphic code carried by the product, analyzes the graphic code to obtain a first product number, signature information and an actual name responsibility address, and the graphic code is signed and issued by the enterprise node through a private key corresponding to the actual name responsibility address and is disclosed on an actual name block chain.
Specifically, after the blockchain address is generated, authorization on the real-name chain is required to allow participation in the system activity, including receiving and initiating transactions, and is also performed by the administrator after the social responsibility of the address holder is clarified. In the real-name blockchain, each real-name responsibility address has an explicit responsible person and an explicit social attribute, and the transaction means that a relationship is generated between two addresses, namely a relationship is generated between two explicit responsible persons in the real-name blockchain, the transaction bears token and data, the token is a pass which is an endogenous data book in the system and can carry out value circulation, and the data stays between the two addresses and cannot be modified.
The graphic code carried by the product can be a two-dimensional code, a bar code and the like, the graphic code is issued by an enterprise node in the real-name block chain through a private key corresponding to a real-name responsibility address and is stored in the real-name block chain, and as other parties are not involved in the process and the private key of the enterprise node cannot be copied, the graphic code cannot be forged, and the like, so that the anti-counterfeiting safety is ensured. Specifically, the graphic code issued by the enterprise node through the private key corresponding to the real-name responsible address may include a first product number, signature information and the real-name responsible address, where the first product number is a unique number assigned to a product by an enterprise and has uniqueness, the signature information is obtained by the enterprise node signing the first product number through the private key, and since the first product number has uniqueness and the private key has security, both the security and the uniqueness of the signature information are ensured, and the real-name responsible address is sent for a transaction, i.e., representing a production enterprise of the product, so that the corresponding enterprise node can be accurately found in the real-name block chain for anti-counterfeit verification. Specifically, the generating process of the graphic code may include: the enterprise node may generate a first product number corresponding to the product; the enterprise node signs the first product number through a private key corresponding to the real-name address to obtain signature information; and the enterprise node generates a graphic code according to the first product number, the signature information and the real-name responsibility address.
The process is also the beginning of the anti-counterfeiting process, and if the graphic code is not available, namely the terminal does not scan the graphic code, the anti-counterfeiting application cannot be started.
S204: and the terminal sends the first product number, the signature information and the real-name responsibility address to the platform.
Specifically, after the terminal obtains the first product number, the signature information, and the real-name responsible address through analysis, the terminal may send the first product number, the signature information, and the real-name responsible address to the corresponding platform. For example, the terminal may scan a two-dimensional code carried by a product in a manner of 'wechat scanning', and the like, then analyze the two-dimensional code to obtain a first product number, signature information, and an actual name responsibility address carried by the two-dimensional code, and send the analyzed information to a platform corresponding to the platform website according to a preconfigured platform website.
S206: and the platform generates a verification transaction package according to the first product number and the signature information, and sends the verification transaction package to the enterprise node corresponding to the real-name responsibility address in a transaction form.
Specifically, after receiving the first product number, the signature information, and the real-name responsible address, the platform generates a verification transaction packet, that is, data in the transaction, according to the first product number and the signature information, wherein in order to implement propagation on the real-name block chain, the platform may assign an address to the terminal, where the address is attributed to the platform and is responsible for real-name authentication of the user. The platform can also allocate a certain value for the transaction so as to facilitate the transmission of the transaction on the real-name blockchain, so that the verification transaction packet comprises pass 'value' and data 'first product number and signature information', and the verification transaction packet can be transmitted on the real-name blockchain. Specifically, the verification transaction package can be transmitted in a transaction form on the real-name block chain, so that data can be kept on the real-name block chain, and each node for calculating the transaction is real-name due to the real-name block chain, so that the integrity of the evidence chain is ensured, and the safety of an anti-counterfeiting process is ensured.
S208: and the enterprise node verifies the first product number and the signature information, generates a verification result transaction packet and sends the verification result transaction packet to the platform according to the original route.
Specifically, after receiving the verification transaction package through the service program deployed in the enterprise node, the enterprise node parses the verification transaction package to obtain a first product number and signature information, and verifies the signature information, for example, the public key corresponding to the real-name responsible address of the enterprise node is used to verify the signature information so as to obtain a second product number, whether the first product number is the same as the second product number is judged, if so, the verification is passed, and for anti-counterfeiting, the verification times are generally limited, that is, the first verification can be regarded as anti-counterfeiting verification, the second verification can be performed after illegal molecules recycle the verified two-dimensional code, and counterfeit and shoddy products are manufactured, so the enterprise node can also judge whether the second verification is performed, that is, the judgment is performed according to the information stored in the real-name block chain, and if the second verification is performed, the verification is considered to be failed, so that a verification result transaction packet with the verification failed can be generated, and if the verification is performed for the first time, the verification is considered to be successful, so that a verification result transaction packet with the verification successful can be generated. Therefore, the enterprise node returns the verification result transaction packet to the platform in a transaction form according to the original route, so that the anti-counterfeiting verification is completed, namely the chain certificate storage and the whole service process are completed in a bidirectional transaction form.
S210: and the platform returns the verification result corresponding to the verification result transaction packet to the terminal, and the terminal performs anti-counterfeiting judgment on the product according to the verification result.
And after receiving the verification result transaction package, the platform analyzes the transaction package to obtain a verification result, and then returns the verification result to the terminal so as to facilitate the terminal to judge whether the product is a fake product.
Specifically, the enterprise node and the platform send a verification transaction to the enterprise node based on contract agreement of chain certificate storage, then the enterprise node returns a verification result transaction to the platform after verification, and the chain certificate storage is realized and the whole business process is disclosed through bidirectional transaction.
According to the product anti-counterfeiting method based on the real-name block chain, the graphic code carried by the product is issued by the enterprise node through the private key corresponding to the real-name responsibility address and is disclosed on the real-name block chain, and no intermediate process exists, so that the graphic code cannot be counterfeited, after the terminal scans the graphic code to obtain the first product number, the signature information and the real-name responsibility address, the first product number, the signature information and the real-name responsibility address are sent to the platform, the platform sends the first product number and the signature information to the enterprise node corresponding to the real-name responsibility address for anti-counterfeiting verification, the anti-counterfeiting verification process is disclosed on the real-name block chain, the one-time effectiveness of the graphic code is guaranteed, and the anti-counterfeiting accuracy of the product is guaranteed through the one-go-one-return transaction process.
In one embodiment, the verification process of the enterprise node on the signature information is mainly to ensure that the signature information is not tampered and the graphic code is valid once. Specifically, the verifying the first product number and the signature information by the enterprise node may include: the enterprise node decodes the signature information through a public key corresponding to the real-name responsibility address to obtain a second product number; the enterprise node judges whether the second product number is the same as the first product number; if so, the enterprise node judges whether the number of times that the first product number is verified exceeds a preset number of times; if not, the enterprise node generates a verification result transaction packet with successful verification, otherwise, the enterprise node generates a verification result transaction packet with failed verification.
Specifically, each anti-counterfeiting verification is performed, the real-name blockchain is stored and disclosed, so that the real-name blockchain can be recorded as long as a certain product number of a certain enterprise is verified, and the effectiveness of the graphic code is guaranteed once.
For example, after the enterprise node receives a first product number and signature information sent in a transaction form, the enterprise node first decodes and verifies the signature information through a public key corresponding to a real-name responsible address to obtain a second product number, and then to determine whether the signature information is tampered, it may determine whether the first product number is the same as the second product number, for example, if the first product number is tampered and the signature information is not tampered, the first product number is different from the second product number, the verification fails, and if the signature information is tampered, the first product number is different from the second product number, and the verification fails. And when the first product number is the same as the second product number, in order to ensure the one-time validity of the graphic code, the enterprise node may further determine whether the number of times that the first product number is verified exceeds a preset number of times, for example, 1 time, if the first product number has been verified by anti-counterfeiting, the certificate may be stored on the real-name block chain, and therefore, the determination is performed again, the certificate may be considered as counterfeit, so that a verification result transaction package that the verification fails may be generated, and otherwise, a verification result transaction package that the verification succeeds is generated.
In the above embodiment, since whether the product number corresponding to the graphic code is verified and stored in the real-name block chain or not, the product number cannot be tampered, thereby ensuring one-time validity of the graphic code.
In one embodiment, the platform generates the verification transaction package according to the first product number and the signature information, and may include: the platform signs the first product number and the signature information through a key corresponding to the platform; the platform acquires a first transaction value; and packaging the first transaction value, the signed first product number and the signature information by the platform to obtain a verification transaction package.
In one embodiment, the generating of the verification result transaction package with successful verification by the enterprise node may include: the enterprise node acquires a second transaction value; and the enterprise node packs the first transaction value and the second transaction value to obtain a verification result transaction packet which is verified successfully. The step of returning the verification result corresponding to the verification result transaction packet to the terminal by the platform may include: when the platform analyzes the verification result transaction packet which is successfully verified to obtain a first transaction value and a second transaction value, the platform obtains a real-name address corresponding to the second transaction value and recovers the first transaction value; the platform judges whether the real-name address is matched with the real-name responsibility address; and when the real-name address is matched with the real-name responsibility address, the platform returns a verification result of successful verification and a second transaction value to the terminal.
In one embodiment, the product anti-counterfeiting method based on the real-name blockchain may further include: the enterprise node packs the product pictures to a verification result transaction packet which is verified successfully; the platform analyzes the verification result transaction packet which is successfully verified to obtain a product picture; the platform also returns a product picture to the terminal.
In one embodiment, the generating of the verification result transaction package for which the verification fails by the enterprise node may include: the enterprise node packs the second transaction value to obtain a verification result transaction packet which fails to be verified; the platform returns the verification result corresponding to the verification result transaction package to the terminal, and the method comprises the following steps: when the platform analyzes the verification result transaction packet with the verification failure to obtain only the first transaction value, the platform recovers the first transaction value and returns the verification result with the verification failure to the terminal.
In one embodiment, the product anti-counterfeiting method based on the real-name blockchain may further include: and the terminal analyzes the graphic code to obtain a platform website. The terminal sends the first product number, the signature information and the real-name responsibility address to the platform, and the method may include: and the terminal sends the first product number, the signature information and the real-name responsibility address to a platform corresponding to the platform website.
Referring to fig. 3, fig. 3 is a timing diagram of a product anti-counterfeiting method based on a real-name blockchain in an embodiment, in which each detail of the product anti-counterfeiting method based on the real-name blockchain is described in detail.
It is important to point out that the method links the address with social responsibility through the real-name block chain, thereby ensuring the integrity of the evidence chain. And secondly, the signature information is verified through bidirectional transaction, the signature information is obtained by signing through a private key corresponding to the real-name responsibility address, the intermediate process is not tampered, the integrity of an evidence chain is ensured, and the transaction process is disclosed on the real-name block chain through the real-name block chain, so that the one-time effectiveness of the graphic code is ensured. Fourthly, a reward mechanism, namely a second transaction value, is introduced, so that the user has power to perform anti-counterfeiting, the whole people participate in the anti-counterfeiting, the anti-counterfeiting range of the product is expanded, and more legal responsibilities need to be faced to counterfeiters because the counterfeiters cannot return the second transaction value to the user.
Specifically, referring to fig. 3, an enterprise node performs registration authorization on a real-name blockchain, then after the enterprise node produces products, the enterprise node allocates a product number to each product, the product number has uniqueness, then signs the first product number through a private key of a real-name responsibility address corresponding to the enterprise node to obtain signature information, and then the enterprise node packages and stores the first product number, the signature information, and the real-name responsibility address in a graphic code. Therefore, the graphic code is formed by the signature of the private key of the real-name responsible address corresponding to the enterprise node, and the private key has the characteristics of non-copying and counterfeiting, so the graphic code also has the characteristics of non-copying and counterfeiting.
After a user purchases a product, the user scans a graphic code carried by the product through a terminal of the user, such as a mobile phone, a tablet and the like, for example, scans the graphic code carried by the product through WeChat scanning and the like, so that a first product number, signature information and an actual name responsibility address can be obtained, optionally, a platform website corresponding to the platform can also be obtained, and the terminal can send the first product number, the signature information and the actual name responsibility address to the platform corresponding to the platform website. The platform acquires an identifier of a terminal, such as a terminal MAC address and the like, after receiving a first product number, signature information and a real-name responsible address, judges whether the terminal is connected with the platform for the first time, if so, the platform allocates the terminal with an address to uniquely identify the terminal, the platform is responsible for real-name authentication of a user to complete the uplink behavior of the terminal, and if not, the platform inquires the address allocated to the terminal before to complete the uplink behavior of the terminal.
After receiving the first product number, the signature information and the real-name responsibility address, the platform acquires a first transaction value, namely the token pass, packages the first product number and the signature information to obtain data, packages the data and the pass to obtain a verification transaction package, for example, signs the first product number and the signature information through a key distributed by the platform for the terminal to obtain the data, so that the verification transaction package can be sent to an enterprise node corresponding to the real-name responsibility address in a transaction form, and a service program deployed on the enterprise node can receive the transaction.
After receiving the verification transaction packet, the enterprise node firstly verifies through the public key corresponding to the real-name responsible address corresponding to the terminal to obtain a first product number and signature information, then decodes the signature information through the public key corresponding to the real-name responsible address corresponding to the enterprise node to obtain a second product number, and then can judge whether the first product number is the same as the second product number in order to judge whether the signature information is tampered, for example, if the first product number is tampered and the signature information is not tampered, the first product number is different from the second product number, the verification fails, if the signature information is tampered, the first product number is different from the second product number, and the verification fails. And when the first product number is the same as the second product number, in order to ensure the one-time validity of the graphic code, the enterprise node may further determine whether the number of times that the first product number is verified exceeds a preset number of times, for example, 1 time, if the first product number has been verified by anti-counterfeiting, the certificate may be stored on the real-name block chain, and therefore, the determination is performed again, the certificate may be considered as counterfeit, so that a verification result transaction package that the verification fails may be generated, and otherwise, a verification result transaction package that the verification succeeds is generated.
The verification result transaction packet which is successfully verified carries a second transaction value and the first transaction value, the second transaction value is rewards returned to the terminal by the enterprise node, and the like, and the verification result transaction packet which is failed in verification only contains the first transaction value. The generation mode of the verification result transaction packet with successful verification comprises the following steps: the enterprise node firstly acquires a second check value, then packages the first transaction value and the second transaction value to obtain a verification result transaction packet which is verified successfully, and optionally, the enterprise node can also package a product picture into the verification result transaction packet, namely the verification result transaction packet comprises a token pass 'the first transaction value and the second transaction value', and further comprises a data 'product picture'. And the enterprise node returns the verification result transaction packet to the platform so that the platform can obtain the verification result conveniently.
The verification result transaction packet which fails to be verified only carries a first transaction value, namely the transaction value distributed by the platform, the first transaction value is used as a token of the verification result transaction packet, and the verification failure information is used as data, so that the platform can send the verification result transaction packet to the platform in a transaction mode, and the platform can conveniently obtain the verification result.
And after generating the verification result transaction package, the platform returns the verification result transaction package to the platform through a form of transaction. For example, when a verification result transaction packet with successful verification is returned, the platform analyzes the verification result transaction packet to obtain a first transaction value and a second transaction value, wherein the first transaction value is recycled, and when the platform analyzes the second transaction value, the verification is passed, and in order to ensure the safety, the platform judges whether the real-name address corresponding to the second transaction value is matched with the real-name responsibility address, for example, whether the real-name address is the real-name responsibility address issued by the corresponding real-name responsibility address, if so, the platform can return an anti-counterfeiting result with the passing verification to the terminal, so that the anti-counterfeiting of the whole product is completed, and the second transaction value is returned to the terminal to award the terminal. Optionally, the platform analyzes the verification result transaction package which is successfully verified to obtain the product picture, so that the platform can return the product picture to the terminal, so that the terminal can check whether the product picture is the same as the actual product, for example, when the product picture is trousers and the actual product is a jacket, the anti-counterfeiting failure is also indicated.
When the platform receives the verification result transaction packet which fails to be verified, the platform analyzes the transaction packet to obtain only the first transaction value, the platform recovers the first transaction value, and then the terminal returns the verification result which fails to be verified, so that the reward of the second transaction value does not exist.
In the above embodiment, a complete anti-counterfeiting process is provided, in which the address is linked with social responsibility by a real-name block chain, thereby ensuring the integrity of the evidence chain. And secondly, the signature information is verified through bidirectional transaction, the signature information is obtained by signing through a private key corresponding to the real-name responsibility address, the intermediate process is not tampered, the integrity of an evidence chain is ensured, and the transaction process is disclosed on the real-name block chain through the real-name block chain, so that the one-time effectiveness of the graphic code is ensured. Fourthly, a reward mechanism, namely a second transaction value, is introduced, so that the user has power to perform anti-counterfeiting, the whole people participate in the anti-counterfeiting, the anti-counterfeiting range of the product is expanded, and more legal responsibilities need to be faced to counterfeiters because the counterfeiters cannot return the second transaction value to the user.
In one embodiment, a product anti-counterfeiting system based on a real-name blockchain is provided, and the system comprises:
the terminal is used for scanning a graphic code carried by a product, analyzing the graphic code to obtain a first product number, signature information and an actual name responsibility address, wherein the graphic code is signed and published by an enterprise node through a private key corresponding to the actual name responsibility address and is shown on an actual name block chain; and the terminal sends the first product number, the signature information and the real-name responsibility address to the platform.
And the platform is used for generating a verification transaction package according to the first product number and the signature information and sending the verification transaction package to the enterprise node corresponding to the real-name responsibility address in a transaction form.
And the enterprise node is used for verifying the first product number and the signature information, generating a verification result transaction packet and sending the verification result transaction packet to the platform according to the original route.
The platform is also used for returning the verification result corresponding to the verification result transaction packet to the terminal.
The terminal is also used for carrying out anti-counterfeiting judgment on the product according to the verification result.
In one embodiment, the enterprise node may further be configured to decode the signature information by the enterprise node through a public key corresponding to the real-name responsible address to obtain a second product number; judging whether the second product number is the same as the first product number; if the first product number is the same as the second product number, judging whether the number of times that the first product number is verified exceeds a preset number of times; if not, generating a verification result transaction packet with successful verification, otherwise, generating a verification result transaction packet with failed verification.
In one embodiment, the platform may be further configured to sign the first product number and the signature information with a key assigned by the platform to the terminal; acquiring a first transaction value; and packaging the first transaction value, the signed first product number and the signature information to obtain a verification transaction package.
In one embodiment, the enterprise node may be further operable to obtain a second transaction value; and packaging the first transaction value and the second transaction value to obtain a verification result transaction packet which is verified successfully.
The platform is also used for acquiring a real-name address corresponding to the second transaction value and recycling the first transaction value when the platform analyzes the verification result transaction packet which is successfully verified to obtain the first transaction value and the second transaction value; judging whether the real-name address is matched with the real-name responsibility address; and when the real-name address is matched with the real-name responsibility address, returning a verification result of successful verification and a second transaction value to the terminal.
In one embodiment, the enterprise node may be further configured to package the product picture into a verification result transaction package with successful verification.
The platform can also be used for analyzing the verification result transaction packet which is successfully verified to obtain a product picture and returning the product picture to the terminal.
In one embodiment, the enterprise node may be further configured to package the second transaction value into a verification-result transaction package that fails verification.
The platform is also used for recovering the first transaction value and returning the verification result of the verification failure to the terminal when the platform analyzes the verification result transaction packet of the verification failure to obtain the first transaction value.
In one embodiment, the enterprise node may be further configured to generate a first product number corresponding to the product; signing the first product number through a private key corresponding to the real-name address to obtain signature information; and generating a graphic code according to the first product number, the signature information and the real-name responsibility address.
In one embodiment, the terminal can be further used for analyzing the graphic code to obtain a platform website; and sending the first product number, the signature information and the real-name responsibility address to a platform corresponding to the platform website.
For the above specific limitations on the product anti-counterfeiting system based on the real-name blockchain, reference may be made to the above limitations on the product anti-counterfeiting method based on the real-name blockchain, and details are not described here.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a non-volatile computer-readable storage medium, and can include the processes of the embodiments of the methods described above when the program is executed. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), or the like.
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as being within the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A product anti-counterfeiting method based on real-name block chains comprises the following steps:
the method comprises the steps that a terminal scans a graphic code carried by a product, and analyzes the graphic code to obtain a first product number, signature information and an actual name responsibility address, wherein the graphic code is signed and published by an enterprise node through a private key corresponding to the actual name responsibility address and is shown on an actual name block chain;
the terminal sends the first product number, the signature information and the real-name responsibility address to the platform;
the platform generates a verification transaction package according to the first product number and the signature information, and sends the verification transaction package to an enterprise node corresponding to the real-name responsibility address in a transaction form, wherein the verification transaction package comprises: the platform signs the first product number and the signature information through a secret key distributed to the terminal by the platform; the platform obtains a first transaction value; the platform packages the first transaction value, the signed first product number and the signature information to obtain a verification transaction package;
the enterprise node verifies the first product number and the signature information, generates a verification result transaction package, and sends the verification result transaction package to the platform according to the original route, and the method comprises the following steps: the enterprise node obtains a second transaction value; the enterprise node packs the first transaction value and the second transaction value to obtain a verification result transaction packet which is verified successfully;
the platform returns the verification result corresponding to the verification result transaction packet to the terminal, and the method comprises the following steps: when the platform analyzes the verification result transaction packet which is successfully verified to obtain a first transaction value and a second transaction value, the platform obtains a real-name address corresponding to the second transaction value and recovers the first transaction value; the platform judges whether the real-name address is matched with the real-name responsibility address; when the real-name address is matched with the real-name responsibility address, the platform returns a verification result of successful verification and the second transaction value to the terminal;
and the terminal performs anti-counterfeiting judgment on the product according to the verification result.
2. The method of claim 1, wherein the verifying the first product number and the signature information by the enterprise node comprises:
the enterprise node decodes the signature information through a public key corresponding to the real-name responsibility address to obtain a second product number;
the enterprise node judges whether the second product number is the same as the first product number;
if the first product number is the same as the second product number, the enterprise node judges whether the number of times that the first product number is verified exceeds a preset number of times;
and if not, the enterprise node generates a verification result transaction packet with successful verification, otherwise, the enterprise node generates a verification result transaction packet with failed verification.
3. The method of claim 1, further comprising:
the enterprise node packs the product pictures to a verification result transaction packet which is verified successfully;
the platform analyzes the verification result transaction packet which is successfully verified to obtain the product picture;
and the platform also returns the product picture to the terminal.
4. The method of claim 1, wherein the enterprise node generating a verification result transaction package that fails verification comprises:
the enterprise node packs the second transaction value to obtain a verification result transaction packet with verification failure;
the platform returns the verification result corresponding to the verification result transaction packet to the terminal, and the method comprises the following steps:
and when the platform analyzes the verification result transaction packet with the verification failure to obtain only the first transaction value, the platform recovers the first transaction value and returns the verification result with the verification failure to the terminal.
5. The method of any one of claims 1 to 4, further comprising:
the enterprise node generates a first product number corresponding to the product;
the enterprise node signs the first product number through a private key corresponding to the real-name address to obtain signature information;
and the enterprise node generates a graphic code according to the first product number, the signature information and the real-name responsibility address.
6. The method of any one of claims 1 to 4, further comprising:
the terminal analyzes the graphic code to obtain a platform website;
the terminal sends the first product number, the signature information and the real-name responsibility address to the platform, and the method comprises the following steps:
and the terminal sends the first product number, the signature information and the real-name responsibility address to a platform corresponding to the platform website.
7. A product anti-counterfeiting system based on real-name blockchains is characterized by comprising:
the terminal is used for scanning a graphic code carried by a product, analyzing the graphic code to obtain a first product number, signature information and a real-name responsibility address, wherein the graphic code is signed and disclosed on a real-name block chain by an enterprise node through a private key corresponding to the real-name responsibility address; the terminal sends the first product number, the signature information and the real-name responsibility address to the platform;
the platform is used for generating a verification transaction package according to the first product number and the signature information and sending the verification transaction package to an enterprise node corresponding to the real-name responsibility address in a transaction form, and comprises: the platform signs the first product number and the signature information through a secret key distributed to the terminal by the platform; the platform obtains a first transaction value; the platform packages the first transaction value, the signed first product number and the signature information to obtain a verification transaction package;
the enterprise node is used for verifying the first product number and the signature information, generating a verification result transaction package, and sending the verification result transaction package to the platform according to an original route, and comprises: the enterprise node obtains a second transaction value; the enterprise node packs the first transaction value and the second transaction value to obtain a verification result transaction packet which is verified successfully;
the platform is further configured to return a verification result corresponding to the verification result transaction packet to the terminal, and includes: when the platform analyzes the verification result transaction packet which is successfully verified to obtain a first transaction value and a second transaction value, the platform obtains a real-name address corresponding to the second transaction value and recovers the first transaction value; the platform judges whether the real-name address is matched with the real-name responsibility address; when the real-name address is matched with the real-name responsibility address, the platform returns a verification result of successful verification and the second transaction value to the terminal;
and the terminal is also used for carrying out anti-counterfeiting judgment on the product according to the verification result.
8. The system according to claim 7, wherein the enterprise node is further configured to decode the signature information by the enterprise node through a public key corresponding to a real-name address to obtain a second product number; judging whether the second product number is the same as the first product number or not; if so, judging whether the number of times that the first product number is verified exceeds a preset number of times; if not, generating a verification result transaction packet with successful verification, otherwise, generating a verification result transaction packet with failed verification.
9. The system of claim 7, wherein the enterprise node is further configured to package the product picture into a verification result transaction package that is verified successfully;
the platform is further used for analyzing the verification result transaction packet which is successfully verified to obtain the product picture and returning the product picture to the terminal.
10. The system of claim 7, wherein the enterprise node is further configured to package the second transaction value into a verification result transaction package that fails verification;
and the platform is also used for recovering the first transaction value and returning the verification result of the verification failure to the terminal when the platform analyzes the verification result transaction packet of the verification failure to obtain the first transaction value.
CN201811492271.8A 2018-12-07 2018-12-07 Product anti-counterfeiting method and system based on real-name block chain Active CN109472604B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811492271.8A CN109472604B (en) 2018-12-07 2018-12-07 Product anti-counterfeiting method and system based on real-name block chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811492271.8A CN109472604B (en) 2018-12-07 2018-12-07 Product anti-counterfeiting method and system based on real-name block chain

Publications (2)

Publication Number Publication Date
CN109472604A CN109472604A (en) 2019-03-15
CN109472604B true CN109472604B (en) 2021-06-15

Family

ID=65675949

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811492271.8A Active CN109472604B (en) 2018-12-07 2018-12-07 Product anti-counterfeiting method and system based on real-name block chain

Country Status (1)

Country Link
CN (1) CN109472604B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI696926B (en) * 2019-03-26 2020-06-21 財團法人亞洲大學 Establishment and inquiry method of production and sales resume of agricultural product quality
CN111815337B (en) * 2020-07-15 2024-04-09 深圳市中选科技有限公司 Block chain-based full-link anti-counterfeiting traceability method, system, intelligent terminal and storage medium
CN115550098B (en) * 2022-09-16 2023-05-05 哈尔滨工业大学 ARINC429 bus communication assembly and device based on MiniVPX framework

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180096175A1 (en) * 2016-10-01 2018-04-05 James L. Schmeling Blockchain Enabled Packaging
CN108764930A (en) * 2018-03-23 2018-11-06 成都众宜天成科技有限公司 The implementation method of commodity counterfeit prevention verification platform based on block chain structure
CN108256875A (en) * 2018-04-09 2018-07-06 王先笨 A kind of safe traceability system based on product supply chain
CN108446917A (en) * 2018-05-08 2018-08-24 炬众钛合(天津)科技发展有限公司 A kind of packing material system and method based on block chain
CN108694594A (en) * 2018-05-29 2018-10-23 阿里巴巴集团控股有限公司 Commodity source tracing method and device, electronic equipment based on block chain
CN108830616A (en) * 2018-06-08 2018-11-16 浙江捷尚人工智能研究发展有限公司 Antifake method for products, electronic equipment, storage medium and system based on block chain
CN108830617A (en) * 2018-06-12 2018-11-16 黑启栋 Super code anti-counterfeiting method and system based on block chain

Also Published As

Publication number Publication date
CN109472604A (en) 2019-03-15

Similar Documents

Publication Publication Date Title
JP6768960B2 (en) 2D barcode processing methods, devices, and systems
CN108876374B (en) Block chain network identity document authentication method and system
US10320807B2 (en) Systems and methods relating to the authenticity and verification of photographic identity documents
CN109472604B (en) Product anti-counterfeiting method and system based on real-name block chain
US9864983B2 (en) Payment method, payment server performing the same and payment system performing the same
CN107146120B (en) Electronic invoice generation method and generation device
CN106067849B (en) Digital signature method and device suitable for PDF document
KR101952498B1 (en) Loan service providing method using black chain and system performing the same
CN107294900A (en) Identity registration method and apparatus based on biological characteristic
CN108242999B (en) Key escrow method, device and computer-readable storage medium
Lewison et al. Backing rich credentials with a blockchain PKI
CN106789911A (en) A kind of network identity validation method and system based on block chain
CN110309663B (en) Privacy authentication method and system based on block chain
CN112165382B (en) Software authorization method and device, authorization server side and terminal equipment
CN111740841B (en) Verification method and device for tracing codes
CN109858911A (en) Qualification verification method, device, system, equipment and readable storage medium storing program for executing
CN111327564A (en) Access method and device for alliance chain
CN105591745A (en) Method and system for performing identity authentication on user using third-party application
KR20070007021A (en) Method and system for user attestation-signatures with attributes
WO2015154482A1 (en) One-time certificate anti-counterfeiting tracing system based on mobile terminal and rfid
CN105761091A (en) Red packet code two-stage two-dimensional code security coding method
CN107918873A (en) Item authentication plateform system and item authentication management system
CN110969445A (en) Anti-counterfeiting method based on NFC
CN110598433A (en) Anti-counterfeiting information processing method and device based on block chain
CN105260900A (en) Product unique identification anti-counterfeiting method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant