WO2022140950A1 - Account query system and cross-chain gateway - Google Patents

Account query system and cross-chain gateway Download PDF

Info

Publication number
WO2022140950A1
WO2022140950A1 PCT/CN2020/140286 CN2020140286W WO2022140950A1 WO 2022140950 A1 WO2022140950 A1 WO 2022140950A1 CN 2020140286 W CN2020140286 W CN 2020140286W WO 2022140950 A1 WO2022140950 A1 WO 2022140950A1
Authority
WO
WIPO (PCT)
Prior art keywords
account
chain
blockchain
identity
cross
Prior art date
Application number
PCT/CN2020/140286
Other languages
French (fr)
Chinese (zh)
Inventor
李伟
邱炜伟
汪小益
张帅
匡立中
Original Assignee
杭州趣链科技有限公司
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 杭州趣链科技有限公司 filed Critical 杭州趣链科技有限公司
Priority to JP2023539355A priority Critical patent/JP2024501987A/en
Priority to PCT/CN2020/140286 priority patent/WO2022140950A1/en
Publication of WO2022140950A1 publication Critical patent/WO2022140950A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/40Authorisation, e.g. identification of payer or payee, verification of customer or shop credentials; Review and approval of payers, e.g. check credit lines or negative lists

Definitions

  • the present application relates to the field of computer technology, and in particular to an account query system and a cross-chain gateway.
  • Blockchain is a distributed shared ledger and database, which has the characteristics of decentralization, immutability, traceability, traceability, collective maintenance, openness and transparency.
  • One of the purposes of the embodiments of this application is to provide an account query system and a cross-chain gateway, which aims to solve the problem that the on-chain identities between different blockchains in related technologies are usually not interoperable, and one blockchain cannot obtain The identity information of the account on another blockchain cannot be authenticated across the blockchain, resulting in the problem that the security of the transaction across the blockchain is not high enough.
  • an account query system which includes: a first blockchain, a second blockchain, a first cross-chain gateway, a second cross-chain gateway and a relay chain, and the first blockchain passes
  • the first cross-chain gateway is communicatively connected to the relay chain
  • the second blockchain is communicatively connected to the relay chain through the second cross-chain gateway.
  • the relay chain sends a cross-chain account query request, wherein the cross-chain account query request includes the account identifier of the account to be checked on the second blockchain; the relay chain is used to receive the cross-chain account query request, and pre-stores it from the relay chain In the cross-chain identity record information table, look up the identity record information where the account identifier is located, wherein the identity record information in the cross-chain identity record information table includes the account identifier and the account identity description information used to store the account identified by the account identifier.
  • the first blockchain in response to finding the identity record information where the account identifier is located, send the found identity record information to the first blockchain through the first cross-chain gateway; the first blockchain is also used to receive the found identity record information, send the storage address in the found identity record information to the first cross-chain gateway; the first cross-chain gateway is used to obtain the account identity of the account to be checked on the second blockchain according to the received storage address description information, and sending the obtained account identity description information to the first blockchain, so that the first blockchain can authenticate the account to be checked on the second blockchain based on the obtained account identity description information.
  • a cross-chain gateway is provided, wherein the cross-chain gateway is communicatively connected to the first blockchain and the relay chain, respectively, and the cross-chain gateway includes: an information transmission unit and an information reading unit, wherein the information transmission unit , which is used to forward the cross-chain account query request of the first blockchain to the relay chain, wherein the cross-chain account query request includes the account identifier of the account to be checked on the second blockchain;
  • the identity record information found by the account query request is forwarded to the first blockchain, and the identity record information includes an account identifier and a storage address for storing account identity description information of the account marked by the account identifier; the information reading unit is used to receive the first block chain.
  • the storage address in the found identity record information sent by one blockchain according to the received storage address, obtain the account identity description information of the account to be checked on the second blockchain, and the account identity description to be obtained
  • the information is sent 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 beneficial effects of the present application are: since it takes a lot of time to read the stored account identity description information, the cross-chain gateway realizes the reading of the stored account identity description information, which can reduce the workload of the blockchain. Helps to improve the data processing efficiency of the entire blockchain network.
  • 1 is a system architecture diagram of an account inquiry system provided by an embodiment of the present application.
  • FIG. 2 is a schematic structural diagram of an account inquiry system provided by an embodiment of the present application.
  • FIG. 3 is a schematic flowchart of a construction step provided by an embodiment of the present application.
  • FIG. 4 is a schematic diagram of an identity registration process provided by an embodiment of the present application.
  • FIG. 5 is a schematic diagram of an identity verification process provided by an embodiment of the present application.
  • FIG. 6 is a schematic structural diagram of an account inquiry system provided by another embodiment of the present application.
  • FIG. 7 is a schematic flowchart of an account query method provided by an embodiment of the present application.
  • FIG. 8 is a schematic flowchart of an account query method provided by an embodiment of the present application.
  • FIG. 9 is a structural block diagram of a cross-chain gateway provided by an embodiment of the present application.
  • FIG. 1 it is a system architecture diagram of an account query system provided by an embodiment of the present application.
  • the system architecture can include blockchains C1, C2, C3, C4, relay chains B1, B2, B3, B4 and cross-chain gateways P1-P7.
  • the relay chain is usually a special blockchain used to authenticate the connected blockchain and transmit information to the connected blockchain.
  • the blockchain other than the relay chain can be recorded as the application chain.
  • the blockchains mentioned in this application eg, the first blockchain, the second blockchain
  • connection relationships between blockchains C1, C2, C3, C4 and relay chains B1, B2, B3, and B4 are usually tree-like structures.
  • Relay chain B2 and relay chain B3 are leaf nodes of relay chain B1.
  • Block chain C1 and block chain C2 are leaf nodes of relay chain B2.
  • Blockchain C3 and relay chain B4 are leaf nodes of relay chain B3.
  • Blockchain C4 is the leaf node of relay chain B4.
  • Relay chain B1 is an upper-level relay chain of relay chain B2 and relay chain B3, and relay chain B3 is an upper-level relay chain of relay chain B4.
  • blockchains C1, C2, C3, and C4 can be application chains for different application scenarios.
  • the identity intercommunication between multiple leaf nodes of a relay chain can be realized, for example, the identity intercommunication between blockchain C1 and blockchain C2.
  • Identity interworking between leaf nodes of different relay chains can also be realized, for example, identity interworking between blockchain C1 and blockchain C3. It is also possible to realize intercommunication between relay chains, such as relay chain B2 and relay chain B3, and relay chain B1 and relay chain B2. It is also possible to realize the intercommunication between leaf nodes and relay chain nodes, such as blockchain C1 and relay chain B2, blockchain C1 and relay chain B3, blockchain C1 and relay chain B1, etc.
  • relation words are usually used to distinguish relative relations among multiple blockchains whose connection relation is in a tree-like structure.
  • words such as direct line, collateral line, peer, junior, and senior can be used to distinguish the relative relationship between multiple blockchains.
  • chains at the same level are of the same generation, with higher levels being seniors, and lower levels being juniors.
  • B2 B1 are its immediate predecessors.
  • relay chain B2 blockchain C1 is its immediate descendant, and relay chain B1 is its immediate predecessor.
  • all chains other than B2 and B1 are its side chains.
  • the interaction between the two chains can be realized through a cross-chain gateway.
  • the interaction between chain B1 and chain B2 can be realized through cross-chain gateway P1
  • the interaction between chain B1 and chain B3 can be realized through cross-chain gateway P2
  • the interaction between chain B2 and chain can be realized through cross-chain gateway P3.
  • the interaction between chain B2 and chain C2 is realized through cross-chain gateway P4
  • the interaction between chain B3 and chain C3 is realized through cross-chain gateway P5
  • the interaction between chain B3 and chain B4 is realized through cross-chain gateway P6.
  • the interaction between chain B4 and chain C3 is realized through the cross-chain gateway P7.
  • each leaf node is a blockchain.
  • one of the blockchains can be called the first blockchain, and the other blockchain can be called the second blockchain.
  • the first blockchain is communicatively connected to the relay chain through the first cross-chain gateway
  • the second blockchain is communicatively connected to the relay chain through the second cross-chain gateway.
  • the first blockchain can be used to send a cross-chain account query request to the relay chain through the first cross-chain gateway.
  • the relay chain can be used to receive cross-chain account query requests, and find the identity record information where the account identifier is located from the cross-chain identity record information table pre-stored in the relay chain; in response to finding the identity record information where the account identifier is located, The found identity record information is sent to the first blockchain through the first cross-chain gateway.
  • the first blockchain can also be used to receive the found identity record information, and send the storage address in the found identity record information to the first cross-chain gateway.
  • the first cross-chain gateway can be used to obtain the account identity description information of the account to be checked on the second blockchain according to the received storage address, and send the obtained account identity description information to the first blockchain, This enables the first blockchain to authenticate the account to be checked on the second blockchain based on the acquired account identity description information.
  • FIG. 2 is a schematic structural diagram of an account inquiry system provided by an embodiment of the present application.
  • the account inquiry system shown in FIG. 3 includes a first blockchain 201 , a second blockchain 202 , a first cross-chain gateway 203 , a second cross-chain gateway 204 and a relay chain 205 , and the first blockchain 201
  • the first cross-chain gateway 203 is communicatively connected to the relay chain 205
  • the second blockchain 202 is communicatively connected to the relay chain 205 through the second cross-chain gateway 204 .
  • the first blockchain 201 is used to send a cross-chain account query request to the relay chain through the first cross-chain gateway.
  • the cross-chain account query request includes the account identifier of the account to be checked on the second blockchain.
  • the above account to be checked is usually the account to be checked.
  • each blockchain usually has many blockchain accounts, and each blockchain account has a corresponding blockchain account address.
  • this application may refer to the blockchain account as an account for short.
  • the above account identifier is usually information used to identify the account.
  • the account identifier can usually indicate the account and the blockchain where the account is located.
  • the account identifier can be: 001:0x1234567, where 001 can be the identifier of the blockchain, and 0x1234567 is the code of the account on the blockchain identified as 001.
  • the first blockchain 201 may send the 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 for the identity record information where the account identifier is located from the cross-chain identity record information table pre-stored in the relay chain. In response to finding the identity record information where the account identifier is located, the found identity record information is sent to the first blockchain through the first cross-chain gateway.
  • the identity record information in the cross-chain identity record information table includes an account identifier and a storage address for storing account identity description information of the account marked by the account identifier.
  • account identity description information is usually information used to describe the account identity.
  • account identity description information may include, but is not limited to, account address, account public key, account encryption algorithm, account registration time, and the like.
  • Account address usually refers to the address of a blockchain account.
  • Account public key usually refers to the public key used by the blockchain account.
  • Account encryption algorithm usually refers to the encryption algorithm used by blockchain accounts.
  • the specific format of the account identity description information may be the object notation format (JavaScript Object Notation, JSON), or the extensible markup language format (eXtensible Markup Language format). Language, XML), can also be another markup language format (Yet Another Markup Language, YAML) etc.
  • each blockchain may be pre-stored with a local chain identity record information table for recording relevant information of accounts on this chain.
  • the identity record information table of this chain stored in each blockchain has multiple pieces of identity record information.
  • a cross-chain identity record information table is usually stored, and the stored cross-chain identity record information table usually has the identity corresponding to the account on the leaf node blockchain of the relay chain. record information.
  • the cross-chain identity record information table stored by the relay chain can be backed up. In this way, identity interoperability between blockchains can be realized. For example, with reference to FIG.
  • the relay chain B1 may simultaneously have the cross-chain identity record information table stored by the relay chain B2, the cross-chain identity record information table stored by the relay chain B3, and the cross-chain identity record information table stored by B4. Record information sheet.
  • the relay chain B2 can send a continuation query request to the upper-level relay chain B1, so as to query the identity record information corresponding to the account on the blockchain C3 through the relay chain B1.
  • the relay chain 205 may receive a cross-chain account query request. Then, using the account identifier of the account to be checked, the identity record information where the account identifier is located is searched from the cross-chain identity record information table pre-stored in the relay chain 205 . Afterwards, the found identity record information is sent to the first cross-chain gateway 203 , so that the first cross-chain 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 the storage address in the found identity record information to the first cross-chain gateway.
  • 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-chain gateway 203 .
  • the first cross-chain gateway 203 is configured to obtain the account identity description information of the account to be checked on the second blockchain according to the received storage address, and send the obtained account identity description information to the first blockchain, Make the first blockchain perform identity authentication on the account to be checked on the second blockchain based on the acquired account identity description information.
  • the first cross-chain gateway 203 may use the received storage address to obtain account identity description information from the location indicated by the storage address. Because the storage address is the description information of the address used to store the account identity description information of the account to be checked on the second blockchain. Therefore, at this time, the first cross-chain gateway 203 can obtain the account identity description information of the account to be checked on the second blockchain. After that, the first cross-chain gateway 203 may send the acquired account identity description information to the first blockchain 201 . In this way, the first blockchain 201 can receive the account identity description information, so as to perform identity authentication on the account to be checked on the second blockchain.
  • the relay chain and the cross-chain gateway can realize identity intercommunication between different blockchains, which helps to improve the security of transactions between different blockchains.
  • the account identity description information corresponding to the account identifier of the account to be checked is searched from the cross-chain identity record information table, which is technically easy to implement and helps to improve the efficiency of account query.
  • the storage address of the account identity description information is stored in the cross-chain identity record information table of the relay chain, instead of storing the account identity description information itself, which can save the storage space of the relay chain and simplify the cross-chain identity record information table.
  • 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 by accessing the storage address, which helps to save the entire The storage space of the blockchain network.
  • the cross-chain gateway realizes the reading of the stored account identity description information, which can reduce the workload of the blockchain and help improve the entire blockchain. The data processing efficiency of the blockchain network.
  • the relay chain is further configured to: in response to not finding the identity record information where the account identifier is located, send a communication link including the account identifier to the upper-level relay chain of the communication connection the continuation query request. Receive the identity record information where the account identifier is located and send the received identity record information to the first blockchain through the first cross-chain gateway.
  • the continuing query request may include the account identifier of the account to be queried on the second blockchain.
  • the above-mentioned execution body can send a continuation query request to the upper-level relay chain.
  • the upper-level relay chain can generally use the account identifier in the continuation query request to continue the query from one or more cross-chain identity record information tables stored in the upper-level relay chain. If the identity record information where the account identifier is located is found, the found identity record information is sent to the relay chain. In this way, the above-mentioned relay chain can receive the identity record information of the account identifier returned by the upper-level relay chain, and send the received identity record information of the account identifier to the first blockchain.
  • sending a cross-chain account query request to the relay chain through the first cross-chain gateway includes: in response to receiving the user terminal where the account of this chain is located, sending The cross-chain account query request is sent to the relay chain through the first cross-chain gateway.
  • the cross-chain account query request includes the account identifier of the account to be checked on the second blockchain.
  • the local chain account here usually refers to the account on the first blockchain. Users can log in to the account on the blockchain through the user terminal.
  • the first blockchain can receive a cross-chain account query request sent by the user terminal where the account of this chain is located. Then, the received cross-chain account query request is sent to the relay chain through the cross-chain gateway. In this way, when the relay chain returns the identity record information where the account identifier is located, the first blockchain can feed back the corresponding account identity description information to the user terminal based on the identity record information.
  • the first blockchain can also be used to retrieve the local-chain account query request sent by the user terminal where the local-chain account is located and used to query the account to be checked on the first blockchain.
  • the pre-stored identity record information table of this chain look up the identity record information where the account identifier of the account to be checked is located, and send the storage address in the found identity record information to the first cross-chain gateway.
  • the on-chain account query request includes the account identifier of the account to be checked, and the identity record information in the on-chain identity record information table includes the account identifier and the storage address for storing the account identity description information of the account indicated by the account identifier.
  • the account to be checked is an account on the first blockchain.
  • the first blockchain can receive the query request of the account of the chain sent by the user terminal where the account of the chain is located.
  • the local chain account query request is used to query the account identity description information of the account on the first blockchain.
  • the first blockchain can use the account identifier included in the local chain account query request to search for the local chain identity record information table pre-stored in the first blockchain.
  • the storage address in the found identity record information is sent to the first cross-chain gateway.
  • the first cross-chain gateway is further configured to obtain account identity description information of the account to be checked on the first blockchain according to the received storage address, and send the obtained account identity description information to the first blockchain.
  • the first cross-chain gateway can receive the storage address sent by the first blockchain. After receiving the storage address, the first cross-chain gateway can directly read the account identity description information from the location indicated by the storage address. Because the storage address is the description information of the address used to store the account identity description information of the account to be checked on the first blockchain. Therefore, at this time, the first cross-chain gateway can obtain the account identity description information of the account to be checked on the first blockchain. Then, the acquired account identity description information is sent to the first blockchain.
  • the first blockchain is further configured to receive the account identity description information of the account to be checked on the first blockchain returned by the first cross-chain gateway, and send the received account identity description information to the user terminal.
  • the first blockchain can receive the account identity description information of the account to be checked on the first blockchain returned by the first cross-chain gateway, and can send the account identity description information to the user terminal.
  • the identity record information table of this chain is stored in the blockchain, so that when the user terminal where an account on the blockchain is located needs to query the relevant information of another account on the blockchain, the block The chain can send the account identity description information of the above-mentioned another account to the user terminal. Helps to increase the speed of data processing and thus the speed of transactions between the same blockchains. In addition, not all query requests are implemented through the relay chain, which can save the processing resources of the relay chain.
  • the relay chain is also used to, in response to receiving the local chain account query request sent by the first blockchain through the first cross-chain gateway and used for querying the account to be checked on the relay chain, from the pre-stored account in the relay chain.
  • the identity record information table of this chain look up the identity record information of the account identifier of the account to be checked on the relay chain; in response to finding the identity record information of the account identifier of the account to be checked on the relay chain, through the first
  • the cross-chain gateway sends the found identity record information to the first blockchain.
  • the account to be checked is the account on the relay chain.
  • the relay chain can receive the account query request sent by the first blockchain through the first cross-chain gateway.
  • the local chain account query request is used to query the account identity description information of the account on the relay chain.
  • the Relay Chain After the Relay Chain receives the local chain account query request, it can use the account identifier included in the local chain account inquiry request to find the identity of the account identifier from the local chain identity record information table pre-stored in the Relay Chain record information. Then, the found identity record information is forwarded to the first blockchain through the first cross-chain gateway.
  • the first blockchain is further configured to receive the found identity record information, and send the storage address in the found identity record information to the first cross-chain gateway.
  • 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.
  • the first cross-chain gateway is used to obtain the account identity description information of the account to be checked on the relay chain according to the received storage address, and send the obtained account identity description information to the first blockchain, so that the first The blockchain authenticates the account to be checked on the relay chain based on the obtained account identity description information.
  • the first cross-chain gateway may use the received storage address to obtain account identity description information from the location indicated by the storage address. Because the storage address is the description information of the address used to store the account identity description information of the account to be checked on the relay chain. Therefore, at this time, the first cross-chain gateway can obtain the account identity description information of the account to be checked on the relay chain. After that, the first cross-chain gateway can send the acquired account identity description information to the first blockchain. In this way, the first blockchain can receive the account identity description information, so as to authenticate the account to be checked on the relay chain.
  • the account on the relay chain can be queried, so as to perform identity authentication on the account to be checked on the relay chain.
  • system further includes at least one storage server, and the first blockchain realizes pre-storing the identity record information table of this chain by executing the construction steps.
  • FIG. 3 is a schematic flowchart of construction steps provided in an embodiment of the present application. As shown in Figure 3, the building step may include steps 301-303. It should be pointed out that the execution subject of steps 301-303 is the first blockchain.
  • Step 301 in response to receiving the identity registration request sent by the user terminal where the account of this chain is located, including the account identification and account identity description information of the account of this chain, the data storage type of the first blockchain and the account identity of the account of this chain are stored.
  • the description information is sent to the first cross-chain gateway, so that the first cross-chain gateway stores the account identity description information of the account in this chain to a storage server that matches the data storage type.
  • the identity registration request described above is generally information for requesting registration.
  • the above-mentioned storage server may be a preset server for storing data. There can 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 usually refers to the type of data storage. As an example, the above data storage types may include, but are not limited to, support for structured query language (Structured Query Language, SQL), interplanetary file system (Inter Planetary File) System, IPFS), remote dictionary service (REmote DIctionary Server, Redis), etc.
  • the first blockchain when receiving the identity registration request, can send the data storage type adopted by the first blockchain and the account identity description information of the account of this chain to the first cross-chain gateway.
  • the first cross-chain gateway can store the account identity description information in the storage server corresponding to the data storage type.
  • Step 302 Receive the storage address returned by the first cross-chain gateway for the account identity description information of the account on this chain.
  • the first cross-chain gateway stores the account identity description information of the account on this chain into the storage server, it usually returns the storage address to the first blockchain. In this way, the first blockchain can receive the storage address.
  • Step 303 Store the entirety of the account identifier, storage address, account identity description information of the account of this chain, and the account status parameter whose value is the first preset value as the identity record information into the identity of this chain. Record information sheet.
  • the first preset value is used to indicate that the account of this chain is currently in the state of registration pending review.
  • the first blockchain can store the account identifier, the storage address, the hash value of the account identity description information, and the account status parameter as a piece of identity record information in the identity record information table of this chain.
  • FIG. 4 is a schematic diagram of an identity registration process provided by an embodiment of the present application.
  • Step 401 the user terminal where the account is located sends an identity registration request to the application chain, where the identity registration request includes the account identifier and account identity description information.
  • the application chain may be the above-mentioned first blockchain, the above-mentioned second blockchain, or other blockchains.
  • Step 402 the application chain sends the data storage type and account identity description information of the application chain to the cross-chain gateway.
  • Step 403 the cross-chain gateway stores the account identity description information to a storage server matching the data storage type.
  • Step 404 the storage server stores the account identity description information, and returns the storage address to the cross-chain gateway.
  • Step 405 the cross-chain gateway returns the storage address of the account identity description information to the application chain.
  • Step 406 the application chain stores the account identifier, storage address and the hash value of the account identity description information as a piece of identity record information into the identity record information table of this chain.
  • each piece of identity record information in the identity record information table of this chain may also have an account state parameter used to indicate the account state.
  • Different values of the account state parameter may indicate different account states.
  • the value of the account status parameter may be a first preset value, which is used to indicate that the account status is a registration pending status.
  • the above construction step may further include: performing a preset audit operation on the identity record information whose value of the corresponding account status parameter in the identity record information table of the local chain is the first preset value, Obtaining audit result information, and modifying the value of the account status parameter in the corresponding identity record information to a second preset value when the audit result information indicates that the audit is passed.
  • the second preset value is used to indicate that the account is currently in an approved state.
  • the above-mentioned preset audit operation may be an operation of auditing account identity description information.
  • the above-mentioned preset audit operation may be: the blockchain controls all or part of the blockchain nodes of the blockchain to perform the following steps: using the storage address in the identity record information to download the account identity description information. Then, the hash value of the downloaded identity description information is calculated. Finally, the calculated hash value is compared with the hash value in the identity record information, and if the two are the same, the approval information for indicating approval is returned to the blockchain. On the contrary, if the two are different, the verification failure indication information for indicating failure of the verification will be returned to the blockchain.
  • the blockchain can determine whether the account identity description information of the account has passed the review by counting the number of approval indications.
  • the blockchain can modify the value of the account status parameter in the corresponding identity record information to the second preset value.
  • the second preset value is used to indicate that the account is currently in an approved state.
  • the blockchain can modify the value of the account status parameter in the corresponding identity record information to the fifth preset value.
  • the fifth preset value is used to indicate that the account is currently in a state of review and rejection.
  • the first blockchain is further configured to: respond to the modified value of the account status parameter in the corresponding identity record information As the second preset value, the modified corresponding identity record information is sent 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.
  • the second preset value is used to indicate that the account is currently in an approved state.
  • the blockchain can send this identity record information to the relay chain.
  • the relay chain can use the identity record information to update the cross-chain identity record information table.
  • the relay chain can add the identity record information to the cross-chain identity record information table.
  • FIG. 5 is a schematic diagram of an identity verification process provided in an embodiment of the present application.
  • the application chain audits the identity record information of the account. If the audit fails, steps 501-504 are performed. When the verification is passed, steps 505-509 are performed.
  • Step 501 the application chain sends the storage address of the account identity description information in the identity record information to be reviewed to the cross-chain gateway.
  • Step 502 the cross-chain 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-chain gateway.
  • Step 504 the application chain modifies the value of the account status parameter in the reviewed identity record information to a fifth preset value, and deletes the storage address in the identity record information.
  • the fifth preset value is used to indicate that the account is currently in a state of review and rejection.
  • Step 505 the application chain updates the identity record information table of this chain.
  • the value of the account status parameter of the identity record information that has passed the audit in the identity record information of this chain can be modified to the second preset value.
  • the second preset value is used to indicate that the account is currently in an approved state.
  • step 506 the application chain sends the verified identity record information to the cross-chain gateway.
  • Step 507 The cross-chain gateway sends the verified identity record information to the relay chain.
  • Step 508 the relay chain updates the cross-chain identity record information table.
  • the relay chain can add the verified identity record information to the cross-chain identity record information table.
  • Step 509 The relay chain sends the verified identity record information to the upper-level relay chain of the relay chain.
  • the upper-level relay chain of the relay chain can add the verified identity record information to the corresponding cross-chain identity record information table.
  • the foregoing construction step may further include the following steps 1 to 3. It should be pointed out that the execution subject of steps 1 to 3 is the first blockchain.
  • Step 1 in response to receiving the identity update request sent by the user terminal where the account of this chain is located, including the account identification of the account of this chain and the description information of the new account identity, the data storage type of the first blockchain and the new account of the account of this chain are stored.
  • the account identity description information is sent to the first cross-chain gateway, so that the first cross-chain gateway stores the new account identity description information of the account on this chain to a storage server that matches the data storage type.
  • the identity update request may be information for requesting to update the account identity description information of the account.
  • the first blockchain can send the new account identity description information in the identity update request and the data storage type of the first blockchain to the first cross-chain gateway.
  • the first cross-chain gateway can store the new account identity description information to the storage server matching the data storage type.
  • Step 2 Receive the new storage address returned by the first cross-chain gateway for the new account identity description information of the account on this chain.
  • the first cross-chain gateway After the first cross-chain gateway stores the new account identity description information of the account on this chain into the storage server, it usually returns the storage address for storing the new account identity description information, which is recorded as the new storage address here.
  • Step 3 Modify the storage address in the identity record information corresponding to the account on this chain to the new storage address, change the hash value of the account identity description information to the hash value of the new account identity description information, and change the value of the account status parameter Modified to the third preset value.
  • the third preset value is used to indicate that the account of this chain is currently in the state of update pending review.
  • the first blockchain can modify the storage address in the identity record information of the account to the new storage address, and modify the hash value of the account identity description information to the new account identity description information
  • the hash value of the account status parameter is modified to the third preset value.
  • the blockchain can audit the updated identity record information.
  • the operation of auditing the updated identity record information is basically the same as the foregoing operation of auditing the identity record information, and details are not described here.
  • the blockchain can delete the new storage address and send the new identity record to the cross-chain gateway.
  • the storage address realizes that the new account identity description information stored by the new storage address is deleted by the cross-chain gateway.
  • the blockchain can modify the identity record information where the new storage address is located to be the same as before the update.
  • FIG. 6 is a schematic structural diagram of an account inquiry system provided by an embodiment of the present application.
  • the account inquiry system shown in FIG. 6 includes a first blockchain 601, a second blockchain 602, a first cross-chain gateway 603, a second cross-chain gateway 604, and a relay chain 605.
  • the first blockchain 601 The first cross-chain gateway 603 is communicatively connected to the relay chain 605
  • the second blockchain 602 is communicatively connected to the relay chain 605 through the second cross-chain gateway 604 .
  • system may further include a third blockchain 606, and the third blockchain 606 may be an application chain or a relay chain.
  • the third blockchain 606 may be an application chain or a relay chain.
  • any one or more blockchains included in the system are pre-stored with the identity record information table of this chain, and the identity record information in the identity record information table of this chain includes the account ID and the account used to store the account marked by the account ID.
  • the third blockchain 606 can be used to send a cross-chain account freezing request to the receiving chain.
  • the cross-chain account freezing request includes the account ID of the account to be frozen and the chain ID of the chain to be frozen.
  • the receiving chain may include any one or more of the following: a first blockchain 601 , a second blockchain 602 , and a relay chain 605 .
  • Cross-chain account freeze requests are usually used to request to freeze accounts on blockchains other than this blockchain.
  • the chain to be frozen is usually the blockchain that needs to perform operations related to account freezing.
  • a chain identity is usually information used to identify a blockchain. As an example, the chain ID may be 001.
  • the third blockchain 606 may be a blockchain that has any relationship with the first blockchain 601, the second blockchain 602, and the relay chain 605 in the system.
  • the third blockchain 606 may be a direct predecessor chain, a collateral sibling chain, or the like of the relay chain 605 .
  • the third blockchain 606 may send a cross-chain account freezing request to any one or more of the first blockchain 601 , the second blockchain 602 , and the relay chain 605 .
  • the receiving chain is used to receive the cross-chain account freezing request sent by the third blockchain; in the blockchain indicated by the chain ID of the chain to be frozen, the account ID corresponding to the account ID of the account to be frozen is The value of the account status parameter is modified to the fourth preset value.
  • the fourth preset value is used to indicate that the account to be frozen is currently in a frozen state.
  • the third blockchain can send a cross-chain account freezing request to the receiving chain, so as to freeze the account across the blockchain. It is helpful to realize that when an account with malicious operations is found on a certain blockchain, a freezing request is initiated for the account in time, so as to realize the timely freezing of the account, which helps to ensure that the identity of the blockchain where the account is located can be communicated with each other. Security of other blockchains.
  • the value of the account status parameter corresponding to the account identifier of the account to be frozen is modified is the fourth preset value, which may include: in response to the determination of the chain identifier, the receiving chain indicates that the receiving chain is the chain to be frozen and the blockchain where the account to be frozen is located is the receiving chain, from the identity record information table of this chain pre-stored in the receiving chain , look up the identity record information where the account identifier of the account to be frozen is located; and modify the value of the account status parameter in the found identity record information to a fourth preset value.
  • the chain to be frozen is the receiving chain.
  • This implementation method can realize the freezing of the account on the receiving chain, so as to realize the freezing of the account across the blockchain.
  • the value of the account status parameter corresponding to the account identifier of the account to be frozen is modified is the fourth preset value, which may include: first, the receiving chain sends a cross-chain account freezing request in response to determining that the chain identifier indicates that the receiving chain is a non-to-be-frozen chain and the blockchain where the account to be frozen is located is a direct sub-chain of the receiving chain to the immediate subchain.
  • the direct sub-chain searches the identity record information where the account identifier of the account to be frozen is located from the identity record information table of this chain pre-stored in the direct sub-chain; and modifies the value of the account status parameter in the found identity record information to Fourth preset value.
  • the receiving chain is not the chain to be frozen, and the chain to be frozen is a direct child chain of the receiving chain.
  • This implementation can realize the freezing of the accounts on the direct sub-chain of the receiving chain.
  • the fourth preset value may include: first, the receiving chain, in response to determining the chain identifier indicating that the receiving chain is the chain to be frozen and the blockchain where the account to be frozen is located is a direct sub-chain of the receiving chain, from the cross-chain pre-stored in the receiving chain; In the chain identity record information table, look up the identity record information of the account identifier of the account to be frozen, and modify the value of the account status parameter in the found identity record information to the fourth preset value; send the cross-chain account freezing request to Immediate child chain.
  • the direct sub-chain searches the identity record information where the account identifier of the account to be frozen is located from the identity record information table of this chain pre-stored in the direct sub-chain; and modifies the value of the account status parameter in the found identity record information to Fourth preset value.
  • the chain to be frozen is the receiving chain and the direct child chain of the receiving chain.
  • the number of chain IDs in the cross-chain account freezing request is two.
  • the value of the account status parameter corresponding to the account identifier of the account to be frozen is modified is the fourth preset value, which may include: the receiving chain generates an identity record corresponding to the to-be-frozen account in response to determining that the chain identifier indicates that the receiving chain is a non-to-be-frozen chain and the blockchain where the to-be-frozen account is located is a side-chain of the receiving chain information, and add the generated identity record information to the cross-chain identity record information table of the receiving chain.
  • the value of the account status parameter in the generated identity record information is a fourth preset value.
  • the receiving chain since the receiving chain usually does not synchronize the identity record information of the accounts in the sidechain chain.
  • the receiving chain can 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 scope of the receiving chain.
  • the generated identity record information may include an account identifier and an account status parameter whose value is a fourth preset value.
  • the format of the identity record information needs to include the account identifier, the storage address of the account identity description information, the hash value of the account identity description information, and the account status parameter, in the generated identity record information, the storage address Usually empty, and the hash value is usually empty.
  • the account on the sidechain chain of the receiving chain can be frozen within the scope of the receiving chain, and the account can be frozen across the blockchain.
  • controlling the freezing range of the account to be frozen helps to better ensure the security of other blockchains that can communicate with the identity of the blockchain where the account is located.
  • the first cross-chain gateway is also used to cache the found identity record information returned by the relay chain for the cross-chain account query request; in response to receiving the second cross-chain account query request sent by the first blockchain, according to the cached identity
  • the storage address included in the record information is obtained, the account identity description information of the account to be checked on the second blockchain is obtained, and the obtained account identity description information is sent to the first blockchain.
  • the first cross-chain gateway is further configured to cache the account status parameter when the block chain of the communication connection modifies the value of the account status parameter in the identity record information where the account identifier of the account to be frozen is located to a fourth preset value.
  • the value is the identity record information of the fourth preset value.
  • the first cross-chain gateway can cache the returned identity record information. In this way, when the first blockchain queries the same account next time, the cached identity record information can be directly sent to the first blockchain, thereby speeding up the query efficiency.
  • the first cross-chain gateway can update the currently cached identity record information. Specifically, if the identity record information of the frozen account is cached in the first cross-chain gateway, the first cross-chain gateway can modify the value of the account status 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-chain gateway, the first cross-chain gateway may cache the identity record information of the other frozen account to the first cross-chain gateway.
  • FIG. 7 is a schematic flowchart of an account inquiry method corresponding to an account inquiry system provided by an embodiment of the present application. As shown in Figure 7, the account inquiry method includes:
  • Step 701 The first blockchain sends a cross-chain account query request to the relay chain through the first cross-chain gateway.
  • the cross-chain account query request includes the account identifier of the account to be checked on the second blockchain.
  • Step 702 the relay chain receives the cross-chain account query request, and searches for the identity record information where the account identifier is located from the cross-chain identity record information table pre-stored in the relay chain; in response to finding the identity record information where the account identifier is located, by The first cross-chain gateway sends the found identity record information to the first blockchain.
  • the identity record information in the cross-chain identity record information table includes an account identifier and a storage address for storing account identity description information of the account marked by the account identifier.
  • Step 703 The first blockchain receives the found identity record information, and sends the storage address in the found identity record information to the first cross-chain gateway.
  • Step 704 the first cross-chain gateway obtains the account identity description information of the account to be checked on the second blockchain according to the received storage address, and sends the obtained account identity description information to the first blockchain, so that The first blockchain authenticates the account to be checked on the second blockchain based on the obtained account identity description information.
  • FIG. 8 is a schematic flowchart of an account query method provided by an embodiment of the present application.
  • Step 801 the user terminal where the account is located sends an account query request of the local chain to the blockchain, and the account query request of the local chain includes the account identifier.
  • Step 802 the application chain searches the identity record information where the account identifier is located from the identity record information table of the chain. If the search is successful, steps 803-808 are performed. If the search is unsuccessful, step 809 is executed.
  • Step 803 the application chain sends the storage address in the found identity record information to the cross-chain gateway.
  • Step 804 the cross-chain gateway uses the storage address to obtain data from the location corresponding to the storage address.
  • Step 805 the storage server returns the account identity description information at the storage address to the cross-chain gateway.
  • Step 806 the cross-chain gateway sends the account identity description information to the application chain.
  • Step 807 the application chain verifies the received account identity description information.
  • the verification of the received account identity description information usually involves calculating a hash value of the received account identity description information. If the calculated hash value is the same as the hash value in the identity record information, the verification is passed. Conversely, if they are inconsistent, the verification fails.
  • Step 808 the application chain sends the verification result and account identity description information to the user terminal.
  • step 809 the application chain sends the continuation query request including the account identifier to the cross-chain gateway.
  • Step 810 the cross-chain gateway sends a continuation query request including the account identifier to the relay chain.
  • Step 811 the relay chain searches the identity record information where the account identifier is located from the cross-chain identity record information table. If the search fails, step 812 is executed. If the search is successful, the found identity record information will be sent to the AppChain through the cross-chain gateway. In this way, the application chain returns the successful search result to the user terminal by executing steps 803-808.
  • Step 812 Send a continuation query request to the upper-level relay chain to implement the search in the upper-level relay chain. If the upper-level relay chain, the upper-level relay chain of each layer of the upper-level relay chain, and even the top-most relay chain are all unsuccessfully searched, step 813 is executed.
  • Step 813 the relay chain returns the unsuccessful search result to the cross-chain gateway.
  • Step 814 the cross-chain gateway returns the unsuccessful search result to the application chain.
  • Step 815 the application chain returns the unsuccessful search result to the user terminal.
  • FIG. 9 shows a structural block diagram of a cross-chain gateway 900 provided by an embodiment of the present application.
  • the cross-chain gateway 900 includes: an information transmission unit 901 and an information reading unit 902 , wherein the cross-chain gateway is connected in communication with the first blockchain and the relay chain, respectively.
  • the information transfer unit 901 is used to forward the cross-chain account query request of the first blockchain to the relay chain, wherein the cross-chain account query request includes the account identifier of the account to be checked on the second blockchain;
  • the chain forwards the identity record information found by the cross-chain account query request to the first blockchain, and the identity record information includes the account identifier and the storage address for storing the account identity description information of the account marked by the account identifier;
  • the information reading unit 902 is configured to receive the storage address in the found identity record information sent by the first blockchain; obtain the account identity description of the account to be checked on the second blockchain according to the received storage address information, and send the obtained account identity description information to the first blockchain, so that the first blockchain can authenticate the account to be checked on the second blockchain based on the obtained account identity description information.
  • the cross-chain gateway since it takes a lot of time to read the stored account identity description information, the cross-chain gateway realizes the reading of the stored account identity description information, which can reduce the workload of the blockchain , which helps to improve the data processing efficiency of the entire blockchain network.
  • the cross-chain gateway further includes an information storage unit, wherein the information storage unit is used for receiving the data storage type and account identity description information sent by the first blockchain, The received account identity description information is stored to a storage server matching the data storage type, and the storage address for the received account identity description information is returned to the blockchain.

Abstract

Disclosed in the present application are an account query system and a cross-chain gateway. The system comprises a first blockchain, a second blockchain, a first cross-chain gateway, a second cross-chain gateway, and a relay chain; the first blockchain is communicationally connected to the relay chain by means of the first cross-chain gateway; the second blockchain is communicationally connected to the relay chain by means of the second cross-chain gateway.

Description

账户查询系统、跨链网关Account query system, cross-chain gateway 技术领域technical field
本申请涉及计算机技术领域,具体涉及一种账户查询系统、跨链网关。The present application relates to the field of computer technology, and in particular to an account query system and a cross-chain gateway.
背景技术Background technique
区块链是一个分布式的共享账本和数据库,具有去中心化、不可篡改、全程留痕、可以追溯、集体维护、公开透明等特点。Blockchain is a distributed shared ledger and database, which has the characteristics of decentralization, immutability, traceability, traceability, collective maintenance, openness and transparency.
技术问题technical problem
本申请实施例的目的之一在于:提供一种账户查询系统、跨链网关,旨在解决相关技术中不同的区块链之间的链上身份通常并不互通,一条区块链不能获取到另一条区块链上的账户的身份信息,从而不能实现跨区块链进行身份认证,导致跨区块链的交易的安全性不够高的问题。One of the purposes of the embodiments of this application is to provide an account query system and a cross-chain gateway, which aims to solve the problem that the on-chain identities between different blockchains in related technologies are usually not interoperable, and one blockchain cannot obtain The identity information of the account on another blockchain cannot be authenticated across the blockchain, resulting in the problem that the security of the transaction across the blockchain is not high enough.
技术解决方案technical solutions
为解决上述技术问题,本申请实施例采用的技术方案是:In order to solve the above-mentioned technical problems, the technical solutions adopted in the embodiments of the present application are:
第一方面,提供了一种账户查询系统,其中,包括:第一区块链、第二区块链、第一跨链网关、第二跨链网关和中继链,第一区块链通过第一跨链网关与中继链可通信连接,第二区块链通过第二跨链网关与中继链可通信连接,其中,第一区块链,用于通过第一跨链网关向中继链发送跨链账户查询请求,其中,跨链账户查询请求包括第二区块链上的待查账户的账户标识;中继链,用于接收跨链账户查询请求,从中继链中预先存储的跨链身份记录信息表中,查找账户标识所在的身份记录信息,其中,跨链身份记录信息表中的身份记录信息包括账户标识和用于存储账户标识所标示账户的账户身份描述信息的存储地址;响应于查找到账户标识所在的身份记录信息,通过第一跨链网关将查找到的身份记录信息向第一区块链发送;第一区块链,还用于接收查找到的身份记录信息,将查找到的身份记录信息中的存储地址发送至第一跨链网关;第一跨链网关,用于根据所接收的存储地址,获取第二区块链上的待查账户的账户身份描述信息,以及将获取到的账户身份描述信息向第一区块链发送,使得第一区块链基于获取到的账户身份描述信息对第二区块链上的待查账户进行身份认证。In a first aspect, an account query system is provided, which includes: a first blockchain, a second blockchain, a first cross-chain gateway, a second cross-chain gateway and a relay chain, and the first blockchain passes The first cross-chain gateway is communicatively connected to the relay chain, and the second blockchain is communicatively connected to the relay chain through the second cross-chain gateway. The relay chain sends a cross-chain account query request, wherein the cross-chain account query request includes the account identifier of the account to be checked on the second blockchain; the relay chain is used to receive the cross-chain account query request, and pre-stores it from the relay chain In the cross-chain identity record information table, look up the identity record information where the account identifier is located, wherein the identity record information in the cross-chain identity record information table includes the account identifier and the account identity description information used to store the account identified by the account identifier. address; in response to finding the identity record information where the account identifier is located, send the found identity record information to the first blockchain through the first cross-chain gateway; the first blockchain is also used to receive the found identity record information, send the storage address in the found identity record information to the first cross-chain gateway; the first cross-chain gateway is used to obtain the account identity of the account to be checked on the second blockchain according to the received storage address description information, and sending the obtained account identity description information to the first blockchain, so that the first blockchain can authenticate the account to be checked on the second blockchain based on the obtained account identity description information.
第二方面,提供了一种跨链网关,其中,跨链网关分别与第一区块链和中继链通信连接,跨链网关包括:信息传递单元和信息读取单元,其中,信息传递单元,用于将第一区块链的跨链账户查询请求转发至中继链,其中,跨链账户查询请求包括第二区块链上的待查账户的账户标识;将中继链针对跨链账户查询请求查找到的身份记录信息转发至第一区块链,身份记录信息包括账户标识和用于存储账户标识所标示账户的账户身份描述信息的存储地址;信息读取单元,用于接收第一区块链发送的、查找到的身份记录信息中的存储地址;根据所接收的存储地址,获取第二区块链上的待查账户的账户身份描述信息,以及将获取到的账户身份描述信息向第一区块链发送,使得第一区块链基于获取到的账户身份描述信息对第二区块链上的待查账户进行身份认证。In a second aspect, a cross-chain gateway is provided, wherein the cross-chain gateway is communicatively connected to the first blockchain and the relay chain, respectively, and the cross-chain gateway includes: an information transmission unit and an information reading unit, wherein the information transmission unit , which is used to forward the cross-chain account query request of the first blockchain to the relay chain, wherein the cross-chain account query request includes the account identifier of the account to be checked on the second blockchain; The identity record information found by the account query request is forwarded to the first blockchain, and the identity record information includes an account identifier and a storage address for storing account identity description information of the account marked by the account identifier; the information reading unit is used to receive the first block chain. The storage address in the found identity record information sent by one blockchain; according to the received storage address, obtain the account identity description information of the account to be checked on the second blockchain, and the account identity description to be obtained The information is sent 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.
有益效果beneficial effect
本申请的有益效果在于:由于读取所存储的账户身份描述信息需要耗费较多时间,由跨链网关实现对所存储的账户身份描述信息进行读取,可以减少区块链的工作量,有助于提高整个区块链网络的数据处理效率。The beneficial effects of the present application are: since it takes a lot of time to read the stored account identity description information, the cross-chain gateway realizes the reading of the stored account identity description information, which can reduce the workload of the blockchain. Helps to improve the data processing efficiency of the entire blockchain network.
附图说明Description of drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例或示范性技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其它的附图。In order to illustrate the technical solutions in the embodiments of the present application more clearly, the following briefly introduces the accompanying drawings that are used in the description of the embodiments or exemplary technologies. Obviously, the drawings in the following description are only for the present application. In some embodiments, for those of ordinary skill in the art, other drawings can also be obtained according to these drawings without any creative effort.
图1是本申请一实施例提供的账户查询系统的系统架构图;1 is a system architecture diagram of an account inquiry system provided by an embodiment of the present application;
图2是本申请一实施例提供的账户查询系统的结构示意图;2 is a schematic structural diagram of an account inquiry system provided by an embodiment of the present application;
图3是本申请一实施例提供的构建步骤的流程示意图;3 is a schematic flowchart of a construction step provided by an embodiment of the present application;
图4是本申请一实施例提供的身份注册流程示意图;4 is a schematic diagram of an identity registration process provided by an embodiment of the present application;
图5是本申请一实施例提供的身份审核流程示意图;5 is a schematic diagram of an identity verification process provided by an embodiment of the present application;
图6是本申请另一实施例提供的账户查询系统的结构示意图;6 is a schematic structural diagram of an account inquiry system provided by another embodiment of the present application;
图7是本申请一实施例提供的账户查询方法的流程示意图;7 is a schematic flowchart of an account query method provided by an embodiment of the present application;
图8是本申请一实施例提供的账户查询方法的流程示意图;8 is a schematic flowchart of an account query method provided by an embodiment of the present application;
图9是本申请一实施例提供的跨链网关的结构框图。FIG. 9 is a structural block diagram of a cross-chain gateway provided by an embodiment of the present application.
本发明的实施方式Embodiments of the present invention
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处所描述的具体实施例仅用以解释本申请,并不用于限定本申请。In order to make the purpose, technical solutions and advantages of the present application more clearly understood, the present application will be described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application, but not to limit the present application.
为了说明本申请所述的技术方案,以下结合具体附图及实施例进行详细说明。In order to illustrate the technical solutions described in the present application, a detailed description is given below with reference to the specific drawings and embodiments.
实施例一Example 1
参考图1,为本申请实施例提供的一种账户查询系统的系统架构图。Referring to FIG. 1 , it is a system architecture diagram of an account query system provided by an embodiment of the present application.
如图1所示,系统架构可以包括区块链C1、C2、C3、C4、中继链B1、B2、B3、B4和跨链网关P1-P7。其中,中继链通常是用于对所连接的区块链进行鉴权以及向所连接的区块链传输信息的特殊区块链。实际应用中,为了区别描述,可以将除中继链外的区块链记作应用链。另外,除特别说明外,本申请所提及的区块链(如,第一区块链、第二区块链)均为应用链。As shown in Figure 1, the system architecture can include blockchains C1, C2, C3, C4, relay chains B1, B2, B3, B4 and cross-chain gateways P1-P7. Among them, the relay chain is usually a special blockchain used to authenticate the connected blockchain and transmit information to the connected blockchain. In practical applications, in order to distinguish the description, the blockchain other than the relay chain can be recorded as the application chain. In addition, unless otherwise specified, the blockchains mentioned in this application (eg, the first blockchain, the second blockchain) are all application chains.
区块链C1、C2、C3、C4和中继链B1、B2、B3、B4之间的连接关系通常呈树状结构,中继链B2和中继链B3为中继链B1的叶子节点。区块链C1和区块链C2为中继链B2的叶子节点。区块链C3和中继链B4为中继链B3的叶子节点。区块链C4为中继链B4的叶子节点。中继链B1为中继链B2和中继链B3的上级中继链,以及中继链B3为中继链B4的上级中继链。实际应用中,区块链C1、C2、C3、C4可以是不同应用场景的应用链。The connection relationships between blockchains C1, C2, C3, C4 and relay chains B1, B2, B3, and B4 are usually tree-like structures. Relay chain B2 and relay chain B3 are leaf nodes of relay chain B1. Block chain C1 and block chain C2 are leaf nodes of relay chain B2. Blockchain C3 and relay chain B4 are leaf nodes of relay chain B3. Blockchain C4 is the leaf node of relay chain B4. Relay chain B1 is an upper-level relay chain of relay chain B2 and relay chain B3, and relay chain B3 is an upper-level relay chain of relay chain B4. In practical applications, blockchains C1, C2, C3, and C4 can be application chains for different application scenarios.
针对树状结构中的所有中继链,可以实现一个中继链的多个叶子节点之间身份互通,如,区块链C1和区块链C2之间身份互通。也可以实现不同的中继链的叶子节点之间进行身份互通,如,区块链C1和区块链C3之间身份互通。还可以实现中继链与中继链之间的互通,如,中继链B2和中继链B3,中继链B1和中继链B2。还可以实现叶子节点与各中继链节点之间的互通,如,区块链C1和中继链B2,区块链C1和中继链B3,区块链C1和中继链B1等。For all relay chains in the tree structure, the identity intercommunication between multiple leaf nodes of a relay chain can be realized, for example, the identity intercommunication between blockchain C1 and blockchain C2. Identity interworking between leaf nodes of different relay chains can also be realized, for example, identity interworking between blockchain C1 and blockchain C3. It is also possible to realize intercommunication between relay chains, such as relay chain B2 and relay chain B3, and relay chain B1 and relay chain B2. It is also possible to realize the intercommunication between leaf nodes and relay chain nodes, such as blockchain C1 and relay chain B2, blockchain C1 and relay chain B3, blockchain C1 and relay chain B1, etc.
实际应用中,为了方便描述,通常会针对连接关系呈树状结构的多条区块链采用一些关系词进行相对关系区分。如,可以采用直系、旁系、同辈、后辈、前辈等词,对多条区块链之间的相对关系进行区分。一般地,处于同一层的链都是同辈分的,层次较高的是前辈,层次较低的是后辈。举例来说,对区块链C1来说,B2,B1是其直系前辈。而对中继链B2来说,区块链C1是其直系后辈,且中继链B1是其直系前辈。另外,对区块链C1来说,除B2,B1之外的链,均为其旁系链。In practical applications, for the convenience of description, some relation words are usually used to distinguish relative relations among multiple blockchains whose connection relation is in a tree-like structure. For example, words such as direct line, collateral line, peer, junior, and senior can be used to distinguish the relative relationship between multiple blockchains. Generally, chains at the same level are of the same generation, with higher levels being seniors, and lower levels being juniors. For example, for blockchain C1, B2, B1 are its immediate predecessors. For relay chain B2, blockchain C1 is its immediate descendant, and relay chain B1 is its immediate predecessor. In addition, for the blockchain C1, all chains other than B2 and B1 are its side chains.
实践中,可以通过跨链网关实现两条链之间交互。如图1所示地,可以通过跨链网关P1实现链B1与链B2之间的交互,通过跨链网关P2实现链B1与链B3之间的交互,通过跨链网关P3实现链B2与链C1之间的交互,通过跨链网关P4实现链B2与链C2之间的交互,通过跨链网关P5实现链B3与链C3之间的交互,通过跨链网关P6实现链B3与链B4之间的交互,通过跨链网关P7实现链B4与链C3之间的交互。In practice, the interaction between the two chains can be realized through a cross-chain gateway. As shown in Figure 1, the interaction between chain B1 and chain B2 can be realized through cross-chain gateway P1, the interaction between chain B1 and chain B3 can be realized through cross-chain gateway P2, and the interaction between chain B2 and chain can be realized through cross-chain gateway P3. For the interaction between C1, the interaction between chain B2 and chain C2 is realized through cross-chain gateway P4, the interaction between chain B3 and chain C3 is realized through cross-chain gateway P5, and the interaction between chain B3 and chain B4 is realized through cross-chain gateway P6. The interaction between chain B4 and chain C3 is realized through the cross-chain gateway P7.
实践中,若一中继链具有至少两个叶子节点,每个叶子节点为区块链。为了便于区分描述,可以称其中一个区块链为第一区块链,称另一个区块链为第二区块链。第一区块链通过第一跨链网关与中继链可通信连接,第二区块链通过第二跨链网关与中继链可通信连接。此时,In practice, if a relay chain has at least two leaf nodes, each leaf node is a blockchain. In order to facilitate the distinguishing description, one of the blockchains can be called the first blockchain, and the other blockchain can be called the second blockchain. The first blockchain is communicatively connected to the relay chain through the first cross-chain gateway, and the second blockchain is communicatively connected to the relay chain through the second cross-chain gateway. at this time,
第一区块链,可以用于通过第一跨链网关向中继链发送跨链账户查询请求。中继链,可以用于接收跨链账户查询请求,从中继链中预先存储的跨链身份记录信息表中,查找账户标识所在的身份记录信息;响应于查找到账户标识所在的身份记录信息,通过第一跨链网关将查找到的身份记录信息向第一区块链发送。第一区块链,还可以用于接收查找到的身份记录信息,将查找到的身份记录信息中的存储地址发送至第一跨链网关。第一跨链网关,可以用于根据所接收的存储地址,获取第二区块链上的待查账户的账户身份描述信息,以及将获取到的账户身份描述信息向第一区块链发送,使得第一区块链基于获取到的账户身份描述信息确对第二区块链上的待查账户进行身份认证。The first blockchain can be used to send a cross-chain account query request to the relay chain through the first cross-chain gateway. The relay chain can be used to receive cross-chain account query requests, and find the identity record information where the account identifier is located from the cross-chain identity record information table pre-stored in the relay chain; in response to finding the identity record information where the account identifier is located, The found identity record information is sent to the first blockchain through the first cross-chain gateway. The first blockchain can also be used to receive the found identity record information, and send the storage address in the found identity record information to the first cross-chain gateway. The first cross-chain gateway can be used to obtain the account identity description information of the account to be checked on the second blockchain according to the received storage address, and send the obtained account identity description information to the first blockchain, This enables the first blockchain to authenticate the account to be checked on the second blockchain based on the acquired account identity description information.
实施例二Embodiment 2
继续参阅图2,为本申请实施例提供的一种账户查询系统的结构示意图。如图3所示的账户查询系统,包括第一区块链201、第二区块链202、第一跨链网关203、第二跨链网关204和中继链205,第一区块链201通过第一跨链网关203与中继链205可通信连接,第二区块链202通过第二跨链网关204与中继链205可通信连接。其中,Continue to refer to FIG. 2 , which is a schematic structural diagram of an account inquiry system provided by an embodiment of the present application. The account inquiry system shown in FIG. 3 includes a first blockchain 201 , a second blockchain 202 , a first cross-chain gateway 203 , a second cross-chain gateway 204 and a relay chain 205 , and the first blockchain 201 The first cross-chain gateway 203 is communicatively connected to the relay chain 205 , and the second blockchain 202 is communicatively connected to the relay chain 205 through the second cross-chain gateway 204 . in,
第一区块链201,用于通过第一跨链网关向中继链发送跨链账户查询请求。The first blockchain 201 is used to send a cross-chain account query request to the relay chain through the first cross-chain gateway.
其中,跨链账户查询请求包括第二区块链上的待查账户的账户标识。上述待查账户通常为待查询的账户。The cross-chain account query request includes the account identifier of the account to be checked on the second blockchain. The above account to be checked is usually the account to be checked.
实践中,每条区块链上通常具有很多个区块链账户,每个区块链账户对应具有区块链账户地址。为了便于描述,本申请可以将区块链账户简称为账户。In practice, each blockchain usually has many blockchain accounts, and each blockchain account has a corresponding blockchain account address. For the convenience of description, this application may refer to the blockchain account as an account for short.
其中,上述账户标识通常是用于标识账户的信息。实际应用中,账户标识通常可以指示账户和账户所在的区块链。举例来说,账户标识可以为:001:0x1234567,其中001可以为区块链的标识,0x1234567为账户在标识为001的区块链上的编码。Wherein, the above account identifier is usually information used to identify the account. In practical applications, the account identifier can usually indicate the account and the blockchain where the account is located. For example, the account identifier can be: 001:0x1234567, where 001 can be the identifier of the blockchain, and 0x1234567 is the code of the account on the blockchain identified as 001.
在本实施例中,第一区块链201可以通过第一跨链网关203将跨链账户查询请求发送至中继链205。In this embodiment, the first blockchain 201 may send the cross-chain account query request to the relay chain 205 through the first cross-chain gateway 203 .
中继链205,用于接收跨链账户查询请求,从中继链中预先存储的跨链身份记录信息表中,查找账户标识所在的身份记录信息。响应于查找到账户标识所在的身份记录信息,通过第一跨链网关将查找到的身份记录信息向第一区块链发送。The relay chain 205 is configured to receive a cross-chain account query request, and search for the identity record information where the account identifier is located from the cross-chain identity record information table pre-stored in the relay chain. In response to finding the identity record information where the account identifier is located, the found identity record information is sent to the first blockchain through the first cross-chain gateway.
其中,跨链身份记录信息表中的身份记录信息包括账户标识和用于存储账户标识所标示账户的账户身份描述信息的存储地址。The identity record information in the cross-chain identity record information table includes an account identifier and a storage address for storing account identity description information of the account marked by the account identifier.
上述账户身份描述信息通常是用于描述账户身份的信息。如,账户身份描述信息可以包括但不限于:账户地址、账户公钥、账户加密算法、账户注册时间等。账户地址通常是指区块链账户的地址。账户公钥通常是指区块链账户所采用的公钥。账户加密算法通常是指区块链账户所采用的加密算法。本申请中,账户身份描述信息的具体格式可以为对象简谱格式(JavaScript Object Notation,JSON),也可以为可扩展标记语言格式(eXtensible Markup Language,XML),还可以为另一种标记语言格式(Yet Another Markup Language,YAML)等。The above account identity description information is usually information used to describe the account identity. For example, account identity description information may include, but is not limited to, account address, account public key, account encryption algorithm, account registration time, and the like. Account address usually refers to the address of a blockchain account. Account public key usually refers to the public key used by the blockchain account. Account encryption algorithm usually refers to the encryption algorithm used by blockchain accounts. In this application, the specific format of the account identity description information may be the object notation format (JavaScript Object Notation, JSON), or the extensible markup language format (eXtensible Markup Language format). Language, XML), can also be another markup language format (Yet Another Markup Language, YAML) etc.
实践中,每一条区块链上可以预先存储有用于记录本链上的账户的相关信息的本链身份记录信息表。各区块链所存储的本链身份记录信息表中具有多条身份记录信息。中继链类型的区块链中,通常还存储有跨链身份记录信息表,且所存储的跨链身份记录信息表中通常具有该中继链的叶子节点区块链上的账户对应的身份记录信息。任意一个中继链的上级中继链中,可以备份有该中继链所存储的跨链身份记录信息表。这样,可以实现各区块链之间身份互通。举例来说,结合图1,中继链B1可以同时具有中继链B2所存储的跨链身份记录信息表、中继链B3所存储的跨链身份记录信息表、B4所存储的跨链身份记录信息表。进一步举例来说,若区块链C1向中继链B2发送查询区块链C3上的某账户的请求,中继链B2中的跨链身份记录信息表中通常不具有区块链C3上账户对应的身份记录信息。此时,中继链B2可以向上一级的中继链B1发送继续查询请求,从而通过中继链B1查询到区块链C3上的该账户对应的身份记录信息。In practice, each blockchain may be pre-stored with a local chain identity record information table for recording relevant information of accounts on this chain. The identity record information table of this chain stored in each blockchain has multiple pieces of identity record information. In the relay chain type blockchain, a cross-chain identity record information table is usually stored, and the stored cross-chain identity record information table usually has the identity corresponding to the account on the leaf node blockchain of the relay chain. record information. In the upper-level relay chain of any relay chain, the cross-chain identity record information table stored by the relay chain can be backed up. In this way, identity interoperability between blockchains can be realized. For example, with reference to FIG. 1, the relay chain B1 may simultaneously have the cross-chain identity record information table stored by the relay chain B2, the cross-chain identity record information table stored by the relay chain B3, and the cross-chain identity record information table stored by B4. Record information sheet. For further example, if blockchain C1 sends a request to query an account on blockchain C3 to relay chain B2, the cross-chain identity record information table in relay chain B2 usually does not have an account on blockchain C3. Corresponding identity record information. At this time, the relay chain B2 can send a continuation query request to the upper-level relay chain B1, so as to query the identity record information corresponding to the account on the blockchain C3 through the relay chain B1.
在本实施例中,中继链205可以接收到跨链账户查询请求。然后,采用待查账户的账户标识,从中继链205中预先存储的跨链身份记录信息表中,查找该账户标识所在的身份记录信息。之后,将查找到的身份记录信息发给第一跨链网关203,使得第一跨链网关203将该查找到的身份记录信息转发至第一区块链201。In this embodiment, the relay chain 205 may receive a cross-chain account query request. Then, using the account identifier of the account to be checked, the identity record information where the account identifier is located is searched from the cross-chain identity record information table pre-stored in the relay chain 205 . Afterwards, the found identity record information is sent to the first cross-chain gateway 203 , so that the first cross-chain gateway 203 forwards the found identity record information to the first blockchain 201 .
第一区块链201,还用于接收查找到的身份记录信息,将查找到的身份记录信息中的存储地址发送至第一跨链网关。The first blockchain 201 is further configured to receive the found identity record information, and send the storage address in the found identity record information to the first cross-chain gateway.
在本实施例中,第一区块链201可以接收到由第一跨链网关203转发来的身份记录信息。然后,将该身份记录信息中的存储地址发送至第一跨链网关203。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-chain gateway 203 .
第一跨链网关203,用于根据所接收的存储地址,获取第二区块链上的待查账户的账户身份描述信息,以及将获取到的账户身份描述信息向第一区块链发送,使得第一区块链基于获取到的账户身份描述信息对第二区块链上的待查账户进行身份认证。The first cross-chain gateway 203 is configured to obtain the account identity description information of the account to be checked on the second blockchain according to the received storage address, and send the obtained account identity description information to the first blockchain, Make the first blockchain perform identity authentication on the account to be checked on the second blockchain based on the acquired account identity description information.
在本实施例中,第一跨链网关203可以采用所接收的存储地址,从该存储地址所指示的位置处获取账户身份描述信息。由于该存储地址为用于存储第二区块链上的待查账户的账户身份描述信息的地址的描述信息。故,此时第一跨链网关203可以获取到第二区块链上的待查账户的账户身份描述信息。之后,第一跨链网关203可以将所获取的该账户身份描述信息发送至第一区块链201。这样,第一区块链201可以接收到该账户身份描述信息,从而对第二区块链上的待查账户进行身份认证。In this embodiment, the first cross-chain gateway 203 may use the received storage address to obtain account identity description information from the location indicated by the storage address. Because the storage address is the description information of the address used to store the account identity description information of the account to be checked on the second blockchain. Therefore, at this time, the first cross-chain gateway 203 can obtain the account identity description information of the account to be checked on the second blockchain. After that, the first cross-chain gateway 203 may send the acquired account identity description information to the first blockchain 201 . In this way, the first blockchain 201 can receive the account identity description information, so as to perform identity authentication on the account to be checked on the second blockchain.
本实施例提供的系统,通过中继链和跨链网关实现不同的区块链之间可以身份互通,有助于提高不同的区块链之间进行交易的安全性。其次,通过查表的方式,从跨链身份记录信息表中查找与待查账户的账户标识对应的账户身份描述信息,技术上易于实现,有助于提高账户查询效率。然后,中继链的跨链身份记录信息表中存储账户身份描述信息的存储地址,而非存储账户身份描述信息本身,可以节约中继链的存储空间,且可以简化跨链身份记录信息表。之后,各区块链上的账户的账户身份描述信息只需存储一次即可,各区块链可以通过访问存储地址的方式访问到所有区块链上的账户的账户身份描述信息,有助于节约整个区块链网络的存储空间。另外,由于读取所存储的账户身份描述信息需要耗费较多时间,由跨链网关实现对所存储的账户身份描述信息进行读取,可以减少区块链的工作量,有助于提高整个区块链网络的数据处理效率。In the system provided by this embodiment, the relay chain and the cross-chain gateway can realize identity intercommunication between different blockchains, which helps to improve the security of transactions between different blockchains. Secondly, by looking up the table, the account identity description information corresponding to the account identifier of the account to be checked is searched from the cross-chain identity record information table, which is technically easy to implement and helps to improve the efficiency of account query. Then, the storage address of the account identity description information is stored in the cross-chain identity record information table of the relay chain, instead of storing the account identity description information itself, which can save the storage space of the relay chain and simplify the cross-chain identity record information table. After that, 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 by accessing the storage address, which helps to save the entire The storage space of the blockchain network. In addition, since it takes a lot of time to read the stored account identity description information, the cross-chain gateway realizes the reading of the stored account identity description information, which can reduce the workload of the blockchain and help improve the entire blockchain. The data processing efficiency of the blockchain network.
在本实施例的一些可选的实现方式中,上述账户查询系统中,中继链还用于:响应于未查找到账户标识所在身份记录信息,向通信连接的上级中继链发送包括账户标识的继续查询请求。接收上级中继链针对继续查询请求返回的、账户标识所在身份记录信息,以及将接收到的身份记录信息通过第一跨链网关向第一区块链发送。In some optional implementations of this embodiment, in the above account query system, the relay chain is further configured to: in response to not finding the identity record information where the account identifier is located, send a communication link including the account identifier to the upper-level relay chain of the communication connection the continuation query request. Receive the identity record information where the account identifier is located and send the received identity record information to the first blockchain through the first cross-chain gateway.
其中,继续查询请求可以包括第二区块链上的待查账户的账户标识。Wherein, the continuing query request may include the account identifier of the account to be queried on the second blockchain.
这里,若上述执行主体未查找到账户标识所在身份记录信息,在上述执行主体具有上级中继链的情况下,上述执行主体可以向上级中继链发送继续查询请求。这样,上级中继链在接收到继续查询请求后,通常可以采用继续查询请求中的账户标识,从该上级中继链所存储的一个或多个跨链身份记录信息表中继续查询。若查找到该账户标识所在的身份记录信息,则将查找到的该身份记录信息向中继链发送。这样,上述中继链可以接收上级中继链返回的账户标识所在身份记录信息,以及将所接收到的账户标识所在身份记录信息向第一区块链发送。Here, if the above-mentioned execution body does not find the identity record information where the account identifier is located, in the case that the above-mentioned execution body has an upper-level relay chain, the above-mentioned execution body can send a continuation query request to the upper-level relay chain. In this way, after receiving the continuation query request, the upper-level relay chain can generally use the account identifier in the continuation query request to continue the query from one or more cross-chain identity record information tables stored in the upper-level relay chain. If the identity record information where the account identifier is located is found, the found identity record information is sent to the relay chain. In this way, the above-mentioned relay chain can receive the identity record information of the account identifier returned by the upper-level relay chain, and send the received identity record information of the account identifier to the first blockchain.
本实现方式中,通过向上级中继链发送继续查询请求,以使得通过上级中继链继续针对待查账户的账户标识进行查询,可以实现不同的中继链的叶子节点之间进行身份互通。有助于进一步提高不同的区块链之间进行交易的安全性。In this implementation manner, by sending a continuation query request to the upper-level relay chain, so that the upper-level relay chain continues to query the account identifier of the account to be queried, the identity exchange between leaf nodes of different relay chains can be realized. It helps to further improve the security of transactions between different blockchains.
在本实施例的一些可选的实现方式中,第一区块链中,通过第一跨链网关向中继链发送跨链账户查询请求,包括:响应于接收到本链账户所在用户终端发送的跨链账户查询请求,通过第一跨链网关向中继链发送跨链账户查询请求。In some optional implementations of this embodiment, in the first blockchain, sending a cross-chain account query request to the relay chain through the first cross-chain gateway includes: in response to receiving the user terminal where the account of this chain is located, sending The cross-chain account query request is sent to the relay chain through the first cross-chain gateway.
其中,跨链账户查询请求包括第二区块链上的待查账户的账户标识。这里的本链账户通常是指第一区块链上的账户。用户可以通过用户终端登陆区块链上的账户。The cross-chain account query request includes the account identifier of the account to be checked on the second blockchain. The local chain account here usually refers to the account on the first blockchain. Users can log in to the account on the blockchain through the user terminal.
这里,第一区块链可以接收本链账户所在用户终端发送的跨链账户查询请求。然后,将所接收到的跨链账户查询请求通过跨链网关向中继链发送。这样,在中继链返回账户标识所在身份记录信息时,第一区块链可以基于该身份记录信息将对应的账户身份描述信息反馈至用户终端。Here, the first blockchain can receive a cross-chain account query request sent by the user terminal where the account of this chain is located. Then, the received cross-chain account query request is sent to the relay chain through the cross-chain gateway. In this way, when the relay chain returns the identity record information where the account identifier is located, the first blockchain can 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 above account inquiry system,
第一区块链,还可以用于响应于接收到本链账户所在用户终端发送的、用于查询第一区块链上的待查账户的本链账户查询请求,从第一区块链中预先存储的本链身份记录信息表中,查找待查账户的账户标识所在的身份记录信息,将查找到的身份记录信息中的存储地址发送至第一跨链网关。The first blockchain can also be used to retrieve the local-chain account query request sent by the user terminal where the local-chain account is located and used to query the account to be checked on the first blockchain. In the pre-stored identity record information table of this chain, look up the identity record information where the account identifier of the account to be checked is located, and send the storage address in the found identity record information to the first cross-chain gateway.
其中,本链账户查询请求包括待查账户的账户标识,本链身份记录信息表中的身份记录信息包括账户标识和用于存储账户标识所标示账户的账户身份描述信息的存储地址。The on-chain account query request includes the account identifier of the account to be checked, and the identity record information in the on-chain identity record information table includes the account identifier and the storage address for storing the account identity description information of the account indicated by the account identifier.
这里,待查账户为第一区块链上的账户。第一区块链可以接收本链账户所在用户终端发送的本链账户查询请求。该本链账户查询请求用于查询第一区块链上的账户的账户身份描述信息。第一区块链在接收到该本链账户查询请求后,可以采用该本链账户查询请求所包括的账户标识,从第一区块链中预先存储的本链身份记录信息表中,查找该账户标识所在的身份记录信息。然后,将查找到的身份记录信息中的存储地址发送至第一跨链网关。Here, the account to be checked is an account on the first blockchain. The first blockchain can receive the query request of the account of the chain sent by the user terminal where the account of the chain is located. The local chain account query request is used to query the account identity description information of the account on the first blockchain. After receiving the local chain account query request, the first blockchain can use the account identifier included in the local chain account query request to search for the local chain identity record information table pre-stored in the first blockchain. The identity record information where the account ID is located. Then, the storage address in the found identity record information is sent to the first cross-chain gateway.
第一跨链网关,还用于根据所接收的存储地址,获取第一区块链上的待查账户的账户身份描述信息,以及将获取到的账户身份描述信息向第一区块链发送。The first cross-chain gateway is further configured to obtain account identity description information of the account to be checked on the first blockchain according to the received storage address, and send the obtained account identity description information to the first blockchain.
这里,第一跨链网关可以接收到第一区块链发送来的存储地址。第一跨链网关在接收到存储地址后,可以直接从该存储地址所指示的位置读取账户身份描述信息。由于该存储地址为用于存储第一区块链上的待查账户的账户身份描述信息的地址的描述信息。因此,此时第一跨链网关可以获取到第一区块链上的待查账户的账户身份描述信息。然后,将所获取的该账户身份描述信息发送至第一区块链。Here, the first cross-chain gateway can receive the storage address sent by the first blockchain. After receiving the storage address, the first cross-chain gateway can directly read the account identity description information from the location indicated by the storage address. Because the storage address is the description information of the address used to store the account identity description information of the account to be checked on the first blockchain. Therefore, at this time, the first cross-chain gateway can obtain the account identity description information of the account to be checked on the first blockchain. Then, the acquired account identity description information is sent to the first blockchain.
第一区块链,还用于接收第一跨链网关返回的第一区块链上的待查账户的账户身份描述信息,以及将所接收的账户身份描述信息向用户终端发送。The first blockchain is further configured to receive the account identity description information of the account to be checked on the first blockchain returned by the first cross-chain gateway, and send the received account identity description information to the user terminal.
这里,第一区块链可以接收到第一跨链网关返回的第一区块链上的待查账户的账户身份描述信息,以及可以将该账户身份描述信息发送至用户终端。Here, the first blockchain can receive the account identity description information of the account to be checked on the first blockchain returned by the first cross-chain gateway, and can send the account identity description information to the user terminal.
本实现方式中,区块链中存储有本链身份记录信息表,可以实现该区块链上的一个账户所在用户终端需要查询该区块链上的另一账户的相关信息时,该区块链可以将上述另一账户的账户身份描述信息发送至用户终端。有助于提高数据处理速度,从而提高相同的区块链之间进行交易的速度。另外,并非所有的查询请求都通过中继链实现,可以节约中继链的处理资源。In this implementation manner, the identity record information table of this chain is stored in the blockchain, so that when the user terminal where an account on the blockchain is located needs to query the relevant information of another account on the blockchain, the block The chain can send the account identity description information of the above-mentioned another account to the user terminal. Helps to increase the speed of data processing and thus the speed of transactions between the same blockchains. In addition, not all query requests are implemented through the relay chain, which can save the processing resources of the relay chain.
在本实施例的一些可选的实现方式中,上述账户查询系统中,In some optional implementations of this embodiment, in the above account inquiry system,
中继链,还用于响应于接收到第一区块链通过第一跨链网关发送的、用于查询中继链上的待查账户的本链账户查询请求,从中继链中预先存储的本链身份记录信息表中,查找中继链上的待查账户的账户标识所在的身份记录信息;响应于查找到中继链上的待查账户的账户标识所在的身份记录信息,通过第一跨链网关将查找到的身份记录信息向第一区块链发送。The relay chain is also used to, in response to receiving the local chain account query request sent by the first blockchain through the first cross-chain gateway and used for querying the account to be checked on the relay chain, from the pre-stored account in the relay chain. In the identity record information table of this chain, look up the identity record information of the account identifier of the account to be checked on the relay chain; in response to finding the identity record information of the account identifier of the account to be checked on the relay chain, through the first The cross-chain gateway sends the found identity record information to the first blockchain.
这里,待查账户为中继链上的账户。中继链可以接收到第一区块链通过第一跨链网关发送的本链账户查询请求。该本链账户查询请求用于查询中继链上的账户的账户身份描述信息。中继链在接收到该本链账户查询请求后,可以采用该本链账户查询请求所包括的账户标识,从中继链中预先存储的本链身份记录信息表中,查找该账户标识所在的身份记录信息。然后,将查找到的身份记录信息通过第一跨链网关转发至第一区块链。Here, the account to be checked is the account on the relay chain. The relay chain can receive the account query request sent by the first blockchain through the first cross-chain gateway. The local chain account query request is used to query the account identity description information of the account on the relay chain. After the Relay Chain receives the local chain account query request, it can use the account identifier included in the local chain account inquiry request to find the identity of the account identifier from the local chain identity record information table pre-stored in the Relay Chain record information. Then, the found identity record information is forwarded to the first blockchain through the first cross-chain gateway.
第一区块链,还用于接收查找到的身份记录信息,将查找到的身份记录信息中的存储地址发送至第一跨链网关。The first blockchain is further configured to receive the found identity record information, and send the storage address in the found 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.
第一跨链网关,用于根据所接收的存储地址,获取中继链上的待查账户的账户身份描述信息,以及将获取到的账户身份描述信息向第一区块链发送,使得第一区块链基于获取到的账户身份描述信息对中继链上的待查账户进行身份认证。The first cross-chain gateway is used to obtain the account identity description information of the account to be checked on the relay chain according to the received storage address, and send the obtained account identity description information to the first blockchain, so that the first The blockchain authenticates the account to be checked on the relay chain based on the obtained account identity description information.
这里,第一跨链网关可以采用所接收的存储地址,从该存储地址所指示的位置处获取账户身份描述信息。由于该存储地址为用于存储中继链上的待查账户的账户身份描述信息的地址的描述信息。故,此时第一跨链网关可以获取到中继链上的待查账户的账户身份描述信息。之后,第一跨链网关可以将所获取的该账户身份描述信息发送至第一区块链。这样,第一区块链可以接收到该账户身份描述信息,从而对中继链上的待查账户进行身份认证。Here, the first cross-chain gateway may use the received storage address to obtain account identity description information from the location indicated by the storage address. Because the storage address is the description information of the address used to store the account identity description information of the account to be checked on the relay chain. Therefore, at this time, the first cross-chain gateway can obtain the account identity description information of the account to be checked on the relay chain. After that, the first cross-chain gateway can send the acquired account identity description information to the first blockchain. In this way, the first blockchain can receive the account identity description information, so as to authenticate the account to be checked on the relay chain.
本实现方式,可以实现对中继链上的账户进行查询,以对中继链上的待查账户进行身份认证。In this implementation manner, the account on the relay chain can be queried, so as to perform identity authentication on the account to be checked on the relay chain.
在本实施例的一些可选的实现方式中,系统还包括至少一个存储服务器,第一区块链通过执行构建步骤实现预先存储本链身份记录信息表。In some optional implementations of this embodiment, the system further includes at least one storage server, and the first blockchain realizes pre-storing the identity record information table of this chain by executing the construction steps.
图3为本申请实施例提供的构建步骤的流程示意图。如图3所示地,构建步骤可以包括步骤301-303。需要指出的是,步骤301-303的执行主体为第一区块链。FIG. 3 is a schematic flowchart of construction steps provided in an embodiment of the present application. As shown in Figure 3, the building step may include steps 301-303. It should be pointed out that the execution subject of steps 301-303 is the first blockchain.
步骤301,响应于接收到本链账户所在用户终端发送的、包括本链账户的账户标识和账户身份描述信息的身份注册请求,将第一区块链的数据存储类型和本链账户的账户身份描述信息发送至第一跨链网关,使得第一跨链网关将本链账户的账户身份描述信息存储至与数据存储类型匹配的存储服务器。Step 301, in response to receiving the identity registration request sent by the user terminal where the account of this chain is located, including the account identification and account identity description information of the account of this chain, the data storage type of the first blockchain and the account identity of the account of this chain are stored. The description information is sent to the first cross-chain gateway, so that the first cross-chain gateway stores the account identity description information of the account in this chain to a storage server that matches the data storage type.
上述身份注册请求通常是用于请求注册的信息。上述存储服务器可以是预先设定的用于存储数据的服务器。存储服务器可以有一个,也可以有多个。若存储服务器有一个时,该存储服务器可以同时支持多种数据存储类型。若存储服务器有多个时,该多个存储服务器可以分别支持一种数据存储类型。数据存储类型通常是指对数据进行存储的类型。作为示例,上述数据存储类型可以包括但不限于支持结构化查询语言(Structured Query Language,SQL)、星际文件系统(Inter Planetary File System,IPFS)、远程字典服务(REmote DIctionary Server,Redis)等。The identity registration request described above is generally information for requesting registration. The above-mentioned storage server may be a preset server for storing data. There can 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 usually refers to the type of data storage. As an example, the above data storage types may include, but are not limited to, support for structured query language (Structured Query Language, SQL), interplanetary file system (Inter Planetary File) System, IPFS), remote dictionary service (REmote DIctionary Server, Redis), etc.
这里,第一区块链可以在接收到身份注册请求时,将第一区块链所采用的的数据存储类型和本链账户的账户身份描述信息一并发送至第一跨链网关。这样,第一跨链网关可以将该账户身份描述信息存储至与数据存储类型对应的存储服务器中。Here, when receiving the identity registration request, the first blockchain can send the data storage type adopted by the first blockchain and the account identity description information of the account of this chain to the first cross-chain gateway. In this way, the first cross-chain gateway can store the account identity description information in the storage server corresponding to the data storage type.
步骤302,接收第一跨链网关针对本链账户的账户身份描述信息返回的存储地址。Step 302: Receive the storage address returned by the first cross-chain gateway for the account identity description information of the account on this chain.
这里,第一跨链网关将本链账户的账户身份描述信息存入存储服务器后,通常会将存储地址返回至第一区块链。这样,第一区块链可以接收到该存储地址。Here, after the first cross-chain gateway stores the account identity description information of the account on this chain into the storage server, it usually returns the storage address to the first blockchain. In this way, the first blockchain can receive the storage address.
步骤303,将本链账户的账户标识、存储地址、本链账户的账户身份描述信息的哈希值、取值为第一预设值的账户状态参数的整体作为身份记录信息存入本链身份记录信息表。Step 303: Store the entirety of the account identifier, storage address, account identity description information of the account of this chain, and the account status parameter whose value is the first preset value as the identity record information into the identity of this chain. Record information sheet.
其中,第一预设值用于指示本链账户当前处于注册待审核状态。Among them, the first preset value is used to indicate that the account of this chain is currently in the state of registration pending review.
这里,第一区块链可以将账户标识、存储地址、账户身份描述信息的哈希值和账户状态参数四者作为一条身份记录信息存入本链身份记录信息表。Here, the first blockchain can store the account identifier, the storage address, the hash value of the account identity description information, and the account status parameter as a piece of identity record information in the identity record information table of this chain.
图4为本申请实施例提供的身份注册流程示意图。FIG. 4 is a schematic diagram of an identity registration process provided by an embodiment of the present application.
步骤401,账户所在用户终端向应用链发送身份注册请求,该身份注册请求包括账户标识和账户身份描述信息。Step 401, the user terminal where the account is located sends an identity registration request to the application chain, where the identity registration request includes the account identifier and account identity description information.
这里,应用链可以是上述第一区块链,也可以是上述第二区块链,还可以是其他区块链。Here, the application chain may be the above-mentioned first blockchain, the above-mentioned second blockchain, or other blockchains.
步骤402,应用链将该应用链的数据存储类型和账户身份描述信息向跨链网关发送。Step 402, the application chain sends the data storage type and account identity description information of the application chain to the cross-chain gateway.
步骤403,跨链网关将账户身份描述信息存储至与数据存储类型匹配的存储服务器。Step 403, the cross-chain gateway stores the account identity description information to a storage server matching the data storage type.
步骤404,存储服务器存储该账户身份描述信息,以及返回存储地址至跨链网关。Step 404, the storage server stores the account identity description information, and returns the storage address to the cross-chain gateway.
步骤405,跨链网关将该账户身份描述信息的存储地址返回给应用链。Step 405, the cross-chain gateway returns the storage address of the account identity description information to the application chain.
步骤406,应用链将账户标识、存储地址和账户身份描述信息的哈希值作为一条身份记录信息存入本链身份记录信息表。Step 406, the application chain stores the account identifier, storage address and the hash value of the account identity description information as a piece of identity record information into the identity record information table of this chain.
实践中,本链身份记录信息表中的每条身份记录信息还可以具有用于指示账户状态的账户状态参数。账户状态参数的不同取值可以指示不同的账户状态。对账户进行身份注册时,该账户状态参数的取值可以为第一预设值,用于指示账户状态为注册待审核状态。In practice, each piece of identity record information in the identity record information table of this chain may also have an account state parameter used to indicate the account state. Different values of the account state parameter may indicate different account states. When performing identity registration on an account, the value of the account status parameter may be a first preset value, which is used to indicate that the account status is a registration pending status.
在本实施例的一些可选的实现方式中,上述构建步骤还可以包括:对本链身份记录信息表中对应账户状态参数的取值为第一预设值的身份记录信息执行预设审核操作,得到审核结果信息,以及在审核结果信息指示审核通过时,将相应身份记录信息中的账户状态参数的取值修改为第二预设值。In some optional implementations of this embodiment, the above construction step may further include: performing a preset audit operation on the identity record information whose value of the corresponding account status parameter in the identity record information table of the local chain is the first preset value, Obtaining audit result information, and modifying the value of the account status parameter in the corresponding identity record information to a second preset value when the audit result information indicates that the audit is passed.
其中,第二预设值用于指示账户当前处于审核通过状态。The second preset value is used to indicate that the account is currently in an approved state.
其中,上述预设审核操作可以是对账户身份描述信息进行审核的操作。如,上述预设审核操作可以为:区块链控制该区块链的全部或部分区块链节点执行如下步骤:采用身份记录信息中的存储地址下载账户身份描述信息。然后,计算得到所下载的身份描述信息的哈希值。最后,将计算得到的哈希值与身份记录信息中的哈希值进行比较,若二者相同,则向区块链返回用于指示审核通过的审核通过指示信息。反之,若二者不同,则向区块链返回用于指示审核不通过的审核不通过指示信息。这样,区块链可以通过统计审核通过指示信息的数目,确定账户的账户身份描述信息是否审核通过。实践中,若审核结果为审核通过,区块链可以将相应身份记录信息中的账户状态参数的取值修改为第二预设值。其中,第二预设值用于指示账户当前处于审核通过状态。若审核结果为审核不通过,区块链可以将相应身份记录信息中的账户状态参数的取值修改为第五预设值。其中,第五预设值用于指示账户当前处于审核驳回状态。Wherein, the above-mentioned preset audit operation may be an operation of auditing account identity description information. For example, the above-mentioned preset audit operation may be: the blockchain controls all or part of the blockchain nodes of the blockchain to perform the following steps: using the storage address in the identity record information to download the account identity description information. Then, the hash value of the downloaded identity description information is calculated. Finally, the calculated hash value is compared with the hash value in the identity record information, and if the two are the same, the approval information for indicating approval is returned to the blockchain. On the contrary, if the two are different, the verification failure indication information for indicating failure of the verification will be returned to the blockchain. In this way, the blockchain can determine whether the account identity description information of the account has passed the review by counting the number of approval indications. In practice, if the audit result is approved, the blockchain can modify the value of the account status parameter in the corresponding identity record information to the second preset value. The second preset value is used to indicate that the account is currently in an approved state. If the audit result is that the audit fails, the blockchain can modify the value of the account status parameter in the corresponding identity record information to the fifth preset value. Wherein, the fifth preset value is used to indicate that the account is currently in a state of review and rejection.
在上述实现方式中,在对相应身份记录信息中的账户状态参数的取值进行修改之后,第一区块链还用于:响应于修改后的相应身份记录信息中的账户状态参数的取值为第二预设值,将修改后的相应身份记录信息发送至中继链,使得中继链基于修改后的相应身份记录信息更新跨链身份记录信息表。In the above implementation manner, after modifying the value of the account status parameter in the corresponding identity record information, the first blockchain is further configured to: respond to the modified value of the account status parameter in the corresponding identity record information As the second preset value, the modified corresponding identity record information is sent 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.
其中,第二预设值用于指示账户当前处于审核通过状态。The second preset value is used to indicate that the account is currently in an approved state.
这里,若账户状态为审核通过状态,则认为身份记录信息有效。此时,区块链可以将该身份记录信息发送至中继链。这样,中继链可以采用该身份记录信息对跨链身份记录信息表进行更新。具体地,中继链可以将该身份记录信息添加至跨链身份记录信息表。Here, if the account status is an approved status, it is considered that the identity record information is valid. At this point, the blockchain can send this identity record information to the relay chain. In this way, the relay chain can use the identity record information to update the cross-chain identity record information table. Specifically, the relay chain can add the identity record information to the cross-chain identity record information table.
图5为本申请实施例提供的身份审核流程示意图。应用链对账户的身份记录信息进行审核,审核不通过时,执行步骤501-504。审核通过时,执行步骤505-509。FIG. 5 is a schematic diagram of an identity verification process provided in an embodiment of the present application. The application chain audits the identity record information of the account. If the audit fails, steps 501-504 are performed. When the verification is passed, steps 505-509 are performed.
步骤501,应用链将待审核的身份记录信息中的账户身份描述信息的存储地址发送至跨链网关。Step 501, the application chain sends the storage address of the account identity description information in the identity record information to be reviewed to the cross-chain gateway.
步骤502,跨链网关将存储地址发送至存储服务器,使存储服务器将存储地址所对应的账户身份描述信息删除。Step 502, the cross-chain 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.
步骤503,存储服务器通过跨链网关返回用于提示删除完成的信息。In step 503, the storage server returns information for prompting completion of deletion through the cross-chain gateway.
步骤504,应用链将所审核的身份记录信息中的账户状态参数的取值修改为第五预设值,以及将该身份记录信息中的存储地址删除。其中,第五预设值用于指示账户当前处于审核驳回状态。Step 504, the application chain modifies the value of the account status parameter in the reviewed identity record information to a fifth preset value, and deletes the storage address in the identity record information. Wherein, the fifth preset value is used to indicate that the account is currently in a state of review and rejection.
步骤505,应用链更新本链身份记录信息表。Step 505, the application chain updates the identity record information table of this chain.
这里,可以将本链身份记录信息中通过审核的身份记录信息的账户状态参数的取值修改为第二预设值。其中,第二预设值用于指示账户当前处于审核通过状态。Here, the value of the account status parameter of the identity record information that has passed the audit in the identity record information of this chain can be modified to the second preset value. The second preset value is used to indicate that the account is currently in an approved state.
步骤506,应用链将通过审核的身份记录信息发送至跨链网关。In step 506, the application chain sends the verified identity record information to the cross-chain gateway.
步骤507,跨链网关将通过审核的身份记录信息发送至中继链。Step 507: The cross-chain gateway sends the verified identity record information to the relay chain.
步骤508,中继链更新跨链身份记录信息表。Step 508, the relay chain updates the cross-chain identity record information table.
这里,中继链可以将通过审核的身份记录信息添加至跨链身份记录信息表。Here, the relay chain can add the verified identity record information to the cross-chain identity record information table.
步骤509,中继链将通过审核的身份记录信息向该中继链的上级中继链发送。这样,该中继链的上级中继链可以将该通过审核的身份记录信息添加至相应跨链身份记录信息表。Step 509: The relay chain sends the verified identity record information to the upper-level relay chain of the relay chain. In this way, the upper-level relay chain of the relay chain can add the verified identity record information to the corresponding cross-chain identity record information table.
在本实施例的一些可选的实现方式中,上述构建步骤还可以包括如下步骤一至步骤三。需要指出的是,步骤一至步骤三的执行主体为第一区块链。In some optional implementations of this embodiment, the foregoing construction step may further include the following steps 1 to 3. It should be pointed out that the execution subject of steps 1 to 3 is the first blockchain.
步骤一,响应于接收到本链账户所在用户终端发送的、包括本链账户的账户标识和新账户身份描述信息的身份更新请求,将第一区块链的数据存储类型和本链账户的新账户身份描述信息发送至第一跨链网关,使得第一跨链网关将本链账户的新账户身份描述信息存储至与数据存储类型匹配的存储服务器。Step 1, in response to receiving the identity update request sent by the user terminal where the account of this chain is located, including the account identification of the account of this chain and the description information of the new account identity, the data storage type of the first blockchain and the new account of the account of this chain are stored. The account identity description information is sent to the first cross-chain gateway, so that the first cross-chain gateway stores the new account identity description information of the account on this chain to a storage server that matches the data storage type.
这里,身份更新请求可以为用于请求更新账户的账户身份描述信息的信息。第一区块链在接收到身份更新请求后,可以将身份更新请求中的新的账户身份描述信息和第一区块链的数据存储类型一并发送至第一跨链网关。这样,第一跨链网关可以将新账户身份描述信息存储至与数据存储类型匹配的存储服务器。Here, the identity update request may be information for requesting to update the account identity description information of the account. After receiving the identity update request, the first blockchain can send the new account identity description information in the identity update request and the data storage type of the first blockchain to the first cross-chain gateway. In this way, the first cross-chain gateway can store the new account identity description information to the storage server matching the data storage type.
步骤二,接收第一跨链网关针对本链账户的新账户身份描述信息返回的新存储地址。Step 2: Receive the new storage address returned by the first cross-chain gateway for the new account identity description information of the account on this chain.
这里,第一跨链网关在将本链账户的新账户身份描述信息存入存储服务器后,通常会返回用于存储该新账户身份描述信息的存储地址,这里记作新存储地址。Here, after the first cross-chain gateway stores the new account identity description information of the account on this chain into the storage server, it usually returns the storage address for storing the new account identity description information, which is recorded as the new storage address here.
步骤三,将本链账户对应的身份记录信息中的存储地址修改为新存储地址,将账户身份描述信息的哈希值修改为新账户身份描述信息的哈希值,将账户状态参数的取值修改为第三预设值。Step 3: Modify the storage address in the identity record information corresponding to the account on this chain to the new storage address, change the hash value of the account identity description information to the hash value of the new account identity description information, and change the value of the account status parameter Modified to the third preset value.
其中,第三预设值用于指示本链账户当前处于更新待审核状态。这里,第一区块链在接收到新的存储地址后,可以将账户的身份记录信息中的存储地址修改为新存储地址,以及将账户身份描述信息的哈希值修改为新账户身份描述信息的哈希值,将账户状态参数的取值修改为第三预设值。Among them, the third preset value is used to indicate that the account of this chain is currently in the state of update pending review. Here, after receiving the new storage address, the first blockchain can modify the storage address in the identity record information of the account to the new storage address, and modify the hash value of the account identity description information to the new account identity description information The hash value of the account status parameter is modified to the third preset value.
需要指出的是,区块链可以对更新后的身份记录信息进行审核。这里,对更新后的身份记录信息进行审核的操作与前述对身份记录信息进行审核的操作基本相同,这里不做赘述。实践中,对账户状态参数的取值为第三预设值的新身份记录信息进行审核时,若审核不通过,则区块链可以删除新的存储地址,以及通过向跨链网关发送该新存储地址实现由跨链网关删除新存储地址所存储的新的账户身份描述信息。在删除新存储地址后,区块链可以将该新存储地址所在的身份记录信息修改为与更新前相同。It should be pointed out that the blockchain can audit the updated identity record information. Here, the operation of auditing the updated identity record information is basically the same as the foregoing operation of auditing the identity record information, and details are not described here. In practice, when auditing the new identity record information whose account status parameter is the third preset value, if the audit fails, the blockchain can delete the new storage address and send the new identity record to the cross-chain gateway. The storage address realizes that the new account identity description information stored by the new storage address is deleted by the cross-chain gateway. After deleting the new storage address, the blockchain can modify the identity record information where the new storage address is located to be the same as before the update.
实施例三Embodiment 3
继续参阅图6,为本申请实施例提供的一种账户查询系统的结构示意图。如图6所示的账户查询系统,包括第一区块链601、第二区块链602、第一跨链网关603、第二跨链网关604和中继链605,第一区块链601通过第一跨链网关603与中继链605可通信连接,第二区块链602通过第二跨链网关604与中继链605可通信连接。Continue to refer to FIG. 6 , which is a schematic structural diagram of an account inquiry system provided by an embodiment of the present application. The account inquiry system shown in FIG. 6 includes a first blockchain 601, a second blockchain 602, a first cross-chain gateway 603, a second cross-chain gateway 604, and a relay chain 605. The first blockchain 601 The first cross-chain gateway 603 is communicatively connected to the relay chain 605 , and the second blockchain 602 is communicatively connected to the relay chain 605 through the second cross-chain gateway 604 .
另外,该系统还可以有包括第三区块链606,该第三区块链606可以是应用链也可以是中继链。且该系统所包括的任意一条或多条区块链中预先存储有本链身份记录信息表,本链身份记录信息表中的身份记录信息包括账户标识、用于存储账户标识所标示账户的账户身份描述信息的存储地址、用于指示账户标识所标识账户的账户状态的账户状态参数。此时,In addition, the system may further include a third blockchain 606, and the third blockchain 606 may be an application chain or a relay chain. And any one or more blockchains included in the system are pre-stored with the identity record information table of this chain, and the identity record information in the identity record information table of this chain includes the account ID and the account used to store the account marked by the account ID. The storage address of the identity description information, and the account status parameter used to indicate the account status of the account identified by the account identifier. at this time,
第三区块链606,可以用于向接收链发送跨链账户冻结请求。The third blockchain 606 can be used to send a cross-chain account freezing request to the receiving chain.
其中,跨链账户冻结请求包括待冻结账户的账户标识和待冻结链的链标识。接收链可以包括以下任意一项或多项:第一区块链601,第二区块链602,中继链605。跨链账户冻结请求通常用于请求冻结除本区块链之外的区块链上的账户。待冻结链通常是需要执行与账户冻结相关的操作的区块链。链标识通常是用于标识区块链的信息。作为示例,链标识可以为001。The cross-chain account freezing request includes the account ID of the account to be frozen and the chain ID of the chain to be frozen. The receiving chain may include any one or more of the following: a first blockchain 601 , a second blockchain 602 , and a relay chain 605 . Cross-chain account freeze requests are usually used to request to freeze accounts on blockchains other than this blockchain. The chain to be frozen is usually the blockchain that needs to perform operations related to account freezing. A chain identity is usually information used to identify a blockchain. As an example, the chain ID may be 001.
这里,第三区块链606可以是系统中与第一区块链601,第二区块链602,中继链605具有任意关系的区块链。如,第三区块链606可以是中继链605的直系前辈链、旁系同辈链等。Here, the third blockchain 606 may be a blockchain that has any relationship with the first blockchain 601, the second blockchain 602, and the relay chain 605 in the system. For example, the third blockchain 606 may be a direct predecessor chain, a collateral sibling chain, or the like of the relay chain 605 .
在本实施例中,第三区块链606可以向第一区块链601,第二区块链602,中继链605中的任意一条或多条链发送跨链账户冻结请求。In this embodiment, the third blockchain 606 may send a cross-chain account freezing request to any one or more of the first blockchain 601 , the second blockchain 602 , and the relay chain 605 .
接收链,用于接收所述第三区块链发送的跨链账户冻结请求;在所述待冻结链的链标识所指示的区块链中,将与所述待冻结账户的账户标识对应的账户状态参数的取值修改为第四预设值。The receiving chain is used to receive the cross-chain account freezing request sent by the third blockchain; in the blockchain indicated by the chain ID of the chain to be frozen, the account ID corresponding to the account ID of the account to be frozen is The value of the account status parameter is modified to the fourth preset value.
其中,所述第四预设值用于指示所述待冻结账户当前处于被冻结状态。The fourth preset value is used to indicate that the account to be frozen is currently in a frozen state.
本实施例提供的系统,第三区块链可以向接收链发送跨链账户冻结请求,实现跨区块链地对账户进行冻结。有助于实现在发现某条区块链上存在恶意操作的账户时,及时针对该账户发起冻结请求,以实现对该账户及时冻结,有助于保障与该账户所在区块链身份可互通的其它区块链的安全。In the system provided by this embodiment, the third blockchain can send a cross-chain account freezing request to the receiving chain, so as to freeze the account across the blockchain. It is helpful to realize that when an account with malicious operations is found on a certain blockchain, a freezing request is initiated for the account in time, so as to realize the timely freezing of the account, which helps to ensure that the identity of the blockchain where the account is located can be communicated with each other. Security of other blockchains.
在本实施例的一些可选的实现方式中,上述在所述待冻结链的链标识所指示的区块链中,将与所述待冻结账户的账户标识对应的账户状态参数的取值修改为第四预设值,可以包括:接收链响应于确定链标识指示接收链为待冻结链且待冻结账户所在区块链为接收链,从接收链中预先存储的本链身份记录信息表中,查找待冻结账户的账户标识所在身份记录信息;将查找到的身份记录信息中的账户状态参数的取值修改为第四预设值。In some optional implementations of this embodiment, in the blockchain indicated by the chain identifier of the chain to be frozen, the value of the account status parameter corresponding to the account identifier of the account to be frozen is modified is the fourth preset value, which may include: in response to the determination of the chain identifier, the receiving chain indicates that the receiving chain is the chain to be frozen and the blockchain where the account to be frozen is located is the receiving chain, from the identity record information table of this chain pre-stored in the receiving chain , look up the identity record information where the account identifier of the account to be frozen is located; and modify the value of the account status parameter in the found identity record information to a fourth preset value.
此时,待冻结链为接收链。本实现方式可以实现对接收链上的账户进行冻结,从而实现跨区块链地对账户进行冻结。At this time, the chain to be frozen is the receiving chain. This implementation method can realize the freezing of the account on the receiving chain, so as to realize the freezing of the account across the blockchain.
在本实施例的一些可选的实现方式中,上述在所述待冻结链的链标识所指示的区块链中,将与所述待冻结账户的账户标识对应的账户状态参数的取值修改为第四预设值,可以包括:首先,接收链响应于确定链标识指示接收链为非待冻结链且待冻结账户所在区块链为接收链的直系子链,将跨链账户冻结请求发送至直系子链。然后,直系子链从直系子链中预先存储的本链身份记录信息表中,查找待冻结账户的账户标识所在身份记录信息;将查找到的身份记录信息中的账户状态参数的取值修改为第四预设值。In some optional implementations of this embodiment, in the blockchain indicated by the chain identifier of the chain to be frozen, the value of the account status parameter corresponding to the account identifier of the account to be frozen is modified is the fourth preset value, which may include: first, the receiving chain sends a cross-chain account freezing request in response to determining that the chain identifier indicates that the receiving chain is a non-to-be-frozen chain and the blockchain where the account to be frozen is located is a direct sub-chain of the receiving chain to the immediate subchain. Then, the direct sub-chain searches the identity record information where the account identifier of the account to be frozen is located from the identity record information table of this chain pre-stored in the direct sub-chain; and modifies the value of the account status parameter in the found identity record information to Fourth preset value.
此时,接收链并非待冻结链,且待冻结链为接收链的直系子链。本实现方式可以实现对接收链的直系子链上的账户进行冻结。At this time, the receiving chain is not the chain to be frozen, and the chain to be frozen is a direct child chain of the receiving chain. This implementation can realize the freezing of the accounts on the direct sub-chain of the receiving chain.
在本实施例的一些可选的实现方式中,上述在所述待冻结链的链标识所指示的区块链中,将与所述待冻结账户的账户标识对应的账户状态参数的取值修改为第四预设值,可以包括:首先,接收链响应于确定链标识指示接收链为待冻结链且待冻结账户所在区块链为接收链的直系子链,从接收链中预先存储的跨链身份记录信息表中,查找待冻结账户的账户标识所在身份记录信息,将查找到的身份记录信息中的账户状态参数的取值修改为第四预设值;将跨链账户冻结请求发送至直系子链。然后,直系子链从直系子链中预先存储的本链身份记录信息表中,查找待冻结账户的账户标识所在身份记录信息;将查找到的身份记录信息中的账户状态参数的取值修改为第四预设值。In some optional implementations of this embodiment, in the blockchain indicated by the chain identifier of the chain to be frozen, the value of the account status parameter corresponding to the account identifier of the account to be frozen is modified The fourth preset value may include: first, the receiving chain, in response to determining the chain identifier indicating that the receiving chain is the chain to be frozen and the blockchain where the account to be frozen is located is a direct sub-chain of the receiving chain, from the cross-chain pre-stored in the receiving chain; In the chain identity record information table, look up the identity record information of the account identifier of the account to be frozen, and modify the value of the account status parameter in the found identity record information to the fourth preset value; send the cross-chain account freezing request to Immediate child chain. Then, the direct sub-chain searches the identity record information where the account identifier of the account to be frozen is located from the identity record information table of this chain pre-stored in the direct sub-chain; and modifies the value of the account status parameter in the found identity record information to Fourth preset value.
这里,待冻结链为接收链和接收链的直系子链。此时,跨链账户冻结请求中的链标识的数目有两个。实践中,跨链账户冻结请求中的链标识的数目可以有多个。本实现方式可以实现在接收链和接收链的直系子链的范围内,对待冻结账户进行冻结。Here, the chain to be frozen is the receiving chain and the direct child chain of the receiving chain. At this time, the number of chain IDs in the cross-chain account freezing request is two. In practice, there can be multiple chain identifiers in the cross-chain account freezing request. This implementation mode can realize the freezing of the account to be frozen within the scope of the receiving chain and the direct sub-chain of the receiving chain.
在本实施例的一些可选的实现方式中,上述在所述待冻结链的链标识所指示的区块链中,将与所述待冻结账户的账户标识对应的账户状态参数的取值修改为第四预设值,可以包括:接收链响应于确定链标识指示接收链为非待冻结链且待冻结账户所在区块链为接收链的旁系链,生成对应于待冻结账户的身份记录信息,将所生成的身份记录信息添加至接收链的跨链身份记录信息表中。In some optional implementations of this embodiment, in the blockchain indicated by the chain identifier of the chain to be frozen, the value of the account status parameter corresponding to the account identifier of the account to be frozen is modified is the fourth preset value, which may include: the receiving chain generates an identity record corresponding to the to-be-frozen account in response to determining that the chain identifier indicates that the receiving chain is a non-to-be-frozen chain and the blockchain where the to-be-frozen account is located is a side-chain of the receiving chain information, and add the generated identity record information to the cross-chain identity record information table of the receiving chain.
其中,所生成的身份记录信息中的账户状态参数的取值为第四预设值。这里,由于接收链中通常没有同步旁系链中的账户的身份记录信息。为了实现对待冻结账户进行冻结,接收链可以针对待冻结账户的身份标识,生成一个身份记录信息,实现在接收链范围内对待冻结账户进行冻结。这里,所生成的身份记录信息,可以包括账户标识和取值为第四预设值的账户状态参数。实践中,在身份记录信息的格式需要包括账户标识、账户身份描述信息的存储地址、账户身份描述信息的哈希值、账户状态参数四者时,该所生成的身份记录信息中,存储地址通常为空,且哈希值通常为空。The value of the account status parameter in the generated identity record information is a fourth preset value. Here, since the receiving chain usually does not synchronize the identity record information of the accounts in the sidechain chain. In order to freeze the account to be frozen, the receiving chain can 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 scope of the receiving chain. Here, the generated identity record information may include an account identifier and an account status parameter whose value is a fourth preset value. In practice, when the format of the identity record information needs to include the account identifier, the storage address of the account identity description information, the hash value of the account identity description information, and the account status parameter, in the generated identity record information, the storage address Usually empty, and the hash value is usually empty.
本实现方式,可以实现对接收链的旁系链上的账户在接收链范围内进行冻结,可以实现跨区块链地对账户进行冻结。In this implementation manner, the account on the sidechain chain of the receiving chain can be frozen within the scope of the receiving chain, and the account can be frozen across the blockchain.
需要指出的是,控制对待冻结账户的冻结范围,有助于实现更好地保障与该账户所在区块链身份可互通的其它区块链的安全。It should be pointed out that controlling the freezing range of the account to be frozen helps to better ensure the security of other blockchains that can communicate with the identity of the blockchain where the account is located.
另外,对账户进行解冻的方式通常与对该账户进行冻结的方式相类似。故,针对如何对账户进行解冻,本申请不做过多陈述。Also, unfreezing an account is typically done in a similar way to freezing the account. Therefore, this application does not make too many statements on how to unfreeze the account.
在本实施例的一些可选的实现方式中,上述账户查询系统中,In some optional implementations of this embodiment, in the above account inquiry system,
第一跨链网关,还用于缓存中继链针对跨链账户查询请求返回的查找到的身份记录信息;响应于接收到第一区块链二次发送跨链账户查询请求,根据缓存的身份记录信息所包括的存储地址,获取第二区块链上的待查账户的账户身份描述信息,以及将获取到的账户身份描述信息向第一区块链发送。The first cross-chain gateway is also used to cache the found identity record information returned by the relay chain for the cross-chain account query request; in response to receiving the second cross-chain account query request sent by the first blockchain, according to the cached identity The storage address included in the record information is obtained, the account identity description information of the account to be checked on the second blockchain is obtained, and the obtained account identity description information is sent to the first blockchain.
第一跨链网关,还用于在通信连接的区块链将待冻结账户的账户标识所在身份记录信息中的账户状态参数的取值修改为第四预设值时,缓存该账户状态参数的取值为第四预设值的身份记录信息。The first cross-chain gateway is further configured to cache the account status parameter when the block chain of the communication connection modifies the value of the account status parameter in the identity record information where the account identifier of the account to be frozen is located to a fourth preset value. The value is the identity record information of the fourth preset value.
在本实现方式中,在中继链针对第一区块链返回查找到的身份记录信息时,第一跨链网关可以对该返回的身份记录信息进行缓存。这样,在第一区块链下次再对同一账户进行查询时,可以直接将该缓存的身份记录信息发送至第一区块链,从而加快查询效率。In this implementation manner, when the relay chain returns the found identity record information for the first blockchain, the first cross-chain gateway can cache the returned identity record information. In this way, when the first blockchain queries the same account next time, the cached identity record information can be directly sent to the first blockchain, thereby speeding up the query efficiency.
另外,在第一区块链对第一区块链上的某账户进行冻结后,第一跨链网关可以对当前所缓存的身份记录信息进行更新。具体地,若第一跨链网关中缓存有被冻结账户的身份记录信息,则第一跨链网关可以将所缓存的该身份记录信息中的账户状态参数的取值修改为第四预设值。若第一跨链网关中未缓存被冻结账户的身份记录信息,则第一跨链网关可以将该别冻结账户的身份记录信息缓存至第一跨链网关。In addition, after the first blockchain freezes an account on the first blockchain, the first cross-chain gateway can update the currently cached identity record information. Specifically, if the identity record information of the frozen account is cached in the first cross-chain gateway, the first cross-chain gateway can modify the value of the account status 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-chain gateway, the first cross-chain gateway may cache the identity record information of the other frozen account to the first cross-chain gateway.
实施例四Embodiment 4
继续参考图7,图7为本申请实施例提供的与账户查询系统对应的账户查询方法的流程示意图。如图7所示地,账户查询方法包括:Continuing to refer to FIG. 7 , FIG. 7 is a schematic flowchart of an account inquiry method corresponding to an account inquiry system provided by an embodiment of the present application. As shown in Figure 7, the account inquiry method includes:
步骤701,第一区块链通过第一跨链网关向中继链发送跨链账户查询请求。Step 701: The first blockchain sends a cross-chain account query request to the relay chain through the first cross-chain gateway.
其中,跨链账户查询请求包括第二区块链上的待查账户的账户标识。The cross-chain account query request includes the account identifier of the account to be checked on the second blockchain.
步骤702,中继链接收跨链账户查询请求,从中继链中预先存储的跨链身份记录信息表中,查找账户标识所在的身份记录信息;响应于查找到账户标识所在的身份记录信息,通过第一跨链网关将查找到的身份记录信息向第一区块链发送。Step 702, the relay chain receives the cross-chain account query request, and searches for the identity record information where the account identifier is located from the cross-chain identity record information table pre-stored in the relay chain; in response to finding the identity record information where the account identifier is located, by The first cross-chain gateway sends the found identity record information to the first blockchain.
其中,跨链身份记录信息表中的身份记录信息包括账户标识和用于存储账户标识所标示账户的账户身份描述信息的存储地址。The identity record information in the cross-chain identity record information table includes an account identifier and a storage address for storing account identity description information of the account marked by the account identifier.
步骤703,第一区块链接收查找到的身份记录信息,将查找到的身份记录信息中的存储地址发送至第一跨链网关。Step 703: The first blockchain receives the found identity record information, and sends the storage address in the found identity record information to the first cross-chain gateway.
步骤704,第一跨链网关根据所接收的存储地址,获取第二区块链上的待查账户的账户身份描述信息,以及将获取到的账户身份描述信息向第一区块链发送,使得第一区块链基于获取到的账户身份描述信息对第二区块链上的待查账户进行身份认证。Step 704, the first cross-chain gateway obtains the account identity description information of the account to be checked on the second blockchain according to the received storage address, and sends the obtained account identity description information to the first blockchain, so that The first blockchain authenticates the account to be checked on the second blockchain based on the obtained account identity description information.
需要说明的是,上述第一区块链、上述第一跨链网关、上述第二区块链、上述第二跨链网关和上述中继链之间的信息交互、执行过程等内容,由于与本申请的系统实施例基于同一构思,其具体功能及带来的技术效果,具体可参见系统实施例部分,此处不再赘述。It should be noted that the information exchange and execution process among the above-mentioned first blockchain, the above-mentioned first cross-chain gateway, the above-mentioned second blockchain, the above-mentioned second cross-chain gateway and the above-mentioned relay chain, due to the The system embodiments of the present application are based on the same concept, and the specific functions and technical effects brought about by the system embodiments can be found in the system embodiments section for details, which will not be repeated here.
图8为本申请实施例提供的账户查询方法的流程示意图。FIG. 8 is a schematic flowchart of an account query method provided by an embodiment of the present application.
步骤801,账户所在用户终端向区块链发送本链账户查询请求,本链账户查询请求包括账户标识。Step 801, the user terminal where the account is located sends an account query request of the local chain to the blockchain, and the account query request of the local chain includes the account identifier.
步骤802,应用链从本链身份记录信息表中查找账户标识所在的身份记录信息。若查找成功,执行步骤803-808。若查找不成功,则执行步809。Step 802, the application chain searches the identity record information where the account identifier is located from the identity record information table of the chain. If the search is successful, steps 803-808 are performed. If the search is unsuccessful, step 809 is executed.
步骤803,应用链将查找到的身份记录信息中的存储地址发送至跨链网关。Step 803, the application chain sends the storage address in the found identity record information to the cross-chain gateway.
步骤804,跨链网关采用存储地址,从存储地址对应位置处获取数据。Step 804, the cross-chain gateway uses the storage address to obtain data from the location corresponding to the storage address.
步骤805,存储服务器向跨链网关返回该存储地址处的账户身份描述信息。Step 805, the storage server returns the account identity description information at the storage address to the cross-chain gateway.
步骤806,跨链网关将账户身份描述信息向应用链发送。Step 806, the cross-chain gateway sends the account identity description information to the application chain.
步骤807,应用链对所接收的账户身份描述信息进行验证。Step 807, the application chain verifies the received account identity description information.
这里,对所接收的账户身份描述信息进行验证,通常是计算所接收的账户身份描述信息的哈希值,若计算得到的哈希值与身份记录信息中的哈希值相同,则验证通过。反之,若不一致,则验证不通过。Here, the verification of the received account identity description information usually involves calculating a hash value of the received account identity description information. If the calculated hash value is the same as the hash value in the identity record information, the verification is passed. Conversely, if they are inconsistent, the verification fails.
步骤808,应用链将验证结果和账户身份描述信息发送至用户终端。Step 808, the application chain sends the verification result and account identity description information to the user terminal.
步骤809,应用链将包括账户标识的继续查询请求发送至跨链网关。In step 809, the application chain sends the continuation query request including the account identifier to the cross-chain gateway.
步骤810,跨链网关将包括账户标识的继续查询请求发送至中继链。Step 810, the cross-chain gateway sends a continuation query request including the account identifier to the relay chain.
步骤811,中继链从跨链身份记录信息表中查找账户标识所在的身份记录信息。若查找失败,执行步骤812。若查找成功,则将查找到的身份记录信息通过跨链网关发送至应用链。这样,应用链通过执行步骤803-808将查找成功的查找结果返回至用户终端。Step 811, the relay chain searches the identity record information where the account identifier is located from the cross-chain identity record information table. If the search fails, step 812 is executed. If the search is successful, the found identity record information will be sent to the AppChain through the cross-chain gateway. In this way, the application chain returns the successful search result to the user terminal by executing steps 803-808.
步骤812,向上级中继链发送继续查询请求,实现在上级中继链中执行查找。若上级中继链以及上级中继链的各层的上级中继链乃至最顶层的中继链均查找不成功,则执行步骤813。Step 812: Send a continuation query request to the upper-level relay chain to implement the search in the upper-level relay chain. If the upper-level relay chain, the upper-level relay chain of each layer of the upper-level relay chain, and even the top-most relay chain are all unsuccessfully searched, step 813 is executed.
步骤813,中继链将查找不成功的查找结果返回至跨链网关。Step 813, the relay chain returns the unsuccessful search result to the cross-chain gateway.
步骤814,跨链网关将查找不成功的查找结果返回至应用链。Step 814, the cross-chain gateway returns the unsuccessful search result to the application chain.
步骤815,应用链将查找不成功的查找结果返回至用户终端。Step 815, the application chain returns the unsuccessful search result to the user terminal.
实施例五Embodiment 5
继续参考图9,图9示出了本申请实施例提供的跨链网关900的结构框图。如图9所示地,跨链网关900包括:信息传递单元901和信息读取单元902,其中,跨链网关分别与第一区块链和中继链通信连接。Continuing to refer to FIG. 9 , FIG. 9 shows a structural block diagram of a cross-chain gateway 900 provided by an embodiment of the present application. As shown in FIG. 9 , the cross-chain gateway 900 includes: an information transmission unit 901 and an information reading unit 902 , wherein the cross-chain gateway is connected in communication with the first blockchain and the relay chain, respectively.
信息传递单元901,用于将第一区块链的跨链账户查询请求转发至中继链,其中,跨链账户查询请求包括第二区块链上的待查账户的账户标识;将中继链针对跨链账户查询请求查找到的身份记录信息转发至第一区块链,身份记录信息包括账户标识和用于存储账户标识所标示账户的账户身份描述信息的存储地址;The information transfer unit 901 is used to forward the cross-chain account query request of the first blockchain to the relay chain, wherein the cross-chain account query request includes the account identifier of the account to be checked on the second blockchain; The chain forwards the identity record information found by the cross-chain account query request to the first blockchain, and the identity record information includes the account identifier and the storage address for storing the account identity description information of the account marked by the account identifier;
信息读取单元902,用于接收第一区块链发送的、查找到的身份记录信息中的存储地址;根据所接收的存储地址,获取第二区块链上的待查账户的账户身份描述信息,以及将获取到的账户身份描述信息向第一区块链发送,使得第一区块链基于获取到的账户身份描述信息对第二区块链上的待查账户进行身份认证。The information reading unit 902 is configured to receive the storage address in the found identity record information sent by the first blockchain; obtain the account identity description of the account to be checked on the second blockchain according to the received storage address information, and send the obtained account identity description information to the first blockchain, so that the first blockchain can authenticate the account to be checked on the second blockchain based on the obtained account identity description information.
本实施例提供的跨链网关,由于读取所存储的账户身份描述信息需要耗费较多时间,由跨链网关实现对所存储的账户身份描述信息进行读取,可以减少区块链的工作量,有助于提高整个区块链网络的数据处理效率。In the cross-chain gateway provided in this embodiment, since it takes a lot of time to read the stored account identity description information, the cross-chain gateway realizes the reading of the stored account identity description information, which can reduce the workload of the blockchain , which helps to improve the data processing efficiency of the entire blockchain network.
在本实施例的一些可选的实现方式中,跨链网关还包括信息存储单元,其中,信息存储单元,用于响应于接收到第一区块链发送的数据存储类型和账户身份描述信息,将所接收的账户身份描述信息存储至与数据存储类型匹配的存储服务器,以及向区块链返回针对所接收的账户身份描述信息的存储地址。In some optional implementations of this embodiment, the cross-chain gateway further includes an information storage unit, wherein the information storage unit is used for receiving the data storage type and account identity description information sent by the first blockchain, The received account identity description information is stored to a storage server matching the data storage type, and the storage address for the received account identity description information is returned to the blockchain.
需要说明的是,上述第一区块链、上述第一跨链网关、上述第二区块链、上述第二跨链网关和上述中继链之间的信息交互、执行过程等内容,由于与本申请的系统实施例基于同一构思,其具体功能及带来的技术效果,具体可参见系统实施例部分,此处不再赘述。It should be noted that the information exchange and execution process among the above-mentioned first blockchain, the above-mentioned first cross-chain gateway, the above-mentioned second blockchain, the above-mentioned second cross-chain gateway and the above-mentioned relay chain, due to the The system embodiments of the present application are based on the same concept, and the specific functions and technical effects brought about by the system embodiments can be found in the system embodiments section for details, which will not be repeated here.
以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围,均应包含在本申请的保护范围之内。The above embodiments are only used to illustrate the technical solutions of the present application, but not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: The recorded technical solutions are modified, or some technical features thereof are equivalently replaced; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the application, and should be included in the application. within the scope of protection.

Claims (14)

  1. 一种账户查询系统,其中,所述系统包括:第一区块链、第二区块链、第一跨链网关、第二跨链网关和中继链,所述第一区块链通过所述第一跨链网关与所述中继链可通信连接,所述第二区块链通过所述第二跨链网关与所述中继链可通信连接,其中,An account inquiry system, wherein the system includes: a first blockchain, a second blockchain, a first cross-chain gateway, a second cross-chain gateway and a relay chain, the first blockchain is The first cross-chain gateway is communicatively connected to the relay chain, and the second blockchain is communicatively connected to the relay chain through the second cross-chain gateway, wherein,
    所述第一区块链,用于通过所述第一跨链网关向所述中继链发送跨链账户查询请求,其中,所述跨链账户查询请求包括所述第二区块链上的待查账户的账户标识;The first blockchain is used to send a cross-chain account query request to the relay chain through the first cross-chain gateway, wherein the cross-chain account query request includes the query request on the second blockchain. Account ID of the account to be checked;
    所述中继链,用于接收所述跨链账户查询请求,从所述中继链中预先存储的跨链身份记录信息表中,查找所述账户标识所在的身份记录信息,其中,所述跨链身份记录信息表中的身份记录信息包括账户标识和用于存储账户标识所标示账户的账户身份描述信息的存储地址;响应于查找到所述账户标识所在的身份记录信息,通过所述第一跨链网关将查找到的身份记录信息向所述第一区块链发送;The relay chain is used to receive the cross-chain account query request, and search for the identity record information where the account identifier is located from the cross-chain identity record information table pre-stored in the relay chain, wherein the The identity record information in the cross-chain identity record information table includes an account identifier and a storage address for storing account identity description information of the account marked by the account identifier; in response to finding the identity record information where the account identifier is located, the A cross-chain gateway sends the found identity record information to the first blockchain;
    所述第一区块链,还用于接收查找到的身份记录信息,将查找到的身份记录信息中的存储地址发送至所述第一跨链网关;The first blockchain is further configured to receive the found identity record information, and send the storage address in the found identity record information to the first cross-chain gateway;
    所述第一跨链网关,用于根据所接收的存储地址,获取所述第二区块链上的待查账户的账户身份描述信息,以及将获取到的账户身份描述信息向所述第一区块链发送,使得所述第一区块链基于获取到的账户身份描述信息对所述第二区块链上的待查账户进行身份认证。The first cross-chain gateway is used to obtain the account identity description information of the account to be checked on the second blockchain according to the received storage address, and send the obtained account identity description information to the first blockchain. The block chain is sent, so that the first block chain performs identity authentication on the account to be checked on the second block chain based on the acquired account identity description information.
  2. 根据权利要求1所述的账户查询系统,其中,The account inquiry system according to claim 1, wherein,
    所述第一区块链,还用于响应于接收到本链账户所在用户终端发送的、用于查询所述第一区块链上的待查账户的本链账户查询请求,从所述第一区块链中预先存储的本链身份记录信息表中,查找待查账户的账户标识所在的身份记录信息,将查找到的身份记录信息中的存储地址发送至所述第一跨链网关,其中,本链账户查询请求包括待查账户的账户标识,所述本链身份记录信息表中的身份记录信息包括账户标识和用于存储账户标识所标示账户的账户身份描述信息的存储地址;The first blockchain is further configured to, in response to receiving a local-chain account query request sent by the user terminal where the local-chain account is located, for querying the account to be checked on the first blockchain, from the first blockchain. In an identity record information table of this chain pre-stored in the blockchain, look up the identity record information where the account identifier of the account to be checked is located, and send the storage address in the found identity record information to the first cross-chain gateway, Wherein, the on-chain account query request includes the account identifier of the account to be checked, and the identity record information in the on-chain identity record information table includes the account identifier and the storage address for storing the account identity description information of the account marked by the account identifier;
    所述第一跨链网关,还用于根据所接收的存储地址,获取所述第一区块链上的待查账户的账户身份描述信息,以及将获取到的账户身份描述信息向所述第一区块链发送;The first cross-chain gateway is further configured to obtain the account identity description information of the account to be checked on the first blockchain according to the received storage address, and send the obtained account identity description information to the first blockchain. a blockchain send;
    所述第一区块链,还用于接收所述第一跨链网关返回的所述第一区块链上的待查账户的账户身份描述信息,以及将所接收的账户身份描述信息向所述用户终端发送。The first blockchain is further configured to receive the account identity description information of the account to be checked on the first blockchain returned by the first cross-chain gateway, and send the received account identity description information to the sent by the user terminal.
  3. 根据权利要求1所述的账户查询系统,其中,The account inquiry system according to claim 1, wherein,
    所述中继链,还用于响应于接收到所述第一区块链通过所述第一跨链网关发送的、用于查询所述中继链上的待查账户的本链账户查询请求,从所述中继链中预先存储的本链身份记录信息表中,查找所述中继链上的待查账户的账户标识所在的身份记录信息;响应于查找到所述中继链上的待查账户的账户标识所在的身份记录信息,通过所述第一跨链网关将查找到的身份记录信息向所述第一区块链发送;The relay chain is further configured to respond to a local chain account query request sent by the first blockchain through the first cross-chain gateway and used to query the account to be checked on the relay chain , from the identity record information table of this chain pre-stored in the relay chain, look up the identity record information where the account identifier of the account to be checked on the relay chain is located; in response to finding the identity record information on the relay chain The identity record information where the account identifier of the account to be checked is located, and the found identity record information is sent to the first blockchain through the first cross-chain gateway;
    所述第一区块链,还用于接收查找到的身份记录信息,将查找到的身份记录信息中的存储地址发送至所述第一跨链网关;The first blockchain is further configured to receive the found identity record information, and send the storage address in the found identity record information to the first cross-chain gateway;
    所述第一跨链网关,用于根据所接收的存储地址,获取所述中继链上的待查账户的账户身份描述信息,以及将获取到的账户身份描述信息向所述第一区块链发送,使得所述第一区块链基于获取到的账户身份描述信息对所述中继链上的待查账户进行身份认证。The first cross-chain gateway is used to obtain the account identity description information of the account to be checked on the relay chain according to the received storage address, and send the obtained account identity description information to the first block. Chain transmission, 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.
  4. 根据权利要求2所述的账户查询系统,其中,所述系统还包括至少一个存储服务器,所述第一区块链通过执行构建步骤实现预先存储本链身份记录信息表,所述构建步骤包括:The account inquiry system according to claim 2, wherein the system further comprises at least one storage server, and the first blockchain realizes pre-storing the identity record information table of this chain by executing a construction step, and the construction step includes:
    响应于接收到本链账户所在用户终端发送的、包括本链账户的账户标识和账户身份描述信息的身份注册请求,将所述第一区块链的数据存储类型和本链账户的账户身份描述信息发送至所述第一跨链网关,使得所述第一跨链网关将本链账户的账户身份描述信息存储至与数据存储类型匹配的存储服务器;In response to receiving the identity registration request sent by the user terminal where the account of this chain is located, including the account identification and account identity description information of the account of this chain, describe the data storage type of the first blockchain and the account identity of the account of this chain. Sending the information to the first cross-chain gateway, so that the first cross-chain gateway stores the account identity description information of the account on this chain to a storage server that matches the data storage type;
    接收所述第一跨链网关针对本链账户的账户身份描述信息返回的存储地址;Receive the storage address returned by the first cross-chain gateway for the account identity description information of the account on this chain;
    将本链账户的账户标识、所述存储地址、本链账户的账户身份描述信息的哈希值、取值为第一预设值的账户状态参数的整体作为身份记录信息存入本链身份记录信息表,其中,所述第一预设值用于指示本链账户当前处于注册待审核状态。Store the entirety of the account identifier of the account on this chain, the storage address, the hash value of the account identity description information of the account in this chain, and the account status parameter whose value is the first preset value as the identity record information in the identity record of this chain The information table, wherein the first preset value is used to indicate that the account of this chain is currently in a registration pending state.
  5. 根据权利要求4所述的账户查询系统,其中,所述构建步骤还包括:The account inquiry system according to claim 4, wherein the constructing step further comprises:
    对本链身份记录信息表中对应账户状态参数的取值为第一预设值的身份记录信息执行预设审核操作,得到审核结果信息,以及在所述审核结果信息指示审核通过时,将相应身份记录信息中的账户状态参数的取值修改为第二预设值,其中,所述第二预设值用于指示账户当前处于审核通过状态。Perform a preset audit operation on the identity record information whose value of the corresponding account status parameter in the identity record information table of this chain is the first preset value to obtain audit result information, and when the audit result information indicates that the audit is passed, the corresponding identity The value of the account status parameter in the record information is modified to a second preset value, wherein the second preset value is used to indicate that the account is currently in an approved state.
  6. 根据权利要求4所述的账户查询系统,其中,所述构建步骤还包括:The account inquiry system according to claim 4, wherein the constructing step further comprises:
    响应于接收到本链账户所在用户终端发送的、包括本链账户的账户标识和新账户身份描述信息的身份更新请求,将所述第一区块链的数据存储类型和本链账户的新账户身份描述信息发送至所述第一跨链网关,使得所述第一跨链网关将本链账户的新账户身份描述信息存储至与数据存储类型匹配的存储服务器;In response to receiving the identity update request sent by the user terminal where the account of this chain is located, including the account identification of the account of this chain and the description information of the new account identity, the data storage type of the first blockchain and the new account of the account of this chain are stored. The identity description information is sent to the first cross-chain gateway, so that the first cross-chain gateway stores the new account identity description information of the account on this chain to a storage server that matches the data storage type;
    接收所述第一跨链网关针对本链账户的新账户身份描述信息返回的新存储地址;Receive the new storage address returned by the first cross-chain gateway for the new account identity description information of the account on this chain;
    将本链账户对应的身份记录信息中的存储地址修改为所述新存储地址,将账户身份描述信息的哈希值修改为所述新账户身份描述信息的哈希值,将账户状态参数的取值修改为第三预设值,其中,所述第三预设值用于指示本链账户当前处于更新待审核状态。Modify the storage address in the identity record information corresponding to this chain account 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 change the value of the account status parameter. The value is modified to a third preset value, wherein the third preset value is used to indicate that the account of this chain is currently in a state of update pending review.
  7. 根据权利要求1-6中任一项所述的账户查询系统,其中,所述系统还包括第三区块链,且所述系统所包括的任意一条或多条区块链中预先存储有本链身份记录信息表,本链身份记录信息表中的身份记录信息包括账户标识、用于存储账户标识所标示账户的账户身份描述信息的存储地址、用于指示账户标识所标识账户的账户状态的账户状态参数;以及The account inquiry system according to any one of claims 1-6, wherein the system further includes a third blockchain, and any one or more blockchains included in the system are pre-stored with this Chain identity record information table, the identity record information in this chain identity record information table includes the account identifier, the storage address used to store the account identity description information of the account marked by the account identifier, and the address used to indicate the account status of the account marked by the account identifier. account status parameters; and
    所述第三区块链,用于向接收链发送跨链账户冻结请求,其中,所述跨链账户冻结请求包括待冻结账户的账户标识和待冻结链的链标识,所述接收链包括以下任意一项或多项:所述第一区块链,所述第二区块链,所述中继链;The third blockchain is used to send a cross-chain account freezing request to the receiving chain, wherein the cross-chain account freezing request includes the account identifier of the account to be frozen and the chain identifier of the chain to be frozen, and the receiving chain includes the following: Any one or more of: the first blockchain, the second blockchain, the relay chain;
    所述接收链,用于接收所述第三区块链发送的跨链账户冻结请求;在所述待冻结链的链标识所指示的区块链中,将与所述待冻结账户的账户标识对应的账户状态参数的取值修改为第四预设值,其中,所述第四预设值用于指示所述待冻结账户当前处于被冻结状态。The receiving chain is used to receive the cross-chain account freezing request sent by the third blockchain; in the blockchain indicated by the chain ID of the chain to be frozen, the account ID of the account to be frozen is compared with the account ID of the account to be frozen The value of the corresponding account state parameter is modified to a fourth preset value, where the fourth preset value is used to indicate that the account to be frozen is currently in a frozen state.
  8. 根据权利要求7所述的账户查询系统,其中,所述在所述待冻结链的链标识所指示的区块链中,将与所述待冻结账户的账户标识对应的账户状态参数的取值修改为第四预设值,包括:The account inquiry system according to claim 7, wherein, in the blockchain indicated by the chain identifier of the chain to be frozen, the value of the account status parameter corresponding to the account identifier of the account to be frozen is set Modified to the fourth preset value, including:
    所述接收链响应于确定所述链标识指示所述接收链为待冻结链且所述待冻结账户所在区块链为所述接收链,从所述接收链中预先存储的本链身份记录信息表中,查找所述待冻结账户的账户标识所在身份记录信息;将查找到的身份记录信息中的账户状态参数的取值修改为第四预设值。The receiving chain, in response to determining that the chain identifier indicates that the receiving chain is the chain to be frozen and the blockchain where the account to be frozen is located is the receiving chain, obtains the identity record information of this chain pre-stored in the receiving chain In the table, look up the identity record information where the account identifier of the account to be frozen is located; and modify the value of the account status parameter in the found identity record information to a fourth preset value.
  9. 根据权利要求7所述的账户查询系统,其中,所述在所述待冻结链的链标识所指示的区块链中,将与所述待冻结账户的账户标识对应的账户状态参数的取值修改为第四预设值,包括:The account inquiry system according to claim 7, wherein, in the blockchain indicated by the chain identifier of the chain to be frozen, the value of the account status parameter corresponding to the account identifier of the account to be frozen is set Modified to the fourth preset value, including:
    所述接收链响应于确定所述链标识指示所述接收链为非待冻结链且所述待冻结账户所在区块链为所述接收链的直系子链,将所述跨链账户冻结请求发送至所述直系子链;The receiving chain sends the cross-chain account freezing request in response to determining that the chain identifier indicates that the receiving chain is a non-to-be-frozen chain and that the blockchain where the account to be frozen is located is a direct sub-chain of the receiving chain. to the straight daughter chain;
    所述直系子链从所述直系子链中预先存储的本链身份记录信息表中,查找所述待冻结账户的账户标识所在身份记录信息;将查找到的身份记录信息中的账户状态参数的取值修改为第四预设值。The direct sub-chain searches the identity record information where the account identifier of the account to be frozen is located from the identity record information table of the chain pre-stored in the direct sub-chain; The value is modified to the fourth preset value.
  10. 根据权利要求7所述的账户查询系统,其中,所述在所述待冻结链的链标识所指示的区块链中,将与所述待冻结账户的账户标识对应的账户状态参数的取值修改为第四预设值,包括:The account inquiry system according to claim 7, wherein, in the blockchain indicated by the chain identifier of the chain to be frozen, the value of the account status parameter corresponding to the account identifier of the account to be frozen is set Modified to the fourth preset value, including:
    所述接收链响应于确定所述链标识指示所述接收链为待冻结链且所述待冻结账户所在区块链为所述接收链的直系子链,从所述接收链中预先存储的跨链身份记录信息表中,查找所述待冻结账户的账户标识所在身份记录信息,将查找到的身份记录信息中的账户状态参数的取值修改为第四预设值;将所述跨链账户冻结请求发送至所述直系子链;In response to determining that the chain identifier indicates that the receiving chain is a chain to be frozen and the blockchain where the account to be frozen is located is a direct sub-chain of the receiving chain, the receiving chain retrieves the cross-chain data pre-stored in the receiving chain. In the chain identity record information table, look up the identity record information where the account identifier of the account to be frozen is located, and modify the value of the account status parameter in the found identity record information to a fourth preset value; change the cross-chain account A freeze request is sent to the direct child chain;
    所述直系子链从所述直系子链中预先存储的本链身份记录信息表中,查找所述待冻结账户的账户标识所在身份记录信息;将查找到的身份记录信息中的账户状态参数的取值修改为第四预设值。The direct sub-chain searches the identity record information where the account identifier of the account to be frozen is located from the identity record information table of the chain pre-stored in the direct sub-chain; The value is modified to the fourth preset value.
  11. 根据权利要求7所述的账户查询系统,其中,所述在所述待冻结链的链标识所指示的区块链中,将与所述待冻结账户的账户标识对应的账户状态参数的取值修改为第四预设值,包括:The account inquiry system according to claim 7, wherein, in the blockchain indicated by the chain identifier of the chain to be frozen, the value of the account status parameter corresponding to the account identifier of the account to be frozen is set Modified to the fourth preset value, including:
    所述接收链响应于确定所述链标识指示所述接收链为非待冻结链且所述待冻结账户所在区块链为所述接收链的旁系链,生成对应于所述待冻结账户的身份记录信息,将所生成的身份记录信息添加至所述接收链的跨链身份记录信息表中,其中,所生成的身份记录信息中的账户状态参数的取值为第四预设值。The receiving chain, in response to determining that the chain identifier indicates that the receiving chain is a non-to-be-frozen chain and that the blockchain where the to-be-frozen account is located is a sidechain of the receiving chain, generates a chain corresponding to the to-be-frozen account. Identity record information, the generated identity record information is added to the cross-chain identity record information table of the receiving chain, wherein the value of the account status parameter in the generated identity record information is a fourth preset value.
  12. 根据权利要求7所述的账户查询系统,其中,The account inquiry system according to claim 7, wherein,
    所述第一跨链网关,还用于缓存所述中继链针对所述跨链账户查询请求返回的查找到的身份记录信息;响应于接收到所述第一区块链二次发送所述跨链账户查询请求,根据缓存的身份记录信息所包括的存储地址,获取所述第二区块链上的待查账户的账户身份描述信息,以及将获取到的账户身份描述信息向所述第一区块链发送;The first cross-chain gateway is further configured to cache the found identity record information returned by the relay chain for the cross-chain account query request; in response to receiving the first blockchain, send the For a cross-chain account query request, according to the storage address included in the cached identity record information, obtain the account identity description information of the account to be checked on the second blockchain, and send the obtained account identity description information to the first block chain. a blockchain send;
    所述第一跨链网关,还用于在通信连接的区块链将待冻结账户的账户标识所在身份记录信息中的账户状态参数的取值修改为第四预设值时,缓存该账户状态参数的取值为第四预设值的身份记录信息。The first cross-chain gateway is further configured to cache the account status when the block chain of the communication connection modifies the value of the account status parameter in the identity record information where the account identifier of the account to be frozen is located to a fourth preset value The value of the parameter is the identity record information of the fourth preset value.
  13. 一种跨链网关,其中,所述跨链网关分别与第一区块链和中继链通信连接,所述跨链网关包括:信息传递单元和信息读取单元,其中,A cross-chain gateway, wherein the cross-chain gateway is respectively connected to a first blockchain and a relay chain in communication, the cross-chain gateway comprises: an information transmission unit and an information reading unit, wherein,
    所述信息传递单元,用于将所述第一区块链的跨链账户查询请求转发至所述中继链,其中,所述跨链账户查询请求包括第二区块链上的待查账户的账户标识;将所述中继链针对所述跨链账户查询请求查找到的身份记录信息转发至所述第一区块链,身份记录信息包括账户标识和用于存储账户标识所标示账户的账户身份描述信息的存储地址;The information transfer unit is configured to forward the cross-chain account query request of the first blockchain to the relay chain, wherein the cross-chain account query request includes the account to be checked on the second blockchain forwarding the identity record information found by the relay chain for the cross-chain account query request to the first blockchain, where the identity record information includes the account identifier and the account identifier used to store the account marked by the account identifier. The storage address of account identity description information;
    所述信息读取单元,用于接收所述第一区块链发送的、所述查找到的身份记录信息中的存储地址;根据所接收的存储地址,获取所述第二区块链上的待查账户的账户身份描述信息,以及将获取到的账户身份描述信息向所述第一区块链发送,使得所述第一区块链基于获取到的账户身份描述信息对所述第二区块链上的待查账户进行身份认证。The information reading unit is configured to receive the storage address in the found identity record information sent by the first blockchain; obtain the storage address on the second blockchain according to the received storage address. The account identity description information of the account to be checked, and the obtained account identity description information is sent to the first blockchain, so that the first blockchain based on the obtained account identity description The account to be checked on the blockchain is authenticated.
  14. 根据权利要求13所述的跨链网关,其中,所述跨链网关还包括信息存储单元,其中,The cross-chain gateway according to claim 13, wherein the cross-chain gateway further comprises an information storage unit, wherein,
    所述信息存储单元,用于响应于接收到所述第一区块链发送的数据存储类型和账户身份描述信息,将所接收的账户身份描述信息存储至与数据存储类型匹配的存储服务器,以及向所述区块链返回针对所接收的账户身份描述信息的存储地址。The information storage unit is configured to, in response to receiving the data storage type and 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 the storage address for the received account identity description information to the blockchain.
PCT/CN2020/140286 2020-12-28 2020-12-28 Account query system and cross-chain gateway WO2022140950A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2023539355A JP2024501987A (en) 2020-12-28 2020-12-28 Account inquiry system, cross-chain gateway
PCT/CN2020/140286 WO2022140950A1 (en) 2020-12-28 2020-12-28 Account query system and cross-chain gateway

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2020/140286 WO2022140950A1 (en) 2020-12-28 2020-12-28 Account query system and cross-chain gateway

Publications (1)

Publication Number Publication Date
WO2022140950A1 true WO2022140950A1 (en) 2022-07-07

Family

ID=82259010

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/140286 WO2022140950A1 (en) 2020-12-28 2020-12-28 Account query system and cross-chain gateway

Country Status (2)

Country Link
JP (1) JP2024501987A (en)
WO (1) WO2022140950A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115580621A (en) * 2022-09-08 2023-01-06 中国联合网络通信集团有限公司 Block chain cross-chain service processing method, node, medium and block chain

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108768659A (en) * 2018-05-24 2018-11-06 深圳前海益链网络科技有限公司 Across the chain tra nsfer system of Token assets between a kind of different blocks chain network
CN108880794A (en) * 2018-06-15 2018-11-23 浙江华信区块链科技服务有限公司 Across chain user identity and its digital asset management system
US20190058581A1 (en) * 2017-08-03 2019-02-21 Gavin Wood Methods and Systems for a Heterogeneous Multi-Chain Framework
CN110035046A (en) * 2018-11-16 2019-07-19 阿里巴巴集团控股有限公司 The interactive system of transregional piece of chain
CN111488615A (en) * 2020-04-08 2020-08-04 北京瑞策科技有限公司 Cross-link realization method and device for service data block chain

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190058581A1 (en) * 2017-08-03 2019-02-21 Gavin Wood Methods and Systems for a Heterogeneous Multi-Chain Framework
CN108768659A (en) * 2018-05-24 2018-11-06 深圳前海益链网络科技有限公司 Across the chain tra nsfer system of Token assets between a kind of different blocks chain network
CN108880794A (en) * 2018-06-15 2018-11-23 浙江华信区块链科技服务有限公司 Across chain user identity and its digital asset management system
CN110035046A (en) * 2018-11-16 2019-07-19 阿里巴巴集团控股有限公司 The interactive system of transregional piece of chain
CN111488615A (en) * 2020-04-08 2020-08-04 北京瑞策科技有限公司 Cross-link realization method and device for service data block chain

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115580621A (en) * 2022-09-08 2023-01-06 中国联合网络通信集团有限公司 Block chain cross-chain service processing method, node, medium and block chain
CN115580621B (en) * 2022-09-08 2024-02-27 中国联合网络通信集团有限公司 Block chain cross-chain business processing method, node, medium and block chain

Also Published As

Publication number Publication date
JP2024501987A (en) 2024-01-17

Similar Documents

Publication Publication Date Title
US11743137B2 (en) Systems, methods, and apparatuses for implementing a metadata driven rules engine on blockchain using distributed ledger technology (DLT)
US11914712B1 (en) Blockchain based secure naming and update verification
US11469886B2 (en) System or method to implement record level access on metadata driven blockchain using shared secrets and consensus on read
US11811769B2 (en) Systems, methods, and apparatuses for implementing a declarative, metadata driven, cryptographically verifiable multi-network (multi-tenant) shared ledger
US11824864B2 (en) Systems, methods, and apparatuses for implementing a declarative and metadata driven blockchain platform using distributed ledger technology (DLT)
US11824970B2 (en) Systems, methods, and apparatuses for implementing user access controls in a metadata driven blockchain operating via distributed ledger technology (DLT) using granular access objects and ALFA/XACML visibility rules
CN110958117B (en) Block chain interoperability with support for zero knowledge proof
KR102125659B1 (en) Cross-chain interaction using domain name scheme in blockchain system
CN112669038B (en) Account inquiry system and cross-link gateway
US9679156B2 (en) Database virtualization
KR20220044603A (en) Blockchain database management system
WO2022237497A1 (en) Data storage method and apparatus based on blockchain network
CN113271311A (en) Digital identity management method and system in cross-link network
CN115114372A (en) Data processing method, device and equipment based on block chain and readable storage medium
WO2022140950A1 (en) Account query system and cross-chain gateway
KR20220140775A (en) distributed database
CN112445841B (en) Account query method, device, system, server and medium
US10657139B2 (en) Information processing apparatus and non-transitory computer readable medium for distributed resource management
WO2023160040A1 (en) Data processing method and apparatus based on blockchain, and device and readable storage medium
WO2022140948A1 (en) Account management method and system, and server and medium
CN116418779A (en) Addressing method, system and storage medium
CN117171812A (en) Multi-source trusted data production method based on blockchain, blockchain node and system

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20967302

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 2023539355

Country of ref document: JP

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20967302

Country of ref document: EP

Kind code of ref document: A1