CN108830616A - Antifake method for products, electronic equipment, storage medium and system based on block chain - Google Patents

Antifake method for products, electronic equipment, storage medium and system based on block chain Download PDF

Info

Publication number
CN108830616A
CN108830616A CN201810589578.3A CN201810589578A CN108830616A CN 108830616 A CN108830616 A CN 108830616A CN 201810589578 A CN201810589578 A CN 201810589578A CN 108830616 A CN108830616 A CN 108830616A
Authority
CN
China
Prior art keywords
block chain
chain address
counterfeiting chip
certificate
publisher
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.)
Pending
Application number
CN201810589578.3A
Other languages
Chinese (zh)
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.)
Zhejiang Zechk Artificial Intelligence Research And Development Co Ltd
Original Assignee
Zhejiang Zechk Artificial Intelligence Research And Development 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 Zhejiang Zechk Artificial Intelligence Research And Development Co Ltd filed Critical Zhejiang Zechk Artificial Intelligence Research And Development Co Ltd
Priority to CN201810589578.3A priority Critical patent/CN108830616A/en
Publication of CN108830616A publication Critical patent/CN108830616A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/10544Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation by scanning of the records by radiation in the optical part of the electromagnetic spectrum
    • G06K7/10821Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation by scanning of the records by radiation in the optical part of the electromagnetic spectrum further details of bar or optical code scanning devices
    • G06K7/10861Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation by scanning of the records by radiation in the optical part of the electromagnetic spectrum further details of bar or optical code scanning devices sensing of data fields affixed to objects or articles, e.g. coded labels
    • 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
    • G06Q30/0185Product, service or business identity fraud

Abstract

The present invention provides the antifake method for products based on block chain, including step:Anti-counterfeiting chip is verified and is initialized, the fake certification request of user is received, writing operation is carried out to anti-counterfeiting chip, generates product certification, certificate profile is stored by transaction to block chain;The anti-counterfeit certificate publisher block chain address that will acquire, the block chain address of anti-counterfeiting chip, qualified products original certificate file package, cryptographic calculation is carried out to group package informatin and calculates digest value, it signs to digest value, that calls anti-counterfeiting chip writes data-interface, anti-counterfeiting chip is written into above- mentioned information, it calls the interface of anti-counterfeiting chip to obtain anti-counterfeit certificate information, anti-counterfeit certificate information is parsed, anti-counterfeit certificate information is verified.The invention further relates to electronic equipment, storage medium, the product anti-fake systems based on block chain.Present invention unforgeable matter with higher, it is low in cost, easy to implement, strong technical support is provided for product false proof.

Description

Antifake method for products, electronic equipment, storage medium and system based on block chain
Technical field
The present invention relates to products antifake technique fields, more particularly to the antifake method for products based on block chain, electronic equipment, Storage medium and system.
Background technique
With the high speed development of national economy and the continuous improvement of living standards of the people, counterfeit and shoddy goods are increasing, Very big destruction is caused to market economy, and affects national credit quality, in order to increase consumer to the degree of belief of product, dimension The interests of businessman are protected, anti-counterfeiting technology initially enters the sight of people.What is applied in anti-counterfeiting technology at present is most widely two dimensional code Anti-counterfeiting technology.Two-dimension code anti-counterfeit technology is that the corresponding information of each product is encoded into a two dimensional code, and consumer can pass through It is true and false to check product to scan this two dimensional code acquisition product information.However since the generating mode of two dimensional code is simple, there are many Method generates, and the less expensive of two dimensional code duplication, and what the two dimensional code of counterfeit scanned out is still the true of businessman's publication Product information, so that fake products still row, therefore it is anti-fake to achieve the purpose that be badly in need of safer, more reliable technological means.
Summary of the invention
For overcome the deficiencies in the prior art, one of the objects of the present invention is to provide the product false proof sides based on block chain Method solves the problems, such as that existing anti-counterfeiting technology production is simple, easily forges, cannot provide unforgeable.
The present invention provides the antifake method for products based on block chain, includes the following steps:
Product certification is generated, anti-counterfeiting chip is verified and is initialized, the fake certification request of user is received, to anti-fake Chip carries out writing operation, generates product certification, and the product certification includes certificate profile, anti-counterfeit certificate publisher block chain Location, anti-counterfeiting chip block chain address, by the certificate profile by transaction store to block chain;
Generate anti-counterfeit certificate, obtain qualified products original certificate file, by the anti-counterfeit certificate publisher block chain address, The block chain address of the anti-counterfeiting chip, the qualified products original certificate file package, generation group package informatin, will be described Group package informatin carries out cryptographic calculation, calculates the digest value of described group of package informatin, is plucked by anti-counterfeit certificate publisher private key to described It is worth and signs, generate signing messages, that calls anti-counterfeiting chip writes data-interface, by publisher's block chain address, prevents Anti-counterfeiting chip is written in the block chain address of pseudo- chip, original certificate file, signing messages, and anti-counterfeiting chip is attached to entity certificate On;
Off-line verification anti-counterfeit certificate calls the interface of anti-counterfeiting chip to obtain anti-counterfeit certificate information, to the antifake certificate letter Breath is parsed, and publisher's block chain address, the block chain address of anti-counterfeiting chip, original certificate file, A.L.S. are obtained Breath, calls the export public key interface of anti-counterfeiting chip, stores the public key, the first block chain address is generated, by first block Chain address is compared with the block chain address of the anti-counterfeiting chip, the digital signature interface of anti-counterfeiting chip is called, by anti-fake Chip private key signs to random number, returns to signature result, is verified, passed through to the signature result by the public key The public key generates the second block chain address, by the second block chain address compared with publisher's block chain address, leads to The public key is crossed to make publisher's block chain address, the block chain address of anti-counterfeiting chip, original certificate file, signing messages For original text, the correctness of the signing messages is verified.
Further, further include step online verification anti-counterfeit certificate, call the reading data-interface of anti-counterfeiting chip, obtain anti- Pseudo- certificate information parses the anti-counterfeit certificate information, obtains the block of publisher's block chain address, anti-counterfeiting chip Chain address, original certificate file call the reading data-interface of anti-counterfeiting chip, obtain anti-counterfeit certificate information and signing messages, adjust With the export public key interface of anti-counterfeiting chip, the first block chain address is generated, by the first block chain address and the anti-fake core The block chain address of piece compares, by the public key generate the second block chain address, by the second block chain address with it is described Publisher's block chain address compares, and searches corresponding transaction in block chain by the block chain address of the anti-counterfeiting chip and believes Breath, in verifying transaction the information that is embedded in whether with publisher's block chain address, the block chain address of anti-counterfeiting chip, original card Written matter is consistent, calls the reading data-interface of anti-counterfeiting chip, reads signing messages, by the public key by the area of publisher Block chain address, the block chain address of anti-counterfeiting chip, original certificate file verify the correctness of signing messages as original text, call The digital signature interface of anti-counterfeiting chip, signs to random number by anti-counterfeiting chip private key, signature result is returned to, from anti-fake core Public key is calculated in the block chain address of piece, public key obtained by calculation verifies the signature result.
Further, the anti-counterfeiting chip is specially NFC chip, and the qualified products original certificate file includes xml text Part and pic file, described group of package informatin format are publisher's block chain address | | the block chain address of anti-counterfeiting chip | | xml document | | pic file.
Further, it further includes the abstract that described group of package informatin is calculated by SHA3 algorithm that the step, which generates anti-counterfeit certificate, Value carries out ECDSA signature to the digest value by anti-counterfeit certificate publisher private key.
A kind of electronic equipment, including:Processor;
Memory;And program, wherein described program is stored in the memory, and is configured to by processor It executes, described program includes for executing the above-mentioned antifake method for products based on block chain.
A kind of computer readable storage medium, is stored thereon with computer program, and the computer program is held by processor The above-mentioned antifake method for products based on block chain of row.
Based on the product anti-fake system of block chain, including:
Generate product certification module:For being verified and being initialized to anti-counterfeiting chip, the fake certification for receiving user is asked It asks, writing operation is carried out to anti-counterfeiting chip, generate product certification, the product certification includes certificate profile, anti-counterfeit certificate distribution Person's block chain address, the block chain address of anti-counterfeiting chip store the certificate profile to block chain by transaction;
Generate anti-counterfeit certificate module:For obtaining qualified products original certificate file, by area of the anti-counterfeit certificate publisher Block chain address, the block chain address of the anti-counterfeiting chip, the qualified products original certificate file package, generation group packet letter Described group of package informatin is carried out cryptographic calculation, calculates the digest value of described group of package informatin, pass through anti-counterfeit certificate publisher private key by breath It signs to the digest value, generates signing messages, that calls anti-counterfeiting chip writes data-interface, by publisher's block chain Anti-counterfeiting chip is written in address, the block chain address of anti-counterfeiting chip, original certificate file, signing messages, and anti-counterfeiting chip is attached to reality On body certificate;
Off-line verification anti-counterfeit certificate module:For calling the interface of anti-counterfeiting chip to obtain anti-counterfeit certificate information, to described anti- Pseudo- certificate information is parsed, and publisher's block chain address, the block chain address of anti-counterfeiting chip, original certificate text are obtained Part, signing messages call the export public key interface of anti-counterfeiting chip, store the public key, generate the first block chain address, will be described First block chain address is compared with the block chain address of the anti-counterfeiting chip, calls the digital signature interface of anti-counterfeiting chip, It is signed by anti-counterfeiting chip private key to random number, returns to signature result, the signature result is carried out by the public key Verifying generates the second block chain address by the public key, by the second block chain address and publisher's block chain Location is compared, by the public key by publisher's block chain address, the block chain address of anti-counterfeiting chip, original certificate file, Signing messages verifies the correctness of the signing messages as original text.
It further, further include online verification anti-counterfeit certificate module:For calling the reading data-interface of anti-counterfeiting chip, obtain Anti-counterfeit certificate information is taken, the anti-counterfeit certificate information is parsed, obtains publisher's block chain address, anti-counterfeiting chip Block chain address, original certificate file call the reading data-interface of anti-counterfeiting chip, obtain anti-counterfeit certificate information and A.L.S. Breath calls the export public key interface of anti-counterfeiting chip, generates the first block chain address, and the first block chain address is prevented with described The block chain address of pseudo- chip compares, by the public key generate the second block chain address, will the second block chain address and Publisher's block chain address compares, and corresponding transaction is searched in block chain by the block chain address of the anti-counterfeiting chip Information, in verifying transaction the information that is embedded in whether with publisher's block chain address, the block chain address of anti-counterfeiting chip, original Certificate file is consistent, calls the reading data-interface of anti-counterfeiting chip, reads signing messages, by the public key by the publisher Block chain address, the block chain address of anti-counterfeiting chip, original certificate file verify the correctness of signing messages as original text, adjust It with the digital signature interface of anti-counterfeiting chip, is signed by anti-counterfeiting chip private key to random number, signature result is returned to, from anti-fake Public key is calculated in the block chain address of chip, public key obtained by calculation verifies the signature result.
Further, the anti-counterfeiting chip is specially NFC chip, and the qualified products original certificate file includes xml text Part and pic file, described group of package informatin format are publisher's block chain address | | the block chain address of anti-counterfeiting chip | | xml document | | pic file.
Further, the generation anti-counterfeit certificate module further includes the abstract that described group of package informatin is calculated by SHA3 algorithm Value carries out ECDSA signature to the digest value by anti-counterfeit certificate publisher private key.
Compared with prior art, the beneficial effects of the present invention are:
The present invention provides the antifake method for products based on block chain, includes the following steps:Product certification is generated, to anti-fake core Piece is verified and is initialized, and is received the fake certification request of user, is carried out writing operation to anti-counterfeiting chip, generates product card Book, product certification includes certificate profile, anti-counterfeit certificate publisher block chain address, the block chain address of anti-counterfeiting chip, by certificate Abstract is stored by transaction to block chain;Anti-counterfeit certificate is generated, qualified products original certificate file is obtained, anti-counterfeit certificate is issued Person's block chain address, the block chain address of anti-counterfeiting chip, qualified products original certificate file package, generation group package informatin, Will group package informatin carry out cryptographic calculation, the digest value of calculating group package informatin, by anti-counterfeit certificate publisher private key to digest value into Row signature, generates signing messages, that calls anti-counterfeiting chip writes data-interface, by publisher's block chain address, the area of anti-counterfeiting chip Anti-counterfeiting chip is written in block chain address, original certificate file, signing messages, and anti-counterfeiting chip is attached on entity certificate;Off-line verification Anti-counterfeit certificate calls the interface of anti-counterfeiting chip to obtain anti-counterfeit certificate information, parses to anti-counterfeit certificate information, obtains publisher Block chain address, the block chain address of anti-counterfeiting chip, original certificate file, signing messages, call the export public key of anti-counterfeiting chip Interface, storage of public keys generate the first block chain address, the block chain address of the first block chain address and anti-counterfeiting chip are compared Compared with, the digital signature interface of anti-counterfeiting chip is called, is signed by anti-counterfeiting chip private key to random number, signature result is returned, Signature result is verified by public key, the second block chain address is generated by public key, by the second block chain address and distribution Person's block chain address compares, by public key that publisher's block chain address, the block chain address of anti-counterfeiting chip, original certificate is literary Part, signing messages verify the correctness of signing messages as original text.The invention further relates to a kind of electronic equipment, storage medium, bases In the product anti-fake system of block chain.The present invention has high unforgeable matter, and low in cost, easy to implement, has Stronger competitiveness provides strong technical support for product false proof.
The above description is only an overview of the technical scheme of the present invention, in order to better understand the technical means of the present invention, And can be implemented in accordance with the contents of the specification, the following is a detailed description of the preferred embodiments of the present invention and the accompanying drawings. A specific embodiment of the invention is shown in detail by following embodiment and its attached drawing.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present invention, constitutes part of this application, this hair Bright illustrative embodiments and their description are used to explain the present invention, and are not constituted improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is the antifake method for products flow chart of the invention based on block chain;
Fig. 2 is the product anti-fake system structural schematic diagram of the invention based on block chain.
Specific embodiment
In the following, being described further in conjunction with attached drawing and specific embodiment to the present invention, it should be noted that not Under the premise of conflicting, new implementation can be formed between various embodiments described below or between each technical characteristic in any combination Example.
Based on the antifake method for products of block chain, as shown in Figure 1, including the following steps:
Product certification is generated, anti-counterfeiting chip is verified and is initialized, anti-counterfeiting chip is supplied to user and carries out writing card, User carries out fake certification to anti-counterfeiting chip, receives the fake certification request of user, if the fake certification of anti-counterfeiting chip passes through, Writing operation is carried out to anti-counterfeiting chip, generates product certification, product certification includes certificate profile, anti-counterfeit certificate publisher block chain Address, anti-counterfeiting chip block chain address, certificate profile is stored by transaction to block chain, in the present embodiment, block chain tool Body is ether mill block chain, it is preferred that anti-counterfeiting chip is specially NFC chip.
Anti-counterfeit certificate is generated, anti-counterfeit certificate publisher block chain address is obtained, the generation key pair for calling NFC chip to provide Interface generates key pair, exports public key, and generate the block chain address of NFC chip, obtains qualified products original certificate file, Preferably, qualified products original certificate file includes xml document and pic file, by anti-counterfeit certificate publisher block chain address, is prevented The block chain address of pseudo- chip, qualified products original certificate file package, generation group package informatin, and group package informatin format is hair Passerby's block chain address | | the block chain address of anti-counterfeiting chip | | xml document | | pic file.Group package informatin is subjected to encryption fortune It calculates, the digest value of calculating group package informatin, it is preferred that by the digest value of SHA3 algorithm calculating group package informatin, pass through anti-counterfeit certificate Publisher's private key signs to digest value, generates signing messages, it is preferred that by anti-counterfeit certificate publisher private key to digest value Carry out ECDSA signature.The anti-counterfeiting chip is called to write data-interface, by publisher block chain address, the block chain of anti-counterfeiting chip Anti-counterfeiting chip is written in location, original certificate file, signing messages, and anti-counterfeiting chip is attached on entity certificate.
Off-line verification anti-counterfeit certificate, in the present embodiment, verifying APP calls the interface of anti-counterfeiting chip to obtain antifake certificate letter Breath, parses anti-counterfeit certificate information, obtains publisher's block chain address, the block chain address of anti-counterfeiting chip, original certificate File, signing messages, call the export public key interface of anti-counterfeiting chip, and storage of public keys generates the first block chain address, by the firstth area Block chain address is compared with the block chain address of anti-counterfeiting chip, continues to execute downwards if consistent, if inconsistent verify mistake It loses, calls the digital signature interface of anti-counterfeiting chip, signed by anti-counterfeiting chip private key to random number, return to signature result, Signature result is verified by public key, continues to execute downwards if being verified, if verifying is led to not by authentication failed It crosses public key and generates the second block chain address, by the second block chain address compared with publisher's block chain address, continue if consistent Downwards execute, the authentication failed if inconsistent, by public key by publisher's block chain address, the block chain address of anti-counterfeiting chip, Original certificate file, signing messages verify the correctness of signing messages as original text.
In one embodiment, it is preferred that further include step online verification anti-counterfeit certificate, verifying APP calls anti-counterfeiting chip Data-interface is read, anti-counterfeit certificate information is obtained, anti-counterfeit certificate information is parsed, publisher's block chain address is obtained, prevents The block chain address of pseudo- chip, original certificate file, call the reading data-interface of anti-counterfeiting chip, obtain anti-counterfeit certificate information and Signing messages, calls the export public key interface of anti-counterfeiting chip, generates the first block chain address, by the first block chain address with it is anti-fake The block chain address of chip compares, and continues to execute downwards if consistent, if inconsistent authentication failed, generates second by public key Block chain address continues to execute downwards if consistent, if different by the second block chain address compared with publisher's block chain address Then authentication failed is caused, corresponding Transaction Information is searched in block chain by the block chain address of anti-counterfeiting chip, is verified in transaction Whether the information of insertion is consistent with publisher block chain address, the block chain address of anti-counterfeiting chip, original certificate file, if unanimously Then continue to execute downwards, the authentication failed if inconsistent calls the reading data-interface of anti-counterfeiting chip, reads signing messages, leads to Public key is crossed using publisher's block chain address, the block chain address of anti-counterfeiting chip, original certificate file as original text, verifies A.L.S. The correctness of breath continues to execute downwards if consistent, if inconsistent authentication failed, the digital signature of anti-counterfeiting chip is called to connect Mouthful, it is signed by anti-counterfeiting chip private key to random number, returns to signature result, calculated from the block chain address of anti-counterfeiting chip Public key out, public key obtained by calculation verify signature result, and certificate is true if being verified, if verifying does not pass through Then certificate is false.
A kind of electronic equipment, including:Processor;
Memory;And program, wherein program is stored in memory, and is configured to be executed by processor, journey Sequence includes for executing the above-mentioned antifake method for products based on block chain.
A kind of computer readable storage medium, is stored thereon with computer program, and computer program is executed by processor State the antifake method for products based on block chain.
Based on the product anti-fake system of block chain, as shown in Fig. 2, including:
Generate product certification module:For being verified and being initialized to anti-counterfeiting chip, the fake certification for receiving user is asked It asks, writing operation is carried out to anti-counterfeiting chip, generates product certification, product certification includes certificate profile, area of anti-counterfeit certificate publisher Block chain address, the block chain address of anti-counterfeiting chip are stored certificate profile to block chain by transaction, it is preferred that anti-counterfeiting chip Specially NFC chip.
Generate anti-counterfeit certificate module:For obtaining qualified products original certificate file, qualified products original certificate file packet Xml document and pic file are included, anti-counterfeit certificate publisher block chain address, the block chain address of anti-counterfeiting chip, qualified products are former Beginning certificate file packages, generation group package informatin, and group package informatin format is publisher's block chain address | | the area of anti-counterfeiting chip Block chain address | | xml document | | pic file.Will group package informatin carry out cryptographic calculation, the digest value of calculating group package informatin, preferably , by the digest value of SHA3 algorithm calculating group package informatin, signed by anti-counterfeit certificate publisher private key to digest value, it is raw At signing messages, it is preferred that carry out ECDSA signature to digest value by anti-counterfeit certificate publisher private key.Call anti-counterfeiting chip Data-interface is write, publisher's block chain address, the block chain address of anti-counterfeiting chip, original certificate file, signing messages are written Anti-counterfeiting chip is attached on entity certificate by anti-counterfeiting chip.
Off-line verification anti-counterfeit certificate module:For calling the interface of anti-counterfeiting chip to obtain anti-counterfeit certificate information, to antifake certificate Letter breath is parsed, and publisher's block chain address, the block chain address of anti-counterfeiting chip, original certificate file, A.L.S. are obtained Breath, calls the export public key interface of anti-counterfeiting chip, storage of public keys, generates the first block chain address, by the first block chain address with The block chain address of anti-counterfeiting chip is compared, and calls the digital signature interface of anti-counterfeiting chip, by anti-counterfeiting chip private key to Machine number is signed, and is returned to signature result, is verified by public key to signature result, with generating the second block chain by public key Location, by the second block chain address compared with publisher's block chain address, by public key by publisher's block chain address, anti-counterfeiting chip Block chain address, original certificate file, signing messages as original text, verify the correctness of signing messages.
In one embodiment, it is preferred that further include online verification anti-counterfeit certificate module:For calling the reading of anti-counterfeiting chip Data-interface obtains anti-counterfeit certificate information, parses to anti-counterfeit certificate information, obtains publisher's block chain address, anti-fake core The block chain address of piece, original certificate file call the reading data-interface of anti-counterfeiting chip, obtain anti-counterfeit certificate information and signature Information calls the export public key interface of anti-counterfeiting chip, the first block chain address is generated, by the first block chain address and anti-counterfeiting chip Block chain address compare, the second block chain address is generated by public key, by the second block chain address and publisher's block chain Location is compared, and is searched corresponding Transaction Information in block chain by the block chain address of anti-counterfeiting chip, is embedded in verifying transaction Whether information is consistent with publisher block chain address, the block chain address of anti-counterfeiting chip, original certificate file, calls anti-counterfeiting chip Reading data-interface, read signing messages, by public key by publisher's block chain address, the block chain address of anti-counterfeiting chip, Original certificate file verifies the correctness of signing messages as original text, the digital signature interface of anti-counterfeiting chip is called, by anti-fake Chip private key signs to random number, returns to signature result, calculates public key from the block chain address of anti-counterfeiting chip, pass through The public key being calculated verifies signature result.
The present invention provides the antifake method for products based on block chain, includes the following steps:Product certification is generated, to anti-fake core Piece is verified and is initialized, and is received the fake certification request of user, is carried out writing operation to anti-counterfeiting chip, generates product card Book, product certification includes certificate profile, anti-counterfeit certificate publisher block chain address, the block chain address of anti-counterfeiting chip, by certificate Abstract is stored by transaction to block chain;Anti-counterfeit certificate is generated, qualified products original certificate file is obtained, anti-counterfeit certificate is issued Person's block chain address, the block chain address of anti-counterfeiting chip, qualified products original certificate file package, generation group package informatin, Will group package informatin carry out cryptographic calculation, the digest value of calculating group package informatin, by anti-counterfeit certificate publisher private key to digest value into Row signature, generates signing messages, that calls anti-counterfeiting chip writes data-interface, by publisher's block chain address, the area of anti-counterfeiting chip Anti-counterfeiting chip is written in block chain address, original certificate file, signing messages, and anti-counterfeiting chip is attached on entity certificate;Off-line verification Anti-counterfeit certificate calls the interface of anti-counterfeiting chip to obtain anti-counterfeit certificate information, parses to anti-counterfeit certificate information, obtains publisher Block chain address, the block chain address of anti-counterfeiting chip, original certificate file, signing messages, call the export public key of anti-counterfeiting chip Interface, storage of public keys generate the first block chain address, the block chain address of the first block chain address and anti-counterfeiting chip are compared Compared with, the digital signature interface of anti-counterfeiting chip is called, is signed by anti-counterfeiting chip private key to random number, signature result is returned, Signature result is verified by public key, the second block chain address is generated by public key, by the second block chain address and distribution Person's block chain address compares, by public key that publisher's block chain address, the block chain address of anti-counterfeiting chip, original certificate is literary Part, signing messages verify the correctness of signing messages as original text.The invention further relates to a kind of electronic equipment, storage medium, bases In the product anti-fake system of block chain.The present invention has high unforgeable matter, and low in cost, easy to implement, has Stronger competitiveness provides strong technical support for product false proof.
More than, only presently preferred embodiments of the present invention is not intended to limit the present invention in any form;All current rows The those of ordinary skill of industry can be shown in by specification attached drawing and above and swimmingly implement the present invention;But all to be familiar with sheet special The technical staff of industry without departing from the scope of the present invention, is made a little using disclosed above technology contents The equivalent variations of variation, modification and evolution is equivalent embodiment of the invention;Meanwhile all substantial technologicals according to the present invention The variation, modification and evolution etc. of any equivalent variations to the above embodiments, still fall within technical solution of the present invention Within protection scope.

