CN112667601A - Block chain identifier management method, terminal device and computer-readable storage medium - Google Patents

Block chain identifier management method, terminal device and computer-readable storage medium Download PDF

Info

Publication number
CN112667601A
CN112667601A CN202011609697.4A CN202011609697A CN112667601A CN 112667601 A CN112667601 A CN 112667601A CN 202011609697 A CN202011609697 A CN 202011609697A CN 112667601 A CN112667601 A CN 112667601A
Authority
CN
China
Prior art keywords
chain
link
relay
cross
gateway
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
CN202011609697.4A
Other languages
Chinese (zh)
Other versions
CN112667601B (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.)
Hangzhou Qulian Technology Co Ltd
Original Assignee
Hangzhou Qulian Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Qulian Technology Co Ltd filed Critical Hangzhou Qulian Technology Co Ltd
Priority to CN202011609697.4A priority Critical patent/CN112667601B/en
Publication of CN112667601A publication Critical patent/CN112667601A/en
Application granted granted Critical
Publication of CN112667601B publication Critical patent/CN112667601B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application is applicable to the technical field of computer application, and provides a block chain identifier management method, terminal equipment and a computer-readable storage medium, wherein the method comprises the following steps: receiving attribute information sent by a block chain, wherein the attribute information comprises identification information of the block chain; based on the attribute information, sending a transaction request to a relay link in a cross-link network, wherein the transaction request is used for indicating the relay link to audit the attribute information; and if the audit is passed, receiving the instruction fed back by the relay link, and executing the operation requirement associated with the identification information. By the method and the device, the problem of management of the identity of the block chain in the whole cross-chain network in a scene of realizing large-scale block chain intercommunication can be solved.

Description

Block chain identifier management method, terminal device and computer-readable storage medium
Technical Field
The present application belongs to the technical field of computer application, and in particular, to a method for managing a block chain identifier, a terminal device, and a computer-readable storage medium.
Background
With the development and innovation of the block chain technology, block chain networks with different characteristics and adaptive to different scene requirements appear in different fields, and an independent value system is formed. The block chain cross-chain technology is an important means for realizing interconnection and intercommunication and value transfer between heterogeneous block chains.
As the internet includes many sub-networks, as the cross-link network is continuously expanded, for a large cross-link network connecting all the cross-link networks, many sub-cross-link networks are also included, and the connection between different sub-cross-link networks may be based on different cross-link technologies. Also, for each sub-inter-chain network containing an arbitrary blockchain, the sub-inter-chain network may contain many smaller sub-networks. Therefore, to implement large-scale block chain interworking, management of the identity of the block chain in the entire inter-chain network is an urgent problem to be solved.
Disclosure of Invention
The embodiment of the application provides a block chain identifier management method, terminal equipment and a computer readable storage medium, which can solve the problem of management of block chain identifiers in a whole cross-chain network to realize intercommunication of large-scale block chains.
In a first aspect, an embodiment of the present application provides a method for managing a blockchain identifier, where the method is applied to a cross-chain gateway, and the method includes:
receiving attribute information sent by a block chain, wherein the attribute information comprises identification information of the block chain; based on the attribute information, sending a transaction request to a relay link in a cross-link network, wherein the transaction request is used for indicating the relay link to audit the attribute information; and if the audit is passed, receiving the instruction fed back by the relay link, and executing the operation requirement associated with the identification information.
In a possible implementation manner of the first aspect, the attribute information includes a chain identifier to be registered of the block chain; the sending a transaction request to a relay link in a cross-link network based on the attribute information includes:
sending a registration request to a root relay chain in the cross-link network, wherein the registration request is used for indicating the root relay chain to check attribute information containing the chain identifier;
correspondingly, if the audit is passed, receiving the instruction fed back by the relay link, and executing the operation requirement associated with the identification information, including:
and if the audit is passed, receiving a synchronization instruction fed back by the root relay chain, and synchronizing the chain identifier to a chain identification table of the relay chain of the sub-network to which the block chain belongs.
In a possible implementation manner of the first aspect, the attribute information includes a chain information document of the block chain; the method further comprises the following steps:
and storing the link information document in a link, and sending a storage address of the link information document to the root relay link to indicate the root relay link to acquire the content of the link information document according to the storage address.
In a possible implementation manner of the first aspect, the attribute information includes update information; the sending a transaction request to a relay link in a cross-link network based on the attribute information includes:
sending an update request to a root relay chain in the inter-chain network, wherein the update request is used for indicating the root relay chain to check the update information;
correspondingly, if the audit is passed, receiving the instruction fed back by the relay link, and executing the operation requirement associated with the identification information, including:
and if the audit is passed, receiving an updating instruction fed back by the root relay link, and updating the stored link information document of the block link according to the updating information.
In a possible implementation manner of the first aspect, the method further includes:
receiving a chain identifier to be analyzed sent by a block chain; sending a resolution request to a relay chain in the cross-chain network based on the chain identifier to be resolved; if the link identifier table of the relay link does not include the link identifier to be analyzed, receiving an address of a superior relay link fed back by the relay link; if the link identifier table of the relay link contains the to-be-analyzed link identifier and the access requests received by the relay link reach a preset number, receiving the address of the subordinate relay link fed back by the relay link; retransmitting the analysis request to the superior relay link or the subordinate relay link according to the address of the superior relay link or the address of the subordinate relay link; receiving an analysis result fed back by the relay chain, or an analysis result fed back by the superior relay chain, or an analysis result fed back by the inferior relay chain; caching the analysis result to a chain identification cache table of a cross-chain gateway; and sending the analysis result to the block chain requesting analysis.
Illustratively, receiving a chain identifier to be resolved sent by a block chain; and if the chain identifier cache table contains the chain information corresponding to the to-be-analyzed chain identifier, sending the chain information to the block chain requesting to be analyzed.
In a possible implementation manner of the first aspect, the method further includes: sending an application request of a preset chain identifier to a root relay chain in the cross-chain network, wherein the application request is used for indicating the root relay chain to audit the preset chain identifier; and if the root relay chain is approved, receiving the information that the application fed back by the relay chain passes.
In a second aspect, an embodiment of the present application provides a method for managing a block chain identifier, where the method is applied to a relay chain, and the method includes: receiving a transaction request sent by a cross-chain gateway, wherein the transaction request is generated by the cross-chain gateway based on attribute information of a block chain, and the attribute information comprises identification information of the block chain; according to the transaction request, auditing the attribute information; and if the audit is passed, feeding back an instruction to the cross-link gateway, wherein the instruction is used for indicating the cross-link gateway to execute the operation requirement associated with the identification information.
In a possible implementation manner of the second aspect, if the relay link is a root relay link in the inter-link network, the receiving a transaction request sent by the inter-link gateway, and auditing the attribute information according to the transaction request includes:
receiving a registration request sent by the cross-chain gateway, wherein the registration request is generated by the cross-chain gateway based on attribute information containing a chain identifier to be registered; auditing attribute information containing the to-be-registered chain identifier;
correspondingly, if the audit is passed, feeding back an instruction to the inter-link gateway, including:
if the audit is passed, updating a chain identifier table and sending a synchronization instruction to the inter-chain gateway, wherein the synchronization instruction is used for instructing the inter-chain gateway to synchronize the chain identifier to a chain identifier table of a relay chain of a sub-network to which the block chain belongs; and/or
Receiving an update request sent by the cross-chain gateway, wherein the update request is generated by the cross-chain gateway based on the update information of the block chain; auditing the updating information;
correspondingly, if the audit is passed, feeding back an instruction to the inter-link gateway, including:
and if the verification is passed, updating the chain identification table and sending an updating instruction to the cross-chain gateway, wherein the updating instruction is used for indicating the cross-chain gateway to update the stored chain information document of the block chain according to the updating information.
In one possible implementation manner of the second aspect, the method further includes:
receiving an analysis request sent by the cross-chain gateway, wherein the analysis request is generated by the cross-chain gateway based on a chain identifier to be analyzed sent by a block chain; if the link identifier table of the relay link contains the to-be-analyzed link identifier, analyzing the to-be-analyzed link identifier to obtain an analysis result, and sending the analysis result to the inter-link gateway; if the link identifier table of the relay link contains the link identifier to be analyzed and the access requests received by the relay link reach a preset number, sending an address of a subordinate relay link to the inter-link gateway, wherein the address of the subordinate relay link is used for indicating the inter-link gateway to send the analysis request to the subordinate relay link; if the link identification table of the relay link does not contain the link identifier to be analyzed, an address of a superior relay link is sent to the cross-link gateway, and the address of the superior relay link is used for indicating the cross-link gateway to send the analysis request to the superior relay link.
In a possible implementation manner of the second aspect, if the relay link is a root relay link in the inter-link network, the method further includes:
receiving an application request of a preset chain identifier sent by the cross-chain gateway; auditing the preset chain identifier; if the audit is passed, recording the ownership of the preset chain identifier in a chain identification table, and sending information of passing the application to the cross-chain gateway.
In a third aspect, an embodiment of the present application provides a terminal device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the method when executing the computer program.
In a fourth aspect, the present application provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the computer program implements the method.
In a fifth aspect, the present application provides a computer program product, which when run on a terminal device, causes the terminal device to execute the method of any one of the first aspect or the second aspect.
It is understood that the beneficial effects of the second aspect to the fifth aspect can be referred to the related description of the first aspect, and are not described herein again.
Compared with the prior art, the embodiment of the application has the advantages that: according to the embodiment of the application, the terminal equipment of the cross-chain gateway node receives the attribute information sent by the block chain, wherein the attribute information comprises the identification information of the block chain; based on the attribute information, sending a transaction request to a relay link in a cross-link network, wherein the transaction request is used for indicating the relay link to audit the attribute information; if the audit is passed, receiving the instruction fed back by the relay link, and executing the operation requirement associated with the identification information; the management of the identity of the block chain in the whole cross-chain network can be realized in the intercommunication scene of the large-scale block chain, so that the identification information of the block chain is based on the relay chain, and the centralized risk is reduced; has strong usability and practicability.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a system architecture diagram of an application scenario provided in an embodiment of the present application;
fig. 2 is a flowchart illustrating a block chain identifier management method according to an embodiment of the present application;
fig. 3 is a flowchart illustrating a block chain identifier management method according to another embodiment of the present application;
fig. 4 is an interaction flow diagram of a block chain management method according to an embodiment of the present application;
fig. 5 is a schematic diagram illustrating a block chain identifier resolution process according to an embodiment of the present application;
FIG. 6 is a schematic structural diagram of a cross-chain gateway node provided by an embodiment of the present application;
fig. 7 is a schematic structural diagram of a relay link node according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a terminal device according to an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should also be understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to" determining "or" in response to detecting ". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
Furthermore, in the description of the present application and the appended claims, the terms "first," "second," "third," and the like are used for distinguishing between descriptions and not necessarily for describing or implying relative importance.
Reference throughout this specification to "one embodiment" or "some embodiments," or the like, means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," or the like, in various places throughout this specification are not necessarily all referring to the same embodiment, but rather "one or more but not all embodiments" unless specifically stated otherwise. The terms "comprising," "including," "having," and variations thereof mean "including, but not limited to," unless expressly specified otherwise.
With the development of blockchain cross-linking technology, a large cross-linking network connecting all cross-linking networks may include a plurality of sub cross-linking networks, and different sub cross-linking networks may be based on different cross-linking technologies, for example, a blockchain system connected by the technology of BitXHub may be one of the sub cross-linking networks. Each sub-cross-chain network may contain multiple smaller sub-networks.
At present, a general scheme adopted for a management method of a chain identifier of a block chain is to register an identity name to a relay chain through an application chain; when there are multiple relay chains in a cross-chain network, registration of different application chains with different relay chains may result in name duplication. Even if the identity of the block chain is generated by the relay chain, for example, a hash with a large number of bits or a random number with a large space, there is still a collision probability in theory, and the chain identifier has no specific meaning, and it is difficult to support the expansion of the cross-chain network, and the block chain self-selection identification cannot be realized.
The embodiment of the application provides a management method for a chain identifier of a blockchain defined based on a W3C DID specification format, which can ensure the uniqueness of the identity identifier of each blockchain aiming at the inside or outside of a sub-cross-chain network in a large cross-chain network, and make the structure of the blockchain identity identifier structured and expandable, thereby supporting the continuous increase of the scale of the cross-chain network and simultaneously realizing the access of heterogeneous application chains.
Referring to fig. 1, which is a schematic diagram of a system architecture of an application scenario provided in an embodiment of the present application, a large inter-chain network shown in fig. 1 may include multiple sub-inter-chain networks, such as a sub-inter-chain network 1, a sub-inter-chain network 2, and a sub-inter-chain network 3. In the sub-interlink network 1, B1, B2, B3 and B4 represent relay chains, C1, C2, C3 and C4 represent application chains, and P1, P2, P3, P4, P5, P6 and P7 represent interlink gateways. A cross-link gateway is a single node that connects two blockchains, passing cross-link messages for the two chains to which it is connected.
Wherein, P1 is used for connecting B1 and B2; p2 is used for connecting B1 and B3; p3 is used for connecting B2 and C1; p4 is used for connecting B2 and C2; p5 is used for connecting B3 and C3; p6 is used for connecting B3 and B4; p7 is used to connect B4 and C4.
In addition, the sub-inter-chain network 1 may include a hierarchical architecture, and may include a plurality of relay chains and inter-chain gateways. For example, B1 in the figure is a root relay chain in the network, B2 and B3 are second-layer relay chains, and B4 is a third-layer relay chain.
It should be noted that any two chains interact and communicate with each other, and a cross-chain gateway must be supported in the middle. Some low-level relay chains can be connected to the application chain to complete the verification and other functions of the cross-chain transaction of the application chain, so that the cross-chain transaction is realized; for example, the second layer of the trunk chain B2 and the application chains (C1, C2) to which it is connected form a smaller sub-network. Smaller sub-networks are connected to other smaller sub-networks by relaying through higher level relay chains such as B1. For example, sub-network B2 (a sub-network with relay chain B2 as the root relay chain) includes B2, C1, and C2; subnetwork B4 contains B4, C4; subnetwork B3 contains B3, C3, B4, and C4.
Illustratively, in order to realize the management of the chain identifier of the block chain, the relay chain, the application chain and the cross-chain gateway are provided with some sub-function modules. For example, the modules on the application chain and the relay chain include: a chain management module and a chain identification table. The chain management module is used for receiving various operation requests and carrying out corresponding processing; the chain identification table is used for recording the information and the state of the block chain identity. The cross-chain gateway comprises the following modules: the system comprises a storage engine, a message forwarding module and a chain identification cache table. And the storage engine is used for interacting with the down-link storage and storing the link information document. Therefore, the relay link can transfer the time-consuming operation of directly performing I/O read-write part with the down-link storage to the cross-link gateway for processing; the operation of reading and writing data in the identity storage network is transparent to the relay chain, so that the heterogeneous identity storage network can be supported. The message forwarding module is used for transferring cross-link messages between the application chains, between the relay chains and the application chains, and between the relay chains and the relay chains. The chain identification cache table is used for caching the chain information requested during partial analysis.
The chain management module of each relay chain processes requests sent by the blockchain through the cross-chain gateway. Furthermore, each relay chain stores a chain identification table, which records the chain identifier of the block chain known to itself, such as root relay chain B1 storing the identity information of all block chains (including relay chains and application chains) in the entire sub-inter-chain network 1. And the relay chain B2 of the second layer needs to store the identity information of the block chain in the network connected by itself, namely B2, C1 and C2.
The following further describes a method for managing a blockchain identity identifier in a cross-chain network through an embodiment, and refer to fig. 2, which is a schematic flowchart of a blockchain identity management provided in an embodiment of the present application, where an execution subject of the method is a terminal device deployed in a cross-chain gateway node in the cross-chain network. As shown in fig. 2, the method comprises the steps of:
step S201, receiving attribute information sent by a block chain, wherein the attribute information comprises identification information of the block chain;
in some embodiments, the blockchain may communicate to a relay chain or other blockchain through a cross-chain gateway that receives the attribute information sent by the blockchain. The attribute information may include a chain identifier, a belonging subnet, a chain identity information document, and the like. The sub-network is an identity of a root relay chain of the sub-network, for example, an identity of a root relay chain B2 in the sub-network to which the application chain C1 belongs in fig. 1. The identification information of the block chain may be a chain identifier of the block chain, which may be a registered chain identifier, a to-be-registered chain identifier, or a to-be-applied chain identifier. The terminal device of the cross-chain gateway node can receive the attribute information sent by the block chain and respond differently according to different attribute information.
The identification information or chain identifier may be an identifier with a specific format, such as an identifier set based on the W3C DID specification format, and have a uniform format structure, and different fields represent different meanings, such as the identifier "DID: bixthub1: appchain 001".
Step S202, based on the attribute information, a transaction request is sent to a relay link in a cross-link network, and the transaction request is used for indicating the relay link to audit the attribute information.
In some embodiments, the transaction request is a request associated with the identification information in the attribute information, and may include an application request of the chain identifier, a registration request of the chain identifier, an update request of the chain information, or a resolution request of the chain identifier.
For example, the cross-link gateway may store the attribute information of the blockchain, save the link information document of the blockchain, and provide the address of the stored link information document to the relay chain while sending the request to the relay chain.
When the terminal equipment of the cross-link gateway node sends a transaction request to the relay link, parameters such as a link identifier of the block link, a subnet to which the terminal equipment belongs, an address of a link information document or a hash value of content of the link information document are sent, and the relay link is instructed to audit the information.
It should be noted that the terminal device serving as the main body of the method may be a node that deploys any one of the inter-link gateways connected to the relay link.
Step S203, if the audit is passed, receiving the instruction fed back by the relay link, and executing the operation requirement associated with the identification information.
In some embodiments, if the relay link passes the examination of the attribute information of the block chain, the inter-link gateway receives a relay link feedback instruction; the command can include a synchronization command, and the inter-link gateway synchronizes the link identifier of the newly added blockchain according to the synchronization command and notifies other relay links of the inter-link network where the inter-link gateway is located; the instruction may also be an update instruction, and the inter-chain gateway updates the stored chain information of the block chain according to the update instruction, and the like. Therefore, the management of the incidence relation between the blockchain identification and the blockchain is realized.
In some embodiments, the attribute information comprises a chain identifier to be registered for the blockchain; based on the attribute information, sending a transaction request to a relay link in the cross-link network, including: and sending a registration request to a root relay chain in the cross-link network, wherein the registration request is used for indicating the root relay chain to audit the attribute information containing the chain identifier.
Correspondingly, if the audit is passed, receiving a relay link feedback instruction, and executing an operation requirement associated with the identification information, including: and if the audit is passed, receiving a synchronization instruction fed back by the root relay chain, and synchronizing the chain identifier to the chain identification table of the relay chain of the sub-network to which the block chain belongs.
In some embodiments, the chain identifier to be registered is a chain identifier for which the blockchain is used; the root relay chain in the inter-chain network is a root relay chain of a sub-inter-chain network to which the blockchain applying for registration belongs, for example, a root relay chain B1 in a sub-inter-chain network 1 to which a blockchain C1 belongs in fig. 1.
In the process of checking the relay link, the relay link may obtain document content according to an address of a link information document in the attribute information, hash the document content to obtain a hash value, compare the hash value with the hash value of the link document content sent by the terminal device of the cross-link gateway node, determine whether the hash value is consistent with the hash value, and if the hash value is consistent with the hash value, indicate that the checking is passed; voting decisions may also be made by various nodes deployed in the relay chain. It should be noted that the process of auditing is a process of verifying the identity of the block chain, and a specific auditing manner is not limited.
In addition, after the audit is passed, the chain identifier of the block chain is successfully registered, the terminal device of the cross-chain gateway node receives the synchronization instruction fed back by the root relay chain, and notifies other relay chains in the cross-chain network of the association relationship between the block chain and the chain identifier. The relay chain of the sub-network to which the blockchain belongs is a sub-network of a smaller unit in the sub-inter-chain network to which the blockchain belongs, for example, in fig. 1, the sub-inter-chain network to which the application chain C1 belongs is a smaller sub-network with the relay chain B2 as a root relay chain.
In some embodiments, the attribute information includes a chain information document of the blockchain; the method further comprises the following steps: and storing the link information document under the link, and sending the storage address of the link information document to the root relay link to instruct the root relay link to acquire the content of the link information document according to the storage address.
Illustratively, the cross-link gateway acquires information such as a link information document composed of information of the blockchain C1, a link identifier, and a subnet to which the registered link belongs (i.e., an identifier of a relay link at the root of the subnet), and the cross-link gateway is any gateway connected to the relay link B1, for example, the cross-link gateway P1 or P2. And the cross-chain gateway stores the chain information document under the chain. The cross-chain gateway then initiates a registration request to root relay chain B1, providing: the chain identifier, the subnet to which the registered chain belongs (i.e. the identity of the subnet root relay chain), the storage address of the chain information document, the hash value of the chain information document content, and other parameters. And the root relay chain B1 acquires the content of the link information document according to the address of the link information document, performs hash operation on the content of the link information document, compares the hash operation with the hash value of the received content of the link information document, and verifies the identifier registration request. If the audit is passed, root relay chain B1 updates its own chain identification table, and completes association and update of the blockchain and its identifier, chain information document, and the like. Meanwhile, the root relay chain B1 synchronizes the chain identification table to the lower level relay chain (e.g., B2, B3) through the inter-chain gateway, and the lower level relay chain updates the entry of the identifier of the blockchain in the sub-network rooted at itself. Such as C1 successful id registration, C1 is in network B2, so the relay chain B2 needs to update its chain id table. If the C1 is not in the B2 network but in the B4 network, all the relay chains from the root relay chain B1 to C1 synchronize the newly added entries, i.e., update the chain identification tables of B3 and B4.
In some embodiments, the attribute information includes update information; based on the attribute information, sending a transaction request to a relay link in the cross-link network, including: and sending an update request to a root relay chain in the cross-link network, wherein the update request is used for indicating the root relay chain to check the update information.
Correspondingly, if the audit is passed, receiving a relay link feedback instruction, and executing an operation requirement associated with the identification information, including: and if the audit is passed, receiving an updating instruction fed back by the root relay link, and updating the stored chain information document of the block chain according to the updating information.
In some embodiments, when the information of the blockchain is updated, an update request needs to be initiated to a root relay chain of the inter-chain network where the blockchain is located. The update information includes an address of the chain information document or a hash value of the content of the chain information document, or the like. The root relay chain in the inter-chain network is a root relay chain of a sub-inter-chain network to which the blockchain applying for updating belongs, for example, a root relay chain B1 in a sub-inter-chain network 1 to which a blockchain C1 belongs in fig. 1.
In the process of checking the relay link, the relay link may obtain document content according to an address of a link information document in the attribute information, hash the document content to obtain a hash value, compare the hash value with the hash value of the link document content sent by the terminal device of the cross-link gateway node, determine whether the hash value is consistent with the hash value, and if the hash value is consistent with the hash value, indicate that the checking is passed; voting decisions may also be made by various nodes deployed in the relay chain. It should be noted that the process of auditing is a process of verifying the identity of the block chain, and a specific auditing manner is not limited.
In addition, after the audit is passed, the information of the block chain is updated successfully, the terminal device of the cross-chain gateway node receives the update instruction fed back by the root relay chain, and updates the stored chain information document of the block chain according to the update information, including notifying other relay chains in the cross-chain network, updating the chain information document associated with the chain identifier in the table entry of the chain identification table, and the like. The relay chain of the sub-network to which the blockchain belongs is a sub-network of a smaller unit in the sub-inter-chain network to which the blockchain belongs, for example, in fig. 1, the sub-inter-chain network to which the application chain C1 belongs is a smaller sub-network with the relay chain B2 as a root relay chain.
Illustratively, the cross-link gateway acquires updated information such as a link information document newly formed by information of the blockchain C1, a link identifier, a subnet to which the updated link belongs (i.e. an identity of a relay link at the root of the subnet), and the like, and the cross-link gateway is any one of gateways connected with the relay link B1, for example, the cross-link gateway P1 or P2. And the cross-chain gateway stores the chain information document under the chain. The cross-chain gateway then initiates an update request to root relay chain B1, providing: the chain identifier, the subnet to which the updated chain belongs (i.e. the identity of the subnet root relay chain), the storage address of the chain information document, the hash value of the chain information document content, and other parameters. And the root relay chain B1 acquires the content of the link information document according to the address of the link information document, performs hash operation on the content of the link information document, compares the hash operation with the hash value of the received content of the link information document, and verifies the update request. If the audit is passed, root relay chain B1 updates its own chain identifier table, and completes updating the block chain of the chain identifier, the chain information document, and the like. Meanwhile, the root relay chain B1 notifies the chain identification table to the low-level relay chains (e.g., B2, B3) through the inter-chain gateway to update the information, and the low-level relay chains update the entries of the identifiers of the blockchains in the sub-networks rooted by the low-level relay chains. Such as C1 successful id registration, C1 is in network B2, so the relay chain B2 needs to update its chain id table. If C1 is not in B2 network, but in B4 network, all relay chains from root relay chain B1 to C1 update the chain information of corresponding entry, i.e. update the chain information of the chain indication table of B3, B4.
It should be noted that, in order to ensure that the block chain uniquely corresponds to the chain identifier, the update information of the block chain can only modify information other than the chain identifier, such as the address of the chain information document or the hash value of the content of the chain information document.
In some embodiments, the method further comprises: sending an application request of a preset chain identifier to a root relay chain in a cross-chain network, wherein the application request is used for indicating the root relay chain to audit the preset chain identifier; and if the root relay chain is approved, receiving the information of passing the application fed back by the relay chain.
In some embodiments, a user agent terminal or a terminal device of a blockchain node sends a preset identifier with a specific format to a cross-chain gateway, and the cross-chain gateway initiates an application request to a root relay chain in a cross-chain network; the root relay chain checks the identified application request, voting can be carried out through each node in the root relay chain in the checking process, and if the identifier is not applied by the block chain or the user known by each node, the checking is passed; the audit can also be performed by other means. If the audit is passed, the root relay link B1 records in the link id table that the applicant has taken ownership of the blockchain id; if the audit is not passed, the identifier still does not belong to any entity.
Illustratively, the applied chain identifier may be an identifier field set based on the W3C DID specification format, for example, the identifier of the preset specific format is DID: bixthub1: appchain 001.
In some embodiments, the method further comprises: receiving a chain identifier to be analyzed sent by a block chain by a cross-chain gateway; based on the chain identifier to be analyzed, the cross-chain gateway sends an analysis request to a relay chain in the cross-chain network; if the link identifier table of the relay link does not include the link identifier to be analyzed, the cross-link gateway receives the address of the superior relay link fed back by the relay link; if the link identifier table of the relay link contains the link identifier to be analyzed and the access requests received by the relay link reach the preset number, the cross-link gateway receives the address of the lower-level relay link fed back by the relay link; according to the address of the superior relay chain or the address of the inferior relay chain, the cross-chain gateway sends the analysis request to the superior relay chain or the inferior relay chain again; the cross-link gateway receives an analysis result fed back by the relay link, or an analysis result fed back by a superior relay link, or an analysis result fed back by a subordinate relay link; the cross-link gateway caches the analysis result to a link identification cache table of the cross-link gateway; and sending the analysis result to the block chain requesting the analysis.
In some embodiments, the blockchain may initiate an identity resolution request to any relay chain in the inter-chain network through the inter-chain gateway, and the feedback received by the inter-chain gateway includes three cases:
(1) if the link identification table of the requested relay link does not have the identifier table entry, the address of the upper relay link is returned.
(2) The link identification table of the requested relay link has the identifier table entry, but the relay link needs too many requests currently to process, and in order to improve the response speed of the whole system, the address of another relay link (generally, a lower-level relay link of the relay link) is returned at this time; for example: the root trunk chain B1 needs to handle too many requests and may return the address of B2 when it handles the identifier resolution request of C2, letting B2 share some of the load on its behalf.
(3) And if the link identification table of the requested relay link has the identifier table entry and the current requests needing to be processed by the relay link are not more, checking the table and returning an analysis result.
It should be noted that the cross-link gateway that passes through when the resolution result is returned by the relay link will cache the link information of the entry. And if the address of the other relay link is returned by the relay link, the cross-link gateway initiates the resolution request of the identity identifier to the new relay link address again.
In addition, if the identifier entry exists in a certain cross-link gateway which forwards the analysis request, the result is directly returned. And the cross-link gateway can directly store and acquire the information document under the link according to the link information document address and the information document hash in the table entry. And then, the hashed information is compared with the hashed information of the information documents returned on the chain, and then the document content and the comparison result are returned (if the hashed information does not accord with the hashed information, the document content is falsified).
Note that the root relay chain B1 has only one sub inter-chain network 1. As long as the application chain in the sub-inter-chain network 1 is available, the application, registration and update requests are only authorized to be processed by the root relay chain B1. The consistency of the identifiers is ensured, and no conflict exists.
Illustratively, the chain information document may be in JSON format, or may be in other formats such as JSON-LD, YAML, TOML, XML, with information associated with the chain stored therein, for example:
{
id, did, bitxhub, appchain 001; // identity identifier definition;
type: appchain; // blockchain type definition;
"admins" [. multidot. ]; // default user name definition, etc.;
...
}
the same principle as the implementation process described in the foregoing embodiment, another embodiment of the present application provides a method for managing a block chain identifier, where an implementation subject of the method is a terminal device of a relay chain node in a cross-chain network and an implementation process of a relay chain, and in the foregoing embodiment, a description has been given corresponding to the implementation process of a cross-chain gateway, and details are not repeated here based on the same implementation principle. As shown in fig. 3, the implementation flow of the method includes:
step S301, the relay link receives a transaction request sent by the cross-link gateway, wherein the transaction request is generated by the cross-link gateway based on the attribute information of the block link, and the attribute information includes the identification information of the block link.
And step S302, the relay link audits the attribute information according to the transaction request.
Step S303, if the audit is passed, the relay link feeds back an instruction to the inter-link gateway, where the instruction is used to instruct the inter-link gateway to execute an operation requirement associated with the identification information.
In some embodiments, if the relay link is a root relay link in a cross-link network, the relay link receives a transaction request sent by a cross-link gateway, and the relay link performs auditing on attribute information according to the transaction request, including: a root relay chain receives a registration request sent by a cross-chain gateway, wherein the registration request is generated by the cross-chain gateway based on attribute information containing a chain identifier to be registered; and the root relay chain audits the attribute information containing the chain identifier to be registered.
Correspondingly, if the audit is passed, the relay link feeds back an instruction to the inter-link gateway, including: and if the audit is passed, updating the chain identification table by the root relay chain and sending a synchronization instruction to the cross-chain gateway, wherein the synchronization instruction is used for indicating the cross-chain gateway to synchronize the chain identifier to the chain identification table of the relay chain of the sub-network to which the block chain belongs.
In some embodiments, if the relay link is a root relay link in a cross-link network, the relay link receives a transaction request sent by a cross-link gateway, and performs auditing on attribute information according to the transaction request, further including: the method comprises the steps that a root relay chain receives an updating request sent by a cross-chain gateway, wherein the updating request is generated by the cross-chain gateway based on updating information of a block chain; and the root relay chain audits the updated information.
Correspondingly, if the audit is passed, the relay link feeds back an instruction to the inter-link gateway, including: and if the verification is passed, updating the chain identification table by the root relay chain and sending an updating instruction to the cross-chain gateway, wherein the updating instruction is used for indicating the cross-chain gateway to update the stored chain information document of the block chain according to the updating information.
In some embodiments, the method further comprises: the relay chain receives an analysis request sent by the cross-chain gateway, wherein the analysis request is generated by the cross-chain gateway based on a chain identifier to be analyzed sent by the block chain; and if the link identification table of the relay link contains the link identifier to be analyzed, the relay link analyzes the link identifier to be analyzed to obtain an analysis result, and the relay link sends the analysis result to the cross-link gateway. And if the link identification table of the relay link contains the to-be-analyzed link identifiers and the access requests received by the relay link reach the preset number, the relay link sends an address of a subordinate relay link to the cross-link gateway, wherein the address of the subordinate relay link is used for indicating the cross-link gateway to send the analysis request to the subordinate relay link. And if the link identification table of the relay link does not contain the link identifier to be analyzed, the relay link sends the address of the superior relay link to the cross-link gateway, and the address of the superior relay link is used for indicating the cross-link gateway to send an analysis request to the superior relay link.
In some embodiments, if the relay chain is a root relay chain in a cross-chain network, the method further comprises: a root relay chain in the sub-interlinkage network 1 receives an application request of a preset chain identifier sent by an interlinkage gateway; auditing a preset chain identifier; if the audit is passed, recording the ownership of the preset chain identifier in the chain identification table of the gateway, and sending the information of passing the application to the cross-chain gateway.
Note that the root relay chain B1 has only one sub inter-chain network 1. As long as the application chain in the sub-inter-chain network 1 is available, the application request, the registration request, and the update request are all authorized to be processed by the root relay chain B1. The consistency of the identifiers is ensured, and no conflict exists.
As shown in fig. 4, an interaction flow diagram of the block chain management method according to an embodiment of the present application includes an application phase of a chain identifier, a registration phase, and an update phase of chain information. As shown in fig. 4, the interaction process of each phase is exemplarily illustrated, and in the application phase, the interaction process includes:
1. a block chain or a user agent node or an application sends a preset chain identifier to a cross-chain gateway;
2. the cross-link gateway sends an application request to a root relay link B1;
3. the root relay chain B1 audits the preset chain identifier;
4. if the verification is passed, recording the ownership of the block chain identifier acquired by the applicant in a chain identifier table of the root relay chain B1;
5. if the audit is passed, the root relay chain B1 sends the information that the audit is passed to the inter-chain gateway;
6. and the cross-chain gateway informs the ownership of the preset chain identifier.
The registration phase comprises the following steps:
1. the block chain or the user agent node sends attribute information containing a chain identifier to be registered to a cross-chain gateway;
2. the cross-link gateway stores the attribute information in a link-down mode and sends a registration request to a root relay link B1;
3. the root relay chain B1 checks the attribute information containing the chain identifier to be registered;
4. if the audit is passed, updating the chain identifier in the chain identification table of the root relay chain B1;
5. the root relay chain B1 sends a synchronization instruction to the cross-chain gateway;
6. the cross-link gateway synchronizes the newly added link identifier to the relay link B2 of the sub-network to which the blockchain belongs;
7. relay chain B2 updates the chain identification table.
The updating phase comprises the following steps:
1. the block chain or the user agent node sends attribute information containing update information to the cross-chain gateway;
2. the cross-link gateway stores the attribute information in a link-down mode and sends an updating request to a root relay link B1;
3. the root relay chain B1 checks the attribute information containing the updated information;
4. if the audit is passed, updating the chain identifier in the chain identification table of the root relay chain B1;
5. the root relay chain B1 sends an update instruction to the cross-chain gateway;
6. the cross-link gateway updates the updated chain information of the block chain to a relay chain B2 of the sub-network to which the block chain belongs;
7. relay chain B2 updates the chain identification table.
As shown in fig. 5, an interaction flow diagram of an analysis process is provided in an embodiment of the present application, and the interaction process is the same as the implementation principle of the foregoing embodiment, and is not described herein again. As shown in fig. 5, the implementation flow of the parsing process includes:
1. the block chain sends a chain identifier to be analyzed to a cross-chain gateway;
2. the cross-link gateway sends an analysis request to a relay link B3 in the cross-link network;
3. if the chain identifier table of the relay chain B3 contains the to-be-analyzed chain identifier and the received access request number is within a preset number range, the relay chain B3 analyzes the to-be-analyzed chain identifier to obtain an analysis result;
4. returning the analysis result of the relay chain B3 to the cross-chain gateway;
5. if the chain identifier table of the relay chain B3 does not contain the chain identifier to be analyzed, the relay chain B3 sends the address of the superior relay chain B1 to the inter-chain gateway;
6. the cross-link gateway sends an analysis request to a superior relay link B1;
7. the superior relay chain B1 analyzes the chain identifier to be analyzed to obtain an analysis result;
8. returning the analysis result of the superior relay chain B1 to the cross-chain gateway;
9. if the chain identification table of the relay chain B3 contains the chain identifier to be analyzed and the received access request number exceeds the preset number range, sending the address of a lower relay chain B4 to a cross-chain gateway;
for example, if the chain identifier to be resolved exists in the sub-network corresponding to B4, the relay chain B3 transmits the address of the lower relay chain B4 to the inter-chain gateway, and if the chain identifier to be resolved exists in the relay chain of another sub-network, the relay chain B3 transmits the address of the relay chain of another sub-network to the inter-chain gateway.
10. The cross-chain gateway sends an analysis request to a lower relay chain B4;
for example, if the chain identifier to be analyzed exists in the sub-network corresponding to B4, the analysis request is transmitted to the lower relay chain B4 of the relay chain B3, and if the chain identifier to be analyzed exists in the relay chain of another sub-network, the analysis request is transmitted to the relay chain of the corresponding other sub-network.
11. The lower relay chain B4 analyzes the chain identifier to be analyzed to obtain an analysis result;
12. returning the analysis result of the lower relay chain B4 to the cross-chain gateway;
13. after receiving the analysis result, the cross-chain gateway stores the analysis result and sends the analysis result to the block chain;
14. after receiving the chain identifier to be analyzed, the cross-chain gateway sends corresponding chain information to the block chain if the chain identifier cache table of the cross-chain gateway contains the chain information of the chain identifier to be analyzed.
In the sub inter-chain network 1, any two inter-chain gateways may directly communicate with each other.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
By the embodiment of the invention, the chain identifier can support self definition (on the premise of acquiring the ownership of the identifier); the chain identifiers are unified and structured; the chain identification is extensible, and the unique characteristic of the identity identification can be still kept when a new chain is added into a network; the whole identification system is based on each relay chain, so that the centralization risk (such as downtime risk) is greatly reduced; the network structure is flexible, a cross-chain gateway is a single node and is used for transmitting cross-chain information between two chains connected with the cross-chain gateway, and the cross-chain gateway can be flexibly deployed according to needs; on one hand, the I/O operation of document storage is time-consuming, and the workload of a user agent and a block chain can be saved after the task is handed to a cross-chain gateway.
In addition, the identity storage is transparent to the relay chain, so that heterogeneous multiple types of identity storage networks can be supported, such as decentralized storage (e.g., IPFS, BitXMesh, Swarm, and the like), centralized servers, cloud storage, and even multiple use of multiple types of identity storage networks by the whole system. If the identity storage network is upgraded or a new identity storage network is used, only the interface of the cross-chain gateway for accessing the identity storage network part needs to be upgraded, and the interface between the relay chain and the cross-chain gateway does not need to be modified, so that the block chain does not need to be upgraded and modified. The cache mechanism of the cross-chain gateway can accelerate the response of the request, and the cross-chain gateway caches the analyzed chain identification table item, so that the workload of analyzing the request can be reduced, and the overall response speed of the system is improved.
Corresponding to the management method of blockchain identifiers described in the above embodiments, fig. 6 shows a structural block diagram of a cross-chain gateway node provided in the embodiments of the present application, and for convenience of explanation, only the relevant parts of the embodiments of the present application are shown.
Referring to fig. 6, the cross-chain gateway node includes:
a receiving unit 61, configured to receive attribute information sent by a block chain, where the attribute information includes identification information of the block chain;
a forwarding unit 62, configured to send a transaction request to a relay link in a cross-link network based on the attribute information, where the transaction request is used to instruct the relay link to audit the attribute information;
and the processing unit 63 is configured to receive the instruction fed back by the relay link and execute the operation requirement associated with the identification information if the audit is passed.
Fig. 7 shows a block diagram of a relay link node provided in an embodiment of the present application, and only shows a part related to the embodiment of the present application for convenience of description.
Referring to fig. 7, the relay link point includes:
a receiving unit 71, configured to receive a transaction request sent by a cross-chain gateway, where the transaction request is generated by the cross-chain gateway based on attribute information of a block chain, and the attribute information includes identification information of the block chain;
the management unit 72 is configured to audit the attribute information according to the transaction request;
a sending unit 73, configured to feed back an instruction to the inter-link gateway if the audit is passed, where the instruction is used to instruct the inter-link gateway to execute an operation requirement associated with the identification information.
According to the embodiment of the application, the terminal equipment of the cross-chain gateway node receives the attribute information sent by the block chain, wherein the attribute information comprises the identification information of the block chain; based on the attribute information, sending a transaction request to a relay link in a cross-link network, wherein the transaction request is used for indicating the relay link to audit the attribute information; if the audit is passed, receiving the instruction fed back by the relay link, and executing the operation requirement associated with the identification information; the management of the identity of the block chain in the whole cross-chain network can be realized in the intercommunication scene of the large-scale block chain, so that the identification information of the block chain is based on the relay chain, and the centralized risk is reduced; has strong usability and practicability.
It should be noted that, for the information interaction, execution process, and other contents between the above-mentioned devices/units, the specific functions and technical effects thereof are based on the same concept as those of the embodiment of the method of the present application, and specific reference may be made to the part of the embodiment of the method, which is not described herein again.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the computer program implements the steps in the above-mentioned method embodiments.
The embodiments of the present application provide a computer program product, which when running on a mobile terminal, enables the mobile terminal to implement the steps in the above method embodiments when executed.
Fig. 8 is a schematic structural diagram of a terminal device 8 according to an embodiment of the present application. As shown in fig. 8, the terminal device 8 of this embodiment includes: at least one processor 80 (only one shown in fig. 8), a memory 81, and a computer program 82 stored in the memory 81 and operable on the at least one processor 80, the processor 80 implementing the steps in any of the various authentication method embodiments described above when executing the computer program 82.
The terminal device 8 may be a desktop computer, a notebook, a palm computer, a cloud server, or other computing devices. The terminal device 8 may include, but is not limited to, a processor 80, a memory 81. Those skilled in the art will appreciate that fig. 8 is merely an example of the terminal device 8, and does not constitute a limitation of the terminal device 8, and may include more or less components than those shown, or combine some components, or different components, such as an input-output device, a network access device, and the like.
The Processor 80 may be a Central Processing Unit (CPU), and the Processor 80 may be other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 81 may in some embodiments be an internal storage unit of the terminal device 8, such as a hard disk or a memory of the terminal device 8. In other embodiments, the memory 81 may also be an external storage device of the terminal device 8, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are provided on the terminal device 8. Further, the memory 81 may also include both an internal storage unit and an external storage device of the terminal device 8. The memory 81 is used for storing an operating system, an application program, a BootLoader (BootLoader), data, and other programs, such as program codes of the computer program. The memory 81 may also be used to temporarily store data that has been output or is to be output.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, all or part of the processes in the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium and can implement the steps of the embodiments of the methods described above when the computer program is executed by a processor. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer readable medium may include at least: any entity or device capable of carrying computer program code to a photographing apparatus/terminal apparatus, a recording medium, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), an electrical carrier signal, a telecommunications signal, and a software distribution medium. Such as a usb-disk, a removable hard disk, a magnetic or optical disk, etc. In certain jurisdictions, computer-readable media may not be an electrical carrier signal or a telecommunications signal in accordance with legislative and patent practice.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/network device and method may be implemented in other ways. For example, the above-described apparatus/network device embodiments are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implementing, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (12)

1. A method for managing blockchain identifiers is applied to a cross-chain gateway, and comprises the following steps:
receiving attribute information sent by a block chain, wherein the attribute information comprises identification information of the block chain;
based on the attribute information, sending a transaction request to a relay link in a cross-link network, wherein the transaction request is used for indicating the relay link to audit the attribute information;
and if the audit is passed, receiving the instruction fed back by the relay link, and executing the operation requirement associated with the identification information.
2. The method of claim 1, wherein the attribute information includes a chain identifier of the block chain to be registered;
the sending a transaction request to a relay link in a cross-link network based on the attribute information includes:
sending a registration request to a root relay chain in the cross-link network, wherein the registration request is used for indicating the root relay chain to check attribute information containing the chain identifier;
correspondingly, if the audit is passed, receiving the instruction fed back by the relay link, and executing the operation requirement associated with the identification information, including:
and if the audit is passed, receiving a synchronization instruction fed back by the root relay chain, and synchronizing the chain identifier to a chain identification table of the relay chain of the sub-network to which the block chain belongs.
3. The method of claim 2, wherein the attribute information comprises a chain information document of the blockchain; the method further comprises the following steps:
and storing the link information document in a link, and sending a storage address of the link information document to the root relay link to indicate the root relay link to acquire the content of the link information document according to the storage address.
4. The method of claim 1, wherein the attribute information includes update information;
the sending a transaction request to a relay link in a cross-link network based on the attribute information includes:
sending an update request to a root relay chain in the inter-chain network, wherein the update request is used for indicating the root relay chain to check the update information;
correspondingly, if the audit is passed, receiving the instruction fed back by the relay link, and executing the operation requirement associated with the identification information, including:
and if the audit is passed, receiving an updating instruction fed back by the root relay link, and updating the stored link information document of the block link according to the updating information.
5. The method of claim 1, wherein the method further comprises:
receiving a chain identifier to be analyzed sent by a block chain;
sending a resolution request to a relay chain in the cross-chain network based on the chain identifier to be resolved;
if the link identifier table of the relay link does not include the link identifier to be analyzed, receiving an address of a superior relay link fed back by the relay link;
if the link identifier table of the relay link contains the to-be-analyzed link identifier and the access requests received by the relay link reach a preset number, receiving the address of the subordinate relay link fed back by the relay link;
retransmitting the analysis request to the superior relay link or the subordinate relay link according to the address of the superior relay link or the address of the subordinate relay link;
receiving an analysis result fed back by the relay chain, or an analysis result fed back by the superior relay chain, or an analysis result fed back by the inferior relay chain; caching the analysis result to a chain identification cache table of a cross-chain gateway;
and sending the analysis result to the block chain requesting analysis.
6. The method of claim 1, wherein the method further comprises:
sending an application request of a preset chain identifier to a root relay chain in the cross-chain network, wherein the application request is used for indicating the root relay chain to audit the preset chain identifier;
and if the root relay chain is approved, receiving the information that the application fed back by the relay chain passes.
7. A method for managing block chain identifiers, the method being applied to a relay chain, the method comprising:
receiving a transaction request sent by a cross-chain gateway, wherein the transaction request is generated by the cross-chain gateway based on attribute information of a block chain, and the attribute information comprises identification information of the block chain;
according to the transaction request, auditing the attribute information;
and if the audit is passed, feeding back an instruction to the cross-link gateway, wherein the instruction is used for indicating the cross-link gateway to execute the operation requirement associated with the identification information.
8. The method of claim 7, wherein if the relay link is a root relay link in a cross-link network, the receiving a transaction request sent by a cross-link gateway, and auditing the attribute information according to the transaction request includes:
receiving a registration request sent by the cross-chain gateway, wherein the registration request is generated by the cross-chain gateway based on attribute information containing a chain identifier to be registered;
auditing attribute information containing the to-be-registered chain identifier;
correspondingly, if the audit is passed, feeding back an instruction to the inter-link gateway, including:
if the audit is passed, updating a chain identifier table and sending a synchronization instruction to the inter-chain gateway, wherein the synchronization instruction is used for instructing the inter-chain gateway to synchronize the chain identifier to a chain identifier table of a relay chain of a sub-network to which the block chain belongs; and/or;
receiving an update request sent by the cross-chain gateway, wherein the update request is generated by the cross-chain gateway based on the update information of the block chain;
auditing the updating information;
correspondingly, if the audit is passed, feeding back an instruction to the inter-link gateway, including:
and if the verification is passed, updating the chain identification table and sending an updating instruction to the cross-chain gateway, wherein the updating instruction is used for indicating the cross-chain gateway to update the stored chain information document of the block chain according to the updating information.
9. The method of claim 7, wherein the method further comprises:
receiving an analysis request sent by the cross-chain gateway, wherein the analysis request is generated by the cross-chain gateway based on a chain identifier to be analyzed sent by a block chain;
if the link identifier table of the relay link contains the to-be-analyzed link identifier, analyzing the to-be-analyzed link identifier to obtain an analysis result, and sending the analysis result to the inter-link gateway;
if the link identifier table of the relay link contains the link identifier to be analyzed and the access requests received by the relay link reach a preset number, sending an address of a subordinate relay link to the inter-link gateway, wherein the address of the subordinate relay link is used for indicating the inter-link gateway to send the analysis request to the subordinate relay link;
if the link identification table of the relay link does not contain the link identifier to be analyzed, an address of a superior relay link is sent to the cross-link gateway, and the address of the superior relay link is used for indicating the cross-link gateway to send the analysis request to the superior relay link.
10. The method of claim 7, wherein if the relay chain is a root relay chain in a cross-chain network, the method further comprises:
receiving an application request of a preset chain identifier sent by the cross-chain gateway;
auditing the preset chain identifier;
if the audit is passed, recording the ownership of the preset chain identifier in a chain identification table, and sending information of passing the application to the cross-chain gateway.
11. A terminal device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the method according to any of claims 1 to 6 or 7 to 10 when executing the computer program.
12. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1 to 6 or claims 7 to 10.
CN202011609697.4A 2020-12-30 2020-12-30 Block chain identification management method, terminal equipment and computer readable storage medium Active CN112667601B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011609697.4A CN112667601B (en) 2020-12-30 2020-12-30 Block chain identification management method, terminal equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011609697.4A CN112667601B (en) 2020-12-30 2020-12-30 Block chain identification management method, terminal equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN112667601A true CN112667601A (en) 2021-04-16
CN112667601B CN112667601B (en) 2023-06-20

