CN109472604A - Antifake method for products and system based on real name block chain - Google Patents

Antifake method for products and system based on real name block chain Download PDF

Info

Publication number
CN109472604A
CN109472604A CN201811492271.8A CN201811492271A CN109472604A CN 109472604 A CN109472604 A CN 109472604A CN 201811492271 A CN201811492271 A CN 201811492271A CN 109472604 A CN109472604 A CN 109472604A
Authority
CN
China
Prior art keywords
platform
real name
enterprise
verification result
node
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.)
Granted
Application number
CN201811492271.8A
Other languages
Chinese (zh)
Other versions
CN109472604B (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

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

Landscapes

  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Finance (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The present invention relates to a kind of antifake method for products based on real name block chain, it include: graphic code entrained by terminal scanning product, and the first product number, signing messages and real name responsibility address are obtained after parsing to graphic code, graphic code is that enterprise's node is signed and issued by the corresponding private key in real name responsibility address and publicity is on real name block chain;First product number, signing messages and real name responsibility address are sent to platform by terminal;Platform generates verifying transaction packet according to first product number, signing messages, and verifying transaction packet is sent to enterprise corresponding with real name responsibility address node by way of transaction;Enterprise's node verifies the first product number and signing messages, and generates verification result transaction packet, and verification result transaction packet is sent to platform according to former road;Verification result transaction is wrapped corresponding verification result and is back to terminal by platform;Terminal carries out anti-fake judgement to product according to verification result, improves anti-fake accuracy.

Description

Antifake method for products and system based on real name block chain
Technical field
The present invention relates to computer technologies, more particularly to a kind of antifake method for products based on real name block chain and are System.
Background technique
With the development of economy, commodity economy is steadily developed, but there are still fake and forged productions on the market Product.
Existing commodity counterfeit prevention mode is based on anonymous block chain, i.e. businessman thinks block chain network using merchant client Public key is fed back to businessman, and root using non-algorithm configuration poised for battle public key corresponding with needs and private key by the serial number for uploading commodity Two dimensional code is generated according to public key to be printed on commodity, but since public key is easily got and then forged by criminal, because This causes commodity counterfeit prevention to fail.
Summary of the invention
Based on this, it is necessary to aiming at the problem that commodity counterfeit prevention failure, provide a kind of product false proof based on real name block chain Method and system.
A kind of antifake method for products based on real name block chain, comprising:
Terminal scan product entrained by graphic code, and obtained after being parsed to the graphic code the first product number, Signing messages and real name responsibility address, the graphic code are that enterprise's node is signed and issued by the corresponding private key in real name responsibility address And publicity is on real name block chain;
First product number, signing messages and real name responsibility address are sent to platform by the terminal;
The platform generates verifying transaction packet according to first product number, signing messages, and by way of transaction Verifying transaction packet is sent to enterprise corresponding with real name responsibility address node;
Enterprise's node verifies first product number and signing messages, and generates verification result transaction Verification result transaction packet is sent to the platform according to former road by packet;
Verification result transaction is wrapped corresponding verification result and is back to the terminal by the platform;
The terminal carries out anti-fake judgement to the product according to the verification result.
Enterprise's node tests first product number and signing messages in one of the embodiments, Card, comprising:
Enterprise's node is decoded to obtain second by the corresponding public key in real name responsibility address to the signing messages Product number;
Enterprise's node judges whether second product number and first product number are identical;
When identical, then enterprise's node judges whether the number that first product number is verified is more than default time Number;
If not provided, enterprise's node generates the verification result transaction packet being proved to be successful, otherwise enterprise's node is raw It trades and wraps at the verification result of authentication failed.
The platform generates verifying transaction according to first product number, signing messages in one of the embodiments, Packet, comprising:
The platform by the first product number and signing messages described in key pair that platform is the terminal distribution into Row signature;
The platform obtains the first transaction value;
The platform by after first transaction value, signature first product number and signing messages be packaged To verifying transaction packet.
Enterprise's node generates the verification result transaction packet being proved to be successful in one of the embodiments, comprising:
Enterprise's node obtains the second transaction value;
First transaction value and second transaction value packing are verified successfully by enterprise's node Verification result transaction packet;
Verification result transaction is wrapped corresponding verification result and is back to the terminal by the platform, comprising:
When the verification result transaction packet that platform parsing is proved to be successful obtains the first transaction value and the second transaction value When, the platform obtains real name address corresponding with second transaction value, recycles first transaction value;
The platform judges whether the real name address matches with real name responsibility address;
When the real name address and when the real name responsibility address matching, then the platform to the terminal return verifying at The verification result of function and second transaction value.
In one of the embodiments, the method also includes:
Product picture is packed into the verification result transaction packet being proved to be successful by enterprise's node;
The verification result transaction packet that the platform parsing is proved to be successful also obtains the product picture;
The platform also returns to the product picture to the terminal.
The verification result that enterprise's node generates authentication failed in one of the embodiments, which is traded, to be wrapped, comprising:
Second transaction value is packaged the verification result transaction packet for being verified failure by enterprise's node;
Verification result transaction is wrapped corresponding verification result and is back to the terminal by the platform, comprising:
When the verification result transaction packet of platform parsing authentication failed only obtains the first transaction value, then the platform First transaction value is recycled, and returns to the verification result of authentication failed to the terminal.
In one of the embodiments, the method also includes:
Enterprise's node generates the first product number corresponding with the product;
Enterprise's node signs to first product number by the corresponding private key in real name address Information;
Enterprise's node is generated according to first product number, the signing messages and real name responsibility address Graphic code.
In one of the embodiments, the method also includes:
The terminal obtains platform network address after parsing to the graphic code;
First product number, signing messages and real name responsibility address are sent to platform by the terminal, comprising:
First product number, signing messages and real name responsibility address are sent to and the platform network address pair by the terminal The platform answered.
A kind of product anti-fake system based on real name block chain, the system comprises:
Terminal, the terminal obtain after parsing to the graphic code for scanning graphic code entrained by product First product number, signing messages and real name responsibility address, the graphic code are that enterprise's node passes through real name responsibility address pair The private key answered is signed and issued and publicity is on real name block chain;The terminal is by the first product number, signing messages and real name Responsibility address is sent to platform;
Platform, the platform is used to generate verifying transaction packet according to first product number, signing messages, and passes through friendship Verifying transaction packet is sent to enterprise corresponding with real name responsibility address node by easy form;
Enterprise's node, enterprise's node is for verifying first product number and signing messages, and life It trades and wraps at verification result, verification result transaction packet is sent to the platform according to former road;
The platform, which is also used to verification result transaction wrapping corresponding verification result, is back to the terminal;
The terminal is also used to carry out anti-fake judgement to the product according to the verification result.
Enterprise's node is also used to enterprise's node by the corresponding public affairs in real name address in one of the embodiments, Key is decoded the signing messages to obtain the second product number;Judge that second product number and first product are compiled It is number whether identical;When identical, then judge whether the number that first product number is verified is more than preset times;If not yet Have, generates the verification result transaction packet being proved to be successful, the verification result for otherwise generating authentication failed, which is traded, to be wrapped.
Above-mentioned antifake method for products and system based on real name block chain, graphic code entrained by product are that enterprise's node is logical The corresponding private key in real name responsibility address is signed and issued and publicity is crossed on real name block chain, without pilot process, therefore the figure After shape code can not be forged, therefore terminal scanning figure shape code obtains the first product number, signing messages and real name responsibility address, Platform is sent by first product number, signing messages and real name responsibility address, and platform is by the first product number and label Name information is sent to the corresponding enterprise's node in real name responsibility address and carries out fake certification, and fake certification process is on real name block chain Publicity is carried out, the one-time validity of graphic code, and the transaction handshake procedure for going one time by one is ensure that, ensure that product false proof Accuracy.
Detailed description of the invention
Fig. 1 is the schematic diagram of the product anti-fake system based on real name block chain in an embodiment;
Fig. 2 is the flow chart of the antifake method for products based on real name block chain in an embodiment;
Fig. 3 is the timing diagram of the antifake method for products based on real name block chain in an embodiment.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right The present invention is further elaborated.It should be appreciated that specific embodiment described herein is used only for explaining the present invention, and It is not used in the restriction present invention.
Before embodiment according to the present invention is described in detail, it should be noted that, the embodiment described essentially consist in The step of product false proof and system correlation based on real name block chain and the combination of system component.Therefore, said system component and Method and step is showed by ordinary symbol in position in the accompanying drawings, and merely illustrates and understand this hair The related details of bright embodiment, in order to avoid because obvious for having benefited from those of ordinary skill in the art of the invention Those details have obscured the disclosure.
Herein, such as left and right, upper and lower, front and rear, first and second etc relational terms are used merely to area Divide an entity or movement and another entity or movement, and not necessarily requires or imply and is between this entity or movement any Actual this relationship or sequence.The terms "include", "comprise" or any other variant are intended to cover non-exclusive inclusion, by This to include the process, method, article or equipments of a series of elements not only to include these elements, but also includes not bright The other element really listed, or be elements inherent to such a process, method, article, or device.
Referring to Fig. 1, a kind of product anti-fake system based on real name block chain is provided in one of the embodiments, In include terminal, platform and enterprise's node, wherein terminal graphic code entrained by scanning product and parses the graphic code Obtain the first product number, signing messages and real name responsibility address, terminal is by the first product number, signing messages and real name Responsibility address is sent to platform, and platform is one address of terminal distribution, the address as belonging to platform, by platform be responsible for user into Row real-name authentication.Platform generates verifying transaction packet according to the first product number, signing messages, and verifying transaction packet is passed through area The form traded in block chain is sent to the corresponding enterprise's node in business accountability address, and the service routine for being deployed in enterprise's node receives After transaction, the first product number and signing messages can be verified, after the completion of verifying, enterprise's node hands over verification result Easily packet is sent to platform according to former road in the form traded, and Platform Analysis verification result transaction packet is verified as a result, and will test Card result returns to terminal, to complete entire fake certification process, fake certification process is by transaction form in real name block Automatic publicity on chain ensure that the one-time validity of graphic code, and the transaction handshake procedure for going one time by one, ensure that product Anti-fake accuracy.
A kind of antifake method for products based on real name block chain is provided in one of the embodiments, and this method can wrap It includes:
S202: terminal scan product entrained by graphic code, and obtained after being parsed to graphic code the first product number, Signing messages and real name responsibility address, graphic code is enterprise's node to be signed and issued and public affairs by the corresponding private key in real name responsibility address Show on real name block chain.
Specifically, real name block chain is needed to authorize on real name chain, just allows to participate in body after the generation of block chain address It is gone in system's activity, including receives transaction and initiate transaction, and authorization is also by administrator by specifying that address is held on chain After the social responsibility of people, authorization just will do it.In real name block chain, each real name responsibility address has specific responsibility People has specific social property, and transaction means to produce relationship between two addresses, i.e., two define in real name block chain Person liable between produce relationship, transaction carries token and data, and the token, that is, pass is data account raw in system This, can carry out value circulation, and data then rest between two addresses, can not modify.
Graphic code entrained by product can be two dimensional code, bar code etc., which is the enterprise in real name block chain Node passes through that the corresponding private key in real name responsibility address is signed and issued and is stored in real name block chain, due to not having its intermediate other party It participates in, and the private key of enterprise's node can not be copied, therefore the graphic code can not also be forged etc., ensure that anti-fake peace Quan Xing.Specifically, enterprise's node may include that the first product is compiled by the graphic code that the corresponding private key in real name responsibility address is signed and issued Number, signing messages and real name responsibility address, wherein the first product number is unique number that enterprise distributes to product, tool There is uniqueness, signing messages is then that the logical private key of enterprise's node signs to the first product number, due to the first product Number has a uniqueness, and private key has a safety, thus the signing messages safety and uniqueness be guaranteed, it is real Name responsibility address is then that the transmission of transaction for convenience carries out, that is, the manufacturing enterprise of the product is indicated, so as to accurately Corresponding enterprise's node is found in real name block chain to carry out fake certification.Specifically, the generating process of graphic code can wrap Include: the first product number corresponding with product can be generated in enterprise's node;Enterprise's node passes through the corresponding private key pair in real name address First product number is signed to obtain signing messages;Enterprise's node is blamed according to the first product number, signing messages and real name Address is appointed to generate graphic code.
The process is also the beginning of anti-pseudoprocess, if the not graphic code, i.e., when terminal does not scan the graphic code, then not It can start this anti-fake application.
S204: the first product number, signing messages and real name responsibility address are sent to platform by terminal.
Specifically, terminal can then incite somebody to action after parsing obtains the first product number, signing messages and real name responsibility address First product number, signing messages and real name responsibility address are sent to corresponding platform.For example, terminal can pass through " wechat Sweep and sweep " etc. modes go scanning product entrained by two dimensional code, then parsing obtain the first product entrained by the two dimensional code volume Number, signing messages and real name responsibility address, and according to preconfigured platform network address, the corresponding platform of Xiang Pingtai network address is sent Parse obtained information.
S206: platform generates verifying transaction packet according to the first product number, signing messages, and will be tested by way of transaction Card transaction packet is sent to enterprise corresponding with real name responsibility address node.
Specifically, platform is after receiving the first product number, signing messages and real name responsibility address, then according to first Product number and signing messages generate verifying transaction packet, i.e. data in transaction, wherein in order to realize on real name block chain Propagation, platform can be one address of terminal distribution, the address as belonging to platform, by platform be responsible for user carry out real name recognize Card.Platform can also be the certain value of this transaction allocation, in order to the transmitting on real name block chain of trading, to verify Transaction contains the pass " value " and data " the first product number and signing messages ", which trades, and wrap can be It is transmitted on real name block chain.Specifically, verifying transaction packet can be transmitted in the form of transaction on real name block chain, So as to which data are retained on real name block chain, and due to being real name block chain, transaction is calculated each A node is all real name, therefore ensure that the integrality of chain of evidence, to ensure that the safety of anti-pseudoprocess, in transmitting In the process, after enterprise's node gets the transaction verification packet by being deployed in the service routine of enterprise's node, itself is first determined whether Real name responsibility address and verifying transaction packet it is entrained real name responsibility address it is whether identical, if identical, carry out anti-fake test Card records the data of verifying transaction packet, to ensure that on real name block chain if it is not the same, then carrying out common recognition calculating Deposit card.
S208: enterprise's node verifies the first product number and signing messages, and generates verification result transaction packet, Verification result transaction packet is sent to platform according to former road.
Specifically, enterprise's node is after the service routine by being deployed in enterprise's node receives verifying transaction packet, parsing The first product number and signing messages are obtained, and the signing messages is verified, such as with the real name responsibility of enterprise's node The corresponding public key in location verifies the signing messages to obtain the second product number, judges the first product number and the Whether two product numbers are identical, if they are the same, then it represents that and it is verified, and in order to anti-fake, generally will limit verifying number, i.e., One-time authentication may be considered fake certification, and second verifying, which then may be illegal person, has carried out time the two dimensional code having verified that It receives, manufactures the verifying carried out after counterfeit and shoddy goods, therefore enterprise's node can also determine whether it is second of verifying, i.e. basis The information of preservation on real name block chain is judged, is verified if it is second, then it is assumed that authentication failed, so as to life At authentication failed verification result trade packet, if it is first time verify, then it is assumed that be proved to be successful, so as to generate verifying at The verification result of function, which is traded, to be wrapped.The form traded according to former road to enterprise's node returns to verification result transaction packet flat Platform is completed by way of two-way trade to just complete this fake certification and deposits the entire industry of card and publicity on chain Business process.
S210: verification result transaction is wrapped corresponding verification result and is back to terminal by platform, and terminal is according to verification result pair Product carries out anti-fake judgement.
Platform carries out parsing to the transaction packet and is verified as a result, to will after receiving verification result transaction packet The verification result returns to terminal, in order to which terminal judges whether product is counterfeit and shoddy goods.
Specifically, enterprise's node peace stylobate first sends one to enterprise's node in the contract engagement for depositing card on chain, platform Verifying transaction, then enterprise's node after this authentication, returns to a verification result transaction to platform, realizes chain by two-way trade On deposit card and the entire business procedure of publicity.
The above-mentioned antifake method for products based on real name block chain, graphic code entrained by product is that enterprise's node passes through real name The corresponding private key in responsibility address is signed and issued and publicity is on real name block chain, without pilot process, therefore the graphic code without After method is forged, therefore terminal scanning figure shape code obtains the first product number, signing messages and real name responsibility address, by this One product number, signing messages and real name responsibility address are sent to platform, and platform is by the first product number and signing messages It is sent to the corresponding enterprise's node in real name responsibility address and carries out fake certification, fake certification process carries out public affairs on real name block chain Show, ensure that the one-time validity of graphic code, and the transaction handshake procedure for going one time by one, ensure that the accurate of product false proof Property.
Enterprise's node is for the verification process of signing messages primarily to guaranteeing A.L.S. in one of the embodiments, Breath be not tampered with and graphic code it is disposable effectively.Specifically enterprise's node to the first product number and signing messages into Row verifying, may include: that enterprise's node is decoded signing messages to obtain second by the corresponding public key in real name responsibility address Product number;Enterprise's node judges whether the second product number is identical as the first product number;When identical, then enterprise's node is sentenced Whether the number that disconnected first product number is verified is more than preset times;If not provided, enterprise's node generate be proved to be successful test Result transaction packet is demonstrate,proved, otherwise enterprise's node generates the verification result transaction packet of authentication failed.
Specifically, due to fake certification each time, can store on real name block chain and publicity, as long as therefore certain After a certain product number of one enterprise is verified, can it be recorded on real name block chain, to ensure that graphic code One-time validity.
For example, enterprise's node is looked forward to after receiving the first product number sent by transaction form and signing messages Industry node, which passes through the corresponding public key in real name responsibility address first and is decoded verifying to the signing messages, obtains the second product number, Then in order to judge whether the signing messages is tampered, it can be determined that whether the first product number and the second product number are identical, For example, signing messages is not tampered with if the first product number is tampered, then first product number and the second product number Not identical, verifying does not pass through, if signing messages is tampered, the first product number and the second product number be not identical, verifying Also do not pass through.And when the first product number is identical with the second product number, in order to guarantee the one-time validity of graphic code, enterprise Node can also judge whether number that the first product number is verified has been more than preset times, such as 1 time, if this first is produced Product number is crossed by fake certification, then can carry out depositing card on the real name block chain, therefore this is judged again, then may be used To be considered to be counterfeited, so as to generate the verification result transaction packet of authentication failed, the verifying knot being proved to be successful otherwise is generated Fruit transaction packet.
In above-described embodiment, real name block chain is stored in since whether the corresponding product number of graphic code was verified On, therefore can not be tampered, to ensure that the one-time validity of graphic code.
Platform generates verifying transaction packet according to the first product number, signing messages in one of the embodiments, can wrap Include: platform is signed by corresponding the first product number of key pair of platform and signing messages;Platform obtains the first transaction Value;Platform by after the first transaction value, signature the first product number and signing messages packing be verified transaction packet.
Enterprise's node generates the verification result transaction packet being proved to be successful in one of the embodiments, may include: enterprise Node obtains the second transaction value;First transaction value and the packing of the second transaction value are verified successfully by enterprise's node Verification result transaction packet.Verification result transaction is wrapped corresponding verification result and is back to terminal by platform, may include: when platform solution When the verification result transaction packet that analysis is proved to be successful obtains the first transaction value and the second transaction value, platform is obtained trades with second It is worth corresponding real name address, recycles the first transaction value;Platform judges whether real name address matches with real name responsibility address;When When real name address and real name responsibility address matching, then platform returns to the verification result being proved to be successful and the second settlement price to terminal Value.
The above-mentioned antifake method for products based on real name block chain can also include: enterprise's section in one of the embodiments, Product picture is packed into the verification result transaction packet being proved to be successful by point;The verification result transaction packet that platform parsing is proved to be successful is also Obtain product picture;Platform also returns to product picture to terminal.
The verification result that enterprise's node generates authentication failed in one of the embodiments, which is traded, to be wrapped, and may include: enterprise Second transaction value is packaged the verification result transaction packet for being verified failure by node;Platform is corresponding by verification result transaction packet Verification result is back to terminal, comprising: when the verification result transaction packet of platform parsing authentication failed only obtains the first transaction value When, then platform recycles the first transaction value, and the verification result of authentication failed is returned to terminal.
The above-mentioned antifake method for products based on real name block chain can also include: terminal pair in one of the embodiments, Graphic code obtains platform network address after being parsed.Terminal sends the first product number, signing messages and real name responsibility address It may include: that the first product number, signing messages and real name responsibility address are sent to and platform network address pair by terminal to platform The platform answered.
Shown in Figure 3, Fig. 3 is the timing diagram of the antifake method for products based on real name block chain in one embodiment, In this embodiment, it is described in detail by each details of the antifake method for products based on real name block chain.
It is important to note that being contacted address and social responsibility by real name block chain in this method, guarantee The integrality of chain of evidence.The verifying to signing messages is realized secondly by two-way trade, and the signing messages is to pass through real name The corresponding private key in responsibility address is signed, and no pilot process will not be tampered, and ensure that the integrality of chain of evidence, Process of exchange publicity on real name block chain ensure that the one-time validity of graphic code by real name block chain by third.The Four, introduce reward mechanism, i.e. the second transaction value so that user it is dynamic go to carry out it is anti-fake, the whole people participate in it is anti-fake, expand The range of product false proof, and for fake producer since it can not be returned to the second transaction value of user, it is therefore desirable in face of more Legal liabilities.
Specifically, refering to Fig. 3, enterprise's node carries out registed authorization on real name block chain first, and then enterprise's node exists After producing product, a product number is distributed for each product first, which has uniqueness, then saves by enterprise The private key of point corresponding real name responsibility address signs first product number to obtain signing messages, and then enterprise's node will First product number, signing messages and real name responsibility address are packaged and are stored in graphic code, and optionally, enterprise's node may be used also The corresponding platform network address of platform to be packaged in the graphic code.In this way since graphic code is by the corresponding real name duty of enterprise's node Appoint address private key signature formed, the private key have it is not reproducible and forge property, therefore the graphic code also have it is not reproducible With forgery property.
User scans figure entrained by product after having purchased product, through terminal of user, such as mobile phone, plate etc. Code, such as graphic code entrained by product is scanned by " wechat, which is swept, to be swept " etc., so as to obtain the first product number, signature Information and real name responsibility address can also optionally get the corresponding platform network address of platform, so that terminal can be by first Product number, signing messages and real name responsibility address are sent to the corresponding platform of platform network address.Platform is receiving the first production Behind product number, signing messages and real name responsibility address, the mark of terminal is got, such as terminal MAC address etc. judges the end End whether First Contact Connections platform, if it is, platform be one address of terminal distribution, to uniquely identify the terminal, the ground It is responsible for carrying out real-name authentication to user by platform, completes the behavior of the terminal cochain, if not for the first time as belonging to platform in location Connecting platform is then the address of the terminal distribution before platform inquiry, to complete the behavior of terminal cochain.
Platform is after receiving the first product number, signing messages and real name responsibility address, or gets the first transaction Then value, i.e., the above-mentioned token pass are packaged the first product number and signing messages to obtain data, by data It is verified transaction packet with pass packing, such as is the first product number of key pair and signature of terminal distribution by platform Information is signed to obtain data, so as to which the form of the logical transaction of verifying transaction packet to be sent to and real name responsibility address pair The enterprise's node answered, so that the service routine for being deployed in enterprise's node can receive transaction.
Enterprise's node passes through the corresponding public key in terminal corresponding real name responsibility address after receiving verifying transaction packet first It is verified to obtain the first product number and signing messages, it is then corresponding by enterprise's node corresponding real name responsibility address Public key is decoded signing messages to obtain the second product number, can be with then in order to judge whether the signing messages is tampered Judge whether the first product number is identical as the second product number, for example, signing messages does not have if the first product number is tampered It being tampered, then first product number and the second product number be not identical, and verifying does not pass through, if signing messages is tampered, Then the first product number and the second product number be not identical, and verifying does not also pass through.And it is compiled in the first product number and the second product When number identical, in order to guarantee the one-time validity of graphic code, enterprise's node can also judge time that the first product number is verified Whether number has been more than preset times, such as 1 time, can be in the reality if first product number is crossed by fake certification It carries out depositing card on name block chain, therefore this is judged again, it may be considered that being to be counterfeited, so as to generate authentication failed Verification result trade packet, otherwise generate be proved to be successful verification result transaction packet.
The verification result transaction packet being wherein proved to be successful carries the second transaction value and the first transaction value, the second transaction Value is the reward etc. that enterprise's node returns to terminal, and the verification result of authentication failed transaction Bao Ze only includes the first settlement price Value.The generating mode for the verification result transaction packet being wherein proved to be successful includes: that enterprise's node gets the second verification value first, Then the first transaction value and the second transaction value be packaged and are verified successful verification result transaction packet, optionally, Product picture can also be bundled in verification result transaction packet by enterprise's node, i.e., include in verification result transaction packet The token pass " the first transaction value and the second transaction value ", further includes data " product picture ".Enterprise's node ties verifying Fruit transaction packet returns to platform, in order to which platform gets verification result.
Wherein the verification result transaction packet of authentication failed only carries the first transaction value, i.e. the settlement price distributed of platform Value, token of first transaction value as verification result transaction packet, the information of authentication failed is as data, so that platform can It is sent to platform by way of transaction so that the verification result to trade to wrap, in order to which platform gets verification result.
Verification result transaction packet is back to platform by original road by way of transaction after generating verification result transaction packet Platform.Such as when return be proved to be successful verification result transaction packet when, platform parse the verification result transaction packet can The first transaction value and the second transaction value are obtained, wherein the first transaction value is recycled, and when platform parses to obtain second When transaction value, then it represents that be verified, and in order to guarantee safety, platform judges the corresponding real name address of the second transaction value Whether matched with real name responsibility address, for example whether be the real name address signed and issued by corresponding real name responsibility address, if so, Then platform can return to be verified anti-fake to terminal as a result, to complete the anti-fake of entire product, and by the second settlement price Value returns to terminal, to reward terminal.And optionally, the verification result transaction packet that platform parsing is proved to be successful also obtains Product picture, so that product picture can also be returned to terminal by platform, in order to which terminal checks the product picture and practical production Whether product are such as when product picture is trousers, and actual product is jacket, then to also illustrate that anti-fake failure with the same.
When it is the verification result transaction packet of authentication failed that platform is received, then platform, which is parsed, only obtains the first transaction Value, platform recycle first transaction value, then think that terminal returns to the verification result of authentication failed, without depositing In the reward of the second transaction value.
In above-described embodiment, complete anti-pseudoprocess is given, wherein by real name block chain, by address and social responsibility It is contacted, ensure that the integrality of chain of evidence.The verifying to signing messages, and the A.L.S. are realized secondly by two-way trade Breath is signed by the corresponding private key in real name responsibility address, and no pilot process will not be tampered, and ensure that card According to the integrality of chain, process of exchange publicity on real name block chain ensure that the one of graphic code by real name block chain by third Secondary validity.4th, reward mechanism, i.e. the second transaction value are introduced, so that user is dynamic to go to carry out anti-fake, whole people's participation It is anti-fake, the range of product false proof is expanded, and for fake producer since it can not be returned to the second transaction value of user, it is therefore desirable to In face of more legal liabilities.
A kind of product anti-fake system based on real name block chain is provided in one of the embodiments, which includes:
Terminal, terminal obtain the first product for scanning graphic code entrained by product after parsing to graphic code Number, signing messages and real name responsibility address, graphic code are that enterprise's node is signed by the corresponding private key in real name responsibility address It sends out and publicity is on real name block chain;First product number, signing messages and real name responsibility address are sent to flat by terminal Platform.
Platform, platform are used to generate verifying transaction packet according to the first product number, signing messages, and by way of transaction Verifying transaction packet is sent to enterprise corresponding with real name responsibility address node.
Enterprise's node, enterprise's node generate verifying knot for verifying to the first product number and signing messages Verification result transaction packet is sent to platform according to former road by fruit transaction packet.
Platform, which is also used to verification result transaction wrapping corresponding verification result, is back to terminal.
Terminal is also used to carry out anti-fake judgement to product according to verification result.
Enterprise's node can be also used for enterprise's node by the corresponding public affairs in real name responsibility address in one of the embodiments, Key is decoded signing messages to obtain the second product number;Judge whether the second product number is identical as the first product number; When identical, then judge whether the number that the first product number is verified is more than preset times;It is proved to be successful if not provided, generating Verification result trade packet, otherwise generate authentication failed verification result trade packet.
Platform can be also used for compiling by the first product of key pair that platform is terminal distribution in one of the embodiments, Number and signing messages sign;Obtain the first transaction value;By the first product number after the first transaction value, signature with And signing messages packing is verified transaction packet.
Enterprise's node can be also used for obtaining the second transaction value in one of the embodiments,;By the first transaction value And second transaction value packing be verified successful verification result transaction packet.
The verification result transaction packet that platform is also used to be proved to be successful when platform parsing obtains the first transaction value and second and hands over When being easily worth, real name corresponding with the second transaction value address is obtained, recycles the first transaction value;Judge real name address and real name Whether responsibility address matches;When real name address and real name responsibility address matching, then the verifying knot being proved to be successful is returned to terminal Fruit and the second transaction value.
Enterprise's node can be also used for for product picture being packed into the verifying knot being proved to be successful in one of the embodiments, Fruit transaction packet.
Platform can be also used for the verification result transaction packet that parsing is proved to be successful and also obtain product picture, also return to terminal Product picture.
Enterprise's node, which can be also used for for the second transaction value being packaged, in one of the embodiments, is verified failure Verification result transaction packet.
Platform is also used to then return when the verification result transaction packet that platform parses authentication failed only obtains the first transaction value The first transaction value is received, and returns to the verification result of authentication failed to terminal.
Enterprise's node can be also used for generating the first product number corresponding with product in one of the embodiments,;It is logical It crosses the corresponding private key in real name address the first product number is signed to obtain signing messages;According to the first product number, signature Information and real name responsibility address generate graphic code.
Terminal can be also used for obtaining platform network address after parsing graphic code in one of the embodiments,;By One product number, signing messages and real name responsibility address are sent to platform corresponding with platform network address.
The above-mentioned specific restriction about the product anti-fake system based on real name block chain may refer to above based on real name The restriction of the antifake method for products of block chain, details are not described herein.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the program can be stored in a non-volatile computer and can be read In storage medium, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, the storage is situated between Matter can be magnetic disk, CD, read-only memory (Read-Only Memory, ROM) etc..
Each technical characteristic of embodiment described above can be combined arbitrarily, for simplicity of description, not to above-mentioned reality It applies all possible combination of each technical characteristic in example to be all described, as long as however, the combination of these technical characteristics is not deposited In contradiction, all should be considered as described in this specification.
The embodiments described above only express several embodiments of the present invention, and the description thereof is more specific and detailed, but simultaneously It cannot therefore be construed as limiting the scope of the patent.It should be pointed out that coming for those of ordinary skill in the art It says, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to protection of the invention Range.Therefore, the scope of protection of the patent of the invention shall be subject to the appended claims.

Claims (10)

1. a kind of antifake method for products based on real name block chain, comprising:
Terminal scans graphic code entrained by product, and the first product number, signature are obtained after parsing to the graphic code Information and real name responsibility address, the graphic code is enterprise's node to be signed and issued and public affairs by the corresponding private key in real name responsibility address Show on real name block chain;
First product number, signing messages and real name responsibility address are sent to platform by the terminal;
The platform generates verifying transaction packet according to first product number, signing messages, and by institute by way of transaction It states verifying transaction packet and is sent to enterprise corresponding with real name responsibility address node;
Enterprise's node verifies first product number and signing messages, and generates verification result transaction packet, Verification result transaction packet is sent to the platform according to former road;
Verification result transaction is wrapped corresponding verification result and is back to the terminal by the platform;
The terminal carries out anti-fake judgement to the product according to the verification result.
2. the method according to claim 1, wherein enterprise's node is to first product number and label Name information is verified, comprising:
Enterprise's node is decoded the signing messages to obtain the second product by the corresponding public key in real name responsibility address Number;
Enterprise's node judges whether second product number and first product number are identical;
When identical, then enterprise's node judges whether the number that first product number is verified is more than preset times;
If not provided, enterprise's node generates the verification result transaction packet being proved to be successful, otherwise enterprise's node generation is tested The verification result of card failure, which is traded, to be wrapped.
3. according to the method described in claim 2, it is characterized in that, the platform is according to first product number, A.L.S. Breath generates verifying transaction packet, comprising:
The platform is signed by the first product number and signing messages described in key pair that platform is the terminal distribution Name;
The platform obtains the first transaction value;
The platform by after first transaction value, signature first product number and signing messages be packaged and tested Card transaction packet.
4. according to the method described in claim 3, it is characterized in that, enterprise's node generates the verification result friendship being proved to be successful Easily packet, comprising:
Enterprise's node obtains the second transaction value;
First transaction value and second transaction value packing are verified successful verifying by enterprise's node As a result transaction packet;
Verification result transaction is wrapped corresponding verification result and is back to the terminal by the platform, comprising:
When the verification result transaction packet that platform parsing is proved to be successful obtains the first transaction value and the second transaction value, institute It states platform and obtains real name address corresponding with second transaction value, recycle first transaction value;
The platform judges whether the real name address matches with real name responsibility address;
When the real name address and the real name responsibility address matching, then the platform is proved to be successful to terminal return Verification result and second transaction value.
5. according to the method described in claim 4, it is characterized in that, the method also includes:
Product picture is packed into the verification result transaction packet being proved to be successful by enterprise's node;
The verification result transaction packet that the platform parsing is proved to be successful also obtains the product picture;
The platform also returns to the product picture to the terminal.
6. according to the method described in claim 3, it is characterized in that, the verification result that enterprise's node generates authentication failed is handed over Easily packet, comprising:
Second transaction value is packaged the verification result transaction packet for being verified failure by enterprise's node;
Verification result transaction is wrapped corresponding verification result and is back to the terminal by the platform, comprising:
When the verification result transaction packet of platform parsing authentication failed only obtains the first transaction value, then the platform recycling First transaction value, and to the terminal return authentication failed verification result.
7. according to claim 1 to method described in 6 any one, which is characterized in that the method also includes:
Enterprise's node generates the first product number corresponding with the product;
Enterprise's node is signed to obtain signing messages by the corresponding private key in real name address to first product number;
Enterprise's node generates figure according to first product number, the signing messages and real name responsibility address Code.
8. according to claim 1 to method described in 6 any one, which is characterized in that the method also includes:
The terminal obtains platform network address after parsing to the graphic code;
First product number, signing messages and real name responsibility address are sent to platform by the terminal, comprising:
First product number, signing messages and real name responsibility address are sent to corresponding with the platform network address by the terminal Platform.
9. a kind of product anti-fake system based on real name block chain, which is characterized in that the system comprises:
Terminal, the terminal obtain first after parsing to the graphic code for scanning graphic code entrained by product Product number, signing messages and real name responsibility address, the graphic code are that enterprise's node is corresponding by real name responsibility address Private key is signed and issued and publicity is on real name block chain;The terminal is by the first product number, signing messages and real name responsibility Address is sent to platform;
Platform, the platform is used to generate verifying transaction packet according to first product number, signing messages, and passes through transaction Verifying transaction packet is sent to enterprise corresponding with real name responsibility address node by form;
Enterprise's node, enterprise's node are generated and are tested for verifying to first product number and signing messages Result transaction packet is demonstrate,proved, verification result transaction packet is sent to the platform according to former road;
The platform, which is also used to verification result transaction wrapping corresponding verification result, is back to the terminal;
The terminal is also used to carry out anti-fake judgement to the product according to the verification result.
10. system according to claim 9, which is characterized in that enterprise's node is also used to enterprise's node and passes through The corresponding public key in real name address is decoded the signing messages to obtain the second product number;Judge second product number It is whether identical as first product number;When identical, then whether the number for judging that first product number is verified surpasses Cross preset times;If not provided, generating the verification result transaction packet being proved to be successful, the verification result for otherwise generating authentication failed is handed over Easily packet.
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 true CN109472604A (en) 2019-03-15
CN109472604B 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)

Cited By (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
CN111815337A (en) * 2020-07-15 2020-10-23 深圳市中选科技有限公司 Block chain-based full-link anti-counterfeiting tracing method and system, intelligent terminal and storage medium
CN115550098A (en) * 2022-09-16 2022-12-30 哈尔滨工业大学 ARINC429 bus communication assembly and device based on MiniVPX framework

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018064645A1 (en) * 2016-10-01 2018-04-05 3Dpp, Llc Distributed manufactring & blockchain enabled packaging
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
CN108764930A (en) * 2018-03-23 2018-11-06 成都众宜天成科技有限公司 The implementation method of commodity counterfeit prevention verification platform based on block chain structure
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

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018064645A1 (en) * 2016-10-01 2018-04-05 3Dpp, Llc Distributed manufactring & 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

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
安瑞 等: "基于区块链技术的防伪系统的设计与实现", 《密码学报》 *

Cited By (5)

* 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
CN111833071A (en) * 2019-03-26 2020-10-27 财团法人亚洲大学 Method for establishing and inquiring production and marketing histories for quality assurance of agricultural products
CN111815337A (en) * 2020-07-15 2020-10-23 深圳市中选科技有限公司 Block chain-based full-link anti-counterfeiting tracing method and system, intelligent terminal and storage medium
CN111815337B (en) * 2020-07-15 2024-04-09 深圳市中选科技有限公司 Block chain-based full-link anti-counterfeiting traceability method, system, intelligent terminal and storage medium
CN115550098A (en) * 2022-09-16 2022-12-30 哈尔滨工业大学 ARINC429 bus communication assembly and device based on MiniVPX framework

Also Published As

Publication number Publication date
CN109472604B (en) 2021-06-15

Similar Documents

Publication Publication Date Title
CN106533696B (en) Identity identifying method, certificate server and user terminal based on block chain
CN104951943B (en) A kind of method for anti-counterfeit based on the association examination of random light and shade code
CN109598518A (en) Method for anti-counterfeit and device, electronic equipment based on block chain
CN108874890B (en) Block chain system with public bibliographic mechanism
CN108805585A (en) Distributed commodity data storage system, circulation and source tracing method based on block chain
CN109472604A (en) Antifake method for products and system based on real name block chain
CN106209877A (en) A kind of be certification core with block chain backstage false-proof authentication system
CN112508566B (en) Cross-link privacy transaction method and device based on alliance links
CN109583912A (en) Trade company's authentication method and device based on block chain
CN103401852B (en) Quick Response Code intelligent business card system based on certification and method for designing
CN110047168A (en) Management method, device, equipment and the system of information of vehicles
CN100576942C (en) A kind of mobile antifogery method and system thereof based on mobile phone
CN109767271A (en) Lottery drawing method and equipment based on block chain
CN109598540A (en) A kind of advertisement accurately method for pushing and advertisement accurately supplying system
CN110232574A (en) Product Validation method, apparatus, equipment and storage medium based on block chain
CN109102308A (en) Merchandise news maintaining method, block chain node and its system based on block chain
CN109345268A (en) Two-dimensional code anti-counterfeiting label, label register method and label identification method based on NFC
CN109767247A (en) A kind of distribution commodity traceability system and source tracing method
CN109598149A (en) The method and apparatus of business processing
CN109146518A (en) A kind of product traceability method
CN109327312A (en) Authentication method and device, electronic equipment
CN108154362A (en) Method of commerce, apparatus and system based on figure bar code
CN109615402A (en) Product quality back-tracing anti-fake system based on block chain technology
CN109727039A (en) Transaction Information recording method and device, node, storage medium
CN109858904A (en) Data processing method and device based on block chain

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