Claims (10)

1. the antifake method for products based on block chain, it is characterised in that include the following steps:
Product certification is generated, anti-counterfeiting chip is verified and is initialized, the fake certification request of user is received, to anti-counterfeiting chip Carry out writing operation, generate product certification, the product certification include certificate profile, anti-counterfeit certificate publisher block chain address, The block chain address of anti-counterfeiting chip stores the certificate profile to block chain by transaction;
Anti-counterfeit certificate is generated, qualified products original certificate file is obtained, by the anti-counterfeit certificate publisher block chain address, described The block chain address of anti-counterfeiting chip, the qualified products original certificate file package, generation group package informatin, by described group of packet Information carries out cryptographic calculation, the digest value of described group of package informatin is calculated, by anti-counterfeit certificate publisher private key to the digest value It signs, generates signing messages, that calls anti-counterfeiting chip writes data-interface, by publisher's block chain address, anti-fake core Anti-counterfeiting chip is written in the block chain address of piece, original certificate file, signing messages, and anti-counterfeiting chip is attached on entity certificate;
Off-line verification anti-counterfeit certificate, call anti-counterfeiting chip interface obtain anti-counterfeit certificate information, to the anti-counterfeit certificate information into Row parsing, obtains publisher's block chain address, the block chain address of anti-counterfeiting chip, original certificate file, signing messages, adjusts With the export public key interface of anti-counterfeiting chip, the public key is stored, the first block chain address is generated, by the first block chain address It is compared with the block chain address of the anti-counterfeiting chip, calls the digital signature interface of anti-counterfeiting chip, pass through anti-counterfeiting chip private Key signs to random number, returns to signature result, is verified by the public key to the signature result, pass through the public affairs Key generates the second block chain address, by the second block chain address compared with publisher's block chain address, by described Public key is using publisher's block chain address, the block chain address of anti-counterfeiting chip, original certificate file, signing messages as original Text verifies the correctness of the signing messages.
2. the antifake method for products as described in claim 1 based on block chain, it is characterised in that:It further include step online verification Anti-counterfeit certificate calls the reading data-interface of anti-counterfeiting chip, obtains anti-counterfeit certificate information, solves to the anti-counterfeit certificate information Analysis, obtains publisher's block chain address, the block chain address of anti-counterfeiting chip, original certificate file, calls anti-counterfeiting chip Data-interface is read, anti-counterfeit certificate information and signing messages are obtained, calls the export public key interface of anti-counterfeiting chip, generates the firstth area Block chain address is generated by the first block chain address compared with the block chain address of the anti-counterfeiting chip by the public key Second block chain address passes through the anti-fake core by the second block chain address compared with publisher's block chain address The block chain address of piece searches corresponding Transaction Information in block chain, the information being embedded in verifying transaction whether with the distribution Person's block chain address, the block chain address of anti-counterfeiting chip, original certificate file are consistent, and the reading data of anti-counterfeiting chip is called to connect Mouthful, signing messages is read, by the public key by publisher's block chain address, the block chain address of anti-counterfeiting chip, original Certificate file verifies the correctness of signing messages as original text, calls the digital signature interface of anti-counterfeiting chip, passes through anti-counterfeiting chip Private key signs to random number, returns to signature result, calculates public key from the block chain address of anti-counterfeiting chip, pass through calculating Obtained public key verifies the signature result.
3. the antifake method for products as claimed in claim 2 based on block chain, it is characterised in that:The anti-counterfeiting chip is specially NFC chip, the qualified products original certificate file include xml document and pic file, and described group of package informatin format is publisher Block chain address | | the block chain address of anti-counterfeiting chip | | xml document | | pic file.
4. the antifake method for products as claimed in claim 3 based on block chain, it is characterised in that:The step generates antifake certificate Book further includes the digest value that described group of package informatin is calculated by SHA3 algorithm, by anti-counterfeit certificate publisher private key to the abstract Value carries out ECDSA signature.
5. a kind of electronic equipment, it is characterised in that including:Processor;
Memory;And program, wherein described program is stored in the memory, and is configured to be held by processor Row, described program include requiring method described in 1-4 any one for perform claim.
6. a kind of computer readable storage medium, is stored thereon with computer program, it is characterised in that:The computer program quilt Processor executes the method as described in claim 1-4 any one.
7. the product anti-fake system based on block chain, it is characterised in that including:
Generate product certification module:For being verified and being initialized to anti-counterfeiting chip, the fake certification for receiving user is requested, right Anti-counterfeiting chip carries out writing operation, generates product certification, the product certification includes certificate profile, anti-counterfeit certificate publisher block Chain address, the block chain address of anti-counterfeiting chip store the certificate profile to block chain by transaction;
Generate anti-counterfeit certificate module:For obtaining qualified products original certificate file, by the anti-counterfeit certificate publisher block chain Address, the block chain address of the anti-counterfeiting chip, the qualified products original certificate file package, generation group package informatin, Described group of package informatin is subjected to cryptographic calculation, the digest value of described group of package informatin is calculated, passes through anti-counterfeit certificate publisher private key pair The digest value is signed, and generates signing messages, that calls anti-counterfeiting chip writes data-interface, by publisher's block chain Anti-counterfeiting chip is written in location, the block chain address of anti-counterfeiting chip, original certificate file, signing messages, and anti-counterfeiting chip is attached to entity On certificate;
Off-line verification anti-counterfeit certificate module:For calling the interface of anti-counterfeiting chip to obtain anti-counterfeit certificate information, to the antifake certificate Letter breath is parsed, and publisher's block chain address, the block chain address of anti-counterfeiting chip, original certificate file, label are obtained Name information, calls the export public key interface of anti-counterfeiting chip, stores the public key, the first block chain address is generated, by described first Block chain address is compared with the block chain address of the anti-counterfeiting chip, is called the digital signature interface of anti-counterfeiting chip, is passed through Anti-counterfeiting chip private key signs to random number, returns to signature result, is verified by the public key to the signature result, The second block chain address is generated by the public key, by the second block chain address and publisher's block chain address ratio Compared with, by the public key by publisher's block chain address, the block chain address of anti-counterfeiting chip, original certificate file, signature Information verifies the correctness of the signing messages as original text.
8. the product anti-fake system as claimed in claim 7 based on block chain, it is characterised in that:It further include that online verification is anti-fake Certificate module:For calling the reading data-interface of anti-counterfeiting chip, obtain anti-counterfeit certificate information, to the anti-counterfeit certificate information into Row parsing, obtains publisher's block chain address, the block chain address of anti-counterfeiting chip, original certificate file, calls anti-fake core The reading data-interface of piece obtains anti-counterfeit certificate information and signing messages, calls the export public key interface of anti-counterfeiting chip, generates the One block chain address passes through the public key by the first block chain address compared with the block chain address of the anti-counterfeiting chip The second block chain address is generated, by the second block chain address compared with publisher's block chain address, by described anti- The block chain address of pseudo- chip searches corresponding Transaction Information in block chain, the information being embedded in verifying transaction whether with it is described Publisher's block chain address, the block chain address of anti-counterfeiting chip, original certificate file are consistent, call the reading data of anti-counterfeiting chip Interface reads signing messages, by the public key by publisher's block chain address, block chain address, the original of anti-counterfeiting chip Beginning certificate file verifies the correctness of signing messages as original text, calls the digital signature interface of anti-counterfeiting chip, passes through anti-fake core Piece private key signs to random number, returns to signature result, calculates public key from the block chain address of anti-counterfeiting chip, pass through meter Obtained public key verifies the signature result.
9. the product anti-fake system as claimed in claim 8 based on block chain, it is characterised in that:The anti-counterfeiting chip is specially NFC chip, the qualified products original certificate file include xml document and pic file, and described group of package informatin format is publisher Block chain address | | the block chain address of anti-counterfeiting chip | | xml document | | pic file.
10. the product anti-fake system as claimed in claim 9 based on block chain, it is characterised in that:The generation anti-counterfeit certificate Module further includes the digest value that described group of package informatin is calculated by SHA3 algorithm, is plucked by anti-counterfeit certificate publisher private key to described It is worth and carries out ECDSA signature.
CN201810589578.3A 2018-06-08 2018-06-08 Antifake method for products, electronic equipment, storage medium and system based on block chain Pending CN108830616A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810589578.3A CN108830616A (en) 2018-06-08 2018-06-08 Antifake method for products, electronic equipment, storage medium and system based on block chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810589578.3A CN108830616A (en) 2018-06-08 2018-06-08 Antifake method for products, electronic equipment, storage medium and system based on block chain

