CN109951481B - Information processing method and system based on block chain network adjacent nodes - Google Patents

Information processing method and system based on block chain network adjacent nodes Download PDF

Info

Publication number
CN109951481B
CN109951481B CN201910210216.3A CN201910210216A CN109951481B CN 109951481 B CN109951481 B CN 109951481B CN 201910210216 A CN201910210216 A CN 201910210216A CN 109951481 B CN109951481 B CN 109951481B
Authority
CN
China
Prior art keywords
target
domain name
block
online
user terminal
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
CN201910210216.3A
Other languages
Chinese (zh)
Other versions
CN109951481A (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.)
Iallchain Co Ltd
Original Assignee
Iallchain 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 Iallchain Co Ltd filed Critical Iallchain Co Ltd
Priority to CN201910210216.3A priority Critical patent/CN109951481B/en
Publication of CN109951481A publication Critical patent/CN109951481A/en
Application granted granted Critical
Publication of CN109951481B publication Critical patent/CN109951481B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides an information processing method and system based on a block chain network adjacent node, wherein the method comprises the steps that when a user terminal obtains an access request sent by a target application program, if a corresponding communication IP address is not obtained, an online adjacent terminal inquires a domain name identification library, and a target block identification is fed back to the user terminal; the user terminal inquires a block identification set in a block chain book which is stored correspondingly at present in the node list information, acquires a corresponding target IP address from any target adjacent terminal, and sends an address inquiry request to an online target adjacent terminal, so that a target application program sends an access request according to a feedback communication IP address. Therefore, the domain name is obtained in a decentralized block chain mode, when an application program accesses the domain name and accesses the block chain network based on the information in the block, the authenticity of the block is guaranteed, the behaviors of hackers such as phishing attack and the like are avoided, and the flexibility of the block chain network is improved.

Description

