CN112669038A - Account inquiry system and cross-chain gateway - Google Patents

Account inquiry system and cross-chain gateway Download PDF

Info

Publication number
CN112669038A
CN112669038A CN202011584892.6A CN202011584892A CN112669038A CN 112669038 A CN112669038 A CN 112669038A CN 202011584892 A CN202011584892 A CN 202011584892A CN 112669038 A CN112669038 A CN 112669038A
Authority
CN
China
Prior art keywords
account
chain
identity
cross
blockchain
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
CN202011584892.6A
Other languages
Chinese (zh)
Other versions
CN112669038B (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 CN202011584892.6A priority Critical patent/CN112669038B/en
Publication of CN112669038A publication Critical patent/CN112669038A/en
Application granted granted Critical
Publication of CN112669038B publication Critical patent/CN112669038B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The application is applicable to the technical field of computers, and provides an account inquiry system, which comprises: the system comprises a first block chain, a second block chain, a first cross-chain gateway, a second cross-chain gateway and a relay chain, wherein the first block chain is in communication connection with the relay chain through the first cross-chain gateway, and the second block chain is in communication connection with the relay chain through the second cross-chain gateway. In the method and the system, the relay chain and the cross-chain gateway can realize the identity intercommunication between different block chains, and the safety of transaction between different block chains is improved.

Description

Account inquiry system and cross-chain gateway
Technical Field
The application belongs to the technical field of computers, and particularly relates to an account inquiry system and a cross-link gateway.
Background
The block chain is a distributed shared account book and a database, and has the characteristics of decentralization, no tampering, trace retaining in the whole process, traceability, collective maintenance, openness and transparency and the like. In the related art, a plurality of block chains are usually provided, the chain identities between different block chains are not communicated, and one block chain cannot acquire the identity information of an account on another block chain, so that identity authentication can not be performed across the block chains, which causes a problem in the security of a transaction across the block chains.
Therefore, in the related art, there is a need to implement on-chain identity interworking between different blockchains to improve the security of transactions across blockchains.
Disclosure of Invention
The embodiment of the application provides an account inquiry system and a cross-chain gateway, and aims to solve the problems that in the related technology, the identity of the chain between different block chains is not communicated, and one block chain cannot acquire the identity information of an account on the other block chain, so that the cross-block chain identity authentication cannot be realized, and the safety of cross-block chain transaction is not high enough.
In a first aspect, an embodiment of the present application provides an account querying system, where the system includes: a first blockchain communicatively coupled with the relay chain through the first inter-link gateway, a second blockchain communicatively coupled with the relay chain through the second inter-link gateway, a first inter-link gateway, a second inter-link gateway, and a relay chain, wherein,
the system comprises a first blockchain and a relay chain, wherein the first blockchain is used for sending a cross-chain account query request to the relay chain through a first cross-chain gateway, and the cross-chain account query request comprises account identification of an account to be queried on a second blockchain;
the relay chain is used for receiving a cross-chain account inquiry request, and searching the identity record information of the account identifier from a cross-chain identity record information table pre-stored in the relay chain, wherein the identity record information in the cross-chain identity record information table comprises the account identifier and a storage address used for storing account identity description information of an account marked by the account identifier; responding to the identity record information where the account identification is located, and sending the identity record information to a first block chain through a first cross-chain gateway;
the first block chain is also used for receiving the searched identity record information and sending the storage address in the searched identity record information to the first cross-chain gateway;
and the first cross-link gateway is used for acquiring the account identity description information of the account to be checked on the second blockchain according to the received storage address and sending the acquired account identity description information to the first blockchain, so that the first blockchain performs identity authentication on the account to be checked on the second blockchain based on the acquired account identity description information.
In a second aspect, an embodiment of the present application provides a cross-link gateway, where the cross-link gateway is communicatively connected to a first blockchain and a relay chain respectively, and the cross-link gateway includes: an information transfer unit and an information reading unit, wherein,
the information transmission unit is used for transmitting a cross-chain account query request of the first block chain to the relay chain, wherein the cross-chain account query request comprises an account identifier of an account to be queried on the second block chain; forwarding identity record information searched by the relay chain aiming at the cross-chain account inquiry request to a first block chain, wherein the identity record information comprises an account identifier and a storage address used for storing account identity description information of an account marked by the account identifier;
the information reading unit is used for receiving the storage address in the searched identity record information sent by the first block chain; and according to the received storage address, acquiring account identity description information of the account to be checked on the second blockchain, and sending the acquired account identity description information to the first blockchain, so that the first blockchain performs identity authentication on the account to be checked on the second blockchain based on the acquired account identity description information.
Compared with the related technology, the embodiment of the application has the beneficial effects that: the relay chain and the cross-chain gateway can realize the identity intercommunication between different block chains, thereby being beneficial to improving the security of transaction between different block chains. And secondly, the account identity description information corresponding to the account identification of the account to be checked is searched from the cross-link identity record information table in a table look-up mode, so that the method is easy to technically realize and is beneficial to improving the account inquiry efficiency. Then, the storage address of the account identity description information is stored in the cross-link identity record information table of the relay link instead of storing the account identity description information, so that the storage space of the relay link can be saved, and the cross-link identity record information table can be simplified. And then, the account identity description information of the accounts on each blockchain only needs to be stored once, and each blockchain can access the account identity description information of the accounts on all blockchains in a mode of accessing the storage address, so that the storage space of the whole blockchain network is saved. In addition, as much time is consumed for reading the stored account identity description information, the cross-chain gateway reads the stored account identity description information, so that the workload of the block chain can be reduced, and the data processing efficiency of the whole block chain network is improved.
It is understood that the beneficial effects of the second aspect can be referred to the related description of the first aspect, and are not described herein again.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required to be used in the embodiments or the related technical 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 creative efforts.
FIG. 1 is a system architecture diagram of an account lookup system as provided by an embodiment of the present application;
FIG. 2 is a schematic structural diagram of an account query system according to an embodiment of the present application;
FIG. 3 is a schematic flow chart diagram of the construction steps provided by an embodiment of the present application;
fig. 4 is a schematic diagram of an identity registration process provided in an embodiment of the present application;
FIG. 5 is a schematic diagram of an identity audit process according to an embodiment of the present application;
FIG. 6 is a schematic structural diagram of an account query system according to another embodiment of the present application;
FIG. 7 is a flowchart illustrating an account querying method according to an embodiment of the present application;
FIG. 8 is a flowchart illustrating an account querying method according to an embodiment of the present application;
fig. 9 is a block diagram of a cross-link gateway according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
Example one
Referring to fig. 1, a system architecture diagram of an account inquiry system according to an embodiment of the present application is provided.
As shown in fig. 1, the system architecture may include blockchains C1, C2, C3, C4, relay chains B1, B2, B3, B4, and cross-chain gateways P1-P7. The relay chain is generally a special block chain for authenticating and transmitting information to the connected block chain. In practical applications, for the purpose of distinguishing descriptions, a block chain other than the relay chain may be referred to as an application chain. In addition, the block chains (e.g., the first block chain, the second block chain) mentioned in the present application are all application chains unless otherwise specified.
The connection relationship between the block chains C1, C2, C3 and C4 and the relay chains B1, B2, B3 and B4 is generally a tree structure, and the relay chain B2 and the relay chain B3 are leaf nodes of the relay chain B1. Blockchain C1 and blockchain C2 are leaf nodes of relay chain B2. Blockchain C3 and relay chain B4 are leaf nodes of relay chain B3. The blockchain C4 is a leaf node of the relay chain B4. The relay chain B1 is an upper relay chain of the relay chain B2 and the relay chain B3, and the relay chain B3 is an upper relay chain of the relay chain B4. In practical applications, the blockchains C1, C2, C3, and C4 may be application chains of different application scenarios.
For all relay chains in the tree structure, identity intercommunication between multiple leaf nodes of one relay chain can be realized, for example, identity intercommunication between the block chain C1 and the block chain C2. Identity interworking between leaf nodes of different relay chains may also be implemented, e.g., between blockchain C1 and blockchain C3. Interworking between relay chains, such as relay chain B2 and relay chain B3, relay chain B1 and relay chain B2, can also be achieved. Interworking between leaf nodes and relay chain nodes may also be achieved, e.g., blockchain C1 and relay chain B2, blockchain C1 and relay chain B3, blockchain C1 and relay chain B1, etc.
In practical applications, for convenience of description, some relation terms are usually used to distinguish relative relations among a plurality of blockchains having a tree-like structure connecting the blockchains. For example, terms such as direct, collateral, sibling, descendant, or ancestor may be used to distinguish the relative relationship between multiple block chains. Generally, chains at the same level are all siblings, with higher levels being ancestors and lower levels being descendants. For example, for blockchain C1, B2 and B1 are ancestors of its ancestors. For relay chain B2, blockchain C1 is its ancestor, and relay chain B1 is its ancestor. In addition, for the block chain C1, the chains except B2 and B1 are all side chains.
In practice, interaction between two chains can be realized through a cross-chain gateway. As shown in fig. 1, interaction between chain B1 and chain B2 may be implemented by cross-chain gateway P1, interaction between chain B1 and chain B3 may be implemented by cross-chain gateway P2, interaction between chain B2 and chain C1 may be implemented by cross-chain gateway P3, interaction between chain B2 and chain C2 may be implemented by cross-chain gateway P4, interaction between chain B3 and chain C3 may be implemented by cross-chain gateway P5, interaction between chain B3 and chain B4 may be implemented by cross-chain gateway P6, and interaction between chain B4 and chain C3 may be implemented by cross-chain gateway P7.
In practice, if a relay chain has at least two leaf nodes, each leaf node is a blockchain. For the convenience of description, one of the blockchains may be referred to as a first blockchain, and the other blockchain may be referred to as a second blockchain. The first blockchain is communicatively coupled to the relay link via a first inter-link gateway, and the second blockchain is communicatively coupled to the relay link via a second inter-link gateway. At this time, the process of the present invention,
the system comprises a first blockchain and a relay chain, wherein the first blockchain can be used for sending a cross-chain account query request to the relay chain through a first cross-chain gateway, and the cross-chain account query request comprises account identification of an account to be queried on a second blockchain.
The relay link can be used for receiving a cross-link account query request, and searching the identity record information where the account identifier is located from a cross-link identity record information table stored in the relay link in advance, wherein the identity record information in the cross-link identity record information table comprises the account identifier and a storage address used for storing account identity description information of an account marked by the account identifier; and responding to the identity record information where the account identifier is found, and sending the found identity record information to the first block chain through the first cross-chain gateway.
The first blockchain may also be configured to receive the found identity record information, and send a storage address in the found identity record information to the first cross-chain gateway.
The first cross-link gateway may be configured to acquire account identity description information of the account to be checked on the second blockchain according to the received storage address, and send the acquired account identity description information to the first blockchain, so that the first blockchain performs identity authentication on the account to be checked on the second blockchain based on the acquired account identity description information.
In the method and the system, the relay chain and the cross-chain gateway can realize the identity intercommunication between different block chains, and the safety of transaction between different block chains is improved. And secondly, the account identity description information corresponding to the account identification of the account to be checked is searched from the cross-link identity record information table in a table look-up mode, so that the method is easy to technically realize and is beneficial to improving the account inquiry efficiency. Then, the storage address of the account identity description information is stored in the cross-link identity record information table of the relay link instead of storing the account identity description information, so that the storage space of the relay link can be saved, and the cross-link identity record information table can be simplified. And then, the account identity description information of the accounts on each blockchain only needs to be stored once, and each blockchain can access the account identity description information of the accounts on all blockchains in a mode of accessing the storage address, so that the storage space of the whole blockchain network is saved. In addition, as much time is consumed for reading the stored account identity description information, the cross-chain gateway reads the stored account identity description information, so that the workload of the block chain can be reduced, and the data processing efficiency of the whole block chain network is improved.
Example two
Continuing to refer to fig. 2, a schematic structural diagram of an account inquiry system according to an embodiment of the present application is provided. The account inquiry system shown in fig. 3 includes a first blockchain 201, a second blockchain 202, a first cross-link gateway 203, a second cross-link gateway 204, and a relay chain 205, where the first blockchain 201 is communicably connected to the relay chain 205 through the first cross-link gateway 203, and the second blockchain 202 is communicably connected to the relay chain 205 through the second cross-link gateway 204. Wherein the content of the first and second substances,
and the first blockchain 201 is used for sending a cross-chain account query request to the relay chain through the first cross-chain gateway.
And the cross-chain account inquiry request comprises the account identification of the account to be checked on the second blockchain. The account to be checked is usually an account to be checked.
In practice, there are usually many blockchain accounts on each blockchain, and each blockchain account has a corresponding blockchain account address. For convenience of description, the present application may simply refer to a blockchain account as an account.
The account id is generally information for identifying an account. In practice, the account id may generally indicate the account and the blockchain in which the account is located. For example, the account identification may be: 0x1234567, where 001 may be the identity of the blockchain and 0x1234567 is the account's coding on the blockchain identified as 001.
In this embodiment, the first blockchain 201 may send a cross-chain account query request to the relay chain 205 through the first cross-chain gateway 203.
The relay chain 205 is configured to receive a cross-chain account query request, and search the identity record information where the account identifier is located from a cross-chain identity record information table pre-stored in the relay chain. And responding to the identity record information where the account identifier is found, and sending the found identity record information to the first block chain through the first cross-chain gateway.
The identity record information in the cross-link identity record information table comprises an account identifier and a storage address used for storing account identity description information of an account marked by the account identifier.
The above-mentioned account identity description information is generally information for describing an account identity. By way of example, the account identity description information may include, but is not limited to: account address, account public key, account encryption algorithm, account registration time, etc. The account address typically refers to the address of the blockchain account. The account public key typically refers to the public key employed by the blockchain account. The account encryption algorithm generally refers to an encryption algorithm adopted by a blockchain account. In the present application, the specific format of the account identity description information may be an Object Notation format (JavaScript Object notification, JSON), an eXtensible Markup Language format (XML), or Another Markup Language format (YAML). The specific format of the account identity description information is not limited in the present application.
In practice, each block chain may have a chain identity record information table stored thereon in advance for recording related information of accounts on the chain. The chain identity record information table stored in each block chain has a plurality of pieces of identity record information. In the relay chain type blockchain, a cross-chain identity record information table is also typically stored, and the stored cross-chain identity record information table typically has identity record information corresponding to an account on a leaf node blockchain of the relay chain. In an upper relay link of any one relay link, a cross-link identification record information table stored in the relay link may be backed up. Thus, the identity intercommunication between each block chain can be realized. For example, in conjunction with fig. 1, the relay chain B1 may have a cross-chain identity record information table stored by the relay chain B2, a cross-chain identity record information table stored by the relay chain B3, and a cross-chain identity record information table stored by the relay chain B4. For further example, if blockchain C1 sends a request to trunk chain B2 to query an account on blockchain C3, the cross-chain identity record information table in trunk chain B2 does not usually have identity record information corresponding to the account on blockchain C3. At this time, the relay chain B2 may send a continue query request to the relay chain B1 at the previous stage, so as to query the identity record information corresponding to the account on the blockchain C3 through the relay chain B1.
In this embodiment, the relay chain 205 may receive a cross-chain account query request. Then, the account identifier of the account to be checked is used to search the identity record information where the account identifier is located from the cross-link identity record information table pre-stored in the relay chain 205. Then, the found identity record information is sent to the first inter-link gateway 203, so that the first inter-link gateway 203 forwards the found identity record information to the first blockchain 201.
The first blockchain 201 is further configured to receive the found identity record information, and send a storage address in the found identity record information to the first cross-chain gateway.
In this embodiment, the first blockchain 201 may receive the identity record information forwarded by the first cross-chain gateway 203. Then, the storage address in the identity record information is sent to the first cross-link gateway 203.
The first cross-link gateway 203 is configured to acquire account identity description information of the account to be checked on the second blockchain according to the received storage address, and send the acquired account identity description information to the first blockchain, so that the first blockchain performs identity authentication on the account to be checked on the second blockchain based on the acquired account identity description information.
In this embodiment, the first cross-link gateway 203 may use the received storage address to obtain the account id description information from the location indicated by the storage address. Since the storage address is the description information of the address for storing the account identity description information of the account to be checked on the second blockchain. Therefore, at this time, the first cross-link gateway 203 may obtain account id description information of the account to be checked on the second blockchain. The first inter-link gateway 203 may then send the obtained account id information to the first blockchain 201. In this way, the first blockchain 201 can receive the account id description information, so as to authenticate the account to be checked on the second blockchain.
The system provided by the embodiment can realize identity intercommunication between different block chains through the relay chain and the cross-chain gateway, and is beneficial to improving the security of transaction between different block chains. And secondly, the account identity description information corresponding to the account identification of the account to be checked is searched from the cross-link identity record information table in a table look-up mode, so that the method is easy to technically realize and is beneficial to improving the account inquiry efficiency. Then, the storage address of the account identity description information is stored in the cross-link identity record information table of the relay link instead of storing the account identity description information, so that the storage space of the relay link can be saved, and the cross-link identity record information table can be simplified. And then, the account identity description information of the accounts on each blockchain only needs to be stored once, and each blockchain can access the account identity description information of the accounts on all blockchains in a mode of accessing the storage address, so that the storage space of the whole blockchain network is saved. In addition, as much time is consumed for reading the stored account identity description information, the cross-chain gateway reads the stored account identity description information, so that the workload of the block chain can be reduced, and the data processing efficiency of the whole block chain network is improved.
In some optional implementations of this embodiment, in the account querying system, the relay chain is further configured to: and responding to the identity record information where the account identifier is not found, and sending a continuous query request comprising the account identifier to a superior relay link of the communication connection. And receiving the identity record information of the account identifier returned by the superior relay chain aiming at the continuous query request, and sending the received identity record information to the first blockchain through the first cross-chain gateway.
Wherein the query continuation request may include the account identification of the account to be queried on the second blockchain.
Here, if the execution main body does not find the identity record information of the account identifier, the execution main body may send a continuous query request to a superior relay chain when the execution main body has the superior relay chain. In this way, after receiving the continuous query request, the upper relay chain may generally continue querying from one or more cross-link identity record information tables stored in the upper relay chain by using the account identifier in the continuous query request. And if the identity record information of the account identifier is found, sending the found identity record information to a relay chain. In this way, the relay chain may receive the identity record information of the account identifier returned by the superior relay chain, and send the received identity record information of the account identifier to the first blockchain.
In the implementation manner, the continuous query request is sent to the upper relay link, so that the account identifier of the account to be queried is continuously queried through the upper relay link, and the identity intercommunication between leaf nodes of different relay links can be realized. The method helps to further improve the security of transactions between different block chains.
In some optional implementations of this embodiment, in the first blockchain, sending, by the first cross-chain gateway, the cross-chain account query request to the relay chain includes: and responding to a received cross-chain account query request sent by a user terminal where the current chain account is located, and sending the cross-chain account query request to the relay chain through the first cross-chain gateway.
And the cross-chain account inquiry request comprises the account identification of the account to be checked on the second blockchain.
The present chain account here generally refers to an account on the first blockchain. The user can log in the account on the blockchain through the user terminal.
Here, the first blockchain may receive a cross-chain account query request sent by a user terminal where the local chain account is located. And then, sending the received cross-link account inquiry request to the relay link through the cross-link gateway. In this way, when the relay link returns the identity record information where the account identifier is located, the first blockchain may feed back the corresponding account identity description information to the user terminal based on the identity record information.
In some optional implementations of this embodiment, in the account inquiry system,
the first blockchain may also be configured to, in response to receiving a local chain account query request sent by a user terminal where the local chain account is located and used for querying an account to be queried on the first blockchain, search, from a local chain identity record information table pre-stored in the first blockchain, identity record information where an account identifier of the account to be queried is located, and send a storage address in the searched identity record information to the first cross-chain gateway.
The link account query request comprises an account identifier of an account to be queried, and the identity record information in the link identity record information table comprises the account identifier and a storage address used for storing account identity description information of the account marked by the account identifier.
Here, the account to be checked is an account on the first blockchain. The first blockchain can receive a local chain account query request sent by a user terminal where the local chain account is located. The present chain account query request is used for querying account identity description information of the account on the first blockchain. After receiving the local chain account query request, the first blockchain may use the account identifier included in the local chain account query request to search the identity record information where the account identifier is located from the local chain identity record information table pre-stored in the first blockchain. And then, sending the memory address in the searched identity record information to the first cross-link gateway.
The first cross-link gateway is further configured to acquire account identity description information of the account to be checked on the first blockchain according to the received storage address, and send the acquired account identity description information to the first blockchain.
Here, the first cross-link gateway may receive the memory address transmitted by the first blockchain. After receiving the storage address, the first cross-link gateway may directly read the account identity description information from the location indicated by the storage address. Since the storage address is the description information of the address for storing the account identity description information of the account to be checked on the first blockchain. Therefore, at this time, the first cross-chain gateway may acquire account identity description information of the account to be checked on the first blockchain. The obtained account id description information is then sent to the first blockchain.
The first blockchain is also used for receiving account identity description information of the account to be checked on the first blockchain returned by the first cross-chain gateway, and sending the received account identity description information to the user terminal.
Here, the first blockchain may receive account id description information of the account to be checked on the first blockchain returned by the first cross-chain gateway, and may send the account id description information to the user terminal.
In this implementation manner, the blockchain stores the blockchain identity record information table, so that when the user terminal where the account on the blockchain is located needs to query the related information of another account on the blockchain, the blockchain can send the account identity description information of the another account to the user terminal. It is helpful to increase the data processing speed and thus the speed of transactions between the same blockchains. In addition, not all query requests are realized through the relay chain, and processing resources of the relay chain can be saved.
In some optional implementations of this embodiment, in the account inquiry system,
the relay chain is also used for responding to a local chain account query request which is sent by the first blockchain through the first cross-chain gateway and is used for querying an account to be queried on the relay chain, and searching the identity record information where the account identification of the account to be queried on the relay chain is located from a local chain identity record information table which is prestored in the relay chain; and responding to the identity record information where the account identification of the account to be checked on the relay chain is located, and sending the identity record information to the first block chain through the first cross-chain gateway.
Here, the account to be checked is an account on the relay chain. The relay chain may receive a local chain account query request sent by the first blockchain through the first inter-chain gateway. The account query request of the current chain is used for querying account identity description information of the account on the relay chain. After receiving the account query request of the local chain, the relay chain may search the identity record information where the account identifier is located from a local chain identity record information table pre-stored in the relay chain by using the account identifier included in the account query request of the local chain. And then, forwarding the searched identity record information to the first block chain through the first cross-chain gateway.
And the first block chain is also used for receiving the searched identity record information and sending the storage address in the searched identity record information to the first cross-chain gateway.
Here, the first blockchain may receive the identity record information forwarded by the first cross-chain gateway, and send the storage address in the identity record information to the first cross-chain gateway.
And the first cross-link gateway is used for acquiring the account identity description information of the account to be checked on the relay chain according to the received storage address, and sending the acquired account identity description information to the first block chain, so that the first block chain performs identity authentication on the account to be checked on the relay chain based on the acquired account identity description information.
Here, the first cross-link gateway may obtain the account id description information from the location indicated by the received storage address using the received storage address. The storage address is description information of an address used for storing account identity description information of an account to be checked on the relay chain. Therefore, at this time, the first inter-link gateway may obtain account identity description information of the account to be checked on the relay link. The first inter-link gateway may then send the obtained account id information to the first blockchain. In this way, the first blockchain may receive the account id description information, so as to perform identity authentication on the account to be checked in the relay chain.
According to the implementation mode, the account on the relay chain can be queried, so that the identity authentication of the account to be queried on the relay chain can be realized.
In some optional implementations of this embodiment, the system further includes at least one storage server, and the first blockchain implements pre-storing the list of the identity record information of the blockchain by performing the building step.
Fig. 3 is a schematic flow chart of a construction step provided in an embodiment of the present application. As shown in FIG. 3, the building step may include steps 301-303. It is noted that the execution subject of steps 301-303 is the first block chain.
Step 301, in response to receiving an identity registration request which is sent by a user terminal where the local chain account is located and includes the account identifier and the account identity description information of the local chain account, sending the data storage type of the first block chain and the account identity description information of the local chain account to the first cross-chain gateway, so that the first cross-chain gateway stores the account identity description information of the local chain account to a storage server matched with the data storage type.
The identity registration request is typically information for requesting registration. The storage server may be a preset server for storing data. There may be one or more storage servers. If there is one storage server, the storage server can support multiple data storage types at the same time. If there are multiple storage servers, the multiple storage servers may support one data storage type respectively. The data storage type generally refers to the type of data being stored. By way of example, the data storage types may include, but are not limited to, supporting Structured Query Language (SQL), interplanetary File System (IPFS), REmote DIctionary service (REmote DIctionary Server), and the like.
Here, the first blockchain may send the data storage type used by the first blockchain and the account identity description information of the account of the present chain to the first cross-link gateway when receiving the identity registration request. In this way, the first cross-link gateway may store the account id description information in a storage server corresponding to the data storage type.
Step 302, receiving a storage address returned by the first cross-link gateway for the account identity description information of the current link account.
Here, after the first cross-link gateway stores the account id description information of the local-link account in the storage server, the first cross-link gateway generally returns the storage address to the first blockchain. Thus, the first blockchain may receive the memory address.
Step 303, store the account identifier and the storage address of the chain account, the hash value of the account identity description information of the chain account, and the whole of the account state parameter whose value is the first preset value as the identity record information into the chain identity record information table.
The first preset value is used for indicating that the current chain account is in a registered state to be checked.
Here, the first blockchain may store the account identifier, the storage address, the hash value of the account id description information, and the account status parameter as one piece of id record information in the chain id record information table.
Fig. 4 is a schematic diagram of an identity registration process provided in the embodiment of the present application.
Step 401, a user terminal where an account is located sends an identity registration request to an application chain, where the identity registration request includes an account identifier and account identity description information.
Here, the application chain may be the first block chain, the second block chain, or another block chain.
Step 402, the application chain sends the data storage type and the account identity description information of the application chain to the cross-chain gateway.
Step 403, the cross-link gateway stores the account identity description information to a storage server matched with the data storage type.
In step 404, the storage server stores the account id description information and returns a storage address to the cross-link gateway.
Step 405, the cross-link gateway returns the storage address of the account id description information to the application chain.
In step 406, the application chain stores the hash value of the account identifier, the storage address and the account identity description information as an identity record information in the chain identity record information table.
In practice, each piece of identity record information in the chain identity record information table may also have an account status parameter for indicating the status of the account. Different values of the account status parameter may indicate different account statuses. When the account is registered, the value of the account state parameter can be a first preset value, and the account state parameter is used for indicating that the account state is a registered state to be checked.
In some optional implementations of this embodiment, the constructing step may further include: and executing preset auditing operation on the identity record information with the value of the corresponding account state parameter as a first preset value in the chain identity record information table to obtain auditing result information, and modifying the value of the account state parameter in the corresponding identity record information into a second preset value when the auditing result information indicates that the auditing is passed.
And the second preset value is used for indicating that the account is currently in an auditing passing state.
The preset auditing operation may be an operation of auditing the account identity description information. For example, the preset auditing operation may be: the block chain controls all or part of the block chain link points of the block chain to execute the following steps: and downloading the account identity description information by adopting the storage address in the identity record information. Then, a hash value of the downloaded identity description information is calculated. And finally, comparing the hash value obtained by calculation with the hash value in the identity record information, and returning auditing passing indication information for indicating that the auditing is passed to the block chain if the hash value obtained by calculation is the same as the hash value in the identity record information. Otherwise, if the two are different, returning audit failure indication information for indicating that the audit is not passed to the block chain. In this way, the blockchain may determine whether the account id description information of the account passes the audit by counting the number of audit pass indication information. In practice, if the audit result is that the audit is passed, the block chain may modify the value of the account state parameter in the corresponding identity record information to a second preset value. And the second preset value is used for indicating that the account is currently in an auditing passing state. If the audit result is that the audit is not passed, the block chain may modify the value of the account state parameter in the corresponding identity record information to a fifth preset value. And the fifth preset value is used for indicating that the account is currently in an audit refusal state.
In the foregoing implementation manner, after modifying the value of the account status parameter in the corresponding identity record information, the first block chain is further configured to: and responding to the value of the account state parameter in the modified corresponding identity record information as a second preset value, and sending the modified corresponding identity record information to the relay chain, so that the relay chain updates the cross-chain identity record information table based on the modified corresponding identity record information.
And the second preset value is used for indicating that the account is currently in an auditing passing state.
Here, if the account status is the audit-passed status, the identity record information is considered to be valid. At this time, the block chain may send the identity record information to the relay chain. In this way, the relay chain can update the cross-chain identity record information table with the identity record information. In particular, the relay chain may add the identity record information to a cross-chain identity record information table.
Fig. 5 is a schematic view of an identity auditing process provided in an embodiment of the present application.
And the application chain verifies the identity record information of the account, and if the verification is not passed, the step 501 and the step 504 are executed. When the audit is passed, step 505 and 509 are executed.
Step 501, the application chain sends the storage address of the account identity description information in the identity record information to be audited to the cross-chain gateway.
Step 502, the cross-link gateway sends the storage address to the storage server, so that the storage server deletes the account identity description information corresponding to the storage address.
Step 503, the storage server returns information for prompting completion of deletion through the cross-link gateway.
Step 504, the application chain modifies the value of the account state parameter in the checked identity record information to a fifth preset value, and deletes the storage address in the identity record information. And the fifth preset value is used for indicating that the account is currently in an audit refusal state.
Step 505, the application chain updates the own chain identity record information table.
Here, the value of the account state parameter of the approved identity record information in the chain identity record information may be modified to a second preset value. And the second preset value is used for indicating that the account is currently in an auditing passing state.
And step 506, the application chain sends the identity record information passing the verification to the cross-chain gateway.
And step 507, the cross-link gateway sends the identity record information passing the verification to the relay link.
Step 508, the relay link updates the inter-link identity record information table.
Here, the relay chain may add the identity record information passing the audit to the cross-chain identity record information table.
In step 509, the relay link sends the identity record information that passes the audit to the upper relay link of the relay link. In this way, the superior relay chain of the relay chain may add the approved identity record information to the corresponding inter-chain identity record information table.
In some optional implementations of this embodiment, the constructing step may further include the following steps one to three. It should be noted that the main body of the execution of the first to third steps is the first blockchain.
Step one, in response to receiving an identity updating request which is sent by a user terminal where a local chain account is located and comprises an account identifier of the local chain account and new account identity description information, sending a data storage type of a first block chain and the new account identity description information of the local chain account to a first cross-chain gateway, and enabling the first cross-chain gateway to store the new account identity description information of the local chain account to a storage server matched with the data storage type.
Here, the identity update request may be information for requesting update of account identity description information of an account. After receiving the identity update request, the first blockchain may send the new account identity description information in the identity update request and the data storage type of the first blockchain together to the first cross-chain gateway. In this way, the first cross-link gateway may store the new account identity description information to a storage server that matches the data storage type.
And step two, receiving a new storage address returned by the first cross-link gateway aiming at the new account identity description information of the chain account.
Here, after storing the new account id description information of the local account into the storage server, the first cross-link gateway generally returns a storage address for storing the new account id description information, which is referred to as a new storage address.
And step three, modifying the storage address in the identity record information corresponding to the chain account into a new storage address, modifying the hash value of the account identity description information into the hash value of the new account identity description information, and modifying the value of the account state parameter into a third preset value.
And the third preset value is used for indicating that the current chain account is in an updated state to be checked.
Here, after receiving the new storage address, the first blockchain may modify the storage address in the account identity record information to the new storage address, modify the hash value of the account identity description information to the hash value of the new account identity description information, and modify the value of the account state parameter to a third preset value.
It should be noted that the blockchain may audit the updated identity record information. Here, the operation of auditing the updated identity record information is basically the same as the operation of auditing the identity record information, and is not described herein again. In practice, when new identity record information with the value of the account state parameter being the third preset value is audited, if the audit is not passed, the blockchain can delete the new storage address, and the new account identity description information stored by the new storage address is deleted by the cross-chain gateway by sending the new storage address to the cross-chain gateway. After deleting the new memory address, the blockchain may modify the identity record information where the new memory address is located to be the same as before the update.
EXAMPLE III
Continuing to refer to fig. 6, a schematic structural diagram of an account inquiry system according to an embodiment of the present application is provided. The account inquiry system shown in fig. 6 includes a first block chain 601, a second block chain 602, a first cross-link gateway 603, a second cross-link gateway 604, and a relay chain 605, where the first block chain 601 is communicably connected to the relay chain 605 through the first cross-link gateway 603, and the second block chain 602 is communicably connected to the relay chain 605 through the second cross-link gateway 604.
In addition, the system may further include a third block chain 606, where the third block chain 606 may be an application chain or a relay chain. And any one or more block chains included in the system are stored with a chain identity record information table in advance, and the identity record information in the chain identity record information table comprises an account identifier, a storage address for storing account identity description information of an account marked by the account identifier, and an account state parameter for indicating the account state of the account marked by the account identifier. At this time, the process of the present invention,
a third block chain 606 may be used to send a cross-chain account freeze request to the receive chain.
The cross-chain account freezing request comprises an account identifier of an account to be frozen and a chain identifier of a chain to be frozen. The receive chain may include any one or more of: a first block chain 601, a second block chain 602, and a relay chain 605. A cross-chain account freeze request is typically used to request that accounts on a blockchain other than the local blockchain be frozen. The chain to be frozen is typically a block chain that requires operations related to account freezing to be performed. The chain identification is generally information for identifying a block chain. As an example, the chain identification may be 001.
Here, the third blockchain 606 may be a blockchain having an arbitrary relationship with the first blockchain 601, the second blockchain 602, and the relay chain 605 in the system. For example, third block chain 606 can be an ancestor of relay chain 605.
In this embodiment, the third blockchain 606 may send a cross-chain account freeze request to any one or more of the first blockchain 601, the second blockchain 602, and the relay chain 605.
A receiving chain, configured to receive a cross-chain account freezing request sent by the third block chain; and in the block chain indicated by the chain identifier of the chain to be frozen, modifying the value of the account state parameter corresponding to the account identifier of the account to be frozen into a fourth preset value.
The fourth preset value is used for indicating that the account to be frozen is currently in a frozen state.
In the system provided by this embodiment, the third block chain may send a cross-chain account freezing request to the receive chain, so that the account is frozen in a cross-chain manner. The method and the device are beneficial to realizing that when an account with malicious operation exists on a certain blockchain, a freezing request is timely initiated aiming at the account so as to realize the timely freezing of the account, and are beneficial to ensuring the safety of other blockchains which can be communicated with the blockchain identity of the account.
In some optional implementation manners of this embodiment, in the block chain indicated by the chain identifier of the chain to be frozen, modifying the value of the account state parameter corresponding to the account identifier of the account to be frozen to a fourth preset value may include:
the receiving chain responds to the fact that the chain identification indicates that the receiving chain is a chain to be frozen and the block chain where the account to be frozen is located is the receiving chain, and identity record information where the account identification of the account to be frozen is located is searched from a chain identity record information table stored in the receiving chain in advance; and modifying the value of the account state parameter in the searched identity record information into a fourth preset value.
At this time, the chain to be frozen is the receive chain. The implementation mode can freeze the account on the receiving chain, so that the account can be frozen in a cross-block chain mode.
In some optional implementation manners of this embodiment, in the block chain indicated by the chain identifier of the chain to be frozen, modifying the value of the account state parameter corresponding to the account identifier of the account to be frozen to a fourth preset value may include:
the receiving chain responds to the fact that the chain identification indicates that the receiving chain is not a chain to be frozen and the block chain where the account to be frozen is located is the straight sub chain of the receiving chain, and sends a cross-chain account freezing request to the straight sub chain.
The method comprises the steps that a direct sub-chain searches identity record information of an account identifier of an account to be frozen from a chain identity record information table pre-stored in the direct sub-chain; and modifying the value of the account state parameter in the searched identity record information into a fourth preset value.
At this time, the receive chain is not the chain to be frozen, and the chain to be frozen is a straight chain of the receive chain. The implementation mode can freeze the account on the direct sub-chain of the receiving chain.
In some optional implementation manners of this embodiment, in the block chain indicated by the chain identifier of the chain to be frozen, modifying the value of the account state parameter corresponding to the account identifier of the account to be frozen to a fourth preset value may include:
the receiving chain responds to the straight sub-chain of which the determining chain identification indicates that the receiving chain is a chain to be frozen and the block chain of the account to be frozen is the receiving chain, the identity record information of the account identification of the account to be frozen is searched from a cross-chain identity record information table pre-stored in the receiving chain, and the value of the account state parameter in the searched identity record information is modified into a fourth preset value; sending a cross-chain account freeze request to the direct child chain.
The method comprises the steps that a direct sub-chain searches identity record information of an account identifier of an account to be frozen from a chain identity record information table pre-stored in the direct sub-chain; and modifying the value of the account state parameter in the searched identity record information into a fourth preset value.
Here, the chain to be frozen is a receive chain and a straight chain of the receive chain. At this time, there are two numbers of chain identifications in the cross-chain account freeze request. In practice, the number of chain identifications in the cross-chain account freeze request may be multiple. The method can freeze the account to be frozen within the range of the receiving chain and the direct sub-chain of the receiving chain.
In some optional implementation manners of this embodiment, in the block chain indicated by the chain identifier of the chain to be frozen, modifying the value of the account state parameter corresponding to the account identifier of the account to be frozen to a fourth preset value may include:
and the receiving chain responds to the fact that the chain identification indicates that the receiving chain is a non-to-be-frozen chain and the block chain where the to-be-frozen account is located is a side chain of the receiving chain, generates identity record information corresponding to the to-be-frozen account, and adds the generated identity record information to a cross-chain identity record information table of the receiving chain.
And the value of the account state parameter in the generated identity record information is a fourth preset value.
Here, since there is usually no identity record information of the account in the synchronization bypass chain in the receive chain. In order to freeze the account to be frozen, the receiving chain may generate an identity record information for the identity of the account to be frozen, so as to freeze the account to be frozen within the range of the receiving chain. Here, the generated identity record information may include an account identifier and an account status parameter that takes a value of a fourth preset value. In practice, when the format of the identity record information needs to include an account identifier, a storage address of the account identity description information, a hash value of the account identity description information, and an account status parameter, in the generated identity record information, the storage address is usually empty, and the hash value is usually empty.
According to the implementation mode, the account on the side chain of the receiving chain can be frozen within the range of the receiving chain, and the account can be frozen in a cross-block chain mode.
It should be noted that controlling the freezing range of the account to be frozen is helpful to ensure the security of other blockchains that can communicate with the identity of the blockchain in which the account is located.
Additionally, the manner in which an account is defrosted is generally similar to the manner in which the account is frozen. Therefore, the present application does not make much statements on how to unfreeze the account.
In some optional implementations of this embodiment, in the account inquiry system,
the first cross-link gateway is also used for caching the searched identity record information returned by the relay link aiming at the cross-link account inquiry request; and in response to receiving the second sending of the cross-chain account inquiry request by the first blockchain, obtaining account identity description information of the account to be checked on the second blockchain according to the storage address included in the cached identity record information, and sending the obtained account identity description information to the first blockchain.
The first cross-link gateway is further configured to, when the blockchain in communication connection modifies the value of the account state parameter in the identity record information where the account identifier of the account to be frozen is located to a fourth preset value, cache the identity record information whose value of the account state parameter is the fourth preset value.
In this implementation manner, when the relay chain returns the found identity record information for the first blockchain, the first inter-chain gateway may cache the returned identity record information. Therefore, when the same account is queried next time by the first block chain, the cached identity record information can be directly sent to the first block chain, and the query efficiency is accelerated.
In addition, after the first blockchain freezes an account on the first blockchain, the first cross-link gateway may update the currently cached identity record information. Specifically, if the identity record information of the frozen account is cached in the first inter-link gateway, the first inter-link gateway may modify the value of the account state parameter in the cached identity record information to a fourth preset value. If the identity record information of the frozen account is not cached in the first cross-link gateway, the first cross-link gateway may cache the identity record information of the other frozen account to the first cross-link gateway.
Example four
With continuing reference to fig. 7, fig. 7 is a schematic flowchart of an account querying method corresponding to the account querying system according to the embodiment of the present application. As shown in fig. 7, the account inquiry method includes:
in step 701, the first blockchain sends a cross-chain account query request to the relay chain through the first cross-chain gateway.
And the cross-chain account inquiry request comprises the account identification of the account to be checked on the second blockchain.
Step 702, a relay chain receives a cross-chain account inquiry request, and searches identity record information of an account identifier from a pre-stored cross-chain identity record information table in the relay chain; and responding to the identity record information where the account identifier is found, and sending the found identity record information to the first block chain through the first cross-chain gateway.
The identity record information in the cross-link identity record information table comprises an account identifier and a storage address used for storing account identity description information of an account marked by the account identifier.
In step 703, the first block link receives the found identity record information and sends the storage address in the found identity record information to the first cross-link gateway.
Step 704, the first inter-link gateway acquires the account identity description information of the account to be checked on the second blockchain according to the received storage address, and sends the acquired account identity description information to the first blockchain, so that the first blockchain performs identity authentication on the account to be checked on the second blockchain based on the acquired account identity description information.
The method provided by the embodiment can realize the identity intercommunication between different block chains through the relay chain and the cross-chain gateway, and is beneficial to improving the security of transaction between different block chains. And secondly, the account identity description information corresponding to the account identification of the account to be checked is searched from the cross-link identity record information table in a table look-up mode, so that the method is easy to technically realize and is beneficial to improving the account inquiry efficiency. Then, the storage address of the account identity description information is stored in the cross-link identity record information table of the relay link instead of storing the account identity description information, so that the storage space of the relay link can be saved, and the cross-link identity record information table can be simplified. And then, the account identity description information of the accounts on each blockchain only needs to be stored once, and each blockchain can access the account identity description information of the accounts on all blockchains in a mode of accessing the storage address, so that the storage space of the whole blockchain network is saved. In addition, as much time is consumed for reading the stored account identity description information, the cross-chain gateway reads the stored account identity description information, so that the workload of the block chain can be reduced, and the data processing efficiency of the whole block chain network is improved.
It should be noted that, because the first blockchain, the first inter-link gateway, the second blockchain, the information interaction between the second inter-link gateway and the relay chain, the execution process, and the like are based on the same concept as the system embodiment of the present application, specific functions and technical effects thereof may be specifically referred to a part of the system embodiment, and details thereof are not described here.
Fig. 8 is a flowchart illustrating an account querying method according to an embodiment of the present application.
Step 801, a user terminal where an account is located sends a chain account query request to a blockchain, where the chain account query request includes an account identifier.
Step 802, the application chain searches the identity record information where the account identifier is located from the chain identity record information table. If the search is successful, step 803-808 is performed. If the lookup is not successful, step 809 is performed.
Step 803, the application chain sends the found storage address in the identity record information to the cross-chain gateway.
And step 804, the cross-link gateway acquires data from a position corresponding to the storage address by adopting the storage address.
At step 805, the storage server returns account identity description information at the storage address to the cross-link gateway.
Step 806, the cross-link gateway sends the account identity description information to the application link.
The application chain verifies the received account id description information, step 807.
Here, the received account id description information is usually verified by calculating a hash value of the received account id description information, and if the calculated hash value is the same as the hash value in the id record information, the verification is passed. Otherwise, if the two are not consistent, the verification is not passed.
And 808, sending the verification result and the account identity description information to the user terminal by the application chain.
At step 809, the application link sends a continue query request including the account identification to the cross-link gateway.
Step 810, the cross-link gateway sends a continuous query request including the account identifier to the relay link.
Step 811, the relay link looks up the identity record information where the account id is located from the inter-link identity record information table. If the lookup fails, go to step 812. And if the search is successful, the searched identity record information is sent to the application chain through the cross-chain gateway. In this way, the application chain returns the search result of the search success to the user terminal by performing steps 803 and 808.
And step 812, sending a continuous query request to the upper-level relay chain to realize the search in the upper-level relay chain. If the upper relay link and the upper relay link of each layer of the upper relay link and the relay link of the topmost layer are not successfully searched, step 813 is executed.
In step 813, the relay link returns the result of the unsuccessful lookup to the cross-link gateway.
Step 814, the cross-chain gateway returns the search result that the search was unsuccessful to the application chain.
Step 815, the application chain returns the search result of unsuccessful search to the user terminal.
EXAMPLE five
With continued reference to fig. 9, fig. 9 shows a block diagram of a cross-link gateway 900 provided in an embodiment of the present application. As shown in fig. 9, the cross-link gateway 900 includes: an information transfer unit 901 and an information reading unit 902, wherein the inter-chain gateway is respectively connected with the first block chain and the relay chain in communication.
An information transferring unit 901, configured to forward a cross-chain account query request of a first blockchain to a relay chain, where the cross-chain account query request includes an account identifier of an account to be checked on a second blockchain; forwarding identity record information searched by the relay chain aiming at the cross-chain account inquiry request to a first block chain, wherein the identity record information comprises an account identifier and a storage address used for storing account identity description information of an account marked by the account identifier;
an information reading unit 902, configured to receive a storage address in the searched identity record information sent by the first blockchain; and according to the received storage address, acquiring account identity description information of the account to be checked on the second blockchain, and sending the acquired account identity description information to the first blockchain, so that the first blockchain performs identity authentication on the account to be checked on the second blockchain based on the acquired account identity description information.
In the cross-link gateway provided by this embodiment, since it takes much time to read the stored account identity description information, the cross-link gateway reads the stored account identity description information, which can reduce the workload of the blockchain and is beneficial to improving the data processing efficiency of the whole blockchain network.
In some optional implementations of this embodiment, the cross-chain gateway further includes an information storage unit, where the information storage unit is configured to, in response to receiving the data storage type and the account identity description information sent by the first blockchain, store the received account identity description information to a storage server matching the data storage type, and return a storage address for the received account identity description information to the blockchain.
It should be noted that, because the first blockchain, the first inter-link gateway, the second blockchain, the information interaction between the second inter-link gateway and the relay chain, the execution process, and the like are based on the same concept as the system embodiment of the present application, specific functions and technical effects thereof may be specifically referred to a part of the system embodiment, and details thereof are not described here.
The above embodiments are only used to illustrate the technical solutions of the present application, and not to limit 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 (10)

1. An account inquiry system, the system comprising: a first blockchain communicatively coupled with the relay link through the first inter-link gateway, a second blockchain communicatively coupled with the relay link through the second inter-link gateway, a second inter-link gateway, and a relay link, wherein,
the first blockchain is used for sending a cross-chain account query request to the relay chain through the first cross-chain gateway, wherein the cross-chain account query request comprises account identifications of accounts to be queried on the second blockchain;
the relay link is used for receiving the cross-link account inquiry request and searching the identity record information where the account identifier is located from a cross-link identity record information table pre-stored in the relay link, wherein the identity record information in the cross-link identity record information table comprises the account identifier and a storage address used for storing account identity description information of an account marked by the account identifier; responding to the identity record information where the account identifier is located, and sending the identity record information to the first block chain through the first cross-link gateway;
the first blockchain is further configured to receive the searched identity record information, and send a storage address in the searched identity record information to the first cross-chain gateway;
the first cross-link gateway is configured to acquire account identity description information of the account to be checked on the second blockchain according to the received storage address, and send the acquired account identity description information to the first blockchain, so that the first blockchain performs identity authentication on the account to be checked on the second blockchain based on the acquired account identity description information.
2. The account inquiry system of claim 1,
the first block chain is further configured to, in response to a received local chain account query request which is sent by a user terminal where the local chain account is located and used for querying an account to be queried on the first block chain, search identity record information where an account identifier of the account to be queried is located from a local chain identity record information table which is pre-stored in the first block chain, and send a storage address in the searched identity record information to the first cross-chain gateway, where the local chain account query request includes the account identifier of the account to be queried, and the identity record information in the local chain identity record information table includes the account identifier and the storage address used for storing account identity description information of the account indicated by the account identifier;
the first cross-link gateway is further configured to acquire account identity description information of an account to be checked on the first blockchain according to the received storage address, and send the acquired account identity description information to the first blockchain;
the first blockchain is further configured to receive account identity description information of the account to be checked on the first blockchain, which is returned by the first cross-chain gateway, and send the received account identity description information to the user terminal.
3. The account inquiry system of claim 1,
the relay chain is further configured to search, in response to receiving a local chain account query request, which is sent by the first blockchain through the first cross-chain gateway and used for querying an account to be queried on the relay chain, identity record information where an account identifier of the account to be queried on the relay chain is located, from a local chain identity record information table pre-stored in the relay chain; in response to the identity record information where the account identifier of the account to be checked on the relay chain is located, sending the searched identity record information to the first block chain through the first cross-chain gateway;
the first blockchain is further configured to receive the searched identity record information, and send a storage address in the searched identity record information to the first cross-chain gateway;
the first cross-link gateway is configured to acquire account identity description information of an account to be checked on the relay chain according to the received storage address, and send the acquired account identity description information to the first blockchain, so that the first blockchain performs identity authentication on the account to be checked on the relay chain based on the acquired account identity description information.
4. The account inquiry system of claim 2, further comprising at least one storage server, wherein the first blockchain realizes pre-storing of the table of identity records of the blockchain by performing a construction step, wherein the construction step comprises:
in response to receiving an identity registration request which is sent by a user terminal where the local chain account is located and comprises the account identification and the account identity description information of the local chain account, sending the data storage type of the first block chain and the account identity description information of the local chain account to the first cross-chain gateway, so that the first cross-chain gateway stores the account identity description information of the local chain account to a storage server matched with the data storage type;
receiving a storage address returned by the first cross-link gateway aiming at the account identity description information of the current link account;
and storing the whole of the account identification of the chain account, the storage address, the hash value of the account identity description information of the chain account and the account state parameter with the value as a first preset value into a chain identity record information table as identity record information, wherein the first preset value is used for indicating that the chain account is currently in a registered state to be checked.
5. The account inquiry system of claim 4, wherein said constructing step further comprises:
and when the audit result information indicates that the audit is passed, the value of the account state parameter in the corresponding identity record information is modified to a second preset value, wherein the second preset value is used for indicating that the account is currently in an audit passed state.
6. The account inquiry system of claim 4, wherein said constructing step further comprises:
in response to receiving an identity updating request which is sent by a user terminal where a local chain account is located and comprises an account identifier of the local chain account and new account identity description information, sending the data storage type of the first block chain and the new account identity description information of the local chain account to the first cross-chain gateway, so that the first cross-chain gateway stores the new account identity description information of the local chain account to a storage server matched with the data storage type;
receiving a new storage address returned by the first cross-link gateway aiming at the new account identity description information of the current link account;
and modifying the storage address in the identity record information corresponding to the chain account into the new storage address, modifying the hash value of the account identity description information into the hash value of the new account identity description information, and modifying the value of the account state parameter into a third preset value, wherein the third preset value is used for indicating that the chain account is currently in an updated state to be checked.
7. The account inquiry system according to any one of claims 1 to 6, wherein the system further comprises a third blockchain, and any one or more blockchains included in the system stores a own-chain identity record information table in advance, and the identity record information in the own-chain identity record information table includes an account identifier, a storage address for storing account identity description information of an account identified by the account identifier, and an account status parameter for indicating an account status of the account identified by the account identifier; and
the third block chain is configured to send a cross-chain account freezing request to a receive chain, where the cross-chain account freezing request includes an account identifier of an account to be frozen and a chain identifier of the chain to be frozen, and the receive chain includes any one or more of the following: the first blockchain, the second blockchain, the relay chain;
the receiving chain is used for receiving a cross-chain account freezing request sent by the third block chain; and in the block chain indicated by the chain identifier of the chain to be frozen, modifying the value of the account state parameter corresponding to the account identifier of the account to be frozen into a fourth preset value, wherein the fourth preset value is used for indicating that the account to be frozen is in the frozen state currently.
8. The account inquiry system of claim 7,
the first cross-link gateway is further configured to cache the searched identity record information returned by the relay link for the cross-link account query request; in response to receiving the second cross-chain account query request sent by the first blockchain, obtaining account identity description information of an account to be queried on the second blockchain according to a storage address included in the cached identity record information, and sending the obtained account identity description information to the first blockchain;
the first cross-link gateway is further configured to, when the blockchain in communication connection modifies the value of the account state parameter in the identity record information where the account identifier of the account to be frozen is located to a fourth preset value, cache the identity record information whose value of the account state parameter is the fourth preset value.
9. A cross-chain gateway communicatively coupled to a first blockchain and a relay chain, respectively, the cross-chain gateway comprising: an information transfer unit and an information reading unit, wherein,
the information transfer unit is configured to forward a cross-chain account query request of the first blockchain to the relay chain, where the cross-chain account query request includes an account identifier of an account to be queried on a second blockchain; forwarding identity record information searched by the relay chain aiming at the cross-chain account inquiry request to the first block chain, wherein the identity record information comprises an account identifier and a storage address used for storing account identity description information of an account marked by the account identifier;
the information reading unit is configured to receive a storage address in the searched identity record information, where the storage address is sent by the first block chain; and according to the received storage address, acquiring account identity description information of the account to be checked on the second blockchain, and sending the acquired account identity description information to the first blockchain, so that the first blockchain performs identity authentication on the account to be checked on the second blockchain based on the acquired account identity description information.
10. The cross-chain gateway of claim 9, further comprising an information storage unit, wherein,
the information storage unit is used for responding to the received data storage type and the account identity description information sent by the first block chain, storing the received account identity description information to a storage server matched with the data storage type, and returning a storage address aiming at the received account identity description information to the block chain.
CN202011584892.6A 2020-12-28 2020-12-28 Account inquiry system and cross-link gateway Active CN112669038B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011584892.6A CN112669038B (en) 2020-12-28 2020-12-28 Account inquiry system and cross-link gateway

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011584892.6A CN112669038B (en) 2020-12-28 2020-12-28 Account inquiry system and cross-link gateway

Publications (2)

Publication Number Publication Date
CN112669038A true CN112669038A (en) 2021-04-16
CN112669038B CN112669038B (en) 2024-03-15

Family

ID=75411345

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011584892.6A Active CN112669038B (en) 2020-12-28 2020-12-28 Account inquiry system and cross-link gateway

Country Status (1)

Country Link
CN (1) CN112669038B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113422733A (en) * 2021-08-25 2021-09-21 腾讯科技(深圳)有限公司 Service processing method and device of block chain, computer equipment and storage medium
CN113923228A (en) * 2021-06-02 2022-01-11 支付宝(杭州)信息技术有限公司 Cross-chain interaction method and device
WO2023088136A1 (en) * 2021-11-16 2023-05-25 中兴通讯股份有限公司 Cross-blockchain method, device, and readable storage medium
WO2023124302A1 (en) * 2021-12-31 2023-07-06 杭州趣链科技有限公司 Data processing method and apparatus, terminal device and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017054481A1 (en) * 2015-09-29 2017-04-06 腾讯科技(深圳)有限公司 Information verification and processing method and apparatus, and information processing system
CN109257342A (en) * 2018-09-04 2019-01-22 阿里巴巴集团控股有限公司 Authentication method, system, server and readable storage medium storing program for executing of the block chain across chain
CN110751475A (en) * 2019-10-24 2020-02-04 杭州趣链科技有限公司 Cross-chain method, system, equipment and storage medium for blockchain transaction
CN111353175A (en) * 2020-05-22 2020-06-30 腾讯科技(深圳)有限公司 Data processing method, device, equipment, block chain system and storage medium
CN111488615A (en) * 2020-04-08 2020-08-04 北京瑞策科技有限公司 Cross-link realization method and device for service data block chain
CN111737726A (en) * 2020-04-08 2020-10-02 北京瑞策科技有限公司 Relation data query method and device based on business data block chain
CN111935318A (en) * 2020-09-28 2020-11-13 北京百度网讯科技有限公司 Cross-link data verification method, device, equipment and medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017054481A1 (en) * 2015-09-29 2017-04-06 腾讯科技(深圳)有限公司 Information verification and processing method and apparatus, and information processing system
CN109257342A (en) * 2018-09-04 2019-01-22 阿里巴巴集团控股有限公司 Authentication method, system, server and readable storage medium storing program for executing of the block chain across chain
CN110751475A (en) * 2019-10-24 2020-02-04 杭州趣链科技有限公司 Cross-chain method, system, equipment and storage medium for blockchain transaction
CN111488615A (en) * 2020-04-08 2020-08-04 北京瑞策科技有限公司 Cross-link realization method and device for service data block chain
CN111737726A (en) * 2020-04-08 2020-10-02 北京瑞策科技有限公司 Relation data query method and device based on business data block chain
CN111353175A (en) * 2020-05-22 2020-06-30 腾讯科技(深圳)有限公司 Data processing method, device, equipment, block chain system and storage medium
CN111935318A (en) * 2020-09-28 2020-11-13 北京百度网讯科技有限公司 Cross-link data verification method, device, equipment and medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
叶少杰等: "BitXHub:基于侧链中继的异构区块链互操作平台", 《计算机科学》, vol. 47, no. 6, pages 296 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113923228A (en) * 2021-06-02 2022-01-11 支付宝(杭州)信息技术有限公司 Cross-chain interaction method and device
CN113422733A (en) * 2021-08-25 2021-09-21 腾讯科技(深圳)有限公司 Service processing method and device of block chain, computer equipment and storage medium
CN113422733B (en) * 2021-08-25 2021-11-05 腾讯科技(深圳)有限公司 Service processing method and device of block chain, computer equipment and storage medium
WO2023088136A1 (en) * 2021-11-16 2023-05-25 中兴通讯股份有限公司 Cross-blockchain method, device, and readable storage medium
WO2023124302A1 (en) * 2021-12-31 2023-07-06 杭州趣链科技有限公司 Data processing method and apparatus, terminal device and storage medium

Also Published As

Publication number Publication date
CN112669038B (en) 2024-03-15

Similar Documents

Publication Publication Date Title
CN112669038A (en) Account inquiry system and cross-chain gateway
US11914712B1 (en) Blockchain based secure naming and update verification
KR102577139B1 (en) Smart contract-based data processing methods, devices, and storage media
CN109636427B (en) Business processing method, device, medium and electronic equipment based on block chain system
CN1925485B (en) Data server, data management method, and data management system
US11687522B2 (en) High performance distributed system of record with delegated transaction signing
US6684438B2 (en) Method of using cache to determine the visibility to a remote database client of a plurality of database transactions
US7219134B2 (en) Network system
CN101626563B (en) Data storage system in communication network and information processing method
US20120166586A1 (en) Bidirectional data transfer optimization and content control for networks
CN103150394A (en) Distributed file system metadata management method facing to high-performance calculation
CN105119973A (en) User information processing method and user information processing server
CN107391557B (en) Block chain serial query method and system for setting out-of-chain fault table
CN111353177A (en) Block chain-based privacy large file storage system
CN107463596B (en) Block chain parallel query method and system for setting out-of-chain fault table
CN111783050A (en) Role and authority control system of website user
CN114143261A (en) Method and system for dynamic routing of back-end address by API gateway
WO2022140950A1 (en) Account query system and cross-chain gateway
JP2020038438A (en) Management device, management system and program
US20150019755A1 (en) Data-centric communications system, node, and data forwarding method
CN112445841B (en) Account query method, device, system, server and medium
CN102144373A (en) Probabilistic dynamic router-server mesh routing
KR20210082481A (en) Database management service providing system
CN110928923A (en) Data storage method and system based on block chain
JP2008287660A (en) Cache server, cache management method and cache management program

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