CN109886685A - A kind of commodity tracing system and method based on block chain - Google Patents
A kind of commodity tracing system and method based on block chain Download PDFInfo
- Publication number
- CN109886685A CN109886685A CN201910149599.8A CN201910149599A CN109886685A CN 109886685 A CN109886685 A CN 109886685A CN 201910149599 A CN201910149599 A CN 201910149599A CN 109886685 A CN109886685 A CN 109886685A
- Authority
- CN
- China
- Prior art keywords
- information
- processing equipment
- block chain
- commodity
- tracing
- 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
Landscapes
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The invention discloses a kind of commodity tracing system and method based on block chain, which includes production unit, Logistic Unit, platform unit and block chain;Production unit includes production unit node and the first processing equipment, and the first processing equipment is equipped with the first private key, and production unit node is equipped with the first public key corresponding with the first private key;Logistic Unit includes Logistic Unit node and second processing equipment, and second processing equipment is equipped with the second private key, and Logistic Unit node is equipped with the second public key corresponding with the second private key;Platform unit includes platform unit node and third processing equipment, and third processing equipment is equipped with third private key, and platform unit node is equipped with third public key corresponding with third private key;Its effect is: connecting the production of commodity, logistics and the links sold by block chain technology, and verifies to each intermediate links, while can not distort feature using block chain, guarantees the authenticity of each information and the trackability of state.
Description
Technical field
The present invention relates to computer application technologies, and in particular to a kind of based on the commodity tracing system of block chain and side
Method.
Background technique
Block chain is a kind of decentralization agreement, can safely storing data information, and information can not be forged and be distorted, tool
There is very high public credibility, can be performed automatically intelligent contract.In general, each commodity are each equipped with unique sequence numbers.In order to keep away
Exempt to buy counterfeit and shoddy goods, user can inquire according to the sequence number to official website with the presence or absence of the sequence number, to product into
Row retrospect, to confirm that product is true and false.
However, the trace-back technique of traditional technology is the prior art has at least the following problems: the sequence number of commodity exists is easy to be copied
Problem;Although also there is the anti-fake traceability system for combining anti-counterfeit bar code with product packaging picture now, there are still logical
Recycling certified products packaging is crossed, to achieve the purpose that commodity are faked.
Summary of the invention
The purpose of the embodiment of the present invention is intended to provide a kind of commodity tracing system and method based on block chain, can with offer
The commodity tracing information leaned on.
First aspect: the embodiment of the invention provides a kind of commodity tracing system based on block chain, including production unit,
Logistic Unit, platform unit and block chain;
The production unit includes production unit node and the first processing equipment, and first processing equipment is equipped with first
Private key, the production unit node are equipped with the first public key corresponding with first private key;
The Logistic Unit includes Logistic Unit node and second processing equipment, and the second processing equipment is equipped with second
Private key, the Logistic Unit node are equipped with the second public key corresponding with second private key;
The platform unit includes platform unit node and third processing equipment, and the third processing equipment is equipped with third
Private key, the platform unit node are equipped with third public key corresponding with the third private key;
First processing equipment generates the bar code information of commodity according to the merchandise news for inputting merchandise news,
And Transaction Information is generated according to the bar code information, the Transaction Information includes the summary info of the bar code information, while benefit
The summary info is encrypted to generate digital signature with the first private key;
The production unit node is used to verify the legitimacy of the digital signature by first public key, if
It is verified, then the Transaction Information is written in the block chain;
The second processing equipment is after commodity reach logistics post, to pass through for inputting logistics information, the logistics information
Current time, current location and the bar code information are merged gained by second processing equipment, and according to the logistics information
The first Transaction Information is generated, first Transaction Information includes the first summary info of the logistics information, while utilizing second
Private key encrypts to generate the first digital signature first summary info;
The Logistic Unit node by legitimacy of second public key to first digital signature for being tested
The logistics information is written in the block chain if being verified for card;
The third processing equipment is for inputting information of tracing to the source, after the information of tracing to the source reaches the warehouse of platform for commodity,
Obtained by being merged current time, current location and the logistics information as third processing equipment, and traced to the source according to described
Information generates the second Transaction Information, and second Transaction Information includes the second summary info of the information of tracing to the source, and utilizes simultaneously
Third private key encrypts to generate the second digital signature second summary info;
The platform unit node by legitimacy of the third public key to second digital signature for being tested
The information of tracing to the source is written in the block chain if being verified for card.
As a preferred technical solution of the invention, the Logistic Unit node and platform cell node are also used to
The current location and its historical record are verified, abnormal login place is judged whether it is, if being judged as abnormal, will not
Corresponding information is written in the block chain.
As a preferred technical solution of the invention, the Logistic Unit node and platform cell node are worked as to described
When preceding place and its historical record are verified, secondary positioning is also carried out to current location by third party's positioning system and is tested
Card.
As a preferred technical solution of the invention, the platform unit node is also used to record user and traces
The time for the first time of inquiry and historical time, and be written into the block chain.
As a preferred technical solution of the invention, at first processing equipment, second processing equipment and third
Equipment is managed when starting input function, also the permission of active user is verified, the defeated of information is just able to achieve after being verified
Enter.
Second aspect: the embodiment of the invention provides a kind of commodity tracing method based on block chain, it is applied to above-mentioned the
A kind of commodity tracing system based on block chain, includes the following steps: described in one side
Merchandise news is inputted by first processing equipment;
First processing equipment generates the bar code information of commodity according to the merchandise news, and according to the bar code information
Transaction Information is generated, the Transaction Information includes the summary info of the bar code information, while being plucked using the first private key to described
Information is wanted to be encrypted to generate digital signature;
The production unit node verifies the legitimacy of the digital signature by first public key, if verifying
Pass through, then the Transaction Information is written in the block chain;
Logistics information is inputted by the second processing equipment, the logistics information is after commodity reach logistics post, to pass through
Current time, current location and the bar code information are merged gained by second processing equipment;
The second processing equipment generates the first Transaction Information according to the logistics information, and first Transaction Information includes
First summary info of the logistics information, while first summary info is encrypted using the second private key to generate
One digital signature;
The Logistic Unit node is verified by legitimacy of second public key to first digital signature, if
It is verified, then the logistics information is written in the block chain;
Information of tracing to the source is inputted by the third processing equipment, after the information of tracing to the source reaches the warehouse of platform for commodity,
Obtained by current time, current location and the logistics information merged as third processing equipment;
Third processing equipment information of tracing to the source according to generates the second Transaction Information, and second Transaction Information includes
Second summary info of the information of tracing to the source, while second summary info is encrypted using third private key to generate
Two digital signature;
The platform unit node is verified by legitimacy of the third public key to second digital signature, if
It is verified, then the information of tracing to the source is written in the block chain.
As a preferred technical solution of the invention, the method also includes:
The Logistic Unit node and platform cell node verify the current location and its historical record, sentence
Whether disconnected is abnormal login place, if being judged as abnormal, corresponding information is not written in the block chain.
As a preferred technical solution of the invention, the Logistic Unit node and platform cell node are worked as to described
When preceding place and its historical record are verified, secondary positioning is also carried out to current location by third party's positioning system and is tested
Card.
As a preferred technical solution of the invention, the method also includes:
The platform unit node be also used to record user carry out retrospect inquiry time for the first time and historical time, and by its
It is written in the block chain.
As a preferred technical solution of the invention, at first processing equipment, second processing equipment and third
Equipment is managed when starting input function, also the permission of active user is verified, the defeated of information is just able to achieve after being verified
Enter.
By adopting the above technical scheme, a kind of commodity tracing system based on block chain proposed by the present invention is had the advantage that
System and method, are connected the production of commodity, logistics and the links sold by block chain technology, and to each circulation
Link individually carries out legitimate verification, and bar code information is to generate in real time, and the sequence number for reducing commodity, which exists, to be easy to be copied
Risk, while feature can not be distorted using block chain, guarantee the authenticity of each information and the trackability of state.
Detailed description of the invention
Fig. 1 is a kind of structural schematic diagram of the commodity tracing system based on block chain provided in an embodiment of the present invention;
Fig. 2 is a kind of flow chart of the commodity tracing method based on block chain provided in an embodiment of the present invention.
Specific embodiment
In order to keep the technical problem to be solved in the present invention, technical solution and advantage clearer, below in conjunction with attached drawing and
Specific embodiment is described in detail, and the following examples are used to illustrate the present invention, but are not intended to limit the scope of the present invention..
Shown in referring to Fig.1, the embodiment of the invention provides a kind of commodity tracing systems based on block chain, including production list
Member, Logistic Unit, platform unit and block chain;
The production unit includes production unit node and the first processing equipment, and first processing equipment is equipped with first
Private key, the production unit node are equipped with the first public key corresponding with first private key;
The Logistic Unit includes Logistic Unit node and second processing equipment, and the second processing equipment is equipped with second
Private key, the Logistic Unit node are equipped with the second public key corresponding with second private key;
The platform unit includes platform unit node and third processing equipment, and the third processing equipment is equipped with third
Private key, the platform unit node are equipped with third public key corresponding with the third private key.
In application, being equipped between production unit node, Logistic Unit node and platform cell node including public key and private
The secret key pair of key.Setting in this way is convenient for carrying out data interaction between each node, secret key pair and previously described first private here
Key, the first public key, the second private key, the second public key ... are different, for example, production unit node utilizes the private key encryption of itself
Afterwards, Logistic Unit node and platform cell node have corresponding public key to be decrypted, that is to say, that production unit node,
Logistic Unit node and platform cell node include multiple secret key pairs, can be verified in this way according to different situations, further
Improve the accuracy of information.
First processing equipment generates the bar code information of commodity according to the merchandise news for inputting merchandise news,
And Transaction Information is generated according to the bar code information, the Transaction Information includes the summary info of the bar code information, while benefit
The summary info is encrypted to generate digital signature with the first private key.
Specifically, input mode can use and manually input or run corresponding program by automation equipment
After automatically enter, the merchandise news includes the raw material information of commodity, the growing environment information of raw material and corresponding time,
The information such as place, above-mentioned Transaction Information, summary info and digital signature are common application, this field skill in block chain technology
Art personnel are it should be appreciated that details are not described herein.
It is forged to further avoid the sequence number of commodity, in application, the first processing equipment is also calculated using random selection
Method handles the sequence number in bar code information, selects some in sequence number or certain several random number, recycles the
One private key is encrypted, and verifying is decrypted using random number of first public key to encryption in the production unit node.Wherein, with
Machine selection algorithm can be realized using LasVegas algorithm or MonteCarlo algorithm, be based on same thinking, logistics list
Member and platform unit also have same treatment process, and details are not described herein.
The production unit node is used to verify the legitimacy of the digital signature by first public key, if
It is verified, then the Transaction Information is written in the block chain.
Specifically, it is arranged in this way in the commodity production stage, just the input information in source is verified, improves in source
Information authenticity avoids the risk that the sequence number of commodity is imitated, because even there is imitated sequence number, can not pass through
The verifying of legitimacy.
The second processing equipment is after commodity reach logistics post, to pass through for inputting logistics information, the logistics information
Current time, current location and the bar code information are merged gained by second processing equipment, and according to the logistics information
The first Transaction Information is generated, first Transaction Information includes the first summary info of the logistics information, while utilizing second
Private key encrypts to generate the first digital signature first summary info.
Specifically, logistics post mentioned here is multiple logistics posts, and commodity are all the transfers of level-one level-one, are not necessarily one
Secondary to be sent to destination, when reaching next stage logistics post, the operation carried out is not done superfluous herein as aforesaid operations
It states.
The Logistic Unit node by legitimacy of second public key to first digital signature for being tested
The logistics information is written in the block chain if being verified for card.
That is, a verifying can be carried out again in logistics links, and new cryptographic operation is carried out, avoids and pass through object
Stream company carries out a possibility that faking to commodity.
The third processing equipment is for inputting information of tracing to the source, after the information of tracing to the source reaches the warehouse of platform for commodity,
Obtained by being merged current time, current location and the logistics information as third processing equipment, and traced to the source according to described
Information generates the second Transaction Information, and second Transaction Information includes the second summary info of the information of tracing to the source, and utilizes simultaneously
Third private key encrypts to generate the second digital signature second summary info;
The platform unit node by legitimacy of the third public key to second digital signature for being tested
The information of tracing to the source is written in the block chain if being verified for card.It should be noted that bar code information, logistics information
It can be used with information of tracing to the source in application and shown in the form of two dimensional code, the first processing equipment, second processing equipment and third
The quantity of processing equipment is multiple.
Through the above scheme, the production of commodity, logistics and the links sold are connected using block chain technology,
The processing equipment of each unit has private key simultaneously, encrypts to the information of input, and to each intermediate links individually into
Row legitimate verification, and bar code information is to generate in real time, there is the risk for being easy to be copied in the sequence number for reducing commodity, simultaneously
Feature can not be distorted using block chain, guarantees the authenticity of each information and the trackability of state, and then realize reliable quotient
Product tracing information.
In specific application, the Logistic Unit node and platform cell node are also used to the current location and its
Historical record is verified, and abnormal login place is judged whether it is, will not be described in the write-in of corresponding information if being judged as abnormal
In block chain.
Verifying mentioned here includes the verifying to Logistic Unit node and platform cell node, also includes to second processing
The current location of equipment and third processing equipment is verified, and also be can be used and is respectively carried out verifying and the two while verifying, herein
With no restrictions.For example, the place in historical record is all shown as Guangzhou, but current login place is shown as Shanghai, that is, determining
For abnormal login place, then corresponding information is not written in the block chain, setting in this way is in order to avoid being likely to occur place
Reason equipment and cell node the case where being tampered, further increase commodity and trace to the source the accuracy of information.It should be noted that here
Corresponding information refers to that Logistic Unit node corresponds to logistics information, the corresponding information of tracing to the source of platform unit node.In use, if
After abnormal login number reaches certain setting value, starting is exited to the operation of block chain, prevents its information from writing by its node
Enter in block chain, improves the authenticity of merchandise news;When the case where there is abnormal login and restore, execute to processing equipment or
It is the marking operation of cell node, and generates remarks label in systems, in order to which system operator is checked and supervised in time
Control.
When the Logistic Unit node and platform cell node verify the current location and its historical record,
Secondary locating verification is also carried out to current location by third party's positioning system.
By carrying out secondary locating verification, mainly while verifying more accurate, also prevent certain criminals from adopting
After being shifted the equipment of pilferage with some softwares, change its way for logging in place, can determine whether by third party's positioning system
It logs in the problem of whether place is modified out.
In use, production unit node and the first processing equipment are also similarly operated, details are not described herein.
The platform unit node be also used to record user carry out retrospect inquiry time for the first time and historical time, and by its
It is written in the block chain.
Specifically, platform is after commodity selling, and user will do it the retrospect inquiry of commodity certainly, by recording initial activation
And historical time, even if commodity through changing hands can be carried out inquiry, not by can only inquire it is primary limited, accordingly even when using original
Product packaging is faked, can also be according to the time discrimination true and false of record.
In the present embodiment, first processing equipment, second processing equipment and third processing equipment are in starting input work
When energy, also the permission of active user is verified, the input of information is just able to achieve after being verified.
Specifically, by the verifying of permission, it is further ensured that the accuracy that information is inputted from source, the permission is at least
Including common permission and administration authority, common permission is served only for inputting, administration authority be used for equity stock limit the use of the management at family with
And the modification of input information, function can also be modified without using it certainly in application, herein with no restrictions.
Based on inventive concept identical with a kind of above-mentioned commodity tracing system based on block chain, the embodiment of the present invention is also
A kind of commodity tracing method based on block chain is provided, referring to shown in Fig. 2:
S101 inputs merchandise news by first processing equipment.
Specifically, input mode can use and manually input or run corresponding program by automation equipment
After automatically enter, the merchandise news includes the raw material information of commodity, the growing environment information of raw material and corresponding time,
The information such as place, above-mentioned Transaction Information, summary info and digital signature are common application, this field skill in block chain technology
Art personnel are it should be appreciated that details are not described herein.
S102, first processing equipment generate the bar code information of commodity according to the merchandise news, and according to the item
Code information generates Transaction Information, and the Transaction Information includes the summary info of the bar code information, while utilizing the first private key pair
The summary info is encrypted to generate digital signature.
Specifically, it is arranged in this way in the commodity production stage, just the input information in source is verified, improves in source
Information authenticity avoids the risk that the sequence number of commodity is imitated, because even there is imitated sequence number, can not pass through
The verifying of legitimacy.
S103, the production unit node verify the legitimacy of the digital signature by first public key,
If being verified, the Transaction Information is written in the block chain.
S104 inputs logistics information by the second processing equipment, after the logistics information reaches logistics post for commodity,
Obtained by current time, current location and the bar code information merged as second processing equipment.
S105, the second processing equipment generate the first Transaction Information, the first transaction letter according to the logistics information
Breath include the logistics information the first summary info, while using the second private key to first summary info encrypted with
Generate the first digital signature.
Specifically, logistics post mentioned here is multiple logistics posts, and commodity are all the transfers of level-one level-one, are not necessarily one
Secondary to be sent to destination, when reaching next stage logistics post, the operation carried out is not done superfluous herein as aforesaid operations
It states.
S106, the Logistic Unit node are tested by legitimacy of second public key to first digital signature
The logistics information is written in the block chain if being verified for card.
Specifically, that is to say, that a verifying can be carried out again in logistics links, and carry out new cryptographic operation, avoided
A possibility that faking to commodity is carried out by logistics company.
S107 inputs information of tracing to the source by the third processing equipment, and the information of tracing to the source is the storehouse that commodity reach platform
Behind library, current time, current location and the logistics information merged as third processing equipment obtained by.
S108, the third processing equipment trace to the source according to information generate the second Transaction Information, it is described second transaction letter
Breath includes the second summary info of the information of tracing to the source, at the same using third private key to second summary info encrypted with
Generate the second digital signature.
S109, the platform unit node are tested by legitimacy of the third public key to second digital signature
The information of tracing to the source is written in the block chain if being verified for card.
By the above method, the production of commodity, logistics and the links sold are connected using block chain technology,
The processing equipment of each unit has private key simultaneously, encrypts to the information of input, and to each intermediate links individually into
Row legitimate verification, and bar code information is to generate in real time, there is the risk for being easy to be copied in the sequence number for reducing commodity, simultaneously
Feature can not be distorted using block chain, guarantees the authenticity of each information and the trackability of state, and then realize reliable quotient
Product tracing information.
In the application above method, the Logistic Unit node and platform cell node are also used to the current location
It is verified with its historical record, judges whether it is abnormal login place, if being judged as abnormal, corresponding information is not written
In the block chain.
Specifically, verifying mentioned here includes the verifying to Logistic Unit node and platform cell node, also includes pair
The current location of second processing equipment and third processing equipment is verified, and also be can be used and is respectively carried out verifying and the two while testing
Card, herein with no restrictions.For example, the place in historical record is all shown as Guangzhou, but current login place is shown as Shanghai,
It is determined as abnormal login place, then corresponding information is not written in the block chain, setting in this way is in order to avoid possible
There is the case where processing equipment and cell node are tampered, further increases commodity and trace to the source the accuracy of information.It needs to illustrate
It is that corresponding information refers to here, Logistic Unit node corresponds to logistics information, the corresponding information of tracing to the source of platform unit node.
When the Logistic Unit node and platform cell node verify the current location and its historical record,
Secondary locating verification is also carried out to current location by third party's positioning system.
By carrying out secondary locating verification, mainly while verifying more accurate, also prevent certain criminals from adopting
After being shifted the equipment of pilferage with some softwares, change its way for logging in place, can determine whether by third party's positioning system
It logs in the problem of whether place is modified out.
In use, production unit node and the first processing equipment are also similarly operated, details are not described herein.
The platform unit node be also used to record user carry out retrospect inquiry time for the first time and historical time, and by its
It is written in the block chain.
Specifically, platform is after commodity selling, and user will do it the retrospect inquiry of commodity certainly, by recording initial activation
And historical time, even if commodity through changing hands can be carried out inquiry, not by can only inquire it is primary limited, accordingly even when using original
Product packaging is faked, can also be according to the time discrimination true and false of record.
In the present embodiment, first processing equipment, second processing equipment and third processing equipment are in starting input work
When energy, also the permission of active user is verified, the input of information is just able to achieve after being verified.
Specifically, by the verifying of permission, it is further ensured that the accuracy that information is inputted from source, the permission is at least
Including common permission and administration authority, common permission is served only for inputting, administration authority be used for equity stock limit the use of the management at family with
And the modification of input information, function can also be modified without using it certainly in application, herein with no restrictions.
The embodiment of the invention also provides a kind of terminal, including processor and memory connected to the processor,
The memory is for storing computer program, and the computer program includes program instruction, and the processor is configured for
Described program instruction is called, method described above is executed.
It should be appreciated that in the present embodiment, alleged processor can be central processing unit (Central Processing
Unit, CPU), which can also be other general processors, digital signal processor (Digital Signal
Processor, DSP), it is specific integrated circuit (Application Specific Integrated Circuit, ASIC), existing
At programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic device, discrete
Door or transistor logic, discrete hardware components etc..
The memory may include read-only memory and random access memory, and provide instruction and data to processor.
The a part of of memory can also include nonvolatile RAM.
The terminal of the present embodiment executes method described in above-described embodiment, by block chain technology by commodity
Production, logistics and the links sold connect, while the processing equipment of each unit has private key, to the letter of input
Breath is encrypted, and individually carries out legitimate verification to each intermediate links, and bar code information is to generate in real time, reduces commodity
Sequence number exist and be easy the risk copied, while feature can not be distorted using block chain, guarantee the authenticity of each information
With the trackability of state, and then reliable commodity tracing information is realized.
The embodiment of the invention also provides a kind of computer readable storage medium, computer storage medium is stored with computer
Program, computer program include program instruction, and program instruction executes processor described in second aspect
Method.
The computer readable storage medium can be the memory of the aforementioned terminal, such as the hard disk of terminal
Or memory.The computer readable storage medium is also possible to match on the External memory equipment of the terminal, such as the terminal
Standby plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD)
Card, flash card (Flash Card) etc..Further, the computer readable storage medium can also both include the terminal
Memory also includes External memory equipment.The computer readable storage medium is for storing the computer program and described
Other programs and data needed for terminal.
The computer readable storage medium of the present embodiment executes method as described in the examples, and details are not described herein.
Those of ordinary skill in the art may be aware that system module described in conjunction with the examples disclosed in this document and
Method and step can be realized with electronic hardware, computer software, or a combination of the two, in order to clearly demonstrate hardware and soft
The interchangeability of part generally describes each exemplary composition and step according to function in the above description.These function
It can be implemented in hardware or software actually, the specific application and design constraint depending on technical solution.Professional skill
Art personnel can use different methods to achieve the described function each specific application, but this realization should not be recognized
It is beyond the scope of this invention.
Finally, it should be noted that foregoing description is only a specific embodiment of the invention, but protection scope of the present invention
It is not limited thereto, anyone skilled in the art in the technical scope disclosed by the present invention, can readily occur in
Change or replacement, should be covered by the protection scope of the present invention.
Claims (10)
1. a kind of commodity tracing system based on block chain, which is characterized in that including production unit, Logistic Unit, platform unit
With block chain;
The production unit includes production unit node and the first processing equipment, and it is private that first processing equipment is equipped with first
Key, the production unit node are equipped with the first public key corresponding with first private key;
The Logistic Unit includes Logistic Unit node and second processing equipment, and it is private that the second processing equipment is equipped with second
Key, the Logistic Unit node are equipped with the second public key corresponding with second private key;
The platform unit includes platform unit node and third processing equipment, and it is private that the third processing equipment is equipped with third
Key, the platform unit node are equipped with third public key corresponding with the third private key;
First processing equipment generates the bar code information of commodity, and root according to the merchandise news for inputting merchandise news
Transaction Information is generated according to the bar code information, the Transaction Information includes the summary info of the bar code information, while utilizing the
One private key encrypts to generate digital signature the summary info;
The production unit node is for verifying the legitimacy of the digital signature by first public key, if verifying
Pass through, then the Transaction Information is written in the block chain;
The second processing equipment is after commodity reach logistics post, to pass through second for inputting logistics information, the logistics information
Current time, current location and the bar code information are merged gained by processing equipment, and are generated according to the logistics information
First Transaction Information, first Transaction Information include the first summary info of the logistics information, while utilizing the second private key
First summary info is encrypted to generate the first digital signature;
The Logistic Unit node is used to verify by legitimacy of second public key to first digital signature, if
It is verified, then the logistics information is written in the block chain;
The third processing equipment passes through for inputting information of tracing to the source after the information of tracing to the source reaches the warehouse of platform for commodity
Current time, current location and the logistics information are merged gained by third processing equipment, and according to the information of tracing to the source
The second Transaction Information is generated, second Transaction Information includes the second summary info of the information of tracing to the source, while utilizing third
Private key encrypts to generate the second digital signature second summary info;
The platform unit node is used to verify by legitimacy of the third public key to second digital signature, if
It is verified, then the information of tracing to the source is written in the block chain.
2. a kind of commodity tracing system based on block chain according to claim 1, which is characterized in that the Logistic Unit
Node and platform cell node are also used to verify the current location and its historical record, judge whether it is abnormal and step on
Place is recorded, if being judged as abnormal, corresponding information is not written in the block chain.
3. a kind of commodity tracing system based on block chain according to claim 2, which is characterized in that the Logistic Unit
When node and platform cell node verify the current location and its historical record, also pass through third party's positioning system
Secondary locating verification is carried out to current location.
4. a kind of commodity tracing system based on block chain according to claim 1, which is characterized in that the platform unit
Node is also used to record user and carries out time for the first time and the historical time of retrospect inquiry, and is written into the block chain.
5. a kind of commodity tracing system based on block chain according to claim 1, which is characterized in that first processing
Equipment, second processing equipment and third processing equipment are also verified the permission of active user, are tested when starting input function
Card is just able to achieve the input of information after passing through.
6. a kind of commodity tracing method based on block chain, which is characterized in that applied to described one kind any in right 1 to 5
Commodity tracing system based on block chain, includes the following steps:
Merchandise news is inputted by first processing equipment;
First processing equipment generates the bar code information of commodity according to the merchandise news, and is generated according to the bar code information
Transaction Information, the Transaction Information include the summary info of the bar code information, while being believed using the first private key the abstract
Breath is encrypted to generate digital signature;
The production unit node verifies the legitimacy of the digital signature by first public key, if verifying is logical
It crosses, then the Transaction Information is written in the block chain;
Logistics information is inputted by the second processing equipment, the logistics information is after commodity reach logistics post, to pass through second
Current time, current location and the bar code information are merged gained by processing equipment;
The second processing equipment generates the first Transaction Information according to the logistics information, and first Transaction Information includes described
First summary info of logistics information, while first summary info is encrypted using the second private key to generate the first number
Word signature;
The Logistic Unit node is verified by legitimacy of second public key to first digital signature, if verifying
Pass through, then the logistics information is written in the block chain;
Information of tracing to the source is inputted after the information of tracing to the source reaches the warehouse of platform for commodity by the third processing equipment to pass through
Current time, current location and the logistics information are merged gained by third processing equipment;
Third processing equipment information of tracing to the source according to generates the second Transaction Information, and second Transaction Information includes described
Second summary info of information of tracing to the source, while second summary info is encrypted using third private key to generate the second number
Word signature;
The platform unit node is verified by legitimacy of the third public key to second digital signature, if verifying
Pass through, then the information of tracing to the source is written in the block chain.
7. a kind of commodity tracing method based on block chain according to claim 6, which is characterized in that the method is also wrapped
It includes:
The Logistic Unit node and platform cell node verify the current location and its historical record, and judgement is
No is abnormal login place, if being judged as abnormal, corresponding information is not written in the block chain.
8. a kind of commodity tracing method based on block chain according to claim 7, which is characterized in that the Logistic Unit
When node and platform cell node verify the current location and its historical record, also pass through third party's positioning system
Secondary locating verification is carried out to current location.
9. a kind of commodity tracing method based on block chain according to claim 6, which is characterized in that the method is also wrapped
It includes:
The platform unit node is also used to record user and carries out time for the first time and the historical time of retrospect inquiry, and is written into
In the block chain.
10. a kind of commodity tracing method based on block chain according to claim 6, which is characterized in that at described first
Equipment, second processing equipment and third processing equipment are managed when starting input function, also the permission of active user is verified,
The input of information is just able to achieve after being verified.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910149599.8A CN109886685A (en) | 2019-02-28 | 2019-02-28 | A kind of commodity tracing system and method based on block chain |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910149599.8A CN109886685A (en) | 2019-02-28 | 2019-02-28 | A kind of commodity tracing system and method based on block chain |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109886685A true CN109886685A (en) | 2019-06-14 |
Family
ID=66929826
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910149599.8A Pending CN109886685A (en) | 2019-02-28 | 2019-02-28 | A kind of commodity tracing system and method based on block chain |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109886685A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111311278A (en) * | 2020-02-13 | 2020-06-19 | 上海墨珩网络科技有限公司 | Cross-department information tracing method and system |
CN111464537A (en) * | 2020-03-31 | 2020-07-28 | 湖南工程学院 | Commodity tracing method based on block chain, commodity tracing system and storage medium |
CN112633813A (en) * | 2020-12-31 | 2021-04-09 | 浙江万里学院 | Valuable commodity distribution management method based on block chain technology |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2016090095A1 (en) * | 2014-12-05 | 2016-06-09 | Skuchain, Inc. | Cryptographic verification of provenance in a supply chain |
US20170046652A1 (en) * | 2015-08-13 | 2017-02-16 | The Toronto-Dominion Bank | Systems and method for tracking behavior of networked devices using hybrid public-private blockchain ledgers |
CN106570710A (en) * | 2016-10-27 | 2017-04-19 | 纸飞机(北京)科技有限公司 | Commodity anti-counterfeiting method and device |
CN107341676A (en) * | 2017-07-17 | 2017-11-10 | 深圳天净喔溯源科技有限公司 | False proof mark and the method for tracing to the source |
CN107704493A (en) * | 2017-08-23 | 2018-02-16 | 中链科技有限公司 | It is a kind of to be used to provide the method and system that product is traced to the source |
CN108009830A (en) * | 2017-12-14 | 2018-05-08 | 上海密尔克卫化工储存有限公司 | Products in circulation tracking and system based on block chain |
CN108985790A (en) * | 2018-06-25 | 2018-12-11 | 平安科技(深圳)有限公司 | Method for anti-counterfeit, system, computer equipment and storage medium based on block chain |
CN109146518A (en) * | 2018-08-03 | 2019-01-04 | 中南大学 | A kind of product traceability method |
CN109191142A (en) * | 2018-08-02 | 2019-01-11 | 华中科技大学 | A kind of commodity tracing method, equipment and system |
-
2019
- 2019-02-28 CN CN201910149599.8A patent/CN109886685A/en active Pending
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2016090095A1 (en) * | 2014-12-05 | 2016-06-09 | Skuchain, Inc. | Cryptographic verification of provenance in a supply chain |
US20170046652A1 (en) * | 2015-08-13 | 2017-02-16 | The Toronto-Dominion Bank | Systems and method for tracking behavior of networked devices using hybrid public-private blockchain ledgers |
CN106570710A (en) * | 2016-10-27 | 2017-04-19 | 纸飞机(北京)科技有限公司 | Commodity anti-counterfeiting method and device |
CN107341676A (en) * | 2017-07-17 | 2017-11-10 | 深圳天净喔溯源科技有限公司 | False proof mark and the method for tracing to the source |
CN107704493A (en) * | 2017-08-23 | 2018-02-16 | 中链科技有限公司 | It is a kind of to be used to provide the method and system that product is traced to the source |
CN108009830A (en) * | 2017-12-14 | 2018-05-08 | 上海密尔克卫化工储存有限公司 | Products in circulation tracking and system based on block chain |
CN108985790A (en) * | 2018-06-25 | 2018-12-11 | 平安科技(深圳)有限公司 | Method for anti-counterfeit, system, computer equipment and storage medium based on block chain |
CN109191142A (en) * | 2018-08-02 | 2019-01-11 | 华中科技大学 | A kind of commodity tracing method, equipment and system |
CN109146518A (en) * | 2018-08-03 | 2019-01-04 | 中南大学 | A kind of product traceability method |
Non-Patent Citations (1)
Title |
---|
吕芙蓉 等: "基于区块链技术构建 我国农产品质量安全追溯体系的研究", 《农村金融研究》 * |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111311278A (en) * | 2020-02-13 | 2020-06-19 | 上海墨珩网络科技有限公司 | Cross-department information tracing method and system |
CN111311278B (en) * | 2020-02-13 | 2024-02-02 | 上海墨珩网络科技有限公司 | Cross-department information tracing method and system |
CN111464537A (en) * | 2020-03-31 | 2020-07-28 | 湖南工程学院 | Commodity tracing method based on block chain, commodity tracing system and storage medium |
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 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10880277B2 (en) | Managing payload decryption via fingerprints | |
US8310346B2 (en) | Verification of movement of items | |
US8660914B2 (en) | Control of supply networks and verification of items | |
JP2020074513A (en) | Cryptographic verification of source in supply chain | |
CN102571347B (en) | Method of calibration, device and the communication equipment of Field Replaceable Unit | |
CN109886685A (en) | A kind of commodity tracing system and method based on block chain | |
US20100111294A1 (en) | Verification of movement of items | |
CN117596086B (en) | Commodity data encryption transmission method and system based on supply chain | |
CN108304735A (en) | A kind of authorization sequence application method, system and delivery of cargo system, application server | |
US20210217028A1 (en) | Method and system for the certification of a product to be shipped | |
CN114140133B (en) | Method for processing tracing data | |
CN114897481A (en) | Intelligent customhouse logistics monitoring method based on block chain | |
US20230325527A1 (en) | System and method to secure data pipelines using asymmetric encryption | |
Nandini et al. | Product Authenticity: A Blockchain-Based Solution | |
Saraswathi et al. | Combating Counterfeit Products with Blockchain Technology to Enhance Trust and Authenticity in Consumer Markets |
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 | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20191122 Address after: No.34-5, building 4, No.7 Jiangnan Avenue, Nan'an District, Chongqing 400060 Applicant after: Miduo (Chongqing) blockchain Technology Co.,Ltd. Address before: 400060 Chongqing Nanan District Jiangnan Avenue 7 4 Building 34-7 Applicant before: YIQIYING (CHONGQING) E-COMMERCE Co.,Ltd. |
|
TA01 | Transfer of patent application right | ||
AD01 | Patent right deemed abandoned |
Effective date of abandoning: 20230516 |
|
AD01 | Patent right deemed abandoned |