Domain name resolution method and system based on multi-blockchain system, electronic device and storage medium

By deploying domain name management and parsing contracts in a multi-blockchain system, and using external databases to transmit user domain names and application blockchain information, the problem of users in a multi-blockchain environment needs to remember multiple account addresses is solved, and a simplified domain name transaction solution is realized, which improves the reliability and success rate of transactions.

CN118175137BActive Publication Date: 2025-04-18National Information Center (National E-Government Extranet Management Center) +2
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410114876.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-01-26
Publication Date
2025-04-18
Estimated Expiration
2044-01-26

AI Technical Summary

Technical Problem

In a multi-blockchain environment, users need to use different account addresses to initiate transactions, which increases the difficulty of use and is prone to transaction failure or loss due to account address memory errors.

Method used

By deploying the first domain name management contract and the first domain name resolution contract on the management blockchain, deploying the second domain name management contract and the second domain name resolution contract on multiple application blockchains, and using external databases to store and transmit user domain name and application blockchain information, users can use domain names to initiate transactions and then obtain the account address on the corresponding blockchain.

Benefits of technology

It simplifies the complexity of users using smart contracts in multi-blockchain environments, reduces the need to memorize account addresses, and improves transaction reliability and success rate.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118175137B_ABST
    Figure CN118175137B_ABST
Patent Text Reader

Abstract

The present application discloses a domain name resolution method and system based on a multi-blockchain system, an electronic device and a storage medium. The embodiment of the present application deploys a first domain name management contract and a first domain name resolution contract on a management blockchain, and deploys a second domain name management contract and a second domain name resolution contract on multiple application blockchains. An external database sends the user domain name information to the management blockchain according to the user's domain name registration request, and sends the user domain name and user identifier used on the specified application blockchain to the corresponding application blockchain. When the user initiates a transaction on the application blockchain, the domain name resolution contract deployed on the application blockchain is called to resolve the user domain name, thereby obtaining the user's account address on the application blockchain, and then using the account address to execute transactions on the application blockchain. The user can use a simplified domain name to initiate a transaction, which greatly simplifies the complexity of the user using smart contracts in multiple blockchains.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of network technology, and in particular to a domain name resolution method and system, electronic device and storage medium based on a multi-blockchain system. Background Art

[0002] With the development of Internet technology, people can live and work more and more through the Internet, and therefore various websites built on the Internet have emerged to provide users with various services. In the process of providing services to users, various data of users are inevitably stored on the Internet, which brings security risks such as data tampering. For this reason, blockchain technology has been proposed, which can use the consensus mechanism of each node constituting the blockchain network to ensure the non-tamperability of the data uploaded by users to the blockchain. In recent years, the development of blockchain technology has led to the existence of a variety of blockchains for users to use. Due to the differences in the technologies and mechanisms used by different blockchains, different blockchains have attracted different users to use them with their own advantages.

[0003] However, with the increase in blockchain application scenarios, many users are increasingly using multiple blockchains to meet their business needs. However, when users use smart contracts deployed on different blockchains in such a multi-blockchain environment, they need to use different account addresses to execute corresponding transactions on different blockchains. The account address on the blockchain is usually composed of a string of hexadecimal strings. Therefore, when users initiate transactions on different blockchains, they need to use the corresponding account address to submit the transaction, which greatly increases the difficulty of users in the multi-blockchain environment. It is also easy for users to fail transactions or even cause losses to users due to errors in their memory of account addresses. Therefore, a solution is needed to simplify users initiating transactions using different account addresses in a multi-blockchain environment. Summary of the invention

[0004] The embodiments of the present application provide a domain name resolution method and system based on a multi-blockchain system, an electronic device, and a storage medium to solve the inconvenience caused by the need for users to use different account addresses to initiate transactions in a multi-blockchain environment in the prior art.

[0005] To achieve the above-mentioned purpose, an embodiment of the present application provides a domain name resolution method based on a multi-blockchain system, wherein the multi-blockchain system includes: a management blockchain and multiple application blockchains, wherein a first domain name management contract and a first domain name resolution contract are deployed on the management blockchain, and a second domain name management contract and a second domain name resolution contract are deployed on the multiple application blockchains, wherein the management blockchain and the multiple application blockchains are respectively connected to an external database, and the domain name resolution method includes:

[0006] The management blockchain stores the user domain name and the corresponding application blockchain information in the first domain name management contract according to the user domain name registration request initiated by the user in the external database;

[0007] The external database sends the user identifier and the user domain name to the application blockchain identified by the application blockchain information according to the user domain name and the corresponding application blockchain information stored therein;

[0008] Obtaining a user identifier and account information of the user from a transaction request initiated by the user on one of the multiple application blockchains;

[0009] determining, based on the account information, that the user used a user domain name in the transaction request;

[0010] Calling a second domain name resolution contract on the one application blockchain according to the user identifier and the user domain name to obtain the account address of the user on the one application blockchain;

[0011] The transaction request is executed on the one application blockchain based on the account address.

[0012] The embodiment of the present application also provides a domain name resolution system based on a multi-blockchain system, the domain name resolution system comprising: a multi-blockchain system and an external database, the multi-blockchain system comprising: a management blockchain and multiple application blockchains, a first domain name management contract and a first domain name resolution contract are deployed on the management blockchain, and a second domain name management contract and a second domain name resolution contract are deployed on the multiple application blockchains, the management blockchain and the multiple application blockchains are respectively connected to the external database,

[0013] The external database is used to send the user identifier and the user domain name to the application blockchain identified by the application blockchain information according to the user domain name and the corresponding application blockchain information stored therein;

[0014] The management blockchain is used to store the user domain name and the corresponding application blockchain information in the first domain name management contract according to the user domain name registration request initiated by the user in the external database;

