CN108876403A - For obtaining the methods, devices and systems of information - Google Patents

For obtaining the methods, devices and systems of information Download PDF

Info

Publication number
CN108876403A
CN108876403A CN201810548009.4A CN201810548009A CN108876403A CN 108876403 A CN108876403 A CN 108876403A CN 201810548009 A CN201810548009 A CN 201810548009A CN 108876403 A CN108876403 A CN 108876403A
Authority
CN
China
Prior art keywords
block chain
information
application server
target product
gateway
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201810548009.4A
Other languages
Chinese (zh)
Inventor
刘春伟
孙海波
林世洪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Beijing Jingdong Century Trading Co Ltd, Beijing Jingdong Shangke Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN201810548009.4A priority Critical patent/CN108876403A/en
Publication of CN108876403A publication Critical patent/CN108876403A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION 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/00Commerce
    • G06Q30/018Certifying business or products
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/14Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
    • G06K7/1404Methods for optical code recognition
    • G06K7/1408Methods for optical code recognition the method being specifically adapted for the type of code
    • G06K7/14172D bar codes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0823Network architectures or network communication protocols for network security for authentication of entities using certificates
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/3247Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials involving digital signatures
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/3263Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials involving certificates, e.g. public key certificate [PKC] or attribute certificate [AC]; Public key infrastructure [PKI] arrangements

Abstract

The embodiment of the present application discloses the methods, devices and systems for obtaining information.One specific embodiment of this method includes:Extract the information in the target two dimensional code of target product, wherein the target two dimensional code is generated according to the information for the block chain being successively related in target product circulation;Based on extracted information, the information of the target product recorded in the block chain being successively related in circulation is obtained.This embodiment improves the flexibilities of acquisition of information.

Description

For obtaining the methods, devices and systems of information
Technical field
The invention relates to field of computer technology, and in particular to for obtaining the methods, devices and systems of information.
Background technique
Block chain technology is that algorithm of knowing together with storing data, using distributed node is verified using block linked data structure Guarantee the safety of data transmission and access with more new data, in the way of cryptography, using by automatized script generation to generate The intelligent contract of code composition programs the completely new distributed basis framework and calculation of one kind with operation data.Due to block Chain can be used for verifying and storing data, thus, it usually can use the retrospect that block chain carries out information.For example, available Production information, distributor information of product etc..
The existing information acquiring pattern based on block chain, it usually needs each participant (such as the production of some product Side, dealer side) block is established in the same block chain, acquisition of the user to production information, distributor information needs to be based on The block chain carries out.
Summary of the invention
The embodiment of the present application proposes the method and apparatus for obtaining information.
In a first aspect, the embodiment of the present application provides a kind of method for obtaining information, this method includes:Extract target Information in the target two dimensional code of product, wherein target two dimensional code is the block chain being successively related in being circulated according to target product Information it is generated;Based on extracted information, target product recorded in the block chain being successively related in circulation is obtained Information.
In some embodiments, the block chain for the product information of target product being stored in target two dimensional code, being successively related to Block chain gateway address and the block chain being successively related to block chain gateway signature, wherein block chain gateway address is for referring to Show that block chain gateway, block chain gateway are used for the interaction of holding equipment and block chain.
In some embodiments, it is based on extracted information, is obtained recorded in the block chain being successively related in circulation The information of target product, including:For the block chain being successively related in target product circulation, pass through the block link network of the block chain The block chain gateway that address accesses the block chain is closed, the block chain gateway certificate of the block chain is downloaded, utilizes downloaded block Chain gateway certificate verifies the block chain gateway signature of the block chain, in response to being verified, passes through the area of the block chain Block chain gateway obtains the information of target product recorded in the block chain.
In some embodiments, this method further includes:To the block chain gateway signature for the block chain being successively related in circulation Verification result be shown.
In some embodiments, this method further includes:To the letter for the target product that successively get, block chain is recorded Breath is shown.
In some embodiments, this method further includes:The area of the last one block chain into the block chain being successively related to Block chain gateway sends the purchase to target product and requests, wherein includes user identifier in purchase request;Receive the last one block The transaction results information that the block chain gateway of chain returns, wherein transaction results information is for characterizing transaction success or failure.
Second aspect, the embodiment of the present application provide a kind of for obtaining the device of information, which includes:It extracts single Member is configured to extract the information in the target two dimensional code of target product, wherein target two dimensional code is circulated according to target product In the information of block chain that is successively related to it is generated;Acquiring unit is configured to obtain in circulation based on extracted information The information of target product recorded in the block chain being successively related to.
In some embodiments, the block chain for the product information of target product being stored in target two dimensional code, being successively related to Block chain gateway address and the block chain being successively related to block chain gateway signature, wherein block chain gateway address is for referring to Show that block chain gateway, block chain gateway are used for the interaction of holding equipment and block chain.
In some embodiments, for the block chain being successively related in target product circulation, pass through the block of the block chain Chain gateway address accesses the block chain gateway of the block chain, download the block chain gateway certificate of the block chain, utilizes and is downloaded Block chain gateway certificate verifies the block chain gateway signature of the block chain, in response to being verified, passes through the block chain Block chain gateway obtain the information of target product recorded in the block chain.
In some embodiments, device further includes:First display unit is configured to the block being successively related in circulation The verification result of the block chain gateway signature of chain is shown.
In some embodiments, device further includes:Second display unit is configured to successively get, block chain The information of the target product recorded is shown.
In some embodiments, device further includes:Transmission unit is configured to last into the block chain being successively related to The block chain gateway of one block chain sends the purchase to target product and requests, wherein includes user identifier in purchase request;It connects Unit is received, is configured to receive the transaction results information that the block chain gateway of the last one block chain returns, wherein transaction results Information is for characterizing transaction success or failure.
The third aspect, the embodiment of the present application provide a kind of system for obtaining information, which includes terminal device With successively associated application server in target product circulation, different application servers from different block chains for being handed over Mutually, successively associated application server includes the first application server and at least one second application server;First application clothes Business device, is configured to generate the original two-dimensional code of target product;The second application service at least one second application server The two dimensional code of device, the target product for being configured to generate a upper application server is updated;Terminal device is configured to mention The information in two dimensional code after taking final updated is based on extracted information, obtains successively associated application server in circulation The information of target product recorded in the block chain interacted.
In some embodiments, the first application server is further configured to:It include target product in response to receiving Product information two dimensional code acquisition request, the block chain based on the block chain that product information and the first application server are interacted Gateway address generates the block chain gateway signature for the block chain that the first application server is interacted, wherein block chain gateway address It is used to indicate block chain gateway, block chain gateway is used for the interaction of holding equipment and block chain;Generation is stored with product information, area The original two-dimensional code of block chain gateway address and block chain gateway signature.
In some embodiments, the second application server at least one second application server, is further configured At:Using upper application server two dimensional code generated as two dimensional code to be updated, the information in two dimensional code to be updated is extracted;It will The block chain that second application server is interacted is as target block chain, based on the information and target area in two dimensional code to be updated The block chain gateway address of block chain generates the block chain gateway signature of target block chain;Generate the two dimension for being stored with following information Code, to be updated to two dimensional code to be updated:The block chain gateway address of information, target block chain in two dimensional code to be updated and The block chain gateway signature of target block chain.
In some embodiments, terminal device is further configured to:By at least one second application server most The two dimensional code of the updated target product of the second application server of the latter obtains in target two dimensional code as target two dimensional code Information;For successively associated application server in target product circulation, the block chain that is interacted by the application server Block chain gateway address accesses the block chain gateway for the block chain that the application server is interacted, and downloads the application server and is handed over The block chain gateway certificate of mutual block chain, the area for utilizing downloaded block chain gateway certificate to interact the application server The block chain gateway signature of block chain is verified, in response to being verified, the block chain that is interacted by the application server Block chain gateway obtains the information of target product recorded in the block chain that the application server is interacted.
In some embodiments, terminal device is further configured to:To successively associated application server institute in circulation The verification result of the block chain gateway signature of interactive block chain is shown.
In some embodiments, terminal device is further configured to:Successively get, application server is handed over The information for the target product that mutual block chain is recorded is shown.
In some embodiments, which further includes production line controlling terminal;And first application server, further by It is configured to:Original two-dimensional code is sent to production line controlling terminal, so that the equipment in production line controlling terminal control production line will Original two-dimensional code invests the outer packing of target product.
In some embodiments, successively associated application server in target product circulation, is further configured to:By institute The two dimensional code for generating or updating is stored into the block chain interacted.
In some embodiments, successively associated application server in target product circulation, is further configured to:It receives The Transfer Message of target product, wherein Transfer Message includes the block chain gateway for the block chain that next application server is interacted Record has the position of the information of target product in the block chain that address and next application server are interacted;Transfer Message is stored Into the block chain interacted.
In some embodiments, the last one second application server at least one second application server, into one Step is configured to:The purchase to target product that receiving terminal apparatus is sent is requested, wherein is marked in purchase request comprising user Know;Transaction results information is recorded in the block chain interacted, returns to transaction results information to terminal device, wherein transaction knot Fruit information is for characterizing transaction success or failure.
Fourth aspect, the embodiment of the present application provide a kind of terminal device, including:One or more processors;Storage dress Set, be stored thereon with one or more programs, when one or more programs are executed by one or more processors so that one or Multiple processors realize the method such as any embodiment in the method for obtaining information.
5th aspect, the embodiment of the present application provide a kind of computer-readable medium, are stored thereon with computer program, should The method such as any embodiment in the method for obtaining information is realized when program is executed by processor.
Method and apparatus provided by the embodiments of the present application for obtaining information, by the target two dimension for extracting target product Information in code is then based on extracted information, obtains the target recorded in the block chain being successively related in circulation and produces The information of product.To realize the acquisition of information of transregional piece of chain, improve the flexibility of acquisition of information.
Detailed description of the invention
By reading a detailed description of non-restrictive embodiments in the light of the attached drawings below, the application's is other Feature, objects and advantages will become more apparent upon:
Fig. 1 is that one embodiment of the application can be applied to exemplary system architecture figure therein;
Fig. 2 is the flow chart according to one embodiment of the method for obtaining information of the application;
Fig. 3 is the flow chart according to another embodiment of the method for obtaining information of the application;
Fig. 4 is the schematic diagram according to an application scenarios of the method for obtaining information of the application;
Fig. 5 is the structural schematic diagram according to one embodiment of the device for obtaining information of the application;
Fig. 6 is the timing diagram according to one embodiment of the system for obtaining information of the application;
Fig. 7 is adapted for the structural schematic diagram for the computer system for realizing the terminal device of the embodiment of the present application.
Specific embodiment
The application is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining related invention, rather than the restriction to the invention.It also should be noted that in order to Convenient for description, part relevant to related invention is illustrated only in attached drawing.
It should be noted that in the absence of conflict, the features in the embodiments and the embodiments of the present application can phase Mutually combination.The application is described in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
Fig. 1 is shown can be using the application for obtaining the method for information or the example of the device for obtaining information Property system architecture 100.
As shown in Figure 1, system architecture 100 may include terminal device 101, network 102 and application server 103,104, 105.Network 102 between terminal device 101 and application server 103,104,105 to provide the medium of communication link.Net Network 102 may include various connection types, such as wired, wireless communication link or fiber optic cables etc..
Terminal device 101 can be hardware, be also possible to software.When terminal device 101 is hardware, can be with aobvious Display screen and the various electronic equipments for supporting information browse, including but not limited to smart phone, tablet computer, portable meter on knee Calculation machine etc..Terminal device 101 can be interacted by network 102 and each application server, to obtain information etc..This Outside, above-mentioned terminal device is also equipped with photographic device (such as camera), can execute and the operation such as scan the two-dimensional code.Work as end When end equipment 101,102,103 is software, it may be mounted in above-mentioned cited electronic equipment.It may be implemented into multiple soft Part or software module (such as providing Distributed Services), also may be implemented into single software or software module.It does not do herein It is specific to limit.
Application server 103,104,105 can be target product (such as certain appointed product or user it is current of interest or The product of browsing) the successively associated, server that business processing can be carried out and interacted with block chain in circulation.It is different Application server can be interacted from different block chains, for example, application server 103 can be handed over the first block chain Mutually, application server 104 can be interacted with the second block chain, and application server 105 can be interacted with third block chain.Using clothes The interaction of business device 103,104,105 and block chain can specifically include the data in inquiry block chain, store number into block chain It is operated according to equal.
As an example, target product successively passes through production process and twice distribution process in circulation.Wherein, production process It can be since a series of production technology organization works before target product operation, until the mistake that target product is produced Journey (such as buying former material expects the process for producing target product).In process of production, the block built in advance can be used Chain (such as first block chain in upper example) is to the information of above-mentioned target product generated in process of production (such as raw material Information, cost price etc., date of manufacture, attribute information etc.) it is stored.Also, it in process of production, can be used using clothes Business device (application server 103 of example as shown in figure 1) is interacted with above-mentioned first block chain.Application server 103 can provide Business processing service (such as receive two dimensional code generate request and generate original two-dimensional code), to the data of data in the first block chain Query service etc. can also be initiated to trade to the first block chain, and each node for use in the first block chain of maintenance is total to Know, and then keeps accounts.
In this example, the distribution process each time in above-mentioned distribution process twice can be and open from obtaining target product Begin, by marketing activity until generating the process of result.In first time distribution process, the block chain built in advance can be used (such as second block chain in upper example) is to the information of the above-mentioned target product generated in the distribution process (such as profit Rate, the price of sale, logistics information etc.) it is stored.Also, in the distribution process, can be used application server (such as Application server 104 in Fig. 1) it is interacted with above-mentioned second block chain.Wherein, application server 104 can provide business Processing service (such as to application server 103 send target product Transfer Message, original two-dimensional code is updated), it is right The data query service etc. of data in second block chain can also be initiated to trade, for use in maintenance second to the second block chain Each node of block chain is known together, and then is kept accounts.Herein, in second of distribution process, it can be used and take in advance The block chain (such as third block chain in upper example) built is to the information of the above-mentioned target product generated in the distribution process It is stored.Also, in the distribution process, can be used application server (application server 105 of example as shown in figure 1) with it is upper Third block chain is stated to interact.The function of above-mentioned third application server and above-mentioned second application server is essentially identical, this Place repeats no more.
It should be noted that application server 103,104,105 can be hardware, it is also possible to software.Work as application service When device is hardware, the distributed application server cluster of multiple application server compositions may be implemented into, list also may be implemented into A application server.When application server is software, multiple softwares or software module may be implemented into (such as providing point Cloth service), single software or software module also may be implemented into.It is not specifically limited herein.
It should be noted that operation performed by application server 103,104,105 can also be held by other electronic equipments Row.
It should be noted that for obtaining the method for information generally by terminal device 101 provided by the embodiment of the present application It executes, correspondingly, the device for obtaining information is generally positioned in terminal device 101.
It should be understood that the number of terminal device, network and server in Fig. 1 is only schematical.According to realization need It wants, can have any number of terminal device, network and application server.
With continued reference to Fig. 2, the process of one embodiment of the method for obtaining information according to the application is shown 200.The method for being used to obtain information, includes the following steps:
Step 201, the information in the target two dimensional code of target product is extracted.
It can be equipped with and take the photograph in executing subject (such as terminal device 101 shown in FIG. 1) for obtaining the method for information As device (such as camera).Above-mentioned executing subject can use camera scanning target product (such as certain appointed product, or User is current of interest or the product of browsing) target two dimensional code, extract the information in above-mentioned target two dimensional code.In practice, on The application that can be equipped in executing subject for obtaining information is stated, which can support to call photographic device scanning two dimension Code, parsing two dimensional code, verification information etc..User can carry out the scanning of target two dimensional code, and base in the function using the application Information in the target two dimensional code that the parsing function of the target application extracts target product.
In a kind of scene, above-mentioned target two dimensional code can be attached in or be printed in the outer packing of above-mentioned target product, User can hold above-mentioned executing subject (such as mobile phone) and be scanned to the target two dimensional code when choosing the target product, To extract the information in above-mentioned target two dimensional code.
In another scene, user, which can use above-mentioned executing subject (such as mobile phone), has above-mentioned target product to displaying The webpage of relevant information (such as product introduction etc.) browsed, the target two dimensional code of above-mentioned target product can be with picture shape Formula is shown in the web page.At this point it is possible to be scanned to the target two dimensional code in the picture, to extract above-mentioned target two dimensional code In information.
It should be noted that can successively undergo production process in the circulation of above-mentioned target product and sell at least once Journey.Wherein, production process can be since a series of production technology organization works before target product operation, until target The process (such as manufacturer expects the process for producing target product from buying former material) that production comes out.It sold each time Since journey can be obtaining target product, by marketing activity until generating the process of result.As an example, if target product Distribution process twice is undergone in circulation, then first time distribution process, can be to buy in target production from above-mentioned manufacturer with dealer Product are to the process for selling the target product to another dealer;Second of distribution process can be another dealer from upper one The target product is bought at dealer until being sold to the process of user.In practice, this is used to obtain the method for information, usually exists Before user buys target product, as performed by terminal device.Thus, which sold for the last time Performed by the process.After user buys the target product, last time distribution process can be considered end.
It should be pointed out that above-mentioned target two dimensional code can be according to above-mentioned target product circulation in successively (such as according to The chronological order of circulation) information of block chain that is related to is generated.Above- mentioned information may include block chain mark, block link network It closes address and (is used to indicate block chain gateway, wherein block chain gateway can be used for the interaction of holding equipment Yu block chain, block Chain gateway can be hardware or software) etc. information, can also include target product product information.Above-mentioned target product circulation Involved in first block chain information generated in production process can be stored.In above-mentioned target product circulation Other related block chains can store information generated in distribution process.In the circulation of above-mentioned target product first It can be corresponding with a block chain by each process gone through.It, can be by the letter of first block chain for production process Breath is stored to original two-dimensional code.In practice, original two-dimensional code can be generated by various electronic equipments, such as in first block chain Some node, or the application server etc. interacted with first block chain.It, can be with for each process then Information successively based on the corresponding block chain of the process is updated upper process two dimensional code generated.Specifically, may be used To extract the information in upper process two dimensional code generated first;Then, by the information of the corresponding block chain of the process with Extracted information carries out two dimensional code storage, to realize the update to upper process two dimensional code generated.After final updated Two dimensional code, as target two dimensional code.In practice, for some distribution process, the two dimensional code which is updated can be with It is generated by various electronic equipments, such as some node in the corresponding block chain of the distribution process, or is carried out with the block chain Interactive application server etc..
Step 202, it is based on extracted information, obtains target product recorded in the block chain being successively related in circulation Information.
In the present embodiment, above-mentioned executing subject can be based on extracted information, obtain the area being successively related in circulation The information of target product recorded in block chain.
Specifically, due to may include from the extracted information of target two dimensional code target product product information and with it is upper The information (such as block chain gateway address etc.) for stating the block chain being successively related in target product circulation, therefore, it is possible to from being mentioned The block chain gateway address of each block chain is inquired in the information taken, successively to access the block chain gateway of each block chain.By Can be with the interaction of holding equipment and block chain in block chain gateway, thus phase can be obtained by the block chain gateway accessed Answer the information of the above-mentioned target product stored in block chain.
Herein, the information for the above-mentioned target product that each block chain is recorded may include the corresponding circulation of block chain Corresponding information generated (such as production link storage raw material information, cost price etc., date of manufacture, attribute letter in the process The information such as breath), it can also include circulation information.Wherein, above-mentioned circulation information can include but is not limited to the source of target product With place to go, the relevant information of a upper block chain, the relevant information of next block chain (such as the block chain of next block chain Gateway address and its address in next block chain etc.).
In practice, each the block chain being successively related in above-mentioned target product circulation can pass through the area of the block chain Block chain gateway access is used to safeguard one or more nodes of the block chain, and block chain institute is obtained from the one or more node The information of the above-mentioned target product of storage.
Method and apparatus provided by the embodiments of the present application for obtaining information, by the target two dimension for extracting target product Information in code is then based on extracted information, obtains the target recorded in the block chain being successively related in circulation and produces The information of product.To realize the acquisition of information of transregional piece of chain, improve the flexibility of acquisition of information.
With further reference to Fig. 3, it illustrates the processes 300 of another embodiment of the method for obtaining information.The use In the process 300 for the method for obtaining information, include the following steps:
Step 301, the information in the target two dimensional code of target product is extracted.
In the present embodiment, in the executing subject (such as terminal device 101 shown in FIG. 1) for obtaining the method for information Photographic device (such as camera) can be installed.Above-mentioned executing subject can use the camera scanning target product (such as Certain appointed product or user be current of interest or product of browsing) target two dimensional code, extract the letter in above-mentioned target two dimensional code Breath.Wherein, above-mentioned target two dimensional code can be according to above-mentioned target product circulation involved in block chain information it is generated.
In the present embodiment, can store in above-mentioned target two dimensional code above-mentioned target product product information, it is above-mentioned according to The block chain gateway signature of the block chain gateway address of the secondary block chain being related to and the above-mentioned block chain being successively related to.Wherein, area Block chain gateway address is used to indicate block chain gateway, and block chain gateway is used for the interaction of holding equipment and block chain.
Step 302, for the block chain that is successively related in target product circulation, by the block chain gateway of the block chain Location accesses the block chain gateway of the block chain, downloads the block chain gateway certificate of the block chain, utilizes downloaded block link network It closes certificate to verify the block chain gateway signature of the block chain, in response to being verified, passes through the block chain of the block chain Gateway obtains the information of target product recorded in the block chain.
In the present embodiment, for each the block chain being successively related in the circulation of above-mentioned target product, above-mentioned execution master Body can execute following steps:
The first step is accessed the block chain gateway of the block chain by the block chain gateway address of the block chain, downloads the area The block chain gateway certificate of block chain.Wherein, block chain gateway certificate can be for being verified to block chain gateway signature Information, for example, it may be using the obtained key of Digital Signature Algorithm.
Second step is verified using block chain gateway signature of the block chain gateway certificate downloaded to the block chain. Specifically, above-mentioned executing subject can first be decrypted block chain gateway signature using the block chain gateway certificate, obtain Information after decryption.Then, it can be chosen and block chain gateway label to be verified from the information of extracted target two dimensional code The corresponding information of name, is encrypted using hash function, obtains cryptographic Hash.It later, can be by the letter after the cryptographic Hash and decryption Breath is matched, if matching, can be determined and is verified.Otherwise, it determines verifying does not pass through.It should be noted that with to The corresponding information of block chain gateway signature of verifying can be to obtain information used in the block chain gateway signature to be verified, The block chain gateway signature to be verified can be obtained after encrypting to the information.As an example, if block chain gateway to be verified Signature is the block chain gateway signature of first block chain, then product information and first area of the corresponding information for target product The block chain gateway address of block chain.As another example, if block chain gateway signature to be verified is second block in circulation The block chain gateway signature of chain, then corresponding information is made of following information:The product information of target product, first block chain Block chain gateway signature, the block chain gateway of block chain that is interacted of first block chain gateway address, second block chain Signature.
Third step is obtained recorded in the block chain in response to being verified by the block chain gateway of the block chain The information of above-mentioned target product.
It should be noted that the chronological order that above-mentioned executing subject can circulate according to target product, successively to flowing through The block chain gateway signature of block chain involved in journey is verified.
In the present embodiment, above-mentioned executing subject can also block chain gateway label to the block chain being successively related in circulation The verification result of name is shown.
In the present embodiment, the target product that above-mentioned executing subject can also record successively get, block chain Information be shown.
Step 303, the block chain gateway of the last one block chain into the block chain being successively related to, which is sent, produces target The purchase of product is requested.
In the present embodiment, above-mentioned executing subject can also be to the last one block in the above-mentioned block chain being successively related to The block chain gateway of chain sends the purchase to above-mentioned target product and requests.Wherein, it may include user's mark in above-mentioned purchase request Know.
Step 304, the transaction results information that the block chain gateway of the last one block chain returns is received.
In the present embodiment, what the block chain gateway that above-mentioned executing subject can receive the last one above-mentioned block chain returned Transaction results information.Wherein, above-mentioned transaction results information can be used for characterizing transaction success or failure.
With continued reference to the signal that Fig. 4, Fig. 4 are according to the application scenarios of the method for obtaining information of the present embodiment Figure.
In the application scenarios of Fig. 4, during user chooses target product (such as rice), mobile phone scanning can use The target two dimensional code of target product, to extract the information in target two dimensional code.Wherein, target product successively passes through during circulation Production process and at least one distribution process are crossed.Block chain for carrying out information storage in process of production can be block Chain A.Block chain for carrying out information storage in last time distribution process can be block chain Y.
As shown in figure 4, above-mentioned terminal device can pass through the block chain gateway address of block chain A (" segment chain A in such as figure Gateway address ") access block chain A block chain gateway (" segment chain A gateway " in such as figure), download the block chain of block chain A Gateway certificate (" segment chain A gateway certificate " in such as figure).Then, utilize downloaded block chain gateway certificate to block chain A Block chain gateway signature verified.In response to being verified, is inquired by the block chain gateway of block chain A and obtain block The information for the target product that chain A is recorded.
In the same way, terminal device can successively access each block chain gateway (until last time is accessed The block chain gateway (" segment chain Y gateway " in such as figure) of the information storage area block chain Y of the link is carried out in distribution process), to obtain The information for the target product for taking each block chain to be recorded.During obtaining the information of target product, above-mentioned terminal device It can be tested with the query result of the information in Dynamic Display information tracing situation, such as each block chain, each block chain gateway signature Demonstrate,prove result etc..
The method provided by the above embodiment of the application, the information in target two dimensional code by extracting target product, and The block chain gateway for the block chain being successively successively related in the circulation of access target product afterwards, downloading block link network close certificate and carry out area The verifying of block chain gateway signature obtains the information of the target product stored in respective block chain after being verified.To real The acquisition of information for having showed transregional piece of chain improves the flexibility of acquisition of information.Meanwhile each block chain gateway signature is tested Card, improves the safety of acquisition of information.It is shown after obtaining information, and in the verifying for carrying out block chain gateway signature The displaying for carrying out verification result afterwards improves the rich of information displaying.
With further reference to Fig. 5, as the realization to method shown in above-mentioned each figure, this application provides one kind for obtaining letter One embodiment of the device of breath, the Installation practice is corresponding with embodiment of the method shown in Fig. 2, which can specifically answer For in various electronic equipments.
As shown in figure 5, the device 500 described in the present embodiment for obtaining information includes:Extraction unit 501, is configured At the information in the target two dimensional code for extracting target product, wherein above-mentioned target two dimensional code is circulated according to above-mentioned target product In the information of block chain that is successively related to it is generated;Acquiring unit 502 is configured to obtain stream based on extracted information The information of above-mentioned target product recorded in the block chain being successively related in turning
In some optional implementations of the present embodiment, above-mentioned target product is stored in above-mentioned target two dimensional code The block link network of product information, the block chain gateway address of the above-mentioned block chain being successively related to and the above-mentioned block chain being successively related to Close signature, wherein block chain gateway address is used to indicate block chain gateway, and block chain gateway is for holding equipment and block chain Interaction.
In some optional implementations of the present embodiment, above-mentioned acquiring unit 502 can be further configured to:It is right The block chain being successively related in the circulation of above-mentioned target product, accesses the block chain by the block chain gateway address of the block chain Block chain gateway, download the block chain gateway certificate of the block chain, utilize downloaded block chain gateway certificate to the block The block chain gateway signature of chain is verified, and in response to being verified, obtains the block by the block chain gateway of the block chain The information of above-mentioned target product recorded in chain.
In some optional implementations of the present embodiment, above-mentioned apparatus can also include the first display unit (in figure It is not shown).Wherein, above-mentioned first display unit may be configured to the block chain gateway to the block chain being successively related in circulation The verification result of signature is shown.
In some optional implementations of the present embodiment, above-mentioned apparatus further includes that the second display unit (does not show in figure Out).Wherein, above-mentioned second display unit may be configured to the target product recorded to successively get, block chain Information is shown.
In some optional implementations of the present embodiment, above-mentioned apparatus further includes transmission unit and receiving unit (figure In be not shown).Wherein, above-mentioned transmission unit may be configured to the last one block into the above-mentioned block chain being successively related to The block chain gateway of chain sends the purchase to above-mentioned target product and requests, wherein includes user identifier in above-mentioned purchase request.On Stating receiving unit may be configured to receive the transaction results information that the block chain gateway of the last one above-mentioned block chain returns, In, above-mentioned transaction results information is for characterizing transaction success or failure.
The device provided by the above embodiment of the application extracts the target two dimensional code of target product by extraction unit 501 In information, then acquiring unit 502 is based on extracted information, obtains in circulation recorded in the block chain that is successively related to The information of the target product.To realize the acquisition of information of transregional piece of chain, improve the flexibility of acquisition of information.
With continued reference to Fig. 6, it illustrates the timing according to one embodiment of the system for obtaining information of the application Figure.
Above system includes that successively associated application server, different applications take in terminal device and target product circulation Business device from different block chains for interacting.As an example, application server 103 as shown in Figure 1 can be with the firstth area The interaction of block chain, application server 104 can be interacted with the second block chain, and application server 105 can be interacted with third block chain. The interaction of application server and block chain can specifically include the data in inquiry block chain, storing data etc. into block chain Operation.
Herein, above-mentioned successively associated application server may include the first application server and at least one second application Server.Wherein, above-mentioned first application server can carry out business processing in the production process of target product, and with it is pre- The block chain (being properly termed as the first block chain) first built interacts.It requests and generates for example, can receive two dimensional code and generate Original two-dimensional code initiates transaction to the first block chain, inquires etc. data in the first block chain.Above-mentioned first block chain It can information (such as raw material information, cost price etc., production date to above-mentioned target product generated in process of production Phase, attribute information etc.) it is stored.
The second application server of each of above-mentioned successively associated application server, can be in the primary of target product Business processing is carried out in distribution process, and is interacted with the block chain built in advance.As an example, in target product circulation Undergo distribution process twice.First the second application server can carry out business processing in first time distribution process, and It is interacted with the block chain (being properly termed as the second block chain) built in advance.For example, can be sent to the first application server The Transfer Message of target product is updated original two-dimensional code, initiates transaction to the second block chain, to number in the second block chain According to inquire etc..Second the second application server can carry out business processing, Yi Jiyu in second of distribution process The block chain (being properly termed as third block chain) built in advance interacts.For example, mesh can be sent to the second application server The Transfer Message of product is marked, original two-dimensional code is updated, initiates transaction to third block chain, to data in third block chain Inquire etc..Above-mentioned second block chain can be to the information of the above-mentioned target product generated in first time distribution process (such as profit margin, the price of sale, logistics information etc.) is stored.Above-mentioned third block chain can be sold for the first time The information of above-mentioned target product generated in journey is stored.
Herein, each block chain can also be stored with the circulation information of target product.For example, the source of the product and going Place, the information of a upper block chain, the information of next block chain etc..
As shown in fig. 6, in information transmission system, the timing diagram of one embodiment of the system for obtaining information can be with It involves the steps of:
Step 601, the first application server generates the original two-dimensional code of above-mentioned target product.
In the present embodiment, needs can be obtained first stores the information into original two-dimensional code, for example, target product Product information (such as mark, attribute information of target product etc.).Then, various existing two dimensional code generating algorithms be can use Or two dimensional code Core Generator generates original two-dimensional code.
In some optional implementations of the present embodiment, above-mentioned first application server can give birth to as follows At original two-dimensional code:
The first step, in response to receiving the two dimensional code acquisition request of the product information comprising above-mentioned target product, based on upper It states product information and the block chain gateway address of block chain that above-mentioned first application server is interacted, generation is answered with above-mentioned first With the block chain gateway signature for the block chain that server is interacted.Wherein, block chain gateway address can serve to indicate that block chain Gateway, block chain gateway can be used for the interaction of holding equipment Yu block chain.
Herein, block chain gateway signature can pass through various Digital Signature Algorithms (such as symmetric encipherment algorithm, such as RSA The rivest, shamir, adelman of Encryption Algorithm, ElGamal etc.) it generates.Specifically, can be first by the said goods information and above-mentioned The block chain gateway address for the block chain that one application server is interacted is as input information.Utilize hash function (Hash Function is referred to as hashing algorithm, hash function etc.) the input information is handled, obtain cryptographic Hash.Practice In, cryptographic Hash is properly termed as hashed value (hash values, hash codes, hash sums or hashes), summary info again Deng.Hash function can be compressed into information or data abstract, so that data volume becomes smaller, the format of data is fixed.Hash letter Data can be upset mixing by number, re-create a data, and the data created are hashed value.Hashed value usually uses one Short random letters are represented with the digital character string formed.Then, obtained cryptographic Hash can be encrypted, is obtained State the block chain gateway signature of block chain (as digital signature).Herein, due to only being solved to the encrypted cryptographic Hash It is close, cryptographic Hash before encrypting can be just obtained, and then realize the verifying to cryptographic Hash, therefore, digital signature is able to verify that information Integrality.
Second step is stored with the said goods using various existing two-dimensional code generation methods or the generation of two dimensional code Core Generator The original two-dimensional code of information, above-mentioned block chain gateway address and above-mentioned block chain gateway signature.
In some optional implementations of the present embodiment, above system can also include production line controlling terminal.On Above-mentioned original two-dimensional code can also be sent to production line controlling terminal by stating the first application server, so that above-mentioned production line traffic control is whole Above-mentioned original two-dimensional code is invested (for example, can be using the modes such as stickup or printing) above-mentioned mesh by the equipment in end control production line Mark the outer packing of product.
In some optional implementations of the present embodiment, above-mentioned first application server can also be by original two-dimensional In the block chain that code the first application server of storage is interacted.
In some optional implementations of the present embodiment, following step is can also be performed in above-mentioned first application server Suddenly:Receive the Transfer Message of above-mentioned target product.Wherein, above-mentioned Transfer Message may include next application server (such as certain One second application server) the block chain that is interacted of the block chain gateway address of block chain that is interacted and next application server It is middle to record the position for having the information of above-mentioned target product.Above-mentioned Transfer Message can be transmitted by next application server.And Afterwards, above-mentioned Transfer Message can be stored in the block chain interacted to first application server.
Step 602, the second application server at least one second application server generates a upper application server The two dimensional code of target product be updated.
In the present embodiment, the second application server at least one above-mentioned second application server can be answered upper one The two dimensional code of the above-mentioned target product generated with server is updated.Wherein, associated first in above-mentioned target product circulation A upper application server for a second application server is above-mentioned first application server.Herein, for each the second application Server can specifically carry out the update of two dimensional code in accordance with the following steps:
The first step, extract a upper application server generate or two dimensional code update, above-mentioned target product in information.
Second step obtains the information for the block chain that the application server is interacted, such as block chain mark, block chain gateway The information such as address.Wherein, block chain gateway address, which can be, is used to indicate block chain gateway.For example, it may be for distinguish and Characterize the mark of block chain gateway.Equipment (such as terminal device, application server etc.) can be visited by block chain gateway address Ask block chain gateway indicated by the block chain gateway address.Herein, block chain gateway can be used for holding equipment and block chain Interaction.For example, can receive the call request of equipment, service provided by block chain can also be called.Herein, block link network Can be used for closing is embodied in various ways.As an example, SEDA (Staged Event-Driven can be used Architecture, stage by stage event-driven) framework realizes.It is access by the function division of block chain gateway, handles and pick out Three phases are connected with queue between three phases.When needing to put into the interaction of row equipment and block chain using block link network, Allocation processing resource executes the operation in each stage.
Third step, information in the two dimensional code for the above-mentioned target product that an extracted upper application server is generated, should The information for the block chain that application server is interacted utilizes various existing two dimensional codes as wait store the information into two dimensional code Generating algorithm or two dimensional code Core Generator generate new two dimensional code, are produced with realizing to the above-mentioned target that a upper application server generates The update of the two dimensional code of product.
In some optional implementations of the present embodiment, second at least one above-mentioned second application server is answered The process that successively two dimensional code of a upper application server above-mentioned target product generated is updated with server, with it In for some second application server, may refer to following steps execution:
The first step is extracted above-mentioned to be updated using upper application server two dimensional code generated as two dimensional code to be updated Information in two dimensional code.Wherein, a upper application server for first the second application server associated in circulation is first Application server.
Second step, the block chain which is interacted is as target block chain, based on above-mentioned to be updated The block chain gateway address of information and above-mentioned target block chain in two dimensional code, generates the block chain gateway of above-mentioned target block chain Signature.It should be noted that generating the operation and the generation of the first application server of the block chain gateway signature of the target block chain The operation of the block chain gateway signature of its block chain interacted is essentially identical, and details are not described herein again.
Third step, with various existing two-dimensional code generation methods or two dimensional code Core Generator, generation is stored with following information Two dimensional code, to be updated to above-mentioned two dimensional code to be updated:Information, above-mentioned target block chain in above-mentioned two dimensional code to be updated Block chain gateway address and above-mentioned target block chain block chain gateway signature.
As a result, since successively associated application server is successively updated two dimensional code for institute in circulation, and update mode For the block chain that is successively interacted the information in upper application server two dimensional code generated with current application server Information (including block chain gateway address and block chain gateway signature) is stored to new two dimensional code, to replace a upper application server Two dimensional code generated, therefore, in the target two dimensional code after final updated, be stored with above-mentioned target product product information, on State the block chain gateway address for the block chain that successively associated application server is interacted in target product circulation, above-mentioned target produces The block chain gateway signature for the block chain that successively associated application server is interacted in product circulation.
In some optional implementations of the present embodiment, each second application server can also be by its institute more New two dimensional code stores in the block chain that second application server is interacted.
In some optional implementations of the present embodiment, each second application server (can be described as current second Application server), following steps can also be performed:Receive the Transfer Message of above-mentioned target product.Wherein, above-mentioned Transfer Message can With include the block chain that next second application server is interacted block chain gateway address and next second application server institute Record has the position of the information of above-mentioned target product in interactive block chain.Above-mentioned Transfer Message can be next second application clothes It is engaged in transmitted by device.Then, above-mentioned Transfer Message can be stored to the second application server (i.e. current second application service Device) in the block chain that is interacted.
Step 603, the information in the two dimensional code after terminal device extraction final updated, is based on extracted information, obtains The information of target product recorded in the block chain that successively associated application server is interacted in circulation.
In the present embodiment, terminal device can extract the information in the two dimensional code after final updated.Due to from target two Dimension the extracted information of code in may include target product product information and with above-mentioned target product circulation in it is successively associated The information (such as block chain gateway address etc.) for the block chain that application server is interacted, therefore, it is possible to from extracted information In successively inquire the block chain gateway address of the block chain that each application server is interacted, to access each application server institute The block chain gateway of interactive block chain.Since block chain gateway can be with the interaction of holding equipment and block chain, thus can lead to Accessed block chain gateway is crossed, the information of the above-mentioned target product stored in block chain is obtained.
In some optional implementations of the present embodiment, for successively associated application in the circulation of above-mentioned target product Each of server application server, above-mentioned terminal device can execute following steps:
The block chain gateway address of the first step, the block chain interacted by the application server accesses the application server The block chain gateway of the block chain interacted downloads the block chain gateway certificate for the block chain that the application server is interacted.
Second step, the block chain for the block chain for utilizing downloaded block chain gateway certificate to interact the application server Gateway signature is verified.Specifically, block chain gateway signature can be decrypted using the block chain gateway certificate first, Information after being decrypted.Then, it can be chosen and block link network to be verified from the information of extracted target two dimensional code Corresponding information of signing is closed, is encrypted using hash function, obtains cryptographic Hash.Later, can will the cryptographic Hash and decryption after Information matched, if matching, can determine and be verified.Otherwise, it determines verifying does not pass through.It should be noted that Information corresponding with block chain gateway signature to be verified can be to obtain used in the block chain gateway signature to be verified The block chain gateway signature to be verified can be obtained after encrypting to the information in information.
Third step, in response to being verified, the block chain gateway of the block chain interacted by the application server is obtained The information of above-mentioned target product recorded in the block chain that the application server is interacted.
It should be noted that the chronological order that above-mentioned terminal device can circulate according to target product, successively to flowing through The block chain gateway signature for the block chain that associated application server is interacted in journey is verified.That is, verifying the first application clothes The block chain gateway signature for the block chain that business device is interacted then successively verifies the area that each second application server is interacted The block chain gateway signature of block chain.
In some optional implementations of the present embodiment, above-mentioned terminal device can also be to successively associated in circulation The verification result of the block chain gateway signature for the block chain that application server is interacted is shown.
In some optional implementations of the present embodiment, above-mentioned terminal device can also to it is successively getting, answer The information for the target product that the block chain interacted with server is recorded is shown.
In some optional implementations of the present embodiment, above-mentioned terminal device can also to it is above-mentioned at least one second The last one second application server in application server sends the purchase to above-mentioned target product and requests.Wherein, above-mentioned purchase Buying in request may include user identifier.Then, above-mentioned terminal device can receive the last one above-mentioned second application server The transaction results information of return.Wherein, above-mentioned transaction results information can be used for characterizing transaction success or failure.Herein, above-mentioned The last one second application server upon receipt of the purchase request, can in the block chain interacted store transaction information. Wherein, above-mentioned Transaction Information may include:The corresponding relationship of above-mentioned user identifier and above-mentioned target product, above-mentioned target product Distribution state (such as sold or do not sold).
System provided by the embodiments of the present application for obtaining information generates above-mentioned target by the first application server and produces The original two-dimensional code of product;What the second application server at least one second application server generated a upper application server The two dimensional code of above-mentioned target product is updated;Terminal device extracts the information in the two dimensional code after final updated, based on being mentioned The information taken obtains above-mentioned target product recorded in the block chain that successively associated application server is interacted in circulation Information.To realize the acquisition of information of transregional piece of chain, improve the flexibility of acquisition of information.
Below with reference to Fig. 7, it illustrates the computer systems 700 for the terminal device for being suitable for being used to realize the embodiment of the present application Structural schematic diagram.Terminal device shown in Fig. 7 is only an example, function to the embodiment of the present application and should not use model Shroud carrys out any restrictions.
As shown in fig. 7, computer system 700 includes central processing unit (CPU) 701, it can be read-only according to being stored in Program in memory (ROM) 702 or be loaded into the program in random access storage device (RAM) 703 from storage section 708 and Execute various movements appropriate and processing.In RAM 703, also it is stored with system 700 and operates required various programs and data. CPU 701, ROM 702 and RAM 703 are connected with each other by bus 704.Input/output (I/O) interface 705 is also connected to always Line 704.
I/O interface 705 is connected to lower component:Importation 706 including touch screen, touch tablet etc.;Including liquid crystal Show the output par, c 707 of device (LCD) etc. and loudspeaker etc.;Storage section 708 including hard disk etc.;And including such as LAN The communications portion 709 of the network interface card of card, modem etc..Communications portion 709 is executed via the network of such as internet Communication process.Driver 710 is also connected to I/O interface 705 as needed.Detachable media 711, semiconductor memory etc. Deng being mounted on driver 710 as needed, in order to be mounted into storage as needed from the computer program read thereon Part 708.
Particularly, in accordance with an embodiment of the present disclosure, it may be implemented as computer above with reference to the process of flow chart description Software program.For example, embodiment of the disclosure includes a kind of computer program product comprising be carried on computer-readable medium On computer program, which includes the program code for method shown in execution flow chart.In such reality It applies in example, which can be downloaded and installed from network by communications portion 709, and/or from detachable media 711 are mounted.When the computer program is executed by central processing unit (CPU) 701, limited in execution the present processes Above-mentioned function.It should be noted that computer-readable medium described herein can be computer-readable signal media or Computer readable storage medium either the two any combination.Computer readable storage medium for example can be --- but Be not limited to --- electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor system, device or device, or any above combination. The more specific example of computer readable storage medium can include but is not limited to:Electrical connection with one or more conducting wires, Portable computer diskette, hard disk, random access storage device (RAM), read-only memory (ROM), erasable type may be programmed read-only deposit Reservoir (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic memory Part or above-mentioned any appropriate combination.In this application, computer readable storage medium, which can be, any include or stores The tangible medium of program, the program can be commanded execution system, device or device use or in connection.And In the application, computer-readable signal media may include in a base band or the data as the propagation of carrier wave a part are believed Number, wherein carrying computer-readable program code.The data-signal of this propagation can take various forms, including but not It is limited to electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be computer Any computer-readable medium other than readable storage medium storing program for executing, the computer-readable medium can send, propagate or transmit use In by the use of instruction execution system, device or device or program in connection.Include on computer-readable medium Program code can transmit with any suitable medium, including but not limited to:Wirelessly, electric wire, optical cable, RF etc., Huo Zheshang Any appropriate combination stated.
Flow chart and block diagram in attached drawing are illustrated according to the system of the various embodiments of the application, method and computer journey The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation A part of one module, program segment or code of table, a part of the module, program segment or code include one or more use The executable instruction of the logic function as defined in realizing.It should also be noted that in some implementations as replacements, being marked in box The function of note can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are actually It can be basically executed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.Also it to infuse Meaning, the combination of each box in block diagram and or flow chart and the box in block diagram and or flow chart can be with holding The dedicated hardware based system of functions or operations as defined in row is realized, or can use specialized hardware and computer instruction Combination realize.
Being described in unit involved in the embodiment of the present application can be realized by way of software, can also be by hard The mode of part is realized.Described unit also can be set in the processor, for example, can be described as:A kind of processor packet Include extraction unit and acquiring unit.Wherein, the title of these units does not constitute the limit to the unit itself under certain conditions It is fixed, for example, extraction unit is also described as " extracting the unit of the information in target two dimensional code ".
As on the other hand, present invention also provides a kind of computer-readable medium, which be can be Included in device described in above-described embodiment;It is also possible to individualism, and without in the supplying device.Above-mentioned calculating Machine readable medium carries one or more program, when said one or multiple programs are executed by the device, so that should Device:Extract the information in the target two dimensional code of target product;Based on extracted information, the area being successively related in circulation is obtained The information of the target product recorded in block chain.
Above description is only the preferred embodiment of the application and the explanation to institute's application technology principle.Those skilled in the art Member is it should be appreciated that invention scope involved in the application, however it is not limited to technology made of the specific combination of above-mentioned technical characteristic Scheme, while should also cover in the case where not departing from foregoing invention design, it is carried out by above-mentioned technical characteristic or its equivalent feature Any combination and the other technical solutions formed.Such as features described above has similar function with (but being not limited to) disclosed herein Can technical characteristic replaced mutually and the technical solution that is formed.

Claims (24)

1. a kind of method for obtaining information, including:
Extract the information in the target two dimensional code of target product, wherein the target two dimensional code is according to the target product stream The information for the block chain being successively related in turning is generated;
Based on extracted information, the information of the target product recorded in the block chain being successively related in circulation is obtained.
2. the method according to claim 1 for obtaining information, wherein be stored with the mesh in the target two dimensional code Mark the product information of product, the block chain gateway address of the block chain being successively related to and the block chain being successively related to Block chain gateway signature, wherein block chain gateway address is used to indicate block chain gateway, block chain gateway for holding equipment with The interaction of block chain.
3. the method according to claim 2 for obtaining information, wherein it is described to be based on extracted information, obtain stream The information of the target product recorded in the block chain being successively related in turning, including:
It, should by the block chain gateway address access of the block chain for the block chain being successively related in target product circulation The block chain gateway of block chain downloads the block chain gateway certificate of the block chain, utilizes downloaded block chain gateway certificate pair The block chain gateway signature of the block chain is verified, and in response to being verified, is obtained by the block chain gateway of the block chain The information of the target product recorded in the block chain.
4. the method according to claim 3 for obtaining information, wherein the method also includes:
The verification result of the block chain gateway signature for the block chain being successively related in circulation is shown.
5. the method according to claim 3 for obtaining information, wherein the method also includes:
The information for the target product that successively get, block chain is recorded is shown.
6. the method according to claim 1 for obtaining information, wherein the method also includes:
The block chain gateway of the last one block chain into the block chain being successively related to is sent to the target product Purchase request, wherein include user identifier in the purchase request;
Receive the transaction results information that the block chain gateway of the last one block chain returns, wherein the transaction results letter Breath is for characterizing transaction success or failure.
7. it is a kind of for obtaining the device of information, including:
Extraction unit is configured to extract the information in the target two dimensional code of target product, wherein the target two dimensional code is root Information according to the block chain being successively related in target product circulation is generated;
Acquiring unit is configured to obtain institute recorded in the block chain being successively related in circulation based on extracted information State the information of target product.
8. according to claim 7 for obtaining the device of information, wherein be stored with the mesh in the target two dimensional code Mark the product information of product, the block chain gateway address of the block chain being successively related to and the block chain being successively related to Block chain gateway signature, wherein block chain gateway address is used to indicate block chain gateway, block chain gateway for holding equipment with The interaction of block chain.
9. according to claim 8 for obtaining the device of information, wherein the acquiring unit is further configured to:
It, should by the block chain gateway address access of the block chain for the block chain being successively related in target product circulation The block chain gateway of block chain downloads the block chain gateway certificate of the block chain, utilizes downloaded block chain gateway certificate pair The block chain gateway signature of the block chain is verified, and in response to being verified, is obtained by the block chain gateway of the block chain The information of the target product recorded in the block chain.
10. according to claim 9 for obtaining the device of information, wherein described device further includes:
First display unit, be configured to the verification result of the block chain gateway signature for the block chain being successively related in circulation into Row is shown.
11. according to claim 9 for obtaining the device of information, wherein described device further includes:
The information of second display unit, the target product for being configured to record successively get, block chain is shown.
12. according to claim 7 for obtaining the device of information, wherein described device further includes:
Transmission unit, the block chain gateway for being configured to the last one block chain into the block chain being successively related to are sent Purchase request to the target product, wherein include user identifier in the purchase request;
Receiving unit is configured to receive the transaction results information that the block chain gateway of the last one block chain returns, In, the transaction results information is for characterizing transaction success or failure.
13. a kind of system for obtaining information, the system comprises successively associated in terminal device and target product circulation Application server, different application servers from different block chains for interacting, the successively associated application service Device includes the first application server and at least one second application server;
First application server is configured to generate the original two-dimensional code of the target product;
The second application server at least one second application server is configured to the institute generated to a upper application server The two dimensional code for stating target product is updated;
The terminal device, the information in two dimensional code after being configured to extract final updated are based on extracted information, obtain The information of the target product recorded in the block chain that successively associated application server is interacted in circulation.
14. the system according to claim 13 for obtaining information, wherein first application server, further It is configured to:
In response to receive include the target product product information two dimensional code acquisition request, based on the product information and The block chain gateway address for the block chain that first application server is interacted generates first application server and is interacted Block chain block chain gateway signature, wherein block chain gateway address is used to indicate block chain gateway, and block chain gateway is used for The interaction of holding equipment and block chain;
Generate the original two-dimensional for being stored with the product information, the block chain gateway address and the block chain gateway signature Code.
15. the system according to claim 14 for obtaining information, wherein at least one described second application server In the second application server, be further configured to:
Using upper application server two dimensional code generated as two dimensional code to be updated, the letter in the two dimensional code to be updated is extracted Breath;
The block chain that second application server is interacted is as target block chain, based on the letter in the two dimensional code to be updated The block chain gateway address of breath and the target block chain, generates the block chain gateway signature of the target block chain;
The two dimensional code for being stored with following information is generated, to be updated to the two dimensional code to be updated:The two dimensional code to be updated In information, the block chain gateway address of the target block chain and the block chain gateway signature of the target block chain.
16. the system according to claim 15 for obtaining information, wherein the terminal device is further configured At:
The updated target of the last one second application server at least one described second application server is produced The two dimensional code of product obtains the information in the target two dimensional code as target two dimensional code;
For successively associated application server in target product circulation, the block chain interacted by the application server Block chain gateway address access the block chain gateway of the block chain that the application server is interacted, download the application server institute The block chain gateway certificate of interactive block chain, utilizes downloaded block chain gateway certificate to interact the application server The block chain gateway signature of block chain is verified, in response to being verified, the block chain that is interacted by the application server Block chain gateway obtain the information of the target product recorded in the block chain that the application server is interacted.
17. the system according to claim 16 for obtaining information, wherein the terminal device is further configured At:
The verification result of the block chain gateway signature for the block chain that successively associated application server is interacted in circulation is carried out It shows.
18. the system according to claim 16 for obtaining information, wherein the terminal device is further configured At:
The information for the target product that the block chain interacted to successively get, application server is recorded is shown.
19. the system according to claim 13 for obtaining information, wherein the system also includes production line traffic control is whole End;And
First application server, is further configured to:
The original two-dimensional code is sent to the production line controlling terminal, so that in production line controlling terminal control production line Equipment the original two-dimensional code is invested to the outer packing of the target product.
20. the system according to claim 13 for obtaining information, wherein be successively associated in the target product circulation Application server, be further configured to:
The two dimensional code for generating or updating is stored into the block chain interacted.
21. the system according to claim 13 for obtaining information, wherein be successively associated in the target product circulation Application server, be further configured to:
Receive the Transfer Message of the target product, wherein the Transfer Message includes the area that next application server is interacted Record has the target product in the block chain that the block chain gateway address of block chain and next application server are interacted The position of information;
The Transfer Message is stored into the block chain interacted.
22. the system according to claim 13 for obtaining information, wherein at least one described second application server In the last one second application server, be further configured to:
It receives the purchase to the target product that the terminal device is sent to request, wherein comprising using in the purchase request Family mark;
Transaction results information is recorded in the block chain interacted, returns to the transaction results information to the terminal device, In, the transaction results information is for characterizing transaction success or failure.
23. a kind of terminal device, including:
One or more processors;
Storage device is stored thereon with one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processors are real Now such as method as claimed in any one of claims 1 to 6.
24. a kind of computer-readable medium, is stored thereon with computer program, wherein the realization when program is executed by processor Such as method as claimed in any one of claims 1 to 6.
CN201810548009.4A 2018-05-31 2018-05-31 For obtaining the methods, devices and systems of information Pending CN108876403A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810548009.4A CN108876403A (en) 2018-05-31 2018-05-31 For obtaining the methods, devices and systems of information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810548009.4A CN108876403A (en) 2018-05-31 2018-05-31 For obtaining the methods, devices and systems of information

Publications (1)

Publication Number Publication Date
CN108876403A true CN108876403A (en) 2018-11-23

Family

ID=64336413

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810548009.4A Pending CN108876403A (en) 2018-05-31 2018-05-31 For obtaining the methods, devices and systems of information

Country Status (1)

Country Link
CN (1) CN108876403A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111131438A (en) * 2019-12-20 2020-05-08 北京同邦卓益科技有限公司 Method and apparatus for accessing block chains
CN111325293A (en) * 2018-12-14 2020-06-23 北京京东尚科信息技术有限公司 Monitoring method, system, device, equipment and computer readable medium
TWI721548B (en) * 2018-11-27 2021-03-11 開曼群島商創新先進技術有限公司 Business execution method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106570710A (en) * 2016-10-27 2017-04-19 纸飞机(北京)科技有限公司 Commodity anti-counterfeiting method and device
CN106709734A (en) * 2016-12-21 2017-05-24 毛巨林 Multiple-two-dimensional code tracing method based on digital identity and system thereof
US20170206532A1 (en) * 2007-12-03 2017-07-20 Yu Yung Choi System and method for streamlined registration and management of products over a communication network related thereto
CN107220836A (en) * 2017-05-31 2017-09-29 无锡井通网络科技有限公司 A kind of block chain logistics based on Quick Response Code is traced to the source tracking method for anti-counterfeit

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170206532A1 (en) * 2007-12-03 2017-07-20 Yu Yung Choi System and method for streamlined registration and management of products over a communication network related thereto
CN106570710A (en) * 2016-10-27 2017-04-19 纸飞机(北京)科技有限公司 Commodity anti-counterfeiting method and device
CN106709734A (en) * 2016-12-21 2017-05-24 毛巨林 Multiple-two-dimensional code tracing method based on digital identity and system thereof
CN107220836A (en) * 2017-05-31 2017-09-29 无锡井通网络科技有限公司 A kind of block chain logistics based on Quick Response Code is traced to the source tracking method for anti-counterfeit

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
京东: "《京东区块链技术实践白皮书》", 31 March 2018 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI721548B (en) * 2018-11-27 2021-03-11 開曼群島商創新先進技術有限公司 Business execution method and device
US11223692B2 (en) 2018-11-27 2022-01-11 Advanced New Technologies Co., Ltd. Service execution methods and apparatuses
CN111325293A (en) * 2018-12-14 2020-06-23 北京京东尚科信息技术有限公司 Monitoring method, system, device, equipment and computer readable medium
CN111131438A (en) * 2019-12-20 2020-05-08 北京同邦卓益科技有限公司 Method and apparatus for accessing block chains

Similar Documents

Publication Publication Date Title
CN109462588B (en) Decentralized data transaction method and system based on block chain
CN110349056A (en) Transaction processing system and method based on block chain
CN108197891A (en) A kind of electronic signature device and method based on block chain
CN110601896B (en) Data processing method and equipment based on block chain nodes
CN110502922B (en) Article circulation link tracing method and device based on block chain and electronic equipment
CN110766406A (en) Resource transfer method, resource transfer device, storage medium, and electronic apparatus
CN109146490A (en) block generation method, device and system
CN108876403A (en) For obtaining the methods, devices and systems of information
CN110225032B (en) Business data transaction method and equipment
CN110097349B (en) Resource processing method, device and storage medium
CN108647306A (en) A kind of Quick Response Code barcode scanning exchange method and device
CN109254951A (en) A kind of method and apparatus that the card customized deposit system of platform is deposited based on block chain
CN109905351A (en) Method and apparatus for storing data
CN102694795B (en) A kind of method for using application service in off-line case
CN109948370A (en) A kind of method for processing business based on block chain, device and electronic equipment
CN114168928B (en) Method, device, storage medium and system for acquiring identity authentication information
CN108537047A (en) The method and device of information is generated based on block chain
CN109146482A (en) User's right providing method and device based on block chain
CN109451483A (en) ESIM data processing method, equipment and readable storage medium storing program for executing
CN105051769A (en) A method and system for transferring data
CN108390878A (en) Method, apparatus for verifying network request safety
CN110349263A (en) A kind of intelligent article packing method and device
KR100484094B1 (en) Method for servicing an electronic cirtificate for a big-name brand
CN110457619A (en) Browser information transmission method and device
JP7445685B2 (en) Open interface management methods, electronic devices, and storage media

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