Information processing method and system based on block chain network adjacent nodes
Technical Field
The present invention relates to the field of blockchain technologies, and in particular, to an information processing method and system based on a blockchain network neighboring node.
Background
In the field of computers, IP addresses are widely used as "identification cards" for internet access devices, servers, and the like. With the development of computer network technology, IP addresses have increased greatly, and domain name systems have appeared for convenience of management and address allocation, that is, in the prior art, IP addresses and domain names are allocated as a common network address.
In the related art, the domain name corresponding to the IP address is provided by a DNS server, however, in the current network environment, the DNS server providing the domain name configuration service is centralized, and a root server of the DNS server is held in a certain country or organization, and once the centralized DNS server is mastered maliciously, the centralized DNS server will pose a serious threat to the internet.
Disclosure of Invention
The invention aims to provide an information processing method and system based on adjacent nodes of a block chain network, and aims to solve the technical problems that in the prior art, domain names are configured by a DNS server with strong centralization, and block information acquired from other adjacent terminals is possibly attacked by phishing of malicious adjacent terminals when the block chain network is accessed to the block chain network when the centralized domain name service is solved by the block chain network.
A first embodiment of the present invention provides an information processing method based on a neighboring node of a blockchain network, where the method includes: when a user terminal acquires an access request containing a target domain name sent by a target application program, inquiring locally-stored block information according to the target domain name, and if a communication IP address corresponding to the target domain name is not acquired, inquiring locally-currently-stored node list information of an online adjacent terminal, wherein the node list information comprises: the IP address of each online adjacent terminal and the block identification set in the block chain account book which is currently and correspondingly stored by each online adjacent terminal send a block query request which is signed by a private key of a user terminal and contains the target domain name to the online adjacent terminal according to the IP address of the online adjacent terminal; the online adjacent terminal verifies the private key signature of the block query request by using the public key of the user terminal, if the verification is passed, the local terminal is queried according to the target domain name, and a stored domain name identification library is updated in real time, wherein the domain name identification library records the block identification to which each domain name IP address corresponding relation in local block information belongs, and if the target block identification recorded corresponding to the target domain name can be obtained from the domain name identification library, the target block identification is fed back to the user terminal; the user terminal verifies the validity of a target block corresponding to the target block identifier according to a preset strategy, if the target block is verified to be valid, a block identifier set in a block chain book which is currently and correspondingly stored in each online adjacent terminal in the node list information is inquired, any online target adjacent terminal containing the target block identifier is obtained, an address inquiry request containing the target domain name is sent to the online target adjacent terminal according to a target IP address which is stored in the node list information and corresponds to the online target adjacent terminal, a communication IP address which is fed back by the online target adjacent terminal and corresponds to the target domain name is received, and the communication IP address is fed back to the target application program, so that the target application program sends an access request according to the communication IP address.
A second embodiment of the present invention provides an information processing system based on a neighboring node of a blockchain network, including: the system comprises a user terminal and an online adjacent terminal, wherein the user terminal is used for inquiring locally stored block information according to a target domain name when acquiring an access request which is sent by a target application program and contains the target domain name, and inquiring locally currently stored node list information of the online adjacent terminal if a communication IP address corresponding to the target domain name is not acquired, wherein the node list information comprises: the IP address of each online adjacent terminal and the block identification set in the block chain account book which is currently and correspondingly stored by each online adjacent terminal send a block query request which is signed by a private key of a user terminal and contains the target domain name to the online adjacent terminal according to the IP address of the online adjacent terminal; the online adjacent terminal is used for verifying the private key signature of the block query request by using the public key of the user terminal, and if the private key signature passes the verification, the online adjacent terminal updates a stored domain name identification library in real time according to the target domain name query local terminal, wherein the domain name identification library records the block identification to which each domain name IP address corresponding relation in local block information belongs, and if the target block identification recorded corresponding to the target domain name can be obtained from the domain name identification library, the target block identification is fed back to the user terminal; the user terminal is used for verifying the validity of the target block corresponding to the target block identifier according to a preset strategy, if the target block is verified to be valid, inquiring a block identifier set in a block chain account book currently and correspondingly stored by each online adjacent terminal in the node list information, acquiring any online target adjacent terminal containing the target block identifier, sending an address query request containing the target domain name to the online target adjacent terminal according to the target IP address corresponding to the online target adjacent terminal stored in the node list information, receiving a communication IP address corresponding to the target domain name and fed back by the online target adjacent terminal, and feeding back the communication IP address to the target application program so that the target application program sends an access request according to the communication IP address.
The technical scheme provided by the embodiment of the invention has the following beneficial effects:
when a user terminal acquires an access request containing a target domain name sent by a target application program, locally stored block information is inquired according to the target domain name, if a communication IP address corresponding to the target domain name is not acquired, locally and currently stored node list information of an online adjacent terminal is inquired, wherein the node list information comprises: the IP address of each online adjacent terminal and the block identifier set in the block chain account book which is stored correspondingly at present in each online adjacent terminal, and a block query request which is signed by a private key of a user terminal and contains a target domain name is sent to the online adjacent terminal according to the IP address of the online adjacent terminal, the online adjacent terminal verifies the private key signature of the block query request by using a public key of the user terminal, if the verification is passed, the local terminal is queried according to the target domain name to update a stored domain name identifier library in real time, wherein the domain name identifier library records the block identifier of each domain name IP address corresponding relation in the local block information, if the target block identifier which is recorded corresponding to the target domain name can be obtained from the domain name identifier library, the target block identifier is fed back to the user terminal, and then the user terminal verifies the validity of the target block corresponding to the target block identifier according to a preset strategy, if the target block is verified to be valid, inquiring a block identifier set in a block chain account book which is currently and correspondingly stored by each online adjacent terminal in the node list information, acquiring any online target adjacent terminal containing the target block identifier, sending an address inquiry request containing a target domain name to the online target adjacent terminal according to a target IP address which is stored in the node list information and corresponds to the online target adjacent terminal, receiving a communication IP address which is fed back by the online target adjacent terminal and corresponds to the target domain name, and feeding back the communication IP address to the target application program, so that the target application program sends an access request according to the communication IP address. Therefore, the domain name is obtained in a decentralized block chain mode, when an application program accesses the domain name and accesses the block chain network based on the information in the block, the authenticity of the block is guaranteed, the behaviors of hackers such as phishing attack and the like are avoided, and the flexibility of the block chain network is improved.
Drawings
The above and/or additional aspects and advantages of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which,
FIG. 1 is a schematic diagram of a scene interaction based on a blockchain domain name system according to an embodiment of the present invention;
FIG. 2 is a block chain network neighbor node based information handling system according to one embodiment of the present invention;
FIG. 3 is a diagram illustrating information processing interactions among neighboring nodes of a blockchain-based network, according to an embodiment of the present invention;
FIG. 4 is a flow chart of a method of information processing based on a neighbor node of a blockchain network according to one embodiment of the present invention; and
fig. 5 is a schematic view of an application scenario of the information processing method based on neighboring nodes of the blockchain network according to an embodiment of the present invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are illustrative and intended to be illustrative of the invention and are not to be construed as limiting the invention.
In order to solve the technical problem that the network address is configured by a DNS server with strong centralization, which causes easy attack in the background art, the invention provides a block chain domain name resolution method based on a user terminal operating system, which obtains the naming in a decentralized mode, improves the security of domain name sending of an application program, and avoids behaviors such as phishing attack of hackers.
Specifically, in order to solve the above technical problem, the present invention provides a domain name generation blockchain network, as shown in fig. 1, in the blockchain network, an internet service provider ISP node sends an identity-based encryption (IBE) based identity-private key request message to a blockchain domain name system server to which the internet service provider ISP node belongs, where the identity-private key request message includes: the method comprises the steps that a target domain name and a corresponding IP address are applied, a block chain domain name system server receives an identity private key request message and analyzes the identity private key request message to obtain the target domain name, a locally stored main key and a locally stored public parameter are inquired, the main key, the public parameter and the target domain name are calculated according to a preset algorithm to generate an identity private key of an ISP node, the identity private key is uniquely corresponding to the ISP node, the target domain name is an identity public key of the ISP node, the node public key of the ISP node in a block chain is used for encrypting the identity private key of the ISP node to generate an encrypted private key identity of the ISP node, and the encrypted identity private key is sent to the ISP node corresponding to the IP address corresponding to the target domain name.
Further, after receiving the encrypted identity private key sent by the block chain domain name system server, the ISP node decrypts the encrypted identity private key by using its own node private key in the block chain to obtain the identity private key of the ISP node, and sends a domain name registration broadcast message to the block chain network after performing identity private key signature on the target domain name, the corresponding IP address, and the server identifier of the block chain domain name system server by using the identity private key. And the accounting node receives the domain name registration broadcast message, analyzes and acquires a target domain name, a corresponding IP address and a server identifier, verifies the identity private key signature of the ISP node by using the target domain name, writes the corresponding relation between the target domain name and the corresponding IP address as well as the server identifier of the block chain domain name system server into a newly generated block if the verification is passed, and records the block chain account book.
Therefore, the network address generation method of the embodiment of the invention is generated based on the block chain decentralized thought of the block chain domain name system, thereby avoiding phishing attack and the like on one hand, and avoiding illegal nodes from disturbing legal generation of network addresses on the other hand based on a common identification mechanism.
However, when a client (such as an application APP) accesses a blockchain network, P2P is generally used to broadcast mutual addressing, and in order to access a P2P neighbor node, a seed node (which may also be referred to as an originating node) address in a blockchain needs to be prefabricated at the client first, and the neighbor node is obtained through the seed node. However, in practical applications, for example, when the operating system is installed, the seed node of the domain name blockchain may not be obtained, or the IP address of the seed node may change, and if the seed node is accessed by using the domain name, the blockchain network corresponding to the domain name is not accessed yet, and domain name access cannot be performed.
Therefore, in order to solve the problem that the domain name cannot be accessed when the domain name resolution module of the blockchain is built in the kernel layer of the operating system of the user terminal, the present invention further provides an information processing method based on the adjacent node of the blockchain network, in order to describe the method more clearly, first, the description is focused on the side of the information processing system based on the adjacent node of the blockchain network, fig. 2 is a schematic structural diagram of the information processing system based on the adjacent node of the blockchain network according to an embodiment of the present invention, as shown in fig. 2, the system includes the user terminal 100 and the online adjacent terminal 200, wherein the user terminal 100 and the online adjacent terminal 200 may be adjacent to each other, and in the actual execution process, after the user terminal is started, the relevant block information may be extracted from other online adjacent terminals, however, in the embodiment of the present invention, in order to avoid the situation that the obtained block information is falsified due to the fact that other adjacent blocks possibly have malicious terminals, and therefore domain name resolution is wrong, and to avoid the situation, the accuracy of the obtained block information is guaranteed.
Specifically, as shown in fig. 3, when the user terminal obtains an access request including a target domain name sent by a target application program, the user terminal queries locally stored block information according to the target domain name, and if a communication IP address corresponding to the target domain name is not obtained, queries locally currently stored node list information of an online adjacent terminal, where the node list information includes: and sending a block query request containing a target domain name signed by a private key of the user terminal to the online adjacent terminal according to the IP address of the online adjacent terminal and the block identifier set in the block chain account book which is currently and correspondingly stored by each online adjacent terminal (step 31).
Furthermore, the online adjacent terminal verifies the private key signature of the block query request by using the public key of the user terminal, if the verification is passed, the block query request is sent by the user terminal, and the stored domain name identifier library is updated in real time according to the target domain name query local terminal, wherein the domain name identifier library records the block identifier to which each domain name IP address corresponding relation in the local block information belongs, and if the target block identifier recorded corresponding to the target domain name can be obtained from the domain name identifier library, the target block identifier is fed back to the user terminal (step 32), that is, in this embodiment, the feedback of the target block identifier is performed based on the adjacent terminal instead of the block content, so that the false block content and the like after malicious adjacent terminal sends a falsification is avoided.
Further, the user terminal verifies the validity of a target block corresponding to the target block identifier according to a preset policy, if the target block is verified to be valid, the user terminal queries a block identifier set in a block chain book currently and correspondingly stored in each online adjacent terminal in the node list information, acquires any online target adjacent terminal containing the target block identifier, sends an address query request containing a target domain name to the online target adjacent terminal according to a target IP address corresponding to the online target adjacent terminal stored in the node list information, receives a communication IP address corresponding to the target domain name and fed back to the target application program, so that the target application program sends an access request according to the communication IP address, namely, the access to the block chain network is realized (step 33).
Therefore, in the embodiment of the invention, the access to the block chain network is realized when the user terminal is started, and when the user terminal initiates a domain name query request, in order to avoid phishing attacks, the adjacent terminal feeds back not the domain name query result but the block identifier corresponding to the domain name query result, and the user terminal finds the corresponding block according to the block identification and searches the corresponding domain name record for resolution, thereby ensuring the accuracy of domain name resolution.
Next, an information processing method based on a neighboring node of a blockchain network according to an embodiment of the present invention is described in detail, and fig. 4 is a flowchart of the information processing method based on a neighboring node of a blockchain network according to an embodiment of the present invention, as shown in fig. 4, the method includes:
step 101, when a user terminal obtains an access request containing a target domain name sent by a target application program, inquiring locally stored block information according to the target domain name, and if a communication IP address corresponding to the target domain name is not obtained, inquiring locally currently stored node list information of an online adjacent terminal, wherein the node list information includes: and sending a block query request containing a target domain name signed by a private key of the user terminal to the online adjacent terminal according to the IP address of the online adjacent terminal and the block identifier set in the block chain account book which is currently and correspondingly stored by each online adjacent terminal.
The target application should be an application that initiates a domain name access request, such as a surf application to be installed.
It should be understood that, in the embodiment of the present invention, in order to improve the efficiency and the security of domain name resolution, a part of the block information is cached locally in the user terminal, so that the relevant block information can be read without being requested in other terminals, and therefore, in this embodiment, the locally stored block information is queried in advance according to the access request with the target domain name, wherein, as described above, the block information records domain name information with an IP address and corresponding to the IP address, and the like, and if the communication IP address corresponding to the target domain name is not obtained, the node list information of the locally currently stored online neighboring terminals is queried, and the node list information includes the IP address of each online neighboring terminal and the block identifier set in the block chain book currently stored corresponding to each online neighboring terminal, wherein it should be understood that, the block identifier set includes unique identifiers of all blocks stored in the corresponding terminal.
Furthermore, a block query request containing a target domain name signed by a private key of the user terminal is sent to the online adjacent terminal according to the IP address of the online adjacent terminal, in the example, the identity of the user terminal is authenticated based on a public key certificate mechanism, and since the private key of the user terminal is only held by the user terminal, other illegal terminals are prevented from being disguised as the user terminal to send the query request.
102, verifying the private key signature of the block query request by using the public key of the user terminal at the online adjacent terminal, if the verification is passed, updating a stored domain name identification library in real time according to the target domain name query local terminal, wherein the domain name identification library records the block identification to which each domain name IP address corresponding relation in the local block information belongs, and if the target block identification recorded corresponding to the target domain name can be obtained from the domain name identification library, feeding the target block identification back to the user terminal.
Specifically, the online adjacent terminal verifies the private key signature of the block query request by using the public key of the user terminal, if the public key of the user terminal is matched with the private key, the query request is sent by the user terminal, so that the verification is passed, the adjacent terminal queries a name identifier library updated in real time by the local terminal according to a target domain name, wherein the domain name identifier library records a block identifier to which each domain name IP address in the local block information belongs, and if the target block identifier recorded corresponding to the target domain name can be obtained from the domain name identifier library, the target block identifier is fed back to the user terminal, so that the user terminal can know which block stores the corresponding domain name information.
In one embodiment of the invention, if the online adjacent terminal cannot obtain the record corresponding to the target domain name from the domain name identification library, inquiring the locally stored node list information of the online adjacent terminal, sending a block inquiry request containing the target domain name to other terminals adjacent to the terminal, that is, the number of neighboring terminals that can provide services is increased, the neighboring terminals of the neighboring terminals join the terminal to be inquired, and further, the online adjacent terminal receives the target block identification recorded corresponding to the target domain name and fed back by other terminals, and feeds back the target block identification to the user terminal, in the actual execution process, the block query request containing the target domain name may be sequentially sent to other terminals adjacent to the online adjacent terminal itself until the corresponding target block identifier is obtained, or the block query request containing the target domain name may be simultaneously sent to other terminals adjacent to the online adjacent terminal itself.
103, the user terminal verifies the validity of a target block corresponding to the target block identifier according to a preset strategy, if the target block is verified to be valid, the user terminal inquires a block identifier set in a block chain book which is currently and correspondingly stored in each online adjacent terminal in the node list information, acquires any online target adjacent terminal containing the target block identifier, sends an address inquiry request containing a target domain name to the online target adjacent terminal according to a target IP address which is stored in the node list information and corresponds to the online target adjacent terminal, receives a communication IP address which is fed back by the online target adjacent terminal and corresponds to the target domain name, and feeds back the communication IP address to the target application program, so that the target application program sends an access request according to the communication IP address.
In order to ensure that the domain name identification library of the adjacent terminal can store the latest block information in real time, the online adjacent terminal always inquires the domain name information contained in a new block in a locally stored block chain account book, and updates the block identification to which the new domain name IP address corresponding relation belongs in the domain name identification library.
Certainly, in order to ensure the accuracy of domain name resolution, the user terminal needs to verify the validity of the target block, and verifies the validity of the target block corresponding to the target block identifier according to a preset policy, if the target block is verified to be valid, it is indicated that the target block identifier indeed corresponds to the target block, and then a block identifier set in a block chain account book currently and correspondingly stored by each online adjacent terminal in the node list information is queried.
Further, any online target adjacent terminal containing the target block identifier is obtained, an address query request containing a target domain name is sent to the online target adjacent terminal according to a target IP address corresponding to the online target adjacent terminal and stored in the node list information, a communication IP address corresponding to the target domain name and fed back by the online target adjacent terminal is received, and the communication IP address is fed back to the target application program, so that the target application program sends an access request according to the communication IP address. Therefore, the validity of the target block is verified, and the address query request is randomly sent from any adjacent terminal, so that the accuracy of domain name resolution is ensured, and the stability of a block chain network is ensured.
It should be noted that, in different application scenarios, the way in which the user terminal verifies the validity of the target block corresponding to the target block identifier according to the preset policy is different, which is exemplified as follows:
the first example:
in this example, the user terminal sends a block query request containing a target domain name signed by a private key of the user terminal to any online adjacent terminal according to an IP address of any online adjacent terminal, so that the user terminal sends a hash query request carrying a target block identifier to any online adjacent terminal, receives a target block hash value corresponding to the target block identifier and fed back by any online adjacent terminal, where the hash value uniquely corresponds to a block, queries locally pre-stored hash records of all blocks according to the target block identifier, obtains a reference hash value corresponding to the target block identifier, compares the reference hash value with the target block hash value, and if the two hash values are the same, indicates that the target block is real, and determines that the target block corresponding to the target block identifier is valid.
The second example is:
in this example, the user terminal simultaneously sends a block query request containing a target domain name signed by a private key of the user terminal to a plurality of online neighboring terminals according to IP addresses of the plurality of online neighboring terminals. And then, the user terminal receives the target block identifications respectively fed back by the plurality of online adjacent terminals, compares all the target block identifications, judges whether the number of the same target block identifications is greater than a preset threshold value, and if the number of the same target block identifications is greater than the threshold value, the block identifications corresponding to the target block, which are recorded by most adjacent terminals with the expression, are consistent with the target block identifications, so that the target block corresponding to the same target block identification is determined to be valid. The threshold corresponding to the number is determined according to the number of the online adjacent terminals, so as to ensure that the accuracy of the verification result is determined by most adjacent terminals.
Therefore, as shown in fig. 5, in the information processing method based on the adjacent nodes of the block chain network according to the embodiment of the present invention, on one hand, when the block information corresponding to the access request currently including the target domain name can be locally checked, the block information is directly fed back to the user terminal, so that the efficiency and reliability of domain name resolution are improved, when the block information corresponding to the access request currently including the target domain name cannot be locally checked, the node list information of the online adjacent terminal currently stored in the local is queried, the block identifier corresponding to the target domain name is obtained from the adjacent terminal, instead of directly obtaining the block information, so that domain name resolution distortion caused when the adjacent terminal is a malicious node is avoided, and further, when the block corresponding to the block identifier is verified to be reliable, domain name resolution is performed according to the valid block.
To sum up, in the information processing method based on the adjacent nodes of the blockchain network according to the embodiment of the present invention, when the user terminal obtains the access request including the target domain name sent by the target application program, the user terminal queries locally stored blockchain information according to the target domain name, and if a communication IP address corresponding to the target domain name is not obtained, queries locally currently stored node list information of the online adjacent terminal, where the node list information includes: the IP address of each online adjacent terminal and the block identifier set in the block chain account book which is stored correspondingly at present in each online adjacent terminal, and a block query request which is signed by a private key of a user terminal and contains a target domain name is sent to the online adjacent terminal according to the IP address of the online adjacent terminal, the online adjacent terminal verifies the private key signature of the block query request by using a public key of the user terminal, if the verification is passed, the local terminal is queried according to the target domain name to update a stored domain name identifier library in real time, wherein the domain name identifier library records the block identifier of each domain name IP address corresponding relation in the local block information, if the target block identifier which is recorded corresponding to the target domain name can be obtained from the domain name identifier library, the target block identifier is fed back to the user terminal, and then the user terminal verifies the validity of the target block corresponding to the target block identifier according to a preset strategy, if the target block is verified to be valid, inquiring a block identifier set in a block chain account book which is currently and correspondingly stored by each online adjacent terminal in the node list information, acquiring any online target adjacent terminal containing the target block identifier, sending an address inquiry request containing a target domain name to the online target adjacent terminal according to a target IP address which is stored in the node list information and corresponds to the online target adjacent terminal, receiving a communication IP address which is fed back by the online target adjacent terminal and corresponds to the target domain name, and feeding back the communication IP address to the target application program, so that the target application program sends an access request according to the communication IP address. Therefore, the domain name is obtained in a decentralized block chain mode, when an application program accesses the domain name and accesses the block chain network based on the information in the block, the authenticity of the block is guaranteed, the behaviors of hackers such as phishing attack and the like are avoided, and the flexibility of the block chain network is improved.
In the present invention, the terms "first", "second" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present invention, "a plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
In the present invention, unless otherwise expressly stated or limited, the first feature "on" or "under" the second feature may be directly contacting the first and second features or indirectly contacting the first and second features through an intermediate. Also, a first feature "on," "over," and "above" a second feature may be directly or diagonally above the second feature, or may simply indicate that the first feature is at a higher level than the second feature. A first feature being "under," "below," and "beneath" a second feature may be directly under or obliquely under the first feature, or may simply mean that the first feature is at a lesser elevation than the second feature.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present invention.