[0015] The application blockchain is used to obtain a user identifier and account information of the user from a transaction request initiated by the user on the application blockchain; determine, according to the account information, that the user uses a user domain name in the transaction request; call a second domain name resolution contract on the one application blockchain according to the user identifier and the user domain name to obtain an account address of the user on the one application blockchain; and execute the transaction request on the one application blockchain based on the account address.

[0016] The present application also provides an electronic device, including:

[0017] Memory, used to store programs;

[0018] The processor is used to run the program stored in the memory, and when the program is run, the domain name resolution method in the multi-blockchain system provided in the embodiment of the present application is executed.

[0019] An embodiment of the present application also provides a computer-readable storage medium, on which a computer program executable by a processor is stored, wherein when the program is executed by the processor, a domain name resolution method in a multi-blockchain system provided in an embodiment of the present application is implemented.

[0020] The domain name resolution method and system, electronic device and storage medium based on a multi-blockchain system provided by the embodiments of the present application, by deploying a first domain name management contract and a first domain name resolution contract on a management blockchain in the multi-blockchain system, deploying a second domain name management contract and a second domain name resolution contract on multiple application blockchains, and having an external database send the user domain name information registered by the user to the management blockchain according to the user's domain name registration request, and send the user domain name and user identifier used by the user on the specified application blockchain to the corresponding application blockchain, so that when the user initiates a transaction on the application blockchain, the domain name resolution contract deployed on the application blockchain can be called to resolve the user domain name contained in the user transaction request, thereby obtaining the user's account address on the application blockchain, and then using the account address to execute transactions on the application blockchain. Therefore, the user does not need to remember each account address on each application blockchain, but can use a simplified domain name to initiate transactions, which greatly simplifies the complexity of users using smart contracts in multiple blockchains.

[0021] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present application. Also, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:

[0023] Figure 1 This is a schematic diagram of an application scenario of a domain name resolution solution based on a multi-blockchain system according to an embodiment of the present application;

[0024] Figure 2 A flowchart of an embodiment of a domain name resolution method based on a multi-blockchain system provided by this application;

[0025] Figure 3 A schematic diagram of the structure of the domain name resolution system based on a multi-blockchain system provided for this application;

[0026] Figure 4 A schematic diagram of the structure of an electronic device embodiment provided in this application. DETAILED DESCRIPTION

[0027] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0028] Embodiment 1

[0029] The solution provided in the embodiments of the present application can be applied to any multi-blockchain system with blockchain data processing function.

[0030] With the development of Internet technology, people can live and work more and more through the Internet, and therefore various websites built on the Internet have emerged to provide users with various services. In the process of providing services to users, various data of users are inevitably stored on the Internet, which brings security risks such as data tampering. For this reason, blockchain technology has been proposed, which can use the consensus mechanism of each node constituting the blockchain network to ensure the non-tamperability of the data uploaded by users to the blockchain. In recent years, the development of blockchain technology has led to the existence of a variety of blockchains for users to use. Due to the differences in the technologies and mechanisms used by different blockchains, different blockchains have attracted different users to use them with their own advantages.

[0031] However, with the increase in blockchain application scenarios, many users are increasingly using multiple blockchains at the same time to meet their business needs. However, when users use smart contracts deployed on different blockchains in such a multi-blockchain environment, different account addresses need to be used on different blockchains to execute corresponding transactions. The account address on the blockchain is usually composed of a string of hexadecimal strings. Therefore, when users initiate transactions on different blockchains, they need to use the corresponding account address to submit the transaction, which greatly increases the difficulty of users in a multi-blockchain environment. It is also easy for users to have errors in their memory of the account address, which may lead to transaction failures or even losses to users.

[0032] For example, Figure 1 As shown in Figure 1 Schematic diagram showing an application scenario of a domain name resolution solution based on a multi-blockchain system according to an embodiment of the present application. Figure 1 In the multi-blockchain scenario shown in , there may be multiple blockchains, for example, Figure 1 As shown in , there may be four blockchains, and one of the blockchains may be used as a management blockchain, and the management blockchain may be deployed with a first domain name management contract for managing user domain names and a first domain name resolution contract for resolving user domain names, and the other three blockchains may be used as application blockchains 1-3 on which users execute smart contracts of various applications, and therefore, the application blockchains 1-3 may be respectively deployed with a second domain name management contract 1-3 for managing user domain names and a second domain name resolution contract 1-3 for resolving user domain names. In addition, in the embodiment of the present application, an external database may be further provided in the domain name resolution scheme, and the management blockchain and each application blockchain 1-3 may be respectively connected to the external database.

[0033] In the embodiment of the present application, since different blockchains usually support different domain name services, in other words, the domain name resolution contracts used for domain name resolution on different blockchains are different, and therefore, in the prior art, users cannot use the same domain name in different blockchains to resolve and obtain the corresponding account address. In the embodiment of the present application, the domain name resolution process is split into a domain name management contract and a domain name resolution contract, and a first domain name management contract and a first domain name resolution contract are deployed on the management blockchain, and a second domain name management contract and a second domain name resolution contract are deployed on the corresponding one or more application blockchains, respectively, and an external database can first store the user's domain name registration information in an external database according to the user domain name registration request initiated by the user for each application blockchain, and then send the registration information in full to the first domain name management contract on the management blockchain for storage therein, and then send the user domain name used by the user on each application blockchain to the corresponding application blockchain, so that the user can directly use the domain name as the account address on each application blockchain to initiate a transaction.

[0034] When a user initiates a transaction using a domain name on each application blockchain, the application blockchain where the user initiates the transaction can request the domain name resolution contract on the application blockchain in response to the transaction request. Since the external database has already sent the domain name used by the user on the application blockchain to the application blockchain in advance, the application blockchain can call the second domain name resolution contract based on the user domain name included in the user's transaction request to resolve the user domain name included in the transaction request submitted by the user, so as to obtain the user's real account address on the blockchain, so that the account address can be used to execute the transaction.

