CN109493096A - A kind of product traceability method, apparatus and its storage medium - Google Patents
A kind of product traceability method, apparatus and its storage medium Download PDFInfo
- Publication number
- CN109493096A CN109493096A CN201811400885.9A CN201811400885A CN109493096A CN 109493096 A CN109493096 A CN 109493096A CN 201811400885 A CN201811400885 A CN 201811400885A CN 109493096 A CN109493096 A CN 109493096A
- Authority
- CN
- China
- Prior art keywords
- contract
- operation record
- raw material
- typing
- source
- 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
- 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
- G06Q20/00—Payment architectures, schemes or protocols
- G06Q20/38—Payment protocols; Details thereof
- G06Q20/382—Payment protocols; Details thereof insuring higher security of transaction
- G06Q20/3829—Payment protocols; Details thereof insuring higher security of transaction involving key management
-
- 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
- G06Q40/00—Finance; Insurance; Tax strategies; Processing of corporate or income taxes
- G06Q40/04—Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
Landscapes
- Business, Economics & Management (AREA)
- Accounting & Taxation (AREA)
- Engineering & Computer Science (AREA)
- Finance (AREA)
- Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Strategic Management (AREA)
- General Business, Economics & Management (AREA)
- Development Economics (AREA)
- Marketing (AREA)
- Economics (AREA)
- Technology Law (AREA)
- Computer Security & Cryptography (AREA)
- Entrepreneurship & Innovation (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The present invention provides a kind of product traceability method, apparatus and its storage mediums, are related to product traceability technical field.The product traceability method includes: the processing node that raw material and the raw material are determined based on the processing flow of target product;Corresponding every kind of raw material establish an intelligent contract respectively in block chain, and each processing node based on every kind of raw material generates operation record respectively;By in the corresponding intelligent contract of every operation record typing, using the combination of all intelligent contracts as contract of tracing to the source.The intelligent contract that the product traceability method is provided using block chain network upper layer develops contract of tracing to the source, and carries out data storage and query on contract tracing to the source, reduces tracing technology threshold and O&M cost based on block chain technology.
Description
Technical field
The present invention relates to product traceability technical fields, in particular to a kind of product traceability method, apparatus and its storage
Medium.
Background technique
Nowadays there are many Internet companies by the characteristic of block chain technology, the block chain that goes into effect is traced to the source scheme, substantially
Structure is similar with traditional scheme, only by the storage medium in traditional scheme --- and centralization database is changed to block chain, this
Ensure that data can not tamper, while its distributed frame ensure that the stable operation of service.
But for block chain technology, existing block chain technology is given birth to for digital token mostly, if it is desired to using area
Block chain technology is traced to the source, then needs to rewrite the upper-layer functionality of block chain, and technical threshold is high;And block chain technology itself is relatively more multiple
It is miscellaneous, while multinode being needed to cooperate, it just can guarantee reliable block chain network, increase O&M cost to a certain extent.
Summary of the invention
In view of this, the embodiment of the present invention is designed to provide a kind of product traceability method, apparatus and its storage medium,
With solve the problems, such as it is above-mentioned be directly based upon block chain technology traced to the source existing for technology is complicated, O&M cost is high.
In a first aspect, the product traceability method includes: to be based on the embodiment of the invention provides a kind of product traceability method
The processing flow of target product determines the processing node of raw material and the raw material;Corresponding every kind of raw material are in block chain
An intelligent contract is established respectively, and each processing node based on every kind of raw material generates operation record respectively;Every is processed
It records in the corresponding intelligent contract of typing, using the combination of all intelligent contracts as contract of tracing to the source.
The intelligent contract that above-described embodiment is provided using block chain network upper layer develops contract of tracing to the source, enterprising in contract of tracing to the source
The storage and inquiry of row product traceability data make storing data have the spy that the decentralization of block chain is stored and can not be distorted
While property, it ensure that in the trace to the source reliability and service stability of data on solution middle line, and reduce based on block
The tracing technology threshold and O&M cost of chain technology.
It is comprehensive in a first aspect, in the intelligence contract that every operation record typing is corresponding, by all intelligent contracts
Combination as tracing to the source after contract, the method also includes the inquiry instructions of response decentralization application program, by described
Contract of tracing to the source inquires the processing flow of the target product, and returns to query result.
Above-described embodiment inquires contract of tracing to the source by decentralization application program, allows user in various processing
The processing flow that target product is quickly and easily inquired in equipment, simplifies trace to the source the step of inquiring and operation complexity.
Synthesis is in a first aspect, the processing flow for inquiring the target product by the contract of tracing to the source, comprising: determines
The corresponding intelligent contract of raw material is specified in the inquiry instruction, and the specified raw material are inquired right by the contract of tracing to the source
Answer the processing flow in intelligent contract;Or determine that the inquiry instruction indicates to inquire the entire processing flow of the target product,
Processing flow of the every kind of raw material in corresponding intelligent contract is inquired item by item by the contract of tracing to the source.
User can carry out the processing flow of the corresponding single raw material of every intelligence contract independent in above-described embodiment
Inquiry can also improve inquiry flexibility ratio to the whole inquiry of whole processing flows progress of all raw material in contract of tracing to the source,
In user, it is only necessary to avoid looking into the processing flow of all raw material when the processing flow of independent one raw material of cargo tracer
It askes, saves calculation resources, improve efficiency of tracing to the source.
Synthesis is in a first aspect, before in the intelligence contract that every operation record typing is corresponding, and the method is also
Include: to be screened to the operation record, removes the operation record not needed in typing intelligence contract.
Above-described embodiment screens operation record, and the operation record that only typing needs is reduced to memory space
It occupies, improves efficiency of inputting.
It is comprehensive in a first aspect, before in intelligence contract that every operation record typing is corresponding, the method also includes:
Address is distributed to each user for needing operation record described in typing respectively.It is described by the corresponding intelligence of every operation record typing
In contract, comprising: when every operation record is user's typing of corresponding address, by the corresponding intelligence of every operation record typing
In contract.
Above-described embodiment distributes address to the user of typing operation record and verifies the address in typing operation record, keeps away
Exempt from the case where other users mistake typing operation record occur and operation record typing user can not be traced, improves number of tracing to the source
According to reliability and safety.
Second aspect, the embodiment of the invention provides a kind of product traceability device, the product traceability device includes: former material
Expect determining module, the processing node of raw material and the raw material is determined for the processing flow based on target product;Intelligence
Contract establishes module, establishes an intelligent contract respectively in block chain for corresponding to every kind of raw material, is based on every kind of raw material
Each processing node generate operation record respectively;Contract of tracing to the source establishes module, for every operation record typing is corresponding
In intelligent contract, using the combination of all intelligent contracts as contract of tracing to the source.
Comprehensive second aspect, described device further include: enquiry module, the inquiry for responding decentralization application program refer to
It enables, the processing flow of the target product is inquired by the contract of tracing to the source, and return to query result.
Comprehensive second aspect, described device further includes authentication module, and the authentication module includes: allocation unit, is used
In respectively to each user's distribution address for needing operation record described in typing;Typing unit is verified, for remembering in every processing
It, will be in the corresponding intelligent contract of every operation record typing when record is user's typing of corresponding address.
The third aspect, it is described computer-readable the embodiment of the invention also provides a kind of computer-readable storage medium
It takes and is stored with computer program instructions in storage medium, when the computer program instructions are read and run by a processor, hold
Step in any of the above-described aspect the method for row.
Other features and advantages of the present invention will be illustrated in subsequent specification, also, partly be become from specification
It is clear that by implementing understanding of the embodiment of the present invention.The objectives and other advantages of the invention can be by written theory
Specifically noted structure is achieved and obtained in bright book, claims and attached drawing.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below will be to needed in the embodiment attached
Figure is briefly described, it should be understood that the following drawings illustrates only certain embodiments of the present invention, therefore is not construed as pair
The restriction of range for those of ordinary skill in the art without creative efforts, can also be according to this
A little attached drawings obtain other relevant attached drawings.
Fig. 1 is a kind of schematic diagram of the product traceability technology based on centralization database in the prior art;
Fig. 2 is a kind of flow diagram for product traceability method that first embodiment of the invention provides;
Fig. 3 is a kind of interaction schematic diagram for product traceability data that first embodiment of the invention provides;
Fig. 4 is a kind of module diagram for product traceability device 100 that second embodiment of the invention provides.
Icon: 100- product traceability device;110- raw material determining module;120- intelligence contract establishes module;130- traces back
Source contract establishes module.
Specific embodiment
Below in conjunction with attached drawing in the embodiment of the present invention, technical solution in the embodiment of the present invention carries out clear, complete
Ground description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.Usually exist
The component of the embodiment of the present invention described and illustrated in attached drawing can be arranged and be designed with a variety of different configurations herein.Cause
This, is not intended to limit claimed invention to the detailed description of the embodiment of the present invention provided in the accompanying drawings below
Range, but it is merely representative of selected embodiment of the invention.Based on the embodiment of the present invention, those skilled in the art are not doing
Every other embodiment obtained under the premise of creative work out, shall fall within the protection scope of the present invention.
It should also be noted that similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang Yi
It is defined in a attached drawing, does not then need that it is further defined and explained in subsequent attached drawing.Meanwhile of the invention
In description, term " first ", " second " etc. are only used for distinguishing description, are not understood to indicate or imply relative importance.
First embodiment
Through the applicant the study found that product traced to the source always a platitude the problem of, product, which can trace to the source, is
To the Vaporous atomization of consumer, for now, the most wide mode used is to establish the database of centralization, and storage product is former
The range of information such as material, procedure of processing, transportational process, but the database of centralization has that data can distort.Nowadays,
The block chain technology of dryness-fire block chain provide it is a kind of the transparency, can not tamper running environment, major Internet company
Propose the solution traced to the source using block chain;But block chain Floor layer Technology is more complicated, and needs multiple nodes
Cooperation, to construct the operation that good network topology environment could ensure that block chain can be stable.Referring to FIG. 1, Fig. 1 is existing
A kind of schematic diagram of the product traceability technology based on centralization database in technology in the traditional scheme, uses the number of centralization
According to library, the range of information such as product raw material, procedure of processing, transportational process are stored, then query interface is provided looked into for consumer
It askes.For traditional scheme, the database of centralization is in case of delay machine, then will affect the entire service of tracing to the source, data cannot enter
Library, while consumer can not inquire;In addition to this, the biggest problems are that the data of centralization are unreliable, data
Itself it can be tampered and not leave any record.But for block chain technology, block chain technology itself is more complicated,
Need to rewrite block chain upper-layer functionality when carrying out product traceability using block chain technology, technical difficulty is higher, while needing more piece
Point cooperation, operation cost are higher.
To solve the above-mentioned problems, first embodiment of the invention provides a kind of product traceability method, the product traceability side
The executing subject of method is that computer, intelligent terminal, cloud processor, server or other processing for having logical operation function are set
It is standby.
Referring to FIG. 2, Fig. 2 is a kind of flow diagram for product traceability method that first embodiment of the invention provides, it should
The specific steps of product traceability method can be such that
Step S20: server of tracing to the source determines the processing section of raw material and raw material based on the processing flow of target product
Point.
Server of tracing to the source in the present embodiment can be a node server in block chain network, the server of tracing to the source
There should be query function, can be inquired from block chain and obtain data.
Target product in the present embodiment can be the physical products such as clothing, manual ornaments, food, electronic product, may be used also
To be the non-physical product such as application program, planning scheme.
When target product is physical product, processing node can be the corresponding processing people of every one of procedure of processing or processing
Place;When target product is non-physical product, processing node can be the corresponding processing people of each procedure of processing or processing is set
Standby network address.
Step S40: server of tracing to the source corresponds to every kind of raw material and establishes an intelligent contract respectively in block chain, based on every
Each processing node of kind raw material generates operation record respectively.
Block chain (English: Blockchain or Block chain) is a kind of distributed data base, is a string using password
Method is associated the data block generated, the information of primary network transaction is contained in each data block, for verifying its letter
The validity and the next block of generation of breath.It is said with popular concept, block chain is exactly everybody account that can remember.It is in technology
There are following three key points in principle: first, decentralization, in the network of a practicing block chain technology, what is covered is every
Platform computer can be read, add record, and from account book, this angle is said, they are exactly the people to keep accounts jointly, without pundit
Scholar therefrom instructs, corrects.Second, asymmetric encryption, in accounting procedure, everyone defers to unified encryption rule, but reads
When taking, oneself exclusive manner of decryption must be but used, is only limitted to that piece that oneself can be decrypted, that is, relevant to oneself
That a part.Third, time-stamp, that is, timestamp (English: Timestamp), refer to that character string or encoded information are used for
The Time of Day recorded is recognized, each block on block chain, was sequentially arranged according to its time generated
Column, and authenticated by collective, confirmation is set up, moreover, record before can not be modified.Therefore the present embodiment can select
Keep tracing to the source for product more quasi- by storing based on operation record of the block chain technology to product with ether mill block chain
Really, reliably, while the confidentiality and safety of operation record being enhanced.It should be understood that in other alternative-embodiments,
Block chain network can also use EOS or other block chains.
Intelligent contract (English: Smart contract) is that one kind is intended to that conjunction is propagated, verified or executed in a manner of information-based
Same computer protocol.The permission of intelligent contract carries out credible transaction in no third-party situation, these transaction it is traceable and
It is irreversible.Intelligent contract in the present embodiment is a set of software program, and can be detected in block chain based on block chain
It can be triggered when under the conditions of to certain specific datas.On the one hand, the design feature of block chain determines the content (generation of intelligent contract
Code) it is traceable and can not distort, on the other hand, the affluent resources and value that can be loaded on block chain, so that various contracts
Automatic execute is possibly realized.The deployment of intelligent contract is the upper layer based on block chain simultaneously, and user can avoid multiple to block chain
The setting of miscellaneous bottom is directly simply and quickly arranged intelligent contract using corresponding intelligent contract platform, is enabled users to
It is enough that Distributed Storage and reading are carried out by intelligent contract.Therefore the present embodiment carries out operation record based on intelligent contract
Typing and inquiry, solve the problems, such as it is above-mentioned be directly based upon block chain technology traced to the source existing for technology is complicated, O&M cost is high.
Step S60: server of tracing to the source is by the corresponding intelligent contract of every operation record typing, by all intelligent contracts
Combination is as contract of tracing to the source.
It should be understood that the intelligent contract of the target product only has one when the raw material of target product only have a kind of
Item;There are many raw material of target product, when every kind of raw material will complete processing by a processing line, then intelligent contract
Quantity is identical as the quantity of its processing line.
The intelligent contract that product traceability method provided in this embodiment is provided using block chain network upper layer develops conjunction of tracing to the source
About, in the storage and inquiry for carrying out product traceability data on contract of tracing to the source, in the decentralization for making storing data have block chain
While storage and the characteristic that can not be distorted, it ensure that in the trace to the source reliability and service invariant of data on solution middle line
Property, and reduce tracing technology threshold and O&M cost based on block chain technology.
For step S20, by taking the production procedure of cider as an example, its raw material packet is determined based on the processing flow of cider
Apple, sugar and water are included, determines that it is processed node and includes picking, screening, roughing, finishing and pin for the processing flow of apple
It sells, is determined by processing node of the same step to sugar and water.
For step S40, apple of the step based on cider, three kinds of raw material of sugar and water processing flow establish respectively
One intelligent contract, and operation record is generated according to each processing node respectively, as described above, the operation record of raw material apple
Can be with are as follows: 1. machining location titles-orchard A, operation-picking, when m- 2018/10/10;2. machining location title-warehouse A, behaviour
Work-screening, when m- 2018/10/11;3. machining location title-factory A, operation-roughing, when m- 2018/10/12;4. adding
Work place name-factory B, operation-finishing, when m- 2018/10/13;5. machining location title-supermarket A, operation-sale,
When m- 2018/10/14.
In the present embodiment, producers applied by the end Web or distributed application program by it is each processing node processing
It is entered into corresponding intelligent contract.Referring to FIG. 3, Fig. 3 is a kind of intelligent contract that first embodiment of the invention provides
With the relation schematic diagram of processing flow.
As an alternative embodiment, can also be screened to operation record before step S40, remove not
The operation record in typing intelligence contract is needed, to save memory space, improves efficiency of tracing to the source.
As an alternative embodiment, safety and confidence level in order to guarantee operation record addition, the present embodiment
It can be comprising steps of distributing address to each user for needing operation record described in typing respectively.Then " by every operation record
In the corresponding intelligent contract of typing " step includes: to process every when every operation record is user's typing of corresponding address
It records in the corresponding intelligent contract of typing.
Specifically, above-mentioned processing address of node can be in the present embodiment are as follows: 1. pickings (orchard [0x01]), 2. screenings
(warehouse A [0x02]), 3. roughing (factory A [0x03]), 4. finishing (factory B [0x04]), 5. sell (supermarket A
[0x05])。
As an alternative embodiment, the concrete operations code of the above-mentioned addition of processing node data to intelligent contract can
With as follows:
As an alternative embodiment, the present embodiment after step S60, can also include step S80: clothes of tracing to the source
The inquiry instruction for device response decentralization application program of being engaged in, the processing stream of the target product is inquired by the contract of tracing to the source
Journey, and return to query result.
In the present embodiment, referring to FIG. 3, Fig. 3 is a kind of product traceability data that first embodiment of the invention provides
Interaction schematic diagram.Producers' logging data and consumer carry out product traceability can be carried out by Web server, production line
Producers call record interface that data are written in the intelligent contract of block chain by Web server, and consumer calls inquiry
Excuse inquires data in the intelligent contract of block chain by Web server.
As an optional implementation manner, corresponding decentralization application program can be used in producers and consumer
Carry out above-mentioned data write-in or data query operation.
It should be understood that consumer when carrying out the data query operation of product traceability, may only need to the production
The corresponding processing flow of a certain raw material of product is traced to the source, and the inquiry instruction that consumer issues at this time is corresponding to specified raw material
Intelligent contract inquired, then: server of tracing to the source, which determines, specifies the corresponding intelligent contract of raw material in inquiry instruction, by tracing back
Source contract inquires processing flow of the specified raw material in corresponding intelligent contract.
On the other hand, consumer is when carrying out the data query operation of product traceability, it may be necessary to the institute of target product
There is the corresponding processing flow of raw material to be inquired, then: server of tracing to the source determines that inquiry instruction indicates the whole of inquiry target product
A processing flow inquires processing flow of the every kind of raw material in corresponding intelligent contract by the contract of tracing to the source item by item.
User can carry out the processing flow of the corresponding single raw material of every intelligence contract independent in above-described embodiment
Inquiry can also improve inquiry flexibility ratio to the whole inquiry of whole processing flows progress of all raw material in contract of tracing to the source,
In user, it is only necessary to avoid looking into the processing flow of all raw material when the processing flow of independent one raw material of cargo tracer
It askes, saves calculation resources, improve efficiency of tracing to the source.
Second embodiment
For the product traceability method for cooperating first embodiment of the invention to provide, second embodiment of the invention additionally provides one
Kind product traceability device 100.
Referring to FIG. 4, Fig. 4 is a kind of module diagram for product traceability device 100 that second embodiment of the invention provides.
Product traceability device 100 includes raw material determining module 110, intelligent contract establishes module 120 and contract of tracing to the source is built
Formwork erection block 130.
Raw material determining module 110 determines raw material and the raw material for the processing flow based on target product
Processing node.
Intelligent contract establishes module 120, establishes an intelligent contract respectively in block chain for corresponding to every kind of raw material,
Each processing node based on every kind of raw material generates operation record respectively.
Contract of tracing to the source establishes module 130, for by the corresponding intelligent contract of every operation record typing, by all intelligence
The combination of contract is as contract of tracing to the source.
As an alternative embodiment, product traceability device 100 provided in this embodiment can also include inquiry mould
Block, the enquiry module are used to respond the inquiry instruction of decentralization application program, inquire the target by the contract of tracing to the source
The processing flow of product, and return to query result.
As an alternative embodiment, the product traceability device 100 in the present embodiment can also include authentication module,
The authentication module includes allocation unit and verifying typing unit.
Allocation unit, for distributing address to each user for needing operation record described in typing respectively.
Verify typing unit, for every operation record be corresponding address user's typing when, by every operation record
In the corresponding intelligent contract of typing.
It is apparent to those skilled in the art that for convenience and simplicity of description, the device of foregoing description
Specific work process, no longer can excessively be repeated herein with reference to the corresponding process in preceding method.
In conclusion the embodiment of the invention provides a kind of product traceability method, apparatus and its storage medium, which traces back
The intelligent contract that source method is provided using block chain network upper layer develops contract of tracing to the source, and product traceability number is carried out on contract tracing to the source
According to storage and inquiry, make storing data have block chain decentralization storage and can not distort characteristic while, protect
It has demonstrate,proved in the trace to the source reliability and service stability of data on solution middle line, and has reduced tracing to the source based on block chain technology
Technical threshold and O&M cost.
In several embodiments provided herein, it should be understood that disclosed device and method can also pass through
Other modes are realized.The apparatus embodiments described above are merely exemplary, for example, flow chart and block diagram in attached drawing
Show the device of multiple embodiments according to the present invention, the architectural framework in the cards of method and computer program product,
Function and operation.In this regard, each box in flowchart or block diagram can represent the one of a module, section or code
Part, a part of the module, section or code, which includes that one or more is for implementing the specified logical function, to be held
Row instruction.It should also be noted that function marked in the box can also be to be different from some implementations as replacement
The sequence marked in attached drawing occurs.For example, two continuous boxes can actually be basically executed in parallel, they are sometimes
It can execute in the opposite order, this depends on the function involved.It is also noted that every in block diagram and or flow chart
The combination of box in a box and block diagram and or flow chart can use the dedicated base for executing defined function or movement
It realizes, or can realize using a combination of dedicated hardware and computer instructions in the system of hardware.
In addition, each functional module in each embodiment of the present invention can integrate one independent portion of formation together
Point, it is also possible to modules individualism, an independent part can also be integrated to form with two or more modules.
It, can be with if the function is realized and when sold or used as an independent product in the form of software function module
It is stored in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially in other words
The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter
Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a
People's computer, server or network equipment etc.) it performs all or part of the steps of the method described in the various embodiments of the present invention.
And storage medium above-mentioned includes: that USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), arbitrary access are deposited
The various media that can store program code such as reservoir (RAM, Random Access Memory), magnetic or disk.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field
For art personnel, the invention may be variously modified and varied.All within the spirits and principles of the present invention, made any to repair
Change, equivalent replacement, improvement etc., should all be included in the protection scope of the present invention.It should also be noted that similar label and letter exist
Similar terms are indicated in following attached drawing, therefore, once being defined in a certain Xiang Yi attached drawing, are then not required in subsequent attached drawing
It is further defined and explained.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any
Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain
Lid is within protection scope of the present invention.Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
It should be noted that, in this document, relational terms such as first and second and the like are used merely to a reality
Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation
In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to
Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those
Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment
Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that
There is also other identical elements in process, method, article or equipment including the element.
Claims (9)
1. a kind of product traceability method, which is characterized in that the described method includes:
The processing node of raw material and the raw material is determined based on the processing flow of target product;
Corresponding every kind of raw material establish an intelligent contract, each processing node based on every kind of raw material respectively in block chain
Operation record is generated respectively;
By in the corresponding intelligent contract of every operation record typing, using the combination of all intelligent contracts as contract of tracing to the source.
2. product traceability method according to claim 1, which is characterized in that described that every operation record typing is corresponding
Intelligent contract in, using the combination of all intelligent contracts as contract of tracing to the source after, the method also includes:
The inquiry instruction for responding decentralization application program, the processing stream of the target product is inquired by the contract of tracing to the source
Journey, and return to query result.
3. product traceability method according to claim 2, which is characterized in that described to be traced to the source described in contract inquiry by described
The processing flow of target product, comprising:
It determines and specifies the corresponding intelligent contract of raw material in the inquiry instruction, the specified original is inquired by the contract of tracing to the source
Processing flow of the material in corresponding intelligent contract;Or
It determines that the inquiry instruction indicates to inquire the entire processing flow of the target product, is looked into item by item by the contract of tracing to the source
Ask processing flow of the every kind of raw material in corresponding intelligent contract.
4. product traceability method according to claim 1, which is characterized in that described that every operation record typing is corresponding
Intelligent contract in front of, the method also includes:
The operation record is screened, the operation record not needed in typing intelligence contract is removed.
5. product traceability method according to claim 1, which is characterized in that by the corresponding intelligence of every operation record typing
Before in energy contract, the method also includes:
Address is distributed to each user for needing operation record described in typing respectively;
It is described will be in the corresponding intelligent contract of every operation record typing, comprising:
It, will be in the corresponding intelligent contract of every operation record typing when every operation record is user's typing of corresponding address.
6. a kind of product traceability device, which is characterized in that described device includes:
Raw material determining module determines the processing section of raw material and the raw material for the processing flow based on target product
Point;
Intelligent contract establishes module, an intelligent contract is established respectively in block chain for corresponding to every kind of raw material, based on every
Each processing node of kind raw material generates operation record respectively;
Contract of tracing to the source establishes module, for by the corresponding intelligent contract of every operation record typing, by all intelligent contracts
Combination is as contract of tracing to the source.
7. product traceability device according to claim 6, which is characterized in that described device further include:
Enquiry module inquires the target by the contract of tracing to the source for responding the inquiry instruction of decentralization application program
The processing flow of product, and return to query result.
8. product traceability device according to claim 6, which is characterized in that described device further includes authentication module, described
Authentication module includes:
Allocation unit, for distributing address to each user for needing operation record described in typing respectively;
Verify typing unit, for every operation record be corresponding address user's typing when, by every operation record typing
In corresponding intelligence contract.
9. a kind of computer-readable storage medium, which is characterized in that be stored with meter in the computer-readable storage medium
Calculation machine program instruction, when the computer program instructions are read and run by a processor, perform claim requires any one of 1-5
Step in the method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811400885.9A CN109493096A (en) | 2018-11-22 | 2018-11-22 | A kind of product traceability method, apparatus and its storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811400885.9A CN109493096A (en) | 2018-11-22 | 2018-11-22 | A kind of product traceability method, apparatus and its storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109493096A true CN109493096A (en) | 2019-03-19 |
Family
ID=65697430
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811400885.9A Pending CN109493096A (en) | 2018-11-22 | 2018-11-22 | A kind of product traceability method, apparatus and its storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109493096A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109977635A (en) * | 2019-04-03 | 2019-07-05 | 上海中商网络股份有限公司 | Data processing method of tracing to the source, device, equipment and medium based on block chain |
CN112184262A (en) * | 2020-09-28 | 2021-01-05 | 北京金山云网络技术有限公司 | Method and related device for aggregate tracing |
CN113886410A (en) * | 2021-10-24 | 2022-01-04 | 三和智控(北京)系统集成有限公司 | Universal product operation information recording method and device |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20170243214A1 (en) * | 2016-02-22 | 2017-08-24 | Bank Of America Corporation | System for tracking transfer of resources in a process data network |
CN107909372A (en) * | 2017-10-25 | 2018-04-13 | 复旦大学 | A kind of agricultural product source tracing method based on block chain technology |
WO2018111295A1 (en) * | 2016-12-16 | 2018-06-21 | Hitachi, Ltd. | Blockchain monitoring and management |
CN108694584A (en) * | 2018-07-10 | 2018-10-23 | 武汉星云智慧科技有限公司 | A kind of method and system that the grain security based on block chain is traced to the source with excitation |
CN108694594A (en) * | 2018-05-29 | 2018-10-23 | 阿里巴巴集团控股有限公司 | Commodity source tracing method and device, electronic equipment based on block chain |
CN108734482A (en) * | 2018-05-23 | 2018-11-02 | 浪潮软件集团有限公司 | Donkey-hide gelatin quality tracing method, donkey-hide gelatin quality tracing system, readable medium and storage controller |
CN108764695A (en) * | 2018-05-23 | 2018-11-06 | 江苏涞哲信息科技有限公司 | A kind of food security traceability system and method based on block chain technology |
-
2018
- 2018-11-22 CN CN201811400885.9A patent/CN109493096A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20170243214A1 (en) * | 2016-02-22 | 2017-08-24 | Bank Of America Corporation | System for tracking transfer of resources in a process data network |
WO2018111295A1 (en) * | 2016-12-16 | 2018-06-21 | Hitachi, Ltd. | Blockchain monitoring and management |
CN107909372A (en) * | 2017-10-25 | 2018-04-13 | 复旦大学 | A kind of agricultural product source tracing method based on block chain technology |
CN108734482A (en) * | 2018-05-23 | 2018-11-02 | 浪潮软件集团有限公司 | Donkey-hide gelatin quality tracing method, donkey-hide gelatin quality tracing system, readable medium and storage controller |
CN108764695A (en) * | 2018-05-23 | 2018-11-06 | 江苏涞哲信息科技有限公司 | A kind of food security traceability system and method based on block chain technology |
CN108694594A (en) * | 2018-05-29 | 2018-10-23 | 阿里巴巴集团控股有限公司 | Commodity source tracing method and device, electronic equipment based on block chain |
CN108694584A (en) * | 2018-07-10 | 2018-10-23 | 武汉星云智慧科技有限公司 | A kind of method and system that the grain security based on block chain is traced to the source with excitation |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109977635A (en) * | 2019-04-03 | 2019-07-05 | 上海中商网络股份有限公司 | Data processing method of tracing to the source, device, equipment and medium based on block chain |
CN109977635B (en) * | 2019-04-03 | 2024-02-27 | 上海中商网络股份有限公司 | Method, device, equipment and medium for processing traceable data based on block chain |
CN112184262A (en) * | 2020-09-28 | 2021-01-05 | 北京金山云网络技术有限公司 | Method and related device for aggregate tracing |
CN113886410A (en) * | 2021-10-24 | 2022-01-04 | 三和智控(北京)系统集成有限公司 | Universal product operation information recording method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105224606B (en) | A kind of processing method and processing device of user identifier | |
CN110287724B (en) | Data storage and verification method and device | |
CN109493096A (en) | A kind of product traceability method, apparatus and its storage medium | |
CN106779527A (en) | Commodity circulation information inquiry system and method based on block chain | |
CN106155769A (en) | A kind of workflow processing method, device and workflow engine | |
CN111680310B (en) | Authority control method and device, electronic equipment and storage medium | |
CN108280119A (en) | Page generation method, device and user terminal | |
CN101534306A (en) | Detecting method and a device for fishing website | |
CN109597822A (en) | A kind of storage of user data and querying method and user data processing unit | |
CN104574122A (en) | Two-dimensional code anti-counterfeit and random product packaging goods-fleeing preventing method | |
CN109460663A (en) | A kind of intelligence contract auditing method, device and its storage medium | |
CN105243535A (en) | Innovative and creative data processing method and terminal equipment | |
CN108363684A (en) | List creation method, device and server | |
CN110324344A (en) | The method and device of account information certification | |
CN109255587A (en) | A kind of cooperative processing method and device of operational data | |
CN108876314B (en) | Career professional ability traceable method and platform | |
Xia et al. | Ontology‐based model for Chinese calligraphy synthesis | |
CN110069937A (en) | Data source tracing method, system and device based on block chain | |
CN106504007A (en) | A kind of commodity counterfeit prevention management system based on NFC electronic tags | |
CN104156762A (en) | Cigarette fake preventing and source tracing method and system based on Internet of Things | |
CN105550183A (en) | Identifying method of identifying information in webpage and electronic device | |
CN109583775A (en) | A kind of Resource Management Model method for building up, device and its storage medium | |
CN102027466B (en) | System and method for providing a permanent data record | |
CN101763457A (en) | Digital expo information system environment and management and organization method thereof | |
CN107563879A (en) | Accurate ten thousand nets room localization method and system |
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 | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: Room 311501, Unit 1, Building 5, Courtyard 1, Futong East Street, Chaoyang District, Beijing Applicant after: Beijing Zhichuangyu Information Technology Co., Ltd. Address before: Room 311501, Unit 1, Building 5, Courtyard 1, Futong East Street, Chaoyang District, Beijing Applicant before: Beijing Knows Chuangyu Information Technology Co.,Ltd. |
|
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190319 |