CN115760163A - Product supply chain tracing method and device based on block chain - Google Patents
Product supply chain tracing method and device based on block chain Download PDFInfo
- Publication number
- CN115760163A CN115760163A CN202211503814.8A CN202211503814A CN115760163A CN 115760163 A CN115760163 A CN 115760163A CN 202211503814 A CN202211503814 A CN 202211503814A CN 115760163 A CN115760163 A CN 115760163A
- Authority
- CN
- China
- Prior art keywords
- product
- information
- identification
- authentication platform
- identification information
- 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
Links
Images
Classifications
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/30—Computing systems specially adapted for manufacturing
Landscapes
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The block chain-based product supply chain tracing method and device provided by the invention acquire identification information of a product from an authentication platform; the identification information is a unique identification of the product; based on the identification information, corresponding provisioning flow information is called from the blockchain. According to the technical scheme provided by the invention, the traceability information is obtained from the block chain, so that the probability of data tampering is reduced, and the data security is ensured; furthermore, the identification information after being authenticated is acquired from the authentication platform, so that the authenticity and the reliability of the identification information are ensured, and the authenticity and the reliability of the acquired traceability information are further ensured.
Description
Technical Field
The invention belongs to the technical field of computing, and particularly relates to a tracing method and device for a product supply chain based on a block chain.
Background
The industrial supply chain is the key for the smooth economic cycle of the large country, and along with the development of the society and the improvement of the safety consciousness of consumers to products, the requirement for clear and complete traceability of the product supply chain is gradually improved.
In the prior art, important products such as edible agricultural products, foods, medicines, agricultural production data, special equipment, dangerous goods, rare earth products and the like are classified, guided and implemented step by step, so that an important product tracing system which is based on the main responsibility of an enterprise and oriented to informatization tracing and intercommunication sharing is realized, the quality safety comprehensive treatment is promoted, the quality safety and public safety level of the product are improved, and the development requirements of the life and the economic society of people are better met.
However, the existing product supply chain tracing method has the problems of low tracing efficiency, low accuracy, difficulty in ensuring the authenticity of tracing information and the like.
Disclosure of Invention
The invention provides a tracing method and device for a product supply chain based on a block chain.
The technical scheme adopted by the invention is as follows:
the invention provides a block chain-based product supply chain tracing method, which comprises the following steps:
acquiring identification information of a product from an authentication platform; the identification information is a unique identification of the product;
based on the identification information, corresponding provisioning flow information is called from the blockchain.
Further, the method further comprises:
acquiring the identification information from an authentication platform based on the production information of the product; the production information comprises relevant information of the production process flow of the product.
Further, the obtaining the identification information from an authentication platform based on the production information of the product includes:
sending a first request to an authentication platform; the first request includes a supplier identification of the product and production information for the product;
and the authentication platform generates and sends the identification information of the product based on the first request.
Further, the method further comprises:
sending a second request to the authentication platform; the second request includes vendor information for the product; the supplier information represents information related to a supplier who produces and processes the product;
the authentication platform authenticates the vendor of the product based on the second request;
if the authentication is passed, the authentication platform generates a vendor identification and sends it.
Further, the method further comprises:
uploading the provisioning flow information to the blockchain using at least one API; the flow information corresponding to different APIs is different.
Further, the obtaining the identification information of the product from the authentication platform includes:
acquiring an identification code arranged on the product;
and acquiring the identification information of the product from the authentication platform based on the identification code.
Further, the identification code comprises one of:
two-dimension codes;
a bar code;
and (5) numbering the products.
The invention also provides a block chain-based product supply chain tracing device, which comprises:
the acquisition module is used for acquiring the identification information of the product from the authentication platform; the identification information is a unique identification of the product;
and the processing unit is used for calling corresponding supply flow information from the block chain based on the identification information.
Further, the obtaining module is further configured to obtain the identification information from an authentication platform based on production information of the product; the production information comprises relevant information of the production process flow of the product.
Further, the apparatus also includes an upload module for uploading the provisioning flow information to the blockchain using at least one API; the flow information corresponding to different APIs is different.
The block chain-based product supply chain tracing method and device provided by the invention acquire identification information of a product from an authentication platform; the identification information is a unique identification of the product; based on the identification information, corresponding provisioning flow information is called from the blockchain. According to the technical scheme provided by the invention, the traceability information is acquired from the block chain, so that the data tampering probability is reduced, and the data security is ensured; furthermore, the identification information after authentication is acquired from the authentication platform, so that the authenticity and reliability of the identification information are ensured, and the authenticity and reliability of the acquired tracing information are further ensured.
Drawings
Fig. 1 is a schematic flowchart of a tracing method of a block chain-based product supply chain according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating enterprise authentication according to an embodiment of the present invention;
FIG. 3 is a schematic diagram illustrating a process of uploading data to a blockchain through an API according to an embodiment of the present invention;
FIG. 4 is a schematic diagram illustrating a process of authenticating production information of a product according to an embodiment of the present invention;
fig. 5 is a schematic diagram illustrating an uploading process of product supply flow information according to an embodiment of the present invention.
Detailed Description
The invention is further described below with reference to the figures and examples.
The embodiment of the invention provides a product supply chain tracing method based on a block chain, which is applied to electronic equipment, particularly terminal equipment such as a mobile phone, a computer and a tablet computer; as shown in fig. 1, the method includes:
step 101: acquiring identification information of a product from an authentication platform; the identification information is a unique identification of the product;
step 102: based on the identification information, corresponding provisioning flow information is called from the blockchain.
Here, when the identification information is acquired from the authentication platform, the authentication platform needs to authenticate the production flow of the product first, so as to ensure the safety and compliance of the production flow.
Thus, in one embodiment, the method further comprises:
acquiring the identification information from an authentication platform based on the production information of the product; the production information comprises relevant information of the production process flow of the product.
Specifically, the electronic device uploads the production information of the product to the authentication platform, and the authentication platform performs security authentication on the production information of the product, generates identification information after the authentication is passed, and sends the identification information to the electronic device.
Specifically, in an embodiment, the obtaining the identification information from the authentication platform based on the production information of the product includes:
sending a first request to an authentication platform; the first request includes a supplier identification of the product and production information for the product;
and the authentication platform generates and sends the identification information of the product based on the first request.
Here, the vendor identification is a unique identification generated for the vendor by the authentication platform. In order to ensure the safety of the product supply chain, before the authentication platform generates the supplier identification, the identity of the supplier is authenticated.
Thus, in one embodiment, the method further comprises authenticating the supplier of the product.
The process of authenticating the vendor includes:
sending a second request to the authentication platform; the second request includes vendor information for the product; the supplier information represents information related to a supplier who produces and processes the product;
the authentication platform authenticates the vendor of the product based on the second request;
in the case of passing authentication, the authentication platform generates a vendor identification and sends it.
In order to meet the requirement of product data evidence storage, the invention can call an intelligent contract through an interface of a data unified chain based on a bottom layer block chain framework to construct a safe, credible, convenient and extensible agricultural product data protection platform.
Thus, in one embodiment, the method further comprises:
uploading the provisioning flow information to the blockchain using at least one API; the flow information corresponding to different APIs is different.
Because the block chain provides a whole set of API for upper-layer application in the electronic equipment to realize the storage of the trusted data of the product, the application system under the chain is decoupled from the block chain on the chain, so that the details of network consensus, encryption, identity authentication and the like of the block chain are shielded, and the development difficulty is reduced. Meanwhile, the mode forms a uniform data standard, a consistent data sharing mechanism and a smooth data exchange channel for a supply chain platform, effectively solves the problems of data ownership, safety, privacy protection and the like which trouble all parties, and quickly realizes multi-party service intercommunication and data management.
Here, the API for data uplink can be automatically generated based on Golang; specifically, a chain code is deployed first, an API for data uplink is automatically generated according to the name of the chain code, and the service system can complete data uplink by calling the API.
In one embodiment, the obtaining the identification information of the product from the authentication platform includes:
acquiring an identification code arranged on the product;
based on the identification code, obtaining identification information of the product from the authentication platform.
In particular, the identification code comprises one of:
two-dimensional codes;
a bar code;
and (6) product numbering.
The embodiment of the present invention further provides a product supply chain tracing apparatus based on a block chain, including:
the acquisition module is used for acquiring the identification information of the product from the authentication platform; the identification information is a unique identification of the product;
and the processing unit is used for calling corresponding supply flow information from the block chain based on the identification information.
In an embodiment, the obtaining module is further configured to obtain the identification information from an authentication platform based on production information of the product; the production information comprises relevant information of the production process flow of the product.
In order that the manner in which the invention is put into effect will be more clearly understood, the invention will now be further described with reference to specific application examples.
Step 1: the enterprise logs in and registers on the authentication platform, and submits enterprise information to the authentication platform for verification and authentication, and after the authentication is passed, the authentication platform sends an enterprise ID (identity) which uniquely represents the enterprise, namely a supplier identifier, to the enterprise.
Here, the certification platform may be implemented by a certification center of the product tracing platform.
As shown in fig. 2, the process of enterprise authentication includes:
201: a user fills in enterprise information on a terminal;
202: the authentication platform authenticates the enterprise information; when the authentication is passed, step 203 is entered; when the authentication fails, returning to step 201;
203: the authentication platform generates an enterprise ID and sends the enterprise ID to the terminal;
204: the terminal uploads the enterprise ID to the blockchain.
Step 2: in the production and processing process of products, such as a planting process, a breeding process and the like, an enterprise uploads process data (namely production information) to a product tracing platform according to a unified standard provided by the product tracing platform so as to provide related information for subsequent product tracing.
In order to meet the requirement of product data evidence storage, a safe, reliable, convenient and extensible agricultural product data protection platform can be constructed by providing an API (application programming interface) of a unified data chaining and calling an intelligent contract based on a bottom layer block chain framework as shown in FIG. 3. Because the block chain provides a whole set of API for upper-layer application in the electronic equipment to realize the storage of the trusted data of the product, the application system under the chain is decoupled from the block chain on the chain, so that the details of network consensus, encryption, identity authentication and the like of the block chain are shielded, and the development difficulty is reduced.
After the enterprise uploads the production information, the authentication platform needs to authenticate the production information.
As shown in fig. 4, the authentication process of the production information includes:
401: a user logs in a product tracing platform;
402: filling information in links such as planting, breeding, processing, refrigerating and the like;
403: reporting information of each link to a product tracing platform;
404: the product tracing platform authenticates the information of each link; when the authentication is passed, go to step 305; when the authentication fails, returning to step 302;
405: the product tracing platform generates a unique identification code for the product.
And step 3: after the production and processing link is finished, the product tracing platform generates a unique product ID of the product, and the display form of the product ID can be a two-dimensional code, a bar code or a serial number; printing the ID of the product in a specific display form and placing the ID on the product;
here, each product has a unique product ID, a plurality of product codes can be applied for products of the same batch, each batch of products corresponds to one product ID, and a consumer can obtain all traceability information of the product by scanning the codes through the APP.
And 4, step 4: after the product is processed, all information of the product is associated with the product ID and then uploaded to the block chain, so that a consumer can obtain information of the corresponding product through the product ID.
Here, the product ID is used as an identifier in the circulation link, so that all information (i.e., supply process information) of the circulation link is uploaded to the block chain, for example, which dealer purchases the product, or which network platform sells the product, logistics information after purchase by a consumer, and the like, and therefore, when a quality problem occurs in the product, the related environment can be traced back by using the product ID of the product, so that related enterprises can be traced back, and accurate and reliable tracing is realized. Of course, the user purchase information, such as the purchase date and the purchase network point, can be traced, so that the product quality is problematic, the authenticity of the traced product is ensured in the product tracing process, and the effectiveness and the reliability of the traced result are improved.
As shown in fig. 5, the process of uploading the information of the supply flow includes:
501: the product enters a supply chain, and production data are uploaded to a block chain;
502: the product is transferred to a supplier and a seller, and the transfer data is uploaded to a block chain;
503: the consumer purchases the product and uploads the purchase data to the blockchain.
The application embodiment of the invention has the following advantages:
(1) The authenticity of the source tracing data source of various products (such as agricultural products, food and drink, medicines, dangerous goods, production raw materials, special equipment and the like) is ensured;
(2) Supporting the full-link traceability of various products, including links such as production, circulation, consumption and the like;
(3) The problem of data chaining is solved, a standardized interface is adopted, only the chain code needs to be uploaded, and the API generation of the chain code can be automatically completed.
In order to implement the method, the invention further provides a product supply chain tracing device based on the block chain, which comprises:
the acquisition module is used for acquiring the identification information of the product from the authentication platform; the identification information is a unique identification of the product;
and the processing unit is used for calling corresponding supply flow information from the block chain based on the identification information.
In one embodiment, the obtaining module is further configured to obtain the identification information from an authentication platform based on production information of the product; the production information comprises relevant information of the production process flow of the product.
In one embodiment, the apparatus further comprises an upload module for uploading the supply flow information to the blockchain using at least one API; the flow information corresponding to different APIs is different.
It should be noted that the above-mentioned embodiments are only for illustrating the technical solutions of the present invention and not for limiting, and other modifications or equivalent substitutions made by the technical solutions of the present invention by those skilled in the art should be covered in the scope of the claims of the present invention as long as they do not depart from the spirit and scope of the technical solutions of the present invention.
Claims (10)
1. A traceability method of a product supply chain based on a block chain is characterized by comprising the following steps:
acquiring identification information of a product from an authentication platform; the identification information is a unique identification of the product;
based on the identification information, corresponding provisioning flow information is called from the blockchain.
2. The method of claim 1, further comprising:
acquiring the identification information from an authentication platform based on the production information of the product; the production information comprises relevant information of the production process flow of the product.
3. The method of claim 2, wherein obtaining the identification information from an authentication platform based on production information for the product comprises:
sending a first request to an authentication platform; the first request includes a supplier identification of the product and production information for the product;
and the authentication platform generates and sends the identification information of the product based on the first request.
4. The method of claim 3, further comprising:
sending a second request to the authentication platform; the second request includes vendor information for the product; the supplier information represents information related to a supplier who produces and processes the product;
the authentication platform authenticates the vendor of the product based on the second request;
if the authentication is passed, the authentication platform generates a vendor identification and sends it.
5. The method of claim 1, further comprising:
uploading the provisioning flow information to the blockchain using at least one API; the flow information corresponding to different APIs is different.
6. The method of any of claims 1 to 5, wherein the obtaining identification information of the product from the authentication platform comprises:
acquiring an identification code arranged on the product;
based on the identification code, obtaining identification information of the product from the authentication platform.
7. The method of claim 6, wherein the identification code comprises one of:
two-dimensional codes;
a bar code;
and (5) numbering the products.
8. A block chain based product supply chain traceability device, comprising:
the acquisition module is used for acquiring the identification information of the product from the authentication platform; the identification information is a unique identification of the product;
and the processing unit is used for calling corresponding supply flow information from the block chain based on the identification information.
9. The apparatus of claim 8, wherein the obtaining module is further configured to obtain the identification information from an authentication platform based on production information of the product; the production information comprises relevant information of the production process flow of the product.
10. The apparatus of claim 8, further comprising:
an upload module to upload the provisioning process information to the blockchain using at least one API; the flow information corresponding to different APIs is different.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211503814.8A CN115760163A (en) | 2022-11-28 | 2022-11-28 | Product supply chain tracing method and device based on block chain |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211503814.8A CN115760163A (en) | 2022-11-28 | 2022-11-28 | Product supply chain tracing method and device based on block chain |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115760163A true CN115760163A (en) | 2023-03-07 |
Family
ID=85339561
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211503814.8A Pending CN115760163A (en) | 2022-11-28 | 2022-11-28 | Product supply chain tracing method and device based on block chain |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115760163A (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112184268A (en) * | 2020-10-27 | 2021-01-05 | 广州市家庭医生在线信息有限公司 | Medicine traceability management method and system based on block chain technology |
CN114386992A (en) * | 2022-01-12 | 2022-04-22 | 北京工商大学 | Grain and oil quality safety credible traceability method based on block chain and identification analysis |
US20220141022A1 (en) * | 2020-11-03 | 2022-05-05 | Cognizant Technology Solutions India Pvt. Ltd | System and method for securing and authenticating serialized data associated with a product |
-
2022
- 2022-11-28 CN CN202211503814.8A patent/CN115760163A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112184268A (en) * | 2020-10-27 | 2021-01-05 | 广州市家庭医生在线信息有限公司 | Medicine traceability management method and system based on block chain technology |
US20220141022A1 (en) * | 2020-11-03 | 2022-05-05 | Cognizant Technology Solutions India Pvt. Ltd | System and method for securing and authenticating serialized data associated with a product |
CN114386992A (en) * | 2022-01-12 | 2022-04-22 | 北京工商大学 | Grain and oil quality safety credible traceability method based on block chain and identification analysis |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108305083B (en) | Commodity tracing method and system based on block chain | |
US20160164884A1 (en) | Cryptographic verification of provenance in a supply chain | |
CN109255622B (en) | Traceable anti-fake data storage system | |
EP3676810A1 (en) | Access system | |
US20170083860A1 (en) | Tracking unitization occurring in a supply chain | |
CN105139210A (en) | Commodity traceability method and system | |
CN111031036A (en) | Block chain-based vaccine information monitoring method and device and computer equipment | |
CN110502922B (en) | Article circulation link tracing method and device based on block chain and electronic equipment | |
CN104252677A (en) | Two-dimension code anti-counterfeiting technology and two-dimension code anti-counterfeiting system-based platform system | |
US9633326B2 (en) | Load distribution and consolidation tracking system | |
AU2020279093A1 (en) | Method and system for generalized provenance solution for blockchain supply chain applications | |
CN104495545A (en) | Electronic elevator maintenance supervision and management system and method for elevator maintenance based on dynamic two-dimensional codes | |
CN108537314A (en) | Product marketing system and method based on Quick Response Code | |
US20230132505A1 (en) | Blockchain-based certification audit data sharing and integrity verification system, device, and method thereof | |
CN111783127B (en) | Block chain-based steel quality book privacy protection and sharing method and system | |
CN112395353A (en) | Intelligent electric energy meter quality data sharing method and system based on alliance chain | |
US11516001B2 (en) | Method and system for generalized provenance solution for blockchain supply chain applications | |
CN112734448A (en) | Agricultural product tracing method, system, equipment and storage medium based on block chain | |
CN104484620A (en) | Method for avoiding false declaration of sales volume and inventory in fast-selling sales management cloud system | |
CN110162722A (en) | Products Show method, server and storage medium based on two dimensional code | |
CN112508587A (en) | Tracing code generation method and device based on block chain | |
CN113205352A (en) | Traceability chain platform system data interaction management method and system | |
CN111507710A (en) | Data query and sharing system | |
CN113240442A (en) | Agricultural Internet of things agricultural product quality safety tracing method and system | |
CN115760163A (en) | Product supply chain tracing method and device based on block chain |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |