CN110704418A - Block chain information query method, device and equipment - Google Patents

Block chain information query method, device and equipment Download PDF

Info

Publication number
CN110704418A
CN110704418A CN201810643603.1A CN201810643603A CN110704418A CN 110704418 A CN110704418 A CN 110704418A CN 201810643603 A CN201810643603 A CN 201810643603A CN 110704418 A CN110704418 A CN 110704418A
Authority
CN
China
Prior art keywords
information
block chain
index information
target object
characteristic information
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
CN201810643603.1A
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 Nut Software Technology Co Ltd
Original Assignee
Beijing Nut Software 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 Nut Software Technology Co Ltd filed Critical Beijing Nut Software Technology Co Ltd
Priority to CN201810643603.1A priority Critical patent/CN110704418A/en
Publication of CN110704418A publication Critical patent/CN110704418A/en
Pending legal-status Critical Current

Links

Images

Abstract

The embodiment of the invention provides a block chain information query method, a device and equipment, wherein the method comprises the following steps: storing the characteristic information of the target object into a block chain; acquiring index information corresponding to the characteristic information; generating an identification code corresponding to the index information; the identification code is associated with the target object, so that the query equipment can acquire the index information for querying the feature information by identifying the identification code, the feature information stored in the block chain can be automatically queried according to the index information, a user does not need to manually input query keywords, and the query efficiency is improved.

Description

