WO2019192072A1 - Blockchain-based merchandise anti-counterfeiting system, and method for checking authenticity of merchandise - Google Patents

Blockchain-based merchandise anti-counterfeiting system, and method for checking authenticity of merchandise Download PDF

Info

Publication number
WO2019192072A1
WO2019192072A1 PCT/CN2018/090671 CN2018090671W WO2019192072A1 WO 2019192072 A1 WO2019192072 A1 WO 2019192072A1 CN 2018090671 W CN2018090671 W CN 2018090671W WO 2019192072 A1 WO2019192072 A1 WO 2019192072A1
Authority
WO
WIPO (PCT)
Prior art keywords
node server
blockchain
counterfeiting
commodity
check
Prior art date
Application number
PCT/CN2018/090671
Other languages
French (fr)
Chinese (zh)
Inventor
蔡启容
Original Assignee
东莞市天眼网络科技有限公司
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 东莞市天眼网络科技有限公司 filed Critical 东莞市天眼网络科技有限公司
Publication of WO2019192072A1 publication Critical patent/WO2019192072A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/50Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols using hash chains, e.g. blockchains or hash trees
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/12Applying verification of the received information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/14Network architectures or network communication protocols for network security for detecting or protecting against malicious traffic
    • H04L63/1441Countermeasures against malicious traffic
    • H04L63/1466Active attacks involving interception, injection, modification, spoofing of data unit addresses, e.g. hijacking, packet injection or TCP sequence number attacks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/3236Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials using cryptographic hash functions
    • H04L9/3239Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials using cryptographic hash functions involving non-keyed hash functions, e.g. modification detection codes [MDCs], MD5, SHA or RIPEMD
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2209/00Additional information or applications relating to cryptographic mechanisms or cryptographic arrangements for secret or secure communication H04L9/00
    • H04L2209/56Financial cryptography, e.g. electronic payment or e-cash
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2463/00Additional details relating to network architectures or network communication protocols for network security covered by H04L63/00
    • H04L2463/102Additional details relating to network architectures or network communication protocols for network security covered by H04L63/00 applying security measure for e-commerce
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/3236Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials using cryptographic hash functions

Definitions

  • the invention belongs to the field of anti-counterfeiting, and particularly relates to a commodity anti-counterfeiting system based on a blockchain and a method for checking the authenticity of a commodity.
  • Anti-counterfeiting technology is a technical means for identifying authenticity and preventing counterfeiting, alteration, and cloning behavior.
  • a system for verifying the authenticity of a commodity in the prior art comprising a brand inspection server and an anti-counterfeiting company inspection server, wherein the brand inspection server receives the product identification code on the security label attached to the product to be inspected input by the user, wherein Each security label corresponds to a product identification code; the brand inspection server determines whether the product identification code input by the user is pre-stored, and if so, delivers the anti-counterfeit label corresponding to the product identification code input by the user to the pre-brand
  • the label pattern and the pre-stored anti-counterfeiting pattern corresponding to the product identification code input by the user are displayed on the user inspection page, so that the user compares the label pattern and the security pattern with the label pattern and the anti-counterfeiting pattern of the item to be inspected, and checks the trueness of the item.
  • the anti-counterfeiting pattern is a label pattern after the anti-counterfeiting label delivered by the anti-counterfeiting company by the brand manufacturer, or is formed by the texture of the anti-counterfeit label and the carrier attached to the textured carrier, or the product packaging Anti-counterfeiting pattern, when the anti-counterfeiting pattern is a commodity package
  • security patterns security patterns on the packaging and / or labeling pattern is random; check security company server for storing user identification code input merchandise security tags corresponding to the pattern prior to delivery to the label brands.
  • the information obtained by the user is obtained from the anti-counterfeiting company and the brand, and the texture information seen from the anti-counterfeiting pattern and the label pattern is mutually identifiable, and the information obtained is compared with the inspection. Only from anti-counterfeiting companies or brands, the reliability is high. However, if the anti-counterfeiting company and the employees of the brand collusion to change the system data, it is not easy to be found, so the reliability of the prior art system for checking the authenticity of the goods is still not high enough.
  • the object of the present invention is to provide a blockchain-based commodity anti-counterfeiting system and a method for checking the authenticity of a commodity, aiming at solving the prior art system for checking the authenticity of a commodity, if the anti-counterfeiting company and the employee of the brand collusion to change the system data. A problem that is not easy to find.
  • the present invention provides a commodity chain anti-counterfeiting system based on a blockchain.
  • the commodity anti-counterfeiting system includes a blockchain node server and a check node server, and a blockchain node server Including a blockchain master node server and one or more blockchain slave node servers, wherein
  • Blockchain master node server responsible for billing of a brand of anti-counterfeiting information blockchain; broadcasting data generated by billing to a blockchain slave node server;
  • the blockchain slave node server is configured to receive and back up data of the brand anti-counterfeiting information blockchain of the block chain master node server, and verify the correctness of the data;
  • the present invention provides a method for verifying the authenticity of a commodity, the method comprising:
  • the checking node server receives the anti-counterfeit label attached to the product to be inspected input by the user or the product identification code on the anti-counterfeit package;
  • the checking node server calculates the hash value by using the irreversible encryption algorithm, and sends the commodity identification code and the hash value, or the commodity identification code, to the blockchain node server for inquiry;
  • the interrogated blockchain node server determines whether the commodity identification code and the hash value are equal to the recorded value; when the node server is checked When the commodity identification code is sent to the blockchain node server for inquiry, the interrogated blockchain node server sends the hash value corresponding to the commodity identification code to the checking node server, and is judged by the checking node server;
  • the interrogated blockchain node server judges to be equal, the interrogated blockchain node server notifies the check node server to display the anti-counterfeiting information on the user query page by the check node server; if the check node server judges to be equal, the check node is checked The server displays the anti-counterfeiting information on the user query page.
  • the blockchain technology since the blockchain technology is applied to both the anti-counterfeiting information and the inspection record, the data cannot be modified once written, so it can be used to verify whether the data recorded by the blockchain-based commodity anti-counterfeiting system has been altered. It can prevent anyone from tampering with data in the check node server, and further solves the trust problem between anti-counterfeiting companies, brands, and consumers.
  • the block chain master node server records the anti-counterfeiting information in the blockchain through irreversible encryption, and the block body records only the hash value of the anti-counterfeiting information, therefore, although the anti-counterfeiting
  • the information blockchain and the data of the inspection record blockchain are public to all blockchain node servers.
  • the blockchain node server has all the data recorded in the block, so the anti-counterfeiting information is very safe because Anti-counterfeiting information is still not disclosed to others.
  • FIG. 1 is a schematic diagram of a commodity chain anti-counterfeiting system based on a blockchain when an anti-counterfeiting inspection is provided for a brand according to Embodiment 1 of the present invention.
  • Embodiment 2 is a flow chart of a method for checking the authenticity of a commodity provided in Embodiment 3 of the present invention.
  • Embodiment 1 is a diagrammatic representation of Embodiment 1:
  • a first embodiment of the present invention provides a commodity chain anti-counterfeiting system based on a blockchain.
  • the commodity anti-counterfeiting system includes a blockchain node server and a check node server 11
  • the blockchain node server includes a blockchain master node server 12 and one or more blockchain slave node servers 13, and the check node server may be an inspection node server of an anti-counterfeiting company or a check node server of a brand vendor, wherein
  • the blockchain master node server 12 is responsible for billing of a brand's anti-counterfeiting information blockchain; the data generated by the billing is broadcast to the blockchain slave node server.
  • billing refers to the block data of the anti-counterfeiting information blockchain that generates a commodity or a batch of commodities.
  • the commodity identification code corresponding to the block data of the anti-counterfeit information blockchain to be generated may be automatically obtained by the blockchain master node server, manually inputting the commodity identification code one by one, and manually inputting the commodity identification code by number one segment.
  • each block data is composed of a block header and a block body, and the block header contains a hash value of the previous block data (which may be a hash value of the whole block or part of the previous block data) and the local area.
  • the hash value of the block body of the block data the block body records the hash value of the commodity identification code of a commodity or a batch of commodities and the corresponding anti-counterfeiting information.
  • the blockchain slave node server 13 is configured to receive and back up data of the brand anti-counterfeiting information blockchain of the block chain master node server, and verify the data correctness.
  • the check node server 11 is configured to store the anti-counterfeiting information of the commodity, and when receiving the request for checking the authenticity of the commodity, the security information corresponding to the commodity identification code recorded by the randomly selected blockchain node server is determined. Whether the hash values match, if they match, the anti-counterfeiting information is displayed on the user check page; the matching means that the hash value obtained by the anti-counterfeiting information after the encryption algorithm is equal to the hash value recorded by the block chain node server, the encryption algorithm The encryption algorithm used by the anti-counterfeiting information blockchain is the same; the checking node server is further configured to, when receiving the request for the user to check the authenticity of the commodity, initiate an inquiry to the blockchain node server having the inspection record blockchain, and query the investigated Whether the commodity identification number has been checked and/or checked.
  • the blockchain node server participates in checking the accounting rights competition of the recorded blockchain. If all the consumer's inspection records are written into the inspection record blockchain, we can know that the goods are inspected several times, but this way The block generation speed of the inspection record blockchain must be fast enough, so the inspection record blockchain will be long, prone to bifurcation, and the system performance is poor.
  • the solution may be that the inspection record block chain records only all the product identification codes and the inspection time that are first checked in a time period, that is, only one block is generated in one time period. For example, the recorded information is as follows: The product has been inspected for the first time in X, X, X, X, and has not been verified.
  • the anti-counterfeiting industry can be designed to generate a block for about 24 hours or longer, because it is impossible for the counterfeiter to complete the following process within 24 hours: the recovery of the identified product identification code (including packaging recycling) Use its counterfeiting and resell it to consumers.
  • the blockchain master node server may also be used to assist in verifying the anti-counterfeiting verification query initiated by the node server; periodically verifying the anti-counterfeiting information blockchain, including intra-chain verification and out-of-chain verification, and Generate logs; the competition checks the accounting rights of the blockchain (ie, mining).
  • the blockchain slave node server can also be used to receive and back up the data of the inspection record blockchain of the brand responsible for the blockchain master node server, and can also be used to receive and backup other blockchains from the node server for the inspection record.
  • the blockchain data is also used to assist in checking the anti-counterfeiting verification query initiated by the node server; periodically verifying all anti-counterfeiting information blockchains, including intra-chain verification and out-of-chain verification, and generating logs; competing inspection record blocks
  • Intra-chain verification refers to whether the block data before and after verification is a loop, regardless of whether the data recorded by the block and the data recorded by the check node server match; the out-of-chain verification refers to the data recorded by the block. Checks whether the data recorded by the node server matches (because the blockchain cannot be modified, so it can be verified whether the data recorded by the check node server has been changed).
  • the blockchain-based commodity anti-counterfeiting system may also include two inspection node servers, which are the inspection node server of the anti-counterfeiting company and the inspection node server of the brand.
  • the inspection node server of the anti-counterfeiting company When the user checks the verification node server of the anti-counterfeiting company or logs in to the inspection node server of the brand, the anti-counterfeiting pattern corresponding to the product identification code input by the user and the anti-counterfeit label corresponding to the product identification code input by the user are delivered at the same time.
  • the label pattern given to the brand is displayed on the user inspection page, so that the user can check the authenticity of the product.
  • the information obtained by the user is obtained from the anti-counterfeiting company and the brand quotient, and the texture information seen from the anti-counterfeiting pattern and the label pattern can be mutually authenticated, so the reliability of checking the authenticity of the product is higher.
  • the anti-counterfeiting information of the brand after the anti-counterfeiting treatment of the commodity is recorded to the inspection node server, and then the anti-counterfeiting information of the commodity is generated by the blockchain main node server by irreversibly encrypting, and the block data is recorded in the district of the brand merchant.
  • the anti-counterfeiting information blockchain of the blockchain master node server is broadcast to other blockchain node servers in the commodity anti-counterfeiting system.
  • Method 1 The blockchain master node server of the brand merchant receives the commodity identification code corresponding to the input anti-counterfeit processed commodity, and the blockchain master node server initiates a read data request to the corresponding brand check node server, corresponding to the brand After checking the request, the node server obtains the hash value of the corresponding anti-counterfeiting information through the irreversible encryption algorithm, and the check node server sends the hash value to the block chain master node server; or the corresponding brand check node server directly provides the anti-counterfeiting information.
  • the blockchain master node server obtains the hash value of the anti-counterfeiting information through the irreversible encryption algorithm, and the block chain master node server records the hash value in the anti-counterfeiting information blockchain by processing (recording in the block data block) In the body).
  • Method 2 the inspection node server of the brand merchant exports the anti-counterfeit information corresponding to the commodity identification code corresponding to the commodity that has been subjected to the anti-counterfeiting processing by the hash value obtained by the irreversible encryption algorithm and the commodity identification code generation data table, and the inspection node server will The data table is sent to the blockchain master node server, and the blockchain master node server uses the data table to generate new block data based on the existing anti-counterfeiting information blockchain.
  • Embodiment 2 is a diagrammatic representation of Embodiment 1:
  • the second embodiment of the present invention provides a blockchain-based commodity anti-counterfeiting system.
  • the anti-counterfeiting inspection is provided for a plurality of brands
  • the commodity anti-counterfeiting system and the blockchain-based commodity anti-counterfeiting system provided by the first embodiment of the present invention The difference is that:
  • the blockchain-based commodity anti-counterfeiting system includes a plurality of blockchain master node servers and a plurality of check node servers, one brand corresponding to one blockchain master node server and one check node server, and each brand corresponding blockchain master node
  • the server can also act as a blockchain slave node server for other brands.
  • a brand's blockchain master node server can also be used to verify the anti-counterfeiting information with other brands' inspection node servers; regular verification of all branded anti-counterfeiting information blockchains, including in-chain verification and out-of-chain verification Verify and generate logs; the competition checks the billing rights of the blockchain (ie, mining); broadcasts data to all blockchain node servers.
  • the blockchain-based commodity anti-counterfeiting system may further include a blockchain slave node server for all brands.
  • each block chain node server stores N+1 blockchains, which are each brand anti-counterfeiting.
  • Each of the information blockchains is checked, and one block of the blockchain is inspected.
  • the inspection record blockchain records the inspection records of all brands.
  • the billing right of a security information blockchain belongs to the blockchain master node server corresponding to the brand.
  • Embodiment 3 is a diagrammatic representation of Embodiment 3
  • a method for verifying the authenticity of a commodity according to Embodiment 3 of the present invention includes the following steps: It should be noted that, if substantially the same result is obtained, the method for verifying the authenticity of the commodity of the present invention is not shown in FIG. The order of the process is limited.
  • the inspection node server receives the anti-counterfeit label attached to the product to be inspected by the user or the product identification code on the anti-counterfeit package, wherein each anti-counterfeit label or each anti-counterfeit package corresponds to one item identification code.
  • the user can input the anti-counterfeit label attached to the product to be inspected or the product identity on the anti-counterfeit package by using a computer, a mobile phone or other mobile communication device to log in to the webpage, APP, or WeChat application corresponding to the node server. Identifier.
  • the checking node server determines whether the product identification code input by the user is pre-stored, and if so, reads the anti-counterfeiting information corresponding to the product identification code input by the user.
  • the verification node server calculates the hash value by using the irreversible encryption algorithm, and sends the commodity identification code and the hash value, or the commodity identification code, to the blockchain node server for inquiry.
  • the irreversible encryption algorithm is the same as the encryption algorithm used in the anti-counterfeiting information blockchain.
  • the interrogated blockchain node server determines whether the commodity identification code and the hash value are equal to the recorded value;
  • the interrogated blockchain node server sends the hash value corresponding to the commodity identification code to the inspection node server to be judged by the inspection node server.
  • the interrogated blockchain node server judges to be equal, the interrogated blockchain node server notifies the check node server to display the anti-counterfeiting information on the user query page by the check node server; if the check node server judges to be equal, The check node server displays the anti-counterfeiting information on the user query page.
  • the method for checking the authenticity of the commodity may further include the following steps:
  • the interrogated blockchain node server further determines whether there is a check record of the checked product identification code in the check record block chain. If there is no check record, the interrogated block chain node server notifies the check node server to The check node server displays when it has not been checked before. If there is a check record, the interrogated block chain node server sends the check record to the check node server, so that the time of the initial check is displayed by the check node server in the user query. page.
  • the method for checking the authenticity of the commodity may further include the following steps:
  • the blockchain node server performs the out-of-chain verification by the chain of anti-counterfeiting information of all brands according to the instruction, and the blockchain node server initiates an inquiry to the check node server of the corresponding brand, and after checking the node server receives the inquiry, the blockchain is
  • the anti-counterfeiting information corresponding to the commodity identification code inquired by the node server is calculated by the irreversible encryption algorithm and sent back to the blockchain node server, and the blockchain node server determines whether it is equal to the record, if there is unequal, Then alert the system administrator.
  • the check record blockchain can be generated in the following manner:
  • Each block chain node server will check the relevant data of all the brands of the products that were first checked in the next time period recorded in the last recorded time of the blockchain, and perform in-chain verification on the inspection record chain. If it is correct, it starts to find random numbers. The hash value of the block header or the block of the block to be generated is smaller than the difficulty coefficient. After finding the random number that meets the requirements, save the block data and broadcast it to other blockchain node servers. Immediately after the broadcast, the process of generating the next block data (mining) is entered. After the other block chain node server receives the broadcast data, it verifies whether the block data is qualified. If it is qualified, the block chain node server will enter the next block data generation process (mining) under the new block.
  • the block header contains the hash value of the block header of the previous block or the hash value of the block of the previous block, the hash value of the block, the random number, the difficulty coefficient, and the like.
  • the block contains data on the products of all brands that were first checked in a time period.
  • the consensus mechanism of the anti-counterfeiting information blockchain is sovereign accounting + out-of-chain verification.
  • the consensus mechanism for checking the blockchain is the proof of workload + out-of-chain verification, and all blockchain nodes pass the workload proof to compete for billing rights. Since the number of nodes is not too large, and it is not necessary to generate a block in a short time, the problems of capacity expansion, efficiency, and waste of power are solved.
  • a random consensus mechanism (a luck mechanism) is adopted for the random number, and a number is set for each block chain node server when the system is initially built, from 0 to N, and N is a block chain node server. total;
  • the random number assigned to the blockchain node server No. 0 is: 0, N, 2N, 3N, 4N, 5N...
  • the random number assigned to the blockchain node server No. 1 is: 1, N+1, 2N+1, 3N+1, 4N+1, 5N+1...;
  • the random number assigned to the block node server of the xth block is: x, N+x, 2N+x, 3N+x, 4N+x, 5N+x...
  • the block chain master node server since the blockchain technology is applied to both the anti-counterfeiting information and the inspection record, the data cannot be modified once written, so it can be used to verify whether the data recorded by the blockchain-based commodity anti-counterfeiting system has been altered. Moreover, after the brand manufacturer implements anti-counterfeiting measures on the goods, the block chain master node server records the anti-counterfeiting information in the blockchain through irreversible encryption, and the block body records only the hash value of the anti-counterfeiting information, therefore, although the anti-counterfeiting
  • the information blockchain and the data of the inspection record blockchain are public to all blockchain node servers. The blockchain node server has all the data recorded in the block, so the anti-counterfeiting information is very safe because Anti-counterfeiting information is still not disclosed to others.
  • the program may be stored in a computer readable storage medium, and the storage medium may include: Read Only Memory (ROM), Random Access Memory (RAM), disk or optical disk.
  • ROM Read Only Memory
  • RAM Random Access Memory

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Business, Economics & Management (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Development Economics (AREA)
  • Finance (AREA)
  • Computing Systems (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Accounting & Taxation (AREA)
  • Computer Hardware Design (AREA)
  • Economics (AREA)
  • General Engineering & Computer Science (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The present invention is applicable in the field of anti-counterfeiting. Provided are a blockchain-based merchandise anti-counterfeiting system, and a method for checking authenticity of merchandise. When providing an anti-counterfeiting check for a brand, the blockchain-based merchandise anti-counterfeiting system comprises a blockchain node server and a check node server, and the blockchain node server comprises a main blockchain node server and one or more slave blockchain node servers. The present invention can be used for verifying whether data recorded by a blockchain-based merchandise anti-counterfeiting system has been altered, and can prevent any one from tampering with the data in a check node server, further solving the problem of trust between an anti-counterfeiting company, a brand owner and a customer.

Description

一种基于区块链的商品防伪系统及查验商品真伪的方法Block anti-counterfeiting system based on blockchain and method for checking the authenticity of goods 技术领域Technical field
本发明属于防伪领域,尤其涉及一种基于区块链的商品防伪系统及查验商品真伪的方法。The invention belongs to the field of anti-counterfeiting, and particularly relates to a commodity anti-counterfeiting system based on a blockchain and a method for checking the authenticity of a commodity.
背景技术Background technique
防伪技术是一种用于识别真伪并防止伪造、变造、克隆行为的技术手段。现有技术的一种查验商品真伪的系统,包括品牌商查验服务器和防伪公司查验服务器,其中,品牌商查验服务器接收用户输入的待查验商品上附着的防伪标签上的商品身份识别码,其中每张防伪标签对应一个商品身份识别码;品牌商查验服务器判断是否预存有用户输入的商品身份识别码,如果有,则将与用户输入的商品身份识别码对应的防伪标签交付给品牌商前的标签图案和预存的与用户输入的商品身份识别码对应的防伪图案显示在用户查验页面,以由用户将标签图案和防伪图案与待查验商品的标签图案和防伪图案进行比对,查验商品的真伪,其中,所述防伪图案是品牌商对防伪公司交付的防伪标签进行防伪处理后的标签图案,或者是由附着在具有纹理的载体上的防伪标签和载体的纹理构成的,或者是商品包装上的防伪图案,当防伪图案是商品包装上的防伪图案时,商品包装上的防伪图案和/或标签图案是随机的;防伪公司查验服务器用于存储与用户输入的商品身份识别码对应的防伪标签交付给品牌商前的标签图案。Anti-counterfeiting technology is a technical means for identifying authenticity and preventing counterfeiting, alteration, and cloning behavior. A system for verifying the authenticity of a commodity in the prior art, comprising a brand inspection server and an anti-counterfeiting company inspection server, wherein the brand inspection server receives the product identification code on the security label attached to the product to be inspected input by the user, wherein Each security label corresponds to a product identification code; the brand inspection server determines whether the product identification code input by the user is pre-stored, and if so, delivers the anti-counterfeit label corresponding to the product identification code input by the user to the pre-brand The label pattern and the pre-stored anti-counterfeiting pattern corresponding to the product identification code input by the user are displayed on the user inspection page, so that the user compares the label pattern and the security pattern with the label pattern and the anti-counterfeiting pattern of the item to be inspected, and checks the trueness of the item. False, wherein the anti-counterfeiting pattern is a label pattern after the anti-counterfeiting label delivered by the anti-counterfeiting company by the brand manufacturer, or is formed by the texture of the anti-counterfeit label and the carrier attached to the textured carrier, or the product packaging Anti-counterfeiting pattern, when the anti-counterfeiting pattern is a commodity package When the security patterns, security patterns on the packaging and / or labeling pattern is random; check security company server for storing user identification code input merchandise security tags corresponding to the pattern prior to delivery to the label brands.
虽然利用现有技术的查验商品真伪的系统,用户查验得到的信息来源于防伪公司与品牌商,而且从防伪图案和标签图案看到的纹理信息是可以互证的,相对于查验得到的信息仅来源于防伪公司或品牌商的可靠性高。但是,如果防伪公司和品牌商的员工合谋更改系统数据,是不容易被发现的,因此现有技术的查验商品真伪的系统可靠性仍然不够高。Although the system for verifying the authenticity of the commodity is used in the prior art, the information obtained by the user is obtained from the anti-counterfeiting company and the brand, and the texture information seen from the anti-counterfeiting pattern and the label pattern is mutually identifiable, and the information obtained is compared with the inspection. Only from anti-counterfeiting companies or brands, the reliability is high. However, if the anti-counterfeiting company and the employees of the brand collusion to change the system data, it is not easy to be found, so the reliability of the prior art system for checking the authenticity of the goods is still not high enough.
技术问题technical problem
本发明的目的在于提供一种基于区块链的商品防伪系统及查验商品真伪的方法,旨在解决现有技术的查验商品真伪的系统,如果防伪公司和品牌商的员工合谋更改系统数据不容易被发现的问题。The object of the present invention is to provide a blockchain-based commodity anti-counterfeiting system and a method for checking the authenticity of a commodity, aiming at solving the prior art system for checking the authenticity of a commodity, if the anti-counterfeiting company and the employee of the brand collusion to change the system data. A problem that is not easy to find.
技术解决方案Technical solution
第一方面,本发明提供了一种基于区块链的商品防伪系统,当为一个品牌提供防伪查验时,所述商品防伪系统包括区块链节点服务器和一查验节点服务器,区块链节点服务器包括一区块链主节点服务器和一个或多个区块链从节点服务器,其中,In a first aspect, the present invention provides a commodity chain anti-counterfeiting system based on a blockchain. When providing anti-counterfeiting inspection for a brand, the commodity anti-counterfeiting system includes a blockchain node server and a check node server, and a blockchain node server Including a blockchain master node server and one or more blockchain slave node servers, wherein
区块链主节点服务器,用于负责一个品牌的防伪信息区块链的记帐;对记帐生成的数据广播给区块链从节点服务器;Blockchain master node server, responsible for billing of a brand of anti-counterfeiting information blockchain; broadcasting data generated by billing to a blockchain slave node server;
区块链从节点服务器,用于接收和备份区块链主节点服务器所负责的品牌的防伪信息区块链的数据,并验证数据正确性;The blockchain slave node server is configured to receive and back up data of the brand anti-counterfeiting information blockchain of the block chain master node server, and verify the correctness of the data;
查验节点服务器,用于存储商品的防伪信息,接收到用户查验商品真伪的请求时,判断防伪信息与随机选择的区块链节点服务器所记录的商品身份识别码所对应的防伪信息的哈希值是否匹配,如果匹配,则将防伪信息显示在用户查验页面。Checking the node server for storing the anti-counterfeiting information of the commodity, and receiving the hash of the anti-counterfeiting information corresponding to the commodity identification code recorded by the randomly selected blockchain node server when receiving the request for the user to check the authenticity of the commodity Whether the values match, if they match, the anti-counterfeiting information is displayed on the user check page.
第二方面,本发明提供了一种查验商品真伪的方法,所述方法包括:In a second aspect, the present invention provides a method for verifying the authenticity of a commodity, the method comprising:
查验节点服务器接收用户输入的待查验商品上附着的防伪标签或防伪包装上的商品身份识别码;The checking node server receives the anti-counterfeit label attached to the product to be inspected input by the user or the product identification code on the anti-counterfeit package;
查验节点服务器判断是否预存有用户输入的商品身份识别码,如果有,则读出与用户输入的商品身份识别码对应的防伪信息;Checking the node server to determine whether the product identification code input by the user is pre-stored, and if so, reading the anti-counterfeiting information corresponding to the product identification code input by the user;
查验节点服务器将防伪信息通过不可逆加密算法计算出哈希值,将商品身份识别码和哈希值,或者,商品身份识别码,发送至区块链节点服务器询问;The checking node server calculates the hash value by using the irreversible encryption algorithm, and sends the commodity identification code and the hash value, or the commodity identification code, to the blockchain node server for inquiry;
当查验节点服务器将商品身份识别码和哈希值发送至区块链节点服务器询问时,被询问的区块链节点服务器判断商品身份识别码及哈希值是否与记录的相等;当查验节点服务器将商品身份识别码发送至区块链节点服务器询问时,被询问的区块链节点服务器将与商品身份识别码对应记录的哈希值发送给查验节点服务器由查验节点服务器判断;When the checking node server sends the commodity identification code and the hash value to the blockchain node server for inquiry, the interrogated blockchain node server determines whether the commodity identification code and the hash value are equal to the recorded value; when the node server is checked When the commodity identification code is sent to the blockchain node server for inquiry, the interrogated blockchain node server sends the hash value corresponding to the commodity identification code to the checking node server, and is judged by the checking node server;
如果被询问的区块链节点服务器判断相等,则被询问的区块链节点服务器通知查验节点服务器,以由查验节点服务器将防伪信息显示在用户查询页面;如果查验节点服务器判断相等,则查验节点服务器将防伪信息显示在用户查询页面。If the interrogated blockchain node server judges to be equal, the interrogated blockchain node server notifies the check node server to display the anti-counterfeiting information on the user query page by the check node server; if the check node server judges to be equal, the check node is checked The server displays the anti-counterfeiting information on the user query page.
有益效果Beneficial effect
在本发明中,由于防伪信息和查验记录都应用了区块链技术,数据一旦写入就无法被修改,所以可以用来验证基于区块链的商品防伪系统所记录的数据是否被改动过,可以防止任何人在查验节点服务器中篡改数据,进一步地解决了防伪公司、品牌商、消费者三者间的信任问题。又由于在品牌商对商品实施防伪措施后,由区块链主节点服务器将防伪信息通过不可逆加密后记录在区块链中,区块体记录的只是防伪信息的哈希值,因此,虽然防伪信息区块链和查验记录区块链的数据对所有区块链节点服务器来说都是公开的,区块链节点服务器拥有所有被记录于区块的数据,所以防伪信息是很安全的,因为防伪信息仍然没有对其他人公开。In the present invention, since the blockchain technology is applied to both the anti-counterfeiting information and the inspection record, the data cannot be modified once written, so it can be used to verify whether the data recorded by the blockchain-based commodity anti-counterfeiting system has been altered. It can prevent anyone from tampering with data in the check node server, and further solves the trust problem between anti-counterfeiting companies, brands, and consumers. Moreover, after the brand manufacturer implements anti-counterfeiting measures on the goods, the block chain master node server records the anti-counterfeiting information in the blockchain through irreversible encryption, and the block body records only the hash value of the anti-counterfeiting information, therefore, although the anti-counterfeiting The information blockchain and the data of the inspection record blockchain are public to all blockchain node servers. The blockchain node server has all the data recorded in the block, so the anti-counterfeiting information is very safe because Anti-counterfeiting information is still not disclosed to others.
附图说明DRAWINGS
图1是本发明实施例一提供的,当为一个品牌提供防伪查验时,基于区块链的商品防伪系统的示意图。FIG. 1 is a schematic diagram of a commodity chain anti-counterfeiting system based on a blockchain when an anti-counterfeiting inspection is provided for a brand according to Embodiment 1 of the present invention.
图2是本发明实施例三提供的查验商品真伪的方法的流程图。2 is a flow chart of a method for checking the authenticity of a commodity provided in Embodiment 3 of the present invention.
本发明的最佳实施方式BEST MODE FOR CARRYING OUT THE INVENTION
为了使本发明的目的、技术方案及有益效果更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。The present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
为了说明本发明所述的技术方案,下面通过具体实施例来进行说明。In order to explain the technical solution described in the present invention, the following description will be made by way of specific embodiments.
实施例一:Embodiment 1:
请参阅图1,本发明实施例一提供了一种基于区块链的商品防伪系统,当为一个品牌提供防伪查验时,所述商品防伪系统包括区块链节点服务器和一查验节点服务器11,区块链节点服务器包括一区块链主节点服务器12和一个或多个区块链从节点服务器13,查验节点服务器可以是防伪公司的查验节点服务器或品牌商的查验节点服务器,其中,Referring to FIG. 1, a first embodiment of the present invention provides a commodity chain anti-counterfeiting system based on a blockchain. When the anti-counterfeiting inspection is provided for a brand, the commodity anti-counterfeiting system includes a blockchain node server and a check node server 11, The blockchain node server includes a blockchain master node server 12 and one or more blockchain slave node servers 13, and the check node server may be an inspection node server of an anti-counterfeiting company or a check node server of a brand vendor, wherein
区块链主节点服务器12,用于负责一个品牌的防伪信息区块链的记帐;对记帐生成的数据广播给区块链从节点服务器。其中,记帐是指生成一个商品或一批商品的防伪信息区块链的区块数据。待生成的防伪信息区块链的区块数据对应的商品身份识别码可以是由区块链主节点服务器自动获取的、手动逐个输入商品身份识别码的、手动逐个号段输入商品身份识别码的、或者是由数据导入的;而商品身份识别码对应的防伪信息可以是根据商品身份识别码到查验节点服务器获得的,也可以是导入方式获得的;而导入数据的数据形式可以是数据本身或其加密后的哈希值。每一区块数据是由区块头与区块体组成的,区块头包含有上一区块数据的哈希值(可以是上一区块数据的整体或部份的哈希值)和本区块数据的区块体的哈希值;区块体记录了一个商品或一批商品的商品身份识别码及其对应的防伪信息的哈希值。The blockchain master node server 12 is responsible for billing of a brand's anti-counterfeiting information blockchain; the data generated by the billing is broadcast to the blockchain slave node server. Among them, billing refers to the block data of the anti-counterfeiting information blockchain that generates a commodity or a batch of commodities. The commodity identification code corresponding to the block data of the anti-counterfeit information blockchain to be generated may be automatically obtained by the blockchain master node server, manually inputting the commodity identification code one by one, and manually inputting the commodity identification code by number one segment. Or the data is imported; and the anti-counterfeiting information corresponding to the product identification code may be obtained according to the product identification code to the inspection node server, or may be obtained by importing; and the data form of the imported data may be the data itself or Its encrypted hash value. Each block data is composed of a block header and a block body, and the block header contains a hash value of the previous block data (which may be a hash value of the whole block or part of the previous block data) and the local area. The hash value of the block body of the block data; the block body records the hash value of the commodity identification code of a commodity or a batch of commodities and the corresponding anti-counterfeiting information.
区块链从节点服务器13,用于接收和备份区块链主节点服务器所负责的品牌的防伪信息区块链的数据,并验证数据正确性。The blockchain slave node server 13 is configured to receive and back up data of the brand anti-counterfeiting information blockchain of the block chain master node server, and verify the data correctness.
查验节点服务器11,用于存储商品的防伪信息,接收到用户查验商品真伪的请求时,判断防伪信息与随机选择的区块链节点服务器所记录的商品身份识别码所对应的防伪信息的哈希值是否匹配,如果匹配,则将防伪信息显示在用户查验页面;匹配是指防伪信息通过加密算法后得到的哈希值与区块链节点服务器所记录的哈希值相等,所述加密算法与防伪信息区块链所采用的加密算法相同;查验节点服务器还用于接收到用户查验商品真伪的请求时,向具有查验记录区块链的区块链节点服务器发起询问,询问所查的商品身份识别码是否被查验过和/或被查验情况。The check node server 11 is configured to store the anti-counterfeiting information of the commodity, and when receiving the request for checking the authenticity of the commodity, the security information corresponding to the commodity identification code recorded by the randomly selected blockchain node server is determined. Whether the hash values match, if they match, the anti-counterfeiting information is displayed on the user check page; the matching means that the hash value obtained by the anti-counterfeiting information after the encryption algorithm is equal to the hash value recorded by the block chain node server, the encryption algorithm The encryption algorithm used by the anti-counterfeiting information blockchain is the same; the checking node server is further configured to, when receiving the request for the user to check the authenticity of the commodity, initiate an inquiry to the blockchain node server having the inspection record blockchain, and query the investigated Whether the commodity identification number has been checked and/or checked.
区块链节点服务器参与查验记录区块链的记帐权竞争,如果将所有消费者的查验记录都写入查验记录区块链中,我们就能够知道商品是第几次被查验的,但这样做查验记录区块链的区块生成速度必须足够快,因而查验记录区块链就会很长,容易发生分叉,系统性能很差。解决方法可以是:查验记录区块链只记录一个时间段内初次被查验的所有商品身份识别码和查验时间,即一个时间段只生成一个区块。例如记录信息如下:该商品在X年X月X日X时X分已被初次查验,没有记录就代表未被查验过。结合防伪行业的特点,可以设计成大约24小时甚至更长时间生成一个区块,因为制假者不可能在24小时内完成以下整个过程:对已查验商品身份识别码的回收(包括包装回收)、利用其制假、再销售到消费者手中。The blockchain node server participates in checking the accounting rights competition of the recorded blockchain. If all the consumer's inspection records are written into the inspection record blockchain, we can know that the goods are inspected several times, but this way The block generation speed of the inspection record blockchain must be fast enough, so the inspection record blockchain will be long, prone to bifurcation, and the system performance is poor. The solution may be that the inspection record block chain records only all the product identification codes and the inspection time that are first checked in a time period, that is, only one block is generated in one time period. For example, the recorded information is as follows: The product has been inspected for the first time in X, X, X, X, X, and has not been verified. Combined with the characteristics of the anti-counterfeiting industry, it can be designed to generate a block for about 24 hours or longer, because it is impossible for the counterfeiter to complete the following process within 24 hours: the recovery of the identified product identification code (including packaging recycling) Use its counterfeiting and resell it to consumers.
在本发明实施例一中,区块链主节点服务器还可以用于协助对查验节点服务器发起的防伪验证查询;定期对防伪信息区块链作验证工作,包括链内验证和链外验证,并生成日志;竞争查验记录区块链的记帐权(即挖矿)。区块链从节点服务器还可以用于接收和备份区块链主节点服务器所负责的品牌的查验记录区块链的数据,还可以用于接收和备份其它区块链从节点服务器发出的查验记录区块链的数据,还用于协助对查验节点服务器发起的防伪验证查询;定期对所有防伪信息区块链作验证工作,包括链内验证和链外验证,并生成日志;竞争查验记录区块链的记帐权(即挖矿)。链内验证,是指验证前后区块数据是不是一环扣一环,不考虑区块体记录的数据与查验节点服务器记录的数据是否匹配;链外验证,是指验证区块体记录的数据与查验节点服务器记录的数据是否匹配(因为区块链是无法修改的,因此可验证查验节点服务器记录的数据是否被改动过)。In the first embodiment of the present invention, the blockchain master node server may also be used to assist in verifying the anti-counterfeiting verification query initiated by the node server; periodically verifying the anti-counterfeiting information blockchain, including intra-chain verification and out-of-chain verification, and Generate logs; the competition checks the accounting rights of the blockchain (ie, mining). The blockchain slave node server can also be used to receive and back up the data of the inspection record blockchain of the brand responsible for the blockchain master node server, and can also be used to receive and backup other blockchains from the node server for the inspection record. The blockchain data is also used to assist in checking the anti-counterfeiting verification query initiated by the node server; periodically verifying all anti-counterfeiting information blockchains, including intra-chain verification and out-of-chain verification, and generating logs; competing inspection record blocks The billing right of the chain (ie mining). Intra-chain verification refers to whether the block data before and after verification is a loop, regardless of whether the data recorded by the block and the data recorded by the check node server match; the out-of-chain verification refers to the data recorded by the block. Checks whether the data recorded by the node server matches (because the blockchain cannot be modified, so it can be verified whether the data recorded by the check node server has been changed).
在本发明实施例一中,基于区块链的商品防伪系统也可以包括两个查验节点服务器,分别是防伪公司的查验节点服务器和品牌商的查验节点服务器。用户通过登录防伪公司的查验节点服务器或者通过登录品牌商的查验节点服务器进行查验时,同时将与用户输入的商品身份识别码对应的防伪图案和与用户输入的商品身份识别码对应的防伪标签交付给品牌商前的标签图案显示在用户查验页面,供用户进行比对就能查验商品的真伪。即用户查验得到的信息来源于防伪公司与品牌商,而且从防伪图案和标签图案看到的纹理信息是可以互证的,因此查验商品真伪的可靠性更高。In the first embodiment of the present invention, the blockchain-based commodity anti-counterfeiting system may also include two inspection node servers, which are the inspection node server of the anti-counterfeiting company and the inspection node server of the brand. When the user checks the verification node server of the anti-counterfeiting company or logs in to the inspection node server of the brand, the anti-counterfeiting pattern corresponding to the product identification code input by the user and the anti-counterfeit label corresponding to the product identification code input by the user are delivered at the same time. The label pattern given to the brand is displayed on the user inspection page, so that the user can check the authenticity of the product. That is to say, the information obtained by the user is obtained from the anti-counterfeiting company and the brand quotient, and the texture information seen from the anti-counterfeiting pattern and the label pattern can be mutually authenticated, so the reliability of checking the authenticity of the product is higher.
基于区块链的商品防伪系统添加防伪信息的流程如下:The process of adding anti-counterfeiting information to the commodity anti-counterfeiting system based on the blockchain is as follows:
将品牌商在对商品作防伪处理后的防伪信息记录到查验节点服务器,再由区块链主节点服务器将商品的防伪信息通过不可逆加密后生成区块数据,区块数据记录在品牌商的区块链主节点服务器的防伪信息区块链中,并向商品防伪系统中的其他区块链节点服务器广播。方式1:品牌商的区块链主节点服务器接收输入的已作防伪处理的商品对应的商品身份识别码,区块链主节点服务器向对应品牌的查验节点服务器发起读取数据请求,对应品牌的查验节点服务器收到请求后将对应的防伪信息通过不可逆加密算法得到其哈希值,查验节点服务器将哈希值发送给区块链主节点服务器;或者对应品牌的查验节点服务器直接提供防伪信息由区块链主节点服务器对防伪信息通过不可逆加密算法得到其哈希值,由区块链主节点服务器通过处理将该哈希值记录在防伪信息区块链中(记录在区块数据的区块体中)。方式2:品牌商的查验节点服务器将已作防伪处理的商品对应的商品身份识别码对应的防伪信息通过不可逆加密算法得到的哈希值与商品身份识别码生成数据表导出,查验节点服务器将该数据表发送给区块链主节点服务器,区块链主节点服务器利用该数据表在现有的防伪信息区块链的基础上生成新的区块数据。The anti-counterfeiting information of the brand after the anti-counterfeiting treatment of the commodity is recorded to the inspection node server, and then the anti-counterfeiting information of the commodity is generated by the blockchain main node server by irreversibly encrypting, and the block data is recorded in the district of the brand merchant. The anti-counterfeiting information blockchain of the blockchain master node server is broadcast to other blockchain node servers in the commodity anti-counterfeiting system. Method 1: The blockchain master node server of the brand merchant receives the commodity identification code corresponding to the input anti-counterfeit processed commodity, and the blockchain master node server initiates a read data request to the corresponding brand check node server, corresponding to the brand After checking the request, the node server obtains the hash value of the corresponding anti-counterfeiting information through the irreversible encryption algorithm, and the check node server sends the hash value to the block chain master node server; or the corresponding brand check node server directly provides the anti-counterfeiting information. The blockchain master node server obtains the hash value of the anti-counterfeiting information through the irreversible encryption algorithm, and the block chain master node server records the hash value in the anti-counterfeiting information blockchain by processing (recording in the block data block) In the body). Method 2: the inspection node server of the brand merchant exports the anti-counterfeit information corresponding to the commodity identification code corresponding to the commodity that has been subjected to the anti-counterfeiting processing by the hash value obtained by the irreversible encryption algorithm and the commodity identification code generation data table, and the inspection node server will The data table is sent to the blockchain master node server, and the blockchain master node server uses the data table to generate new block data based on the existing anti-counterfeiting information blockchain.
实施例二:Embodiment 2:
本发明实施例二提供了一种基于区块链的商品防伪系统,当为多个品牌提供防伪查验时,所述商品防伪系统与本发明实施例一提供的基于区块链的商品防伪系统的区别在于:The second embodiment of the present invention provides a blockchain-based commodity anti-counterfeiting system. When the anti-counterfeiting inspection is provided for a plurality of brands, the commodity anti-counterfeiting system and the blockchain-based commodity anti-counterfeiting system provided by the first embodiment of the present invention The difference is that:
基于区块链的商品防伪系统包括多个区块链主节点服务器和多个查验节点服务器,一个品牌对应一个区块链主节点服务器和一个查验节点服务器,每个品牌对应的区块链主节点服务器同时可以作为其他品牌的区块链从节点服务器。一个品牌的区块链主节点服务器还可以用于配合其它品牌的查验节点服务器对防伪信息的验证;定期对已记录的所有品牌的防伪信息区块链作验证工作,包括链内验证和链外验证,并生成日志;竞争查验记录区块链的记帐权(即挖矿);向所有区块链节点服务器广播数据。The blockchain-based commodity anti-counterfeiting system includes a plurality of blockchain master node servers and a plurality of check node servers, one brand corresponding to one blockchain master node server and one check node server, and each brand corresponding blockchain master node The server can also act as a blockchain slave node server for other brands. A brand's blockchain master node server can also be used to verify the anti-counterfeiting information with other brands' inspection node servers; regular verification of all branded anti-counterfeiting information blockchains, including in-chain verification and out-of-chain verification Verify and generate logs; the competition checks the billing rights of the blockchain (ie, mining); broadcasts data to all blockchain node servers.
在本发明实施例二中,基于区块链的商品防伪系统还可以包括一针对所有品牌的区块链从节点服务器。In the second embodiment of the present invention, the blockchain-based commodity anti-counterfeiting system may further include a blockchain slave node server for all brands.
本发明实施例二提供的基于区块链的商品防伪系统,当为N个品牌提供防伪查验时,每一区块链节点服务器都保存有N+1条区块链,分别是每个品牌防伪信息区块链各1条,查验记录区块链1条,查验记录区块链记录了所有品牌的查验记录。一条防伪信息区块链的记帐权只属于该品牌对应的区块链主节点服务器拥有。According to the blockchain-based commodity anti-counterfeiting system provided by the second embodiment of the present invention, when the anti-counterfeiting inspection is provided for N brands, each block chain node server stores N+1 blockchains, which are each brand anti-counterfeiting. Each of the information blockchains is checked, and one block of the blockchain is inspected. The inspection record blockchain records the inspection records of all brands. The billing right of a security information blockchain belongs to the blockchain master node server corresponding to the brand.
实施例三:Embodiment 3:
请参阅图2,本发明实施例三提供查验商品真伪的方法包括以下步骤:需注意的是,若有实质上相同的结果,本发明的查验商品真伪的方法并不以图2所示的流程顺序为限。Referring to FIG. 2, a method for verifying the authenticity of a commodity according to Embodiment 3 of the present invention includes the following steps: It should be noted that, if substantially the same result is obtained, the method for verifying the authenticity of the commodity of the present invention is not shown in FIG. The order of the process is limited.
S101、查验节点服务器接收用户输入的待查验商品上附着的防伪标签或防伪包装上的商品身份识别码,其中每张防伪标签或每个防伪包装对应一个商品身份识别码。S101. The inspection node server receives the anti-counterfeit label attached to the product to be inspected by the user or the product identification code on the anti-counterfeit package, wherein each anti-counterfeit label or each anti-counterfeit package corresponds to one item identification code.
在本发明实施例三中,用户可以通过电脑、手机或其它移动通讯设备登录查验节点服务器对应的网页、APP、微信端应用等方式输入待查验商品上附着的防伪标签或防伪包装上的商品身份识别码。In the third embodiment of the present invention, the user can input the anti-counterfeit label attached to the product to be inspected or the product identity on the anti-counterfeit package by using a computer, a mobile phone or other mobile communication device to log in to the webpage, APP, or WeChat application corresponding to the node server. Identifier.
S102、查验节点服务器判断是否预存有用户输入的商品身份识别码,如果有,则读出与用户输入的商品身份识别码对应的防伪信息。S102. The checking node server determines whether the product identification code input by the user is pre-stored, and if so, reads the anti-counterfeiting information corresponding to the product identification code input by the user.
S103、查验节点服务器将防伪信息通过不可逆加密算法计算出哈希值,将商品身份识别码和哈希值,或者,商品身份识别码,发送至区块链节点服务器询问。所述不可逆加密算法与防伪信息区块链所采用的加密算法相同。S103. The verification node server calculates the hash value by using the irreversible encryption algorithm, and sends the commodity identification code and the hash value, or the commodity identification code, to the blockchain node server for inquiry. The irreversible encryption algorithm is the same as the encryption algorithm used in the anti-counterfeiting information blockchain.
S104、当查验节点服务器将商品身份识别码和哈希值发送至区块链节点服务器询问时,被询问的区块链节点服务器判断商品身份识别码及哈希值是否与记录的相等;当查验节点服务器将商品身份识别码发送至区块链节点服务器询问时,被询问的区块链节点服务器将与商品身份识别码对应记录的哈希值发送给查验节点服务器由查验节点服务器判断。S104. When the checking node server sends the commodity identification code and the hash value to the blockchain node server for inquiry, the interrogated blockchain node server determines whether the commodity identification code and the hash value are equal to the recorded value; When the node server sends the commodity identification code to the blockchain node server for inquiry, the interrogated blockchain node server sends the hash value corresponding to the commodity identification code to the inspection node server to be judged by the inspection node server.
S105、如果被询问的区块链节点服务器判断相等,则被询问的区块链节点服务器通知查验节点服务器,以由查验节点服务器将防伪信息显示在用户查询页面;如果查验节点服务器判断相等,则查验节点服务器将防伪信息显示在用户查询页面。S105. If the interrogated blockchain node server judges to be equal, the interrogated blockchain node server notifies the check node server to display the anti-counterfeiting information on the user query page by the check node server; if the check node server judges to be equal, The check node server displays the anti-counterfeiting information on the user query page.
在本发明实施例三中,所述查验商品真伪的方法还可以包括以下步骤:In the third embodiment of the present invention, the method for checking the authenticity of the commodity may further include the following steps:
被询问的区块链节点服务器还判断在查验记录区块链中是否有被查的商品身份识别码的查验记录,如果没有查验记录,则被询问的区块链节点服务器通知查验节点服务器,以由查验节点服务器显示在何时前未被查验,如果有查验记录,则被询问的区块链节点服务器将查验记录发送给查验节点服务器,以由查验节点服务器将初次查验的时间显示在用户查询页面。The interrogated blockchain node server further determines whether there is a check record of the checked product identification code in the check record block chain. If there is no check record, the interrogated block chain node server notifies the check node server to The check node server displays when it has not been checked before. If there is a check record, the interrogated block chain node server sends the check record to the check node server, so that the time of the initial check is displayed by the check node server in the user query. page.
在本发明实施例三中,所述查验商品真伪的方法还可以包括以下步骤:In the third embodiment of the present invention, the method for checking the authenticity of the commodity may further include the following steps:
区块链节点服务器按指令逐一对所有品牌的防伪信息区块链作链外验证,由区块链节点服务器向对应品牌的查验节点服务器发起询问,查验节点服务器收到询问后,将区块链节点服务器所询问的商品身份识别码对应的防伪信息通过不可逆加密算法计算出哈希值发回给区块链节点服务器,由区块链节点服务器判断是否与记录的相等,如果有不相等的,则向系统管理员发起警报。The blockchain node server performs the out-of-chain verification by the chain of anti-counterfeiting information of all brands according to the instruction, and the blockchain node server initiates an inquiry to the check node server of the corresponding brand, and after checking the node server receives the inquiry, the blockchain is The anti-counterfeiting information corresponding to the commodity identification code inquired by the node server is calculated by the irreversible encryption algorithm and sent back to the blockchain node server, and the blockchain node server determines whether it is equal to the record, if there is unequal, Then alert the system administrator.
在本发明实施例三中,所述查验记录区块链可以通过以下方式生成:In the third embodiment of the present invention, the check record blockchain can be generated in the following manner:
每个区块链节点服务器将查验记录区块链最后记录的下一个时间段内初次查验的所有品牌的商品的相关数据打包,并对查验记录链作链内验证,如果正确就开始找随机数,使得待生成的区块的区块头或区块的整体的哈希值小于难度系数。找到符合要求的随机数后保存区块数据并向其它区块链节点服务器广播。广播后马上再进入下一区块数据的生成过程(挖矿)。其它区块链节点服务器收到广播数据后,验证区块数据是否合格,如果合格,区块链节点服务器将会在这个新区块下进入下一区块数据的生成过程(挖矿)。区块头含有上一区块的区块头的哈希值或上一区块的区块整体的哈希值、本区块体的哈希值、随机数、难度系数……等等。区块体含有一个时间段内初次查验的所有品牌的商品的相关数据。Each block chain node server will check the relevant data of all the brands of the products that were first checked in the next time period recorded in the last recorded time of the blockchain, and perform in-chain verification on the inspection record chain. If it is correct, it starts to find random numbers. The hash value of the block header or the block of the block to be generated is smaller than the difficulty coefficient. After finding the random number that meets the requirements, save the block data and broadcast it to other blockchain node servers. Immediately after the broadcast, the process of generating the next block data (mining) is entered. After the other block chain node server receives the broadcast data, it verifies whether the block data is qualified. If it is qualified, the block chain node server will enter the next block data generation process (mining) under the new block. The block header contains the hash value of the block header of the previous block or the hash value of the block of the previous block, the hash value of the block, the random number, the difficulty coefficient, and the like. The block contains data on the products of all brands that were first checked in a time period.
在本发明实施例三中,防伪信息区块链的共识机制是主权记帐+链外验证。查验记录区块链的共识机制是工作量证明+链外验证,由所有区块链节点通过工作量证明去竞争记帐权。由于节点数量不是太多,而且并不需要在很短的时间里生成一区块,因而解决了扩容性、效率、浪费电力等问题。In the third embodiment of the present invention, the consensus mechanism of the anti-counterfeiting information blockchain is sovereign accounting + out-of-chain verification. The consensus mechanism for checking the blockchain is the proof of workload + out-of-chain verification, and all blockchain nodes pass the workload proof to compete for billing rights. Since the number of nodes is not too large, and it is not necessary to generate a block in a short time, the problems of capacity expansion, efficiency, and waste of power are solved.
在本发明实施例三中,对随机数采取分派共识机制(运气机制),系统初建时给每个区块链节点服务器设定一个编号,由0至N,N是区块链节点服务器的总数;In the third embodiment of the present invention, a random consensus mechanism (a luck mechanism) is adopted for the random number, and a number is set for each block chain node server when the system is initially built, from 0 to N, and N is a block chain node server. total;
每次挖矿时:Every time you mine:
给0号区块链节点服务器分配的随机数为:0、N、2N、3N、4N、5N……; The random number assigned to the blockchain node server No. 0 is: 0, N, 2N, 3N, 4N, 5N...
给1号区块链节点服务器分配的随机数为:1、N+1、2N+1、3N+1、4N+1、5N+1……;The random number assigned to the blockchain node server No. 1 is: 1, N+1, 2N+1, 3N+1, 4N+1, 5N+1...;
给x号区块链节点服务器分配的随机数为:x、N+x、2N+x、3N+x、4N+x、5N+x……;The random number assigned to the block node server of the xth block is: x, N+x, 2N+x, 3N+x, 4N+x, 5N+x...
因此解决了现有的区块链系统易分叉的问题。Therefore, the problem that the existing blockchain system is easy to fork is solved.
在本发明中,由于防伪信息和查验记录都应用了区块链技术,数据一旦写入就无法被修改,所以可以用来验证基于区块链的商品防伪系统所记录的数据是否被改动过。又由于在品牌商对商品实施防伪措施后,由区块链主节点服务器将防伪信息通过不可逆加密后记录在区块链中,区块体记录的只是防伪信息的哈希值,因此,虽然防伪信息区块链和查验记录区块链的数据对所有区块链节点服务器来说都是公开的,区块链节点服务器拥有所有被记录于区块的数据,所以防伪信息是很安全的,因为防伪信息仍然没有对其他人公开。In the present invention, since the blockchain technology is applied to both the anti-counterfeiting information and the inspection record, the data cannot be modified once written, so it can be used to verify whether the data recorded by the blockchain-based commodity anti-counterfeiting system has been altered. Moreover, after the brand manufacturer implements anti-counterfeiting measures on the goods, the block chain master node server records the anti-counterfeiting information in the blockchain through irreversible encryption, and the block body records only the hash value of the anti-counterfeiting information, therefore, although the anti-counterfeiting The information blockchain and the data of the inspection record blockchain are public to all blockchain node servers. The blockchain node server has all the data recorded in the block, so the anti-counterfeiting information is very safe because Anti-counterfeiting information is still not disclosed to others.
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储介质中,存储介质可以包括:只读存储器(ROM,Read Only Memory)、随机存取记忆体(RAM,Random Access Memory)、磁盘或光盘等。A person skilled in the art may understand that all or part of the various steps of the foregoing embodiments may be performed by a program to instruct related hardware. The program may be stored in a computer readable storage medium, and the storage medium may include: Read Only Memory (ROM), Random Access Memory (RAM), disk or optical disk.
以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内所作的任何修改、等同替换和改进等,均应包含在本发明的保护范围之内。The above is only the preferred embodiment of the present invention, and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection of the present invention. Within the scope.

Claims (14)

  1. 一种基于区块链的商品防伪系统,其特征在于,当为一个品牌提供防伪查验时,所述商品防伪系统包括区块链节点服务器和一查验节点服务器,区块链节点服务器包括一区块链主节点服务器和一个或多个区块链从节点服务器,其中, A commodity chain anti-counterfeiting system based on blockchain, characterized in that, when providing anti-counterfeiting inspection for a brand, the commodity anti-counterfeiting system comprises a blockchain node server and a check node server, and the blockchain node server comprises a block a chain master server and one or more blockchain slave node servers, where
      区块链主节点服务器,用于负责一个品牌的防伪信息区块链的记帐;对记帐生成的数据广播给区块链从节点服务器;Blockchain master node server, responsible for billing of a brand of anti-counterfeiting information blockchain; broadcasting data generated by billing to a blockchain slave node server;
      区块链从节点服务器,用于接收和备份区块链主节点服务器所负责的品牌的防伪信息区块链的数据,并验证数据正确性;The blockchain slave node server is configured to receive and back up data of the brand anti-counterfeiting information blockchain of the block chain master node server, and verify the correctness of the data;
      查验节点服务器,用于存储商品的防伪信息,接收到用户查验商品真伪的请求时,判断防伪信息与随机选择的区块链节点服务器所记录的商品身份识别码所对应的防伪信息的哈希值是否匹配,如果匹配,则将防伪信息显示在用户查验页面。Checking the node server for storing the anti-counterfeiting information of the commodity, and receiving the hash of the anti-counterfeiting information corresponding to the commodity identification code recorded by the randomly selected blockchain node server when receiving the request for the user to check the authenticity of the commodity Whether the values match, if they match, the anti-counterfeiting information is displayed on the user check page.
  2. 如权利要求1所述的商品防伪系统,其特征在于,所述查验节点服务器是防伪公司的查验节点服务器或品牌商的查验节点服务器。The commodity anti-counterfeiting system according to claim 1, wherein the inspection node server is an inspection node server of an anti-counterfeiting company or a verification node server of a brand.
  3. 如权利要求1所述的商品防伪系统,其特征在于,所述记帐是指生成一个商品或一批商品的防伪信息区块链的区块数据;The commodity anti-counterfeiting system according to claim 1, wherein said billing refers to block data of a block of anti-counterfeiting information blocks for generating a commodity or a batch of merchandise;
      每一区块数据是由区块头与区块体组成的,区块头包含有上一区块数据的哈希值和本区块数据的区块体的哈希值,区块体记录了一个商品或一批商品的商品身份识别码及其对应的防伪信息的哈希值。Each block data is composed of a block header and a block body. The block header contains a hash value of the previous block data and a hash value of the block body of the block data, and the block body records a commodity. Or the hash value of the commodity identification code of a batch of goods and its corresponding anti-counterfeiting information.
  4. 如权利要求1所述的商品防伪系统,其特征在于,查验节点服务器还用于接收到用户查验商品真伪的请求时,向具有查验记录区块链的区块链节点服务器发起询问,询问所查的商品身份识别码是否被查验过和/或被查验情况。The commodity anti-counterfeiting system according to claim 1, wherein the checking node server is further configured to, when receiving the request for the user to check the authenticity of the commodity, initiate an inquiry to the blockchain node server having the inspection record blockchain, and query the office Whether the product identification number checked has been checked and/or checked.
  5. 如权利要求1所述的商品防伪系统,其特征在于,查验记录区块链只记录一个时间段内初次被查验的所有商品身份识别码和查验时间。The commodity anti-counterfeiting system of claim 1 wherein the inspection record block chain records only all of the item identification codes and inspection times that were first checked in a time period.
  6. 如权利要求1所述的商品防伪系统,其特征在于,区块链主节点服务器还用于协助对查验节点服务器发起的防伪验证查询;定期对防伪信息区块链作验证工作,包括链内验证和链外验证,并生成日志;竞争查验记录区块链的记帐权; The commodity anti-counterfeiting system according to claim 1, wherein the blockchain master node server is further configured to assist in verifying the anti-counterfeiting verification query initiated by the node server; and periodically verifying the anti-counterfeiting information blockchain, including intra-chain verification. And out-of-chain verification, and generate logs; the competition check records the billing rights of the blockchain;
      区块链从节点服务器还用于接收和备份区块链主节点服务器所负责的品牌的查验记录区块链的数据,还用于接收和备份其它区块链从节点服务器发出的查验记录区块链的数据,还用于协助对查验节点服务器发起的防伪验证查询;定期对所有防伪信息区块链作验证工作,包括链内验证和链外验证,并生成日志;竞争查验记录区块链的记帐权。The blockchain slave node server is also used to receive and back up the data of the inspection record blockchain of the brand responsible for the blockchain master node server, and is also used for receiving and backing up the inspection record block sent by the other blockchain from the node server. The chain data is also used to assist in checking the anti-counterfeiting verification query initiated by the node server; periodically verifying all the anti-counterfeiting information blockchains, including intra-chain verification and out-of-chain verification, and generating logs; competing for checking the blockchain Billing rights.
  7. 如权利要求1所述的商品防伪系统,其特征在于,所述商品防伪系统还包括另一个查验节点服务器,两个查验节点服务器分别是防伪公司的查验节点服务器和品牌商的查验节点服务器。The commodity anti-counterfeiting system according to claim 1, wherein the commodity anti-counterfeiting system further comprises another checking node server, wherein the two checking node servers are respectively an inspection node server of the anti-counterfeiting company and a checking node server of the brand.
  8. 如权利要求1至7任一项所述的商品防伪系统,其特征在于,当为多个品牌提供防伪查验时,所述商品防伪系统包括多个区块链主节点服务器和多个查验节点服务器,一个品牌对应一个区块链主节点服务器和一个查验节点服务器,每个品牌对应的区块链主节点服务器同时作为其他品牌的区块链从节点服务器;The commodity anti-counterfeiting system according to any one of claims 1 to 7, wherein when the anti-counterfeiting inspection is provided for a plurality of brands, the commodity anti-counterfeiting system includes a plurality of blockchain master node servers and a plurality of check node servers One brand corresponds to one blockchain master node server and one check node server, and each brand corresponding blockchain master node server serves as a blockchain slave node server of other brands at the same time;
      一个品牌的区块链主节点服务器还用于配合其它品牌的查验节点服务器对防伪信息的验证;定期对已记录的所有品牌的防伪信息区块链作验证工作,包括链内验证和链外验证,并生成日志;竞争查验记录区块链的记帐权;向所有区块链节点服务器广播数据。A brand's blockchain master node server is also used to verify the anti-counterfeiting information with other brands' inspection node servers; periodically verify all the branded anti-counterfeiting information blockchains, including in-chain verification and out-of-chain verification. And generate a log; the contention check records the billing rights of the blockchain; broadcasts data to all blockchain node servers.
  9. 如权利要求8所述的商品防伪系统,其特征在于,所述商品防伪系统还包括一针对所有品牌的区块链从节点服务器。The commodity anti-counterfeiting system of claim 8 wherein said commodity anti-counterfeiting system further comprises a blockchain slave node server for all brands.
  10. 一种查验商品真伪的方法,其特征在于,所述方法包括:A method for verifying the authenticity of a commodity, the method comprising:
      查验节点服务器接收用户输入的待查验商品上附着的防伪标签或防伪包装上的商品身份识别码;The checking node server receives the anti-counterfeit label attached to the product to be inspected input by the user or the product identification code on the anti-counterfeit package;
      查验节点服务器判断是否预存有用户输入的商品身份识别码,如果有,则读出与用户输入的商品身份识别码对应的防伪信息;Checking the node server to determine whether the product identification code input by the user is pre-stored, and if so, reading the anti-counterfeiting information corresponding to the product identification code input by the user;
      查验节点服务器将防伪信息通过不可逆加密算法计算出哈希值,将商品身份识别码和哈希值,或者,商品身份识别码,发送至区块链节点服务器询问;The checking node server calculates the hash value by using the irreversible encryption algorithm, and sends the commodity identification code and the hash value, or the commodity identification code, to the blockchain node server for inquiry;
      当查验节点服务器将商品身份识别码和哈希值发送至区块链节点服务器询问时,被询问的区块链节点服务器判断商品身份识别码及哈希值是否与记录的相等;当查验节点服务器将商品身份识别码发送至区块链节点服务器询问时,被询问的区块链节点服务器将与商品身份识别码对应记录的哈希值发送给查验节点服务器由查验节点服务器判断; When the checking node server sends the commodity identification code and the hash value to the blockchain node server for inquiry, the interrogated blockchain node server determines whether the commodity identification code and the hash value are equal to the recorded value; when the node server is checked When the commodity identification code is sent to the blockchain node server for inquiry, the interrogated blockchain node server sends the hash value corresponding to the commodity identification code to the checking node server, and is judged by the checking node server;
      如果被询问的区块链节点服务器判断相等,则被询问的区块链节点服务器通知查验节点服务器,以由查验节点服务器将防伪信息显示在用户查询页面;如果查验节点服务器判断相等,则查验节点服务器将防伪信息显示在用户查询页面。If the interrogated blockchain node server judges to be equal, the interrogated blockchain node server notifies the check node server to display the anti-counterfeiting information on the user query page by the check node server; if the check node server judges to be equal, the check node is checked The server displays the anti-counterfeiting information on the user query page.
  11. 如权利要求10所述的方法,其特征在于,被询问的区块链节点服务器还判断在查验记录区块链中是否有被查的商品身份识别码的查验记录,如果没有查验记录,则被询问的区块链节点服务器通知查验节点服务器,以由查验节点服务器显示在何时前未被查验,如果有查验记录,则被询问的区块链节点服务器将查验记录发送给查验节点服务器,以由查验节点服务器将初次查验的时间显示在用户查询页面。The method according to claim 10, wherein the interrogated block chain node server further determines whether there is a check record of the checked product identification code in the check record block chain, and if there is no check record, The interrogated blockchain node server notifies the check node server to display when the check node server displays the undetected time. If there is a check record, the interrogated block chain node server sends the check record to the check node server to The time of the initial check is displayed on the user query page by the check node server.
  12. 如权利要求10所述的方法,其特征在于,所述方法还包括:The method of claim 10, wherein the method further comprises:
      区块链节点服务器按指令逐一对所有品牌的防伪信息区块链作链外验证,由区块链节点服务器向对应品牌的查验节点服务器发起询问,查验节点服务器收到询问后,将区块链节点服务器所询问的商品身份识别码对应的防伪信息通过不可逆加密算法计算出哈希值发回给区块链节点服务器,由区块链节点服务器判断是否与记录的相等,如果有不相等的,则向系统管理员发起警报。The blockchain node server performs the out-of-chain verification by the chain of anti-counterfeiting information of all brands according to the instruction, and the blockchain node server initiates an inquiry to the check node server of the corresponding brand, and after checking the node server receives the inquiry, the blockchain is The anti-counterfeiting information corresponding to the commodity identification code inquired by the node server is calculated by the irreversible encryption algorithm and sent back to the blockchain node server, and the blockchain node server determines whether it is equal to the record, if there is unequal, Then alert the system administrator.
  13. 如权利要求10所述的方法,其特征在于,所述查验记录区块链通过以下方式生成:The method of claim 10 wherein said checking the record blockchain is generated in the following manner:
      每个区块链节点服务器将查验记录区块链最后记录的下一个时间段内初次查验的所有品牌的商品的相关数据打包,并对查验记录链作链内验证,如果正确就开始找随机数,使得待生成的区块的区块头或区块的整体的哈希值小于难度系数;Each block chain node server will check the relevant data of all the brands of the products that were first checked in the next time period recorded in the last recorded time of the blockchain, and perform in-chain verification on the inspection record chain. If it is correct, it starts to find random numbers. So that the overall hash value of the block header or the block of the block to be generated is smaller than the difficulty coefficient;
      找到符合要求的随机数后保存区块数据并向其它区块链节点服务器广播;After finding the random number that meets the requirements, save the block data and broadcast it to other blockchain node servers;
      广播后马上再进入下一区块数据的生成过程;Immediately after the broadcast, the process of generating the next block data is entered;
      其它区块链节点服务器收到广播数据后,验证区块数据是否合格,如果合格,区块链节点服务器将会在这个新区块下进入下一区块数据的生成过程。After the other block chain node server receives the broadcast data, it verifies whether the block data is qualified. If it is qualified, the block chain node server will enter the next block data generation process under the new block.
  14. 如权利要求13所述的方法,其特征在于,对随机数采取分派共识机制,系统初建时给每个区块链节点服务器设定一个编号,由0至N,N是区块链节点服务器的总数;The method according to claim 13, wherein a random consensus mechanism is adopted for the random number, and a number is set for each block chain node server when the system is initially built, from 0 to N, and N is a block chain node server. total;
      每次挖矿时:Every time you mine:
      给0号区块链节点服务器分配的随机数为:0、N、2N、3N、4N、5N……; The random number assigned to the blockchain node server No. 0 is: 0, N, 2N, 3N, 4N, 5N...
      给1号区块链节点服务器分配的随机数为:1、N+1、2N+1、3N+1、4N+1、5N+1……;The random number assigned to the blockchain node server No. 1 is: 1, N+1, 2N+1, 3N+1, 4N+1, 5N+1...;
      给x号区块链节点服务器分配的随机数为:x、N+x、2N+x、3N+x、4N+x、5N+x……。The random numbers assigned to the block chain node server of number x are: x, N+x, 2N+x, 3N+x, 4N+x, 5N+x....
PCT/CN2018/090671 2018-04-03 2018-06-11 Blockchain-based merchandise anti-counterfeiting system, and method for checking authenticity of merchandise WO2019192072A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810285919.8A CN108985785B (en) 2018-04-03 2018-04-03 Commodity anti-counterfeiting system based on block chain and method for checking authenticity of commodities
CN201810285919.8 2018-04-03

Publications (1)

Publication Number Publication Date
WO2019192072A1 true WO2019192072A1 (en) 2019-10-10

Family

ID=64541770

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/090671 WO2019192072A1 (en) 2018-04-03 2018-06-11 Blockchain-based merchandise anti-counterfeiting system, and method for checking authenticity of merchandise

Country Status (2)

Country Link
CN (1) CN108985785B (en)
WO (1) WO2019192072A1 (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110716988A (en) * 2019-10-21 2020-01-21 安徽强晟物联信息科技有限公司 Anti-counterfeiting traceability system based on block chain
CN110958317A (en) * 2019-11-29 2020-04-03 腾讯科技(深圳)有限公司 Data processing method and equipment
CN111199026A (en) * 2019-12-26 2020-05-26 安徽讯呼信息科技有限公司 Block chain service system
CN111325564A (en) * 2020-03-17 2020-06-23 河南佼荣网络科技有限公司 Method and system for tracing supply chain by using block chain
CN111368953A (en) * 2020-03-10 2020-07-03 大仝智能科技有限公司 Product anti-counterfeiting traceability system and method
CN111626752A (en) * 2020-05-18 2020-09-04 深圳市沃客非凡科技有限公司 E-commerce product information tracing method and system based on block chain and Internet of things coupling
CN111652629A (en) * 2020-05-21 2020-09-11 杭州溪塔科技有限公司 Commodity anti-counterfeiting method and device based on block chain
CN111709758A (en) * 2020-05-09 2020-09-25 杨绍荣 Pu' er tea identification method applying multiple identification technologies
CN112540338A (en) * 2020-10-23 2021-03-23 国网天津市电力公司 Intelligent electric meter verification system based on block chain technology
CN113159690A (en) * 2021-05-08 2021-07-23 包头市畅行交通信息科技有限公司 Method and system for anti-counterfeiting tracing of cross-border commodities based on Internet of things
CN115065506A (en) * 2022-05-25 2022-09-16 深圳壹盆花文创科技有限公司 Management system for identifying authenticity of artwork and author identity based on block chain

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109727044A (en) * 2018-12-29 2019-05-07 百度在线网络技术(北京)有限公司 Brand transaction methods, device, equipment and medium based on block chain
CN109754327A (en) * 2019-01-11 2019-05-14 深圳市点点电子商务有限公司 Recognition methods, system and the computer readable storage medium of false letter of guarantee
CN111585994A (en) * 2020-04-27 2020-08-25 中国银行股份有限公司 Data processing method and system
CN112035426A (en) * 2020-08-06 2020-12-04 珠海格力电器股份有限公司 Supply chain data anti-counterfeiting method, device, equipment and computer readable medium
CN113011975A (en) * 2021-02-22 2021-06-22 西安超越申泰信息科技有限公司 Block chain anti-counterfeiting transaction method supporting national cryptographic algorithm and computer equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106209877A (en) * 2016-07-19 2016-12-07 井创(北京)科技有限公司 A kind of be certification core with block chain backstage false-proof authentication system
CN106447358A (en) * 2016-10-10 2017-02-22 东莞市天眼网络科技有限公司 Method and system for examining authenticity of goods
CN106570710A (en) * 2016-10-27 2017-04-19 纸飞机(北京)科技有限公司 Commodity anti-counterfeiting method and device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105608588A (en) * 2016-01-04 2016-05-25 布比(北京)网络技术有限公司 Tracing record processing method and apparatus
CN107341676A (en) * 2017-07-17 2017-11-10 深圳天净喔溯源科技有限公司 False proof mark and the method for tracing to the source
CN107633414A (en) * 2017-10-18 2018-01-26 上海唯链信息科技有限公司 A kind of case and bag based on block chain technology are false proof and traceability system
CN107730280A (en) * 2017-10-18 2018-02-23 上海唯链信息科技有限公司 A kind of design and realization of the Antiforge system based on block chain technology

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106209877A (en) * 2016-07-19 2016-12-07 井创(北京)科技有限公司 A kind of be certification core with block chain backstage false-proof authentication system
CN106447358A (en) * 2016-10-10 2017-02-22 东莞市天眼网络科技有限公司 Method and system for examining authenticity of goods
CN106570710A (en) * 2016-10-27 2017-04-19 纸飞机(北京)科技有限公司 Commodity anti-counterfeiting method and device

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110716988B (en) * 2019-10-21 2023-11-28 合肥徽盟云链信息技术有限公司 Anti-fake traceability system based on block chain
CN110716988A (en) * 2019-10-21 2020-01-21 安徽强晟物联信息科技有限公司 Anti-counterfeiting traceability system based on block chain
CN110958317B (en) * 2019-11-29 2022-08-09 腾讯科技(深圳)有限公司 Data processing method and equipment
CN110958317A (en) * 2019-11-29 2020-04-03 腾讯科技(深圳)有限公司 Data processing method and equipment
CN111199026A (en) * 2019-12-26 2020-05-26 安徽讯呼信息科技有限公司 Block chain service system
CN111199026B (en) * 2019-12-26 2023-05-23 安徽讯呼信息科技有限公司 Block chain service system
CN111368953A (en) * 2020-03-10 2020-07-03 大仝智能科技有限公司 Product anti-counterfeiting traceability system and method
CN111325564A (en) * 2020-03-17 2020-06-23 河南佼荣网络科技有限公司 Method and system for tracing supply chain by using block chain
CN111325564B (en) * 2020-03-17 2024-02-02 河南佼荣网络科技有限公司 Method and system for realizing supply chain tracing by using block chain
CN111709758A (en) * 2020-05-09 2020-09-25 杨绍荣 Pu' er tea identification method applying multiple identification technologies
CN111626752A (en) * 2020-05-18 2020-09-04 深圳市沃客非凡科技有限公司 E-commerce product information tracing method and system based on block chain and Internet of things coupling
CN111626752B (en) * 2020-05-18 2023-08-29 深圳市沃客非凡科技有限公司 E-commerce product information tracing method and system based on block chain and Internet of things coupling
CN111652629A (en) * 2020-05-21 2020-09-11 杭州溪塔科技有限公司 Commodity anti-counterfeiting method and device based on block chain
CN112540338A (en) * 2020-10-23 2021-03-23 国网天津市电力公司 Intelligent electric meter verification system based on block chain technology
CN113159690A (en) * 2021-05-08 2021-07-23 包头市畅行交通信息科技有限公司 Method and system for anti-counterfeiting tracing of cross-border commodities based on Internet of things
CN115065506A (en) * 2022-05-25 2022-09-16 深圳壹盆花文创科技有限公司 Management system for identifying authenticity of artwork and author identity based on block chain
CN115065506B (en) * 2022-05-25 2024-04-30 深圳壹盆花文创科技有限公司 Management system for identifying authenticity of artwork and authorship based on blockchain

Also Published As

Publication number Publication date
CN108985785B (en) 2022-04-15
CN108985785A (en) 2018-12-11

Similar Documents

Publication Publication Date Title
WO2019192072A1 (en) Blockchain-based merchandise anti-counterfeiting system, and method for checking authenticity of merchandise
US11562375B2 (en) Blockchain-based data verification method, apparatus, and electronic device
JP5546728B2 (en) Method and system for product marking, tracking and certification
JP5139415B2 (en) Article information acquisition method and apparatus
US8421593B2 (en) Apparatus, systems and methods for authentication of objects having multiple components
CN111414429B (en) Block chain-based commodity information management method, electronic equipment and storage medium
TW202042573A (en) Methods and systems for preparing and performing an object authentication
CN107292629A (en) Anti-counterfeit tracking verification method based on block chain and the device using this method
US8155313B2 (en) Systems and methods for employing duo codes for product authentication
US20140095398A1 (en) Double ID Anti-Counterfeit Method and System
CN104854642A (en) Method and apparatus for marking manufactured items using physical characteristic
CN102063633A (en) Anti-counterfeiting method based on radio frequency identification technology
WO2019246399A1 (en) Digital ledger for unique item ids with ownership
Saeed et al. An NFC based consumer-level counterfeit detection framework
US20210182869A1 (en) Method and system for generalized provenance solution for blockchain supply chain applications
US8300806B2 (en) Duo codes for product authentication
CN113450092A (en) Block chain network-based article safe and efficient transaction method, system and storage medium
CN101356538A (en) Method of authentication of items put into circulation field
AU2013234799B2 (en) External log storage in an asset storage and transfer system
CN112884485A (en) Symmetric encryption traceability transaction method, system and storage medium based on block chain network
CN115131037A (en) Method and device for detecting commodity fleeing goods
RU2322692C1 (en) Method for identification and accounting of movement of marked objects and informational system for realization of the method
CN113379428A (en) Bottled wine circulation tracing method and system
GB2429078A (en) Authentication system
CN114565393A (en) Whole industry chain product traceability authentication method and system based on block chain technology

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18913521

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18913521

Country of ref document: EP

Kind code of ref document: A1