[0035] Specifically, for example, Figure 1 As shown in , a user can log in to the business server of the portal website by using a terminal installed with an application corresponding to the management blockchain, such as a computer or a mobile terminal, and can fill in his domain name registration request on the specified application blockchain on the business server. After receiving the domain name registration request of the user, the business server can send the relevant registration information to the external database, so as to check and verify the user information contained in the registration request, such as the user identification and the domain name that the user wants to register, and after the verification, the user identification and the user domain name can be stored in the external database in association as the domain name file registered by the user in the external database. After completing the domain name registration of the user, the external database can synchronously or asynchronously send the full domain name registration information of the user to the management blockchain, such as the first domain name management contract deployed on the management blockchain, for storage. At the same time or later, the external database can send the user domain name and user identification registered by the user to the corresponding application blockchain according to the user domain name registered by the user and the chain information of the corresponding application blockchain, such as the chain identification, so that the corresponding application blockchain can store the registration information in the second domain name management contract deployed thereon.

[0036] In addition, the user can specify the application blockchain that wants to use the user's domain name by logging into the business server, so that the business server can deploy the second domain name management contract and the second domain name resolution contract on the corresponding application blockchain respectively. After the deployment is completed, the user can initiate a domain name registration request on the business server so that the external database stores the user's domain name registration information therein, and then sends the user's domain name registration information to the corresponding application blockchain, so that the user can directly use the domain name on the application blockchain to perform processing.

[0037] In an embodiment of the present application, the user can submit the contract address of the domain name resolution contract on the application blockchain and the blockchain identifier of the application blockchain to the external database on the business server, so that the external database can identify the user identifier used by the user when submitting the information, and after verification, the contract address of the domain name resolution contract submitted by the user, for example, deployed in the application blockchain 3 and the blockchain identifier of the application blockchain 3, for example, blockchain 3, is stored in the corresponding user domain name file to establish an association between the contract address of the domain name resolution contract on the application blockchain and the blockchain identifier of the application blockchain and the user identifier and the user domain name registered or purchased by the user.

[0038] When a user accesses the application blockchain, e.g. Figure 1 When the blockchain 3 shown in FIG. 3 is used, the user identifier and the user domain name may be included in the transaction request, and the application blockchain may identify that the user does not use the user account address in the transaction request but uses the user domain name when identifying the user domain name included in the transaction request, and determine that the domain name resolution contract needs to be called to resolve the user domain name. Therefore, the application blockchain may send the user identifier and the user domain name included in the transaction request submitted by the user to the second domain name resolution contract deployed thereon to obtain the corresponding user account address.

[0039] For example, a first domain name management contract and a second domain name resolution contract may be deployed on the management blockchain, and a second domain name management contract and a second domain name resolution contract may be deployed on the application blockchains 1-3. In this case, when a user logs in to a business server such as a portal website to use a domain name registration service, the user can submit the user domain name that he wants to use on each or part of the application blockchain on the business server and can specify the corresponding application blockchain. Therefore, the business server that receives the user's domain name registration request can send the user domain name registration request to an external database, so that the external database can store the user identifier, such as user 1, and the user domain name, such as abc, and the chain identifier of the application blockchain to be used, such as application blockchain 1-3, in association after verifying the user information contained in the request. After the storage is completed, the external database can send the stored full amount of information to the management blockchain, and can send the domain name registration information to the corresponding application blockchain 1-3, so that the user's domain name registration information can be stored in the second domain name management contract of the application blockchain 1-3. When a user accesses the application blockchain 3 to initiate a transaction request, the application blockchain 3 can identify that the transaction request submitted by the user uses the user domain name based on the user identifier, such as user 1, and the user domain name, such as abc, contained in the transaction request initiated by the user, and therefore, the second domain name resolution contract deployed on the application blockchain 3 can be called to resolve the user domain name contained in the transaction request to obtain the user's account address on the application blockchain. In addition, when the second domain name resolution contract that is customized or customized by the user for the application blockchain is deployed on each application blockchain, the calling method corresponding to the second domain name resolution contract deployed in each application blockchain needs to be additionally stored in the external database and the management blockchain, so that when the application blockchain 3 retrieves the contract address and calling method of the domain name resolution contract deployed by user 1 on the application blockchain 3 according to the user identifier and user domain name of user 1, the application resolution contract indicated by the contract address can be called according to the calling method, thereby obtaining the user's account address on the application blockchain 3, and using the account address to execute the transaction request submitted by the user.

[0040] Of course, in the embodiment of the present application, the user can also mix the deployment method of the above-mentioned domain name resolution contract in multiple application blockchains, that is, on a part of the application blockchain, for example Figure 1 On the application blockchain 1 shown in , a unified second domain name resolution contract is deployed, while on other application blockchains, such as Figure 1 On the application blockchains 2 and 3 shown in the figure, a user-defined or customized domain name resolution contract is deployed, and this application has no restrictions on this.

[0041] In addition, when initiating a user's domain name registration request to an external database, the authority to call the domain name resolution contract can be further specified, such as the time period in which the domain name resolution contract can be called, or the domain name resolution contract on which application blockchain is not allowed to be called or is not allowed to be called within a certain time period, etc. Therefore, when a user accesses an application blockchain, for example Figure 1 When the application blockchain 3 shown in , the application blockchain 3 can perform corresponding resolution processing according to the permission of calling the domain name resolution contract issued by the external database, for example, allowing the call on Monday, or allowing the call this month, or even the domain name resolution contract on the current application blockchain 3 is unavailable or disabled, and other information.