Block chain information query method, device and equipment
Technical Field
The present invention relates to the field of block chain technologies, and in particular, to a block chain information query method, apparatus, and device.
Background
A Block chain (Block chain) is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism, an encryption algorithm and the like. In a narrow sense, the blockchain is a distributed account book which is a chain data structure formed by combining data blocks in a sequential connection mode according to a time sequence and is guaranteed in a cryptographic mode and cannot be tampered and forged. Broadly, the blockchain technique is a completely new distributed infrastructure and computing approach that utilizes blockchain data structures to verify and store data, utilizes distributed node consensus algorithms to generate and update data, utilizes cryptography to secure data transmission and access, and utilizes intelligent contracts composed of automated script code to program and manipulate data.
At present, when a user wants to query information stored in a blockchain, the information stored in the blockchain is queried by manually inputting query words such as a wallet address, and the query efficiency is low.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method, an apparatus, and a device for querying blockchain information, so as to improve efficiency of querying blockchain information.
In a first aspect, an embodiment of the present invention provides a method for querying block chain information, including:
storing the characteristic information of the target object into a block chain;
acquiring index information corresponding to the characteristic information;
generating an identification code corresponding to the index information;
and associating the identification code with the target object so that the query equipment can acquire the index information for querying the characteristic information by identifying the identification code.
In a second aspect, an embodiment of the present invention provides an apparatus for querying block chain information, including:
the storage module is used for storing the characteristic information of the target object into the block chain;
the acquisition module is used for acquiring index information corresponding to the characteristic information;
the generating module is used for generating an identification code corresponding to the index information;
and the association module is used for associating the identification code with the target object so that the query equipment can acquire the index information for querying the characteristic information by identifying the identification code.
In a third aspect, an embodiment of the present invention provides an electronic device, including a first processor and a first memory, where the first memory is used to store one or more computer instructions, and when the one or more computer instructions are executed by the first processor, the block chain information query method in the first aspect is implemented. The electronic device may further comprise a first communication interface for communicating with other devices or a communication network.
An embodiment of the present invention provides a computer storage medium, configured to store a computer program, where the computer program enables a computer to implement the block chain information query method in the first aspect when executed.
In a fourth aspect, an embodiment of the present invention provides a method for querying block chain information, where the method is applied to a query device, and the method includes:
identifying an identification code associated with a target object to obtain index information corresponding to the identification code, wherein the index information corresponds to characteristic information of the target object;
and querying the characteristic information stored in the block chain according to the index information.
In a fifth aspect, an embodiment of the present invention provides an apparatus for querying block chain information, including:
the identification module is used for identifying an identification code associated with a target object to obtain index information corresponding to the identification code, wherein the index information corresponds to the characteristic information of the target object;
and the query module is used for querying the characteristic information stored in the block chain according to the index information.
In a sixth aspect, an embodiment of the present invention provides a query device, including a second processor and a second memory, where the second memory is used to store one or more computer instructions, and when the one or more computer instructions are executed by the second processor, the block chain information query method in the fourth aspect is implemented. The querying device may also include a second communication interface for communicating with other devices or a communication network.
An embodiment of the present invention provides a computer storage medium, configured to store a computer program, where the computer program enables a computer to implement the block chain information query method in the fourth aspect when executed.
In the block chain information query method provided in the embodiment of the present invention, first, feature information of a target object, for example, product detail information of a certain product, is stored in a block chain, and then, index information corresponding to the feature information of the target object is obtained, where the index information may be regarded as a query keyword and is used to query the feature information of the target object stored in the block chain. In order to facilitate query, after the characteristic information is stored in the block chain and the index information is obtained, an identification code corresponding to the index information, such as a two-dimensional code, is generated, and the identification code is associated with the target object, so that when a user wants to query the characteristic information, the index information serving as a query keyword can be automatically obtained by identifying the identification code associated with the target object, the characteristic information stored in the block chain is automatically queried according to the index information, the query keyword does not need to be manually input by the user, and the query efficiency is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
Fig. 1 is a flowchart of a block chain information query method according to an embodiment of the present invention;
fig. 2 is a flowchart of another block chain information query method according to an embodiment of the present invention;
fig. 3 is an interaction flowchart of a block chain information query method according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a block chain information query apparatus according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device corresponding to the block chain information query apparatus provided in the embodiment shown in fig. 4;
fig. 6 is a schematic structural diagram of another block chain information query apparatus according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a query device corresponding to the block chain information query apparatus provided in the embodiment shown in fig. 6.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terminology used in the embodiments of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the examples of the present invention and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, and "a" and "an" generally include at least two, but do not exclude at least one, unless the context clearly dictates otherwise.
It should be understood that the term "and/or" as used herein is merely one type of association that describes an associated object, meaning that three relationships may exist, e.g., a and/or B may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.
The words "if", as used herein, may be interpreted as "at … …" or "at … …" or "in response to a determination" or "in response to a detection", depending on the context. Similarly, the phrases "if determined" or "if detected (a stated condition or event)" may be interpreted as "when determined" or "in response to a determination" or "when detected (a stated condition or event)" or "in response to a detection (a stated condition or event)", depending on the context.
It is also noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a good or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such good or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a commodity or system that includes the element.
In addition, the sequence of steps in each method embodiment described below is only an example and is not strictly limited.
Fig. 1 is a flowchart of a block chain information query method according to an embodiment of the present invention, which may be executed by a terminal device on an owner side of a target object. As shown in fig. 1, the method comprises the steps of:
101. and storing the characteristic information of the target object into the block chain.
102. Index information corresponding to the feature information is acquired.
103. And generating an identification code corresponding to the index information.
104. And associating the identification code with the target object so that the query equipment can acquire the index information for querying the characteristic information by identifying the identification code.
In the embodiment of the present invention, the target object may be, for example, a certain product, and the characteristic information may be product detail information. For example, the product is an agricultural product, and the characteristic information is information such as a production place and a production date of the agricultural product. For another example, the target object may be a certain enterprise, and the characteristic information may be related information of the assets and the generated products of the enterprise.
Assuming that the terminal device of the owner of the target object is a, in an optional embodiment, on one hand, the terminal device a may store the feature information of the target object in a block chain, that is, in a certain block in the block chain, and on the other hand, may also generate index information corresponding to the feature information in the process of storing the feature information into the block chain, and at this time, the index information generated by the terminal device a may also be stored into the block chain together, so that each subsequent related user may query the feature information of the target object based on the index information.
It should be noted that the index information may be obtained by performing a certain processing on the feature information, for example, may be some kind of information extracted from the feature information, or may be a result obtained by performing a certain operation on the feature information, for example, a hash operation.
In combination with the actual query requirement, optionally, the index information may be identity information corresponding to the target object, so that all feature information of the same target object may be queried based on the identity information, where the identity information of the target object may be, for example, a wallet address corresponding to the target object, that is, the index information may include the wallet address corresponding to the target object.
Alternatively, the index information may also be corresponding to a piece of feature information currently stored, for example, a hash value obtained by performing a hash operation on the feature information, so that a specific piece of feature information may be queried based on the hash value. That is, the acquiring of the index information corresponding to the feature information may be implemented as: and performing hash operation on the characteristic information to obtain a hash value serving as index information, and storing the characteristic information of the target object and the hash value into the block chain.
In an alternative embodiment, still assuming that the terminal device of the owner of the target object is a, when the index information is generated by the terminal device a, the process of the terminal device a storing the feature information of the target object and the index information into the block chain may be: the terminal device A broadcasts the characteristic information and the index information to each node in the block chain network, and at the moment, the terminal device A is also regarded as one node in the block chain network, so that each node in the block chain network can compete for the processing authority of the characteristic information and the index information, if the terminal device A obtains the authority, the terminal device A stores the characteristic information and the index information into a block, and when the data stored in the block reaches a certain data volume, the block is connected to the block chain, so that the storage of the characteristic information and the index information in the block chain is realized.
In another optional embodiment, the process of the terminal device a storing the feature information of the target object in the block chain and acquiring the index information may be further implemented as follows: the terminal device A broadcasts the characteristic information of the target object to nodes in a block chain network so as to enable the nodes to carry out hash operation on the characteristic information to obtain a hash value, and the hash value and the characteristic information are stored in a block chain; the terminal device a further receives the hash value and the chunk identifier sent by the node, where the chunk identifier is an identifier of a chunk storing the hash value and the characteristic information, and at this time, the index information may include the hash value and the chunk identifier.
It can be understood that, after the terminal device a broadcasts the feature information of the target object to each node in the block chain network, each node competes for the authority to process the feature information based on a certain competition mechanism, and assuming that the node B obtains the authority, the node B needs to store the feature information into the block chain. In this process, the node B needs to generate index information corresponding to the feature information and feed the index information back to the terminal device a, and needs to store the index information and the feature information into the block chain, that is, add the feature information and the index information to the current block, and connect the block into the block chain when the data amount of the block reaches a certain threshold.
Optionally, as mentioned above, the index information generated by the node B may include a wallet address of the target object, or may further include a hash value corresponding to the characteristic information, or may further include, in addition to the hash value, a chunk identifier corresponding to the characteristic information, where the chunk identifier may be a number of a chunk storing the characteristic information, or may be a chunk hash value of the chunk. Based on the composition structure of the block chain, a block is composed of a block header and a block body, and the block header contains the hash value corresponding to the block body of the block.
The index information contains the block identifier, and the purpose of the index information is that when the characteristic information needs to be inquired, the block identifier can be directly positioned to the block needing to be inquired based on the block identifier, and then the characteristic information corresponding to the hash value can be inquired from a plurality of information stored in the block based on the hash value corresponding to the characteristic information, so that the inquiry efficiency of the characteristic information is improved.
In summary, regardless of whether the terminal device a generates the index information corresponding to the feature information by itself or receives the index information corresponding to the feature information from another node in the blockchain network, after the terminal device a obtains the index information, an identification code corresponding to the index information may be generated, where the identification code may be a barcode, a two-dimensional code, a QR code, or the like. Furthermore, the terminal device a may associate the identification code with the target object, so that when the inquirer wants to inquire the feature information of the target object, the index information for inquiring the feature information may be automatically obtained only by scanning and identifying the identification code through the inquiring device, so as to further invoke the block chain inquiring interface, and automatically input the index information to the inquiring interface to complete the inquiry of the feature information.
The identification code is associated with the target object, and when the target object is an entity product, the association can be embodied as, for example, attaching a sticker bearing the identification code to the product; when the target object is an electronic product propagated on a network, the association may be embodied, for example, by loading the identification code into a suitable location of the electronic product so that the inquirer finds the identification code.
In the embodiment of the invention, on the premise that the characteristic information of the target object is stored in the block chain, the index information corresponding to the characteristic information of the target object is acquired, the identification code corresponding to the index information is generated, and the identification code is associated with the target object, so that when a user wants to query the characteristic information, the index information serving as a query keyword can be automatically acquired by identifying the identification code associated with the target object, the characteristic information stored in the block chain is automatically queried by the index information, the query keyword does not need to be manually input by the user, and the query efficiency is improved.
Fig. 2 is a flowchart of another block chain information query method according to an embodiment of the present invention, where an execution subject of the block chain information query method may be a query device of a querier. As shown in fig. 2, the following steps may be included:
201. and identifying the identification code associated with the target object to obtain index information corresponding to the identification code, wherein the index information corresponds to the characteristic information of the target object.
202. And querying the characteristic information stored in the block chain according to the index information.
Optionally, the index information may include a hash value corresponding to the characteristic information, or the index information includes a wallet address corresponding to the target object, or the index information includes a hash value corresponding to the characteristic information and an identifier of a block in which the characteristic information is stored.
In practical application, the query device may be installed with a query application specifically configured to query information stored in the blockchain, and the query application may provide an identification code recognition function, so that a querier may scan and recognize an identification code associated with a target object by starting the identification code recognition function to obtain corresponding index information through analysis, and automatically query the blockchain with the index information to obtain corresponding feature information.
The following describes an example of a storage process of feature information of the target object, an acquisition process of index information, and a query process of feature information in practical application, with reference to the embodiment shown in fig. 3. In the embodiment shown in fig. 3, it is assumed that the terminal device of the owner of the target object is terminal device a, the node B in the blockchain network that obtains the authority to process the feature information of the target object is node B, and the query device of the querier is query device C.
Fig. 3 is an interaction flowchart of a block chain information query method according to an embodiment of the present invention, as shown in fig. 3, which may include the following steps:
301. the terminal device a broadcasts the characteristic information of the target object to the nodes in the blockchain network.
302. And the node B performs hash operation on the characteristic information to obtain a hash value, and stores the hash value and the characteristic information into a target block in the block chain.
303. And the node B sends the hash value and the identification of the target block to the terminal device A.
304. The terminal device A generates an identification code corresponding to the hash value and the identification of the target block, and associates the identification code with the target object.
305. The inquiry device C identifies the identification code to obtain the hash value and the identification of the target block.
306. And the query equipment C locates the target block according to the identification of the target block and queries the characteristic information corresponding to the hash value stored in the target block.
The block chain information query device according to one or more embodiments of the present invention will be described in detail below. Those skilled in the art will appreciate that each of these blockchain information query devices may be configured using commercially available hardware components through the steps taught in this embodiment.
Fig. 4 is a schematic structural diagram of a block chain information query apparatus according to an embodiment of the present invention, as shown in fig. 4, the apparatus includes: the device comprises a storage module 11, an acquisition module 12, a generation module 13 and an association module 14.
And the storage module 11 is used for storing the characteristic information of the target object into the block chain.
An obtaining module 12, configured to obtain index information corresponding to the feature information.
And a generating module 13, configured to generate an identification code corresponding to the index information.
And the association module 14 is configured to associate the identification code with the target object, so that the query device obtains the index information for querying the feature information by identifying the identification code.
Optionally, the obtaining module 12 may be configured to: and carrying out Hash operation on the characteristic information to obtain a Hash value serving as the index information.
Accordingly, the storage module 11 may be configured to: storing the characteristic information and the hash value into a blockchain.
Optionally, the index information may further include: the wallet address corresponding to the target object.
Optionally, the storage module 11 may further be configured to: broadcasting the characteristic information to nodes in a block chain network so that the nodes perform hash operation on the characteristic information to obtain a hash value, and storing the hash value and the characteristic information into a block chain.
Accordingly, the obtaining module 12 may be further configured to: and receiving the hash value and a block identifier sent by the node, wherein the block identifier is an identifier of a block storing the characteristic information and the hash value, and the index information comprises the hash value and the block identifier.
The apparatus shown in fig. 4 can perform the method of the embodiment shown in fig. 1, and reference may be made to the related description of the embodiment shown in fig. 1 for a part of this embodiment that is not described in detail. The implementation process and technical effect of the technical solution refer to the description in the embodiment shown in fig. 1, and are not described herein again.
The internal functions and structures of the block chain information query apparatus are described above, and in one possible design, the structure of the block chain information query apparatus may be implemented as an electronic device, which may be a terminal device of an owner of a target object, as shown in fig. 5, and the electronic device may include: a first processor 21 and a first memory 22. The first memory 22 is used for storing a program that supports an electronic device to execute the block chain information query method provided in the embodiment shown in fig. 1, and the first processor 21 is configured to execute the program stored in the first memory 22.
The program comprises one or more computer instructions which, when executed by the first processor 21, are capable of performing the steps of:
storing the characteristic information of the target object into a block chain;
acquiring index information corresponding to the characteristic information;
generating an identification code corresponding to the index information;
and associating the identification code with the target object so that the query equipment can acquire the index information for querying the characteristic information by identifying the identification code.
The electronic device may further include a first communication interface 23, which is used for the electronic device to communicate with other devices or a communication network.
In addition, an embodiment of the present invention provides a computer storage medium for storing computer software instructions for an electronic device, which includes a program for performing the block chain information query method according to the embodiment of the method shown in fig. 1.
Fig. 6 is a schematic structural diagram of another block chain information query apparatus according to an embodiment of the present invention, as shown in fig. 6, the apparatus includes: an identification module 31 and a query module 32.
The identification module 31 is configured to identify an identification code associated with a target object to obtain index information corresponding to the identification code, where the index information corresponds to feature information of the target object.
A query module 32, configured to query the feature information stored in the blockchain according to the index information.
The index information includes a hash value corresponding to the feature information, or the index information includes a wallet address corresponding to the target object, or the index information includes a hash value corresponding to the feature information and an identifier of a block in which the feature information is stored.
The apparatus shown in fig. 6 can perform the method of the embodiment shown in fig. 2, and reference may be made to the related description of the embodiment shown in fig. 2 for a part of this embodiment that is not described in detail. The implementation process and technical effect of the technical solution refer to the description in the embodiment shown in fig. 2, and are not described herein again.
The internal functions and structures of the block chain information query apparatus are described above, and in one possible design, the structure of the block chain information query apparatus may be implemented as a query device, which may be a terminal device of a querier, as shown in fig. 7, and the query device may include: a second processor 41 and a second memory 42. The second memory 42 is used for storing a program that supports an electronic device to execute the block chain information query method provided in the embodiment shown in fig. 2, and the second processor 41 is configured to execute the program stored in the second memory 42.
The program comprises one or more computer instructions which, when executed by the second processor 41, are capable of performing the steps of:
identifying an identification code associated with a target object to obtain index information corresponding to the identification code, wherein the index information corresponds to characteristic information of the target object;
and querying the characteristic information stored in the block chain according to the index information.
Optionally, the second processor 41 is further configured to perform all or part of the steps in the foregoing embodiment shown in fig. 2.
The querying device may further include a second communication interface 43, configured to communicate with another device or a communication network.
In addition, an embodiment of the present invention provides a computer storage medium for storing computer software instructions for an inquiring apparatus, which includes a program for executing the block chain information inquiring method of the embodiment of the method shown in fig. 2.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by adding a necessary general hardware platform, and of course, can also be implemented by a combination of hardware and software. With this understanding in mind, the above-described aspects and portions of the present technology which contribute substantially or in part to the prior art may be embodied in the form of a computer program product, which may be embodied on one or more computer-usable storage media having computer-usable program code embodied therein, including without limitation disk storage, CD-ROM, optical storage, and the like.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A method for querying block chain information, comprising:
storing the characteristic information of the target object into a block chain;
acquiring index information corresponding to the characteristic information;
generating an identification code corresponding to the index information;
and associating the identification code with the target object so that the query equipment can acquire the index information for querying the characteristic information by identifying the identification code.
2. The method of claim 1, wherein the obtaining of the index information corresponding to the feature information comprises:
performing hash operation on the characteristic information to obtain a hash value serving as the index information;
the storing the feature information of the target object into the block chain includes:
storing the characteristic information and the hash value into a blockchain.
3. The method according to claim 1 or 2, wherein the index information comprises: the wallet address corresponding to the target object.
4. The method of claim 1, wherein storing feature information of the target object into the blockchain comprises:
broadcasting the characteristic information to nodes in a block chain network so that the nodes perform hash operation on the characteristic information to obtain a hash value, and storing the hash value and the characteristic information into a block chain;
the acquiring of the index information corresponding to the feature information includes:
and receiving the hash value and a block identifier sent by the node, wherein the block identifier is an identifier of a block storing the characteristic information and the hash value, and the index information comprises the hash value and the block identifier.
5. An apparatus for querying block chain information, comprising:
the storage module is used for storing the characteristic information of the target object into the block chain;
the acquisition module is used for acquiring index information corresponding to the characteristic information;
the generating module is used for generating an identification code corresponding to the index information;
and the association module is used for associating the identification code with the target object so that the query equipment can acquire the index information for querying the characteristic information by identifying the identification code.
6. An electronic device, comprising: a memory, a processor; wherein the content of the first and second substances,
the memory is configured to store one or more computer instructions, wherein the one or more computer instructions, when executed by the processor, implement the blockchain information query method of any one of claims 1 to 4.
7. A method for querying block chain information, comprising:
identifying an identification code associated with a target object to obtain index information corresponding to the identification code, wherein the index information corresponds to characteristic information of the target object;
and querying the characteristic information stored in the block chain according to the index information.
8. The method according to claim 7, wherein the index information comprises a hash value corresponding to the characteristic information, or wherein the index information comprises a wallet address corresponding to the target object, or wherein the index information comprises the hash value corresponding to the characteristic information and an identification of a block in which the characteristic information is stored.
9. An apparatus for querying block chain information, comprising:
the identification module is used for identifying an identification code associated with a target object to obtain index information corresponding to the identification code, wherein the index information corresponds to the characteristic information of the target object;
and the query module is used for querying the characteristic information stored in the block chain according to the index information.
10. An inquiry apparatus, comprising: a memory, a processor; wherein the content of the first and second substances,
the memory is configured to store one or more computer instructions, wherein the one or more computer instructions, when executed by the processor, implement the blockchain information query method of claim 7 or 8.
CN201810643603.1A 2018-06-21 2018-06-21 Block chain information query method, device and equipment Pending CN110704418A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810643603.1A CN110704418A (en) 2018-06-21 2018-06-21 Block chain information query method, device and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810643603.1A CN110704418A (en) 2018-06-21 2018-06-21 Block chain information query method, device and equipment