Claims (10)

1. An information processing method based on a block chain network adjacent node is characterized by comprising the following steps:
when a user terminal acquires an access request containing a target domain name sent by a target application program, inquiring locally-stored block information according to the target domain name, and if a communication IP address corresponding to the target domain name is not acquired, inquiring locally-currently-stored node list information of an online adjacent terminal, wherein the node list information comprises: the IP address of each online adjacent terminal and the block identification set in the block chain account book which is currently and correspondingly stored by each online adjacent terminal send a block query request which is signed by a private key of a user terminal and contains the target domain name to the online adjacent terminal according to the IP address of the online adjacent terminal;
the online adjacent terminal verifies the private key signature of the block query request by using the public key of the user terminal, if the verification is passed, the local terminal is queried according to the target domain name, and a stored domain name identification library is updated in real time, wherein the domain name identification library records the block identification to which each domain name IP address corresponding relation in local block information belongs, and if the target block identification recorded corresponding to the target domain name can be obtained from the domain name identification library, the target block identification is fed back to the user terminal;
the user terminal verifies the validity of a target block corresponding to the target block identifier according to a preset strategy, if the target block is verified to be valid, a block identifier set in a block chain book which is currently and correspondingly stored in each online adjacent terminal in the node list information is inquired, any online target adjacent terminal containing the target block identifier is obtained, an address inquiry request containing the target domain name is sent to the online target adjacent terminal according to a target IP address which is stored in the node list information and corresponds to the online target adjacent terminal, a communication IP address which is fed back by the online target adjacent terminal and corresponds to the target domain name is received, and the communication IP address is fed back to the target application program, so that the target application program sends an access request according to the communication IP address.
2. The method of claim 1, wherein the user terminal sends a block query request containing the target domain name signed by a user terminal private key to any of the online neighboring terminals according to an IP address of any of the online neighboring terminals,
the user terminal verifies the validity of the target block corresponding to the target block identifier according to a preset strategy, and the verification comprises the following steps:
the user terminal sends a hash inquiry request carrying the target block identifier to any one of the online adjacent terminals, and receives a target block hash value corresponding to the target block identifier and fed back by any one of the online adjacent terminals;
and the user terminal inquires the hash records of all locally pre-stored blocks according to the target block identification, acquires a reference hash value corresponding to the target block identification, compares the reference hash value with the target block hash value, and determines that the target block corresponding to the target block identification is valid if the reference hash value is the same as the target block hash value.
3. The method according to claim 1, wherein the user terminal simultaneously sends block query requests containing the target domain name signed by a user terminal private key to a plurality of online neighboring terminals according to IP addresses of the plurality of online neighboring terminals,
the user terminal verifies the validity of the target block corresponding to the target block identifier according to a preset strategy, and the verification comprises the following steps:
the user terminal receives target block identifications respectively fed back by the online adjacent terminals;
and the user terminal compares all the target block identifications, judges whether the number of the same target block identifications is greater than a preset threshold value, and determines that the target blocks corresponding to the same target block identifications are valid if the number of the same target block identifications is greater than the threshold value.
4. The method according to claim 1, wherein after the local terminal updates the stored domain name identifier repository in real time according to the target domain name query, the method further comprises:
if the online adjacent terminal cannot acquire the record corresponding to the target domain name from the domain name identification library, inquiring locally stored node list information of the online adjacent terminal, and sending a block inquiry request containing the target domain name to other terminals adjacent to the online adjacent terminal;
and the online adjacent terminal receives the target block identification which is fed back by the other terminals and is recorded corresponding to the target domain name, and feeds back the target block identification to the user terminal.
5. The method of claim 1, before the local terminal is queried according to the target domain name to update the stored domain name identity repository in real time, further comprising:
and the online adjacent terminal inquires the domain name information contained in a new block in a locally stored block chain account book, and updates the block identifier to which the new domain name IP address corresponding relation belongs in the domain name identifier library.
6. An information processing system based on a blockchain network neighboring node, comprising: a user terminal and a presence-adjacent terminal, wherein,
the user terminal is configured to, when acquiring an access request including a target domain name sent by a target application program, query locally stored block information according to the target domain name, and if a communication IP address corresponding to the target domain name is not acquired, query locally currently stored node list information of an online adjacent terminal, where the node list information includes: the IP address of each online adjacent terminal and the block identification set in the block chain account book which is currently and correspondingly stored by each online adjacent terminal send a block query request which is signed by a private key of a user terminal and contains the target domain name to the online adjacent terminal according to the IP address of the online adjacent terminal;
the online adjacent terminal is used for verifying the private key signature of the block query request by using the public key of the user terminal, and if the private key signature passes the verification, the online adjacent terminal updates a stored domain name identification library in real time according to the target domain name query local terminal, wherein the domain name identification library records the block identification to which each domain name IP address corresponding relation in local block information belongs, and if the target block identification recorded corresponding to the target domain name can be obtained from the domain name identification library, the target block identification is fed back to the user terminal;
the user terminal is used for verifying the validity of the target block corresponding to the target block identifier according to a preset strategy, if the target block is verified to be valid, inquiring a block identifier set in a block chain account book currently and correspondingly stored by each online adjacent terminal in the node list information, acquiring any online target adjacent terminal containing the target block identifier, sending an address query request containing the target domain name to the online target adjacent terminal according to the target IP address corresponding to the online target adjacent terminal stored in the node list information, receiving a communication IP address corresponding to the target domain name and fed back by the online target adjacent terminal, and feeding back the communication IP address to the target application program so that the target application program sends an access request according to the communication IP address.
7. The system of claim 6,
the user terminal is used for sending a block query request containing the target domain name signed by a private key of the user terminal to any online adjacent terminal according to the IP address of any online adjacent terminal,
the user terminal is configured to send a hash inquiry request carrying the target block identifier to any one of the online adjacent terminals, and receive a target block hash value corresponding to the target block identifier and fed back by any one of the online adjacent terminals;
and the user terminal is used for inquiring the hash records of all locally pre-stored blocks according to the target block identification, acquiring a reference hash value corresponding to the target block identification, comparing the reference hash value with the target block hash value, and if the reference hash value and the target block hash value are the same, determining that the target block corresponding to the target block identification is valid.
8. The system according to claim 6, wherein the user terminal simultaneously sends a block query request containing the target domain name signed by a user terminal private key to a plurality of online neighboring terminals according to IP addresses of the plurality of online neighboring terminals,
the user terminal is used for receiving the target block identifications respectively fed back by the plurality of online adjacent terminals;
the user terminal is configured to compare all the target block identifiers, determine whether the number of the same target block identifiers is greater than a preset threshold, and determine that the target blocks corresponding to the same target block identifiers are valid if the number of the same target block identifiers is greater than the threshold.
9. The system of claim 6,
the online adjacent terminal is further configured to, after the domain name identifier library stored in the local terminal is updated in real time according to the query of the target domain name, query locally stored node list information of the online adjacent terminal if a record corresponding to the target domain name cannot be acquired from the domain name identifier library, and send a block query request including the target domain name to other terminals adjacent to the online adjacent terminal;
and the online adjacent terminal is further configured to receive a target block identifier recorded in correspondence with the target domain name and fed back by the other terminals, and feed back the target block identifier to the user terminal.
10. The system of claim 6,
and the online adjacent terminal is also used for inquiring the domain name information contained in a new block in a block chain book stored locally before the local terminal is inquired according to the target domain name and the domain name identification library updated and stored in real time, and updating the block identification to which the new domain name IP address corresponding relation belongs in the domain name identification library.
CN201910210216.3A 2019-03-19 2019-03-19 Information processing method and system based on block chain network adjacent nodes Active CN109951481B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910210216.3A CN109951481B (en) 2019-03-19 2019-03-19 Information processing method and system based on block chain network adjacent nodes

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910210216.3A CN109951481B (en) 2019-03-19 2019-03-19 Information processing method and system based on block chain network adjacent nodes