Family

ID=75411064

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011609697.4A Active CN112667601B (en) 2020-12-30 2020-12-30 Block chain identification management method, terminal equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN112667601B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113259461A (en) * 2021-06-02 2021-08-13 支付宝(杭州)信息技术有限公司 Cross-chain interaction method and block chain system
CN115189965A (en) * 2022-09-06 2022-10-14 浙江数秦科技有限公司 Cross-chain management system and cross-chain operation method of block chain
WO2023124302A1 (en) * 2021-12-31 2023-07-06 杭州趣链科技有限公司 Data processing method and apparatus, terminal device and storage medium

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180227119A1 (en) * 2017-02-09 2018-08-09 International Business Machines Corporation Managing a database management system using a blockchain database
AU2017222468A1 (en) * 2016-02-23 2018-08-30 nChain Holdings Limited Agent-based turing complete transactions integrating feedback within a blockchain system
CN109635165A (en) * 2018-12-06 2019-04-16 北京磁云数字科技有限公司 Data summarization method, device, equipment and medium based on tree-like block chain network
CN110264206A (en) * 2019-06-24 2019-09-20 北京艾摩瑞策科技有限公司 A kind of electric quotient data cochain method and its equipment based on block chain
CN110766408A (en) * 2019-10-24 2020-02-07 杭州趣链科技有限公司 Cross-chain transaction verification method, engine, equipment and storage medium for heterogeneous block chain
CN110941611A (en) * 2019-11-06 2020-03-31 四川长虹电器股份有限公司 Identification analysis system implementation method based on block chain technology and identification coding technology
AU2018347193B2 (en) * 2018-11-16 2020-05-14 Advanced New Technologies Co., Ltd. Cross-chain interactions using a domain name scheme in blockchain systems
CN111353175A (en) * 2020-05-22 2020-06-30 腾讯科技(深圳)有限公司 Data processing method, device, equipment, block chain system and storage medium
US20200278958A1 (en) * 2019-03-01 2020-09-03 Wanchain Ltd. System and method for universal blockchain interoperability
CN111769957A (en) * 2020-09-02 2020-10-13 百度在线网络技术(北京)有限公司 Block chain cross-chain query method, device, equipment and storage medium
CN111935318A (en) * 2020-09-28 2020-11-13 北京百度网讯科技有限公司 Cross-link data verification method, device, equipment and medium

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
AU2017222468A1 (en) * 2016-02-23 2018-08-30 nChain Holdings Limited Agent-based turing complete transactions integrating feedback within a blockchain system
US20180227119A1 (en) * 2017-02-09 2018-08-09 International Business Machines Corporation Managing a database management system using a blockchain database
AU2018347193B2 (en) * 2018-11-16 2020-05-14 Advanced New Technologies Co., Ltd. Cross-chain interactions using a domain name scheme in blockchain systems
CN109635165A (en) * 2018-12-06 2019-04-16 北京磁云数字科技有限公司 Data summarization method, device, equipment and medium based on tree-like block chain network
US20200278958A1 (en) * 2019-03-01 2020-09-03 Wanchain Ltd. System and method for universal blockchain interoperability
CN110264206A (en) * 2019-06-24 2019-09-20 北京艾摩瑞策科技有限公司 A kind of electric quotient data cochain method and its equipment based on block chain
CN110766408A (en) * 2019-10-24 2020-02-07 杭州趣链科技有限公司 Cross-chain transaction verification method, engine, equipment and storage medium for heterogeneous block chain
CN110941611A (en) * 2019-11-06 2020-03-31 四川长虹电器股份有限公司 Identification analysis system implementation method based on block chain technology and identification coding technology
CN111353175A (en) * 2020-05-22 2020-06-30 腾讯科技(深圳)有限公司 Data processing method, device, equipment, block chain system and storage medium
CN111769957A (en) * 2020-09-02 2020-10-13 百度在线网络技术(北京)有限公司 Block chain cross-chain query method, device, equipment and storage medium
CN111935318A (en) * 2020-09-28 2020-11-13 北京百度网讯科技有限公司 Cross-link data verification method, device, equipment and medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113259461A (en) * 2021-06-02 2021-08-13 支付宝(杭州)信息技术有限公司 Cross-chain interaction method and block chain system
CN113259461B (en) * 2021-06-02 2021-09-28 支付宝(杭州)信息技术有限公司 Cross-chain interaction method and block chain system
WO2023124302A1 (en) * 2021-12-31 2023-07-06 杭州趣链科技有限公司 Data processing method and apparatus, terminal device and storage medium
CN115189965A (en) * 2022-09-06 2022-10-14 浙江数秦科技有限公司 Cross-chain management system and cross-chain operation method of block chain

Also Published As

Publication number Publication date
CN112667601B (en) 2023-06-20

Similar Documents

Publication Publication Date Title
CN112667601B (en) Block chain identification management method, terminal equipment and computer readable storage medium
US7243142B2 (en) Distributed computer system enhancing a protocol service to a highly available service
CN103209223A (en) Distributed application conversation information sharing method and system and application server
CN111277592B (en) Authentication method, authentication device, storage medium and computer equipment
CN109104368B (en) Connection request method, device, server and computer readable storage medium
CN112565334B (en) Access method and device of Internet of things equipment and MQTT gateway
WO2021136233A1 (en) Service upgrading method, device and system
US20230102617A1 (en) Repeat transaction verification method, apparatus, and device, and medium
CN115168162B (en) Multi-gray-scale issuing method and device based on ingess controller in container environment and storage medium
US20230359628A1 (en) Blockchain-based data processing method and apparatus, device, and storage medium
EP4357950A1 (en) Device management method, system and apparatus
CN110012111B (en) Data service cluster system and data processing method
CN114125812A (en) Data synchronization method, device, server and storage medium
CN113542022A (en) Networking management method and device of networking system, terminal equipment and storage medium
US20230022646A1 (en) Method for updating applications in cloud environments
US9345062B2 (en) Relay system, relay device, and control method and control program of relay device
CN112328632A (en) Distributed two-level caching method and system
CN115617744A (en) Mirror image warehouse access method, system and equipment
CN113055254B (en) Address configuration method, device, access server and storage medium
WO2018188073A1 (en) Content deployment method and distribution controller
CN106790458B (en) Cross-local area network Memcache data sharing method and system
CN117057799B (en) Asset data processing method, device, equipment and storage medium
CN117938809B (en) Domain name access path optimization method, system and readable storage medium
CN108965494A (en) Data transmission method and device in data system
CN112748981B (en) Processing method and device for software mirror image of virtual network function

Legal Events

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