CN109598520A - A kind of product traceability method and system based on block chain - Google Patents
A kind of product traceability method and system based on block chain Download PDFInfo
- Publication number
- CN109598520A CN109598520A CN201811240779.9A CN201811240779A CN109598520A CN 109598520 A CN109598520 A CN 109598520A CN 201811240779 A CN201811240779 A CN 201811240779A CN 109598520 A CN109598520 A CN 109598520A
- Authority
- CN
- China
- Prior art keywords
- product
- block chain
- logistics
- public key
- private key
- 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
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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/62—Protecting access to data via a platform, e.g. using keys or access control rules
- G06F21/6218—Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
- G06F21/6272—Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database by registering files or documents with a third party
Landscapes
- Engineering & Computer Science (AREA)
- Business, Economics & Management (AREA)
- Theoretical Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- Accounting & Taxation (AREA)
- Software Systems (AREA)
- General Health & Medical Sciences (AREA)
- General Engineering & Computer Science (AREA)
- Bioethics (AREA)
- Health & Medical Sciences (AREA)
- Databases & Information Systems (AREA)
- Entrepreneurship & Innovation (AREA)
- Computer Security & Cryptography (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 present invention discloses a kind of product traceability method and system based on block chain, belongs to information source tracing field.Method includes: that shopping operator is that each product generates corresponding private key A and private key B, and based on the block chain network constructed in advance, the private key A purchaser for being distributed to product is stored, and the private key B supplier for being distributed to product is stored;Shopping operator broadcasts the public key PA that private key A encryption generates and the public key PB that private key B encryption generates in block chain network, so that public key PA and public key PB are stored in the packaging of product by supplier;The logistics circulation information of product is encrypted respectively by public key PA and public key PB and is stored to block chain network by each logistics node flowed through by product;Inquiry of tracing to the source is carried out to the logistics circulation information of product from block chain network by private key B by private key A or by supplier by purchaser.The embodiment of the present invention, which is realized, carries out effectively supervision and efficiently retrospect by the place of production to the transportational process in consumer's hand to product.
Description
Technical field
The present invention relates to belonging to information source tracing field, in particular to a kind of product traceability method based on block chain and it is
System.
Background technique
With the popularity of the internet, more prominent the advantages of shopping at network, online shopping and sea purchase become more and more consumption
The selection of person.But whether consumers safety approval and do not know about the product bought, cosmetics, food etc. produce
The quality of product will have a direct impact on the physical condition of consumer, and product is delivered to the transportational process in consumer's hand by the place of production
In can pass through many links, the problem of any one link has gone out influence product quality, all finally can generate harm to consumer;
In addition, many consumer's troxerutine tabtets are weak, can only be abandoned when needing just compensation since relevant evidence is insufficient.
In conclusion how to realize to product by the place of production transport transportational process in consumer's hand carry out effectively supervision and
Efficiently retrospect, becomes those skilled in the art's technical problem urgently to be resolved.
Summary of the invention
In view of this, the embodiment of the invention provides a kind of product traceability method and system based on block chain, to reality
The transportational process in consumer's hand now is transported by the place of production to product and carries out effectively supervision and efficiently retrospect.
The technical solution of the embodiment of the present invention is as follows:
In a first aspect, providing a kind of product traceability method based on block chain, which comprises
Operator of doing shopping is the corresponding private key A and private key B of each product generation, and based on the block link network constructed in advance
The private key A purchaser for being distributed to the product is stored, the private key B is distributed to the supply of material of the product by network
Fang Jinhang storage;
The shopping operator is generated by the public key PA generated based on private key A encryption and based on private key B encryption
Public key PB broadcasted in the block chain network so that the supplier stores the public key PA and the public key PB
In in the packaging of the product;
The logistics circulation information of the product is passed through the public key PA by each logistics node flowed through by the product
It encrypts and stores into the block chain network respectively with the public key PB;
Pass through the private key B from the block link network by the private key A or by the supplier by the purchaser
Inquiry of tracing to the source is carried out to the logistics circulation information of the product in network.
In one embodiment, described each logistics node flowed through by the product circulates the logistics of the product
Information is encrypted respectively by the public key PA and the public key PB and is stored into the block chain network before step, the method
Further include:
Trust verification is carried out to the logistics side for being intended to carry the product by the shopping operator;
If the logistics side is credible logistics side, the product is generated by the operation platform of the shopping operator
Logistics order, and the block chain network is written, so that belonging to multiple logistics nodes of the logistics side according to the object
Flow product described in order shipment;
If the logistics side is insincere logistics side, refuses the logistics side and carry the product.
In one embodiment, described each logistics node flowed through by the product circulates the logistics of the product
Information is encrypted respectively by the public key PA and the public key PB and is stored into the block chain network before step, the method
Further include:
When the supplier issues the product, the product information of the product and the location information for issuing ground are passed through into institute
It states public key PA encryption and is uploaded to the block chain network.
In one embodiment, the logistics circulation information includes reaching the logistics node for describing the product
Product reaches information.
In one embodiment, the method also includes:
If the logistics node confirms that the product is damaged when receiving the product, corresponding product is damaged
Bad information is encrypted respectively by the public key PA and the public key PB store to the block chain network respectively.
In one embodiment, the method also includes:
Based on the damage of product information, provided from the operation platform by the shopping operator to the purchaser more
A processing request, so that the purchaser selects;
The processing request chosen in the multiple processing request is deposited by public key PB encryption by the purchaser
It stores up to the block chain network.
In one embodiment, the logistics circulation information further includes issuing the product for describing the logistics node
Confirmation message, the confirmation message include product issue operation mark and the product GPS positioning information, the method is also
Include:
Verify whether the GPS positioning information meets preset requirement, if it is not, then to described in block chain network storage
Confirmation message is identified using the record of breaking one's promise as logistics side belonging to the logistics node, if the purchaser or institute at this time
It states supplier's refusal product to continue to issue, then stores corresponding rejection request to the block chain network.
In one embodiment, the method also includes:
The purchaser will be used to indicate whether to confirm that receives receives information described in after receiving the product
Public key PB is stored to the block chain network.
In one embodiment, the method also includes:
The purchaser stores the in-service evaluation information of the product to the block chain by public key PB encryption
Network;
The supplier, which is inquired by the private key B of its storage and decrypted from the block chain network, obtains the production
The logistics circulation information of product and the in-service evaluation information of the product.
Second aspect provides a kind of product traceability system based on block chain, and the system is for realizing such as first party
Based on the product traceability method of block chain described in face, the system comprises:
Private key generation module is that the product to be traded of purchaser and supplier generates private key A and private for operator of doing shopping
Key B;
Private key distribution module, for the shopping operator based on the block chain network constructed in advance, by the private key A points
It is sent to the purchaser to store, the private key B is distributed to the supplier and is stored;
Public key generation module is based on private key A encryption for the shopping operator and generates public key PA, and based on described
Private key B encryption generates public key PB;
Public key broadcasts module, for the public key PA and the public key PB to be broadcasted in the block chain network,
So that the public key PA and the public key PB are stored in the packaging of the product by the supplier;
Information storage module, each logistics node for being flowed through by the product, which circulates the logistics of the product, to be believed
Breath is encrypted respectively by the public key PA and the public key PB to be stored into the block chain network;
Information source tracing module, for passing through the private by the purchaser by the private key A or by the supplier
Key B carries out inquiry of tracing to the source to the logistics circulation information of the product from the block chain network.
Product traceability method and system provided in an embodiment of the present invention based on block chain, by block chain technology to product
The whole process of transport is managed, since the information being stored on block chain is all disclosed, for product entire transport
Logistics information can be integrated into the transaction of each logistics post in the process, purchaser can check by the private key A of bought product
Product position, supplier can check product position by private key B, be transported to product by the place of production to realize
Transportational process in consumer's hand carries out effectively supervision and efficiently retrospect, in addition, also ensuring what product reached in transit
Logistics node is all credible logistics post, and can effectively supervise the transport that malice distorts logistics information or fraud logistics information
Side.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment
Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for
For those of ordinary skill in the art, without creative efforts, it can also be obtained according to these attached drawings other
Attached drawing.
Fig. 1 is a kind of flow chart of product traceability method based on block chain provided in an embodiment of the present invention;
Fig. 2 is a kind of block diagram of product traceability system based on block chain provided in an embodiment of the present invention.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with attached in the embodiment of the present invention
Figure, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is only this
Invention a part of the embodiment, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art exist
Every other embodiment obtained under the premise of creative work is not made, shall fall within the protection scope of the present invention.
It is of the invention for ease of understanding, it is being illustrated to the product traceability method provided by the invention based on block chain
Before, first block chain network according to the present invention is introduced.
Block chain technology is to store and verify significant data using disclosed linked data structure, utilize distributed node
Block data is generated with unified common recognition mechanism, is guaranteed the safety of data transmission and access using the knowledge of cryptography and is prevented usurping
The characteristic that changes, its chain structure are again for the retrospect of transaction data and the intelligence that can be made up of automatized script code
Contract programs the completely new distributed basis framework and calculation paradigm of one kind with operation data.The embodiment of the present invention proposes to utilize
Block chain technology is traced to the source come what is realized tracing to the source for product, such as realize skin care item, cosmetics, food and electronic product etc..
Block chain network is the multinode network system for utilizing block chain technology to form.In the embodiment of the present invention, block
Chain network is that shopping operator is constructed and provided, and block chain network includes multiple operation block chain technologies and participates in same block chain
Block chain node, wherein block chain node is by multiple participants such as shopping operator, supplier, transporter and purchaser
Operation is corresponded, block chain node is specifically as follows the electronic equipments such as smart phone, computer, tablet computer.
Fig. 1 is a kind of product traceability method based on block chain provided in an embodiment of the present invention, shown referring to Fig.1, the party
Method comprising steps of
S1, shopping operator are the corresponding private key A and private key B of each product generation, and based on the block chain constructed in advance
Network stores the private key A purchaser for being distributed to product, and the private key B supplier for being distributed to product is stored.
Wherein it is possible to generate product respectively according to the exclusive identification code of product and by the random number that random number generator generates
Private key A and private key B.
S2, shopping operator lead to the public key PA generated based on private key A encryption and the public key PB generated based on private key B encryption
It crosses block chain network to be broadcasted, so that public key PA and public key PB are stored in the packaging of product by supplier.
Wherein it is possible to which private key A is generated public key PA by rivest, shamir, adelman, private key B is calculated by asymmetric encryption
Method generates public key PB.Rivest, shamir, adelman is a kind of non-reversible algorithm, and used rivest, shamir, adelman can be RSA calculation
Any one in method, Elgamal algorithm, Rabin algorithm, D-H algorithm, ECC (elliptic curve encryption algorithm) etc..
Supplier can receive the public key PA and public key PB broadcasted in block chain network, and public key PA and public key PB is tied
It closes bar code or two dimensional code or the modes such as RFID label tag or NFC label is stored in the packaging of product.
S3, each logistics node flowed through by product are by the logistics circulation information of product by public key PA and public key PB points
It Jia Mi not store into block chain network.
Wherein, logistics circulation information includes that the product arrival information of logistics node is reached for describing product;Logistics circulation
Information further includes that the confirmation message of product is issued for describing logistics node, and confirmation message includes that product issues operation mark and production
The GPS positioning information of product.
In the present embodiment, each logistics node that product flows through can read public key PA and public affairs from the packaging of product
Key PB, and circulate letter by the first ciphertext that the logistics of product circulation information is generated by public key PA encryption and by the logistics of product
Breath is stored respectively by the second ciphertext that public key PB encryption generates into block chain network.
In the specific implementation process, each logistics node flowed through by product can pass through operation on their terminal
Encrypt function encrypts the logistics of product circulation information using public key PA as the input of Encrypt function, generates the
One ciphertext, and by operation Encrypt function, public key PB circulates to the logistics of product as the input of Encrypt function and believes
Breath is encrypted, and the second ciphertext is generated.
Due to the first ciphertext be carried out by public key PA encryption generation, and the private key A that the first ciphertext can be decrypted be by
Purchaser takes care of, so that the logistics circulation information of product can not be directly accessed in other users;Simultaneously as the second ciphertext
Be carried out by public key PB encryption generation, and the private key B that the second ciphertext can be decrypted be taken care of by supplier, but also
The logistics circulation information of product can not be directly accessed in other users, therefore can ensure the privacy of the logistics circulation information of product
Property, safety.
S4, pass through private key B from block chain network to the logistics stream of product by purchaser by private key A or by supplier
Transfering the letter breath carries out inquiry of tracing to the source.
In the present embodiment, the first ciphertext stored in block chain network is decrypted by private key A by purchaser, it is close to obtain first
Text decrypts the second ciphertext stored in block chain network by private key B by supplier, to realize that the logistics to product circulates
Information carries out inquiry of tracing to the source.
In the specific implementation process, purchaser can by executing Decrypt function on their terminal, using private key A as
The first ciphertext got from block chain is decrypted in the input of Decrypt function.After successful decryption, it can get
The logistics circulation information of product;Supplier can be by executing Decrypt function, using private key B as Decrypt on their terminal
The second ciphertext got from block chain is decrypted in the input of function.After successful decryption, product can be got
Logistics circulation information.
Product traceability method and system provided in an embodiment of the present invention based on block chain, by block chain technology to product
The whole process of transport is managed, since the information being stored on block chain is all disclosed, for product entire transport
Logistics information can be integrated into the transaction of each logistics post in the process, purchaser can check by the private key A of bought product
Product position, supplier can check product position by private key B, be transported to product by the place of production to realize
Transportational process in consumer's hand carries out effectively supervision and efficiently retrospect;In addition, also ensuring what product reached in transit
Logistics node is all credible logistics post, moreover, each participant can be allowed to be involved in data management by block chain technology, and is utilized
Its characteristic that can not be distorted and can not forge of block chain technology, effectively supervision malice distorts logistics information or fraud logistics letter
The transporter of breath.
Below in conjunction with specific application example description according to the product traceability method based on block chain of the present embodiment.This is answered
With example for tracing to the source cosmetic product, shopping operator, supplier, transporter and purchaser (retailer or consumption
Person) one block chain node of each operation accesses to block chain network.This method comprises the following steps:
(1) shopping operator is the corresponding private key A and private key B of each cosmetics generation, and based on the block constructed in advance
Chain network stores the private key A purchaser for being distributed to cosmetics, and the private key B supplier for being distributed to cosmetics is deposited
Storage.
Specifically, shopping operator constructs block chain network, it is responsible for generating block chain, generates new block and servicing area
Block, shopping operator generate corresponding private key A and private key B, supplier and purchaser to every cosmetics on its operation platform,
It can regard a simple wallet as respectively.
The private key A purchaser for being distributed to product is managed by operator of doing shopping based on the block chain network constructed in advance,
The private key B supplier for being distributed to product is managed, and by the public key PA generated based on private key A encryption and and based on private key
The public key PB that B encryption generates is broadcasted by block chain network, so that public key PA and public key PB are stored in product by supplier
Packaging on.Purchaser stores the private key A of bought cosmetics, and supplier stores private key B, and it is various to be connected into whole network generation
Transaction Information;
Supplier receives public key PA and public key PB of the broadcast in block chain network, public key PA and public key PB can be combined
The modes such as bar code or two dimensional code or RFID label tag or NFC label are stored in the packaging of product.
(2) trust verification is carried out by logistics side of the shopping operator to cosmetics to be carried, if logistics Fang Weike keepsake
Stream side then generates the logistics order of cosmetics by the operation platform of shopping operator, and block chain network is written, so that returning
The multiple logistics nodes for belonging to logistics side are refused according to logistics order shipment cosmetics if logistics side is insincere logistics side
Carry cosmetics in logistics side.
Specifically, the makeup that the purchase that places an order needs is operated on the website that shopping operator provides or APP for purchaser
Product are responsible for picking by transporter and provide transport.When transporter passes through website or APP order, operator can use cryptography
The confidence level for verifying the transporter confirms it according to the transaction about the shipping account being recorded in block chain network
Prestige degree.If credible transporter, operation platform returns to password and regenerates a transaction unconfirmed, wherein the corresponding makeup of storage
The public key of product and the public key of transporter are uploaded to whole network, to be verified respectively to be stored by remaining node later, if verifying is not
By then abandoning the transaction;If it is incredible transporter, platform refuses the transporter order.
(3) when supplier issues cosmetics, the product information of cosmetics and the location information for issuing ground are passed through into public key PA
Encryption is uploaded to block chain network.
Specifically, when cosmetics are issued from supplier, supplier can by the relevant information of product (than raw material as used,
The places of origin of raw materials and can be disclosed and use other safety-related production informations with user, additionally include delivery availability,
The whereabouts etc. of delivering relevant informations) and GPS positioning when issuing, it is encrypted in the form of transaction by public key PA and is uploaded to block link network
Network allows most of block chain node verifications in block chain network to trade, and is stored in respective block after being verified
In, as the witness of transaction, so that safety is guaranteed for the use of purchaser.
In the present embodiment, it is uploaded to the information relevant to product of block chain by supplier, purchaser can be helped more
Product is understood well, can be used as reparation evidence when necessary.
(4) cosmetics reach a logistics node every time, and logistics node can send an arrival request, and request reaching
It is encrypted respectively in the form of transaction by public key PA and public key PB and is uploaded to block chain network, the account verification on block chain is allowed to hand over
Respective block, and the witness as transaction are stored in after easily.
(5) cosmetics reach a logistics node every time, if logistics node confirmation cosmetics damage, will correspond to
Damage of product information pass through public key PA and public key PB respectively and encrypt respectively and store to block chain network.
Specifically, cosmetics reach a logistics post every time, if damaged, which can send one and include
The information for damaging details is encrypted respectively by public key PA and public key PB in the form of transaction and is uploaded to block chain network, allows other
Logistics post account verification transaction after be stored in respective block, and the witness as transaction.The purchaser for managing private key A can root
According to damaged condition to operator select it is multiple processing request in one (it is multiple request include return of goods reimbursement, again delivery, after
The request that supervention goods and partial refund and other operators provide), and public key is generated by private key, the request is uploaded to block
Chain network allows other block chain node verifications and being stored in respective block, as witness, selects specified logistics direction.
In the present embodiment, corresponding damage of product information is distinguished by confirming that the logistics node damaged occur in cosmetics
It is stored by public key PA and public key PB to block chain network, can preferably safeguard the equity of purchaser, product can transported
The defeated situation being damaged on the way, plays the effect stopped loss in time.
(6) it when logistics post issues cosmetics, sends a confirmation message and (shows the operation mark and change that issue comprising one
The GPS positioning information of cosmetic), block chain network is uploaded in the form of transaction again, whether verifying GPS positioning meets the requirements,
If it was found that information is undesirable, the transaction for being recorded in block chain not will be deleted, but be identified, and as the logistics
The supplier of the record of breaking one's promise of transporter belonging to point, the purchaser and management private key B that manage cosmetics private key A at this time is ok
It carries out operation refusal cosmetics to continue to send: public key is generated by private key, request will be rejected and be uploaded to block chain network, allow remaining
Respective block is stored in after the account verification of logistics post, and as witness, final foundation actual conditions are to the logistics post institute of breaking one's promise
The transporter of category deducts penalty or carries out other punishment.
In the present embodiment, the logistics circulation information due to being uploaded to block chain network includes issuing for describing logistics node
The confirmation message of product, and confirmation message includes the GPS positioning information that product issues operation mark and product, it so can be to fortune
Defeated side plays the role of control constraints, reaches the transporter of certain amount of money for breaking one's promise to reach certain number or deduct penalty
Blacklist can be drawn in by operator.
(7) purchaser leads to the information of receiving for being used to indicate whether that confirmation is received after receiving bought cosmetics
Public key PB encryption is crossed to store to block chain network.
Specifically, when purchaser receives bought cosmetics, as fruit cosmetic damage is not available or other reasons
Want to retract, sends the receive information of reason details of a refusal and block chain network is uploaded to by public key PB encryption, in network
It is stored in respective block after the transaction of other account verifications, as the witness of transaction, operator decides whether together according to actual conditions
The purchaser that anticipates returns to cosmetics;
If purchaser's confirmation is received, sends one and confirms that information of receiving is uploaded to block chain network by public key PB encryption,
And to the mark that the Transaction Information is terminated, it is stored in respective block after other account verifications transaction in network, as friendship
Easy witness.
(8) purchaser stores the in-service evaluation information of product to the block chain network by public key PB encryption.
Specifically, purchaser is in use, it can will send the information such as use feeling and be uploaded by public key PB encryption
To block chain network.
(9) supplier is inquired and is decrypted the logistics of the product from the block chain network by the private key B of its storage
The in-service evaluation information of the information that circulates and the product.
Specifically, supplier can check the logistical histories record of cosmetics by private key B, later object is correspondingly adjusted
Stream selection, and can check that client using feedback, performs the corresponding adjustment on product.
Can be seen that by above-mentioned specific steps, in conjunction with block chain advantage be information trace to the source and collective verifying, for
Constraint is played in logistics post in transit, maintains the legitimate rights and interests of purchaser.
As the realization to the product traceability method based on block chain in previous embodiment, another embodiment of the present invention is also
A kind of product traceability system based on block chain is provided, referring to shown in Fig. 2, which includes:
Private key generation module 21, for operator of doing shopping be the product to be traded of purchaser and supplier generate private key A and
Private key B;
Private key A is distributed to purchase for operator of doing shopping based on the block chain network constructed in advance by Private key distribution module 22
Buyer stores, and private key B is distributed to supplier and is stored;
Public key generation module 23 is based on private key A encryption for operator of doing shopping and generates public key PA, and encrypted based on private key B
Generate public key PB;
Public key broadcasts module 24, for broadcasting public key PA and public key PB in block chain network, so that supplier
Public key PA and public key PB are stored in the packaging of product;
Information storage module 25, each logistics node for being flowed through by product pass through the logistics circulation information of product
Public key PA and public key PB is encrypted respectively to be stored into block chain network;
Information source tracing module 26, for passing through private key B from block chain network by purchaser by private key A or by supplier
In inquiry of tracing to the source is carried out to the logistics of product circulation information.
Product traceability system provided in this embodiment based on block chain, with provided by the embodiment of the present invention be based on block
The product traceability method of chain belongs to same inventive concept, and the production provided by any embodiment of the invention based on block chain can be performed
Product source tracing method has and executes the corresponding functional module of product traceability method and beneficial effect based on block chain.Not in this reality
The technical detail of detailed description in example is applied, reference can be made to the product traceability method provided in an embodiment of the present invention based on block chain, this
Place is not repeated here.
All the above alternatives can form alternative embodiment of the invention using any combination, herein no longer
It repeats one by one.
It should be noted that in the description of the present invention, term " first ", " second " etc. are used for description purposes only, without
It can be interpreted as indication or suggestion relative importance.In addition, in the description of the present invention, unless otherwise indicated, the meaning of " multiple "
It is two or more.
Those of ordinary skill in the art will appreciate that realizing that all or part of the steps of above-described embodiment can pass through hardware
It completes, associated hardware can also be instructed to complete by program, the program can store can in a kind of computer
It reads in storage medium, storage medium mentioned above can be read-only memory, disk or CD etc..
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all in spirit of the invention and
Within principle, any modification, equivalent replacement, improvement and so on be should all be included in the protection scope of the present invention.
Claims (10)
1. a kind of product traceability method based on block chain, which is characterized in that the described method includes:
Operator of doing shopping is the corresponding private key A and private key B of each product generation, and based on the block chain network constructed in advance, will
The purchaser that the private key A is distributed to the product stores, and the private key B supplier for being distributed to the product is carried out
Storage;
The shopping operator is by the public key PA generated based on private key A encryption and the public affairs generated are encrypted based on the private key B
Key PB is broadcasted in the block chain network, so that the public key PA and the public key PB are stored in institute by the supplier
It states in the packaging of product;
The logistics circulation information of the product is passed through the public key PA and institute by each logistics node flowed through by the product
It states public key PB and encrypts respectively and store into the block chain network;
By the purchaser by the private key A or by the supplier by the private key B from the block chain network
Inquiry of tracing to the source is carried out to the logistics circulation information of the product.
2. the method according to claim 1, wherein described each logistics node flowed through by the product will
The logistics circulation information of the product is encrypted respectively by the public key PA and the public key PB to be stored to the block chain network
Before middle step, the method also includes:
Trust verification is carried out to the logistics side for being intended to carry the product by the shopping operator;
If the logistics side is credible logistics side, the logistics of the product is generated by the operation platform of the shopping operator
Order, and the block chain network is written, so that the multiple logistics nodes for belonging to the logistics side are ordered according to the logistics
Single transporting said products;
If the logistics side is insincere logistics side, refuses the logistics side and carry the product.
3. the method according to claim 1, wherein described each logistics node flowed through by the product will
The logistics circulation information of the product is encrypted respectively by the public key PA and the public key PB to be stored to the block chain network
Before middle step, the method also includes:
When the supplier issues the product, the product information of the product and the location information for issuing ground are passed through into the public affairs
Key PA encryption is uploaded to the block chain network.
4. the method according to claim 1, wherein logistics circulation information includes for describing the product
The product for reaching the logistics node reaches information.
5. method according to any one of claims 1 to 4, which is characterized in that the method also includes:
If the logistics node confirms that the product is damaged when receiving the product, corresponding damage of product is believed
Breath is encrypted respectively by the public key PA and the public key PB to be stored to the block chain network.
6. according to the method described in claim 5, it is characterized in that, the method also includes:
Based on the damage of product information, from providing multiple places to the purchaser by the operation platform of the shopping operator
Reason request, so that the purchaser selects;
By the purchaser by it is the multiple processing request in choose processing request by the public key PB encryption store to
The block chain network.
7. method according to any one of claims 1 to 4, which is characterized in that the logistics circulation information further includes being used for
The confirmation message that the logistics node issues the product described, the confirmation message includes that product issues operation mark and described
The GPS positioning information of product, the method also includes:
Verify whether the GPS positioning information meets preset requirement, if it is not, the then confirmation to block chain network storage
Information is identified using the record of breaking one's promise as logistics side belonging to the logistics node, if the purchaser or the confession at this time
Cargo interests refuses the product and continues to issue, then stores corresponding rejection request to the block chain network.
8. method according to any one of claims 1 to 4, which is characterized in that the method also includes:
The purchaser passes through the public key after receiving the product, by the information of receiving for being used to indicate whether that confirmation is received
PB encryption is stored to the block chain network.
9. method according to any one of claims 1 to 4, which is characterized in that the method also includes:
The purchaser stores the in-service evaluation information of the product to the block chain network by public key PB encryption;
The supplier, which is inquired by the private key B of its storage and decrypted from the block chain network, obtains the product
The in-service evaluation information of logistics circulation information and the product.
10. a kind of product traceability system based on block chain, which is characterized in that the system is for realizing such as claim 1 to 9
Described in any item product traceability methods based on block chain, the system comprises:
Private key generation module is that the product to be traded of purchaser and supplier generates private key A and private key B for operator of doing shopping;
The private key A is distributed to by Private key distribution module for the shopping operator based on the block chain network constructed in advance
The purchaser stores, and the private key B is distributed to the supplier and is stored;
Public key generation module is based on private key A encryption for the shopping operator and generates public key PA, and is based on the private key
B encryption generates public key PB;
Public key broadcasts module, for the public key PA and the public key PB to be broadcasted in the block chain network, so that
The public key PA and the public key PB are stored in the packaging of the product by the supplier;
Information storage module, each logistics node for being flowed through by the product lead to the logistics circulation information of the product
It crosses the public key PA and public key PB and encrypts respectively and store into the block chain network;
Information source tracing module, for by the purchaser by the private key A or by the supplier by the private key B from
Inquiry of tracing to the source is carried out to the logistics circulation information of the product in the block chain network.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811240779.9A CN109598520A (en) | 2018-10-23 | 2018-10-23 | A kind of product traceability method and system based on block chain |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811240779.9A CN109598520A (en) | 2018-10-23 | 2018-10-23 | A kind of product traceability method and system based on block chain |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109598520A true CN109598520A (en) | 2019-04-09 |
Family
ID=65958041
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811240779.9A Pending CN109598520A (en) | 2018-10-23 | 2018-10-23 | A kind of product traceability method and system based on block chain |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109598520A (en) |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110232575A (en) * | 2019-05-13 | 2019-09-13 | 平安科技(深圳)有限公司 | A kind of commodity source tracing method and device based on block chain technology |
CN110798321A (en) * | 2019-10-29 | 2020-02-14 | 北京计算机技术及应用研究所 | Article information service method based on block chain |
CN111091395A (en) * | 2019-12-19 | 2020-05-01 | 哈尔滨焊接研究院有限公司 | Welding product traceability system and application method thereof |
CN111292047A (en) * | 2020-03-19 | 2020-06-16 | 武汉天顺汽车零部件有限公司 | Automobile part source tracing method and system based on Internet of things and block chain |
CN112149187A (en) * | 2020-11-25 | 2020-12-29 | 支付宝(杭州)信息技术有限公司 | Method and device for processing traceability information based on block chain |
CN112633813A (en) * | 2020-12-31 | 2021-04-09 | 浙江万里学院 | Valuable commodity distribution management method based on block chain technology |
CN112689019A (en) * | 2020-12-29 | 2021-04-20 | 浙江万里学院 | Logistics state monitoring method based on block chain technology |
CN112737773A (en) * | 2020-12-28 | 2021-04-30 | 浙江万里学院 | Intelligent logistics monitoring method based on mobile user information and block chain technology |
CN113762837A (en) * | 2020-09-04 | 2021-12-07 | 北京京东振世信息技术有限公司 | Method and device for processing logistics data |
CN115147133A (en) * | 2022-07-04 | 2022-10-04 | 南京邮电大学 | Block chain technology-based geographical indication product source tracing position proving method |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106971288A (en) * | 2017-05-31 | 2017-07-21 | 无锡井通网络科技有限公司 | A kind of distributed material flow tracking method based on block chain |
CN107730278A (en) * | 2017-10-18 | 2018-02-23 | 上海唯链信息科技有限公司 | A kind of false proof and retroactive method of the medicine based on block chain technology |
US20180152297A1 (en) * | 2016-11-01 | 2018-05-31 | Netcomm Inc. | System and Method For Digitally Signing Documents Using Biometric Data in a Blockchain or PKI |
CN108197952A (en) * | 2017-12-28 | 2018-06-22 | 上海唯链信息科技有限公司 | A kind of anti-fake and traceability system of the red wine based on block chain technology |
CN108305083A (en) * | 2018-02-11 | 2018-07-20 | 张国忠 | A kind of commodity source tracing method and system based on block chain |
CN108446917A (en) * | 2018-05-08 | 2018-08-24 | 炬众钛合(天津)科技发展有限公司 | A kind of packing material system and method based on block chain |
-
2018
- 2018-10-23 CN CN201811240779.9A patent/CN109598520A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20180152297A1 (en) * | 2016-11-01 | 2018-05-31 | Netcomm Inc. | System and Method For Digitally Signing Documents Using Biometric Data in a Blockchain or PKI |
CN106971288A (en) * | 2017-05-31 | 2017-07-21 | 无锡井通网络科技有限公司 | A kind of distributed material flow tracking method based on block chain |
CN107730278A (en) * | 2017-10-18 | 2018-02-23 | 上海唯链信息科技有限公司 | A kind of false proof and retroactive method of the medicine based on block chain technology |
CN108197952A (en) * | 2017-12-28 | 2018-06-22 | 上海唯链信息科技有限公司 | A kind of anti-fake and traceability system of the red wine based on block chain technology |
CN108305083A (en) * | 2018-02-11 | 2018-07-20 | 张国忠 | A kind of commodity source tracing method and system based on block chain |
CN108446917A (en) * | 2018-05-08 | 2018-08-24 | 炬众钛合(天津)科技发展有限公司 | A kind of packing material system and method based on block chain |
Cited By (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110232575A (en) * | 2019-05-13 | 2019-09-13 | 平安科技(深圳)有限公司 | A kind of commodity source tracing method and device based on block chain technology |
CN110798321B (en) * | 2019-10-29 | 2022-09-06 | 北京计算机技术及应用研究所 | Article information service method based on block chain |
CN110798321A (en) * | 2019-10-29 | 2020-02-14 | 北京计算机技术及应用研究所 | Article information service method based on block chain |
CN111091395A (en) * | 2019-12-19 | 2020-05-01 | 哈尔滨焊接研究院有限公司 | Welding product traceability system and application method thereof |
CN111292047A (en) * | 2020-03-19 | 2020-06-16 | 武汉天顺汽车零部件有限公司 | Automobile part source tracing method and system based on Internet of things and block chain |
CN113762837A (en) * | 2020-09-04 | 2021-12-07 | 北京京东振世信息技术有限公司 | Method and device for processing logistics data |
CN112149187A (en) * | 2020-11-25 | 2020-12-29 | 支付宝(杭州)信息技术有限公司 | Method and device for processing traceability information based on block chain |
CN112149187B (en) * | 2020-11-25 | 2024-04-05 | 支付宝(杭州)信息技术有限公司 | Method and device for processing traceability information based on blockchain |
CN112737773A (en) * | 2020-12-28 | 2021-04-30 | 浙江万里学院 | Intelligent logistics monitoring method based on mobile user information and block chain technology |
CN112689019A (en) * | 2020-12-29 | 2021-04-20 | 浙江万里学院 | Logistics state monitoring method based on block chain technology |
CN112633813A (en) * | 2020-12-31 | 2021-04-09 | 浙江万里学院 | Valuable commodity distribution management method based on block chain technology |
CN112633813B (en) * | 2020-12-31 | 2023-12-01 | 浙江万里学院 | Precious commodity distribution management method based on blockchain technology |
CN115147133A (en) * | 2022-07-04 | 2022-10-04 | 南京邮电大学 | Block chain technology-based geographical indication product source tracing position proving method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109598520A (en) | A kind of product traceability method and system based on block chain | |
Liu et al. | A blockchain-based framework of cross-border e-commerce supply chain | |
CN109544160B (en) | Transaction authenticity verification method and system based on block chain and intelligent contract | |
Madumidha et al. | A theoretical implementation: Agriculture-food supply chain management using blockchain technology | |
US20180232731A1 (en) | Supply chain recording method with traceable function by implementing blockchain technique | |
US9858569B2 (en) | Systems and methods in support of authentication of an item | |
CN106527673B (en) | Bind method and apparatus, electric paying method and the device of wearable device | |
US11394547B2 (en) | Transaction agents and systems | |
CN108960863A (en) | A kind of food block chain retroactive method, device and electronic equipment | |
CN101650806B (en) | Item tracing with supply chain secrecy using rfid tags and an identity-based encryption scheme | |
CN105631690A (en) | Product forgery prevention and management system based on radio frequency identification (RFID) chip and method thereof | |
US20140014714A1 (en) | Product authentication and registration | |
CN111177253A (en) | Power big data protection method and system based on identity digital authentication | |
CN111461813B (en) | Block chain-based wine new retail method and system | |
JP2018506128A (en) | Cryptographic verification of locations in the supply chain | |
Koirala et al. | Supply chain using smart contract: A blockchain enabled model with traceability and ownership management | |
CN104838407A (en) | Electronic certificate generating device and system | |
CN105956804A (en) | Safe order system based on digital certificate | |
CN111091399A (en) | Block chain-based fidelity traceability method and system for fast-selling goods | |
CN114140132B (en) | Anti-counterfeiting tracing system | |
Kalyani et al. | Secured information sharing in supply chain management: Modified data sanitization with optimal key generation via hybrid algorithm | |
CN105321078A (en) | Anti-fake direct purchase system | |
Abdullah et al. | Efficiency optimization in supply chain using RFID technology | |
Toyoda et al. | Secret sharing based unidirectional key distribution with dummy tags in Gen2v2 RFID-enabled supply chains | |
CN111415114A (en) | Block chain-based method and system for generating fidelity traceability codes of fast-selling goods |
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: 20190409 |