Publications (1)

Publication Number Publication Date
CN108830616A true CN108830616A (en) 2018-11-16

Family

ID=64144456

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810589578.3A Pending CN108830616A (en) 2018-06-08 2018-06-08 Antifake method for products, electronic equipment, storage medium and system based on block chain

Country Status (1)

Country Link
CN (1) CN108830616A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109472604A (en) * 2018-12-07 2019-03-15 芯链(北京)科技有限公司 Antifake method for products and system based on real name block chain
CN109544182A (en) * 2018-11-20 2019-03-29 孟凡富 Product false proof verification method and system
TWI729781B (en) * 2020-04-21 2021-06-01 麥睿資訊股份有限公司 Data authentication system and data authentication method thereof

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109544182A (en) * 2018-11-20 2019-03-29 孟凡富 Product false proof verification method and system
CN109544182B (en) * 2018-11-20 2021-05-14 孟凡富 Product anti-counterfeiting verification method and system
CN109472604A (en) * 2018-12-07 2019-03-15 芯链(北京)科技有限公司 Antifake method for products and system based on real name block chain
TWI729781B (en) * 2020-04-21 2021-06-01 麥睿資訊股份有限公司 Data authentication system and data authentication method thereof

Similar Documents

Publication Publication Date Title
US11349666B2 (en) Electronically signing and distributing identification data as a service that provides proof of identity, integrity, validity and origin of data for non-repudiation and ID validation methods
CN110674523B (en) Method for confirming electronic contract signer by combining digital signature with handwritten signature
CN104615939B (en) Document generation method, verification method, device and system
CN107169776A (en) Product certification method for anti-counterfeit based on block chain technology
CN106548354A (en) A kind of commodity traceability system
JP5661772B2 (en) How to check if a product is genuine product manufacturer
CN108830616A (en) Antifake method for products, electronic equipment, storage medium and system based on block chain
CN108229596A (en) Combined two-dimension code, digital certificates carrier, generation, reading device and method
CN107886333A (en) A kind of Antiforge system and its method for anti-counterfeit with dynamic anti-fake information
CN203433739U (en) Anti-counterfeit label
CN113627958A (en) NFC anti-counterfeiting tracing method and server
EP3329635B1 (en) Counterfeit prevention
CN109472335A (en) A kind of lottery ticket anti-counterfeiting system and method for anti-counterfeit
CN108082723B (en) Anti-counterfeiting bottle cap based on CPU (Central processing Unit) password chip and working method thereof
CN108830613A (en) The anti-fake source tracing method and system of three-dimension code block chain
CN106709534A (en) Anti-counterfeit verification system of electronic certificate
TWI353765B (en)
CN205015906U (en) Anti -fake verification system of electron certificate
CN105117920A (en) Anti-counterfeiting method and apparatus for picture electronic certificates
CN105321076A (en) Variable and long-term anti-counterfeiting marking method and system for circulation commodities
CN105117917A (en) Artwork safety identification method based on RFID coding
CN109992984A (en) A kind of file identification method and equipment based on two dimensional code
CN109034758A (en) A kind of digital cash wallet Verification System and method based on eID
CN102999771B (en) Commodity anti-counterfeiting code construction and verification method
CN110111461A (en) A kind of pass identified off-line method and apparatus based on two dimensional code

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20181116