CN110874749A - Certified tracing method based on block chaining - Google Patents

Certified tracing method based on block chaining Download PDF

Info

Publication number
CN110874749A
CN110874749A CN201911138550.9A CN201911138550A CN110874749A CN 110874749 A CN110874749 A CN 110874749A CN 201911138550 A CN201911138550 A CN 201911138550A CN 110874749 A CN110874749 A CN 110874749A
Authority
CN
China
Prior art keywords
traceability
data
commodity
information
block
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911138550.9A
Other languages
Chinese (zh)
Inventor
李蕴光
郭瑞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CN201911138550.9A priority Critical patent/CN110874749A/en
Publication of CN110874749A publication Critical patent/CN110874749A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/018Certifying business or products
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Accounting & Taxation (AREA)
  • General Engineering & Computer Science (AREA)
  • Computing Systems (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Data Mining & Analysis (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Finance (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention provides a block link based certified traceability method, which is used for collecting product production information, including basic information, production link places and time; transmitting the product production information to a data collector; receiving processing data uploaded by a data enterprise, analyzing the processing data, dividing the processing data into traceability data and commodity data, storing the commodity data into a solr, and storing the traceability data into a block chain through a web3j component to complete information chaining; receiving a query instruction which is uploaded by equipment and contains a commodity, calling a block which stores traceability data in the commodity on a block chain according to the query instruction, and checking traceability information stored in the block. According to the method, the data are classified into the traceability data and the commodity data for classified storage, and the consumer can inquire the traceability information stored on the block chain, so that the safety and the efficiency of the data are improved.

Description

Certified tracing method based on block chaining
Technical Field
The invention belongs to the technical field of block chains, and particularly relates to a certified tracing method based on a block chain.
Background
The block chain technology is based on a decentralized peer-to-peer network, and by combining a cryptology principle, time sequence data and a consensus mechanism through open source software, consistency and persistence of each node in a distributed database are guaranteed, information can be verified and traced immediately, tampering is difficult, and shielding cannot be achieved, so that a set of private, efficient and safe shared value system is created.
In the blockchain, information is publicly transparent, data exchange is directly carried out between two nodes without a third party organization participating in the data exchange, so that the data cannot be copied by using a blank and cannot be deleted at will, and once the data is recorded in a block, no one can tamper with the data.
The traditional method for tracing the source of the blockchain mainly comprises the processes of data acquisition, packaging, storage and query, and a user can query all data on the blockchain, but the problem of privacy security of the user occurs, and any user can query the data on the blockchain, so that the data security is poor and the speed is slow.
Disclosure of Invention
Aiming at the defects in the prior art, the invention provides a block link based certified tracing method, which improves the safety and the operation speed of data.
A block link based certified tracing method comprises the following steps:
collecting product production information including basic information, production link locations and time;
transmitting the product production information to a data collector;
receiving processing data uploaded by a data enterprise, analyzing the processing data, dividing the processing data into traceability data and commodity data, storing the commodity data into a solr, and storing the traceability data into a block chain through a web3j component to complete information chaining;
receiving a query instruction which is uploaded by equipment and contains a commodity, calling a block which stores traceability data in the commodity on a block chain according to the query instruction, and checking traceability information stored in the block.
Preferably, the basic information includes a product name, a production date, an inspector, an inspection date, ex-warehouse information, warehousing information and logistics information.
Preferably, the product production information is collected by identification bar code, identification two-dimensional code, RFID radio frequency reading and/or ocr identification software.
Preferably, the storing the source tracing data into the block chain through the web3j component specifically includes:
the traceback data is converted into a binary string, which is stored into a blockchain by the web3j component.
Preferably, the block chain is a federation chain;
before the collecting the product production information, the method further comprises the following steps:
and when receiving a joining application initiated by the equipment, auditing the joining application, and when the auditing is passed, defining the equipment initiating the joining application as the node of the alliance chain.
Preferably, after completing the uplink of the information, the method further comprises:
in the block chain block generating process, when two nodes are detected to calculate the titles issued by the block chain at the same time, the node with longer working time is obtained, and the preset block reward is distributed to the node.
Preferably, each commodity is provided with a unique traceability code, a traceability certificate and a password, the traceability code is used for a consumer to inquire traceability information, the password is used for getting the traceability certificate of the commodity, and the password is arranged inside a package of the commodity and corresponds to the traceability code one to one.
Preferably, the traceability certificate of each item can only be retrieved once.
Preferably, after the reviewing the tracing information stored in the block, the method further includes:
when a scanning instruction of a consumer scanning the tracing code in the commodity is received, inquiring whether the tracing permit still exists in the commodity, and if so, distributing the tracing permit of the commodity to the consumer; if not, the commodity is judged to be a non-genuine commodity.
Preferably, after the tracing certificate of the commodity is distributed to the consuming user, the method further comprises:
and recording consumption users, time and places on the blocks storing the tracing data in the commodity on the block chain.
According to the technical scheme, the block chain-based certified traceability method provided by the invention classifies the data into traceability data and commodity data for classified storage, so that a consumer can inquire traceability information stored on a block chain, and the safety and the operation speed of the data are improved.
Drawings
In order to more clearly illustrate the detailed description of the invention or the technical solutions in the prior art, the drawings that are needed in the detailed description of the invention or the prior art will be briefly described below. Throughout the drawings, like elements or portions are generally identified by like reference numerals. In the drawings, elements or portions are not necessarily drawn to scale.
Fig. 1 is a flowchart of a block chain-based certified tracing method according to an embodiment of the present invention.
Detailed Description
Embodiments of the present invention will be described in detail below with reference to the accompanying drawings. The following examples are only for illustrating the technical solutions of the present invention more clearly, and therefore are only examples, and the protection scope of the present invention is not limited thereby. It is to be noted that, unless otherwise specified, technical or scientific terms used herein shall have the ordinary meaning as understood by those skilled in the art to which the invention pertains.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the specification of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to a determination" or "in response to a detection". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
The first embodiment is as follows:
a block chaining-based certified traceability method, see fig. 1, includes the following steps:
s1: collecting product production information including basic information, production link locations and time;
specifically, step S1 collects all data in the production process of the product. For example, the product name, production date, inspector, inspection date, ex-warehouse information, warehousing information, logistics information, and location and time of each production link.
S2: transmitting the product production information to a data collector;
specifically, production information is generally collected by a traceability enterprise and transmitted to a data collector.
S3: receiving processing data uploaded by a data enterprise, analyzing the processing data, dividing the processing data into traceability data and commodity data, storing the commodity data into a solr, and storing the traceability data into a block chain through a web3j component to complete information chaining;
specifically, the processing data is typically an xml format file, and step S3 stores some commodity data that is not desired to be disclosed to the consuming user into the solr. solr refers to an independent enterprise-level search application server. And storing the traceability data which can be disclosed to the consuming user into the block chain for the consuming user to inquire. The web3j component is a lightweight, Reactive, type-safe Java library.
S4: receiving a query instruction which is uploaded by equipment and contains a commodity, calling a block which stores traceability data in the commodity on a block chain according to the query instruction, and checking traceability information stored in the block.
In particular, the commodity data is generally confidential information, such as user information and enterprise information, which is not desired to be disclosed to the outside for the consumer to inquire. The consuming user can only query the tracing data stored in the blockchain. When a consumer wants to query the traceability data of a certain commodity, the consumer scans the identification, such as a two-dimensional code, on the commodity through the traceability APP on the device, sends out a query instruction, calls a corresponding block on the block chain according to information such as the name or code of the commodity in the query instruction, and sends the traceability information in the block to the device of the consumer for display. Therefore, the efficiency can be improved, and the important information can not be changed.
According to the method, the data are classified into the traceability data and the commodity data for classified storage, a consumer can inquire the traceability information stored on the block chain, and the safety and the operation speed of the data are improved.
Preferably, the product production information is collected by identification bar code, identification two-dimensional code, RFID radio frequency reading and/or ocr identification software.
Specifically, the traceability enterprise can acquire product production information by various methods such as bar code identification, two-dimensional code identification, RFID reading, ocr identification and the like. ocr is a common type of character recognition software.
Preferably, the storing the source tracing data into the block chain through the web3j component specifically includes:
the traceback data is converted into a binary string, which is stored into a blockchain by the web3j component.
Specifically, after the method finishes data chaining, data is packaged and stored on the block chain, and anyone can not delete or modify the data, so that the authenticity of the traceability information is ensured.
Preferably, the block chain is a federation chain;
specifically, the method adopts a alliance chain instead of an unlimited public chain system, and can protect user privacy and enterprise confidentiality to the maximum extent on the basis of ensuring decentralized operation.
Before the collecting the product production information, the method further comprises the following steps:
and when receiving a joining application initiated by the equipment, auditing the joining application, and when the auditing is passed, defining the equipment initiating the joining application as the node of the alliance chain.
Specifically, the block chain in the method is a federation chain, and when a device wants to participate in the certified tracing source block chain, the device needs to apply in advance, and the device can become a node after passing the certification. A node comprises a personal computer, server, etc. that provides computing power. According to the method, identity control is introduced into the block chain, the internal trust of the network is enhanced, verification operation is simplified, and system efficiency is improved.
Preferably, after completing the uplink of the information, the method further comprises:
in the block chain block generating process, when two nodes are detected to calculate the titles issued by the block chain at the same time, the node with longer working time is obtained, and the preset block reward is distributed to the node.
Specifically, a currency age mechanism is added in the method, and when two nodes calculate topics issued by a block chain at the same time in the block chain generating process, the method can automatically judge which node has longer working time and distribute block rewards to the nodes with longer working time. The automatic judgment allocates the block reward to the nodes with longer working time, thereby effectively preventing the concurrency defect of the block chain network.
Preferably, each commodity is provided with a unique traceability code, a traceability certificate and a password, the traceability code is used for a consumer to inquire traceability information, the password is used for getting the traceability certificate of the commodity, and the password is arranged inside a package of the commodity and corresponds to the traceability code one to one.
Specifically, since the password is provided inside the package of the commodity, the password can be obtained only by destroying the package of the commodity. When a consumer wants to obtain the traceability permit, the consumer firstly destroys the package of the commodity, and after obtaining the password, inputs the password in the traceability APP to search the corresponding traceability code, so as to obtain the only traceability permit.
Preferably, the traceability certificate of each item can only be retrieved once.
Specifically, since the traceability certificate of each commodity can only be received once, when the commodity is consumed for the first time, the consumer can receive the traceability certificate through the traceability code, so that if an illegal user forges a counterfeit commodity by using a package of the commodity, the subsequent consumer cannot receive the traceability certificate through the traceability code, and the commodity can be described as being consumed or forged at this time. The retrieved traceability pass-throughs can be stored directly in the user's wallet of the consuming user.
Preferably, after the reviewing the tracing information stored in the block, the method further includes:
when a scanning instruction of a consumer scanning the tracing code in the commodity is received, inquiring whether the tracing permit still exists in the commodity, and if so, distributing the tracing permit of the commodity to the consumer; if not, the commodity is judged to be a non-genuine commodity.
Specifically, the traceability certificate of each commodity can be received only once, so that before a consumer receives the traceability certificate, it is first determined whether the commodity still has the traceability certificate, and if the traceability certificate exists, it is determined that the commodity consumption condition is normal, which is the first consumption. If the source certificate is not passed, the commodity is indicated to be consumed, and the commodity may be illegal.
Preferably, after the tracing certificate of the commodity is distributed to the consuming user, the method further comprises:
and recording consumption users, time and places on the blocks storing the tracing data in the commodity on the block chain.
Specifically, in order to ensure the authenticity of the tracing information, after the user receives the tracing certificate, it is indicated that the user has consumed the commodity, and at this time, the consuming user, the time and the location need to be recorded in the blockchain.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; such modifications and substitutions do not depart from the spirit and scope of the present invention, and they should be construed as being included in the following claims and description.

Claims (10)

1. A block link based certified tracing method is characterized by comprising the following steps:
collecting product production information including basic information, production link locations and time;
transmitting the product production information to a data collector;
receiving processing data uploaded by a data enterprise, analyzing the processing data, dividing the processing data into traceability data and commodity data, storing the commodity data into a solr, and storing the traceability data into a block chain through a web3j component to complete information chaining;
receiving a query instruction which is uploaded by equipment and contains a commodity, calling a block which stores traceability data in the commodity on a block chain according to the query instruction, and checking traceability information stored in the block.
2. The blockchain-based certified traceability method of claim 1,
the basic information includes product name, production date, inspector, inspection date, ex-warehouse information, warehousing information and logistics information.
3. The blockchain-based certified traceability method of claim 1,
the product production information is collected through identification bar codes, identification two-dimensional codes, RFID radio frequency reading and/or ocr identification software.
4. The blockchain-based certified traceability method of claim 1,
the storing the source tracing data into a block chain through a web3j component specifically includes:
the traceback data is converted into a binary string, which is stored into a blockchain by the web3j component.
5. The blockchain-based certified traceability method of claim 1,
the block chain is a alliance chain;
before the collecting the product production information, the method further comprises the following steps:
and when receiving a joining application initiated by the equipment, auditing the joining application, and when the auditing is passed, defining the equipment initiating the joining application as the node of the alliance chain.
6. The blockchain-based certified traceability method of claim 5,
after completing the information uplink, the method further comprises:
in the block chain block generating process, when two nodes are detected to calculate the titles issued by the block chain at the same time, the node with longer working time is obtained, and the preset block reward is distributed to the node.
7. The blockchain-based certified traceability method of claim 1,
every commodity all is equipped with unique traceability code, traceability permit and password, the traceability code is used for supplying consumption user inquiry traceability information, and the password is used for getting the traceability permit of this commodity, the password setting is inside the packing of commodity, and with the traceability code one-to-one.
8. The blockchain-based certified traceability method of claim 7,
the source certificate of each commodity can be obtained only once.
9. The blockchain-based certified traceability method of claim 8,
after the viewing the tracing information stored in the block, the method further comprises:
when a scanning instruction of a consumer scanning the tracing code in the commodity is received, inquiring whether the tracing permit still exists in the commodity, and if so, distributing the tracing permit of the commodity to the consumer; if not, the commodity is judged to be a non-genuine commodity.
10. The blockchain-based certified traceability method of claim 9,
after the tracing certificate of the commodity is distributed to the consuming user, the method further comprises the following steps:
and recording consumption users, time and places on the blocks storing the tracing data in the commodity on the block chain.
CN201911138550.9A 2019-11-20 2019-11-20 Certified tracing method based on block chaining Pending CN110874749A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911138550.9A CN110874749A (en) 2019-11-20 2019-11-20 Certified tracing method based on block chaining

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911138550.9A CN110874749A (en) 2019-11-20 2019-11-20 Certified tracing method based on block chaining

Publications (1)

Publication Number Publication Date
CN110874749A true CN110874749A (en) 2020-03-10

Family

ID=69718066

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911138550.9A Pending CN110874749A (en) 2019-11-20 2019-11-20 Certified tracing method based on block chaining

Country Status (1)

Country Link
CN (1) CN110874749A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111740841A (en) * 2020-05-29 2020-10-02 致信互链(北京)科技有限公司 Method and device for generating and verifying tracing code
CN112307500A (en) * 2020-11-02 2021-02-02 杭州甘道智能科技有限公司 Block chain-based vaccine circulation data encryption device and method
CN112711724A (en) * 2021-01-11 2021-04-27 河北博健科技有限公司 Commodity code identification method and system suitable for block chain

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
AU2018101359A4 (en) * 2018-09-15 2018-10-18 Abu Shanab, Nadeem MR NutriBlock, an innovative, specialised Blockchain solution for food safety traceability in the agri-food & nutraceutical products industries
CN108694594A (en) * 2018-05-29 2018-10-23 阿里巴巴集团控股有限公司 Commodity source tracing method and device, electronic equipment based on block chain
CN109829824A (en) * 2019-03-05 2019-05-31 河钢国际科技(北京)有限公司 A kind of commodity transaction information sharing method based on block chain technology
CN110083620A (en) * 2019-03-21 2019-08-02 深圳壹账通智能科技有限公司 Based on the data query method and device of block chain, storage medium, electronic device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108694594A (en) * 2018-05-29 2018-10-23 阿里巴巴集团控股有限公司 Commodity source tracing method and device, electronic equipment based on block chain
AU2018101359A4 (en) * 2018-09-15 2018-10-18 Abu Shanab, Nadeem MR NutriBlock, an innovative, specialised Blockchain solution for food safety traceability in the agri-food & nutraceutical products industries
CN109829824A (en) * 2019-03-05 2019-05-31 河钢国际科技(北京)有限公司 A kind of commodity transaction information sharing method based on block chain technology
CN110083620A (en) * 2019-03-21 2019-08-02 深圳壹账通智能科技有限公司 Based on the data query method and device of block chain, storage medium, electronic device

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111740841A (en) * 2020-05-29 2020-10-02 致信互链(北京)科技有限公司 Method and device for generating and verifying tracing code
CN111740841B (en) * 2020-05-29 2023-08-18 致信互链(北京)科技有限公司 Verification method and device for tracing codes
CN112307500A (en) * 2020-11-02 2021-02-02 杭州甘道智能科技有限公司 Block chain-based vaccine circulation data encryption device and method
CN112711724A (en) * 2021-01-11 2021-04-27 河北博健科技有限公司 Commodity code identification method and system suitable for block chain
CN112711724B (en) * 2021-01-11 2022-05-31 河北博健科技有限公司 Commodity code identification method and system suitable for block chain

Similar Documents

Publication Publication Date Title
JP7385600B2 (en) Method and system for automatic object recognition and authentication
CN109598540B (en) Advertisement accurate pushing method and advertisement accurate pushing system
US20160098723A1 (en) System and method for block-chain verification of goods
US20160098730A1 (en) System and Method for Block-Chain Verification of Goods
Hepp et al. Securing physical assets on the blockchain: Linking a novel object identification concept with distributed ledgers
US20190197562A1 (en) System and method for product authentication
CN109829726B (en) Block chain-based drug information management method and system
CN102831529B (en) A kind of commodity information identification method based on radio frequency and system
CN110874749A (en) Certified tracing method based on block chaining
CN108985790A (en) Method for anti-counterfeit, system, computer equipment and storage medium based on block chain
Hong et al. An agri-product traceability system based on iot and blockchain technology
JP2022514784A (en) Methods and systems for preparing and performing object authentication
US20160337358A1 (en) Method for encoding an access to a computer resource
CN108268799B (en) Data query system and method, storage medium and terminal
CN111414430B (en) Block chain-based commodity information management method, electronic equipment and storage medium
CN112199446B (en) Method, device, equipment and storage medium for storing article circulation records
CN111695648A (en) Block chain electronic tag device and product traceability authentication system
Gayialis et al. An approach for creating a blockchain platform for labeling and tracing wines and spirits
CN112446450A (en) Entity article ownership management method and device based on block chain and electronic equipment
CN106022797A (en) Smart device APP image recognition method
CN103577996A (en) On-line verification method and system
CN114830599B (en) Managing physical objects using encryption anchors
Gopalakrishnan et al. A Conceptual Framework for using videogrammetry in Blockchain platforms for food supply chain traceability
Balasubramani et al. An Ethereum based fake product identification system using smart contract
CN112039876A (en) Data ferrying method, device, equipment and medium

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200310