Publications (1)

Publication Number Publication Date
CN110704418A true CN110704418A (en) 2020-01-17

Family

ID=69192154

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810643603.1A Pending CN110704418A (en) 2018-06-21 2018-06-21 Block chain information query method, device and equipment

Country Status (1)

Country Link
CN (1) CN110704418A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111563365A (en) * 2020-03-31 2020-08-21 岭东核电有限公司 Test standard work order modification information processing method and device and computer equipment
CN112101856A (en) * 2020-08-17 2020-12-18 北京康拓红外技术股份有限公司 Railway freight transportation management platform and method based on block chain technology
CN112487065A (en) * 2020-12-09 2021-03-12 中国联合网络通信集团有限公司 Data retrieval method and device
CN112528323A (en) * 2020-12-09 2021-03-19 联通(浙江)产业互联网有限公司 Data processing method and device
CN113658663A (en) * 2021-09-02 2021-11-16 泰康保险集团股份有限公司 Prescription information transfer method and device, electronic equipment and storage medium
CN113722385A (en) * 2021-11-03 2021-11-30 腾讯科技(深圳)有限公司 Data query method, device, equipment and storage medium based on block chain network
CN115952220A (en) * 2023-03-10 2023-04-11 布比(北京)网络技术有限公司 Bill processing method and device based on block chain, electronic equipment and medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102891872A (en) * 2011-07-20 2013-01-23 中兴通讯股份有限公司 Method and system for storing and searching data in peer to peer (P2P) network
CN103377269A (en) * 2012-04-27 2013-10-30 国际商业机器公司 Sensor data positioning method and device
CN106959963A (en) * 2016-01-12 2017-07-18 杭州海康威视数字技术股份有限公司 A kind of data query method, apparatus and system
CN107135661A (en) * 2016-12-26 2017-09-05 深圳前海达闼云端智能科技有限公司 Data processing method, device, system and information collecting device
CN107273556A (en) * 2017-08-23 2017-10-20 上海点融信息科技有限责任公司 Block chain data index method and equipment
CN107396360A (en) * 2017-08-15 2017-11-24 中国联合网络通信集团有限公司 Block verification method and device
CN107819770A (en) * 2017-11-15 2018-03-20 中国联合网络通信集团有限公司 Medical data sharing method for secret protection and device based on block chain
CN107870983A (en) * 2017-09-30 2018-04-03 深圳市易成自动驾驶技术有限公司 Vehicle peccancy approaches to IM, block chain and storage medium based on block chain

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102891872A (en) * 2011-07-20 2013-01-23 中兴通讯股份有限公司 Method and system for storing and searching data in peer to peer (P2P) network
CN103377269A (en) * 2012-04-27 2013-10-30 国际商业机器公司 Sensor data positioning method and device
CN106959963A (en) * 2016-01-12 2017-07-18 杭州海康威视数字技术股份有限公司 A kind of data query method, apparatus and system
CN107135661A (en) * 2016-12-26 2017-09-05 深圳前海达闼云端智能科技有限公司 Data processing method, device, system and information collecting device
CN107396360A (en) * 2017-08-15 2017-11-24 中国联合网络通信集团有限公司 Block verification method and device
CN107273556A (en) * 2017-08-23 2017-10-20 上海点融信息科技有限责任公司 Block chain data index method and equipment
CN107870983A (en) * 2017-09-30 2018-04-03 深圳市易成自动驾驶技术有限公司 Vehicle peccancy approaches to IM, block chain and storage medium based on block chain
CN107819770A (en) * 2017-11-15 2018-03-20 中国联合网络通信集团有限公司 Medical data sharing method for secret protection and device based on block chain

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111563365A (en) * 2020-03-31 2020-08-21 岭东核电有限公司 Test standard work order modification information processing method and device and computer equipment
CN111563365B (en) * 2020-03-31 2023-09-19 岭东核电有限公司 Method and device for processing modification information of test standard worksheet and computer equipment
CN112101856A (en) * 2020-08-17 2020-12-18 北京康拓红外技术股份有限公司 Railway freight transportation management platform and method based on block chain technology
CN112487065A (en) * 2020-12-09 2021-03-12 中国联合网络通信集团有限公司 Data retrieval method and device
CN112528323A (en) * 2020-12-09 2021-03-19 联通(浙江)产业互联网有限公司 Data processing method and device
CN113658663A (en) * 2021-09-02 2021-11-16 泰康保险集团股份有限公司 Prescription information transfer method and device, electronic equipment and storage medium
CN113722385A (en) * 2021-11-03 2021-11-30 腾讯科技(深圳)有限公司 Data query method, device, equipment and storage medium based on block chain network
CN115952220A (en) * 2023-03-10 2023-04-11 布比(北京)网络技术有限公司 Bill processing method and device based on block chain, electronic equipment and medium

