Movatterモバイル変換


[0]ホーム

URL:


CN116319673A - Domain name access method, device, equipment and storage medium based on decentralization - Google Patents

Domain name access method, device, equipment and storage medium based on decentralization
Download PDF

Info

Publication number
CN116319673A
CN116319673ACN202310240495.4ACN202310240495ACN116319673ACN 116319673 ACN116319673 ACN 116319673ACN 202310240495 ACN202310240495 ACN 202310240495ACN 116319673 ACN116319673 ACN 116319673A
Authority
CN
China
Prior art keywords
target
blockchain
arbitration
access
preset
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202310240495.4A
Other languages
Chinese (zh)
Other versions
CN116319673B (en
Inventor
苏羽
顾费勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Netease Hangzhou Network Co Ltd
Original Assignee
Netease Hangzhou Network Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Netease Hangzhou Network Co LtdfiledCriticalNetease Hangzhou Network Co Ltd
Priority to CN202310240495.4ApriorityCriticalpatent/CN116319673B/en
Publication of CN116319673ApublicationCriticalpatent/CN116319673A/en
Application grantedgrantedCritical
Publication of CN116319673BpublicationCriticalpatent/CN116319673B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Classifications

Landscapes

Abstract

Translated fromChinese

本申请提供一种基于去中心化的域名访问方法、装置、设备及存储介质,涉及区块链技术领域。该方法包括:接收第一访问设备发送的目标访问请求,目标访问请求携带有目标去中心化身份标识;若根据仲裁结果确定目标去中心化身份标识生效,则根据目标访问请求访问目标去中心化身份标识对应的目标区块链地址,实现了通过预设仲裁系统的设置,可以在目标去中心化身份标识已在第一区块链注册成功的情况下,还可以将该目标去中心化身份标识在第二区块链上进行注册,并在预设仲裁系统指示其注册成功的情况下,可以成功访问其对应的目标区块链地址,使得同一域名在不同区块链上均代表同一用户,实现全区块链上的域名统一。

Figure 202310240495

This application provides a decentralized domain name access method, device, equipment and storage medium, which relate to the technical field of blockchain. The method includes: receiving a target access request sent by a first access device, where the target access request carries a target decentralized identity; if the target decentralized identity is determined to be valid according to the arbitration result, accessing the target decentralized The address of the target blockchain corresponding to the identity has realized the setting of the preset arbitration system. When the target decentralized identity has been successfully registered in the first blockchain, the target decentralized identity can also be The logo is registered on the second blockchain, and when the preset arbitration system indicates that its registration is successful, it can successfully access its corresponding target blockchain address, so that the same domain name represents the same user on different blockchains , to realize the unification of domain names on the entire blockchain.

Figure 202310240495

Description

Translated fromChinese
基于去中心化的域名访问方法、装置、设备及存储介质Domain name access method, device, equipment and storage medium based on decentralization

技术领域technical field

本申请涉及区块链技术领域,特别涉及一种基于去中心化的域名访问方法、装置、设备及存储介质。This application relates to the technical field of blockchain, and in particular to a method, device, device and storage medium for accessing domain names based on decentralization.

背景技术Background technique

区块链,就是一个又一个区块组成的链条。每一个区块中保存了一定的信息,它们按照各自产生的时间顺序连接成链条。这个链条被保存在所有的服务器中,只要整个系统中有一台服务器可以工作,整条区块链就是安全的。这些服务器在区块链系统中被称为节点,它们为整个区块链系统提供存储空间和算力支持。A blockchain is a chain of blocks one after another. Certain information is stored in each block, and they are connected into a chain according to the time sequence of their generation. This chain is saved in all servers, as long as one server in the whole system can work, the whole blockchain is safe. These servers are called nodes in the blockchain system, and they provide storage space and computing power support for the entire blockchain system.

现有技术中,基于当前区块链进行去中心化身份标识(Decentralized Identity,DID)注册时,往往只需在当前区块链上完成注册行为即可。In the prior art, when registering a decentralized identity (DID) based on the current blockchain, it is often only necessary to complete the registration on the current blockchain.

可以看出,现有的注册方法比较简单,因此,往往存在某用户在当前区块链上注册的域名被其他用户抢先注册的情况,进而导致无法在其他区块链上注册,无法在全区块链上实现域名统一。It can be seen that the existing registration method is relatively simple. Therefore, there are often cases where a user’s domain name registered on the current blockchain is preemptively registered by other users, resulting in the inability to register on other blockchains and unable to register in the entire region. Unification of domain names is realized on the block chain.

发明内容Contents of the invention

本申请的目的在于,针对上述现有技术中的不足,提供一种基于去中心化的域名访问方法、装置、设备及存储介质,可以在全区块链上实现域名统一。The purpose of this application is to provide a decentralized domain name access method, device, equipment, and storage medium to address the shortcomings of the above-mentioned prior art, which can realize domain name unification on the entire blockchain.

为实现上述目的,本申请实施例采用的技术方案如下:In order to achieve the above purpose, the technical solution adopted in the embodiment of the present application is as follows:

第一方面,本发明提供一种基于去中心化的域名访问方法,应用于第二区块链,所述第二区块链与预设仲裁系统通信连接,所述方法包括:In the first aspect, the present invention provides a method for accessing a domain name based on decentralization, which is applied to a second block chain, and the second block chain is communicated with a preset arbitration system. The method includes:

接收第一访问设备发送的目标访问请求,所述目标访问请求携带有目标去中心化身份标识,其中,所述目标去中心化身份标识是否生效由所述第二区块链根据所述预设仲裁系统发送的仲裁结果确定,且所述目标去中心化身份标识已在第一区块链注册成功;receiving a target access request sent by the first access device, the target access request carrying a target decentralized identity, wherein whether the target decentralized identity takes effect is determined by the second blockchain according to the preset The arbitration result sent by the arbitration system is confirmed, and the target decentralized identity has been successfully registered in the first blockchain;

若根据所述仲裁结果确定所述目标去中心化身份标识生效,则根据所述目标访问请求访问所述目标去中心化身份标识对应的目标区块链地址。If it is determined according to the arbitration result that the target decentralized identity is valid, access the target blockchain address corresponding to the target decentralized identity according to the target access request.

在可选的实施方式中,所述根据所述目标访问请求访问所述目标去中心化身份标识对应的目标区块链地址,包括:In an optional implementation manner, the accessing the target blockchain address corresponding to the target decentralized identity according to the target access request includes:

根据所述目标访问请求分别获取所述目标去中心化身份标识的目标生效块高;Obtain the target effective block height of the target decentralized identity respectively according to the target access request;

基于所述目标生效块高,根据所述目标访问请求访问所述目标去中心化身份标识对应的目标区块链地址。Based on the effective block height of the target, access the target block chain address corresponding to the target decentralized identity according to the target access request.

在可选的实施方式中,所述方法还包括:In an optional embodiment, the method also includes:

获取第一注册请求,所述第一注册请求携带有目标去中心化身份标识、第二区块链标识以及目标预设押金;Obtain a first registration request, the first registration request carries the target decentralized identity, the second blockchain ID and the target preset deposit;

根据所述第一注册请求,在所述第二区块链中注册所述目标去中心化身份标识,并获取所述目标去中心化身份标识的目标生效块高;According to the first registration request, register the target decentralized identity in the second blockchain, and acquire the target effective block height of the target decentralized identity;

基于所述目标去中心化标识和所述目标生效块高,向预设仲裁系统发送第一仲裁请求;Sending a first arbitration request to a preset arbitration system based on the target decentralized identifier and the target effective block height;

接收所述预设仲裁系统根据所述第一仲裁请求返回的目标仲裁结果,所述目标仲裁结果用于指示所述目标去中心化身份标识是否可在所述目标生效块高指示的目标块高处生效。Receive the target arbitration result returned by the preset arbitration system according to the first arbitration request, the target arbitration result is used to indicate whether the target decentralized identity can be at the target block height indicated by the target effective block height takes effect.

在可选的实施方式中,所述预设仲裁系统包括多个仲裁委员,若所述预设仲裁系统中预设数量个仲裁委员未驳回所述第一注册请求,则确定所述目标仲裁结果指示所述目标去中心化身份标识可在所述目标生效块高指示的目标块高处生效;In an optional embodiment, the preset arbitration system includes a plurality of arbitration committees, and if a preset number of arbitration committees in the preset arbitration system do not reject the first registration request, then determine the target arbitration result Indicate that the target decentralized identity can take effect at the target block height indicated by the target effective block height;

若所述预设仲裁系统中预设数量个仲裁委员驳回该第一注册请求,则确定所述目标仲裁结果指示所述第一注册请求失效,且各所述仲裁委员可被配置为获取所述目标预设押金。If a preset number of arbitrators in the preset arbitration system reject the first registration request, it is determined that the target arbitration result indicates that the first registration request is invalid, and each of the arbitrators can be configured to obtain the Target preset deposit.

在可选的实施方式中,所述第一仲裁请求携带有目标去中心化身份标识、目标签名信息以及所述目标预设押金;所述目标签名信息由所述第二区块链基于防止重放攻击机制根据所述目标去中心化身份标识和所述第二区块链标识确定。In an optional implementation, the first arbitration request carries the target decentralized identity, target signature information, and the target preset deposit; the target signature information is determined by the second block chain based on The release attack mechanism is determined according to the target decentralized identity and the second blockchain identity.

在可选的实施方式中,所述目标去中心化身份标识在所述第一区块链中与所述第一区块链的第一区块链地址相绑定。In an optional implementation manner, the target decentralized identity is bound to a first blockchain address of the first blockchain in the first blockchain.

在可选的实施方式中,所述第一区块链为以太坊区块链,所述第二区块链为索拉纳区块链。In an optional implementation manner, the first block chain is an Ethereum block chain, and the second block chain is a Solana block chain.

第二方面,本发明提供一种基于去中心化的域名访问装置,应用于第二区块链,所述第二区块链与预设仲裁系统通信连接,所述域名访问装置包括:In the second aspect, the present invention provides a domain name access device based on decentralization, which is applied to a second blockchain, and the second blockchain is connected to a preset arbitration system in communication, and the domain name access device includes:

获取模块,用于接收第一访问设备发送的目标访问请求,所述目标访问请求携带有目标去中心化身份标识,其中,所述目标去中心化身份标识是否生效由所述第二区块链根据所述预设仲裁系统发送的仲裁结果确定,且所述目标去中心化身份标识已在第一区块链注册成功;An acquisition module, configured to receive a target access request sent by a first access device, the target access request carrying a target decentralized identity, wherein whether the target decentralized identity takes effect is determined by the second blockchain Determined according to the arbitration result sent by the preset arbitration system, and the target decentralized identity has been successfully registered in the first blockchain;

访问模块,用于若根据所述仲裁结果确定所述目标去中心化身份标识生效,则根据所述目标访问请求访问所述目标去中心化身份标识对应的目标区块链地址。An access module, configured to access the target blockchain address corresponding to the target decentralized identity according to the target access request if it is determined according to the arbitration result that the target decentralized identity is valid.

在可选的实施方式中,所述访问模块,具体用于根据所述目标访问请求分别获取所述目标去中心化身份标识的目标生效块高;In an optional implementation manner, the access module is specifically configured to respectively obtain the target effective block height of the target decentralized identity according to the target access request;

基于所述目标生效块高,根据所述目标访问请求访问所述目标去中心化身份标识对应的目标区块链地址。Based on the effective block height of the target, access the target block chain address corresponding to the target decentralized identity according to the target access request.

在可选的实施方式中,所述域名访问装置还包括:注册模块,用于获取第一注册请求,所述第一注册请求携带有目标去中心化身份标识、第二区块链标识以及目标预设押金;In an optional implementation manner, the domain name access device further includes: a registration module, configured to obtain a first registration request, the first registration request carrying the target decentralized identity, the second blockchain ID, and the target advance deposit;

根据所述第一注册请求,在所述第二区块链中注册所述目标去中心化身份标识,并获取所述目标去中心化身份标识的目标生效块高;According to the first registration request, register the target decentralized identity in the second blockchain, and acquire the target effective block height of the target decentralized identity;

基于所述目标去中心化标识和所述目标生效块高,向预设仲裁系统发送第一仲裁请求;Sending a first arbitration request to a preset arbitration system based on the target decentralized identifier and the target effective block height;

接收所述预设仲裁系统根据所述第一仲裁请求返回的目标仲裁结果,所述目标仲裁结果用于指示所述目标去中心化身份标识是否可在所述目标生效块高指示的目标块高处生效。Receive the target arbitration result returned by the preset arbitration system according to the first arbitration request, the target arbitration result is used to indicate whether the target decentralized identity can be at the target block height indicated by the target effective block height takes effect.

在可选的实施方式中,所述预设仲裁系统包括多个仲裁委员,若所述预设仲裁系统中预设数量个仲裁委员未驳回所述第一注册请求,则确定所述目标仲裁结果指示所述目标去中心化身份标识可在所述目标生效块高指示的目标块高处生效;In an optional embodiment, the preset arbitration system includes a plurality of arbitration committees, and if a preset number of arbitration committees in the preset arbitration system do not reject the first registration request, then determine the target arbitration result Indicate that the target decentralized identity can take effect at the target block height indicated by the target effective block height;

若所述预设仲裁系统中预设数量个仲裁委员驳回该第一注册请求,则确定所述目标仲裁结果指示所述第一注册请求失效,且各所述仲裁委员可被配置为获取所述目标预设押金。If a preset number of arbitrators in the preset arbitration system reject the first registration request, it is determined that the target arbitration result indicates that the first registration request is invalid, and each of the arbitrators can be configured to obtain the Target preset deposit.

在可选的实施方式中,所述第一仲裁请求携带有目标去中心化身份标识、目标签名信息以及所述目标预设押金;所述目标签名信息由所述第二区块链基于防止重放攻击机制根据所述目标去中心化身份标识和所述第二区块链标识确定。In an optional implementation, the first arbitration request carries the target decentralized identity, target signature information, and the target preset deposit; the target signature information is determined by the second block chain based on The release attack mechanism is determined according to the target decentralized identity and the second blockchain identity.

在可选的实施方式中,所述目标去中心化身份标识在所述第一区块链中与所述第一区块链的第一区块链地址相绑定。In an optional implementation manner, the target decentralized identity is bound to a first blockchain address of the first blockchain in the first blockchain.

在可选的实施方式中,所述第一区块链为以太坊区块链,所述第二区块链为索拉纳区块链。In an optional implementation manner, the first block chain is an Ethereum block chain, and the second block chain is a Solana block chain.

第三方面,本发明提供一种电子设备,包括:处理器、存储介质和总线,所述存储介质存储有所述处理器可执行的机器可读指令,当电子设备运行时,所述处理器与所述存储介质之间通过总线通信,所述处理器执行所述机器可读指令,以执行如前述实施方式任一所述基于去中心化的域名访问方法的步骤。In a third aspect, the present invention provides an electronic device, including: a processor, a storage medium, and a bus, the storage medium stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor Communicating with the storage medium through a bus, the processor executes the machine-readable instructions to execute the steps of the method for accessing a domain name based on decentralization as described in any one of the foregoing embodiments.

第四方面,本发明提供一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器运行时执行如前述实施方式任一所述基于去中心化的域名访问方法的步骤。In a fourth aspect, the present invention provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, as described in any one of the preceding embodiments, based on the decentralization The steps of the domain name access method.

本申请的有益效果是:The beneficial effect of this application is:

本申请实施例提供的一种基于去中心化的域名访问方法、装置、设备及存储介质,该方法包括:接收第一访问设备发送的目标访问请求,目标访问请求携带有目标去中心化身份标识,其中,目标去中心化身份标识是否生效由第二区块链根据预设仲裁系统发送的仲裁结果确定,且目标去中心化身份标识已在第一区块链注册成功;若根据仲裁结果确定目标去中心化身份标识生效,则根据目标访问请求访问目标去中心化身份标识对应的目标区块链地址,应用本申请实施例,使得通过预设仲裁系统的设置,可以在目标去中心化身份标识已在第一区块链注册成功的情况下,还可以将该目标去中心化身份标识在第二区块链上进行注册,并在预设仲裁系统指示其注册成功的情况下,可以成功访问其对应的目标区块链地址,使得同一域名在不同区块链上均代表同一用户,实现全区块链上的域名统一列出必要技术特征及其带来的技术效果。The embodiment of the present application provides a decentralized domain name access method, device, device, and storage medium. The method includes: receiving a target access request sent by a first access device, and the target access request carries a target decentralized identity , wherein whether the target decentralized identity takes effect is determined by the second blockchain according to the arbitration result sent by the preset arbitration system, and the target decentralized identity has been successfully registered in the first blockchain; if determined according to the arbitration result When the target decentralized identity takes effect, the target blockchain address corresponding to the target decentralized identity is accessed according to the target access request, and the embodiment of this application is applied, so that through the setting of the preset arbitration system, the target decentralized identity can If the identity has been successfully registered on the first blockchain, the target decentralized identity can also be registered on the second blockchain, and if the preset arbitration system indicates that its registration is successful, it can be successfully registered. Visit its corresponding target blockchain address, so that the same domain name represents the same user on different blockchains, and realize the unified list of necessary technical features and technical effects brought about by domain names on the entire blockchain.

附图说明Description of drawings

为了更清楚地说明本申请实施例的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,应当理解,以下附图仅示出了本申请的某些实施例,因此不应被看作是对范围的限定,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他相关的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present application, the accompanying drawings that are required in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of the present application, and thus It should be regarded as a limitation on the scope, and those skilled in the art can also obtain other related drawings based on these drawings without creative work.

图1为本申请实施例提供的一种基于去中心化的域名访问系统架构图;FIG. 1 is an architecture diagram of a domain name access system based on decentralization provided by the embodiment of the present application;

图2为本申请实施例提供的一种基于去中心化的域名访问方法的流程示意图;FIG. 2 is a schematic flow diagram of a method for accessing a domain name based on decentralization provided by an embodiment of the present application;

图3为本申请实施例提供的另一种基于去中心化的域名访问方法的流程示意图;FIG. 3 is a schematic flowchart of another method for accessing domain names based on decentralization provided by the embodiment of the present application;

图4为本申请实施例提供的又一种基于去中心化的域名访问方法的流程示意图;FIG. 4 is a schematic flowchart of another method for accessing domain names based on decentralization provided by the embodiment of the present application;

图5为本申请实施例提供的一种基于去中心化的域名访问装置的功能模块示意图;FIG. 5 is a schematic diagram of functional modules of a device for accessing domain names based on decentralization provided by an embodiment of the present application;

图6为本申请实施例提供的一种电子设备结构示意图。FIG. 6 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.

具体实施方式Detailed ways

为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。通常在此处附图中描述和示出的本申请实施例的组件可以以各种不同的配置来布置和设计。In order to make the purposes, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments It is a part of the embodiments of this application, not all of them. The components of the embodiments of the application generally described and illustrated in the figures herein may be arranged and designed in a variety of different configurations.

因此,以下对在附图中提供的本申请的实施例的详细描述并非旨在限制要求保护的本申请的范围,而是仅仅表示本申请的选定实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。Accordingly, the following detailed description of the embodiments of the application provided in the accompanying drawings is not intended to limit the scope of the claimed application, but merely represents selected embodiments of the application. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of this application.

应注意到:相似的标号和字母在下面的附图中表示类似项,因此,一旦某一项在一个附图中被定义,则在随后的附图中不需要对其进行进一步定义和解释。It should be noted that like numerals and letters denote similar items in the following figures, therefore, once an item is defined in one figure, it does not require further definition and explanation in subsequent figures.

现有技术中,基于当前区块链进行去中心化身份标识(Decentralized Identity,DID)注册时,往往只需在当前区块链上完成注册行为即可,可以看出,现有的注册行为并不关注其他区块链上的交易操作,因此,现有的注册方法往往存在某用户在当前区块链上注册的域名无法在其他区块链上注册的问题。比如,以当前区块链为以太坊区块链为例进行说明,则现有的注册方法只能使得某域名XXXX在该以太坊区块链上代表用户A,而在其他区块链上(比如,索拉纳)可能就被用户B所注册,可以看出,现有的注册方法在全区块链上存在域名无法统一的问题。In the existing technology, when registering a decentralized identity (DID) based on the current blockchain, it is often only necessary to complete the registration on the current blockchain. It can be seen that the existing registration behavior does not It does not pay attention to the transaction operations on other blockchains. Therefore, the existing registration methods often have the problem that the domain name registered by a user on the current blockchain cannot be registered on other blockchains. For example, taking the current blockchain as the Ethereum blockchain as an example, the existing registration method can only make a domain name XXXX represent user A on the Ethereum blockchain, while on other blockchains ( For example, Solana) may be registered by user B. It can be seen that the existing registration method has the problem that the domain name cannot be unified on the entire blockchain.

有鉴于此,本申请实施例提供一种基于去中心化的域名访问方法,可以使得同一域名在不同区块链上均代表同一用户,从而在全区块链上实现域名统一。In view of this, the embodiment of the present application provides a domain name access method based on decentralization, which can make the same domain name represent the same user on different blockchains, thereby realizing domain name unification on the entire blockchain.

图1为本申请实施例提供的一种基于去中心化的域名访问系统架构图,如图1所示,该系统可以包括:第一区块链10、第二区块链20以及预设仲裁系统30,其中,第一区块链10和第二区块链20属于不同的区块链,第一区块链10可以作为注册目标去中心化身份标识的基准链,也即可以作为注册目标去中心化身份标识的第一个区块链;第二区块链20可以作为注册目标去中心化身份标识的扩展链,其可以是注册目标去中心化身份标识的非第一个区块链。第一区块链10和第二区块链20可以分别与预设仲裁系统30通过网络40连接。可选地,该第一区块链10可以包括多个第一节点101,各第一节点101之间可以进行通信连接;该第二区块链可以包括多个第二节点201,各第二节点201之间可以进行通信连接。Figure 1 is an architecture diagram of a domain name access system based on decentralization provided by the embodiment of the present application. As shown in Figure 1, the system may include: afirst blockchain 10, asecond blockchain 20, and apreset arbitration System 30, wherein thefirst block chain 10 and thesecond block chain 20 belong to different block chains, and thefirst block chain 10 can be used as the reference chain of the registration target decentralized identity, that is, it can be used as the registration target The first blockchain of the decentralized identity; thesecond blockchain 20 can be used as an extension chain of the registered target decentralized identity, which can be a non-first blockchain of the registered target decentralized identity . Thefirst block chain 10 and thesecond block chain 20 can be respectively connected with thepreset arbitration system 30 through thenetwork 40 . Optionally, thefirst block chain 10 may include a plurality offirst nodes 101, and a communication connection may be performed between eachfirst node 101; the second block chain may include a plurality ofsecond nodes 201, each second Communication connections can be made betweennodes 201 .

图2为本申请实施例提供的一种基于去中心化的域名访问方法的流程示意图。其中,该方法可以应用于上述域名访问系统中的第二区块链,可选地,该第二区块链可以为以太坊区块链,第一区块链可以为索拉纳区块链。如图2所示,该方法可以包括:FIG. 2 is a schematic flowchart of a method for accessing a domain name based on decentralization provided by an embodiment of the present application. Wherein, the method can be applied to the second blockchain in the above-mentioned domain name access system. Optionally, the second blockchain can be the Ethereum blockchain, and the first blockchain can be the Solana blockchain. . As shown in Figure 2, the method may include:

S101、接收第一访问设备发送的目标访问请求,目标访问请求携带有目标去中心化身份标识。S101. Receive a target access request sent by a first access device, where the target access request carries a target decentralized identity.

其中,目标去中心化身份标识是否生效由第二区块链根据预设仲裁系统发送的仲裁结果确定,且目标去中心化身份标识已在第一区块链注册成功,也即对于该第一区块链来说,可以在该第一区块链上通过目标去中心化身份标识成功访问对应的第一区块链地址。Among them, whether the target decentralized identity takes effect is determined by the second blockchain according to the arbitration result sent by the preset arbitration system, and the target decentralized identity has been successfully registered in the first blockchain, that is, for the first For the blockchain, the corresponding address of the first blockchain can be successfully accessed through the target decentralized identity on the first blockchain.

可选地,该目标去中心化身份标识可以基于以太坊域名系统ENS、去中心化账户系统DAS、去中心化域名协议FIO等区块链去中心化域名系统设置。在一些实施例中,所创建的目标去中心化身份标识可以包括下述域名关键字:eth、crypto、wallet、coin等,在此不作限定,根据实际的应用场景可以灵活设置。Optionally, the target decentralized identity can be set based on blockchain decentralized domain name systems such as Ethereum domain name system ENS, decentralized account system DAS, and decentralized domain name protocol FIO. In some embodiments, the created target decentralized identity may include the following domain name keywords: eth, crypto, wallet, coin, etc., which are not limited here and can be flexibly set according to actual application scenarios.

基于上述说明可以看出,对于该目标去中心化身份标识,可以先将其在第一区块链上完成注册,注册成功之后,若还需要在第二区块链上以相同的目标去中心化身份标识进行注册,那么可以通过第一区块链和第二区块链之间的预设仲裁系统对在第二区块链上发起的第一注册请求进行仲裁,得到对应的仲裁结果,其中,该仲裁结果可以表征目标去中心化身份标识是否可在第二区块链上生效。可以理解的是,若该目标去中心化身份标识可在第二区块链上生效,则说明在该第二区块链上,通过该目标去中心化身份标识可以访问对应的目标区块链地址。Based on the above description, it can be seen that for the target decentralized identity, it can be registered on the first blockchain first. If the identity is registered, then the first registration request initiated on the second blockchain can be arbitrated through the preset arbitration system between the first blockchain and the second blockchain, and the corresponding arbitration result can be obtained. Wherein, the arbitration result can represent whether the target decentralized identity can take effect on the second blockchain. It can be understood that if the target decentralized identity can take effect on the second blockchain, it means that on the second blockchain, the target decentralized identity can access the corresponding target blockchain address.

可选地,上述目标访问请求可以由第一访问用户通过第一访问设备发起,可选地,该第一访问设备可以是计算机、移动终端、可穿戴设备(比如,智能手表)等,在此不作限定。其中,可以理解的是,目标访问请求携带有目标去中心化身份标识,也即访问用户旨在通过该目标去中心化身份标识访问其所对应的目标区块链地址。Optionally, the above-mentioned target access request may be initiated by the first access user through a first access device. Optionally, the first access device may be a computer, a mobile terminal, a wearable device (such as a smart watch), etc., where Not limited. Wherein, it can be understood that the target access request carries the target decentralized identity, that is, the access user intends to access the corresponding target blockchain address through the target decentralized identity.

需要说明的是,本申请在此并不限定具体的访问类型,可选地,该访问类型具体可以是买入交易、卖出交易、转账交易等,在此不作限定,根据实际的应用场景可以有所不同。It should be noted that this application does not limit the specific access type here. Optionally, the access type may specifically be a buy transaction, a sell transaction, a transfer transaction, etc., which are not limited here, and may be based on actual application scenarios. different.

S102、若根据仲裁结果确定目标去中心化身份标识生效,则根据目标访问请求访问目标去中心化身份标识对应的目标区块链地址。S102. If it is determined according to the arbitration result that the target decentralized identity is valid, access the target blockchain address corresponding to the target decentralized identity according to the target access request.

其中,目标去中心化身份标识对应的目标区块链地址可以指示目标交易地址,可选地,该目标区块链地址又可以理解为交易钱包地址。Wherein, the target blockchain address corresponding to the target decentralized identity can indicate the target transaction address, and optionally, the target blockchain address can be understood as a transaction wallet address.

基于上述说明,可选地,第二区块链上可以预先存储有预设仲裁机构发送的仲裁结果,第二区块链在获取到目标访问请求之后,可以查询该仲裁结果,通过查询确定该目标去中心化身份标识是否在第二区块链上生效,也即查询确定该目标去中心化身份标识是否在第二区块链上成功注册,其中,若确定生效,那么此时第二区块链可以根据该目标访问请求访问目标去中心化身份标识对应的目标区块链地址。其中,结合具体交易场景来说,那么此时,第二区块链可以根据该目标访问请求访问向目标区块链地址发起相应的交易申请,并完成相关交易。Based on the above description, optionally, the arbitration result sent by the preset arbitration institution may be pre-stored on the second block chain, and after the second block chain obtains the target access request, it can query the arbitration result, and determine the arbitration result through the query. Whether the target decentralized identity is valid on the second blockchain, that is, query to determine whether the target decentralized identity is successfully registered on the second blockchain. The blockchain can access the target blockchain address corresponding to the target decentralized identity according to the target access request. Wherein, in combination with a specific transaction scenario, at this time, the second blockchain can initiate a corresponding transaction application to the target blockchain address according to the target access request and complete the relevant transaction.

应用本申请实施例,使得通过预设仲裁系统的设置,可以在目标去中心化身份标识已在第一区块链注册成功的情况下,还可以将该目标去中心化身份标识在第二区块链上进行注册,并在预设仲裁系统指示其注册成功的情况下,可以成功访问其对应的目标区块链地址,使得同一域名在不同区块链上均代表同一用户,实现全区块链上的域名统一。Applying the embodiment of this application, through the setting of the preset arbitration system, the target decentralized identity can also be registered in the second area under the condition that the target decentralized identity has been successfully registered in the first blockchain Register on the block chain, and when the preset arbitration system indicates that the registration is successful, you can successfully access the corresponding target block chain address, so that the same domain name represents the same user on different block chains, realizing the full block The domain names on the chain are unified.

综上,本申请实施例提供一种基于去中心化的域名访问方法,该方法包括:接收第一访问设备发送的目标访问请求,目标访问请求携带有目标去中心化身份标识,其中,目标去中心化身份标识是否生效由第二区块链根据预设仲裁系统发送的仲裁结果确定,且目标去中心化身份标识已在第一区块链注册成功;若根据仲裁结果确定目标去中心化身份标识生效,则根据目标访问请求访问目标去中心化身份标识对应的目标区块链地址,应用本申请实施例,使得通过预设仲裁系统的设置,可以在目标去中心化身份标识已在第一区块链注册成功的情况下,还可以将该目标去中心化身份标识在第二区块链上进行注册,并在预设仲裁系统指示其注册成功的情况下,可以成功访问其对应的目标区块链地址,使得同一域名在不同区块链上均代表同一用户,实现全区块链上的域名统一。To sum up, this embodiment of the present application provides a method for accessing a domain name based on decentralization. The method includes: receiving a target access request sent by a first access device, where the target access request carries a target decentralized identity, wherein the target goes to Whether the centralized identity takes effect is determined by the second blockchain according to the arbitration result sent by the preset arbitration system, and the target decentralized identity has been successfully registered in the first blockchain; if the target decentralized identity is determined according to the arbitration result If the identification takes effect, the target blockchain address corresponding to the target decentralized identity is accessed according to the target access request, and the embodiment of this application is applied, so that through the setting of the preset arbitration system, the target decentralized identity can be used in the first If the blockchain registration is successful, the target decentralized identity can also be registered on the second blockchain, and if the preset arbitration system indicates that the registration is successful, the corresponding target can be successfully accessed The blockchain address enables the same domain name to represent the same user on different blockchains, realizing the unification of domain names on the entire blockchain.

图3为本申请实施例提供的另一种基于去中心化的域名访问方法的流程示意图。可选地,如图3所示,上述根据目标访问请求访问目标去中心化身份标识对应的目标区块链地址,包括:FIG. 3 is a schematic flowchart of another method for accessing a domain name based on decentralization provided by an embodiment of the present application. Optionally, as shown in Figure 3, the above-mentioned access to the target blockchain address corresponding to the target decentralized identity according to the target access request includes:

S201、根据目标访问请求分别获取目标去中心化身份标识的目标生效块高。S201. Obtain target effective block heights of target decentralized identities respectively according to target access requests.

其中,目标去中心化身份标识的目标生效块高可以指示该目标去中心化身份标识对应的目标区块在第二区块链中的位置。Wherein, the target effective block height of the target decentralized identity may indicate the position of the target block corresponding to the target decentralized identity in the second blockchain.

需要说明的是,目标去中心化身份标识的目标生效块高可以根据第二区块链中的当前块高和所部署的DID协议确定。其中,若记注册过程中第二区块链的当前块高为N,可选地,则根据其所部署的DID协议可以确定该目标去中心化身份标识的目标生效块高为N+100,当然,具体确定方式并不以此为限,根据其所部署的DID协议中的相关规定的不同可以有所不同。It should be noted that the target effective block height of the target decentralized identity can be determined according to the current block height in the second blockchain and the deployed DID protocol. Wherein, if the current block height of the second blockchain during the registration process is N, optionally, according to the deployed DID protocol, it can be determined that the target effective block height of the target decentralized identity is N+100, Of course, the specific determination method is not limited to this, and may be different according to the relevant regulations in the deployed DID protocol.

S202、基于目标生效块高,则根据目标访问请求访问目标去中心化身份标识对应的目标区块链地址。S202. Based on the effective block height of the target, access the target blockchain address corresponding to the target decentralized identity according to the target access request.

基于上述说明,在确定目标去中心化身份标识的目标生效块高之后,则可以实时监测第二区块链的当前块高,若监测到该第二区块链的当前块高到达该目标生效块高后,则说明此时在该第二区块链上所注册的目标去中心化身份标识生效,那么在该情况下,则可以根据上述目标访问请求成功访问目标去中心化身份标识对应的目标区块链地址。Based on the above description, after the target effective block height of the target decentralized identity is determined, the current block height of the second blockchain can be monitored in real time. If it is detected that the current block height of the second blockchain reaches the target effective After the block height is high, it means that the target decentralized identity registered on the second blockchain takes effect at this time. In this case, you can successfully access the target decentralized identity corresponding to the above target access request. Target blockchain address.

图4为本申请实施例提供的又一种基于去中心化的域名访问方法的流程示意图。可选地,如图4所示,上述方法还包括:FIG. 4 is a schematic flowchart of another method for accessing a domain name based on decentralization provided by the embodiment of the present application. Optionally, as shown in Figure 4, the above method also includes:

S301、获取第一注册请求,第一注册请求携带有目标去中心化身份标识、第二区块链标识以及目标预设押金。S301. Obtain a first registration request. The first registration request carries a target decentralized identity, a second blockchain ID, and a target preset deposit.

可选地,第一注册请求可以由第二访问用户通过第二访问设备发起,可选地,该第二访问设备可以是计算机、移动终端、可穿戴设备(比如,智能手表)等,在此不作限定。在一些实施例中,该第二访问设备与上述的第一访问设备可以为同一访问设备,当然,该第二访问用户与上述的第一访问用户也可以为同一访问用户,在此不作限定。Optionally, the first registration request may be initiated by a second access user through a second access device. Optionally, the second access device may be a computer, a mobile terminal, a wearable device (such as a smart watch), etc., here Not limited. In some embodiments, the second access device and the above-mentioned first access device may be the same access device. Of course, the second access user and the above-mentioned first access user may also be the same access user, which is not limited herein.

S302、根据第一注册请求,在第二区块链中注册目标去中心化身份标识,并获取目标去中心化身份标识的目标生效块高。S302. According to the first registration request, register the target decentralized identity in the second blockchain, and acquire the target effective block height of the target decentralized identity.

在一些实施例中,第二访问用户可以通过第二访问设备在第二区块链上提前注册该目标去中心化身份标识,其中,注册过程中,第二区块链在获取到第二访问设备提交的第一注册请求之后,可以先根据该第一注册请求中携带的目标去中心化身份标识进行注册,可选地,注册过程中,基于第二区块链所部署的DID协议,可以获取该注册操作的注册属性。其中,该注册属性可以指示目标去中心化身份标识的目标生效块高。In some embodiments, the second access user can pre-register the target decentralized identity on the second block chain through the second access device, wherein, during the registration process, the second block chain obtains the second access After the device submits the first registration request, it can first register according to the target decentralized identity carried in the first registration request. Optionally, during the registration process, based on the DID protocol deployed by the second blockchain, it can Gets the registration property for this registration operation. Wherein, the registration attribute may indicate the effective block height of the target decentralized identity.

S303、基于目标去中心化标识和目标生效块高,向预设仲裁系统发送第一仲裁请求。S303. Send a first arbitration request to a preset arbitration system based on the target decentralized identifier and the target effective block height.

基于上述内容,需要说明的是,此时虽然已经在第二区块链中注册了目标去中心化身份标识,但此时并未生效,且在该情况下,为了进一步提高注册安全性,可以基于目标去中心化标识和目标生效块高,向预设仲裁系统发送第一仲裁请求,以请求通过预设仲裁系统确定该目标去中心化身份标识是否可在目标生效块高指示的目标块高处生效。Based on the above content, it should be noted that although the target decentralized identity has been registered in the second blockchain at this time, it has not taken effect at this time, and in this case, in order to further improve the registration security, you can Based on the target decentralized identity and the target effective block height, send the first arbitration request to the preset arbitration system to request the preset arbitration system to determine whether the target decentralized identity can be at the target block height indicated by the target effective block height takes effect.

S304、接收预设仲裁系统根据第一仲裁请求返回的目标仲裁结果,目标仲裁结果用于指示目标去中心化身份标识是否可在目标生效块高指示的目标块高处生效。S304. Receive the target arbitration result returned by the preset arbitration system according to the first arbitration request. The target arbitration result is used to indicate whether the target decentralized identity can take effect at the target block height indicated by the target validation block height.

其中,预设仲裁系统在接收到上述第一仲裁请求之后,可以基于预设仲裁机制得到目标仲裁结果,并向第二区块链返回该目标仲裁结果,那么对于第二区块链来说,此时则可以根据该目标仲裁结果进一步确定目标去中心化身份标识是否可在目标生效块高指示的目标块高处生效。Wherein, after receiving the above-mentioned first arbitration request, the preset arbitration system can obtain the target arbitration result based on the preset arbitration mechanism, and return the target arbitration result to the second blockchain, then for the second blockchain, At this time, it can be further determined according to the target arbitration result whether the target decentralized identity can take effect at the target block height indicated by the target effective block height.

可选地,上述预设仲裁系统可以包括多个仲裁委员,其中,每个仲裁委员可以对应一仲裁节点并基于互联网技术组成该预设仲裁系统,仲裁过程中可以根据各仲裁委员的仲裁结果综合确定上述的目标仲裁结果。在一些实施例中,各仲裁节点具体可以是计算机、服务器、处理器等,在此不作限定。Optionally, the above-mentioned preset arbitration system may include multiple arbitration committees, wherein each arbitration committee may correspond to an arbitration node and form the preset arbitration system based on Internet technology. During the arbitration process, the arbitration results of each arbitration committee may be integrated Determine the target arbitration outcome described above. In some embodiments, each arbitration node may specifically be a computer, a server, a processor, etc., which is not limited herein.

在一些实施例中,若预设仲裁系统中预设数量个仲裁委员未驳回该第一注册请求,则确定目标仲裁结果指示目标去中心化身份标识可在目标生效块高指示的目标块高处生效;若预设仲裁系统中预设数量个仲裁委员驳回该第一注册请求,则确定目标仲裁结果指示第一注册请求失效,且各仲裁委员可被配置为获取目标预设押金。In some embodiments, if the preset number of arbitration commissioners in the preset arbitration system do not reject the first registration request, it is determined that the target arbitration result indicates that the target decentralized identity can be at the target block height indicated by the target effective block height Take effect; if a preset number of arbitration committees in the default arbitration system reject the first registration request, then the target arbitration result indicates that the first registration request is invalid, and each arbitration committee can be configured to obtain the target preset deposit.

其中,该预设数量可以根据预设仲裁占比和总仲裁委员数量的乘积确定。比如,预设仲裁占比为2/3,总仲裁委员数量为12,则求得的预设数量可以为8=2/3×12。结合上述说明,也即在总仲裁委员数量为12的情况下,若有8个以上的仲裁委员未驳回该第一注册请求,则确定目标仲裁结果指示目标去中心化身份标识可在目标生效块高指示的目标块高处生效;否则,则确定目标仲裁结果指示第一注册请求失效,且各仲裁委员可被配置为获取目标预设押金。可选地,为各仲裁委员进行目标预设押金的分配时,可以根据该预设仲裁系统中仲裁委员的数量进行平均分配,又或者,按照一定的分配机制进行指定分配,在此不作限定。Wherein, the preset number can be determined according to the product of the preset arbitration ratio and the total number of arbitration commissioners. For example, if the preset arbitration ratio is 2/3 and the total number of arbitration committees is 12, then the calculated preset number can be 8=2/3×12. Combined with the above description, that is, when the total number of arbitrators is 12, if more than 8 arbitrators do not reject the first registration request, it is determined that the target arbitration result indicates that the target decentralized identity can take effect in the target block High indicates that the target block height is valid; otherwise, it is determined that the target arbitration result indicates that the first registration request is invalid, and each arbitration committee can be configured to obtain the target preset deposit. Optionally, when distributing the target preset deposit for each arbitration committee, it can be distributed evenly according to the number of arbitration committees in the preset arbitration system, or it can be assigned according to a certain distribution mechanism, which is not limited here.

可选地,对于第二区块链来说,若其接收到的目标仲裁结果指示第一注册请求失效,那么此时,第二区块链可以删除与目标去中心化身份标识相关的内容以释放不必要的内存占用。Optionally, for the second blockchain, if the target arbitration result it receives indicates that the first registration request is invalid, then at this time, the second blockchain can delete the content related to the target decentralized identity to Free up unnecessary memory usage.

可选地,上述第一仲裁请求携带有目标去中心化身份标识、目标签名信息以及目标预设押金。Optionally, the above-mentioned first arbitration request carries the target decentralized identity, target signature information, and target preset deposit.

可选地,目标签名信息由第二区块链基于防止重放攻击机制根据目标去中心化身份标识和第二区块链标识确定。其中,防止重放攻击机制也即nonce机制,可选地,具体在进行签名操作,第二区块链可以基于预设私钥对由目标去中心化身份标识、第二区块链标识以及nonce机制组成的信息对进行签名操作,从而得到目标签名信息。比如,记目标去中心化身份标识为Owen,第二区块链标识为chainid,则可以对组成的信息对(Owen,nonce,chainid)进行签名操作。Optionally, the target signature information is determined by the second blockchain based on the target decentralized identity and the second blockchain identifier based on the replay attack prevention mechanism. Among them, the anti-replay attack mechanism is also the nonce mechanism. Optionally, specifically in the signature operation, the second blockchain can be based on the preset private key pair by the target decentralized identity, the second blockchain identifier, and the nonce The information composed by the mechanism performs the signature operation to obtain the target signature information. For example, if the target decentralized identity is Owen, and the second blockchain is identified as chainid, then the formed information pair (Owen, nonce, chainid) can be signed.

其中,需要说明的是,目标预设押金的数量可以根据第二区块链上部署的DID协议确定,在此不作限定。结合上述实施例可以看出,由于该第一仲裁请求携带有目标预设押金,因此,若确定目标仲裁结果指示第一注册请求失效,则各仲裁委员可被配置为获取目标预设押金。Wherein, it should be noted that the amount of the target preset deposit can be determined according to the DID protocol deployed on the second blockchain, which is not limited here. It can be seen from the above embodiments that since the first arbitration request carries a target preset deposit, if the target arbitration result indicates that the first registration request is invalid, each arbitration committee may be configured to obtain a target preset deposit.

再者,结合上述签名过程进行说明,可选地,第二区块链可以通过广播机制向预设仲裁系统中的各仲裁委员发送第一仲裁请求,其中,为了便于各仲裁委员可以对该第一仲裁请求中的目标签名信息进行验签,可选地该第一仲裁请求中还可以包括上述预设私钥对应的预设公钥,其中,预设私钥和预设公钥作为一个密钥对,其可以基于非对称加密体制生成。对于各仲裁委员来说,其在接收到该第一仲裁请求中可以采用其中的预设公钥对目标签名信息进行验签,若预设数量个仲裁委员验签成功,则说明预设数量个仲裁委员未驳回该第一注册请求;否则,说明预设数量个仲裁委员驳回该第一注册请求。Furthermore, in conjunction with the above-mentioned signature process, optionally, the second blockchain can send the first arbitration request to each arbitration committee in the preset arbitration system through a broadcast mechanism, wherein, for the convenience of each arbitration committee, the first arbitration request can be Signature verification is performed on the target signature information in an arbitration request. Optionally, the first arbitration request may also include a preset public key corresponding to the preset private key, wherein the preset private key and the preset public key serve as a secret A key pair, which can be generated based on an asymmetric encryption system. For each arbitration committee, when receiving the first arbitration request, it can use the preset public key to verify the signature information of the target. If the preset number of arbitration committees successfully verify the signature, it means that the preset number The arbitration committee did not reject the first registration request; otherwise, explain that the preset number of arbitration committees rejected the first registration request.

可选地,上述目标去中心化身份标识在第一区块链中与第一区块链的第一区块链地址相绑定。Optionally, the target decentralized identity is bound to the first blockchain address of the first blockchain in the first blockchain.

其中,第一区块链可以作为注册目标去中心化身份标识的基准链,也即可以作为注册目标去中心化身份标识的第一个区块链;相对应的,第二区块链可以作为注册目标去中心化身份标识的扩展链,其可以是注册目标去中心化身份标识的第二个区块链、第三个区块链、第五个区块链等任意数量个区块链,在此不作限定。Among them, the first blockchain can be used as the benchmark chain for registering the target decentralized identity, that is, it can be used as the first blockchain for registering the target decentralized identity; correspondingly, the second blockchain can be used as The extension chain of the registered target decentralized identity, which can be any number of blockchains such as the second blockchain, the third blockchain, and the fifth blockchain of the registered target decentralized identity, It is not limited here.

举例说明,记目标去中心化身份标识为Owen,第一区块链的第一区块链地址为addr,那么在第一区块链上进行注册之后,将实现Owen和addr的相绑定。可以理解的是,通过该绑定操作,访问第一区块链的第一区块链地址addr时,可以通过访问该目标去中心化身份标识Owen来实现。For example, if the target decentralized identity is Owen, and the first blockchain address of the first blockchain is addr, then after registration on the first blockchain, the binding of Owen and addr will be realized. It can be understood that, through the binding operation, access to the first blockchain address addr of the first blockchain can be achieved by accessing the target decentralized identity Owen.

可选地,上述第一区块链为以太坊区块链,第二区块链为索拉纳区块链。Optionally, the above-mentioned first blockchain is the Ethereum blockchain, and the second blockchain is the Solana blockchain.

其中,第一区块链和第二区块链为不同的区块链,当然,具体类型并不以此为限。以第一区块链为例进行说明,可选地,第一区块链可以为索拉纳区块链、Polygon(以前称为MATIC),波卡链(polkadot)等中的任一区块链,在此不作限定。Wherein, the first block chain and the second block chain are different block chains, of course, the specific type is not limited to this. Take the first block chain as an example for illustration. Optionally, the first block chain can be any block in Solana block chain, Polygon (formerly known as MATIC), Polkadot, etc. Chains are not limited here.

应用本申请实施例,实现了同一域名在多种类型的区块链上均代表同一用户,此外,在目标去中心化身份标识对应目标用户的情况下,且已在第一区块链中注册时,即使第二区块链上未注册该目标去中心化身份标识,对于其他用户来说,也无法在第二区块链上抢注该目标去中心化身份标识,也就是说,无论目标用户是否在第二区块链上注册该目标去中心化身份标识,该目标去中心化身份标识都归该目标用户所有,其他用户不能抢注,可以提高本申请方法的适用性。此外,本申请实施例通过预设仲裁系统在全区块链上实现域名统一时,可以理解的是,若该预设仲裁系统中预设数量个仲裁委员未驳回第一注册请求,那么各仲裁委员将无法获取到目标预设押金,也就不需要额外费用,具有仲裁成本低的特点。此外,由于设置了若所述预设仲裁系统中预设数量个仲裁委员驳回该第一注册请求,那么各所述仲裁委员可被配置为获取目标预设押金,也即由于该驳回机制的设置,可以在一定程度上避免用户发起的恶意注册。Applying the embodiment of this application, it is realized that the same domain name represents the same user on multiple types of blockchains. In addition, when the target decentralized identity corresponds to the target user, and has been registered in the first blockchain , even if the target decentralized identity is not registered on the second blockchain, other users cannot preempt the target decentralized identity on the second blockchain, that is, regardless of the target Whether the user registers the target decentralized identity on the second blockchain, the target decentralized identity is owned by the target user, and other users cannot preemptively register it, which can improve the applicability of the application method. In addition, when the embodiment of this application realizes domain name unification on the entire blockchain through the preset arbitration system, it can be understood that if the preset number of arbitration committees in the preset arbitration system do not reject the first registration request, then each arbitration The commissioner will not be able to obtain the target preset deposit, so there is no need for additional fees, which has the characteristics of low arbitration cost. In addition, since it is set that if a preset number of arbitrators in the preset arbitration system reject the first registration request, each of the arbitrators can be configured to obtain a target preset deposit, that is, due to the setting of the rejection mechanism , which can avoid malicious registration initiated by users to a certain extent.

图5为本申请实施例提供的一种基于去中心化的域名访问装置的功能模块示意图,该域名访问装置应用于第二区块链,所述第二区块链与预设仲裁系统通信连接,该装置基本原理及产生的技术效果与前述对应的方法实施例相同,为简要描述,本实施例中未提及部分,可参考方法实施例中的相应内容。如图5所示,该域名访问装置200包括:Fig. 5 is a schematic diagram of functional modules of a decentralized domain name access device provided by an embodiment of the present application. The domain name access device is applied to a second block chain, and the second block chain is communicatively connected to a preset arbitration system , the basic principles and technical effects of the device are the same as those of the corresponding method embodiments described above. For brief description, the parts not mentioned in this embodiment can refer to the corresponding content in the method embodiments. As shown in Figure 5, the domainname access device 200 includes:

获取模块210,用于接收第一访问设备发送的目标访问请求,所述目标访问请求携带有目标去中心化身份标识,其中,所述目标去中心化身份标识是否生效由所述第二区块链根据所述预设仲裁系统发送的仲裁结果确定,且所述目标去中心化身份标识已在第一区块链注册成功;Theacquisition module 210 is configured to receive a target access request sent by a first access device, the target access request carrying a target decentralized identity, wherein whether the target decentralized identity takes effect is determined by the second block The chain is determined according to the arbitration result sent by the preset arbitration system, and the target decentralized identity has been successfully registered in the first blockchain;

访问模块220,用于若根据所述仲裁结果确定所述目标去中心化身份标识生效,则根据所述目标访问请求访问所述目标去中心化身份标识对应的目标区块链地址。Theaccess module 220 is configured to access the target blockchain address corresponding to the target decentralized identity according to the target access request if it is determined according to the arbitration result that the target decentralized identity is valid.

在可选的实施方式中,所述访问模块220,具体用于根据所述目标访问请求分别获取所述目标去中心化身份标识的目标生效块高;In an optional implementation manner, theaccess module 220 is specifically configured to respectively obtain the target effective block height of the target decentralized identity according to the target access request;

基于所述目标生效块高,根据所述目标访问请求访问所述目标去中心化身份标识对应的目标区块链地址。Based on the effective block height of the target, access the target block chain address corresponding to the target decentralized identity according to the target access request.

在可选的实施方式中,所述域名访问装置还包括:注册模块,用于获取第一注册请求,所述第一注册请求携带有目标去中心化身份标识、第二区块链标识以及目标预设押金;In an optional implementation manner, the domain name access device further includes: a registration module, configured to obtain a first registration request, the first registration request carrying the target decentralized identity, the second blockchain ID, and the target advance deposit;

根据所述第一注册请求,在所述第二区块链中注册所述目标去中心化身份标识,并获取所述目标去中心化身份标识的目标生效块高;According to the first registration request, register the target decentralized identity in the second blockchain, and acquire the target effective block height of the target decentralized identity;

基于所述目标去中心化标识和所述目标生效块高,向预设仲裁系统发送第一仲裁请求;Sending a first arbitration request to a preset arbitration system based on the target decentralized identifier and the target effective block height;

接收所述预设仲裁系统根据所述第一仲裁请求返回的目标仲裁结果,所述目标仲裁结果用于指示所述目标去中心化身份标识是否可在所述目标生效块高指示的目标块高处生效。Receive the target arbitration result returned by the preset arbitration system according to the first arbitration request, the target arbitration result is used to indicate whether the target decentralized identity can be at the target block height indicated by the target effective block height takes effect.

在可选的实施方式中,所述预设仲裁系统包括多个仲裁委员,若所述预设仲裁系统中预设数量个仲裁委员未驳回所述第一注册请求,则确定所述目标仲裁结果指示所述目标去中心化身份标识可在所述目标生效块高指示的目标块高处生效;In an optional embodiment, the preset arbitration system includes a plurality of arbitration committees, and if a preset number of arbitration committees in the preset arbitration system do not reject the first registration request, then determine the target arbitration result Indicate that the target decentralized identity can take effect at the target block height indicated by the target effective block height;

若所述预设仲裁系统中预设数量个仲裁委员驳回该第一注册请求,则确定所述目标仲裁结果指示所述第一注册请求失效,且各所述仲裁委员可被配置为获取所述目标预设押金。If a preset number of arbitrators in the preset arbitration system reject the first registration request, it is determined that the target arbitration result indicates that the first registration request is invalid, and each of the arbitrators can be configured to obtain the Target preset deposit.

在可选的实施方式中,所述第一仲裁请求携带有目标去中心化身份标识、目标签名信息以及所述目标预设押金;所述目标签名信息由所述第二区块链基于防止重放攻击机制根据所述目标去中心化身份标识和所述第二区块链标识确定。In an optional implementation, the first arbitration request carries the target decentralized identity, target signature information, and the target preset deposit; the target signature information is determined by the second block chain based on The release attack mechanism is determined according to the target decentralized identity and the second blockchain identity.

在可选的实施方式中,所述目标去中心化身份标识在所述第一区块链中与所述第一区块链的第一区块链地址相绑定。In an optional implementation manner, the target decentralized identity is bound to a first blockchain address of the first blockchain in the first blockchain.

在可选的实施方式中,所述第一区块链为以太坊区块链,所述第二区块链为索拉纳区块链。In an optional implementation manner, the first block chain is an Ethereum block chain, and the second block chain is a Solana block chain.

上述装置用于执行前述实施例提供的方法,其实现原理和技术效果类似,在此不再赘述。The above-mentioned device is used to execute the methods provided in the foregoing embodiments, and its implementation principles and technical effects are similar, and details are not repeated here.

以上这些模块可以是被配置成实施以上方法的一个或多个集成电路,例如:一个或多个特定集成电路(Application Specific Integrated Circuit,简称ASIC),或,一个或多个微处理器,或,一个或者多个现场可编程门阵列(Field Programmable Gate Array,简称FPGA)等。再如,当以上某个模块通过处理元件调度程序代码的形式实现时,该处理元件可以是通用处理器,例如中央处理器(Central Processing Unit,简称CPU)或其它可以调用程序代码的处理器。再如,这些模块可以集成在一起,以片上系统(system-on-a-chip,简称SOC)的形式实现。The above modules may be one or more integrated circuits configured to implement the above method, for example: one or more specific integrated circuits (Application Specific Integrated Circuit, referred to as ASIC), or, one or more microprocessors, or, One or more Field Programmable Gate Arrays (Field Programmable Gate Array, FPGA for short), etc. For another example, when one of the above modules is implemented in the form of a processing element scheduling program code, the processing element may be a general-purpose processor, such as a central processing unit (Central Processing Unit, CPU for short) or other processors that can call program codes. For another example, these modules can be integrated together and implemented in the form of a system-on-a-chip (SOC for short).

图6为本申请实施例提供的一种电子设备结构示意图,该电子设备可以集成于上述域名访问装置中。如图6所示,该电子设备可以包括:处理器310、存储介质320和总线330,存储介质320存储有处理器310可执行的机器可读指令,当电子设备运行时,处理器310与存储介质320之间通过总线330通信,处理器310执行机器可读指令,以执行上述方法实施例的步骤。具体实现方式和技术效果类似,这里不再赘述。Fig. 6 is a schematic structural diagram of an electronic device provided by an embodiment of the present application, and the electronic device may be integrated into the above-mentioned domain name access device. As shown in FIG. 6, the electronic device may include: aprocessor 310, astorage medium 320, and abus 330. Thestorage medium 320 stores machine-readable instructions executable by theprocessor 310. When the electronic device is running, theprocessor 310 communicates with the storage Themedia 320 communicate with each other through thebus 330 , and theprocessor 310 executes machine-readable instructions to execute the steps of the foregoing method embodiments. The specific implementation manner and technical effect are similar, and will not be repeated here.

可选地,本申请还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,计算机程序被处理器运行时执行上述方法实施例的步骤。具体实现方式和技术效果类似,这里不再赘述。Optionally, the present application further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is run by a processor, the steps in the foregoing method embodiments are executed. The specific implementation manner and technical effect are similar, and will not be repeated here.

在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed devices and methods may be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or integrated. to another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.

作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。A unit described as a separate component may or may not be physically separated, and a component displayed as a unit may or may not be a physical unit, that is, it may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware, or in the form of hardware plus software functional units.

上述以软件功能单元的形式实现的集成的单元,可以存储在一个计算机可读取存储介质中。上述软件功能单元存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器(英文:processor)执行本申请各个实施例方法的部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(英文:Read-Only Memory,简称:ROM)、随机存取存储器(英文:Random Access Memory,简称:RAM)、磁碟或者光盘等各种可以存储程序代码的介质。The above-mentioned integrated units implemented in the form of software functional units may be stored in a computer-readable storage medium. The above-mentioned software functional units are stored in a storage medium, and include several instructions to enable a computer device (which may be a personal computer, server, or network device, etc.) or a processor (English: processor) to execute the methods of the various embodiments of the present application. partial steps. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (English: Read-Only Memory, abbreviated: ROM), random access memory (English: Random Access Memory, abbreviated: RAM), magnetic disk or optical disc, etc. Various media that can store program code.

需要说明的是,在本文中,诸如“第一”和“第二”等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括要素的过程、方法、物品或者设备中还存在另外的相同要素。It should be noted that in this article, relative terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply these No such actual relationship or order exists between entities or operations. Furthermore, the term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article, or apparatus comprising a set of elements includes not only those elements, but also includes elements not expressly listed. other elements of or also include elements inherent in such a process, method, article, or device. Without further limitations, an element defined by the phrase "comprising a ..." does not preclude the presence of additional identical elements in the process, method, article, or apparatus that includes the element.

以上仅为本申请的优选实施例而已,并不用于限制本申请,对于本领域的技术人员来说,本申请可以有各种更改和变化。凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。应注意到:相似的标号和字母在下面的附图中表示类似项,因此,一旦某一项在一个附图中被定义,则在随后的附图中不需要对其进行进一步定义和解释。以上仅为本申请的优选实施例而已,并不用于限制本申请,对于本领域的技术人员来说,本申请可以有各种更改和变化。凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。The above are only preferred embodiments of the present application, and are not intended to limit the present application. For those skilled in the art, there may be various modifications and changes in the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of this application shall be included within the protection scope of this application. It should be noted that like numerals and letters denote similar items in the following figures, therefore, once an item is defined in one figure, it does not require further definition and explanation in subsequent figures. The above are only preferred embodiments of the present application, and are not intended to limit the present application. For those skilled in the art, there may be various modifications and changes in the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of this application shall be included within the protection scope of this application.

Claims (10)

CN202310240495.4A2023-03-082023-03-08Domain name access method, device, equipment and storage medium based on decentralizationActiveCN116319673B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN202310240495.4ACN116319673B (en)2023-03-082023-03-08Domain name access method, device, equipment and storage medium based on decentralization

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202310240495.4ACN116319673B (en)2023-03-082023-03-08Domain name access method, device, equipment and storage medium based on decentralization

Publications (2)

Publication NumberPublication Date
CN116319673Atrue CN116319673A (en)2023-06-23
CN116319673B CN116319673B (en)2025-07-08

Family

ID=86833747

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202310240495.4AActiveCN116319673B (en)2023-03-082023-03-08Domain name access method, device, equipment and storage medium based on decentralization

Country Status (1)

CountryLink
CN (1)CN116319673B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN109951482A (en)*2019-03-192019-06-28全链通有限公司User terminal and its block chain domain name analytic method
US20200021446A1 (en)*2017-03-062020-01-16Nokia Technologies OySecure de-centralized domain name system
CN112468602A (en)*2019-09-062021-03-09傲为信息技术(江苏)有限公司Decentralized domain name registration system and method based on block chain
CN112671950A (en)*2020-12-302021-04-16北京百度网讯科技有限公司Domain name processing method and device based on block chain, electronic equipment and storage medium
CN113271311A (en)*2021-05-282021-08-17中国人民银行数字货币研究所Digital identity management method and system in cross-link network
CN113312612A (en)*2021-07-292021-08-27支付宝(杭州)信息技术有限公司Application access method and device in multi-party security computing
CN113742783A (en)*2020-05-272021-12-03伏羲科技(菏泽)有限公司Domain name data processing method and device, server and storage medium
CN115564416A (en)*2022-11-142023-01-03北京航空航天大学Inter-block chain asset transfer system
CN115766018A (en)*2022-10-142023-03-07蚂蚁区块链科技(上海)有限公司Authentication method, device and equipment based on decentralized identity

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US20200021446A1 (en)*2017-03-062020-01-16Nokia Technologies OySecure de-centralized domain name system
CN109951482A (en)*2019-03-192019-06-28全链通有限公司User terminal and its block chain domain name analytic method
CN112468602A (en)*2019-09-062021-03-09傲为信息技术(江苏)有限公司Decentralized domain name registration system and method based on block chain
CN113742783A (en)*2020-05-272021-12-03伏羲科技(菏泽)有限公司Domain name data processing method and device, server and storage medium
CN112671950A (en)*2020-12-302021-04-16北京百度网讯科技有限公司Domain name processing method and device based on block chain, electronic equipment and storage medium
CN113271311A (en)*2021-05-282021-08-17中国人民银行数字货币研究所Digital identity management method and system in cross-link network
CN113312612A (en)*2021-07-292021-08-27支付宝(杭州)信息技术有限公司Application access method and device in multi-party security computing
CN115766018A (en)*2022-10-142023-03-07蚂蚁区块链科技(上海)有限公司Authentication method, device and equipment based on decentralized identity
CN115564416A (en)*2022-11-142023-01-03北京航空航天大学Inter-block chain asset transfer system

Also Published As

Publication numberPublication date
CN116319673B (en)2025-07-08

Similar Documents

PublicationPublication DateTitle
CN111782275B (en) Blockchain-based transaction processing methods and devices, electronic equipment
CN110839029B (en)Micro-service registration method and device
CN109064334B (en)Intelligent contract accounting method, computer device and readable storage medium
US11128603B2 (en)Method and system for providing a transaction forwarding service in blockchain implementations
EP3543853A1 (en)Providing microservice information
US9648008B2 (en)Terminal identification method, and method, system and apparatus of registering machine identification code
US20200145373A1 (en)System for blockchain based domain name and ip number register
TWI776030B (en) Blockchain-based transaction processing method and device, and electronic equipment
CN109598504A (en)Transaction processing method and device based on block chain and electronic equipment
CN111416709B (en)Voting method, device, equipment and storage medium based on block chain system
CN111967061A (en)Credible account transfer transaction method and device based on block chain
CN112287329A (en)Service instance checking method and device, electronic equipment and storage medium
CN110852648A (en) A data processing method, device and computer storage medium
CN110347750B (en) Blockchain-based data processing method and device
CN111311341A (en) Bill processing method, equipment and medium
WO2019067533A1 (en)System and methods for resolving data discrepancies in a distributed system with blockchain controls
CN109872223B (en)Virtual article transaction method, device, equipment and storage medium
CN110599176A (en)Data processing method and device based on block chain, storage medium and node equipment
CN114549011A (en)Method and device for binding bank card
CN110866827B (en)Method and device for processing pass, storage medium and server
CN116319673A (en)Domain name access method, device, equipment and storage medium based on decentralization
CN110599272A (en)Method for issuing electronic invoice and related product
CN114092093B (en)Block chain transaction processing method and device, electronic equipment and readable medium
CN111915325B (en)Method, system and computer readable storage medium for tracing blockchain transaction information
CN111553671B (en)Transaction method, electronic equipment and storage medium

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp