CN108416599A - Method for realizing product quality tracing by using block chain - Google Patents
Method for realizing product quality tracing by using block chain Download PDFInfo
- Publication number
- CN108416599A CN108416599A CN201810163958.0A CN201810163958A CN108416599A CN 108416599 A CN108416599 A CN 108416599A CN 201810163958 A CN201810163958 A CN 201810163958A CN 108416599 A CN108416599 A CN 108416599A
- Authority
- CN
- China
- Prior art keywords
- transaction
- block chain
- link
- transaction information
- 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
- 238000000034 method Methods 0.000 title claims abstract description 30
- 230000000694 effects Effects 0.000 claims description 4
- 238000005516 engineering process Methods 0.000 abstract description 4
- 238000004519 manufacturing process Methods 0.000 description 4
- 238000009826 distribution Methods 0.000 description 2
- 238000010586 diagram Methods 0.000 description 1
- 239000004744 fabric Substances 0.000 description 1
- 230000000192 social effect Effects 0.000 description 1
- 238000003860 storage Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Commerce
- G06Q30/018—Certifying business or products
- G06Q30/0185—Product, service or business identity fraud
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/04—Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
- H04L63/0428—Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
- H04L63/0442—Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload wherein the sending and receiving network entities apply asymmetric encryption, i.e. different keys for encryption and decryption
Abstract
The invention discloses a method for tracing product quality by using a block chain, relating to the technical field of block chain application; the method comprises the steps that a main unique transaction main body ID and a unique transaction main body token ID which are distributed to product transaction links are distributed, a unique ID is distributed to each transaction link, the transaction main body reports each transaction information and encrypts the transaction information, a block chain receives the transaction information reported by the transaction main body each time, the transaction information is decrypted, whether the transaction main body token ID in the decrypted transaction information is consistent with the transaction main body token ID stored in the block chain or not is compared, the currently reported transaction information is accepted if the transaction main body token ID is consistent with the transaction main body token ID, otherwise, recursive query of quality tracing is carried out in the block chain by using the transaction link ID until the query is completed; the invention obtains the real transaction data of each link by encrypting and decrypting the reported transaction information, and can query the transaction information of the product transaction link by utilizing the transaction information recorded by the block chain technology, thereby ensuring the traceability of the product quality.
Description
Technical field
The method that the present invention discloses a kind of retrospect of product quality, is related to block chain applied technical field, and specifically one
The method that kind realizes product quality retrospect using block chain.
Background technology
Product quality retrospect can propose appropriate counter-measure, reduce consumption when product generation quality accident occurs
The loss of person so that the interests of consumer can be protected.Such as the system of recalling of automobile industry is exactly with product back-tracing body
Based on system.Product quality retrospect helps enterprise to establish brand image, promotes social effect and economic benefit.The tracking of full range
Management, both strengthens Enterprises Quality Management, reduces cost for correcting error, and facilitates enterprise to collect the understanding consumption of commodity information and become
Gesture improves capability of fast response.And efficient quality tracing method can promote national product total quality level, maximum limit
Degree reduces product counterfeiting and palms off risk, improves product customer satisfaction.But production, circulation and bargain link are numerous, transaction data
Measure huge, each link is likely to occur product quality problem, and the present invention provides a kind of realizing that product quality chases after using block chain
The method traced back, obtains the true sale data of each link, and utilizes block chain technical notes information, and ensure product information can
Retrospect.
Block chain technology is a kind of combination of more technologies, it is applied in bit coin first, dig the bit coin that digs out of mine and
The transaction of bit coin relies on the certification of block chain and record, records complete Transaction Information in each block chain of bit coin, often
A block chain node all may participate in transaction authentication.
UUID is meant that Universally Unique Identifier (Universally Unique Identifier), is that a software is built
The standard of structure, and divided by the organizations of open source software foundation (Open Software Foundation, OSF)
The pith in the field cloth computing environment (Distributed Computing Environment, DCE).
Invention content
The present invention provide it is a kind of using block chain realize product quality retrospect method, it is credible and efficiently solve magnanimity number
Problem is traced according to product quality.
Concrete scheme proposed by the present invention is:
A method of realizing that product quality traces using block chain:
The main body unique transaction agent ID and unique transaction agent token ID of product trading link are distributed to, and to ring of merchandising every time
Section distributes unique ID, and transaction agent reports each Transaction Information, and Transaction Information is encrypted,
Block chain receives the Transaction Information that transaction agent reports every time, is decrypted to Transaction Information, compares after decrypting in Transaction Information
The transaction agent token ID that preserves of transaction agent token ID and block chain it is whether consistent, unanimously then receive when the transaction that time report
Otherwise information is refused,
The recursive query of quality tracing is carried out in block chain using bargain link ID, until completing inquiry.
Each block record transaction agent ID and transaction agent token ID of block chain and block link in the method
The All Activity information received.
Carry out the recursive query of quality tracing in the method in block chain using bargain link ID:Trace back to one
Secondary bargain link ID and Transaction Information inquire bargain link ID and Transaction Information next time, are handed over according to the last time inquired
Easy link ID or bargain link ID is inquired again next time, inquires more last bargain link ID and Transaction Information or more lower
Bargain link ID and Transaction Information continue recurrence retrospect, until not having last bargain link or not merchandising next time
Until link.
Transaction agent utilizes private key encryption Transaction Information, block chain to be handed over the public key decryptions of transaction agent in the method
Easy information, the transaction agent token ID that the transaction agent token ID after comparison decryption in Transaction Information is preserved with block chain whether one
It causes, unanimously then receives, when time Transaction Information, otherwise to refuse.
Bargain link ID is Key in the method, and other Transaction Informations are Value, is stored and is handed in the form of Key/Value
Easy information.
Bargain link ID can be showed in a manner of Quick Response Code in the method, scanned the two-dimensional code progress quality tracing and looked into
It askes.
Transaction agent ID, transaction agent token ID and each bargain link distribution ID are identified using UUID in the method
Code.
A kind of system for realizing product quality retrospect using block chain, including transaction agent and block chain,
The transaction agent of product trading link has unique transaction agent ID and unique transaction agent token ID, and merchandises every time
Link has unique ID, and transaction agent reports each Transaction Information, and Transaction Information is encrypted,
Block chain receives the Transaction Information that transaction agent reports every time, is decrypted to Transaction Information, compares after decrypting in Transaction Information
The transaction agent token ID that preserves of transaction agent token ID and block chain it is whether consistent, unanimously then receive when the transaction that time report
Otherwise information is refused,
The system carries out the recursive query of quality tracing using bargain link ID in block chain, until completing inquiry.
Each block record transaction agent ID and transaction agent token ID of block chain and block link in the system
The All Activity information received.
Transaction agent utilizes private key encryption Transaction Information, block chain to be handed over the public key decryptions of transaction agent in the system
Easy information, the transaction agent token ID that the transaction agent token ID after comparison decryption in Transaction Information is preserved with block chain whether one
It causes, unanimously then receives, when time Transaction Information, otherwise to refuse.
Carry out the recursive query of quality tracing in the system in block chain using bargain link ID:Trace back to one
Secondary bargain link ID and Transaction Information inquire bargain link ID and Transaction Information next time, are handed over according to the last time inquired
Easy link ID or bargain link ID is inquired again next time, inquires more last bargain link ID and Transaction Information or more lower
Bargain link ID and Transaction Information continue recurrence retrospect, until not having last bargain link or not merchandising next time
Until link.
Usefulness of the present invention is:
The present invention provides a kind of method for realizing product quality retrospect using block chain, distributes to the main body of product trading link only
One transaction agent ID and unique transaction agent token ID, and unique ID is distributed to each bargain link, transaction agent reports every time
Transaction Information, and Transaction Information is encrypted, block chain receives the Transaction Information that transaction agent reports every time, to Transaction Information solution
Whether close, it is consistent to compare the transaction agent token ID that transaction agent token ID after decryption in Transaction Information and block chain preserve,
Otherwise consistent then receiving is refused when the secondary Transaction Information reported, quality tracing is carried out in block chain using bargain link ID
Recursive query, until completing inquiry;
Using the method for the present invention by reporting Transaction Information encryption and decryption, obtaining the true sale data of each link, and utilize
The Transaction Information of block chain technical notes can carry out the inquiry of the Transaction Information of product trading link, ensure product quality
It can trace.
Description of the drawings
Fig. 1 is the method for the present invention flow diagram.
Specific implementation mode
The present invention provides a kind of method for realizing product quality retrospect using block chain:
The main body unique transaction agent ID and unique transaction agent token ID of product trading link are distributed to, and to ring of merchandising every time
Section distributes unique ID, and transaction agent reports each Transaction Information, and Transaction Information is encrypted,
Block chain receives the Transaction Information that transaction agent reports every time, is decrypted to Transaction Information, compares after decrypting in Transaction Information
The transaction agent token ID that preserves of transaction agent token ID and block chain it is whether consistent, unanimously then receive when the transaction that time report
Otherwise information is refused,
The recursive query of quality tracing is carried out in block chain using bargain link ID, until completing inquiry.
A kind of system for realizing product quality retrospect using block chain corresponding with the above method is provided simultaneously, including is handed over
Easy main body and block chain,
The transaction agent of product trading link has unique transaction agent ID and unique transaction agent token ID, and merchandises every time
Link has unique ID, and transaction agent reports each Transaction Information, and Transaction Information is encrypted,
Block chain receives the Transaction Information that transaction agent reports every time, is decrypted to Transaction Information, compares after decrypting in Transaction Information
The transaction agent token ID that preserves of transaction agent token ID and block chain it is whether consistent, unanimously then receive when the transaction that time report
Otherwise information is refused,
The system carries out the recursive query of quality tracing using bargain link ID in block chain, until completing inquiry.
In conjunction with attached drawing, the present invention is further elaborated.
Using the method for the present invention and system, the unique transaction agent ID of main body of product trading link and unique transaction are distributed to
Main body token ID, and it can be state to distribute unique ID, wherein transaction agent ID and transaction agent token ID to each bargain link
The distribution of authorities of family, similar the administration for industry and commerce are the license number that enterprise provides, and only transaction agent ID can be disclosed, and transaction agent
Token ID is underground;And product trading link includes the links such as production, transport, storage, transaction, transaction agent ID, transaction
Main body token ID, each bargain link ID use UUID identification codes in the present embodiment,
For each transaction, Transaction Information may include transaction agent ID, be labeled as UUID01, transaction agent token ID, mark
For UUID02, this bargain link ID, it is labeled as UUID1, next time bargain link ID, is labeled as UUID2, last transaction ring
ID is saved, is labeled as UUID31 ... ... until first time bargain link ID, is labeled as UUID3N, Transaction Information further includes timestamp
And Transaction Details, if without last bargain link ID or next time bargain link ID, no last bargain link
ID or no bargain link next time ID are filled a vacancy;Transaction agent reports each Transaction Information, and Transaction Information is utilized private
Key is encrypted, and can prevent information leakage, information from faking and denying;
Block chain receives the Transaction Information that transaction agent reports every time, to Transaction Information with the public key decryptions of transaction agent, compares
Whether transaction agent token ID after decryption in Transaction Information and the transaction agent token ID that block chain preserves are consistent, unanimously then connect
By when the secondary Transaction Information reported, otherwise refuse, information is further prevented to fake and deny;
Block chain store transaction information in the form of Key/Value, wherein bargain link ID are key, other Transaction Informations are
Value, and record transaction agent ID in each block of block chain(UUID01), transaction agent token ID(UUID02)、
This bargain link ID(UUID1), bargain link ID next time(UUID2), last bargain link ID(UUID31)... it is straight
To first time transaction id(UUID3N), timestamp and Transaction Details, each Transaction Information can not change in systems;
When carrying out quality tracing, it is only necessary to be inquired with bargain link ID, so that it may trace back to last bargain link ID and
Inquire bargain link ID next time, then according to the last bargain link ID that inquires or next time bargain link ID again into
Row inquiry, can inquire more last bargain link or the more next time details of bargain link, further be chased after using recursive fashion
It traces back, until there is no last bargain link or bargain link next time.Wherein, the above process can also be by bargain link ID
Showed in a manner of Quick Response Code, scanning input Quick Response Code can be traced easily, the place of production of some product, production, fortune are inquired
Defeated process etc..
Claims (10)
1. a kind of method for realizing product quality retrospect using block chain, it is characterized in that
The transaction agent unique transaction agent ID and unique transaction agent token ID of product trading link are distributed to, and to handing over every time
Easy link distributes unique ID, and transaction agent reports each Transaction Information, and Transaction Information is encrypted,
Block chain receives the Transaction Information that transaction agent reports every time, is decrypted to Transaction Information, compares after decrypting in Transaction Information
The transaction agent token ID that preserves of transaction agent token ID and block chain it is whether consistent, unanimously then receive when the transaction that time report
Otherwise information is refused,
The recursive query of quality tracing is carried out in block chain using bargain link ID, until completing inquiry.
2. according to the method described in claim 1, it is characterized in that each block record transaction agent ID of the block chain and friendship
The All Activity information that easy main body token ID and block chain receive.
3. according to the method described in claim 2, it is characterized in that carrying out quality tracing in block chain using bargain link ID
Recursive query:It traces back to last bargain link ID and Transaction Information or inquires bargain link ID and Transaction Information next time,
According to the last bargain link ID inquired or bargain link ID is inquired again next time, inquires more last transaction ring
ID and Transaction Information or more next time bargain link ID and Transaction Information are saved, continues recurrence retrospect, until not having last transaction
Until link or no bargain link next time.
4. according to any methods of claim 1-3, it is characterized in that transaction agent utilizes private key encryption Transaction Information, block
With the public key decryptions Transaction Information of transaction agent, the transaction agent token ID after comparison decryption in Transaction Information is protected chain with block chain
Whether the transaction agent token ID deposited is consistent, unanimously then receives, when time Transaction Information, otherwise to refuse.
5. according to the method described in claim 4, it is characterized in that bargain link ID is Key, other Transaction Informations are Value, with
Key/Value form store transaction information.
6. according to the method described in claim 5, it is characterized in that transaction agent ID, transaction agent token ID and each bargain link
It distributes ID and uses UUID identification codes.
7. a kind of system for realizing product quality retrospect using block chain, it is characterized in that including transaction agent and block chain,
The transaction agent of product trading link has unique transaction agent ID and unique transaction agent token ID, and merchandises every time
Link has unique ID, and transaction agent reports each Transaction Information, and Transaction Information is encrypted,
Block chain receives the Transaction Information that transaction agent reports every time, is decrypted to Transaction Information, compares after decrypting in Transaction Information
The transaction agent token ID that preserves of transaction agent token ID and block chain it is whether consistent, unanimously then receive when the transaction that time report
Otherwise information is refused,
The system carries out the recursive query of quality tracing using bargain link ID in block chain, until completing inquiry.
8. system according to claim 7, it is characterized in that each block record transaction agent ID of the block chain and friendship
The All Activity information that easy main body token ID and block chain receive.
9. system according to claim 7 or 8, it is characterized in that transaction agent utilizes private key encryption Transaction Information, block chain
With the public key decryptions Transaction Information of transaction agent, the transaction agent token ID after comparison decryption in Transaction Information is preserved with block chain
Transaction agent token ID it is whether consistent, unanimously then receive, when time Transaction Information, otherwise to refuse.
10. system according to claim 9, it is characterized in that carrying out quality tracing in block chain using bargain link ID
Recursive query:It traces back to last bargain link ID and Transaction Information or inquires bargain link ID and Transaction Information next time,
According to the last bargain link ID inquired or bargain link ID is inquired again next time, inquires more last transaction ring
ID and Transaction Information or more next time bargain link ID and Transaction Information are saved, continues recurrence retrospect, until not having last transaction
Until link or no bargain link next time.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810163958.0A CN108416599A (en) | 2018-02-27 | 2018-02-27 | Method for realizing product quality tracing by using block chain |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810163958.0A CN108416599A (en) | 2018-02-27 | 2018-02-27 | Method for realizing product quality tracing by using block chain |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108416599A true CN108416599A (en) | 2018-08-17 |
Family
ID=63129124
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810163958.0A Pending CN108416599A (en) | 2018-02-27 | 2018-02-27 | Method for realizing product quality tracing by using block chain |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108416599A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109829824A (en) * | 2019-03-05 | 2019-05-31 | 河钢国际科技(北京)有限公司 | A kind of commodity transaction information sharing method based on block chain technology |
CN110502922A (en) * | 2019-08-13 | 2019-11-26 | 上海域乎信息技术有限公司 | Item circulation link retroactive method, device and electronic equipment based on block chain |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107180350A (en) * | 2017-03-31 | 2017-09-19 | 唐晓领 | A kind of method of the multi-party shared transaction metadata based on block chain, apparatus and system |
US20170366516A1 (en) * | 2016-06-16 | 2017-12-21 | The Bank Of New York Mellon | Managing verifiable, cryptographically strong transactions |
CN107506917A (en) * | 2017-08-16 | 2017-12-22 | 北京盛世博创信息技术有限公司 | A kind of tracking and system of carbon circulation information |
CN107730278A (en) * | 2017-10-18 | 2018-02-23 | 上海唯链信息科技有限公司 | A kind of false proof and retroactive method of the medicine based on block chain technology |
CN107730277A (en) * | 2017-10-18 | 2018-02-23 | 上海唯链信息科技有限公司 | A kind of product based on block chain technology is traced to the source verification method |
-
2018
- 2018-02-27 CN CN201810163958.0A patent/CN108416599A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20170366516A1 (en) * | 2016-06-16 | 2017-12-21 | The Bank Of New York Mellon | Managing verifiable, cryptographically strong transactions |
CN107180350A (en) * | 2017-03-31 | 2017-09-19 | 唐晓领 | A kind of method of the multi-party shared transaction metadata based on block chain, apparatus and system |
CN107506917A (en) * | 2017-08-16 | 2017-12-22 | 北京盛世博创信息技术有限公司 | A kind of tracking and system of carbon circulation information |
CN107730278A (en) * | 2017-10-18 | 2018-02-23 | 上海唯链信息科技有限公司 | A kind of false proof and retroactive method of the medicine based on block chain technology |
CN107730277A (en) * | 2017-10-18 | 2018-02-23 | 上海唯链信息科技有限公司 | A kind of product based on block chain technology is traced to the source verification method |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109829824A (en) * | 2019-03-05 | 2019-05-31 | 河钢国际科技(北京)有限公司 | A kind of commodity transaction information sharing method based on block chain technology |
CN110502922A (en) * | 2019-08-13 | 2019-11-26 | 上海域乎信息技术有限公司 | Item circulation link retroactive method, device and electronic equipment based on block chain |
CN110502922B (en) * | 2019-08-13 | 2024-01-16 | 上海域乎信息技术有限公司 | Article circulation link tracing method and device based on block chain and electronic equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102402664B (en) | Data access control device and data access control method | |
CN101390134B (en) | Method for redistributing DRM protected content | |
CN1997953B (en) | Method and device for protecting digital content in mobile applications | |
CN109729041B (en) | Method and device for issuing and acquiring encrypted content | |
CN105610578A (en) | Block chain information archiving and privacy protection method | |
CN107278307A (en) | Software layer is mutually authenticated | |
CN112613956B (en) | Bidding processing method and device | |
CN102456206A (en) | Method and system for protecting safety of user information as well as e-commerce platform system | |
CN107547203B (en) | Anti-counterfeiting tracing method and system | |
CN105022966A (en) | Database data encryption and decryption method and system | |
CN110719176A (en) | Logistics privacy protection method and system based on block chain and readable storage medium | |
CN110245948A (en) | Data trade method and system based on block chain and asymmetric encryption | |
CN112507296B (en) | User login verification method and system based on blockchain | |
CN112149077B (en) | Supply chain billing method, system and computer equipment based on block chain technology | |
CN112668018B (en) | Method and device for government data protocol authorization sharing based on blockchain | |
CN108629603B (en) | Commodity anti-counterfeiting method based on two-dimensional code | |
CN113239375A (en) | Block chain-based privacy factor data sharing system, method, computer device, and medium | |
CN101140649A (en) | Method and system for realizing electric commerce by mobile phones integrating RFID chip mobile phones | |
CN108416599A (en) | Method for realizing product quality tracing by using block chain | |
CN114997867A (en) | Data element multi-mode delivery system and method based on block chain and privacy calculation | |
CN112654972A (en) | Blockchain setup with restricted transactions | |
CN102542645A (en) | Entrance guard authentication method and system | |
KR20160040399A (en) | Personal Information Management System and Personal Information Management Method | |
CN103530533A (en) | Digital rights management method and re-trading method | |
CN102404363A (en) | Access method and access device |
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 |
Application publication date: 20180817 |
|
RJ01 | Rejection of invention patent application after publication |