[0042] For example, the application blockchain 3 can wait for a predetermined time according to the domain name registration information containing time information issued by an external database to call the second domain name resolution contract according to the contract address within the calling time specified by the user, or it can also send a message to the user, such as that the current domain name resolution is unavailable.

[0043] In addition, users can also directly initiate domain name query requests to external databases or management blockchains, for example, to query user domain names registered on various application blockchains and call records and other information. Therefore, for example, when the management blockchain receives a domain name query request from a user, it can call the first domain name resolution contract to obtain a user ID based on the user domain name included in the domain name query request, and query the first domain name management contract for relevant domain name information based on the user ID.

[0044] The domain name resolution solution based on a multi-blockchain system provided in an embodiment of the present application deploys a first domain name management contract and a first domain name resolution contract on a management blockchain in the multi-blockchain system, deploys a second domain name management contract and a second domain name resolution contract on multiple application blockchains, and an external database sends the user domain name information registered by the user to the management blockchain according to the user's domain name registration request, and sends the user domain name and user identifier used by the user on the specified application blockchain to the corresponding application blockchain, so that when the user initiates a transaction on the application blockchain, the domain name resolution contract deployed on the application blockchain can be called to resolve the user domain name contained in the user transaction request, thereby obtaining the user's account address on the application blockchain, and then using the account address to execute transactions on the application blockchain. Therefore, the user does not need to remember each account address on each application blockchain, but can use a simplified domain name to initiate transactions, which greatly simplifies the complexity of users using smart contracts in multiple blockchains.

[0045] The above embodiments are illustrations of the technical principles and exemplary application frameworks of the embodiments of the present application. The specific technical solutions of the embodiments of the present application are further described in detail below through multiple embodiments.

[0046] Embodiment 2

[0047] Figure 2 The flowchart of the embodiment of the domain name resolution method based on the multi-blockchain system provided by the present application, the execution subject of the method can be various terminals or server devices with data processing capabilities, or it can be a device or chip integrated on these devices. In particular, the multi-blockchain system applied by the domain name resolution method of the embodiment of the present application may include multiple blockchains. For example, Figure 1 As shown in , there may be four blockchains, and one of the blockchains may be used as a management blockchain, and the management blockchain may be deployed with a first domain name management contract for managing user domain names and a first domain name resolution contract for resolving user domain names, and the other three blockchains may be used as application blockchains 1-3 on which users execute smart contracts of various applications, and therefore, the application blockchains 1-3 may be respectively deployed with a second domain name management contract 1-3 for managing user domain names and a second domain name resolution contract 1-3 for resolving user domain names. The management blockchain and each application blockchain 1-3 may be connected to an external database, respectively.

[0048] In the embodiment of the present application, since different blockchains usually support different domain name services, in other words, the domain name resolution contracts used for domain name resolution on different blockchains are different, and therefore, in the prior art, users cannot use the same domain name in different blockchains to resolve and obtain the corresponding account address. In the embodiment of the present application, the domain name resolution process is split into a domain name management contract and a domain name resolution contract, and a first domain name management contract and a first domain name resolution contract are deployed on the management blockchain, and a second domain name management contract and a second domain name resolution contract are deployed on the corresponding one or more application blockchains, respectively, and an external database can first store the user's domain name registration information in an external database according to the user domain name registration request initiated by the user for each application blockchain, and then send the registration information in full to the first domain name management contract on the management blockchain for storage therein, and then send the user domain name used by the user on each application blockchain to the corresponding application blockchain, so that the user can directly use the domain name as the account address on each application blockchain to initiate a transaction.

[0049] When a user initiates a transaction using a domain name on each application blockchain, the application blockchain where the user initiates the transaction can request the domain name resolution contract on the application blockchain in response to the transaction request. Since the external database has already sent the domain name used by the user on the application blockchain to the application blockchain in advance, the application blockchain can call the second domain name resolution contract based on the user domain name included in the user's transaction request to resolve the user domain name included in the transaction request submitted by the user, so as to obtain the user's real account address on the blockchain, so that the account address can be used to execute the transaction.

[0050] like Figure 2 As shown, the domain name resolution method in the multi-blockchain system includes the following steps:

[0051] S201, the management blockchain stores the user domain name and the corresponding application blockchain information in the first domain name management contract according to the user domain name registration request initiated by the user in the external database.

[0052] S202, the external database sends the user identifier and the user domain name to the application blockchain identified by the application blockchain information based on the user domain name and the corresponding application blockchain information stored therein.

[0053] S203, obtaining a user identifier and account information of the user from a transaction request initiated by the user on one of the multiple application blockchains.

[0054] S204: Determine, based on the account information, whether the user has used a user domain name in the transaction request.

[0055] In step S201, the user can log in to the business server of the portal website by using a terminal installed with an application corresponding to the management blockchain, such as a computer or a mobile terminal, and can fill in the domain name registration request on the designated application blockchain on the business server. After receiving the domain name registration request from the user, the business server can send the relevant registration information to the external database, so that the external database can check and verify the user information contained in the registration request, such as the user identifier and the domain name that the user wants to register, and after the verification, the user identifier and the user domain name can be stored in the external database in association as the domain name file registered by the user in the external database. After the external database completes the domain name registration of the user, it can synchronously or asynchronously send the full domain name registration information of the user to the management blockchain, such as the first domain name management contract deployed on the management blockchain, in step S202 for storage. At the same time or later, the external database can send the user domain name and user identifier registered by the user to the corresponding application blockchain according to the user domain name registered by the user and the chain information of the corresponding application blockchain, such as the chain identifier, so that the corresponding application blockchain can store the registration information in the second domain name management contract deployed thereon.

