CN109145209B - Method, apparatus and storage medium for searching blockchain data - Google Patents

Method, apparatus and storage medium for searching blockchain data Download PDF

Info

Publication number
CN109145209B
CN109145209B CN201810878170.8A CN201810878170A CN109145209B CN 109145209 B CN109145209 B CN 109145209B CN 201810878170 A CN201810878170 A CN 201810878170A CN 109145209 B CN109145209 B CN 109145209B
Authority
CN
China
Prior art keywords
data
blockchain data
uniform resource
blockchain
address
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.)
Active
Application number
CN201810878170.8A
Other languages
Chinese (zh)
Other versions
CN109145209A (en
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.)
Shanghai Dianrong Information Technology Co ltd
Original Assignee
Shanghai Dianrong 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 Shanghai Dianrong Information Technology Co ltd filed Critical Shanghai Dianrong Information Technology Co ltd
Priority to CN201810878170.8A priority Critical patent/CN109145209B/en
Publication of CN109145209A publication Critical patent/CN109145209A/en
Priority to PCT/CN2019/098184 priority patent/WO2020024902A1/en
Application granted granted Critical
Publication of CN109145209B publication Critical patent/CN109145209B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9535Search customisation based on user profiles and personalisation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking

Abstract

The present disclosure provides a method for searching blockchain data, the method comprising: A. receiving a web page reading request sent by user equipment via a hypertext transfer protocol interface, wherein the web page reading request comprises a first uniform resource location address; B. obtaining first blockchain data at the first uniform resource locator address; C. determining whether at least one second uniform resource locator address exists, wherein second blockchain data at the at least one second uniform resource locator address is associated with the first blockchain data; D. under the condition that the at least one second uniform resource positioning address exists, generating a webpage associated with the first uniform resource positioning address according to the first block chain data and the at least one second uniform resource positioning address; returning the web page to the user device via the hypertext transfer protocol interface.

Description