Similar Documents

Publication Publication Date Title
CN110704418A (en) Block chain information query method, device and equipment
CN108270629B (en) Website visitor behavior monitoring method and device
CN109660574B (en) Data providing method and device
CN111738737B (en) Method, device and equipment for generating digital property right certificate
US9977995B2 (en) Image clustering method, image clustering system, and image clustering server
CN110046303B (en) Information recommendation method and device based on demand matching platform
CN111488291A (en) Pressure testing method, device and system for block chain network
CN113220657B (en) Data processing method and device and computer equipment
CN106648839B (en) Data processing method and device
CN112015806A (en) Method and device for storing data by block chain
KR20170039658A (en) Information operation
CN107016028B (en) Data processing method and apparatus thereof
CN110019357B (en) Database query script generation method and device
CN110706035B (en) Updating effect evaluation method and device, storage medium and electronic equipment
CN111782946A (en) Book friend recommendation method, calculation device and computer storage medium
CN111177093A (en) Method, device and medium for sharing scientific and technological resources
CN108255955B (en) Data processing method and device
CN108345600B (en) Management of search application, data search method and device thereof
CN106886546B (en) Construction method and equipment of data website
CN114329495A (en) Endogenous security based asset vulnerability static analysis method and device
CN104572649B (en) The processing method of the data of distributed memory system, apparatus and system
CN110309312B (en) Associated event acquisition method and device
KR101802068B1 (en) Graph-based information system and method for identification event and master data
CN106569791B (en) Data object processing method and device
US20090150446A1 (en) Authenticity investigation methods, devices and computer program products

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200117