[0056] In addition, the user can specify the application blockchain that wants to use the user's domain name by logging into the business server, so that the business server can deploy the second domain name management contract and the second domain name resolution contract on the corresponding application blockchain respectively. After the deployment is completed, the user can initiate a domain name registration request on the business server so that the external database stores the user's domain name registration information therein, and then sends the user's domain name registration information to the corresponding application blockchain, so that the user can directly use the domain name on the application blockchain to perform processing.

[0057] In an embodiment of the present application, the user can submit the contract address of the domain name resolution contract on the application blockchain and the blockchain identifier of the application blockchain to the external database on the business server, so that the external database can identify the user identifier used by the user when submitting the information, and after verification, the contract address of the domain name resolution contract submitted by the user, for example, deployed in the application blockchain 3 and the blockchain identifier of the application blockchain 3, for example, blockchain 3, is stored in the corresponding user domain name file to establish an association between the contract address of the domain name resolution contract on the application blockchain and the blockchain identifier of the application blockchain and the user identifier and the user domain name registered or purchased by the user.

[0058] Afterwards, the user may initiate a transaction request on an application blockchain in step S203, and the application blockchain may obtain the user identification and account information of the user from the transaction request, and may determine whether the user has used the user domain name according to the account information in step S204.

[0059] S205: Call a second domain name resolution contract on the application blockchain according to the user identifier and the user domain name to obtain the account address of the user on the application blockchain.

[0060] S206, executing the transaction request on an application blockchain based on the account address.

[0061] In step S205, when the application blockchain identifies the user domain name included in the transaction request, it can identify that the user does not use the user account address in the transaction request but uses the user domain name, and determines that the second domain name resolution contract needs to be called to resolve the user domain name. Therefore, the application blockchain can send the user identifier and user domain name included in the transaction request submitted by the user to the second domain name resolution contract deployed thereon to obtain the corresponding user account address.

[0062] When the account address of the user on the application blockchain is obtained in step S205, the transaction request submitted by the user can be executed based on the account address in step S206.

[0063] In addition, when a second domain name resolution contract that is customized or customized by the user for the application blockchain is deployed on each application blockchain, the external database needs to additionally store the calling method corresponding to the second domain name resolution contract deployed in each application blockchain, so that when the application blockchain 3 obtains the contract address and calling method of the domain name resolution contract deployed by user 1 on the application blockchain 3 according to the user identifier and user domain name of user 1, the application resolution contract indicated by the contract address can be called according to the calling method, thereby obtaining the user's account address on the application blockchain 3, and using the account address to execute the transaction request submitted by the user.

[0064] Of course, in the embodiment of the present application, the user can also mix the deployment method of the above-mentioned domain name resolution contract in multiple application blockchains, that is, on a part of the application blockchain, for example Figure 1 On the application blockchain 1 shown in , a unified second domain name resolution contract is deployed, while on other application blockchains, such as Figure 1 On the application blockchains 2 and 3 shown in the figure, a user-defined or customized domain name resolution contract is deployed, and this application has no restrictions on this.

[0065] In addition, when initiating a user's domain name registration request to an external database, the authority to call the domain name resolution contract can be further specified, such as the time period in which the domain name resolution contract can be called, or the domain name resolution contract on which application blockchain is not allowed to be called or is not allowed to be called within a certain time period, etc. Therefore, when a user accesses an application blockchain, for example Figure 1 When the application blockchain 3 shown in , the application blockchain 3 can perform corresponding resolution processing according to the permission of calling the domain name resolution contract issued by the external database, for example, allowing the call on Monday, or allowing the call this month, or even the domain name resolution contract on the current application blockchain 3 is unavailable or disabled, and other information.

[0066] For example, the application blockchain 3 can wait for a predetermined time according to the domain name registration information containing time information issued by an external database to call the second domain name resolution contract according to the contract address within the calling time specified by the user, or it can also send a message to the user, such as that the current domain name resolution is unavailable.

[0067] In addition, users can also directly initiate domain name query requests to external databases or management blockchains, for example, to query user domain names registered on various application blockchains and call records and other information. Therefore, for example, when the management blockchain receives a domain name query request from a user, it can call the first domain name resolution contract to obtain a user ID based on the user domain name included in the domain name query request, and query the first domain name management contract for relevant domain name information based on the user ID.

[0068] The domain name resolution method based on a multi-blockchain system provided in an embodiment of the present application deploys a first domain name management contract and a first domain name resolution contract on a management blockchain in the multi-blockchain system, deploys a second domain name management contract and a second domain name resolution contract on multiple application blockchains, and an external database sends the user domain name information registered by the user to the management blockchain according to the user's domain name registration request, and sends the user domain name and user identifier used by the user on the specified application blockchain to the corresponding application blockchain, so that when the user initiates a transaction on the application blockchain, the domain name resolution contract deployed on the application blockchain can be called to resolve the user domain name contained in the user transaction request, thereby obtaining the user's account address on the application blockchain, and then using the account address to execute transactions on the application blockchain. Therefore, the user does not need to remember each account address on each application blockchain, but can use a simplified domain name to initiate transactions, which greatly simplifies the complexity of users using smart contracts in multiple blockchains.

[0069] Embodiment 3

[0070] Figure 3A schematic diagram of the structure of a domain name resolution system based on a multi-blockchain system provided in this application. The domain name resolution system can be used to implement, for example, reference Figure 2 The domain name resolution method based on a multi-blockchain system provided in the embodiment of the present application is described. In particular, the domain name resolution system of the embodiment of the present application may include a multi-blockchain system and an external database. The multi-blockchain system may include multiple blockchains, for example, Figure 1 As shown in , there may be four blockchains, and one of the blockchains may be used as a management blockchain, and the management blockchain may be deployed with a first domain name management contract for managing user domain names and a first domain name resolution contract for resolving user domain names, and the other three blockchains may be used as application blockchains 1-3 on which users execute smart contracts of various applications, and therefore, the application blockchains 1-3 may be respectively deployed with a second domain name management contract 1-3 for managing user domain names and a second domain name resolution contract 1-3 for resolving user domain names. The management blockchain and each application blockchain 1-3 may be connected to an external database, respectively.