Method, apparatus and storage medium for searching blockchain data
Technical Field
The present disclosure relates to a blockchain search technology, and more particularly, to a method for searching blockchain data, an apparatus for searching blockchain data for performing the method for searching blockchain data, and a corresponding computer-readable storage medium.
Background
Blockchains (Blockchain) are intelligent peer-to-peer networks that use distributed databases to identify, disseminate, and document information, also known as value internet. The value internet means that users can conveniently, quickly and inexpensively transmit values through a network.
Disclosure of Invention
Embodiments of the present invention provide a method, an apparatus, and a computer-readable storage medium for searching blockchain data, which enable a user to directly gather information from a blockchain network via a user device, thereby implementing an access service for the blockchain network.
To this end, in a first aspect thereof the embodiments of the present invention provide a method for searching blockchain data, the method comprising: receiving a web page reading request sent by user equipment via a hypertext transfer protocol interface, wherein the web page reading request comprises a first uniform resource location address; obtaining first blockchain data at the first uniform resource locator address; determining whether at least one second uniform resource locator address exists, wherein second blockchain data at the at least one second uniform resource locator address is associated with the first blockchain data; under the condition that the at least one second uniform resource positioning address exists, generating a webpage associated with the first uniform resource positioning address according to the first block chain data and the at least one second uniform resource positioning address; and returning the web page to the user device via the hypertext transfer protocol interface.
Furthermore, a second aspect of embodiments of the present invention also provides an apparatus for searching blockchain data, the data apparatus comprising: a processor; and a memory for storing instructions that, when executed, cause the processor to: receiving a web page reading request sent by user equipment via a hypertext transfer protocol interface, wherein the web page reading request comprises a first uniform resource location address; obtaining first blockchain data at the first uniform resource locator address; determining whether at least one second uniform resource locator address exists, wherein second blockchain data at the at least one second uniform resource locator address is associated with the first blockchain data; under the condition that the at least one second uniform resource positioning address exists, generating a webpage associated with the first uniform resource positioning address according to the first block chain data and the at least one second uniform resource positioning address; and returning the web page to the user device via the hypertext transfer protocol interface.
Finally, a third aspect of embodiments of the present invention provides a computer readable storage medium having stored thereon computer readable program instructions for executing the method for searching blockchain data according to the first aspect of embodiments of the present invention.
In the embodiment of the invention, the block chain node can process the request sent by the user equipment by adding the hypertext transfer protocol interface; furthermore, the user equipment can view the blockchain data displayed in the form of the webpage by generating the blockchain data into the webpage; in addition, by adding the uniform resource locator address to the generated webpage, the user equipment can view other blockchain data by clicking the uniform resource locator address in the webpage, wherein the uniform resource locator address is displayed in a webpage link mode. Therefore, the embodiment of the invention enables the user equipment to view the information existing in the block chain, namely, the viewing service for the block chain network is realized. Other advantages of the present invention will be further described below.
Drawings
The features, advantages and other aspects of various embodiments of the present invention will become more apparent by referring to the following detailed description in conjunction with the accompanying drawings, in which several embodiments of the invention are shown by way of illustration and not limitation, wherein:
fig. 1 shows a flow chart of a method 100 for searching blockchain data according to the present disclosure;
FIG. 2 illustrates a network architecture diagram 200 in which the method 100 shown in FIG. 1 can be implemented;
FIG. 3 shows a schematic diagram 300 of keyed blockchain data having an attribute A1;
FIG. 4 shows a schematic diagram 400 of ledgers to store public and private data;
fig. 5 shows an example of blockchain data 500 having an attribute a2 stored in a Key Value (Key/Value) manner;
FIG. 6 is a diagram illustrating an apparatus 600 for searching blockchain data according to an embodiment of the present invention; and
fig. 7 is a diagram illustrating an apparatus 700 for searching blockchain data according to another embodiment of the present invention.
Detailed Description
Various exemplary embodiments of the present invention are described in detail below with reference to the accompanying drawings. Although the exemplary methods, apparatus, and devices described below include software and/or firmware executed on hardware among other components, it should be noted that these examples are merely illustrative and should not be considered as limiting. For example, it is contemplated that any or all of the hardware, software, and firmware components could be embodied exclusively in hardware, exclusively in software, or in any combination of hardware and software. Thus, while the following describes example methods and apparatus, persons of ordinary skill in the art will readily appreciate that the examples provided are not intended to limit the manner in which the methods and apparatus may be implemented.
Furthermore, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of methods and systems according to various embodiments of the present invention. It should be noted that the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
Reading in the term "web page reading request" in the present disclosure includes crawling a web page by a search engine and retrieving the web page by a user through a user device, where retrieving the web page by the user device specifically means that the user views the web page generated by the blockchain data through the user device.
The term "user equipment" in the context of the present invention refers to a smart terminal including, but not limited to, a smartphone, a tablet, a desktop, a laptop.
The term "Uniform Resource Locator address" in the present disclosure refers to an address of a standard Resource on the internet, which is also called a Uniform Resource Locator (URL) or a web page address. Accordingly, the term "first uniform resource locator" in the disclosure of the present invention refers to the current level of uniform resource locator, i.e. the current level of URL, when the method for searching blockchain data according to the present invention is executed; the term "second URL" in the present disclosure refers to a next URL, which is a next URL when the method for searching blockchain data according to the present invention is performed.
The term "first blockchain data" in this disclosure refers to blockchain data at a first uniform resource location address in a blockchain; correspondingly, the term "second blockchain data" in the context of the present invention refers to blockchain data at a second uniform resource location address in the blockchain.
The term "public data" in the context of the present invention refers to data that is accessible without authentication, whereas "private data" refers to data that is accessible without authentication.
The term "attribute a 1" in the context of the present invention refers to a data format name for indicating a data parsing method of the blockchain data or a data format parsing function name, a data format parsing service address, or a data format parsing smart contract address for indicating a data parsing method of the blockchain data. And the term "attribute a 2" is used to mark blockchain data as private or public, where "attribute a 2" has a first value when the blockchain data is public data, and "attribute a 2" has a second value different from the first value when the blockchain data is private data.
The terms "first" and "second" in this summary are used merely to describe a reference, an object, or something specific, and are not to be construed as indicating or implying relative importance or implying any number of technical features indicated.
The term "plurality" in the context of the present invention means two or more.
The present invention has appeared in the context of the present invention the terms "retrieve" and "search", where the term "retrieve" refers to the process of crawling, processing, indexing and traversing blockchain data by a search engine through a web crawler, and the term "search" refers to the search engine receiving a search of previously indexed web content after a user has entered keywords on a search engine page.
The expression "second blockchain data at the at least one second uniform resource locator address is associated with the first blockchain data" in the present disclosure means that the hierarchical attribute and the predetermined hierarchical relationship tree included in the first blockchain data indicate whether there is an association relationship of the second blockchain data at the second uniform resource locator address.
The term "hierarchical relationship tree" in the context of the present invention refers to a predetermined logical relationship tree that indicates the hierarchical structure of the web page generated by the accessed blockchain data.
The term "hierarchical attribute" in the context of the present invention refers to information indicating to which level in the hierarchical relationship tree described above the uniform resource locator address associated with the read web page belongs.
The term "first attribute" in the present disclosure is used to mark blockchain data as private or public, wherein the term "first value" indicates that the blockchain data associated therewith is public data, and the term "second value" indicates that the blockchain data associated therewith is private data.
The term "public ledger" in the context of the present invention refers to a blockchain ledger in which only public data is stored that is accessible without authentication.
The term "privacy ledger" in the context of the present invention refers to a blockchain ledger in which only privacy data that requires authentication to be accessible is stored.
The term "public area of the ledger" in the context of the present invention refers to an area in the ledger for storing public data.
The term "privacy zone of the ledger" in the context of the present invention refers to a zone in the ledger for storing privacy data.
As described above, the user cannot view the data located on the blockchain through the current user device. In order to implement a data viewing service with excellent performance for a blockchain network, embodiments of the present invention mainly focus on the following problems: firstly, the current block chain node cannot process a hypertext transfer protocol request sent by user equipment; secondly, in the blockchain network, the information is stored in a specific data format, and is not in a webpage text form, so that the user equipment cannot directly view the blockchain data.
In addition, a blockchain network may store both public and private data, which should be distinguished during the user's view through the user device.
To solve these problems and implement a data viewing service for blockchain networks, an embodiment of the present invention first provides a hypertext transfer protocol interface, for example located in a blockchain node, enabling the blockchain node to process a hypertext transfer protocol request sent by a user equipment. Secondly, the embodiment of the invention also provides a method for converting data in a specific data format, such as XML or JSON, into a webpage. Furthermore, the embodiment of the invention adds the uniform resource positioning address of other web pages into the web page as information, so that the user equipment can be linked to other web pages through the web page, and the web page viewing function aiming at the block link network is realized. In addition, the embodiment of the invention also performs distinguishing processing on public data and private data in the blockchain network. For a more specific implementation and other advantages of the present invention, reference is made to the following description.
Fig. 1 shows a flow chart of the method 100 for searching blockchain data, and as can be seen from fig. 1, the method 100 includes at least five steps, namely, first receiving a web page reading request sent by a user equipment via a hypertext transfer protocol interface in a method step 110, wherein the web page reading request includes a first uniform resource locator address; first blockchain data at the first uniform resource locator address is then obtained in method step 120; next, in a method step 130, it is determined whether at least one second uniform resource locator address is present, wherein second blockchain data at the at least one second uniform resource locator address is associated with the first blockchain data; then in method step 140, in the presence of the at least one second uniform resource locator address, a web page associated with the first uniform resource locator address is generated from the first blockchain data and the at least one second uniform resource locator address; finally, the web page is returned to the user device via the hypertext transfer protocol interface in a method step 150.
By providing a hypertext transfer protocol interface on one hand and a way of generating a webpage associated with data in the blockchain data according to the blockchain data on the other hand, the user equipment can view the webpage associated with the blockchain data, thereby realizing the view of the blockchain data by the user equipment.
A schematic diagram of a network architecture in which the proposed method according to the present invention can be implemented is described below with reference to fig. 2. Fig. 2 shows a network architecture diagram 200 in which the method 100 according to fig. 1 can be implemented. As can be seen in the figure, architecture 200 includes blockchain nodes 211, 212, 213, 214, 215, and 216. These blockchain nodes may synchronize data through the network, but the current blockchain network does not support the user device 220 to view its data.
As previously described, the user equipment 220 can then access the blockchain network through the hypertext transfer protocol interface provided at the blockchain link point, such as blockchain node 212. The user device 230 can implement the view of the blockchain data through a specific web page read request.
The implementation of how to generate a web page associated with data in blockchain data can be varied. For example, the data of the blockchain pointed by the first Uniform Resource Locator (URL) can be generated in the web page, and in the case that at least one second Uniform Resource Locator (URL) exists, the second URL can also be presented on the web page, so that the web page can include both the data of the blockchain and the URL. In the case of multiple uniform resource locator address URLs, these uniform resource locator address URLs can be arranged sequentially on the web page. This can also be achieved by generating a logical search tree associated with the data in the blockchain data from its logical relationship.
When specifically acquiring the web page information, the user device 220 may access an entry address (e.g., http:// test. com. homepage) of the block chain, so that the user device can access the block chain. After receiving a web page reading request at a blockchain side, first obtaining first blockchain data at a Uniform Resource Locator (URL) according to the URL contained in the web page reading request, and then judging whether other URLs exist, specifically judging how to judge, judging whether at least one second URL exists according to a hierarchical attribute included in the first blockchain data and a predetermined hierarchical relation tree. If the predetermined hierarchical relationship tree indicates that at least one second uniform resource locator exists, the second uniform resource locator is also placed in the generated web page.
And then returning the webpage to the user equipment. The user device, upon receiving the returned web page, is able to view the web page. Of course, the ue can also further initiate a further web page read request to the blockchain network side to capture subsequent blockchain data.
Specifically, when the web page is generated, the hierarchical attribute included in the blockchain data can also play a very important role, and whether at least one second uniform resource locator URL exists or not is determined according to the hierarchical attribute included in the first blockchain data and a predetermined hierarchical relationship tree. Specifically, for example, if the hierarchical attribute of the blockchain data a is "finance", and the predetermined hierarchical relationship tree indicates that there is blockchain data B having the hierarchical attribute of "finance/blockchain finance", then the blockchain data B is the next-level blockchain data of the blockchain data a. If the web page read request is to fetch the blockchain data a having the hierarchical attribute of "finance", the uniform resource location address URL pointing to the blockchain data B having the hierarchical attribute of "finance/blockchain finance" is also generated on the web page, i.e., the generated web page includes the uniform resource location address URL pointing to the blockchain data B having the hierarchical attribute of "finance/blockchain finance".
For another example, if the hierarchical attribute of the blockchain data C is "china", and the predetermined hierarchical relationship tree indicates that there is another blockchain data D whose hierarchical attribute is "china/shanghai", the blockchain data D is the next-level blockchain data of the blockchain data C. If the webpage reading request is to capture the blockchain data C with the hierarchical attribute of "china", the uniform resource location address URL pointing to the blockchain data D with the hierarchical attribute of "china/shanghai" is also generated on the webpage, that is, the generated webpage contains the uniform resource location address URL pointing to the blockchain data D with the hierarchical attribute of "china/shanghai".
There is also a possibility that there is no other URL, and the web page can be generated only according to the blockchain data pointed to by the URL included in the web page read request.
In addition, in order to achieve correct resolution of the blockchain data associated with the link address through the link address, the inventor of the present disclosure proposes to configure an attribute a1 for the blockchain data, where the attribute a1 is used to specify the resolution mode of the blockchain data. For example, the attribute a1 includes a data format name indicating a data parsing method of the block chain data. Those skilled in the art will appreciate that this attribute a1 can also include a data format resolution function name, a data format resolution service address, or a data format resolution smart contract address for indicating a data resolution method for the public data and the private data.
At this time, when the user device accesses the entry address, the attribute A1 indicates a specific data format (e.g., XML, JSON, etc.) of each data in K/V/A1 of the data; when the user equipment accesses the entry address, a data list which can be searched on the block chain is displayed, and when the user equipment views any K value, the block chain calls a corresponding analysis method according to the value of the corresponding attribute A1 to analyze the data and generate a corresponding webpage.
In addition, each chunk link point may implement an HTTP server to which the domain name HTTP:// test. com. homepage points. The page may present some K/V content, and usually not all at once, because it is too large to present the page at one time, and at the same time, the user device may search for other K/V data by means of links such as the next page, even page 10 (http:// test.com.homepage. Also by http:// test. com. homepage? The link form of the key shows the contents of a single K/V, and as to how to be specifically presented, it can be defined by different page templates. The attribute a1 may be a function name for format resolution or an address of a format resolution service, in addition to the specific data format name used to indicate the data format. It can also be represented by a content code such as 1, 2, 3, which is more compact and saves storage space.
Fig. 3 shows a schematic diagram 300 of keyed blockchain data having an attribute a1, and as can be seen from fig. 3, blockchain data such as K1, Kn includes an attribute a1, and the attribute a1 includes a data format name for representing a data parsing method of the blockchain data such as K1, Kn. Alternatively, the blockchain data such as K1 and the blockchain data such as Kn can also include a data format resolution function name, a data format resolution service address, or a data format resolution smart contract address for indicating a data resolution method of the blockchain data. As can be seen from fig. 3, the blockchain data such as K1 has a Value of attribute a1 of "XML", which indicates that its Value (Value) is resolved in an XML parsing method, and correspondingly, the blockchain data such as Kn has a Value of attribute a1 of "JSON", which indicates that its Value (Value) is resolved in a JSON parsing method. That is, calling a corresponding parsing function or parsing method can parse out the blockchain data of each K1, Kn, etc.
The reason for setting this attribute a2 is that in the currently mainstream blockchain platform, the public chain does not set any restriction on access to blockchain data, and a alliance chain such as Fabric, Corda and the like has access right control to all data in all blockchain data. It can be seen that the blockchain platform has the same access control for data with different requirements and does not have the capability of different access control. Generally, enterprise-level blockchains generally use a federation chain platform, and access rights control is performed on all data, so that information required to be disclosed cannot be viewed by external user equipment. For example, an insurance sales system implemented using a blockchain, wherein insurance price, terms, etc. information in the blockchain are desired to be viewable by user devices without authorization; but other information, such as user information, transaction information, claims records, etc., is required to be access-controlled, which is not beneficial to protecting the privacy of the client and the trade secrets of the insurance company.
In particular, the way in which public data and private data are stored at different locations of a blockchain or have different tags can be varied.
For example, fig. 4 shows a schematic diagram 400 of ledger book for storing public data and private data, and it can be seen from the diagram that the blockchain network includes a plurality of ledgers, for example nine ledgers such as ledgers 401, 402, …, 408, 409, etc., it should be understood by those skilled in the art that the nine ledgers are shown here only for exemplary purposes and not for limitation, and those skilled in the art can certainly realize more or less ledgers, and how to realize the number of ledgers is not critical to the content of the present invention, and the key point is to distinguish the plurality of ledgers, for example, the first ledger, ledger book 401, is marked as a public ledger book, that is, only the above-mentioned public data, such as information of insurance price, terms, etc. in the above-mentioned blockchain, is stored thereon; while eight ledgers, namely ledgers 402, …, 408, 409, are marked as private ledgers, on which only private data, such as the user information, transaction information, claims records, etc., described above, are stored. Those skilled in the art will appreciate that the number of public and private ledgers can be dynamically configured according to the proportion of data and private data that need to be disclosed on the blockchain. Therefore, the data on the blockchain network can be distinguished and treated, and guarantee is provided for the subsequent search service of the data on the blockchain.
Alternatively, for example, the first ledger 401 can also be divided into two different areas, public data being stored in the first area and private data being stored in the second area, whereby differentiated treatment of data on the blockchain network can also be achieved, so that a subsequent search service for data on the blockchain is guaranteed.
In the above manner, the public data and the private data are marked by storing the public data and the private data on different accounts or storing the public data and the private data on different areas of the same account, so that the public data and the private data can be distinguished based on the type of the account or the type of the area of the account in the subsequent searching stage, and support is provided for the subsequent searching.
Additionally or alternatively, the storing of public data and private data at different locations of the blockchain or having different labels for the public data and the private data can also be achieved in other ways, for example by means of additional attribute fields, in particular public data and private data may comprise an attribute a2, wherein the public data has an attribute a2, for example 0, and the private data has an attribute a2, for example 1.
For example, each blockchain data can include an attribute a2, where the attribute a2 is, for example, 0, indicating that the blockchain data is public data, and when the attribute a2 is a second value of 1, indicating that the blockchain data is private data. Compared with the technical scheme that public data and private data are stored in different accounts or different areas of the same account, the technical scheme that the disclosed dynamic adjustment is adopted and the additional attribute A2 indicating that the blockchain data are the public data or the private data allows an administrator to dynamically adjust in real time in the operation process of the blockchain, so that the dynamic maintainability of the data is improved.
Fig. 5 shows an example of data 500 stored in a Key Value manner, and as can be seen from fig. 5, the Value of the first blockchain data K1 is V1, and the attribute a2 is 0, which indicates that the first blockchain data K1 is public data, and the user equipment can access the public data without any access control or verification; the nth blockchain data Kn has a value Vn and an attribute a2 of 1, which indicates that the blockchain data Kn is private data, and the user equipment needs access control or authentication to access the private data. That is, the public data K1 and the private data Kn are stored in a key manner, and the public data has an attribute a2 of 0, while the private data has an attribute a2 of 1. It should be understood by those skilled in the art that the setting of the value of the attribute a2 to 0 or 1 is only exemplary and not limiting, and other technical solutions that can implement the inventive concept disclosed in the present disclosure without departing from the inventive spirit of the present disclosure are also included in the scope of the appended claims.
The inventor of the present disclosure innovatively recognizes that the user equipment can be adapted by modifying the attribute of the data on the blockchain network, so as to achieve the purpose of viewing the data on the blockchain network based on the user equipment, and in addition, the privacy protection of the blockchain on the data needing the privacy protection can be satisfied while the blockchain data viewing function is achieved.
The method for searching the blockchain data can disclose the shared data to be accessed without access control and the data retention access control requiring privacy protection; on the other hand, an internal mechanism and an interface for access retrieval are defined, so that not only can external webpage links be directly linked with public data in the block chain, but also the public data in the block chain can be mutually linked, and therefore, all information in the block chain can be viewed by user equipment. In addition, the solution provided by the invention can realize the interconnection and intercommunication of the block chain and the internet information, and further bring the huge value of the block chain into play.
Further, alternatively, the above-described method can be implemented by a computer program product, i.e., a computer-readable storage medium. The computer program product may include a computer-readable storage medium having computer-readable program instructions embodied thereon for carrying out various aspects of the present disclosure. The computer readable storage medium may be a tangible device that can hold and store the instructions for use by the instruction execution device. The computer readable storage medium may be, for example, but not limited to, an electronic memory device, a magnetic memory device, an optical memory device, an electromagnetic memory device, a semiconductor memory device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a Static Random Access Memory (SRAM), a portable compact disc read-only memory (CD-ROM), a Digital Versatile Disc (DVD), a memory stick, a floppy disk, a mechanical coding device, such as punch cards or in-groove projection structures having instructions stored thereon, and any suitable combination of the foregoing. Computer-readable storage media as used herein is not to be construed as transitory signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide or other transmission medium (e.g., optical pulses through a fiber optic cable), or electrical signals transmitted through electrical wires.
Fig. 6 shows a block diagram of an apparatus 600 for searching blockchain data according to an embodiment of the present disclosure. As can be seen in fig. 6, an apparatus 600 for searching blockchain data includes a processor 610 and a memory 620 coupled to the processor 610.
The memory 620 stores instructions. The instructions, when executed by the processor 610, cause the processor 610 to perform the following acts:
A. receiving a web page reading request sent by user equipment via a hypertext transfer protocol interface, wherein the web page reading request comprises a first uniform resource location address;
B. obtaining first blockchain data at the first uniform resource locator address;
C. determining whether at least one second uniform resource locator address exists, wherein second blockchain data at the at least one second uniform resource locator address is associated with the first blockchain data;
D. under the condition that the at least one second uniform resource positioning address exists, generating a webpage associated with the first uniform resource positioning address according to the first block chain data and the at least one second uniform resource positioning address; and
E. returning the web page to the user device via the hypertext transfer protocol interface.
In one embodiment consistent with the present disclosure, the instructions, when executed, cause the processor 610 to further perform the following:
D1. and when the at least one second uniform resource location address does not exist, generating the webpage according to the first block chain data.
In an embodiment consistent with the present disclosure, the determining whether at least one second uniform resource locator address exists further includes:
C1. and judging whether the at least one second uniform resource location address exists according to the hierarchy attribute included in the first block chain data and a predetermined hierarchy relation tree.
In one embodiment consistent with the present disclosure, b. obtaining first blockchain data at the first uniform resource locator address further comprises:
B1. resolving the first blockchain data at the first uniform resource locator address according to a data format name of the first blockchain data.
In one embodiment consistent with the present disclosure, b. obtaining first blockchain data at the first uniform resource locator address further comprises:
B2. resolving first blockchain data at the first uniform resource locator address according to a data format resolution function name, a data format resolution service address, or a data format resolution smart contract address of the first blockchain data.
In one embodiment consistent with the present disclosure, the first blockchain data and/or the second blockchain data includes a first attribute, and wherein b.
B3. Determining whether to acquire first blockchain data at the first uniform resource locator address according to a first attribute of the first blockchain data.
In an embodiment according to the present disclosure, the first blockchain data and/or the second blockchain data are stored in a key manner.
In one embodiment according to the present disclosure, in a case where the first blockchain data is public data, the first attribute of the first blockchain data is a first value; in a case where the second blockchain data is public data, the first attribute of the second blockchain data is the first value; in a case where the first blockchain data is private data, the first attribute of the first blockchain data is a second value different from the first value; the first attribute of the second blockchain data is the second value in a case where the second blockchain data is private data.
In one embodiment consistent with the present disclosure, b. obtaining first blockchain data at the first uniform resource locator address further comprises:
B4. determining whether to acquire first blockchain data at the first uniform resource location address according to an ledger storage location of the first blockchain data,
wherein, in a case that the first or second blockchain data is public data, the first or second blockchain data is stored in a public ledger; and in the event that the first or second blockchain data is private data, storing the first or second blockchain data in a private ledger.
In one embodiment consistent with the present disclosure, b. obtaining first blockchain data at the first uniform resource locator address further comprises:
B5. determining whether to acquire first blockchain data at the first uniform resource locator address according to a storage area location of the first blockchain data,
wherein, in a case where the first or second blockchain data is public data, the first or second blockchain data is stored in a public area of an account book; and in the case that the first or second blockchain data is private data, storing the first or second blockchain data in a private area of an account book.
In the above manner, the public data and the private data are marked by storing the public data and the private data on different accounts or storing the public data and the private data on different areas of the same account, so that the public data and the private data can be distinguished based on the type of the account or the type of the area of the account in the subsequent searching stage, thereby providing support for the subsequent searching.
Fig. 7 shows a schematic block diagram of an apparatus 700 for searching blockchain data. It should be understood that the apparatus 700 may be implemented to implement the functionality of the method 100 for searching blockchain data in fig. 1. As can be seen in fig. 7, an apparatus 700 for searching for blockchain data includes a Central Processing Unit (CPU)701 (e.g., a processor) that can perform various appropriate actions and processes in accordance with computer program instructions stored in a Read Only Memory (ROM)702 or computer program instructions loaded from a storage unit 708 into a Random Access Memory (RAM) 703. In the RAM 703, various programs and data necessary for the operation of the apparatus 700 can also be stored. The CPU 701, the ROM 702, and the RAM 703 are connected to each other via a bus 704. An input/output (I/O) interface 705 is also connected to bus 704.
A number of components in the apparatus 700 are connected to the I/O interface 705, including: an input unit 706 such as a keyboard, a mouse, or the like; an output unit 707 such as various types of displays, speakers, and the like; a storage unit 708 such as a magnetic disk, optical disk, or the like; and a communication unit 709 such as a network card, modem, wireless communication transceiver, etc. The communication unit 709 allows the apparatus 700 to exchange information/data with other devices via a computer network such as the internet and/or various telecommunication networks.
Various methods described above, such as a method for searching blockchain data, can be performed by processing unit 701. For example, in some embodiments, the method 100 for searching blockchain data may be implemented as a computer software program tangibly embodied in a machine-readable medium, such as the storage unit 708. In some embodiments, part or all of a computer program may be loaded onto and/or installed onto the apparatus 700 via the ROM 702 and/or the communication unit 709. When loaded into RAM 703 and executed by CPU 701, may perform one or more of the acts or steps of method 100 described above.
In general, the various exemplary embodiments of this invention may be implemented in hardware or special purpose circuits, software, firmware, logic or any combination thereof. Certain aspects may be implemented in hardware, while other aspects may be implemented in firmware or software which may be executed by a controller, microprocessor or other computing device. While various aspects of the embodiments of the invention may be illustrated and described as block diagrams, flow charts, or using some other pictorial representation, it is well understood that the blocks, apparatus, systems, techniques or methods described herein may be implemented in, as non-limiting examples, hardware, software, firmware, special purpose circuits or logic, general purpose hardware or controller or other computing devices, or some combination thereof.
Although the various exemplary embodiments of the present invention are described above as being implemented in hardware or in dedicated circuitry, the data processing apparatus for blockchains described above may be implemented in either hardware or software, because: in the 90's of the 20 th century, a technological improvement could easily be either a hardware improvement (e.g., an improvement in the structure of a circuit such as a diode, a transistor, a switch, etc.) or a software improvement (e.g., an improvement in the process flow). However, as the technology continues to develop, many of the current method flow improvements can be almost realized by programming the improved method flow into the hardware circuit, in other words, by programming different programs for the hardware circuit to obtain the corresponding hardware circuit structure, i.e. realizing the change of the hardware circuit structure, so that such method flow improvements can also be regarded as direct improvements of the hardware circuit structure. Thus, it cannot be said that an improvement in the process flow cannot be realized by hardware physical modules. For example, a Programmable Logic Device (PLD), such as a Field Programmable Gate Array (FPGA), is an integrated circuit whose Logic functions are determined by a user programming the Device. A digital system is "integrated" on a piece of programmable logic device by the designer's own programming without requiring the chip manufacturer to design and fabricate application specific integrated circuit chips. Furthermore, nowadays, instead of manually making an Integrated Circuit chip, such Programming is often implemented by "logic compiler 1 er" software, which is similar to a software compiler used in program development and writing, but the original code before compiling is also written by a specific Programming Language, which is called Hardware Description Language (HDL), and HDL is not only one kind, but many kinds, such as abel (advanced Boolean Expression Language), ahdl (advanced Hardware Description Language), communication, pl (core unity Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, HDL, pamm, hard Language (Hardware Description Language), and vhigh Language (Hardware Description Language), which are currently used in the most popular fields. It will also be apparent to those skilled in the art that hardware circuitry that implements the logical method flows can be readily obtained by merely slightly programming the method flows into an integrated circuit using the hardware description languages described above.
Computer-readable program instructions or computer program products for performing aspects of the present disclosure may also be stored in the cloud, and when a call is needed, a user may access the computer-readable program instructions stored in the cloud for performing aspects of the present disclosure through a mobile internet, a fixed network, or other networks, so as to implement the technical solutions disclosed in the aspects of the present disclosure.
In summary, the method for searching for blockchain data provided by the present disclosure can, on one hand, precisely control data on a blockchain, so that publicly shared data can be accessed without access control and data retention access control requiring privacy protection is provided; on the other hand, an internal mechanism and an interface for access retrieval are defined, so that not only can external webpage links be directly linked with public data in the block chain, but also the public data in the block chain can be mutually linked, and therefore, all information in the block chain can be viewed by user equipment. In addition, the solution provided by the invention can realize the interconnection and intercommunication of the block chain and the internet information, and further bring the huge value of the block chain into play.
The above description is only an alternative embodiment of the present disclosure, and is not intended to limit the present disclosure, and various modifications and changes may be made to the present disclosure by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the embodiments of the present invention should be included in the protection scope of the embodiments of the present invention.
While embodiments of the invention have been described with reference to several particular embodiments, it is to be understood that embodiments of the invention are not limited to the specific embodiments disclosed. The embodiments of the invention are intended to cover various modifications and equivalent arrangements included within the spirit and scope of the appended claims. The scope of the claims is to be accorded the broadest interpretation so as to encompass all such modifications and equivalent structures and functions.

Claims (19)

1. A method for searching blockchain data, the method comprising:
A. receiving a web page reading request sent by user equipment via a hypertext transfer protocol interface, wherein the web page reading request comprises a first uniform resource location address;
B. obtaining first blockchain data at the first uniform resource locator address;
C. determining whether at least one second uniform resource locator address exists, wherein second blockchain data at the at least one second uniform resource locator address is associated with the first blockchain data;
D. under the condition that the at least one second uniform resource positioning address exists, generating a webpage associated with the first uniform resource positioning address according to the first block chain data and the at least one second uniform resource positioning address; and
E. returning the web page to the user device via the hypertext transfer protocol interface,
wherein, c, determining whether there is at least one second uniform resource locator address further comprises:
C1. and judging whether the at least one second uniform resource location address exists according to the hierarchy attribute included in the first block chain data and a predetermined hierarchy relation tree.
2. The method of claim 1, further comprising:
D1. and generating the webpage according to the first block chain data under the condition that the at least one second uniform resource positioning address does not exist.
3. The method of claim 1 or 2, wherein b. obtaining first blockchain data at the first uniform resource location address further comprises:
B1. resolving the first blockchain data at the first uniform resource locator address according to a data format name of the first blockchain data.
4. The method of claim 1 or 2, wherein b. obtaining first blockchain data at the first uniform resource location address further comprises:
B2. resolving first blockchain data at the first uniform resource locator address according to a data format resolution function name, a data format resolution service address, or a data format resolution smart contract address of the first blockchain data.
5. The method of claim 1, wherein the first blockchain data and/or the second blockchain data includes a first attribute, and wherein b.
B3. Determining whether to acquire first blockchain data at the first uniform resource locator address according to a first attribute of the first blockchain data.
6. The method of claim 5, wherein the first blockchain data and/or the second blockchain data are stored in a keyed manner.
7. The method of claim 5, wherein,
in a case where the first blockchain data is public data, the first attribute of the first blockchain data is a first value;
in a case where the second blockchain data is public data, the first attribute of the second blockchain data is the first value;
in a case where the first blockchain data is private data, the first attribute of the first blockchain data is a second value different from the first value;
the first attribute of the second blockchain data is the second value in a case where the second blockchain data is private data.
8. The method of claim 1, wherein b. obtaining first blockchain data at the first uniform resource location address further comprises:
B4. determining whether to acquire first blockchain data at the first uniform resource location address according to an ledger storage location of the first blockchain data,
wherein, in a case that the first or second blockchain data is public data, the first or second blockchain data is stored in a public ledger; and in the event that the first or second blockchain data is private data, storing the first or second blockchain data in a private ledger.
9. The method of claim 1, wherein b. obtaining first blockchain data at the first uniform resource location address further comprises:
B5. determining whether to acquire first blockchain data at the first uniform resource locator address according to a storage area location of the first blockchain data,
wherein, in a case where the first or second blockchain data is public data, the first or second blockchain data is stored in a public area of an account book; and in the case that the first or second blockchain data is private data, storing the first or second blockchain data in a private area of an account book.
10. An apparatus for searching blockchain data, the apparatus comprising:
a processor; and
a memory for storing instructions that, when executed, cause the processor to:
A. receiving a web page reading request sent by user equipment via a hypertext transfer protocol interface, wherein the web page reading request comprises a first uniform resource location address;
B. obtaining first blockchain data at the first uniform resource locator address;
C. determining whether at least one second uniform resource locator address exists, wherein second blockchain data at the at least one second uniform resource locator address is associated with the first blockchain data;
D. under the condition that the at least one second uniform resource positioning address exists, generating a webpage associated with the first uniform resource positioning address according to the first block chain data and the at least one second uniform resource positioning address; and
E. returning the web page to the user device via the hypertext transfer protocol interface,
wherein, c, determining whether there is at least one second uniform resource locator address further comprises:
C1. and judging whether the at least one second uniform resource location address exists according to the hierarchy attribute included in the first block chain data and a predetermined hierarchy relation tree.
11. The apparatus of claim 10, the instructions when executed further causing the processor to:
D1. and when the at least one second uniform resource location address does not exist, generating the webpage according to the first block chain data.
12. The apparatus of claim 10 or 11, wherein b. obtaining first blockchain data at the first uniform resource location address further comprises:
B1. resolving the first blockchain data at the first uniform resource locator address according to a data format name of the first blockchain data.
13. The apparatus of claim 10 or 11, wherein b. obtaining first blockchain data at the first uniform resource location address further comprises:
B2. resolving first blockchain data at the first uniform resource locator address according to a data format resolution function name, a data format resolution service address, or a data format resolution smart contract address of the first blockchain data.
14. The apparatus of claim 10, wherein the first blockchain data and/or the second blockchain data includes a first attribute, and wherein b. obtaining first blockchain data at the first uniform resource location address further comprises:
B3. determining whether to acquire first blockchain data at the first uniform resource locator address according to a first attribute of the first blockchain data.
15. The apparatus of claim 14, wherein the first blockchain data and/or the second blockchain data are keyed.
16. The apparatus of claim 14, wherein,
in a case where the first blockchain data is public data, the first attribute of the first blockchain data is a first value;
in a case where the second blockchain data is public data, the first attribute of the second blockchain data is the first value;
in a case where the first blockchain data is private data, the first attribute of the first blockchain data is a second value different from the first value;
the first attribute of the second blockchain data is the second value in a case where the second blockchain data is private data.
17. The apparatus of claim 10, wherein b. obtaining first blockchain data at the first uniform resource location address further comprises:
B4. determining whether to acquire first blockchain data at the first uniform resource location address according to an ledger storage location of the first blockchain data,
wherein, in a case that the first or second blockchain data is public data, the first or second blockchain data is stored in a public ledger; and in the event that the first or second blockchain data is private data, storing the first or second blockchain data in a private ledger.
18. The apparatus of claim 10, wherein b. obtaining first blockchain data at the first uniform resource location address further comprises:
B5. determining whether to acquire first blockchain data at the first uniform resource locator address according to a storage area location of the first blockchain data,
wherein, in a case where the first or second blockchain data is public data, the first or second blockchain data is stored in a public area of an account book; and in the case that the first or second blockchain data is private data, storing the first or second blockchain data in a private area of an account book.
19. A computer readable storage medium having computer readable program instructions stored thereon for performing the method for searching blockchain data according to any one of claims 1 to 9.
CN201810878170.8A 2018-08-03 2018-08-03 Method, apparatus and storage medium for searching blockchain data Active CN109145209B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201810878170.8A CN109145209B (en) 2018-08-03 2018-08-03 Method, apparatus and storage medium for searching blockchain data
PCT/CN2019/098184 WO2020024902A1 (en) 2018-08-03 2019-07-29 Method, device, and storage medium for searching for blockchain data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810878170.8A CN109145209B (en) 2018-08-03 2018-08-03 Method, apparatus and storage medium for searching blockchain data

Publications (2)

Publication Number Publication Date
CN109145209A CN109145209A (en) 2019-01-04
CN109145209B true CN109145209B (en) 2020-12-29

Family

ID=64791708

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810878170.8A Active CN109145209B (en) 2018-08-03 2018-08-03 Method, apparatus and storage medium for searching blockchain data

Country Status (2)

Country Link
CN (1) CN109145209B (en)
WO (1) WO2020024902A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109145209B (en) * 2018-08-03 2020-12-29 上海点融信息科技有限责任公司 Method, apparatus and storage medium for searching blockchain data
CN111400756A (en) * 2020-03-13 2020-07-10 杭州复杂美科技有限公司 Private data uplink method, device and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106227833A (en) * 2016-07-26 2016-12-14 宁圣金融信息服务(上海)有限公司 Block chaining search engine method, system and device
CN106445993A (en) * 2016-07-11 2017-02-22 天津米游科技有限公司 Data fingerprint query method and device based on block chain
CN108009263A (en) * 2017-12-13 2018-05-08 清华大学 A kind of block chain network searching method and system based on supply and demand information

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10691763B2 (en) * 2016-11-11 2020-06-23 International Business Machines Corporation Trustable web searching verification in a blockchain
CN108062413B (en) * 2017-12-30 2019-05-28 平安科技(深圳)有限公司 Web data processing method, device, computer equipment and storage medium
CN109145209B (en) * 2018-08-03 2020-12-29 上海点融信息科技有限责任公司 Method, apparatus and storage medium for searching blockchain data

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106445993A (en) * 2016-07-11 2017-02-22 天津米游科技有限公司 Data fingerprint query method and device based on block chain
CN106227833A (en) * 2016-07-26 2016-12-14 宁圣金融信息服务(上海)有限公司 Block chaining search engine method, system and device
CN108009263A (en) * 2017-12-13 2018-05-08 清华大学 A kind of block chain network searching method and system based on supply and demand information

Also Published As

Publication number Publication date
CN109145209A (en) 2019-01-04
WO2020024902A1 (en) 2020-02-06

Similar Documents

Publication Publication Date Title
CN109033403B (en) Method, apparatus and storage medium for searching blockchain data
CN109033406B (en) Method, apparatus and storage medium for searching blockchain data
US10942708B2 (en) Generating web API specification from online documentation
TWI682653B (en) Short link analysis method, device and equipment
KR101824222B1 (en) Fast rendering of websites containing dynamic content and stale content
CN109101607B (en) Method, apparatus and storage medium for searching blockchain data
JP6898452B2 (en) Data acquisition method and device
US8499099B1 (en) Converting data into addresses
US8935798B1 (en) Automatically enabling private browsing of a web page, and applications thereof
CN109063138B (en) Method, apparatus, and storage medium for searching data in a blockchain as a service platform
US20180225387A1 (en) Method and apparatus for accessing webpage, apparatus and non-volatile computer storage medium
US20120331372A1 (en) Methods for making ajax web applications bookmarkable and crawlable and devices thereof
CN109683998A (en) Internationalize implementation method, device and system
CN101877696A (en) Equipment and method for reconfiguring false response messages under network application environment
US20200142674A1 (en) Extracting web api endpoint data from source code
CN109086414B (en) Method, apparatus and storage medium for searching blockchain data
CN110598135A (en) Network request processing method and device, computer readable medium and electronic equipment
CN107105336A (en) Data processing method and data processing equipment
CN113076294A (en) Information sharing method and device
CN109145209B (en) Method, apparatus and storage medium for searching blockchain data
CN110321504B (en) Page processing method and device
KR20140037751A (en) Methods and systems for providing content provider-specified url keyword navigation
CN109325192B (en) Advertisement anti-shielding method and device
AU2014412020B2 (en) Techniques to transform network resource requests to zero rated network requests
WO2021189766A1 (en) Data visualization method and related device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant