Disclosure of Invention
The application provides a domain name query system and a domain name query method based on a block chain, which can be used for solving the technical problem that once a certain level in the existing DNS system fails or is attacked, the whole system is easy to crash.
In a first aspect, an embodiment of the present application provides a domain name query system based on a block chain, where the system includes a public chain composed of multiple nodes, and a sub-chain composed of partial nodes in the public chain; wherein, the nodes in the public chain are configured with root domain name intelligent contracts; the nodes in the child chain are configured to: generating a sub-domain name intelligent contract by executing the root domain name intelligent contract, and acquiring the ownership of the sub-domain name intelligent contract in a competitive mode;
the nodes in the child chain are further configured to: acquiring a domain name to be queried, and determining a first domain name intelligent contract corresponding to the domain name to be queried; and if the first domain name intelligent contract is configured, calling the first domain name intelligent contract to inquire the address information of the domain name to be inquired.
Optionally, the nodes in the child chain are further configured to: if the first domain name intelligent contract is not configured, determining a second domain name intelligent contract for managing the domain name to be inquired; if the second domain name intelligent contract is configured, calling the second domain name intelligent contract to inquire a first node having ownership of the first domain name intelligent contract; sending a domain name query request to the first node, wherein the domain name query request comprises the domain name to be queried;
the first node is configured to: calling the first domain name intelligent contract to inquire the address information of the domain name to be inquired, and returning the address information of the domain name to be inquired to the node in the sub-chain.
Optionally, the nodes in the child chain are further configured to: if the second domain name intelligent contract is not the root domain name intelligent contract and is not configured with the second domain name intelligent contract, calling the root domain name intelligent contract to inquire a second node having ownership of the second domain name intelligent contract; sending a contract invoking request to the second node, wherein the contract invoking request comprises the second domain name intelligent contract;
the second node is configured to: invoking the second domain name smart contract to query a first node that owns ownership of the first domain name smart contract, and returning the first node to a node in the child chain;
the nodes in the child chain are further configured to: sending a domain name query request to the first node, wherein the domain name query request comprises the domain name to be queried;
the first node is configured to: calling the first domain name intelligent contract to inquire the address information of the domain name to be inquired, and returning the address information of the domain name to be inquired to the node in the sub-chain.
Optionally, the sub-domain name intelligence contracts include a top level domain name intelligence contract and an application domain name intelligence contract.
Optionally, the root domain name intelligent contract is used for managing a top-level domain name, the top-level domain name intelligent contract is used for managing a second-level domain name, and the application domain name intelligent contract is used for managing domain names with three levels or more.
Optionally, the nodes in the child chain are further configured to: a top-level domain name intelligence contract is generated by executing the root domain name intelligence contract, and/or an application domain name intelligence contract is generated by executing the top-level domain name intelligence contract.
Optionally, the nodes in the child chain are further configured to: and if the address information of the domain name to be inquired is not inquired by calling the first domain name intelligent contract, the domain name inquiry is failed.
Optionally, the nodes in the child chain are further configured to: and acquiring the domain name to be inquired sent by the initiating node or the adjacent node corresponding to the node in the sub-chain.
In a second aspect, the present application provides a domain name query method based on a block chain, where the method is applied to the system described above, and the system includes a public chain composed of a plurality of nodes, and a sub-chain composed of partial nodes in the public chain; wherein, the nodes in the public chain are configured with root domain name intelligent contracts; the nodes in the child chain are configured to: generating a sub-domain name intelligent contract by executing the root domain name intelligent contract, and acquiring the ownership of the sub-domain name intelligent contract in a competitive mode; the method comprises the following steps:
acquiring a domain name to be inquired by a node in the sub-chain;
determining a first domain name intelligent contract corresponding to the domain name to be inquired by a node in the sub-chain;
and if the node is configured with the first domain name intelligent contract, the node in the sub-chain calls the first domain name intelligent contract to inquire the address information of the domain name to be inquired.
Optionally, the method further comprises:
and if the node in the sub-chain calls the first domain name intelligent contract to not inquire the address information of the domain name to be inquired, the domain name inquiry is failed.
Optionally, the method further comprises:
if the node is not configured with the first domain name intelligent contract, the node in the sub-chain determines a second domain name intelligent contract for managing the domain name to be inquired;
if the node is configured with the second domain name intelligent contract, the node in the sub-chain calls the second domain name intelligent contract to inquire a first node having ownership of the first domain name intelligent contract;
a node in the sub-chain sends a domain name query request to the first node, wherein the domain name query request comprises the domain name to be queried;
the first node calls the first domain name intelligent contract to inquire the address information of the domain name to be inquired, and returns the address information of the domain name to be inquired to the node in the sub-chain.
Optionally, the method further comprises:
if the second domain name intelligent contract is not a root domain name intelligent contract and is not configured with the second domain name intelligent contract, the node in the sub-chain calls the root domain name intelligent contract to inquire a second node having ownership of the second domain name intelligent contract;
sending, by a node in the child chain, a contract invocation request to the second node, the contract invocation request including the second domain name intelligent contract;
the second node querying a first node that owns the ownership of the first domain name intelligence contract with the second domain name intelligence contract and returning the first node to the nodes in the child chain;
a node in the sub-chain sends a domain name query request to the first node, wherein the domain name query request comprises the domain name to be queried;
the first node calls the first domain name intelligent contract to inquire the address information of the domain name to be inquired, and returns the address information of the domain name to be inquired to the node in the sub-chain.
Optionally, the sub-domain name intelligence contracts include a top level domain name intelligence contract and an application domain name intelligence contract.
Optionally, the root domain name intelligent contract is used for managing a top-level domain name, the top-level domain name intelligent contract is used for managing a second-level domain name, and the application domain name intelligent contract is used for managing domain names with three levels or more.
Optionally, the obtaining, by a node in the child chain, a domain name to be queried includes:
and the nodes in the sub chain acquire the domain names to be inquired, which are sent by the initiating node or the adjacent nodes corresponding to the nodes in the sub chain.
The embodiment of the present application further provides an apparatus, which has a function of implementing the above-described domain name query method based on the blockchain. This function may be implemented by hardware executing corresponding software, and in one possible design, the apparatus includes: a processor, a transceiver, a memory; the memory is used for storing computer execution instructions, the transceiver is used for realizing the communication between the device and other communication entities, the processor is connected with the memory through the bus, and when the device runs, the processor executes the computer execution instructions stored in the memory so as to enable the device to execute the domain name inquiry method based on the block chain.
An embodiment of the present invention further provides a computer storage medium, where a software program is stored in the storage medium, and when the software program is read and executed by one or more processors, the domain name query method based on a block chain described in the foregoing various possible implementation manners is implemented.
Embodiments of the present invention further provide a computer program product containing instructions, which when run on a computer, enable the computer to execute the domain name query method based on a block chain described in the foregoing various possible implementations.
According to the above technical solution, the present application provides a domain name query system based on a block chain, including: a public chain composed of a plurality of nodes, and a sub-chain composed of part of nodes in the public chain. Wherein, all nodes in the public chain are configured with root domain name intelligent contracts; the nodes in the child chain are configured to: generating a sub-domain name intelligent contract by executing the root domain name intelligent contract, and acquiring the ownership of the sub-domain name intelligent contract in a competitive mode; acquiring a domain name to be queried, and determining a first domain name intelligent contract corresponding to the domain name to be queried; and if the first domain name intelligent contract is configured, calling the first domain name intelligent contract to inquire the address information of the domain name to be inquired. According to the method and the system, the DNS system is deployed in the block chain network in a sub-chain mode, and complete decentralized deployment can be achieved. Compared with the existing DNS system, in the domain name query system provided by the application, domain names of different levels are managed by different intelligent contracts, and ownership of the intelligent contracts is acquired by nodes in the sub-chains in a competition mode.
Detailed Description
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
In the technical solution provided by the present application, a blockchain network refers to a point-to-point network with a decentralized application architecture, and the blockchain network can perform distributed storage, public consensus, digital encryption, transaction accounting, and verification inside the network. I.e., the blockchain network is a transaction platform that encompasses distributed technology, cryptography, P2P network architecture, and various consensus algorithms that may be applied.
In this application, the blockchain or blockchain data refers to accounting information generated according to transaction information when transactions occur in a blockchain network, that is, a plurality of transactions form a blockchain, and a plurality of blockchain data form a blockchain with a timestamp. The blockchain network comprises nodes which establish point-to-point network connection with each other, and each node is configured with a corresponding consensus mechanism, such as an intelligent contract, and has enough computing power to perform transaction verification and accounting procedures. The nodes also have interface specifications that conform to some uniform standard to enable access to more nodes or other types of blockchain networks through the interface specifications. The public link is a point-to-point network structure consisting of a plurality of nodes in a block link network, and each node has a distributed storage function and transaction and accounting functions; the nodes on the public link provide a uniform interface specification to the outside.
A possible system architecture to which the embodiments of the present application are applicable will be first described with reference to fig. 1.
Referring to fig. 1, a schematic structural diagram of a domain name querying system based on a blockchain to which an embodiment of the present application is applicable is exemplarily shown. The system may include: the system comprises a public chain consisting of a plurality of nodes and a sub-chain consisting of partial nodes in the public chain. Obviously, in this embodiment, the nodes in the public chain may also be used as child chain nodes at the same time. The nodes in the sub-chain are composed of partial nodes in the public chain, so that the nodes are nodes in the sub-chain and nodes in the public chain. That is, the nodes that make up the child chain have the same intelligent contracts and functions as the nodes of the public chain.
In practice, the public link may provide basic blockchain services in the network, such as transaction, authentication, storage, etc. The public link itself may not have any specific function corresponding to any field, but rather acts as a bridge to collect all sub-chains (or third party blockchain networks) accessing the public link into the same blockchain network, so that different access links can trade or transmit information with each other.
In the technical scheme provided by the application, the nodes in the public chain are all configured with root domain name intelligent contracts. The intelligent contract is a consensus mechanism program agreed based on blockchain transaction, and transaction operation of various functions can be realized through the intelligent contract. In the embodiment of the application, through the root domain name intelligent contract, the node can complete domain name inquiry and registration service through executing the root domain name intelligent contract.
The nodes in the child chain may be configured to: and generating a sub-domain name intelligent contract by executing the root domain name intelligent contract, and acquiring the ownership of the sub-domain name intelligent contract in a competitive mode. After a sub-chain node acquires ownership of a sub-domain name intelligent contract, the sub-chain node may serve as an owner of the sub-domain name intelligent contract, that is, the sub-chain node is configured with the sub-domain name intelligent contract.
Since the nodes constituting the sub-chain have the same intelligent contract as the nodes of the public chain, the nodes in the sub-chain can directly execute the root domain name intelligent contract, thereby generating the sub-domain name intelligent contract. The sub-domain Name intelligent contracts include top-level domain Name intelligent contracts, application domain Name intelligent contracts and domain Name System (BNS) data.
In the domain name system, domain names may be classified into root domain names, top-level domain names, and application domain names. Further, the application domain names can be divided into a second-level domain name, a third-level domain name, a fourth-level domain name and the like. A complete domain name consists of two or more parts, all parts are separated by English periods, and the endmost period is called a root domain name; the right portion of the first to last ". multidot.n" is called the Top Level Domain name (TLD), also called the Level one Domain name, containing a legal string, and a Domain name suffix; the left part of the character string of the top Level Domain name is called a Second Level Domain name (SLD) till the next "-"; the left part of the second-level domain name is called a third-level domain name, and so on, the domain name of each level controls the distribution of the domain name of the next level.
In the embodiment of the application, different intelligent contracts are provided for domain names of different levels. The root domain name can correspond to a root domain name intelligent contract, and the root domain name intelligent contract can be used for managing and maintaining the top-level domain name and generating the top-level domain name intelligent contract; the top-level domain name may correspond to a top-level domain name intelligence contract, which may be used to manage and maintain the application domain name (e.g., manage the secondary domain name), and generate the application domain name intelligence contract; the application domain name may correspond to an application domain name intelligence contract, which may be used to manage and maintain BNS data; BNS data can include information related to the third level domain name, information related to the fourth level domain name, and the like.
Further, the nodes in the child chain may be specifically configured to: a top-level domain name intelligence contract is generated by executing a root domain name intelligence contract.
Alternatively, the nodes in the child chain may be specifically configured to: an application domain name intelligence contract is generated by executing a top level domain name intelligence contract.
Based on the system architecture shown in fig. 1 and what is described above, the following describes the case of domain name query in detail.
Fig. 2 schematically illustrates a flow chart of a domain name query system for performing domain name query according to an embodiment of the present application.
As shown in fig. 2, a node in the child chain (e.g., node 1 shown in fig. 2) may be further configured to: acquiring a domain name to be queried, and determining a first domain name intelligent contract corresponding to the domain name to be queried; and if the first domain name intelligent contract is configured, calling the first domain name intelligent contract to inquire the address information of the domain name to be inquired.
Further, if the address information of the domain name to be queried is not queried by calling the first domain name intelligent contract, the domain name query fails.
According to the above technical solution, the present application provides a domain name query system based on a block chain, including: a public chain composed of a plurality of nodes, and a sub-chain composed of part of nodes in the public chain. Wherein, all nodes in the public chain are configured with root domain name intelligent contracts; the nodes in the child chain are configured to: generating a sub-domain name intelligent contract by executing the root domain name intelligent contract, and acquiring the ownership of the sub-domain name intelligent contract in a competitive mode; acquiring a domain name to be queried, and determining a first domain name intelligent contract corresponding to the domain name to be queried; and if the first domain name intelligent contract is configured, calling the first domain name intelligent contract to inquire the address information of the domain name to be inquired. According to the method and the system, the DNS system is deployed in the block chain network in a sub-chain mode, and complete decentralized deployment can be achieved. Compared with the existing DNS system, in the domain name query system provided by the application, domain names of different levels are managed by different intelligent contracts, and ownership of the intelligent contracts is acquired by nodes in the sub-chains in a competition mode.
As can be seen from the illustration of fig. 2, the transaction request received by the node in the child chain (i.e., node 1) originates from node 0. Node 0 may be the initiating node of the domain name erasing transaction, or may be a neighboring node of the node (i.e., node 1) in the child chain. That is, a node in the child chain (e.g., node 1 shown in fig. 2) may be further configured to: and acquiring the domain name to be inquired sent by the initiating node or the adjacent node corresponding to the node in the sub-chain.
According to different practical application environments, the transaction forms between the initiating node and the nodes in the sub-chain are different. The following two situations may be possible in which a node in the child chain acquires a domain name to be queried sent by the originating node.
One scenario is that if the originating node can directly perform transaction or information interaction with the nodes in the sub-chain, the domain name to be queried can be sent to the nodes in the sub-chain directly through the originating node. This approach is best suited for transactions where the originating node is in the same blockchain network as the nodes in the child chain, i.e., the originating node is also a node in the domain name query system.
Another scenario is that if the originating node cannot directly perform transaction or information interaction with the nodes in the child chain, the domain name to be queried may be broadcast by the originating node. Specifically, the domain name to be queried may be broadcast to the neighboring node, and the neighboring node determines whether to receive the domain name to be queried or continue to broadcast in combination with its own role until the node in the sub-chain receives the domain name to be queried.
The situation that the node in the sub-chain receives the domain name to be queried sent by the neighboring node of the node in the sub-chain corresponds to the situation that the initiating node does not know the position information of the core node and sends the domain name to be queried in the block chain in a broadcasting mode, so that the node in the sub-chain can receive the domain name to be queried through the neighboring node along with the diffusion of information.
It should be noted that the above two cases are only exemplary, and in other possible examples, if the initiating node is a neighboring node of a node in the sub-chain, the node in the sub-chain may also be regarded as directly receiving the domain name to be queried sent by the initiating node.
In this embodiment, it is considered that the nodes in the sub-chain acquire ownership of the sub-domain intelligent contract in a competitive manner, that is, when a node in the sub-chain acquires a domain name to be queried, a situation may occur that the node does not acquire ownership of the first domain intelligent contract corresponding to the domain name to be queried in a competitive manner, that is, the node is not configured with the first domain intelligent contract. Based on this, fig. 3 exemplarily shows a schematic flowchart of another domain name querying system for domain name querying according to an embodiment of the present application.
As shown in fig. 3, a node in the child chain (e.g., node 1 shown in fig. 3) may be further configured to: acquiring a domain name to be queried sent by an initiating node (such as node 0 shown in fig. 3), and determining a first domain name intelligent contract corresponding to the domain name to be queried; if the intelligent contract is not configured with the first domain name intelligent contract, determining a second domain name intelligent contract for managing the domain name to be inquired; if the second domain name intelligent contract is configured, calling the second domain name intelligent contract to inquire a first node (such as a node 2 shown in figure 3) having the ownership of the first domain name intelligent contract; sending a domain name query request to the first node. The domain name query request comprises a domain name to be queried.
Accordingly, a first node (e.g., node 2 shown in fig. 3) may be configured to: calling a first domain name intelligent contract to inquire the address information of the domain name to be inquired, and returning the address information of the domain name to be inquired to the node in the sub-chain.
Based on the same consideration, in the embodiment of the present application, a situation may occur that nodes in a child chain do not compete to acquire ownership of the second domain name intelligent contract, that is, the nodes themselves are not configured with the second domain name intelligent contract. Based on this, fig. 4 exemplarily shows a flowchart of a domain name query system for performing domain name query according to an embodiment of the present application.
As shown in fig. 4, a node in the child chain (e.g., node 1 shown in fig. 4) may be further configured to: acquiring a domain name to be queried sent by an initiating node (such as a node 0 shown in fig. 4), and determining a first domain name intelligent contract corresponding to the domain name to be queried; if the intelligent contract is not configured with the first domain name intelligent contract, determining a second domain name intelligent contract for managing the domain name to be inquired; if the second domain name intelligent contract is not the root domain name intelligent contract and is not configured with the second domain name intelligent contract, calling the root domain name intelligent contract to inquire a second node (such as a node 3 shown in the figure 4) having the ownership of the second domain name intelligent contract; and sending a contract invoking request to the second node. Wherein the contract invocation request includes a second domain name intelligent contract.
In the domain name query system provided by the embodiment of the application, all nodes in a public chain are configured with root domain name intelligent contracts, and nodes in a sub-chain are composed of part of nodes in the public chain, that is, all nodes in the sub-chain are also configured with root domain name intelligent contracts; thus, when a node in the child chain determines that it is not itself configured with a second domain name intelligence contract, the root domain name intelligence contract may be invoked directly.
Accordingly, a second node (e.g., node 3 shown in fig. 4) may be configured to: invoking the second domain name intelligence contract queries a first node (e.g., node 2 shown in fig. 4) that owns the ownership of the first domain name intelligence contract, and returns the first node to the nodes in the child chain.
In turn, the node in the child chain (e.g., node 1 shown in fig. 4) may be further configured to: sending a domain name query request to the first node. The domain name query request comprises a domain name to be queried.
As such, a first node (e.g., node 2 shown in fig. 4) may be configured to: calling a first domain name intelligent contract to inquire the address information of the domain name to be inquired, and returning the address information of the domain name to be inquired to the node in the sub-chain.
Considering that the domain names to be queried in the present application may be domain names of different levels, the domain name intelligent contracts called are correspondingly different. The following describes in detail a domain name query process of domain names to be queried at different levels by way of example.
Example one:
fig. 5 is a schematic diagram of a domain name query process of a top-level domain name according to an embodiment of the present application.
The node in the child chain (e.g., node 1 shown in fig. 5) may be further configured to: acquiring a top-level domain name to be queried, which is sent by an initiating node (such as a node 0 shown in fig. 5), and determining a top-level domain name intelligent contract corresponding to the top-level domain name to be queried; if the top-level domain name intelligent contract is configured, calling the top-level domain name intelligent contract to inquire the address information of the top-level domain name to be inquired; if the top-level domain name intelligent contract is not configured, calling the root domain name intelligent contract to inquire a node (such as a node 2 shown in figure 5) having ownership of the top-level domain name intelligent contract, and sending a contract calling request to the node, wherein the contract calling request comprises the top-level domain name intelligent contract.
The node that owns this top-level domain name intelligent contract ownership (e.g., node 2 shown in fig. 5) may be configured to: and calling a top-level domain name intelligent contract to inquire the address information of the top-level domain name to be inquired, and returning the address information of the top-level domain name to be inquired to the node in the sub-chain.
Example two:
fig. 6 is a schematic diagram of a domain name query process of a secondary domain name provided in the embodiment of the present application.
The node in the child chain (e.g., node 1 shown in fig. 6) may be further configured to: acquiring a secondary domain name to be queried sent by an initiating node (such as a node 0 shown in fig. 6), and determining an application domain name intelligent contract corresponding to the secondary domain name to be queried; if the application domain name intelligent contract is configured, calling the application domain name intelligent contract to inquire the address information of the secondary domain name to be inquired; and if the application domain name intelligent contract is not configured, determining to manage the top level domain name intelligent contract of the second level domain name to be inquired. If the top-level domain name intelligent contract is configured, calling the top-level domain name intelligent contract to inquire a first node (such as a node 2 shown in fig. 6) having ownership of the application domain name intelligent contract, and sending a domain name inquiry request to the first node; if the top-level domain name intelligent contract is not configured, the root domain name intelligent contract is called to inquire a second node (such as a node 3 shown in figure 6) having the ownership of the top-level domain name intelligent contract, and a contract calling request is sent to the second node.
A first node (e.g., node 2 shown in fig. 6) may be configured to: calling the intelligent contract of the application domain name to inquire the address information of the secondary domain name to be inquired, and returning the address information of the secondary domain name to be inquired to the node in the sub-chain.
The second node (e.g., node 3 shown in fig. 6) may be configured to: invoking the top level domain name intelligent contract to inquire a first node having the ownership of the application domain name intelligent contract, and returning the first node to the nodes in the sub-chain.
It should be noted that, if the domain name to be queried is a domain name with three or more levels, the method shown in fig. 6 can also be used to implement domain name querying, and will not be described in detail here.
Based on the same inventive concept, the embodiment of the application also provides a domain name query method based on the block chain. Fig. 7 is a schematic flowchart corresponding to a domain name querying method based on a block chain according to an embodiment of the present application. The method can be applied to the domain name query system described above, and the system can include a public chain composed of a plurality of nodes and a sub-chain composed of part of nodes in the public chain; wherein, the nodes in the public chain are configured with root domain name intelligent contracts; the nodes in the child chain are configured to: generating a sub-domain name intelligent contract by executing the root domain name intelligent contract, and acquiring ownership of the sub-domain name intelligent contract in a competitive mode; the method specifically comprises the following steps:
step 101, a node in a child chain acquires a domain name to be queried.
Step 102, a node in the sub-chain determines a first domain name intelligent contract corresponding to the domain name to be queried.
Step 103, if the node is configured with the first domain name intelligent contract, the node in the sub-chain calls the first domain name intelligent contract to inquire the address information of the domain name to be inquired.
Further, after step 103, step 104 may be further included, that is, the node in the child chain may also return address information of the domain name to be queried to the originating node.
By adopting the method, the DNS system is deployed in the block chain network in the form of the sub-chain, and complete decentralized deployment can be realized. Compared with the existing DNS system, in the domain name query method provided by the application, domain names of different levels are managed by different intelligent contracts, and ownership of the intelligent contracts is acquired by nodes in the sub-chains in a competition mode.
Optionally, the method further comprises:
and if the node in the sub-chain calls the first domain name intelligent contract to not inquire the address information of the domain name to be inquired, the domain name inquiry is failed.
Optionally, the method further comprises:
if the node is not configured with the first domain name intelligent contract, the node in the sub-chain determines a second domain name intelligent contract for managing the domain name to be inquired;
if the node is configured with the second domain name intelligent contract, the node in the sub-chain calls the second domain name intelligent contract to inquire a first node having ownership of the first domain name intelligent contract;
a node in the sub-chain sends a domain name query request to the first node, wherein the domain name query request comprises the domain name to be queried;
the first node calls the first domain name intelligent contract to inquire the address information of the domain name to be inquired, and returns the address information of the domain name to be inquired to the node in the sub-chain.
Optionally, the method further comprises:
if the second domain name intelligent contract is not a root domain name intelligent contract and is not configured with the second domain name intelligent contract, the node in the sub-chain calls the root domain name intelligent contract to inquire a second node having ownership of the second domain name intelligent contract;
sending, by a node in the child chain, a contract invocation request to the second node, the contract invocation request including the second domain name intelligent contract;
the second node querying a first node that owns the ownership of the first domain name intelligence contract with the second domain name intelligence contract and returning the first node to the nodes in the child chain;
a node in the sub-chain sends a domain name query request to the first node, wherein the domain name query request comprises the domain name to be queried;
the first node calls the first domain name intelligent contract to inquire the address information of the domain name to be inquired, and returns the address information of the domain name to be inquired to the node in the sub-chain.
Optionally, the sub-domain name intelligence contracts include a top level domain name intelligence contract and an application domain name intelligence contract.
Optionally, the root domain name intelligent contract is used for managing a top-level domain name, the top-level domain name intelligent contract is used for managing a second-level domain name, and the application domain name intelligent contract is used for managing domain names with three levels or more.
Optionally, the obtaining, by a node in the child chain, a domain name to be queried includes:
and the nodes in the sub chain acquire the domain names to be inquired, which are sent by the initiating node or the adjacent nodes corresponding to the nodes in the sub chain.
In an exemplary embodiment, a computer-readable storage medium is further provided, in which a computer program or an intelligent contract is stored, and the computer program or the intelligent contract is loaded and executed by a node to implement the transaction processing method provided by the above-described embodiment. Alternatively, the computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
Those skilled in the art will clearly understand that the techniques in the embodiments of the present application may be implemented by way of software plus a required general hardware platform. Based on such understanding, the technical solutions in the embodiments of the present application may be essentially implemented or a part contributing to the prior art may be embodied in the form of a software product, which may be stored in a storage medium, such as a ROM/RAM, a magnetic disk, an optical disk, etc., and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method described in the embodiments or some parts of the embodiments of the present application.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.