[0071] In the embodiment of the present application, since different blockchains usually support different domain name services, in other words, the domain name resolution contracts used for domain name resolution on different blockchains are different, and therefore, in the prior art, users cannot use the same domain name to resolve in different blockchains to obtain the corresponding account address. In the embodiment of the present application, the domain name resolution process is split into a domain name management contract and a domain name resolution contract, and a first domain name management contract and a first domain name resolution contract are deployed on the management blockchain, and a second domain name management contract and a second domain name resolution contract are deployed on the corresponding one or more application blockchains, respectively, and the management blockchain can send the user domain name used by the user on each application blockchain registered in the first domain name management contract to the corresponding application blockchain, so that the user can directly use the domain name as the account address on each application blockchain to initiate a transaction.

[0072] When a user initiates a transaction using a domain name on each application blockchain, the application blockchain where the user initiates the transaction can request the domain name resolution contract on the application blockchain in response to the transaction request. Since the external database has already sent the domain name used by the user on the application blockchain to the application blockchain in advance, the application blockchain can call the second domain name resolution contract based on the user domain name included in the user's transaction request to resolve the user domain name included in the transaction request submitted by the user, so as to obtain the user's real account address on the blockchain, so that the account address can be used to execute the transaction.

[0073] like Figure 3As shown, the domain name resolution system may include a multi-blockchain system 31 and an external database 32. The multi-blockchain system 31 may include a management blockchain 311 and multiple application blockchains 312.

[0074] The external database 32 can be connected to the management blockchain 311 and each application blockchain 312, and the external database 32 can be used to send the user identifier and the user domain name to the application blockchain identified by the application blockchain information according to the user domain name and the corresponding application blockchain information stored therein.

[0075] The management blockchain 311 can be used to store the user domain name and the corresponding application blockchain information in the first domain name management contract according to the user domain name registration request initiated by the user in the external database 32.

[0076] The application blockchain 312 can be used to obtain the user identification and account information of the user from the transaction request initiated by the user on the application blockchain; determine that the user uses the user domain name in the transaction request according to the account information; call the second domain name resolution contract on the application blockchain according to the user identification and the user domain name to obtain the account address of the user on the one application blockchain; and execute the transaction request on the application blockchain based on the account address.

[0077] For example, a user can log in to the business server of the portal website by using a terminal installed with an application corresponding to the external database, such as a computer or a mobile terminal, and can fill in the domain name registration request on the designated application blockchain on the business server. After receiving the domain name registration request from the user, the business server can send the relevant registration information to the external database 32, so as to check and verify the user information contained in the registration request, such as the user identifier and the domain name that the user wants to register, and after the verification, the user identifier and the user domain name can be stored in the external database 32 in association as the domain name file registered by the user in the external database 32. After completing the domain name registration of the user, the external database 32 can synchronously or asynchronously send the full domain name registration information of the user to the management blockchain 311, such as the first domain name management contract deployed on the management blockchain 311, for storage. At the same time or later, the external database 32 can send the user domain name and user identifier registered by the user to the corresponding application blockchain 132 according to the user domain name registered by the user and the chain information of the corresponding application blockchain 312, such as the chain identifier, so that the corresponding application blockchain 312 can store the registration information in the second domain name management contract deployed thereon.

[0078] In addition, the user can log in to the business server to specify the application blockchain 312 that wants to use the user's domain name, so that the business server or the external database 32 can deploy the second domain name management contract and the second domain name resolution contract on the corresponding application blockchain 312 respectively. After the deployment is completed, the user can initiate a domain name registration request on the business server to enable the external database 32 to send the user's domain name registration information to the corresponding application blockchain 32, so that the user can directly use the domain name on the application blockchain 32 to perform processing.

[0079] In an embodiment of the present application, the user can submit the contract address of the domain name resolution contract on the application blockchain 312 and the blockchain identifier of the application blockchain to the external database 32 on the business server, so that the external database 32 can identify the user identifier used by the user when submitting the information, and after verification, the contract address of the domain name resolution contract submitted by the user, for example, deployed in the application blockchain 312 and the blockchain identifier of the application blockchain 312, such as blockchain 3, are stored in the corresponding user domain name file to establish an association between the contract address of the domain name resolution contract on the application blockchain and the blockchain identifier of the application blockchain and the user identifier and the user domain name registered or purchased by the user.

[0080] When a user accesses the application blockchain 312, e.g. Figure 1 When the blockchain 3 shown in FIG. 3 is used, the user identifier and the user domain name may be included in the transaction request, and the application blockchain 312 may identify that the user does not use the user account address in the transaction request but uses the user domain name when identifying the user domain name included in the transaction request, and determine that the domain name resolution contract needs to be called to resolve the user domain name. Therefore, the application blockchain 312 may send the user identifier and the user domain name included in the transaction request submitted by the user to the second domain name resolution contract deployed thereon to obtain the corresponding user account address.

[0081] For example, a first domain name management contract and a second domain name resolution contract may be deployed on the management blockchain 311, and a second domain name management contract and a second domain name resolution contract may be deployed on the application blockchain 312. In this case, when a user logs in to a business server such as a portal website to use a domain name registration service, the user can submit the user domain name that he wants to use on each or part of the application blockchain 312 on the business server and can specify the corresponding application blockchain 312. Therefore, the business server that receives the user's domain name registration request can send the user domain name registration request to the external database 32, so that the external database 32 can store the user identifier, such as user 1, and the user domain name, such as abc, and the chain identifier of the application blockchain 312 to be used, such as application blockchain 1-3, in association after verifying the user information contained in the request. After the storage is completed, the external database 32 can send the domain name registration information to the corresponding application blockchain 312, so that the domain name registration information of the user can be stored in the second domain name management contract of the application blockchain 312. When a user accesses one of the application blockchains 312 to initiate a transaction request, the application blockchain 312 can identify that the transaction request submitted by the user uses the user domain name based on the user identifier, such as user 1, and the user domain name, such as abc, contained in the transaction request initiated by the user, and therefore, the second domain name resolution contract deployed on the application blockchain 312 can be called to resolve the user domain name contained in the transaction request to obtain the user's account address on the application blockchain 312. In addition, when the second domain name resolution contract that is customized or customized by the user for the application blockchain 312 is deployed on each application blockchain 312, the external database 32 also needs to store the calling method corresponding to the second domain name resolution contract deployed in each application blockchain 312, so that when the application blockchain 312 retrieves the contract address and calling method of the domain name resolution contract deployed by user 1 on the application blockchain 312 according to the user identifier and user domain name of user 1, the second domain name resolution contract indicated by the contract address can be called according to the calling method, thereby obtaining the user's account address on the application blockchain 312, and using the account address to execute the transaction request submitted by the user.

[0082] Of course, in the embodiment of the present application, the user can also mix the deployment method of the above-mentioned domain name resolution contract in multiple application blockchains 312, that is, on a part of the application blockchain 312, for example Figure 1 On the application blockchain 1 shown in , a unified second domain name resolution contract is deployed, while on other application blockchains 312, for example Figure 1 On the application blockchains 2 and 3 shown in the figure, a user-defined or customized domain name resolution contract is deployed, and this application has no restrictions on this.

[0083] In addition, when initiating a user's domain name registration request to the external database 32, the authority to call the domain name resolution contract can be further specified, such as the time period in which the domain name resolution contract can be called, or the domain name resolution contract on which application blockchain 312 is not allowed to be called or is not allowed to be called within a certain time period, etc. Therefore, when a user accesses the application blockchain 312, for example Figure 1 When the application blockchain 3 shown in , the application blockchain 3 can perform corresponding resolution processing according to the permission of calling the domain name resolution contract issued by the external database 32, for example, allowing the call on Monday, or allowing the call this month, or even the domain name resolution contract on the current application blockchain 3 is unavailable or disabled, and other information.

[0084] For example, the application blockchain 312 can wait for a predetermined time according to the domain name registration information containing time information issued by the external database 32 to call the second domain name resolution contract according to the contract address within the calling time specified by the user, or it can also send a message to the user, such as that the current domain name resolution is unavailable.

[0085] In addition, the user can also directly initiate a domain name query request to the external database 32, for example, to query the user domain name and call records registered on each application blockchain 312. Therefore, when the management blockchain 311 receives the user's domain name query request, it can call the first domain name resolution contract to obtain the user ID according to the user domain name included in the domain name query request, and query the relevant domain name information in the first domain name management contract according to the user ID.

[0086] The domain name resolution system provided by the embodiment of the present application deploys a first domain name management contract and a first domain name resolution contract on a management blockchain in a multi-blockchain system, deploys a second domain name management contract and a second domain name resolution contract on multiple application blockchains, and an external database sends the user domain name information registered by the user to the management blockchain according to the user's domain name registration request, and sends the user domain name and user identifier used by the user on the specified application blockchain to the corresponding application blockchain, so that when the user initiates a transaction on the application blockchain, the domain name resolution contract deployed on the application blockchain can be called to resolve the user domain name contained in the user transaction request, thereby obtaining the user's account address on the application blockchain, and then using the account address to execute transactions on the application blockchain. Therefore, the user does not need to remember each account address on each application blockchain, but can use a simplified domain name to initiate transactions, which greatly simplifies the complexity of users using smart contracts in multiple blockchains.

[0087] Embodiment 4

[0088] The above describes the internal functions and structure of the domain name resolution system, which can be implemented as an electronic device. Figure 4 This is a schematic diagram of the structure of an electronic device embodiment provided by this application. Figure 4 As shown, the electronic device includes a memory 41 and a processor 42 .

[0089] The memory 41 is used to store programs. In addition to the above programs, the memory 41 can also be configured to store various other data to support operations on the electronic device. Examples of such data include instructions for any application or method operating on the electronic device, contact data, phone book data, messages, pictures, videos, etc.

[0090] The memory 41 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0091] The processor 42 is not limited to a processor (CPU), but may also be a processing chip such as a graphics processing unit (GPU), a field programmable gate array (FPGA), an embedded neural network processor (NPU) or an artificial intelligence (AI) chip. The processor 42 is coupled to the memory 41 and executes the program stored in the memory 41 to execute the domain name resolution method in the multi-blockchain system of the second embodiment.

[0092] Further, if Figure 4 As shown, the electronic device may also include: a communication component 43, a power component 44, an audio component 45, a display 46 and other components. Figure 4 Only some components are shown schematically, which does not mean that the electronic device only includes Figure 4 Components shown.

[0093] The communication component 43 is configured to facilitate wired or wireless communication between the electronic device and other devices. The electronic device can access a wireless network based on a communication standard, such as WiFi, 3G, 4G or 5G, or a combination thereof. In an exemplary embodiment, the communication component 43 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 43 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0094] The power supply assembly 44 provides power to various components of the electronic device. The power supply assembly 44 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the electronic device.

[0095] The audio component 45 is configured to output and / or input audio signals. For example, the audio component 45 includes a microphone (MIC), and when the electronic device is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 41 or sent via the communication component 43. In some embodiments, the audio component 45 also includes a speaker for outputting audio signals.

[0096] The display 46 includes a screen, which may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation.

[0097] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, disk or optical disk and other media that can store program codes.

[0098] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. A domain name resolution method based on a multi-blockchain system, characterized in that: The multi-blockchain system includes: a management blockchain and multiple application blockchains, a first domain name management contract and a first domain name resolution contract are deployed on the management blockchain, and a second domain name management contract and a second domain name resolution contract are respectively deployed on the multiple application blockchains, the management blockchain and the multiple application blockchains are respectively connected to an external database, and the domain name resolution method includes: The management blockchain stores the user domain name and the corresponding application blockchain information in the first domain name management contract according to the user domain name registration request initiated by the user in the external database; The external database sends the user identifier and the user domain name to the application blockchain identified by the application blockchain information according to the user domain name and the corresponding application blockchain information stored therein; Obtaining a user identifier and account information of the user from a transaction request initiated by the user on one of the multiple application blockchains; determining, based on the account information, that the user used a user domain name in the transaction request; Calling a second domain name resolution contract on the one application blockchain according to the user identifier and the user domain name to obtain the account address of the user on the one application blockchain; The transaction request is executed on the one application blockchain based on the account address.

2. The domain name resolution method according to claim 1, characterized in that: The blockchain information is a chain identifier, and the external database sends the user identifier and the user domain name to the application blockchain identified by the application blockchain information according to the user domain name and the corresponding application blockchain information stored therein, including: Obtaining a chain identifier of the application blockchain from a registration request initiated by the user in the external database; The external database obtains a contract address of a second domain name management contract deployed on the application blockchain according to the user identifier, the user domain name and the chain identifier; Sending the user identifier and the user domain name stored in the first domain name management contract to the second domain name management contract of the application blockchain identified by the chain identifier according to the contract address; The second domain name management contract sends the received user identifier and user domain name to the second domain name resolution contract.

3. The domain name resolution method according to claim 1, characterized in that: The blockchain information is a chain identifier, and before the management blockchain stores the user domain name and the corresponding application blockchain information in the first domain name management contract according to the user domain name registration request initiated by the user in the external database, the method further includes: The external database receives a domain name registration request from a user, wherein the domain name registration request includes a user ID, a user domain name, and a chain ID of an application blockchain; The external database stores the user identifier, the user domain name, and the chain identifier in an associated manner.

4. The domain name resolution method according to claim 3, characterized in that: The domain name resolution method further comprises: The management blockchain receives a domain name query request from a user, wherein the domain name query request includes the user domain name; The first domain name resolution contract determines the user identifier according to the user domain name included in the domain name query request and sends the user identifier to the first domain name management contract; The first domain name management contract queries the domain name information corresponding to the user identifier according to the user identifier.

5. The domain name resolution method according to claim 1, characterized in that: The time information in the domain name registration request, and the external database sending the user identifier and the user domain name to the application blockchain identified by the application blockchain information according to the user domain name and the corresponding application blockchain information stored therein further includes: The external database sends the user identifier and user domain name stored in the domain name management contract to the application blockchain identified by the application blockchain information at the time specified by the time information according to the time information.

6. A domain name resolution system based on a multi-blockchain system, characterized in that: The domain name resolution system includes: a multi-blockchain system and an external database, the multi-blockchain system includes: a management blockchain and multiple application blockchains, the management blockchain is deployed with a first domain name management contract and a first domain name resolution contract, and the multiple application blockchains are respectively deployed with a second domain name management contract and a second domain name resolution contract, the management blockchain and the multiple application blockchains are respectively connected to the external database, The external database is used to send the user identifier and the user domain name to the application blockchain identified by the application blockchain information according to the user domain name and the corresponding application blockchain information stored therein; The management blockchain is used to store the user domain name and the corresponding application blockchain information in the first domain name management contract according to the user domain name registration request initiated by the user in the external database; Each of the multiple application blockchains is used to obtain a user identifier and account information of the user from a transaction request initiated by the user on the application blockchain; determine, according to the account information, that the user uses a user domain name in the transaction request; call a second domain name resolution contract on the one application blockchain according to the user identifier and the user domain name to obtain an account address of the user on the one application blockchain; and execute the transaction request on the one application blockchain based on the account address.

7. The domain name resolution system according to claim 6, characterized in that: The blockchain information is a chain identifier, and the external database is further used to: Obtaining a chain identifier of the application blockchain from a registration request initiated by the user in the external database; Acquire a contract address of a second domain name management contract deployed on the application blockchain according to the user identifier, the user domain name, and the chain identifier; Sending the user identifier and user domain name stored in the first domain name management contract to the second domain name management contract of the application blockchain identified by the chain identifier according to the contract address, and The application blockchain is further used for the second domain name management contract to send the received user identifier and user domain name to the second domain name resolution contract.

8. The domain name resolution system according to claim 6, characterized in that: The management blockchain is further used to: The management blockchain receives a domain name query request from a user, wherein the domain name query request includes the user domain name; The first domain name resolution contract determines the user identifier according to the user domain name included in the domain name query request and sends the user identifier to the first domain name management contract; The first domain name management contract queries the domain name information corresponding to the user identifier according to the user identifier.

9. An electronic device, characterized in that: include: Memory, used to store programs; A processor, configured to run the program stored in the memory to execute the domain name resolution method in the multi-blockchain system according to any one of claims 1 to 5.

10. A computer-readable storage medium having a computer program executable by a processor stored thereon, characterized in that: When the program is executed by the processor, the domain name resolution method in the multi-blockchain system according to any one of claims 1 to 5 is implemented.

Citation Information

Patent Citations

  • Callback mechanism for block chain transactions

    CN114641967A

  • Domain name blockchain user addresses

    US10721060B1