Publications (2)

Publication Number Publication Date
CN109951481A CN109951481A (en) 2019-06-28
CN109951481B true CN109951481B (en) 2021-01-15

Family

ID=67010387

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910210216.3A Active CN109951481B (en) 2019-03-19 2019-03-19 Information processing method and system based on block chain network adjacent nodes

Country Status (1)

Country Link
CN (1) CN109951481B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112243047B (en) * 2019-07-19 2022-04-01 傲为有限公司 Public chain based block chain network addressing method
CN111491020B (en) * 2020-04-08 2021-09-28 腾讯科技(深圳)有限公司 Data processing method, data processing device, computer equipment and storage medium
CN113505155B (en) * 2021-07-06 2023-05-12 中国联合网络通信集团有限公司 Transaction information retrieval method and retrieval device based on blockchain network

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108737418A (en) * 2018-05-22 2018-11-02 飞天诚信科技股份有限公司 A kind of identity identifying method and system based on block chain
CN109189751A (en) * 2018-09-18 2019-01-11 平安科技(深圳)有限公司 Method of data synchronization and terminal device based on block chain
CN109426952A (en) * 2017-08-22 2019-03-05 汇链丰(北京)科技有限公司 A kind of block chain framework

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101841566B1 (en) * 2016-10-11 2018-05-04 주식회사 코인플러그 Method for issuing, using, refunding, settling and revocating electric voucher using updated status of balance database by respective blocks in blockchain, and server using the same

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109426952A (en) * 2017-08-22 2019-03-05 汇链丰(北京)科技有限公司 A kind of block chain framework
CN108737418A (en) * 2018-05-22 2018-11-02 飞天诚信科技股份有限公司 A kind of identity identifying method and system based on block chain
CN109189751A (en) * 2018-09-18 2019-01-11 平安科技(深圳)有限公司 Method of data synchronization and terminal device based on block chain

Also Published As

Publication number Publication date
CN109951481A (en) 2019-06-28

Similar Documents

Publication Publication Date Title
CN109902074B (en) Data center-based log storage method and system
US11140177B2 (en) Distributed data authentication and validation using blockchain
CN109819068B (en) User terminal, block chain domain name resolution method thereof, computer equipment and computer readable storage medium
US8239549B2 (en) Dynamic host configuration protocol
US8281023B2 (en) Systems and methods for data authorization in distributed storage networks
US7299351B2 (en) Peer-to-peer name resolution protocol (PNRP) security infrastructure and method
US8806565B2 (en) Secure network location awareness
US10951577B2 (en) Device and method for resolving domain names
CN109951482B (en) User terminal and block chain domain name resolution method thereof
CN109714447B (en) Domain name generation method and system based on block chain domain name system
US9258293B1 (en) Safe and secure access to dynamic domain name systems
CN109729080B (en) Access attack protection method and system based on block chain domain name system
CN101277257B (en) Method, apparatus and system for dynamically updating DNS
US9961110B2 (en) Systems and methods for pre-signing of DNSSEC enabled zones into record sets
CN109951481B (en) Information processing method and system based on block chain network adjacent nodes
CN106790296B (en) Domain name record verification method and device
US11611567B2 (en) Method and system for management and resolution of blockchain-based top-level domain
CN112291356B (en) Self-verification variable name distributed storage method based on CNFS protocol
CN106936945A (en) Distributed domain name analysis method and device
US8112535B2 (en) Securing a server in a dynamic addressing environment
Liu et al. Secure name resolution for identifier-to-locator mappings in the global internet
CN112306970A (en) Processing method, device, equipment and storage medium for container mirror image warehouse
CN111818029B (en) Domain name request processing method and device
Lioy et al. DNS security
Sridhara et al. Global distributed secure mapping of network addresses

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 100191 1107c, 11 / F, Xueyuan international building, 1 Zhichun Road, Haidian District, Beijing

Applicant after: IALLCHAIN Co.,Ltd.

Address before: 100043 5158, 5 floor, 11 Shixing street, Shijingshan District, Beijing.

Applicant before: IALLCHAIN Co.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant