CN108846010A - The method of product traceability, system, computer system and storage medium in network - Google Patents
The method of product traceability, system, computer system and storage medium in network Download PDFInfo
- Publication number
- CN108846010A CN108846010A CN201810407371.XA CN201810407371A CN108846010A CN 108846010 A CN108846010 A CN 108846010A CN 201810407371 A CN201810407371 A CN 201810407371A CN 108846010 A CN108846010 A CN 108846010A
- Authority
- CN
- China
- Prior art keywords
- product
- block
- alliance
- business network
- federation node
- 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.)
- Granted
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
- G06Q30/0185—Product, service or business identity fraud
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/907—Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/30—Computing systems specially adapted for manufacturing
Landscapes
- Engineering & Computer Science (AREA)
- Business, Economics & Management (AREA)
- Theoretical Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- Accounting & Taxation (AREA)
- Finance (AREA)
- Data Mining & Analysis (AREA)
- Entrepreneurship & Innovation (AREA)
- Library & Information Science (AREA)
- Development Economics (AREA)
- Economics (AREA)
- General Engineering & Computer Science (AREA)
- Marketing (AREA)
- Strategic Management (AREA)
- General Business, Economics & Management (AREA)
- Information Transfer Between Computers (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
Present invention discloses method, systems, computer system and computer readable storage medium storing program for executing that product traceability is realized in a kind of network.The method includes:It receives and has circulated in supply chain the requests of product data corresponding to different intermediate links to alliance's block chain business network inquiry product;In the federation node of alliance's block chain business network, according to the product identifiers query metadata in request;It is positioned by metadata to block;The reading for carrying out corresponding product data from the block of positioning obtains circulation record.Product traceability is able to realize by the business network of alliance's block chain framework in network, product in supply chain the circulation of each intermediate links relevant data be stored on alliance's block chain in each federation node, it is different from the mode of centralization, any alliance's interlink point all carries out the storage of product data, enhance security reliability, so that the product traceability carried out by means of network has high reliability, accurately and reliably circulation can be obtained to given product and is recorded.
Description
Technical field
The present invention relates to technical field of internet application, in particular to the method for product traceability is realized in a kind of network, is
System, computer system and computer readable storage medium storing program for executing.
Background technique
Based on the product traceability that Internet application technology is carried out, realized by the data management platform of centralization.Herein
On data management platform, the storage of product institute related data is carried out, and accordingly realizes the inquiry of institute's storing data, and then according to looking into
It askes obtained data and achievees the purpose that product traceability.
It is corresponding, in order to realize tracing to the source in the full industrial chain of product, by taking drug as an example, need manufacturing enterprise, medicine
The relevant data of drug institute are all uploaded to number by each intermediate links in the supply chains such as industry association, circulation enterprise, pharmacy, hospital
According to management platform.
This be will realize product traceability relevant data be uploaded to the storage of trusted party node and shared process.
But the data that the mode of this centralization is faced with centralized malicious attack, Single Point of Faliure is even stored maliciously are usurped
The problems such as changing.
It follows that the limitation that the existing realization of product traceability is low there is reliability, it would be highly desirable to improve product in network
The reliability traced to the source.
Summary of the invention
In order to solve the technical problem that reliability is low in the network implementations of product traceability in the related technology, the present invention provides
Method, the system, computer system and computer readable storage medium storing program for executing of product traceability are realized in a kind of network.
A kind of method that product traceability is realized in network, adapts to the circulation of product each intermediate links in supply chain, joins
Federation node in alliance's block chain business network corresponds respectively to the intermediate links in supply chain, and each federation node, which corresponds to, to be supplied
Answer an intermediate links on chain;The method includes:
It is right to alliance's block chain business network inquiry product different intermediate links institute that circulated in supply chain to receive
The request of product data is answered, the request carries product identifiers;
It is described according to the product identifiers query metadata in the federation node of alliance's block chain business network
Metadata is related to the block in product and the federation node;
The block into the federation node is positioned by inquiring obtained all metadata;
The reading that corresponding product data are carried out from the block of positioning, obtains the product in the supply chain
Circulation record.
The system that product traceability is realized in a kind of network, adapts to the circulation of product each intermediate links in supply chain, joins
Federation node in alliance's block chain business network corresponds respectively to the different intermediate links in supply chain, and each federation node is corresponding
In an intermediate links in supply chain;The system comprises:
Request receiving module has circulated in supply chain to alliance's block chain business network inquiry product for receiving
The request of product data corresponding to different intermediate links, the request carry product identifiers;
Enquiry module is looked into for the federation node in alliance's block chain business network according to the product identifiers
Metadata is ask, the metadata is related to the block in product and the federation node;
Locating module, all metadata for being obtained by inquiry position the block into the federation node;
Data read module obtains the production for carrying out the reading of corresponding product data from the block of positioning
Circulation record of the product in the supply chain.
In one exemplary embodiment, the enquiry module is also used to receive institute in alliance's block chain business network
It states in the federation node of request, according to the metadata of the product identifiers search index block, obtains and match the product mark
Know all metadata of symbol.
In one exemplary embodiment, the data read module includes:
Product data reading unit respectively circulates for reading the product respectively in supply chain from the block of positioning
The corresponding product data of link;
Circulation record obtaining unit, the product data for reading are formed together according to place block sequence interlock
Circulation record of the product in the supply chain.
In one exemplary embodiment, the system also includes:
Acquisition module, for alliance's section by corresponding to each intermediate links in supply chain in alliance's block chain business network
Point obtains product data to the product for being circulated to corresponding intermediate links;
Module is realized in storage, under the control of main federation node, by the product data of acquisition described
It is that the product to circulate in supply chain store corresponding to the product data of the intermediate links in alliance's block chain business network.
In one exemplary embodiment, the acquisition module includes:
Acquisition execution unit is right to institute in supply chain is in for the federation node in alliance's block chain business network
The product of intermediate links is answered to acquire product data, the product data are for describing product intermediate links locating for supply chain
On circulation;
Synchronization unit, for carrying out the product data to other federation nodes in alliance's block chain business network
Synchronization.
In one exemplary embodiment, the synchronization unit is also used to alliance's block chain business network Zhong Ge alliance
Node carries out point-to-point transmission of the acquired product data to other federation nodes, makes alliance's block chain business network
In each federation node synchronize the product data acquired, the federation node for synchronizing to obtain the product data includes saving from alliance
Point and/or main federation node.
In one exemplary embodiment, the storage realizes that module includes:
Block generation unit, for being described in synchronization by the main federation node in alliance's block chain business network
Product data issue block, the synchronous product data of the block filling;
Authentication unit is transmitted, for carrying out transmission and verifying of the block in alliance's block chain business network;
Block writing unit, for by the block being verified be written in alliance's block chain business network from
Federation node obtains each intermediate links product data in supply chain of product described in alliance's block chain business network and deposits
Storage;
Wherein, storage of the product data in alliance's block chain business network is to include corresponding product identification
The metadata of symbol is index.
In one exemplary embodiment, the storage realizes that module further includes:
Block authentication unit, for repeating testing for the block to the slave federation node for verifying the block failure
Card;
Malice recognition unit, for identifying the malice in alliance's block chain business network according to the failure of the verifying
Federation node, and the malice federation node is rejected from alliance's block chain business network.
In one exemplary embodiment, the system also includes:
Module is elected, for according to the calculating energy that each federation node currently has in alliance's block chain business network
Power, the federation node that election has highest computing capability is main federation node, other in alliance's block chain business network
Federation node is from federation node.
The technical solution that the embodiment of the present invention provides can include the following benefits:
The realization of product traceability adapts to the circulation of product multiple intermediate links in supply chain, alliance's block chain in network
Federation node in business network corresponds respectively to the different intermediate links in supply chain, will be first for giving tracing to the source for product
It first receives and has circulated in supply chain product data corresponding to different intermediate links to alliance's block chain business network inquiry product
Request, request carry product identifiers, in the federation node of alliance's block chain business network, inquired according to product identifiers
Metadata, metadata are relevant to the block in product and federation node, at this point, can by the metadata that inquiry obtains
To position the block into federation node, the reading of corresponding product data is carried out from the block of positioning, is obtained product and is being supplied
Circulation record on chain, so far, product traceability is just able to realize by the business network of alliance's block chain framework in network, product
The relevant data of each intermediate links circulation institute, i.e. product data are stored in each federation node on alliance's block chain in supply chain
In, it is different from the mode of this centralization of data management platform in existing realization, any in alliance's block chain business network
Alliance's interlink point all carries out the storage of product data, therefore enhances security reliability, so that the production carried out by means of network
Product, which are traced to the source, has high reliability, and accurately and reliably circulation can be obtained to given product and is recorded.
It should be understood that the above general description and the following detailed description are merely exemplary, this can not be limited
Invention.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows and meets implementation of the invention
Example, and in specification together principle for explaining the present invention.
Fig. 1 is the simplified schematic diagram of implementation environment according to the present invention shown according to an exemplary embodiment;
Fig. 2 is a kind of block diagram of device shown according to an exemplary embodiment;
Fig. 3 is the flow chart that the method for product traceability is realized in a kind of network shown according to an exemplary embodiment;
Fig. 4 is the flow chart that the method for product traceability is realized in a kind of network shown according to another exemplary embodiment;
Fig. 5 is according to the flow chart that step 370 is described shown in Fig. 3 corresponding embodiment;
Fig. 6 is the flow chart that the method for product traceability is realized in a kind of network shown according to another exemplary embodiment;
Fig. 7 is according to the flow chart that step 510 is described shown in Fig. 6 corresponding embodiment;
Fig. 8 is according to the flow chart that step 530 is described shown in Fig. 6 corresponding embodiment;
Fig. 9 is according to the flow chart that step 531 is described shown in Fig. 8 corresponding embodiment;
Figure 10 is the flow chart that step 530 is described shown according to another exemplary embodiment;
Figure 11 is the architecture diagram of alliance's block chain business network shown according to an exemplary embodiment;
Figure 12 is main federation node shown according to an exemplary embodiment and from realizing storage service between federation node
Timing diagram;
Figure 13 is the block diagram that the device of product traceability is realized in a kind of network shown in an exemplary embodiment;
Figure 14 is the block diagram that the system of product traceability is realized in a kind of network shown according to another exemplary embodiment;
Figure 15 is according to the block diagram that data read module is described shown in Figure 13 corresponding embodiment;
Figure 16 is the block diagram that the system of product traceability is realized in a kind of network shown according to another exemplary embodiment;
Figure 17 is according to the block diagram that acquisition module is described shown in Figure 16 corresponding embodiment;
Figure 18 is according to the block diagram being described for realizing module to storage shown in Figure 16 corresponding embodiment.
Specific embodiment
Here will the description is performed on the exemplary embodiment in detail, the example is illustrated in the accompanying drawings.Following description is related to
When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment
Described in embodiment do not represent all embodiments consistented with the present invention.On the contrary, they be only with it is such as appended
The example of device and method being described in detail in claims, some aspects of the invention are consistent.
Fig. 1 is the signal schematic drawing of implementation environment according to the present invention shown according to an exemplary embodiment.One
In a exemplary embodiment, the present invention passes through the product traceability that network is realized, the service of tracing to the source will be provided for various products, so that
Any product can obtain the overall process of this products in circulation by means of realization of the invention.
For example, the circulation of sale overall process of this product from the manufacturing to pharmacy or hospital, it can be by this hair
It is bright to inquire to obtain by the product traceability that network is realized.
The present invention passes through the product traceability that network is realized, is realized by alliance's block chain that several nodes are constituted, this
A little nodes are federation node.
Therefore, framework as shown in Figure 1, the product traced to the source are drug, realize alliance's block chain that drug is traced to the source
In business network, several federation nodes 110 are deployed, each federation node 110 corresponds respectively to each circulation ring in supply chain
Section, for example, manufacturing intermediate links in drug, corresponding federation node 110 is deployed in drug manufacturing enterprise.
Any one individual can inquire to obtain drug in supply chain by query interface provided by federation node 110
Drug data corresponding to upper each intermediate links, and then circulation record of the drug in supply chain is obtained, realize alliance's block
Drug in chain business network is traced to the source.
Fig. 2 is a kind of block diagram of device shown according to an exemplary embodiment.For example, device 200 can be shown in Fig. 1
Node server.
Referring to Fig. 2, which can generate bigger difference because configuration or performance are different, may include one or
More than one central processing unit (central processing units, CPU) 222 is (for example, one or more are handled
Device) and memory 232, one or more storage application programs 242 or data 244 storage medium 230 (such as one or
More than one mass memory unit).Wherein, memory 232 and storage medium 230 can be of short duration storage or persistent storage.It deposits
Storage may include one or more modules (diagram is not shown) in the program of storage medium 230, and each module may include
To the series of instructions operation in server.Further, central processing unit 222 can be set to logical with storage medium 230
Letter executes the series of instructions operation in storage medium 230 on the device 200.Device 200 can also include one or one with
Upper power supply 226, one or more wired or wireless network interfaces 250, one or more input/output interfaces 258,
And/or one or more operating systems 241, such as Windows ServerTM, Mac OS XTM, UnixTM,
LinuxTM, FreeBSDTM etc..It is taken described in following Fig. 3, Fig. 4, Fig. 5, Fig. 6, Fig. 7 and embodiment illustrated in fig. 8 by node
Step performed by business device can be based on the apparatus structure shown in Fig. 2.
Fig. 3 is the flow chart that the method for product traceability is realized in a kind of network shown according to an exemplary embodiment.It should
The method that product traceability is realized in network, adapts to the circulation of product multiple intermediate links in supply chain, exemplary at one
In embodiment, as shown in figure 3, at least including the following steps.
In the step 310, it receives and has circulated in supply chain different circulations to alliance's block chain business network inquiry product
The request of product data corresponding to link, request carry product identifiers.
Wherein, alliance's block chain business network, which refers to, is formed by business network by alliance's block chain, the difference disposed
Federation node corresponds respectively to the different intermediate links in supply chain, and each federation node corresponds to a circulation in supply chain
Link.That is, each federation node both corresponds to the different intermediate links that product in supply chain is circulated.For example, one
Alliance's node is uniquely corresponding to the intermediate links in supply chain, and each intermediate links in supply chain also have it is unique corresponding
Federation node guarantees that the products in circulation carried out between any intermediate links in supply chain can be by corresponding alliance with this
Node detects to obtain.
For example, intermediate links of the drug in supply chain include drug manufacture intermediate links, drug qualification certification circulation ring
The intermediate links etc. that section, logistics intermediate links, the intermediate links to circulate to supplier and supplier circulate to point-of-sale terminal.
Different types of product, the even product of identical type, but batch is different, can be there is in supply chain
The identical or slightly discrepant process of circulation, and then the intermediate links to be circulated are exactly node present in the process of circulation.
Alliance's block chain business network is that tracing to the source for product provides query interface, therefore, can pass through query interface
Calling and realize the relevant inquiry of product traceability institute.On the one hand alliance's block chain business network realizes product stream in supply chain
The storage of logical institute's related data carrys out circulation of the record product in supply chain with this, and it is opposite on the other hand then to carry out storage institute
The data query answered knows circulation of the product in supply chain with this.
As a result, alliance's block chain business network store and for inquiry product data, correspond in supply chain
A certain intermediate links, the product data corresponding to an intermediate links then describe circulation of the product in this intermediate links.
For example, the federation node of drug manufacture intermediate links where corresponding to drug manufacturing enterprise, corresponding medicine Lyu's data are drug
Creation data;Corresponding to the federation node of drug qualification certification intermediate links where medicine trade association, corresponding drug number
According to for drug qualification certification data;Corresponding to the federation node of logistics intermediate links where drug flow enterprise, corresponding medicine
Product data are the logistics data during drug flow.
Alliance's block chain business network will receive inquiry product product data corresponding to each intermediate links in supply chain
Request, this request reception be to performed by the federation node in alliance's block chain business network.
It should be appreciated that inquiring for the product traceability initiated to alliance's block chain business network, being can to institute's terminal
What the federation node being connected to executed, and then this federation node just receives initiated request, and request executes product thus
The inquiry of product data corresponding to each intermediate links in supply chain.
Product identifiers are carried in the request initiated, product identifiers uniquely denote a product, this product is
In a kind of product of corresponding title it is specific some, such as a certain box corresponding to a drug or a certain bottle drug.
In a step 330, in the federation node of alliance's block chain business network, according to product identifiers query metadata,
Metadata is related to the block in product and federation node.
Wherein, as previously described, the inquiry initiated alliance's block chain business network is to be directed to alliance's block chain industry
The federation node being engaged in network, that is to say, that with the initiation of inquiry institute's association requests, hair in alliance's block chain business network
The terminal for playing inquiry institute's association requests is connected to federation node, this federation node will execute product traceability for terminal, i.e., holds first
Row inquiry relevant to received request.
Product identifiers are carried in request, it, can be according in request by federation node for uniquely indicating product
Product identifiers be corresponding product execute inquiry.
It should be noted that alliance's block chain business network carries out product each intermediate links product data in supply chain
Storage, and the product data stored to be all with corresponding metadata be index.It is right that metadata will be used to describe institute
Storage location corresponding to the product data and product data answered.
And in alliance's block chain business network product data storage, be block by being created and constructed
What block chain was realized.That is, product data are stored on a block, identical product is corresponding in each intermediate links of supply chain
Product data be often distributed in the different blocks of block chain.And the metadata as index is then the product data on block
Index is provided, therefore, metadata is related to the block in product and federation node, is contained by metadata to inquire
The block of product data corresponding to product.
Inquiry in the metadata according to performed by product identifiers, the metadata one side and product identification inquired
Symbol matches, all metadata corresponding to the product that acquisition is traced to the source with request, on the other hand, also will be in the acquired first number of inquiry
The block of mapping is obtained under the action of, this block is related to the product that request is traced to the source, and stores production corresponding to the product
Product data.
On the federation node of alliance's block chain business network, inquired to obtain corresponding all first numbers by product identifiers
According to.That is, all metadata for corresponding to product identifiers are all checked out, the execution of this process is alliance's block
The execution of query process in chain business network.
Although disposing multiple federation nodes in alliance's block chain business network, between each federation node all into
The consistency storages of data is gone, thus, it is only required to which to be connected to a federation node can be real in alliance's block chain business network
Existing product traceability.
In one exemplary embodiment, step 330 includes:Alliance's section of request is received in alliance's block chain business network
In point, according to the metadata of product identifiers search index block, all metadata of matching product identifier are obtained.
Wherein, the metadata for indexing block contains product identifiers.For according to the entrained product identifiers of request
Metadata query is to search to obtain the process of the metadata comprising this Product labelling symbol.
In step 350, the block into federation node is positioned by inquiring obtained all metadata.
Wherein, as previously described, the metadata stored is the index of block, therefore the metadata that can be obtained by inquiry
Position the block into federation node.
For example, in one exemplary embodiment, the data that metadata is stored with block, i.e., be with key between block data
The form of value pair mutually maps, associated storage.Therefore, inquiry obtain all metadata corresponding to product identifiers it
Afterwards, i.e., the block into place federation node is positioned by each metadata that inquiry obtains.
It should be appreciated that the block that metadata is navigated in federation node, is to store the indicated product of product identifiers
Product data, and so on, all blocks navigated to by all metadata are to carry out depositing for all product data
Storage, the acquisition of all product data can be realized by the block positioned in the execution of subsequent step.
In step 370, the reading that corresponding product data are carried out from the block of positioning obtains product in supply chain
Circulation record.
Wherein, the reading that product data corresponding to product identifiers are carried out on the block that metadata positions, by
This will execute thus tracing to the source for indicated product for initiating product identifiers entrained by product data inquiry request,
Product can be then obtained by the product data read on block to record in the corresponding circulation of each intermediate links circulation of supply chain.
It should remark additionally herein, the block of the positioning of metadata obtained by inquiring, necessarily in federation node
On the block chain of building, therefore, on the one hand there is the link sequences between block, on the other hand also with the time on block
The presence of stamp and have the regular hour sequence.
Thus the sequential processes of read product data be will be realized, and then obtain circulation note of the product in supply chain
Record.
By exemplary embodiment as described above, product traceability by means of network realization so that facilitating product institute
The initiation of relevant inquiring, any consumer can inquire to obtain therefrom to be bought or taken product stream before this
Understanding and considerate condition.
And in exemplary embodiment as described above, in alliance's block chain business network and its disposed alliance's section
Under the action of point, it on the one hand ensure that the transparence of data, on the other hand be also able to ensure that the safety and reliability of data,
Data are stored in each federation node, realize the decentralization framework of data storage, are avoided centralized malice and are attacked
It hits, Single Point of Faliure and data are maliciously tampered etc. existing the problems of realizes.
In exemplary embodiment as described above, each federation node all corresponds to the intermediate links in supply chain, produces
In the circulation of product, no matter it, in which intermediate links, has corresponding federation node to detect this, and realizes corresponding produce
Product data store, and for the product traceability realized accordingly, for alliance's block chain business network, timeliness and accuracy can
It is guaranteed.
Fig. 4 is the flow chart that the method for product traceability is realized in a kind of network shown according to another exemplary embodiment.
In a further exemplary embodiment, before step 310, the method that product traceability is realized in the network is further comprising the steps of.
In step 410, the selection to product bar code scan is received, product bar code information is obtained.
Wherein, product bar code is the bar code information for uniquely indicating product, can be packaging where being present in product
On entity bar code, be also possible to via network bar code information obtained, will be according to specifically runing herein without limiting
Business scenario is flexibly set.Product bar code can be bar code, two dimensional code and RFID (Radio Frequency
Identification, radio frequency identification) label etc..
As terminal is directed to the scanning of execution selected by product bar code, institute can be obtained by the product bar code scanned
Corresponding product bar code information.Product bar code information is used to describe corresponding product situation in a manner of encoding of graphs.
In step 430, dissection process product bar code information obtains product identifiers.
Wherein, product identifiers are carry to product bar code scan product bar code information obtained, therefore can passed through
The dissection process carried out obtains.
In step 450, inquiry product is initiated in supply chain to alliance's block chain business network according to product identifiers
The request of product data corresponding to each intermediate links.
It wherein, can be by obtained product mark after obtaining product identifiers to product bar code information dissection process
Know the inquiry request that symbol initiates corresponding product product data corresponding to each intermediate links in supply chain.
By this exemplary embodiment, be just intended for alliance's block chain business network and initiated tracing to the source for product, for
For alliance's block chain business network initiates the terminal of request, itself connection between federation node will be realized therefrom, into
And the response for waiting federation node to represent place alliance's block chain business network and executing.
For consumers, the terminal initiation product bar code scan passed through entrained by itself can be to alliance's block chain
Business network request obtains the overall process that product circulates in supply chain, realizes product traceability anywhere or anytime.
Fig. 5 is according to the flow chart that step 370 is described shown in Fig. 3 corresponding embodiment.The step 370, such as Fig. 5
It is shown, it at least includes the following steps.
In step 371, the corresponding product number of product each intermediate links in supply chain is read respectively from the block of positioning
According to.
In step 373, the product data of reading form product in supply chain according to place block sequence interlock together
On circulation record.
Wherein, as previously described, product pair is store by inquiring the block that obtained all metadata position
Should in itself circulation in each intermediate links product data.These product data respectively describe product and are being circulated to every one stream
The case where logical link.
The product data of reading by according to place block in block chain corresponding to mutual sequence or corresponding
Timestamp forms circulation record of the product in supply chain.Signified timestamp is recorded in metadata and block.
By this exemplary embodiment, the product data for being stored in region can be constituted circulation of the product in supply chain
Record realizes tracing to the source for product in network with this.
Fig. 6 is the flow chart that the method for product traceability is realized in a kind of network shown according to another exemplary embodiment.
The method that product traceability is realized in the network, the federation node in alliance's block chain business network include main federation node and from connection
Alliance's node, in a further exemplary embodiment, as shown in fig. 6, further comprising the steps of.
In step 510, it is saved by corresponding to the alliance of each intermediate links in supply chain in alliance's block chain business network
Point obtains product data to the product for being circulated to corresponding intermediate links.
Wherein, as previously described, the federation node disposed in alliance's block chain business network is to correspond respectively to supply chain
Upper each intermediate links.Products in circulation so far intermediate links when, corresponding federation node will all detect, and acquire to this
Corresponding product data.
The product data acquisition that each federation node carries out in alliance's block chain business network, is for corresponding supply chain stream
What logical link executed, either which kind of federation node acquisition for all carrying out product data in corresponding intermediate links.
As a result, with the circulation of multi-product all in supply chain, each federation node in alliance's block chain business network is past
Toward all collecting a certain number of product data, that is to say, that be passed to corresponding intermediate links product include it is a variety of or
Person is same but has corresponded to a certain number of products, requires the acquisition that product data are carried out to this.
In step 530, under the control of main federation node, by the product data of acquisition in alliance's block chain service network
It is that the product to circulate in supply chain store corresponding to the product data of intermediate links in network.
Wherein, many federation nodes disposed in alliance's block chain business network include main federation node and save from alliance
Point two major classes.But main federation node and division from federation node and classification are not fixed and invariable, but according to pair
What the computing capability answered determined.
That is, the optimal federation node of computing capability is configured dynamically as main federation node, alliance's block chain industry
Other federation nodes in business network are then dynamically configured to from federation node.
Main federation node controls for initiating common recognition behavior and increases writing for product data in alliance's block chain business network newly
Enter and stores.And then realize that itself is increased newly in alliance's block chain business network under the control of main federation node from federation node
The write-in and storage of product data.
In this exemplary embodiment, by main federation node and from the cooperation between federation node, it is achieved area of alliance
Computing resource makes full use of in block chain business network, and then improves the processing of alliance's block chain business network on basis herein
Efficiency.
Fig. 7 is according to the flow chart that step 510 is described shown in Fig. 6 corresponding embodiment.The step 510, such as Fig. 7
It is shown, it at least includes the following steps.
In step 511, the federation node in alliance's block chain business network is in corresponding circulation ring in supply chain
The product of section acquires product data, and product data are for describing circulation of the product in the intermediate links locating for supply chain.
Wherein, each federation node in alliance's block chain business network, all product stream in corresponding intermediate links
It is logical to carry out detection and product data acquisition.Circulation of the product in supply chain, when it is circulated to an intermediate links, this stream
Federation node corresponding to logical link just detects the arrival of product in this intermediate links, and then acquires product data to this.
In step 513, the synchronization of product data is carried out to other federation nodes in alliance's block chain business network.
Wherein, the product data acquisition carried out, each federation node are all executed for corresponding intermediate links, because
This, all obtains different product data between each federation node, need to carry out in alliance's block chain business network federation node it
Between product data synchronization.
In one exemplary embodiment, step 513 includes:Each federation node carries out institute in alliance's block chain business network
Point-to-point transmission of the product data to other federation nodes is acquired, make in alliance's block chain business network each federation node synchronous
To the product data of acquisition, the federation node for synchronizing to obtain product data includes from federation node and/or main federation node.
The synchronization of product data between federation node, is realized by point-to-point transmission.And carry out product data acquisition
Federation node, include from federation node and/or main federation node, as long as corresponding intermediate links exist circulation product,
Just the acquisition and then performed synchronization of product data are carried out.
In one exemplary embodiment, the synchronization of product data, will also be to product data encryption and additional digital signature
Transmission is executed later.That is, federation node all executes the product data for being synchronized to other federation nodes required for itself
Encryption obtains the encrypted characters of product data, and executes signature using private key pair encryption character, obtains digital signature.
At this point, encrypted characters and digital signature are transmitted to other federation nodes again, to reinforce data safety, prevent from sending out
Raw data distorting and forging.
Other federation nodes will receive encrypted characters and digital signature, decrypt to this digital signature, and to decryption gained
The character and encrypted characters arrived carries out uniformity comparison, if the two is consistent, can be obtained and synchronizes to encrypted characters decryption
Product data if the two is not consistent illustrate that distorting and forging for data has occurred.It should be appreciated that decryption number label
Name is that the public key distributed by federation node is realized.
Fig. 8 is according to the flow chart that step 530 is described shown in Fig. 6 corresponding embodiment.In an exemplary implementation
In example, as shown in Figure 8, which at least includes the following steps.
It is that synchronous product data are issued by the main federation node in alliance's block chain business network in step 531
Block, the synchronous product data of this block filling.
In step 533, transmission and verifying of the block in alliance's block chain business network are carried out.
In step 535, the slave federation node in alliance's block chain business network is written into the block being verified, obtained
The storage of product each intermediate links product data in supply chain in alliance's block chain business network.
Wherein, storage of the product data in alliance's block chain business network is with first number comprising corresponding product identifiers
According to for index.
The storage of product data is realized by the creation and publication of block, that is to say, that product data are as area
Block number according to and realize storage.In alliance's block chain business network, there is extraordinary network connection etc. to close between federation node
Make relationship, and as the product data carried out are synchronous, the storage of write-in block is all required for each federation node suffers from
Product data.
At this point, main federation node will initiate the creation of block, the block created is used for the product number of required storage
According to the block body being assembled in block, so that product data are written into main federation node storage, and as it is saved in main alliance
Write-in storage in point, the write-in storage being achieved in other federation nodes.
After the block that main federation node is created is issued to alliance's block chain business network, alliance's block chain can be carried out
Transmission in business network, by the point-to-point transmission that is carried out by encrypted communication to from federation node.
After the block that federation node receives that main federation node transmits, confidence just is matched according to preset to block
Breath execute verifying, after being verified just can by received block be appended to the block chain stored from federation node itself
The write-in of block is realized in end.
Write-in in each reception verifying for all carrying out block from federation node and itself block chain, and so on,
The write-in storage of product data on alliance's block chain business network can be obtained.
The storage of product data in alliance's block chain business network, after the write-in of block on institute's memory block chain,
Also carry out the building of index.That is, the block to be written obtains metadata, the block of write-in block even is to be obtained
The metadata obtained is index.
Fig. 9 is according to the flow chart that step 531 is described shown in Fig. 8 corresponding embodiment.In an exemplary implementation
In example, step 531, as shown in figure 9, at least including the following steps.
In step 601, main federation node initiates to synchronize product by common recognition behavior in alliance's block chain business network
The corresponding block of data generates.
Wherein, it should be understood that alliance's block chain executes algorithm of knowing together by main federation node, i.e. initiation common recognition behavior, and
Reach generation and write-in that the common recognition between node carries out block corresponding to product data later.As a result, i.e. using common recognition machine
System generates new block, this block is for product data to be written.
In one exemplary embodiment, know together behavior initiation and block generate, be according to specified time interval institute
It executes, i.e. common recognition behavior is initiated in timing, and controls the generation for executing block.
In step 603, the block data of filling to generated block is obtained by synchronous product data.
Wherein, the product data increased newly in alliance's block chain business network, i.e., acquired by each federation node and synchronize institute
The data of acquisition will all be filled into block, to realize storage as block data.
Block includes block head and block body, and block head includes metadata, and block body is then used to carry out block data
Storage.Metadata includes the block-identified symbol and the corresponding product identification of block product data be written of unique mark block
Symbol, but either block-identified symbol or product identifiers are all that Hash encrypts cryptographic Hash obtained, to guarantee the peace of data
Quan Xing.
Certainly, block head is other than comprising metadata, further comprise version number, proof of work, target difficulty and
Random value carries out the election in alliance's block chain business network by the proof of work recorded, and then is able to dynamic configuration
Main federation node in alliance's block chain business network.
In step 605, to generated block fill area block number evidence, and according to the product data and block in block data
The metadata of building index block.
Wherein, in completing generated block after the filling of block data, the index of block is just constructed, i.e., with metadata
To index associated storage block counts evidence.It should be appreciated that signified block data includes product data be written, but it is not limited to
This, but include all data present in block.
Block data is to obtained after the Data Serialization in block, and each block has the block corresponding to it
Data, and realize and store with corresponding metadata building key-value pair, with for subsequent query carry out very high response is provided
Speed.
In another exemplary embodiment, after step 531, which further includes:
The block of publication is index with constructed metadata, carries out depositing for issued block on the block chain of main federation node
Storage.
Wherein, it either to main federation node, or for from federation node, requires to carry out issued block to exist
Storage on itself institute's block chain, thus side can be realized each federation node in alliance's block chain business network all store it is all
Data.
Figure 10 is the flow chart that step 530 is described shown according to another exemplary embodiment.The step 530,
As shown in Figure 10, further comprising the steps of after executing step 533.
In step 701, the verifying of block is repeated to the slave federation node of verifying block failure.
In step 703, according to the malice federation node in the failure identification alliance block chain business network of verifying, and will
Malice federation node is rejected from alliance's block chain business network.
Wherein, the verifying of block is carried out after reception obtains the new block that main federation node transmits from federation node.
If the verification passes, block can be realized in the write-in from federation node such as Fig. 8 corresponding embodiment.But it if verifies not
Pass through, then needs to execute the verifying of block again according to setting.
In the verifying executed again, if all authentication faileds, alliance's block chain business network can be therefrom identified
In malice federation node, and then in alliance's block chain business network reject malice federation node.
In another exemplary embodiment, before step 530, the method that product traceability is realized in the network further includes
Following steps.
According to the computing capability that each federation node currently has in alliance's block chain business network, election has highest meter
The federation node of calculation ability is main federation node, and other federation nodes in alliance's block chain business network are from federation node.
Wherein, in alliance's block chain business network, the federation node for having highest computing capability is just elected as main alliance
Node.In one exemplary embodiment, the computing capability height that federation node has, can pass through the workload in block
It proves to measure, i.e., the computing capability of federation node where the proof of work recorded in the block of block chain end just can indicate
Just.
Proof of work, which is indicated, calculates the calculating time that Hash institute block Hash is less than target value to the data in block head
Number.Calculation times indicated by proof of work are more, then federation node where illustrating has higher computing capability.
Therefore, in one exemplary embodiment, carried out by proof of work in alliance's block chain business network
Election obtains the main federation node in alliance's block chain business network, and corresponding configuration is from federation node.
By this exemplary embodiment, main federation node is realized in alliance's block chain business network and from federation node
Dynamic configuration, so that the execution calculated in alliance's block chain business network is all that the highest for adapting to currently have calculates
Ability, it ensure that the realization of alliance's block chain business network product tracking circulated to supply chain.
By exemplary embodiment as described above, alliance's block chain business network is realized for tracing to the source for product, and
The product to circulate in supply chain is quickly and accurately tracked based on this, tracks and records product thus in the detailed of each intermediate links
Data while ensure that the accuracy of data, also ensure the legitimacy and authenticity of data, avoid the hair of data tampering
It is raw.
Alliance's block chain business network that exemplary embodiment as described above is realized is realized based on alliance's block chain
, distributed storage is realized with this, and then guarantee the secure storage of data.
Furthermore, it is not necessary that dependent on global believable third party entity, using point-to-point logical between each federation node
Letter mode strengthens the scalability and reliability of system, so as to avoid the security risk of conventional center data storage.
By taking the drug to circulate in supply chain as an example, describe to realize the method that drug is traced to the source in above-mentioned network.This circulation
Drug not merely refers to a certain drug, and refers to a certain box drug of corresponding such drug.One box drug is in supply chain
The circulation of each intermediate links just realizes its tracing record in alliance's block chain business network based on method as described above,
And then the relevant drug data of storage institute is able in alliance's block chain business network, and then realize the inquiry of this box drug.
It should be appreciated that drug is traced to the source, it is the circulation chain for tracking drug, is registered by the circulation each time to drug
And trace each intermediate links in the supply chains such as manufacturing enterprise, circulation enterprise, pharmacy/hospital.
Based on this, by enterprises such as drug manufacturing enterprise, medicine company association, drug flow enterprise, pharmacy, hospitals in supply chain
Or the federation node in all corresponding deployment alliance's block chain business network of mechanism, to guarantee in alliance's block chain business network
Federation node can correspond to each intermediate links in supply chain.
For all multiple enterprises or mechanism being related in supply chain, drug manufacturing enterprise will be responsible for generating to each drug
Unique drug identifier, and exist by way of bar code, two dimensional code or RFID tag, corresponding federation node will
Carry out this drug related generating state acquisition, obtain the drug data generated in manufacture intermediate links.
Similar therewith, medicine trade association is responsible for acquiring drug certification qualification data;Drug flow enterprise is responsible for adopting
Collect the logistics data during drug flow;Pharmacy or hospital be responsible for acquire drug supplier's currency data, these data, i.e.,
By the drug data collected in each intermediate links.Each federation node acquires drug data relevant to own node
Afterwards, drug data is reported into other federation nodes;Each federation node is carried out workload to drug data after a period of time
It proves, campaigns for main federation node, the right for creating new data block is obtained, to obtain system award.Federation node work
After the completion of amount proves, main federation node has been elected, remaining node is from federation node, and main federation node generates new block,
Be transferred to it is each from federation node, it is each that block is verified from federation node, be verified and area of alliance be written into new block
Block catenary system finally guarantees the data consistency on each federation node.
Consumer scans drug unique identifier using mobile terminal APP or other modes, is connected to alliance's block linkwork
It is inquired on system, returns to drug in the detailed data of each intermediate links, thus just realize tracing to the source for drug.
Figure 11 is the architecture diagram of alliance's block chain business network shown according to an exemplary embodiment.As shown in figure 11
, the synchronization of data is carried out between federation node, and for the inquiry for being carried out, pass through APP joined together
(Application, using) or Web (World Wide Web, network) page, that is, it can be connected to a federation node, for example,
It is capable of providing the federation node of fancy grade service quality, and then is the inquiry corresponding to execution drug is traced to the source.For each alliance
Node, it is internal to realize details as Figure 11 shows the.Each federation node all include MQ (910), Collector (920),
Consortium (930), Database (940) and Query (950).
MQ (910) is message queue module.It is responsible for the unified communication information distributed between each federation node;
Collector (920) is data acquisition module.Drug data is adopted, drug is used into unique identifier, i.e. drug mark
Know symbol label, and handled using encrypted and digitally signed technology, is then sent out the drug data of acquisition by internet message
It is sent to other federation nodes;
Consortium (930) is alliance's chain module.Timing carries out proof of work to the drug data of acquisition, campaigns for out
Drug data is integrated into new data block by main federation node, will newly be generated from federation node by common recognition mechanism with other
Block and be written in alliance's block chain business network.Each newly generated block contains the encryption for being linked to a block
Cryptographic Hash, i.e., block-identified symbol corresponding to a upper block, block-identified symbol corresponding to a upper block is for tracking and verifying
Data block.
Database (940) is data memory module.Block corresponding to duty storage drug data, externally supports inquiry behaviour
Make.
Query (950) is data inquiry module.The drug is inquired by drug identifier in the letter of each federation node
Breath.
Be between each federation node in alliance's block chain business network it is reciprocity, carried out in each federation node number
According to acquisition, therefore federation node is each responsible for acquisition drug data relevant to node, and sends other for the data of acquisition
Federation node.In order to guarantee the drug data reliability of source and authenticity of federation node acquisition, number is used between federation node
Word certificate and signature technology, verifying federation node send drug data request and identity information, after being verified, just can receive
The drug data that federation node is sent.
And what each federation node carried out is also based on for the storage service in alliance's block chain business network, each
Under the mutual cooperation of alliance's node, the drug data of acquisition is stored in new block, and guarantees that data store in each federation node
Consistency.Main federation node carries out proof of work to new drug data by certain time as a result, generates new area
Block after reaching common understanding between each federation node, just realizes the write-in of block in alliance's block chain business network.
Figure 12 is main federation node shown according to an exemplary embodiment and from realizing storage service between federation node
Timing diagram.In the exemplary embodiment, as shown in figure 12, it is chosen in each federation node first with common recognition mechanism
Main federation node, other nodes be from federation node, i.e., such as step (1) shown in, herein meaning system, as entire alliance
Block chain business network.
After electing main federation node, for selected main federation node, it will receive each from federation node institute
The drug data of point-to-point transmission, these drug datas be all it is each freshly harvested from federation node, as shown in step (2).Extremely
This should be appreciated that each from federation node, will also synchronize to obtain freshly harvested drug data in alliance's block chain business network.
After main federation node receives new drug data, new block is generated using common recognition mechanism timing, to generated new
In block, new drug data is handled using signature algorithm, hash algorithm, and adds block cryptographic Hash, a time
Stamp, difficulty value field, are filled into together in new block, i.e., as step (3) and step (4) are described.
New block is transmitted to other from federation node using point-to-point transmission mechanism, it is each to be received newly from federation node
Block after, verified, after being verified, new block be written, i.e., such as step (5) using signature algorithm, hash algorithm
With shown in step (6).
Thus the technologies such as common recognition mechanism, point-to-point transmission, signature algorithm, hash algorithm are utilized, ensure that the one of data
Cause property, tamper-resistance properties, safety, ensure that each node data be to other nodes it is open and clear, enhance drug confession
Answer the trust between each federation node of catenary system.
Certainly, if in the execution of step (6), there is authentication failed of the part from federation node, i.e., from federation node
Do not reach common understanding with main federation node.Main federation node will analyze and check the common recognition of new block as a result, when necessary, leading at this time
Federation node retransmits new data block and carries out second of common recognition verifying from federation node to this part, if still had from alliance
Node verification failure, then take the principle that the minority is subordinate to the majority, the slave federation node more than half ratio is proved to be successful, then should
Block write-in.
Main federation node further analyzes the common recognition of the slave federation node of individual verification failure as a result, judging whether there is evil
The behavior of meaning is in time handled the slave federation node of malice.Be conducive to find malice alliance in this way, in time from alliance's block
It is rejected in chain business network, ensure that the stable operation of entire alliance's block chain service network security.
Following is apparatus of the present invention embodiment, can be used for executing and realizes the method that drug is traced to the source in the above-mentioned network of the present invention
Embodiment.For undisclosed details in apparatus of the present invention embodiment, the side for realizing that drug is traced to the source in inventive network is please referred to
Method embodiment.
Figure 13 is the block diagram that the device of product traceability is realized in a kind of network shown in an exemplary embodiment.In the network
The device for realizing product traceability, adapts to the circulation of product multiple intermediate links in supply chain, alliance's block chain business network
In different federation nodes correspond respectively to the different intermediate links in supply chain, each federation node corresponds in supply chain
One intermediate links;As shown in figure 13, which includes but is not limited to:Request receiving module 1110, enquiry module 1130, positioning
Module 1150 and data read module 1170.
Request receiving module 1110, for receive to alliance's block chain business network inquiry product in supply chain
The request for the product data corresponding to different intermediate links that circulate, the request carry product identifiers;
Enquiry module 1130, for the federation node in alliance's block chain business network, according to the product identification
Query metadata is accorded with, the metadata is related to the block in product and the federation node;
Locating module 1150, all metadata for being obtained by inquiry position the block into the federation node;
Data read module 1170 obtains institute for carrying out the reading of corresponding product data from the block of positioning
State circulation record of the product in the supply chain.
Figure 14 is the block diagram that the system of product traceability is realized in a kind of network shown according to another exemplary embodiment.?
In another exemplary embodiment, as shown in figure 14, the system that product traceability is realized in the network further includes selection receiving module
1210, parsing module 1230 and request initiation module 1250.
Receiving module 1210 is selected, for receiving the selection to product bar code barcode scanning, obtains product bar code information.
Parsing module 1230 obtains product identifiers for product bar code information described in dissection process.
Initiation module 1250 is requested, for looking into according to the product identifiers to alliance's block chain business network initiation
Ask the request of product product data corresponding to each intermediate links in supply chain.
In another exemplary embodiment, enquiry module 1130 is also used to receive in alliance's block chain business network
In the federation node of the request, according to the metadata of the product identifiers search index block, obtains and match the product
All metadata of identifier.
Figure 15 is according to the block diagram that data read module is described shown in Figure 13 corresponding embodiment.The reading data
Module 1170, as shown in figure 15, include at least product data reading unit 1171 and circulation record obtaining unit 1173.
Product data reading unit 1171, it is each in supply chain for reading the product respectively from the block of positioning
The corresponding product data of intermediate links.
Circulation record obtaining unit 1173, the product data for reading according to place block sequence interlock together
Form circulation record of the product in the supply chain.
Figure 16 is the block diagram that the system of product traceability is realized in a kind of network shown according to another exemplary embodiment.?
In another exemplary embodiment, as shown in figure 16, the system that product traceability is realized in the network further includes 1310 He of acquisition module
Module 1330 is realized in storage.
Acquisition module 1310, for the connection by corresponding to each intermediate links in supply chain in alliance's block chain business network
Alliance's node obtains product data to the product for being circulated to corresponding intermediate links;
Module 1330 is realized in storage, under the control of main federation node, by the product data of acquisition in institute
State in alliance's block chain business network is that the product to circulate in supply chain deposit corresponding to the product data of the intermediate links
Storage.
Figure 17 is according to the block diagram that acquisition module is described shown in Figure 16 corresponding embodiment.The acquisition module
1310, as shown in figure 17, include at least acquisition execution unit 1311 and synchronization unit 1313.
Acquisition execution unit 1311, for the federation node in alliance's block chain business network in supply chain
The product of corresponding intermediate links acquires product data, and the product data are for describing product circulation locating for supply chain
Circulation in link;
Synchronization unit 1313, for carrying out the product to other federation nodes in alliance's block chain business network
The synchronization of data.
In another exemplary embodiment, synchronization unit 1313 is also used to block chain business network Zhong Ge alliance of alliance section
Point carries out point-to-point transmission of the acquired product data to other federation nodes, makes in alliance's block chain business network
Each federation node synchronizes the product data acquired, and the federation node for synchronizing to obtain the product data includes from federation node
And/or main federation node.
Figure 18 is according to the block diagram being described for realizing module to storage shown in Figure 16 corresponding embodiment.In an example
Property embodiment in, as shown in figure 18, storage realizes that module 1330 includes at least:Block authentication unit 1331 and malice identify single
Member 1333.
Block authentication unit 1331, for repeating the block to the slave federation node for verifying the block failure
Verifying;
Malice recognition unit 1333, for being identified in alliance's block chain business network according to the failure of the verifying
Malice federation node, and the malice federation node is rejected from alliance's block chain business network.
In another exemplary embodiment, the system that product traceability is realized in network as described above further includes election mould
Block.The election module is used for according to the computing capability that each federation node currently has in alliance's block chain business network,
The federation node that election has highest computing capability is main federation node, other alliances in alliance's block chain business network
Node is from federation node.
Optionally, the present invention also provides a kind of computer system, which can be used for aforementioned shown implementation ring
In border, execute as above it is any shown in method all or part of step.The computer system adapts to product in supply chain
The circulation of each intermediate links is gone up, the federation node in alliance's block chain business network corresponds respectively to the circulation ring in supply chain
Section, the federation node include:
Processor;
Memory for storage processor executable instruction;
The computer-readable instruction realizes preceding method when being executed by the processor.
The concrete mode that the processor of device in the embodiment executes operation is held in the embodiment of preceding method
Detailed description is gone, no detailed explanation will be given here.
In the exemplary embodiment, a kind of storage medium is additionally provided, which is computer readable storage medium,
It such as can be the provisional and non-transitorycomputer readable storage medium for including instruction.The storage medium is for example including instruction
Memory, above-metioned instruction can by the processor of device execute to complete the above method.
It should be understood that the present invention is not limited to the precise structure already described above and shown in the accompanying drawings, and
And various modifications and change can executed without departing from the scope.The scope of the present invention is limited only by the attached claims.
Claims (15)
1. realizing the method for product traceability in a kind of network, which is characterized in that adapt to product multiple circulation rings in supply chain
The circulation of section, the different federation nodes in alliance's block chain business network correspond respectively to the different intermediate links in supply chain,
Each federation node corresponds to an intermediate links in supply chain;The method includes:
It receives and has circulated in supply chain production corresponding to different intermediate links to alliance's block chain business network inquiry product
The request of product data, the request carry product identifiers;
In the federation node of alliance's block chain business network, according to the product identifiers query metadata, the member number
According to related to the block in product and the federation node;
The block into the federation node is positioned by inquiring obtained all metadata;
The reading that corresponding product data are carried out from the block of positioning, obtains circulation of the product in the supply chain
Record.
2. the method according to claim 1, wherein described receive inquires alliance's block chain business network
Product circulated in supply chain product data corresponding to different intermediate links request before, the method also includes:
The selection to product bar code barcode scanning is received, product bar code information is obtained;
Product bar code information described in dissection process obtains product identifiers;
Inquiry product is initiated to alliance's block chain business network according to the product identifiers to have circulated not in supply chain
With the request of product data corresponding to intermediate links.
3. method according to the claims, which is characterized in that the alliance in alliance's block chain business network saves
It puts according to the product identifiers query metadata, including:
In the federation node that alliance's block chain business network receives the request, rope is inquired according to the product identifiers
Draw the metadata of block, obtains all metadata for matching the product identifiers.
4. the method according to claim 1, wherein described carry out corresponding product number from the block of positioning
According to reading, obtain the product in the supply chain circulation record, including:
The product corresponding product data of difference intermediate links in supply chain are read respectively from the block of positioning;
The product data read form the product in the supply chain according to place block sequence interlock together
Circulation record.
5. the method according to claim 1, wherein the federation node packet in alliance's block chain business network
Include main federation node and from federation node, the method also includes:
By corresponding to the federation node of different intermediate links in supply chain in alliance's block chain business network, convection current go to pair
The product of intermediate links is answered to obtain product data;
It is confession in alliance's block chain business network by the product data of acquisition under the control of main federation node
The product to circulate on chain is answered store corresponding to the product data of the intermediate links.
6. according to the method described in claim 5, it is characterized in that, described supplied by corresponding in alliance's block chain business network
The federation node for answering different intermediate links on chain obtains product data to the product for being circulated to corresponding intermediate links, including:
Federation node in alliance's block chain business network acquires the product in corresponding intermediate links in supply chain
Product data, the product data are for describing circulation of the product in the intermediate links locating for supply chain;
The synchronization of the product data is carried out to other federation nodes in alliance's block chain business network.
7. according to the method described in claim 6, it is characterized in that, it is described in alliance's block chain business network to other
Federation node carries out the synchronization of the product data, including:
Each federation node carries out acquired product data to other federation nodes in alliance's block chain business network
Point-to-point transmission makes in alliance's block chain business network each federation node synchronize the product data acquired, synchronous
Federation node to the product data includes from federation node and/or main federation node.
8. according to the method described in claim 5, passing through acquisition it is characterized in that, described under the control of main federation node
Product of the product data in alliance's block chain business network to circulate in supply chain carries out corresponding to the circulation
The product data of link store, including:
It is that the synchronous product data issue block by the main federation node in alliance's block chain business network, it is described
The synchronous product data of block filling;
Carry out transmission and verifying of the block in alliance's block chain business network;
The slave federation node in alliance's block chain business network is written into the block being verified, obtains the alliance
The storage of each intermediate links product data in supply chain of product described in block chain business network;
Wherein, storage of the product data in alliance's block chain business network is to include corresponding product identifiers
Metadata is index.
9. according to the method described in claim 8, it is characterized in that, the master by alliance's block chain business network
Federation node is that the synchronous product data issue block, and the block fills the synchronous product data, including:
The main federation node described in alliance's block chain business network initiates synchronized product data pair by common recognition behavior
The block answered generates;
The block data of filling to generated block is obtained by the synchronous product data;
The block data is filled to generated block, and according to the product data and block building in the area data
Index the metadata of the block.
10. according to the method described in claim 8, it is characterized in that, described carry out the block in alliance's block chain industry
It is engaged in after transmission and verifying in network,
It is described under the control of main federation node, through the product data of acquisition in alliance's block chain business network
Product to circulate in supply chain store corresponding to the product data of the intermediate links, further includes:
The verifying of the block is repeated to the slave federation node for verifying the block failure;
The malice federation node in alliance's block chain business network is identified according to the failure of the verifying, and by the malice
Federation node is rejected from alliance's block chain business network.
11. according to the method described in claim 5, it is characterized in that, described main in alliance's block chain business network
Under the control of alliance's node to before issuing and be written the block for filling the product data from federation node, the method is also wrapped
It includes:
According to the computing capability that each federation node currently has in alliance's block chain business network, election has highest meter
The federation node of calculation ability is main federation node, and other federation nodes in alliance's block chain business network are to save from alliance
Point.
12. realizing the system of product traceability in a kind of network, which is characterized in that adapt to product multiple circulation rings in supply chain
The circulation of section, the different federation nodes in alliance's block chain business network correspond respectively to the different intermediate links in supply chain,
Each federation node corresponds to an intermediate links in supply chain;The system comprises:
Request receiving module has circulated difference to alliance's block chain business network inquiry product for receiving in supply chain
The request of product data corresponding to intermediate links, the request carry product identifiers;
Enquiry module inquires member according to the product identifiers for the federation node in alliance's block chain business network
Data, the metadata are related to the block in product and the federation node;
Locating module, all metadata for being obtained by inquiry position the block into the federation node;
Data read module obtains the product and exists for carrying out the reading of corresponding product data from the block of positioning
Circulation record in the supply chain.
13. system according to claim 12, which is characterized in that the system also includes:
Receiving module is selected, for receiving the selection to product bar code barcode scanning, obtains product bar code information;
Parsing module obtains product identifiers for product bar code information described in dissection process;
Initiation module is requested, is existed for initiating inquiry product to alliance's block chain business network according to the product identifiers
The request for the product data corresponding to different intermediate links that circulated in supply chain.
14. a kind of computer system, which is characterized in that the computer system includes adapting to product respectively to circulate in supply chain
The circulation of link, the federation node in alliance's block chain business network corresponds respectively to the intermediate links in supply chain, described
Alliance's node includes:
Processor;And
Memory is stored with computer-readable instruction on the memory, and the computer-readable instruction is held by the processor
Method according to any one of claim 1 to 11 is realized when row.
15. a kind of computer readable storage medium, is stored thereon with computer program, the computer program is executed by processor
Shi Shixian method according to any one of claim 1 to 11.
Priority Applications (3)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810407371.XA CN108846010B (en) | 2018-04-28 | 2018-04-28 | Method, system, computer system and storage medium for tracing product source in network |
CN201910686420.2A CN110472116B (en) | 2018-04-28 | 2018-04-28 | Alliance block chain service network, alliance node thereof and product data storage method |
CN201910680938.5A CN110489485B (en) | 2018-04-28 | 2018-04-28 | Federated blockchain network, method and storage medium for storing product data therein |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810407371.XA CN108846010B (en) | 2018-04-28 | 2018-04-28 | Method, system, computer system and storage medium for tracing product source in network |
Related Child Applications (2)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910680938.5A Division CN110489485B (en) | 2018-04-28 | 2018-04-28 | Federated blockchain network, method and storage medium for storing product data therein |
CN201910686420.2A Division CN110472116B (en) | 2018-04-28 | 2018-04-28 | Alliance block chain service network, alliance node thereof and product data storage method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108846010A true CN108846010A (en) | 2018-11-20 |
CN108846010B CN108846010B (en) | 2021-12-14 |
Family
ID=64212525
Family Applications (3)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910686420.2A Active CN110472116B (en) | 2018-04-28 | 2018-04-28 | Alliance block chain service network, alliance node thereof and product data storage method |
CN201810407371.XA Active CN108846010B (en) | 2018-04-28 | 2018-04-28 | Method, system, computer system and storage medium for tracing product source in network |
CN201910680938.5A Active CN110489485B (en) | 2018-04-28 | 2018-04-28 | Federated blockchain network, method and storage medium for storing product data therein |
Family Applications Before (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910686420.2A Active CN110472116B (en) | 2018-04-28 | 2018-04-28 | Alliance block chain service network, alliance node thereof and product data storage method |
Family Applications After (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910680938.5A Active CN110489485B (en) | 2018-04-28 | 2018-04-28 | Federated blockchain network, method and storage medium for storing product data therein |
Country Status (1)
Country | Link |
---|---|
CN (3) | CN110472116B (en) |
Cited By (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109409784A (en) * | 2018-11-28 | 2019-03-01 | 杭州云象网络技术有限公司 | A kind of supervision of petroleum oil mass and method for quality control based on block chain |
CN109547214A (en) * | 2018-12-26 | 2019-03-29 | 成都健数科技有限公司 | A kind of drug information acquisition method for tracing |
CN109727043A (en) * | 2018-12-29 | 2019-05-07 | 厦门物之联智能科技有限公司 | A kind of product traceability method, system and storage medium based on block chain |
CN109995536A (en) * | 2019-03-15 | 2019-07-09 | 广州杰赛科技股份有限公司 | A kind of block chain common recognition method, apparatus and readable storage medium storing program for executing |
CN110162527A (en) * | 2019-04-29 | 2019-08-23 | 阿里巴巴集团控股有限公司 | A kind of business source tracing method, device and electronic equipment based on block chain |
CN110472427A (en) * | 2019-08-02 | 2019-11-19 | 重庆康格瑞物联网技术有限公司 | A kind of whole with no paper agriculture site inspection or enforcement approach and system |
CN110602455A (en) * | 2019-09-10 | 2019-12-20 | 腾讯科技(深圳)有限公司 | Video storage system, video processing method, device, equipment and storage medium |
CN110766417A (en) * | 2019-09-19 | 2020-02-07 | 北京三快在线科技有限公司 | Information query method and device, electronic equipment and computer readable medium |
WO2020103105A1 (en) * | 2018-11-22 | 2020-05-28 | 北京比特大陆科技有限公司 | Data processing apparatus |
CN111222935A (en) * | 2018-11-26 | 2020-06-02 | 北京沃东天骏信息技术有限公司 | Transportation means sharing method based on block chain network, terminal and storage medium |
CN111694898A (en) * | 2020-06-12 | 2020-09-22 | 中国银行股份有限公司 | Block chain transaction pool model and uplink transaction data interaction system |
CN112749181A (en) * | 2021-01-20 | 2021-05-04 | 丁同梅 | Big data processing method aiming at authenticity verification and credible traceability and cloud server |
CN112788145A (en) * | 2021-01-21 | 2021-05-11 | 中国科学院信息工程研究所 | Cross-domain functional security anomaly detection tracing method based on non-embedded probe |
US11055792B2 (en) | 2019-04-29 | 2021-07-06 | Advanced New Technologies Co., Ltd. | Blockchain-based service source tracing method, apparatus, and electronic device |
Families Citing this family (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111064776B (en) * | 2019-12-05 | 2023-02-03 | 全链通有限公司 | Block generation method in block chain, accounting node and storage medium |
CN111126869B (en) * | 2019-12-30 | 2024-03-15 | 航天信息股份有限公司 | Workload accounting method and system for grain circulation process |
CN111339089B (en) * | 2020-02-21 | 2023-09-22 | 联动优势科技有限公司 | Data storage and acquisition method and device applied to blockchain |
CN113496126A (en) * | 2020-03-20 | 2021-10-12 | 陕西尚品信息科技有限公司 | RFID reader-writer, recording method, mobile terminal device and configuration method |
CN111858768B (en) * | 2020-07-27 | 2023-06-16 | 苏州区盟链数字科技有限公司 | Device for optimizing block chain trusted node and consensus algorithm |
CN112395647B (en) * | 2020-11-02 | 2023-06-13 | 迅鳐成都科技有限公司 | Block chain light node data acquisition system |
CN112417469B (en) * | 2020-11-02 | 2023-06-16 | 迅鳐成都科技有限公司 | Block chain light node data acquisition method and device based on hardware encryption |
CN112434341B (en) * | 2020-11-02 | 2023-07-11 | 迅鳐成都科技有限公司 | Business tampering-resistant blockchain light node data acquisition method and device |
CN112733198B (en) * | 2020-11-02 | 2023-06-13 | 迅鳐成都科技有限公司 | Block chain light node data acquisition method and device |
CN113011975A (en) * | 2021-02-22 | 2021-06-22 | 西安超越申泰信息科技有限公司 | Block chain anti-counterfeiting transaction method supporting national cryptographic algorithm and computer equipment |
CN113190618A (en) * | 2021-04-28 | 2021-07-30 | 宁夏中小在线资信服务有限公司 | Enterprise government affair service data storage method based on block chain technology |
CN113935647B (en) * | 2021-10-25 | 2024-05-17 | 浙江万里学院 | Coordinated transport method for valuable cargo supply chains based on blockchain technology |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106789095A (en) * | 2017-03-30 | 2017-05-31 | 腾讯科技(深圳)有限公司 | Distributed system and message treatment method |
US20170262862A1 (en) * | 2015-12-21 | 2017-09-14 | Mohamed Alaa Aljawhari | Method and apparatus for managing and providing provenance of product using blockchain |
CN107392625A (en) * | 2017-06-29 | 2017-11-24 | 雷霞 | Distributed medicine source tracing method and device based on block chain |
CN107657553A (en) * | 2017-09-21 | 2018-02-02 | 浙江惠码科技有限公司 | A kind of electronic contract generation method based on alliance's chain, information anti-fake method of tracing to the source |
CN107657463A (en) * | 2017-09-29 | 2018-02-02 | 北京京东尚科信息技术有限公司 | Article is traced to the source platform and method and device |
CN107733855A (en) * | 2017-08-31 | 2018-02-23 | 中国科学院信息工程研究所 | A kind of block catenary system and application process that can support publicly-owned chain, alliance's chain and privately owned chain simultaneously |
CN107807991A (en) * | 2017-11-07 | 2018-03-16 | 泰康保险集团股份有限公司 | For handling the method and device of block chain data |
CN107870983A (en) * | 2017-09-30 | 2018-04-03 | 深圳市易成自动驾驶技术有限公司 | Vehicle peccancy approaches to IM, block chain and storage medium based on block chain |
CN107909372A (en) * | 2017-10-25 | 2018-04-13 | 复旦大学 | A kind of agricultural product source tracing method based on block chain technology |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP3455802A1 (en) * | 2016-05-13 | 2019-03-20 | De La Rue International Limited | Methods and systems for processing assets |
CN107018125B (en) * | 2017-02-17 | 2019-08-09 | 阿里巴巴集团控股有限公司 | A kind of block catenary system, date storage method and device |
CN107103480A (en) * | 2017-05-18 | 2017-08-29 | 电子科技大学 | Supply chain management method based on block chain with sovereign right |
CN107341676A (en) * | 2017-07-17 | 2017-11-10 | 深圳天净喔溯源科技有限公司 | False proof mark and the method for tracing to the source |
CN107547529A (en) * | 2017-08-21 | 2018-01-05 | 集合智造(北京)餐饮管理有限公司 | A kind of method, system that shared retail is realized based on block chain |
CN107819749A (en) * | 2017-10-26 | 2018-03-20 | 平安科技(深圳)有限公司 | Block catenary system and transaction data processing method based on ether mill |
-
2018
- 2018-04-28 CN CN201910686420.2A patent/CN110472116B/en active Active
- 2018-04-28 CN CN201810407371.XA patent/CN108846010B/en active Active
- 2018-04-28 CN CN201910680938.5A patent/CN110489485B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20170262862A1 (en) * | 2015-12-21 | 2017-09-14 | Mohamed Alaa Aljawhari | Method and apparatus for managing and providing provenance of product using blockchain |
CN106789095A (en) * | 2017-03-30 | 2017-05-31 | 腾讯科技(深圳)有限公司 | Distributed system and message treatment method |
CN107392625A (en) * | 2017-06-29 | 2017-11-24 | 雷霞 | Distributed medicine source tracing method and device based on block chain |
CN107733855A (en) * | 2017-08-31 | 2018-02-23 | 中国科学院信息工程研究所 | A kind of block catenary system and application process that can support publicly-owned chain, alliance's chain and privately owned chain simultaneously |
CN107657553A (en) * | 2017-09-21 | 2018-02-02 | 浙江惠码科技有限公司 | A kind of electronic contract generation method based on alliance's chain, information anti-fake method of tracing to the source |
CN107657463A (en) * | 2017-09-29 | 2018-02-02 | 北京京东尚科信息技术有限公司 | Article is traced to the source platform and method and device |
CN107870983A (en) * | 2017-09-30 | 2018-04-03 | 深圳市易成自动驾驶技术有限公司 | Vehicle peccancy approaches to IM, block chain and storage medium based on block chain |
CN107909372A (en) * | 2017-10-25 | 2018-04-13 | 复旦大学 | A kind of agricultural product source tracing method based on block chain technology |
CN107807991A (en) * | 2017-11-07 | 2018-03-16 | 泰康保险集团股份有限公司 | For handling the method and device of block chain data |
Non-Patent Citations (1)
Title |
---|
赵紫剑: "《互联网金融》", 31 August 2016, 重庆大学出版社 * |
Cited By (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2020103105A1 (en) * | 2018-11-22 | 2020-05-28 | 北京比特大陆科技有限公司 | Data processing apparatus |
CN111222935A (en) * | 2018-11-26 | 2020-06-02 | 北京沃东天骏信息技术有限公司 | Transportation means sharing method based on block chain network, terminal and storage medium |
CN109409784A (en) * | 2018-11-28 | 2019-03-01 | 杭州云象网络技术有限公司 | A kind of supervision of petroleum oil mass and method for quality control based on block chain |
CN109547214A (en) * | 2018-12-26 | 2019-03-29 | 成都健数科技有限公司 | A kind of drug information acquisition method for tracing |
CN109727043A (en) * | 2018-12-29 | 2019-05-07 | 厦门物之联智能科技有限公司 | A kind of product traceability method, system and storage medium based on block chain |
CN109995536A (en) * | 2019-03-15 | 2019-07-09 | 广州杰赛科技股份有限公司 | A kind of block chain common recognition method, apparatus and readable storage medium storing program for executing |
CN110162527A (en) * | 2019-04-29 | 2019-08-23 | 阿里巴巴集团控股有限公司 | A kind of business source tracing method, device and electronic equipment based on block chain |
CN110162527B (en) * | 2019-04-29 | 2020-08-25 | 阿里巴巴集团控股有限公司 | Service tracing method and device based on block chain and electronic equipment |
US11055792B2 (en) | 2019-04-29 | 2021-07-06 | Advanced New Technologies Co., Ltd. | Blockchain-based service source tracing method, apparatus, and electronic device |
CN110472427A (en) * | 2019-08-02 | 2019-11-19 | 重庆康格瑞物联网技术有限公司 | A kind of whole with no paper agriculture site inspection or enforcement approach and system |
CN110602455A (en) * | 2019-09-10 | 2019-12-20 | 腾讯科技(深圳)有限公司 | Video storage system, video processing method, device, equipment and storage medium |
CN110602455B (en) * | 2019-09-10 | 2021-06-18 | 腾讯科技(深圳)有限公司 | Video storage system, video processing method, device, equipment and storage medium |
CN110766417A (en) * | 2019-09-19 | 2020-02-07 | 北京三快在线科技有限公司 | Information query method and device, electronic equipment and computer readable medium |
CN111694898A (en) * | 2020-06-12 | 2020-09-22 | 中国银行股份有限公司 | Block chain transaction pool model and uplink transaction data interaction system |
CN112749181A (en) * | 2021-01-20 | 2021-05-04 | 丁同梅 | Big data processing method aiming at authenticity verification and credible traceability and cloud server |
CN112788145A (en) * | 2021-01-21 | 2021-05-11 | 中国科学院信息工程研究所 | Cross-domain functional security anomaly detection tracing method based on non-embedded probe |
Also Published As
Publication number | Publication date |
---|---|
CN110489485B (en) | 2023-05-30 |
CN108846010B (en) | 2021-12-14 |
CN110472116B (en) | 2022-03-04 |
CN110472116A (en) | 2019-11-19 |
CN110489485A (en) | 2019-11-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108846010A (en) | The method of product traceability, system, computer system and storage medium in network | |
CN106982203B (en) | Robust ATM network system based on block chain technology and information processing method thereof | |
Choi et al. | RFID tag data processing in manufacturing for track-and-trace anti-counterfeiting | |
US11765225B2 (en) | Systems and methods for microservice execution load balancing in virtual distributed ledger networks | |
CN113656495A (en) | Credible edge Internet of things system with deployment of end edge cloud cooperation of block chain | |
CN111949672B (en) | Block chain storage method for supporting incremental update of Internet-of-things data | |
CN109257342A (en) | Authentication method, system, server and readable storage medium storing program for executing of the block chain across chain | |
WO2016090095A1 (en) | Cryptographic verification of provenance in a supply chain | |
JP2021514510A (en) | Logistics tracking and source identification methods, application servers, blockchain nodes and media | |
CN106998252B (en) | Lightweight RFID cluster label authentication method based on cloud database | |
EP3942734B1 (en) | Systems and methods for virtual distributed ledger networks | |
CN103416021A (en) | System for enabling digital signature auditing | |
CN105100112A (en) | Cloud-storing based radio frequency identification (RFID) group tag ownership transferring method | |
CN109905351B (en) | Method, device, server and computer readable storage medium for storing data | |
CN111383020B (en) | Block chain-based article anti-counterfeiting management method, device, equipment and storage medium | |
CN111445238A (en) | Electronic deposit certificate system based on block chain | |
US20200351077A1 (en) | Systems and methods for control-data plane partitioning in virtual distributed ledger networks | |
CN110516459A (en) | A kind of product data retroactive method and system based on block chain | |
US11763298B2 (en) | Systems and methods for hybrid synchronization in virtual distributed ledger networks | |
KR101954304B1 (en) | Method for tracking and tracing distribution route of tobacco, and tobacco tracking and tracing server using the same | |
CN110543526B (en) | Optimized storage method and system based on block chain | |
CN104394166A (en) | Certificate anti-fake authentication system and method for mobile terminal under cloud environment | |
CN109800597A (en) | The merchandise news encryption method anti-fake for luxury goods | |
CN115701078A (en) | Cross-chain transaction processing method and device, electronic equipment and storage medium | |
CN109918451A (en) | Data base management method and system based on block chain |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |