CN113377875B - Cross-chain data processing method and device, electronic equipment and readable storage medium - Google Patents

Cross-chain data processing method and device, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN113377875B
CN113377875B CN202110730252.XA CN202110730252A CN113377875B CN 113377875 B CN113377875 B CN 113377875B CN 202110730252 A CN202110730252 A CN 202110730252A CN 113377875 B CN113377875 B CN 113377875B
Authority
CN
China
Prior art keywords
cross
event
resource
chain
relay
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110730252.XA
Other languages
Chinese (zh)
Other versions
CN113377875A (en
Inventor
刘晓赫
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN202110730252.XA priority Critical patent/CN113377875B/en
Publication of CN113377875A publication Critical patent/CN113377875A/en
Application granted granted Critical
Publication of CN113377875B publication Critical patent/CN113377875B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1458Management of the backup or restore process
    • G06F11/1469Backup restoration techniques
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • G06F16/2228Indexing structures
    • G06F16/2255Hash tables
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • G06F16/2365Ensuring data consistency and integrity

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Computer Security & Cryptography (AREA)
  • Software Systems (AREA)
  • Quality & Reliability (AREA)
  • Computing Systems (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The disclosure provides a method, a device, electronic equipment and a readable storage medium for processing cross-chain data, and relates to the technical field of blockchains, in particular to the technical field of blockchain cross-chain. The method comprises the following steps: when a node of a first blockchain receives a resource locking request aiming at a first resource on the first blockchain, locking the first resource and triggering a first resource locking event, a first cross-chain relay responds to the first resource locking event to acquire first resource locking information, the first resource locking information is sent to a relay blockchain node, the relay blockchain node triggers a corresponding cross-chain event based on whether second resource locking information sent by a second cross-chain relay is received within a specified period of time or not, and corresponding processing is performed based on the cross-chain event. In the scheme, the timing task in the cross-chain transaction is realized through the relay block chain and the relay together, so that the cross-chain transaction is not dependent on the timing task capacity of the block chain any more, and the universality of the cross-chain transaction scheme is improved.

Description

Cross-chain data processing method and device, electronic equipment and readable storage medium
Technical Field
The disclosure relates to the technical field of blockchains, in particular to the technical field of blockchain cross-links, and specifically relates to a cross-link data processing method, device, electronic equipment and readable storage medium.
Background
The development of the block chain technology to date creates countless different block chains, and data on each block chain is isolated, so that the block chains become a data island, and interconnection and intercommunication between different block chains cannot be realized.
Cross-chain technology is a technology for addressing data interactions between two or more blockchains, such that data can cross chain-to-chain obstacles, allowing value to circulate between different blockchains.
Currently, a cross-chain transaction generally requires that the participating blockchains have the capability of timing tasks so as to roll back the locked resources after the transaction is overtime, but most blockchains do not have the capability of timing tasks at present, so when the blockchains without the capability of timing tasks perform the cross-chain transaction, the locked resources cannot be rolled back after the transaction is overtime, and the cross-chain transaction cannot be completed, so that the current cross-chain transaction scheme has poor universality.
Disclosure of Invention
In order to solve at least one of the defects, the disclosure provides a cross-chain data processing method, a device, an electronic device and a readable storage medium.
According to a first aspect of the present disclosure, there is provided a cross-chain data processing method applied to a relay blockchain node, the method comprising:
receiving first resource locking information sent by a first cross-chain relay, wherein the first resource locking information is acquired from the first cross-chain relay to a first block chain in response to a first resource locking event in the first block chain;
and triggering a corresponding cross-chain event based on whether second resource locking information sent by the second cross-chain relay is received in a specified period of time, so that the first blockchain and the second blockchain respectively perform corresponding processing based on the cross-chain event, wherein the second resource locking information is acquired by the second cross-chain relay to the second blockchain in response to the second resource locking event in the second blockchain.
According to a second aspect of the present disclosure, there is provided another method of processing cross-chain data, applied to a first cross-chain relay, the method comprising:
in response to a first resource locking event in the first blockchain, obtaining first resource locking information from the first blockchain;
And sending first resource locking information to the relay blockchain node so that the relay blockchain link point triggers a corresponding cross-chain event based on whether second resource locking information sent by a second cross-chain relay is received in a specified period of time, so that the first blockchain and the second blockchain perform corresponding processing based on the cross-chain event, and the second resource locking information is acquired by the second cross-chain relay to the second blockchain in response to the second resource locking event in the second blockchain.
According to a third aspect of the present disclosure, there is provided a further method of cross-chain data processing applied to a first node in a first blockchain, the method comprising:
when a resource locking request aiming at a first resource on a first blockchain is received, locking the first resource, triggering a first resource locking event to enable a first cross-chain relay to respond to the first resource locking event to acquire first resource locking information from the first blockchain, sending the first resource locking information to a relay blockchain node to enable the relay blockchain node to trigger a corresponding cross-chain event based on whether second resource locking information sent by a second cross-chain relay is received within a specified period of time or not, wherein the second resource locking information is acquired from the second blockchain by the second cross-chain relay responding to the second resource locking event in the second blockchain;
And carrying out corresponding processing based on the cross-chain event.
According to a fourth aspect of the present disclosure there is provided a cross-chain data processing apparatus, the apparatus comprising:
the first resource locking information receiving module is used for receiving first resource locking information sent by the first cross-chain relay, wherein the first resource locking information is acquired from the first block chain by the first cross-chain relay in response to a first resource locking event in the first block chain;
the data processing module is used for triggering corresponding cross-chain events based on whether second resource locking information sent by the second cross-chain relay is received in a specified period of time or not, so that the first block chain and the second block chain respectively perform corresponding processing based on the cross-chain events, and the second resource locking information is acquired from the second block chain by the second cross-chain relay in response to the second resource locking event in the second block chain.
According to a fifth aspect of the present disclosure there is provided another cross-chain data processing apparatus, the apparatus comprising:
a first resource lock information acquisition module for acquiring first resource lock information from a first blockchain in response to a first resource lock event in the first blockchain;
the data processing module is used for sending first resource locking information to the relay block chain node so that the relay block chain link point triggers a corresponding cross-chain event based on whether second resource locking information sent by a second cross-chain relay is received in a specified period of time or not, so that the first block chain and the second block chain perform corresponding processing based on the cross-chain event, and the second resource locking information is acquired by the second cross-chain relay to the second block chain in response to the second resource locking event in the second block chain.
According to a sixth aspect of the present disclosure there is provided a further cross-chain data processing apparatus, the apparatus comprising:
the locking event triggering module is used for locking a first resource and triggering a first resource locking event when a resource locking request aiming at the first resource on the first blockchain is received, so that the first cross-chain relay responds to the first resource locking event to acquire first resource locking information from the first blockchain, the first resource locking information is sent to the relay blockchain node, the relay blockchain node triggers a corresponding cross-chain event based on whether second resource locking information sent by a second cross-chain relay is received in a specified period of time or not, and the second resource locking information is acquired from the second cross-chain relay to the second blockchain in response to the second resource locking event in the second blockchain;
and the data processing module is used for carrying out corresponding processing based on the cross-chain event.
According to a seventh aspect of the present disclosure, there is provided an electronic device comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the cross-chain data processing method.
According to an eighth aspect of the present disclosure, there is provided a non-transitory computer readable storage medium storing computer instructions for causing a computer to perform the above-described cross-chain data processing method.
According to a ninth aspect of the present disclosure, there is provided a computer program product comprising a computer program which, when executed by a processor, implements the above-described cross-chain data processing method.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the disclosure, nor is it intended to be used to limit the scope of the disclosure. Other features of the present disclosure will become apparent from the following specification.
The beneficial effects that this disclosure provided technical scheme brought are:
according to the scheme provided by the embodiment of the disclosure, when a node of a first blockchain receives a resource locking request aiming at a first resource on the first blockchain, the first resource is locked, a first resource locking event is triggered, a first cross-link relay responds to the first resource locking event to acquire first resource locking information from the first blockchain, the first resource locking information is sent to a relay blockchain node, the relay blockchain link node triggers a corresponding cross-link event based on whether second resource locking information sent by a second cross-link relay is received in a specified period of time, and corresponding processing is performed based on the cross-link event. In the scheme, the timing task in the cross-chain transaction is realized through the relay blockchain and the relay, so that the cross-chain transaction is not dependent on the timing task capacity of the blockchain any more, and the universality of the cross-chain transaction scheme is improved.
Drawings
FIG. 1 is a schematic diagram of a cross-chain system provided by an embodiment of the present disclosure;
FIG. 2 is a schematic flow chart of a method for processing cross-link data according to an embodiment of the disclosure;
FIG. 3 is a flow chart of another cross-chain data processing method provided by an embodiment of the present disclosure;
FIG. 4 is a flow chart of yet another method for cross-chain data processing provided by an embodiment of the present disclosure;
FIG. 5 is a flow diagram of one embodiment of a method for processing cross-chain data provided by embodiments of the present disclosure;
FIG. 6 is a flow diagram of another embodiment of a method for cross-chain data processing provided by an embodiment of the present disclosure;
FIG. 7 is a schematic diagram of a cross-chain data processing apparatus according to an embodiment of the present disclosure;
FIG. 8 is a schematic diagram of another cross-chain data processing apparatus provided by an embodiment of the present disclosure;
FIG. 9 is a schematic diagram of a structure of yet another cross-chain data processing apparatus provided by an embodiment of the present disclosure;
fig. 10 is a block diagram of an electronic device for implementing the cross-chain data processing method provided by an embodiment of the present disclosure.
Detailed Description
Exemplary embodiments of the present disclosure are described below in conjunction with the accompanying drawings, which include various details of the embodiments of the present disclosure to facilitate understanding, and should be considered as merely exemplary. Accordingly, one of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present disclosure. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
Solving the transactional nature of cross-chain transactions is a challenge faced in cross-chain technology. A complete cross-chain transaction may be split into multiple sub-transactions belonging to respective blockchain systems that form a transaction that should have ACID properties including atomicity, consistency, isolation, and persistence.
Atomicity (atomicity): operations in a cross-chain transaction either occur or do not occur;
consistency (atom): a cross-chain transaction must cause all blockchains to transition from one coherency state to another;
isolation (isolation): the cross-chain transactions executed concurrently cannot interfere with each other;
durability (durability): once a cross-chain transaction is committed, its changes to the data in the blockchain are permanent and do not rollback without reason.
Aiming at a cross-chain transaction scene of asset exchange, a hash locking scheme is mainly adopted at present, and fair transaction is realized by locking the asset and setting corresponding timeout duration and unlocking conditions. The basic flow of hash locking is as follows:
(1) Account a on blockchain X generates a random number s, generates a hash value of the random number s, and sends the hash(s) to account B on blockchain Y.
(2) Account a locks the coin on blockchain X, transfers to account B if blockchain X receives s within time TA (current time + 2X), otherwise returns to account a. Where x is the timeout period.
(3) And (3) receiving the hash(s) by the account B, after determining the locked coin of the account A and determining the preset time, locking the coin on the blockchain Y, transferring the coin to the account A if the blockchain Y receives s in the time TA-x, and returning the coin to the account B if the blockchain Y receives s in the time TA-x.
(4) After determining the locked coin of the account B, the account A sends s to the blockchain Y in the time TA-x to obtain the coin of the blockchain Y.
(5) After receiving s, account B sends s to blockchain X in time TA, and the coin of blockchain X is obtained.
In the above hash locking scheme, the blockchains which participate in the cross-chain transaction are required to have the capability of timing tasks, but most blockchains do not have the capability of timing tasks at present, so when the blockchains without the capability of timing tasks perform the cross-chain transaction, the locked resources cannot be rolled back after the transaction is overtime, which results in poor universality of the existing cross-chain transaction scheme.
The embodiment of the disclosure provides a method, a device, an electronic device and a readable storage medium for processing cross-chain data, which aim to solve at least one of the technical problems in the prior art.
A schematic structural diagram of a cross-link system provided by an embodiment of the present disclosure is shown in fig. 1, and the method provided by the embodiment of the present disclosure is applicable to the cross-link system shown in fig. 1, where the cross-link system includes a relay blockchain, a first cross-link relay, a second blockchain, and a second cross-link relay.
The relay blockchain is deployed with a cross-chain management contract for application chain management, verification of application chain certification information, triggering of a cross-chain event, storage inquiry of a cross-chain transaction and the like. By abstracting the behavior of the heterogeneous chains, the implementation interface of the parallel chains of the relay blockchain specification can update the cross-chain management contract through implementing the blockchain abstract class to adapt to the new heterogeneous chain type. The interfaces defined in the relay blockchain may be as shown in table 1.
TABLE 1
The function realized by the interface named 'register Block chain' is to register application chain information, the function realized by the interface named 'Unregister Block chain' is to cancel application chain information, and the function realized by the interface named 'DataVertification' is to verify the validity of messages sent by an application chain.
The first blockchain and the second blockchain, namely the application blockchain, are parallel chains participating in cross-chain transactions, are deployed with cross-chain contracts and business contracts, the cross-chain contracts and the business contracts can communicate through cross-contract calling, and unified validity verification, data serialization and security authentication can be carried out on cross-chain messages of the business contracts based on the cross-chain contracts.
The first cross-chain relay and the second cross-chain relay, namely the relay, are interactive components connected with different blockchain systems and are used for connecting an application blockchain and a relay blockchain. The relay can monitor cross-chain events occurring in the application chain and the relay blockchain. By abstracting the behavior of heterogeneous chains, cross-chain relay can define the interfaces shown in table 2, and different heterogeneous chains only need to implement the interfaces according to their own characteristics.
TABLE 2
The function realized by the interface named as 'Init' is initializing application chain configuration, the function realized by the interface named as 'Stop' is stopping operation, the function realized by the interface named as 'listeningEvents' is monitoring cross-chain events, the events are transmitted to a core module for processing, and the function realized by the interface named as 'InvokeProxyContract' is used for calling a cross-chain contract for transmitting the message of the relay block chain to a parallel chain.
The cross-chain system provided by the embodiments of the present disclosure may further include a cross-chain client, i.e., a user may initiate requests to different types of application blockchains and relay blockchains using the portal of the cross-chain system.
The cross-chain system provided by the embodiment of the disclosure does not limit the number of the application blockchains, can be expanded according to actual needs, and supports the access of heterogeneous blockchains.
The initialization flow of the cross-chain system provided by the embodiment of the disclosure is specifically as follows:
each of the application chains initiates the network and deploys cross-link contracts (specifying relay blockchains upon initialization) and business contracts;
deploying a cross-link management contract by the relay blockchain;
information of each application chain is registered with a cross-chain management contract of the relay blockchain. The registered information depends on the trust model of the application chain, which may be an origin block or a verifier certificate;
the configuration and initiation relay is used to connect the application blockchain with the relay blockchain.
When the cross-chain system provided by the embodiments of the present disclosure wants to support the blockchain a of the new blockchain type, the following modifications are required:
(1) Upgrading a cross-link management contract of the relay blockchain, and supporting registration, management and verification of the blockchain A;
(2) Compiling a cross-link contract of an intelligent contract language facing to the block chain A;
(3) And writing a plug-in of the cross-chain relay based on the SDK of the block chain A, and realizing a corresponding interface to enable the relay to have the capability of communicating with the block chain A.
A running application blockchain would become very simple to access a cross-chain system, as follows:
(1) Applying the blockchain to deploy cross-link contracts oriented to own intelligent contract language;
(2) Upgrading the existing business contracts, and communicating with the cross-link contracts through cross-contract calling;
(3) Authorizing cross-link rights of the business contract through the cross-link contract;
(4) Registering information of the application chain to the relay chain, such as registering a trust root of the application chain, and proving validity of the message based on the trust root when the cross-chain message verification is performed subsequently;
(5) The cross-chain relay is configured and activated to connect the relay blockchain with the application blockchain.
At this time, the application blockchain can access the cross-chain system to establish cross-chain connection with other application chains.
In the prior art, the interoperability of two heterogeneous or isomorphic blockchains is generally realized through a relay mode, and the two chains need to respectively establish a light client for maintaining the state of the opposite blockchain. In this way, because two blockchains need to directly verify the message of each other, the codes of the blockchains need to be modified, the implementation difficulty is high, and the hot plug of the blockchains cannot be realized, i.e. the functions of accessing, exiting and updating the application chains cannot be realized under the condition that the operation of a cross-chain system is not influenced. In addition, when one blockchain wants to cross chains with heterogeneous blockchains of different types, the blockchains need to be adapted one by one, so that the complexity of the adaptation is high.
The cross-link system provided by the embodiment of the disclosure can realize the access of the application chain by deploying the cross-link contracts and the business intelligent contracts and registering the application blockchain to the cross-link management contracts of the relay blockchain, does not need complex code transformation work, reduces the realization difficulty of the cross-link system, and supports the hot plug of the application blockchain, namely, the function of accessing, exiting and updating the application blockchain under the condition of not affecting the operation of the cross-link system. In addition, in the cross-chain system provided by the embodiment of the disclosure, when the application blockchain needs to cross chains with heterogeneous blockchains of different types, the application blockchain does not need to be adapted in pairs, only the relay blockchain needs to be adapted, and the adaptation complexity is reduced.
Fig. 2 is a schematic flow chart of a cross-link data processing method according to an embodiment of the disclosure, where the method is applied to a relay blockchain node, as shown in fig. 2, and the method may mainly include:
step S210: and receiving first resource locking information sent by the first cross-chain relay, wherein the first resource locking information is acquired by the first cross-chain relay to the first blockchain in response to a first resource locking event in the first blockchain.
Step S220: and triggering a corresponding cross-chain event based on whether second resource locking information sent by the second cross-chain relay is received in a specified period of time, so that the first blockchain and the second blockchain respectively perform corresponding processing based on the cross-chain event, wherein the second resource locking information is acquired by the second cross-chain relay to the second blockchain in response to the second resource locking event in the second blockchain.
The first blockchain and the second blockchain may be two application blockchains participating in a cross-chain transaction in the cross-chain system shown in fig. 1, the first cross-chain relay communicates with the first blockchain and the relay blockchain, and the second cross-chain relay communicates with the second blockchain and the relay blockchain, respectively. The relay blockchain node is a node in the relay blockchain.
The first resource and the second resource may be resources involved in a cross-chain transaction, and, taking an asset exchange scenario as an example, the first resource and the second resource may both be blockchain currency.
The resource locking request for the first resource and the resource locking request for the second resource can be respectively initiated, so that the first resource and the second resource are respectively locked, the steps of respectively locking the first resource and the second resource can be carried out in no sequence, and the blockchain which triggers the resource locking event earlier is recorded as a first blockchain.
The business contracts of the first blockchain and the second blockchain have asset management functions, and cross-link contracts can be called across contracts through the business contracts to trigger a resource locking event.
The first cross-link relay may monitor the first resource locking event, and acquire the first resource locking information when the first resource locking event is monitored. The first resource lock information may be included in event information of the first resource lock event.
The specified time period is the maximum time length between when the first resource locking event is triggered and when the second resource locking event is triggered under the condition that the cross-link transaction is not overtime, and can be considered that when the second resource locking information sent by the second cross-link relay is received in the specified time period, the current cross-link transaction is not overtime, and when the second resource locking information sent by the second cross-link relay is not received in the specified time period, the current cross-link transaction is overtime.
The designated duration may be determined by the event information of the first resource locking event, e.g., the event information of the first resource locking event may include a timeout timestamp, from which the designated period may be determined. In practical use, the event information of the first resource locking event may also include a block height, and the specified period may also be determined according to the block height. Accordingly, the event information of the second resource locking event may also include a timeout timestamp, or a block height.
The relay blockchain may generate corresponding cross-chain events based on whether the cross-chain transaction times out such that the first blockchain and the second blockchain are respectively processed accordingly based on the cross-chain events. The timing task in the cross-chain transaction is realized through the relay blockchain and the relay, so that the cross-chain transaction is realized, and the cross-chain transaction is not dependent on the timing task capacity of the blockchain.
According to the method provided by the embodiment of the disclosure, when a node of a first blockchain receives a resource locking request aiming at a first resource on the first blockchain, the first resource is locked, a first resource locking event is triggered, a first cross-link relay responds to the first resource locking event to acquire first resource locking information from the first blockchain, the first resource locking information is sent to a relay blockchain node, the relay blockchain link node triggers a corresponding cross-link event based on whether second resource locking information sent by a second cross-link relay is received in a specified period of time, and corresponding processing is performed based on the cross-link event. In the scheme, the timing task in the cross-chain transaction is realized through the relay blockchain and the relay, so that the cross-chain transaction is not dependent on the timing task capacity of the blockchain any more, and the universality of the cross-chain transaction scheme is improved.
In an optional manner of an embodiment of the disclosure, the cross-link event includes a resource rollback event and a resource transfer event, and triggering the corresponding cross-link event based on whether second resource locking information sent by the second cross-link relay is received within a specified period of time includes:
triggering a resource transfer event if second resource locking information sent by a second cross-link relay is received in a specified period;
and if the second resource locking information sent by the second cross-link relay is not received within the appointed time period, triggering a resource rollback event.
The first blockchain and the second blockchain can monitor cross-chain events through relay, so that the locked resources are correspondingly processed.
If the second resource locking information sent by the second cross-chain relay is received within the specified period, that is, under the condition that the cross-chain transaction is not overtime, the relay blockchain node can generate a resource transfer event, wherein the resource transfer event is used for enabling the first blockchain and the second blockchain to perform asset transfer operation on the locked resource.
If the second resource locking information sent by the second cross-chain relay is not received within the specified period, that is, under the condition of cross-chain transaction timeout, the relay blockchain node can generate a resource rollback event, wherein the resource rollback event is used for enabling the first blockchain and the second blockchain to perform asset rollback operation on the locked resource.
In an optional manner of an embodiment of the disclosure, the method further includes:
receiving first to-be-verified data of a first resource locking event sent by a first cross-link relay, and carrying out first verification on the validity of the first resource locking event based on the first to-be-verified data;
based on whether second resource locking information sent by a second cross-link relay is received in a specified period of time, triggering a corresponding cross-link event comprises:
if the first verification is passed, triggering a corresponding cross-link event based on whether second resource locking information sent by a second cross-link relay is received in a specified period of time.
The first data to be verified can be the presence evidence of the first resource locking event, can be used for verifying the validity of the first resource locking event, and is generated by the first cross-chain relay in response to the first resource locking event.
When the first verification fails, i.e., the first resource lock event is verified as invalid, the current cross-chain transaction may be deemed to have been untrusted and the cross-chain transaction may be terminated.
And when the first verification is passed, namely when the first resource locking event is verified to be valid, the current cross-link transaction can be continued, and the second resource locking information sent by the second cross-link relay is waited.
By verifying the validity of the first resource locking event, the reliability of the cross-chain transaction can be ensured, so that the safety of the cross-chain transaction is ensured, and the cross-chain system has higher reliability.
In actual use, the first data to be verified and the first resource locking information can be packaged into a first cross-link transaction by a first cross-link relay, the first cross-link transaction is sent to a relay blockchain by the first cross-link relay, and the relay blockchain acquires the first data to be verified and the first resource locking information by analyzing the first cross-link transaction.
In an optional manner of an embodiment of the disclosure, if the second resource locking information sent by the second cross-link relay is received within a specified period, the method further includes:
receiving second to-be-verified data of a second resource locking event sent by a second cross-chain relay, and carrying out second verification on the validity of the second resource locking event based on the second to-be-verified data;
triggering a corresponding cross-chain event, comprising:
and if the second verification is passed, triggering a corresponding cross-chain event.
The second data to be verified can be the presence evidence of the second resource locking event, can be used for verifying the validity of the second resource locking event, and is generated by the second cross-chain relay in response to the second resource locking event.
And receiving second resource locking information sent by the second cross-link relay in a specified period, namely verifying the validity of a second resource locking event on the basis that the cross-link transaction is not overtime.
When the second verification fails, i.e., the second resource locking event is verified as invalid, the current cross-chain transaction may be deemed to have been untrusted and the cross-chain transaction may be terminated.
And when the second verification is passed, namely when the second resource locking event is verified to be valid, the current cross-chain transaction can be considered to be trusted, the current cross-chain transaction is continued, and a resource transfer event is triggered.
By verifying the validity of the second resource locking event, the reliability of the cross-chain transaction can be ensured, so that the safety of the cross-chain transaction is ensured, and the cross-chain system has higher reliability.
In actual use, the second data to be verified and the second resource locking information can be packaged into a second cross-link transaction by the second cross-link relay, the second cross-link transaction is sent to the relay blockchain by the first cross-link relay, and the relay blockchain acquires the second data to be verified and the second resource locking information by analyzing the second cross-link transaction.
Fig. 3 is a schematic flow chart of another method for processing cross-link data, where the method is applied to the first cross-link relay, as shown in fig. 2, and the method may mainly include:
Step S310: in response to a first resource locking event in the first blockchain, obtaining first resource locking information from the first blockchain;
step S320: and sending first resource locking information to the relay blockchain node so that the relay blockchain link point triggers a corresponding cross-chain event based on whether second resource locking information sent by a second cross-chain relay is received in a specified period of time, so that the first blockchain and the second blockchain perform corresponding processing based on the cross-chain event, and the second resource locking information is acquired by the second cross-chain relay to the second blockchain in response to the second resource locking event in the second blockchain.
The first blockchain and the second blockchain may be two application blockchains participating in a cross-chain transaction in the cross-chain system shown in fig. 1, the first cross-chain relay communicates with the first blockchain and the relay blockchain, and the second cross-chain relay communicates with the second blockchain and the relay blockchain, respectively. The relay blockchain node is a node in the relay blockchain.
The first resource and the second resource may be resources involved in a cross-chain transaction, and, taking an asset exchange scenario as an example, the first resource and the second resource may both be blockchain currency.
The resource locking request for the first resource and the resource locking request for the second resource can be respectively initiated, so that the first resource and the second resource are respectively locked, the steps of respectively locking the first resource and the second resource can be carried out in no sequence, and the blockchain which triggers the resource locking event earlier is recorded as a first blockchain.
The business contracts of the first blockchain and the second blockchain have asset management functions, and cross-link contracts can be called across contracts through the business contracts to trigger a resource locking event.
The first cross-link relay may monitor the first resource locking event, and acquire the first resource locking information when the first resource locking event is monitored. The first resource lock information may be included in event information of the first resource lock event.
The specified time period is the maximum time length between when the first resource locking event is triggered and when the second resource locking event is triggered under the condition that the cross-link transaction is not overtime, and can be considered that when the second resource locking information sent by the second cross-link relay is received in the specified time period, the current cross-link transaction is not overtime, and when the second resource locking information sent by the second cross-link relay is not received in the specified time period, the current cross-link transaction is overtime.
The designated duration may be determined by the event information of the first resource locking event, e.g., the event information of the first resource locking event may include a timeout timestamp, from which the designated period may be determined. In practical use, the event information of the first resource locking event may also include a block height, and the specified period may also be determined according to the block height. Accordingly, the event information of the second resource locking event may also include a timeout timestamp, or a block height.
The relay blockchain may generate corresponding cross-chain events based on whether the cross-chain transaction times out such that the first blockchain and the second blockchain are respectively processed accordingly based on the cross-chain events. The timing task in the cross-chain transaction is realized through the relay blockchain and the relay, so that the cross-chain transaction is realized, and the cross-chain transaction is not dependent on the timing task capacity of the blockchain.
According to the method provided by the embodiment of the disclosure, when a node of a first blockchain receives a resource locking request aiming at a first resource on the first blockchain, the first resource is locked, a first resource locking event is triggered, a first cross-link relay responds to the first resource locking event to acquire first resource locking information from the first blockchain, the first resource locking information is sent to a relay blockchain node, the relay blockchain link node triggers a corresponding cross-link event based on whether second resource locking information sent by a second cross-link relay is received in a specified period of time, and corresponding processing is performed based on the cross-link event. In the scheme, the timing task in the cross-chain transaction is realized through the relay blockchain and the relay, so that the cross-chain transaction is not dependent on the timing task capacity of the blockchain any more, and the universality of the cross-chain transaction scheme is improved.
In an optional manner of an embodiment of the disclosure, the method further includes:
generating first data to be verified of a first resource locking event in response to the first resource locking event;
and sending the first data to be verified to the relay block chain node so that the relay block chain node performs first verification on the validity of the first resource locking event based on the first data to be verified.
The first data to be verified can be the presence evidence of the first resource locking event, can be used for verifying the validity of the first resource locking event, and is generated by the first cross-chain relay in response to the first resource locking event.
When the first verification fails, i.e., the first resource lock event is verified as invalid, the current cross-chain transaction may be deemed to have been untrusted and the cross-chain transaction may be terminated.
And when the first verification is passed, namely when the first resource locking event is verified to be valid, the current cross-link transaction can be continued, and the second resource locking information sent by the second cross-link relay is waited.
By verifying the validity of the first resource locking event, the reliability of the cross-chain transaction can be ensured, so that the safety of the cross-chain transaction is ensured, and the cross-chain system has higher reliability.
In actual use, the first data to be verified and the first resource locking information can be packaged into a first cross-link transaction by a first cross-link relay, the first cross-link transaction is sent to a relay blockchain by the first cross-link relay, and the relay blockchain acquires the first data to be verified and the first resource locking information by analyzing the first cross-link transaction.
In an optional manner of an embodiment of the disclosure, the method further includes:
generating third to-be-verified data of the cross-chain event in response to the cross-chain event;
and sending the third data to be verified to the first node in the first blockchain so that the first node performs third verification on the validity of the cross-chain event based on the third data to be verified.
The third data to be verified can be the presence evidence of the cross-link event, can be used for verifying the validity of the cross-link event, and is generated by the first cross-link relay in response to the cross-link event.
When the third verification fails, i.e., the cross-chain event is verified as invalid, the current cross-chain transaction may be deemed to have been untrusted and the cross-chain transaction may be terminated.
And when the third verification is passed, namely when the cross-chain event is verified to be valid, the current cross-chain transaction can be considered to be trusted, the current cross-chain transaction is continued, and the locked first resource is correspondingly processed.
By verifying the validity of the cross-chain event, the reliability of the cross-chain transaction can be ensured, so that the safety of the cross-chain transaction is ensured, and the cross-chain system has higher reliability.
In actual use, the third data to be verified can be packaged into a third cross-link transaction by the first cross-link relay, the third cross-link transaction is sent to the first node in the first blockchain by the first cross-link relay, and the first node obtains the third data to be verified by analyzing the third cross-link transaction.
Correspondingly, the second cross-link relay can generate third data to be verified in response to the cross-link event, in actual use, the third data to be verified generated by the second cross-link relay can be packaged into fourth cross-link transactions by the second cross-link relay, the fourth cross-link transactions are sent to a second node in the second blockchain by the second cross-link relay, and the second node obtains the third data to be verified by analyzing the fourth cross-link transactions.
FIG. 4 is a flowchart of another cross-chain data processing method according to an embodiment of the present disclosure, where the method is applied to a first node in a first blockchain, and as shown in FIG. 4, the method may mainly include:
step S410: when a resource locking request aiming at a first resource on a first blockchain is received, locking the first resource, triggering a first resource locking event to enable a first cross-chain relay to respond to the first resource locking event to acquire first resource locking information from the first blockchain, sending the first resource locking information to a relay blockchain node to enable the relay blockchain node to trigger a corresponding cross-chain event based on whether second resource locking information sent by a second cross-chain relay is received within a specified period of time or not, wherein the second resource locking information is acquired from the second blockchain by the second cross-chain relay responding to the second resource locking event in the second blockchain;
Step S420: and carrying out corresponding processing based on the cross-chain event.
The first blockchain and the second blockchain may be two application blockchains participating in a cross-chain transaction in the cross-chain system shown in fig. 1, the first cross-chain relay communicates with the first blockchain and the relay blockchain, and the second cross-chain relay communicates with the second blockchain and the relay blockchain, respectively. The relay blockchain node is a node in the relay blockchain. The first node may be a node in the first blockchain that communicates with the first cross-chain relay.
The first resource and the second resource may be resources involved in a cross-chain transaction, and, taking an asset exchange scenario as an example, the first resource and the second resource may both be blockchain currency.
The resource locking request for the first resource and the resource locking request for the second resource can be respectively initiated, so that the first resource and the second resource are respectively locked, the steps of respectively locking the first resource and the second resource can be carried out in no sequence, and the blockchain which triggers the resource locking event earlier is recorded as a first blockchain.
The business contracts of the first blockchain and the second blockchain have asset management functions, and cross-link contracts can be called across contracts through the business contracts to trigger a resource locking event.
The first cross-link relay may monitor the first resource locking event, and acquire the first resource locking information when the first resource locking event is monitored. The first resource lock information may be included in event information of the first resource lock event.
The specified time period is the maximum time length between when the first resource locking event is triggered and when the second resource locking event is triggered under the condition that the cross-link transaction is not overtime, and can be considered that when the second resource locking information sent by the second cross-link relay is received in the specified time period, the current cross-link transaction is not overtime, and when the second resource locking information sent by the second cross-link relay is not received in the specified time period, the current cross-link transaction is overtime.
The designated duration may be determined by the event information of the first resource locking event, e.g., the event information of the first resource locking event may include a timeout timestamp, from which the designated period may be determined. In practical use, the event information of the first resource locking event may also include a block height, and the specified period may also be determined according to the block height. Accordingly, the event information of the second resource locking event may also include a timeout timestamp, or a block height.
The relay blockchain may generate corresponding cross-chain events based on whether the cross-chain transaction times out such that the first blockchain and the second blockchain are respectively processed accordingly based on the cross-chain events. The timing task in the cross-chain transaction is realized through the relay blockchain and the relay, so that the cross-chain transaction is realized, and the cross-chain transaction is not dependent on the timing task capacity of the blockchain.
According to the method provided by the embodiment of the disclosure, when a node of a first blockchain receives a resource locking request aiming at a first resource on the first blockchain, the first resource is locked, a first resource locking event is triggered, a first cross-link relay responds to the first resource locking event to acquire first resource locking information from the first blockchain, the first resource locking information is sent to a relay blockchain node, the relay blockchain link node triggers a corresponding cross-link event based on whether second resource locking information sent by a second cross-link relay is received in a specified period of time, and corresponding processing is performed based on the cross-link event. In the scheme, the timing task in the cross-chain transaction is realized through the relay blockchain and the relay, so that the cross-chain transaction is not dependent on the timing task capacity of the blockchain any more, and the universality of the cross-chain transaction scheme is improved.
In an optional manner of the embodiment of the disclosure, the cross-link event includes a resource rollback event and a resource transfer event, and if the cross-link event is the resource rollback event, performing corresponding processing based on the cross-link event includes:
rollback the first resource;
if the cross-link event is a resource transfer event, performing corresponding processing based on the cross-link event, including:
the first resource is transferred.
The first blockchain and the second blockchain can monitor cross-chain events through relay, so that the locked resources are correspondingly processed.
If the second resource locking information sent by the second cross-chain relay is received within the specified period, that is, under the condition that the cross-chain transaction is not overtime, the relay blockchain node can generate a resource transfer event, wherein the resource transfer event is used for enabling the first blockchain and the second blockchain to perform asset transfer operation on the locked resource.
If the second resource locking information sent by the second cross-chain relay is not received within the specified period, that is, under the condition of cross-chain transaction timeout, the relay blockchain node can generate a resource rollback event, wherein the resource rollback event is used for enabling the first blockchain and the second blockchain to perform asset rollback operation on the locked resource.
In an optional manner of an embodiment of the disclosure, the method further includes:
receiving third to-be-verified data of a cross-link event sent by the first cross-link relay, wherein the third to-be-verified data is generated by the first cross-link relay in response to the cross-link event;
performing third verification on the validity of the cross-chain event based on the third data to be verified;
performing corresponding processing based on the cross-chain event, including:
and if the third verification is passed, carrying out corresponding processing based on the cross-chain event.
The third data to be verified can be the presence evidence of the cross-link event, can be used for verifying the validity of the cross-link event, and is generated by the first cross-link relay in response to the cross-link event.
When the third verification fails, i.e., the cross-chain event is verified as invalid, the current cross-chain transaction may be deemed to have been untrusted and the cross-chain transaction may be terminated.
And when the third verification is passed, namely when the cross-chain event is verified to be valid, the current cross-chain transaction can be considered to be trusted, the current cross-chain transaction is continued, and the locked first resource is correspondingly processed.
By verifying the validity of the cross-chain event, the reliability of the cross-chain transaction can be ensured, so that the safety of the cross-chain transaction is ensured, and the cross-chain system has higher reliability.
In actual use, the third data to be verified can be packaged into a third cross-link transaction by the first cross-link relay, the third cross-link transaction is sent to the first node in the first blockchain by the first cross-link relay, and the first node obtains the third data to be verified by analyzing the third cross-link transaction.
Fig. 5 is a flow chart illustrating a specific implementation of a cross-link data processing method provided by the embodiment of the present disclosure, and as shown in fig. 5, an application chain a is a first blockchain, a relay communicating with the application chain a is a first cross-link relay, an application chain B is a second blockchain, and a relay communicating with the application chain B is a second cross-link relay, where the relay chain is a relay blockchain.
The specific process flow of the cross-chain data processing method shown in fig. 5 is as follows:
step 1.A: the user Alice calls a service contract 1 on the application chain A, and the service contract 1 has an asset management function;
step 2.A: business contract 1 calls cross-link contracts by cross-contract calls;
step 3.A: starting a cross-link event E1 (namely a first resource locking event) of the cross-link contract, wherein E1 comprises asset locking information (namely first resource locking event information);
step 4.A: e1 is monitored through event monitoring by the first cross-link relay;
Step 5.a: the first cross-chain relay generates a validity proof P1 of the presence of E1 (i.e., a first presence proof), P1 may prove that E1 is valid, i.e., has occurred on the chain;
step 6.a: the first cross-chain relay packages the transaction T1 (i.e., the first cross-chain transaction) sent to the relay blockchain, wherein P1 is contained in the T1;
step 1.B: the user Bob calls a service contract 1 on the application chain B, wherein the service contract 1 has the asset management function;
step 2.B: business contract 1 calls cross-link contracts by cross-contract calls;
step 3.b: starting a cross-link event E2 (namely a second resource locking event) of the cross-link contract, wherein E2 contains information of asset locking (namely second resource locking event information);
step 4.B: e2 is monitored through event monitoring by the second cross-link relay;
step 5.B: the second cross-chain relay generates a validity proof P2 of the presence of E2 (i.e., a second presence proof), P2 may prove that E2 is valid, i.e., has occurred on the chain;
step 6.B: the second cross-chain relay packages the transaction T2 (i.e., the second cross-chain transaction) sent to the relay blockchain, wherein P2 is contained in the T2;
step 7: t1 and T2 are respectively executed by the cross-link contract, and the validity of P1 and P2 is verified. The relay block chain enters different processes according to different conditions at the moment:
If P2 (i.e., the second presence evidence of the second resource lock event) is not received within the specified period of time, starting waiting, and if the P2 is not received beyond the specified period of time, invoking a cross-chain management contract to trigger a roller back event (i.e., an asset Rollback event);
if P2 is received within a specified period of time, then wait is started, and then a cross-link management contract is invoked to trigger a Commit event (i.e., an asset transfer event).
Fig. 6 is a flow chart illustrating another specific implementation of a cross-link data processing method provided by the embodiment of the present disclosure, where, as shown in fig. 6, an application chain a is a first blockchain, a relay communicating with the application chain a is a first cross-link relay, an application chain B is a second blockchain, and a relay communicating with the application chain B is a second cross-link relay, and the relay chain is a relay blockchain.
The specific process flow of the cross-chain data processing method shown in fig. 6 is as follows:
step 8: relay chain trigger event E3 (asset rollback event or asset transfer event);
step 9.a: the first relay monitors E3;
step 10.A: the first relay generates presence certification information P3 of E3 (for certifying the validity of E3);
step 11.A: the first relay sends the transaction T3 to the application chain a, with P3 (i.e., the third presence certificate) contained in T3;
Step 12.A: the validation of P3 is verified across links.
Step 13.A: the cross-link contract tells the business contract whether an asset transfer operation or an asset rollback operation is required by a cross-contract call. If it is an asset transfer, the already locked asset is destroyed. If it is an asset rollback, the locked asset is returned to user Alice.
Step 9.b: the second relay monitors E3;
step 10.B: the second relay generates presence certification information P3 of E3 (for certifying the validity of E3);
step 11.B the first relay sends transaction T3 to application chain a, T3 including P3 (i.e. the third presence certificate);
step 12.B: verifying the validity of P3 across links;
step 13.B: the cross-link contract tells the business contract whether an asset transfer operation or an asset rollback operation is required by a cross-contract call. If it is an asset transfer, the already locked asset is destroyed. If it is an asset rollback, the locked asset is returned to the user Bob.
Based on the same principle as the method shown in fig. 2, fig. 7 shows a schematic structural diagram of a cross-link data processing apparatus provided by an embodiment of the disclosure, and as shown in fig. 7, the cross-link data processing apparatus 70 may include:
The first resource locking information receiving module 710 is configured to receive first resource locking information sent by a first cross-chain relay, where the first resource locking information is acquired by the first cross-chain relay from a first blockchain in response to a first resource locking event in the first blockchain;
the data processing module 720 is configured to trigger a corresponding cross-link event based on whether second resource locking information sent by the second cross-link relay is received within a specified period of time, so that the first blockchain and the second blockchain respectively perform corresponding processing based on the cross-link event, where the second resource locking information is acquired by the second cross-link relay from the second blockchain in response to the second resource locking event in the second blockchain.
According to the device provided by the embodiment of the disclosure, when the node of the first blockchain receives a resource locking request aiming at a first resource on the first blockchain, the first resource is locked, a first resource locking event is triggered, the first cross-link relay responds to the first resource locking event to acquire first resource locking information from the first blockchain, the first resource locking information is sent to the relay blockchain node, the relay blockchain link node triggers a corresponding cross-link event based on whether second resource locking information sent by a second cross-link relay is received in a specified period of time, and corresponding processing is performed based on the cross-link event. In the scheme, the timing task in the cross-chain transaction is realized through the relay blockchain and the relay, so that the cross-chain transaction is not dependent on the timing task capacity of the blockchain any more, and the universality of the cross-chain transaction scheme is improved.
Optionally, the cross-link event includes a resource rollback event and a resource transfer event, and the data processing module is specifically configured to, when triggering the corresponding cross-link event based on whether second resource locking information sent by the second cross-link relay is received within a specified period of time:
triggering a resource transfer event if second resource locking information sent by a second cross-link relay is received in a specified period;
and if the second resource locking information sent by the second cross-link relay is not received within the appointed time period, triggering a resource rollback event.
Optionally, the apparatus further includes:
the first verification module is used for receiving first to-be-verified data of a first resource locking event sent by the first cross-chain relay and carrying out first verification on the validity of the first resource locking event based on the first to-be-verified data;
the data processing module is specifically configured to, when triggering a corresponding cross-link event based on whether second resource locking information sent by a second cross-link relay is received within a specified period of time:
if the first verification is passed, triggering a corresponding cross-link event based on whether second resource locking information sent by a second cross-link relay is received in a specified period of time.
Optionally, the apparatus further includes:
the second verification module is used for receiving second to-be-verified data of a second resource locking event sent by the second cross-link relay when receiving second resource locking information sent by the second cross-link relay in a specified period of time, and carrying out second verification on the validity of the second resource locking event based on the second to-be-verified data;
the data processing module is specifically used for when triggering the corresponding cross-link event:
and if the second verification is passed, triggering a corresponding cross-chain event.
It will be appreciated that the above-described modules of the cross-chain data processing apparatus in the embodiments of the present disclosure have the functionality to implement the corresponding steps of the cross-chain data processing method in the embodiment shown in fig. 2. The functions can be realized by hardware, and can also be realized by executing corresponding software by hardware. The hardware or software includes one or more modules corresponding to the functions described above. The modules may be software and/or hardware, and each module may be implemented separately or may be implemented by integrating multiple modules. For the functional description of each module of the above-mentioned testing device, reference may be specifically made to the corresponding description of the cross-link data processing method in the embodiment shown in fig. 2, which is not repeated herein.
Based on the same principle as the method shown in fig. 3, fig. 8 shows a schematic structural diagram of a cross-link data processing apparatus provided by an embodiment of the disclosure, and as shown in fig. 8, the cross-link data processing apparatus 80 may include:
a first resource lock information acquisition module 810 for acquiring first resource lock information from a first blockchain in response to a first resource lock event in the first blockchain;
the data processing module 820 is configured to send first resource locking information to the relay blockchain node, so that the relay blockchain link point triggers a corresponding cross-link event based on whether second resource locking information sent by the second cross-link relay is received within a specified period of time, so that the first blockchain and the second blockchain perform corresponding processing based on the cross-link event, and the second resource locking information is acquired by the second cross-link relay to the second blockchain in response to the second resource locking event in the second blockchain.
According to the device provided by the embodiment of the disclosure, when the node of the first blockchain receives a resource locking request aiming at a first resource on the first blockchain, the first resource is locked, a first resource locking event is triggered, the first cross-link relay responds to the first resource locking event to acquire first resource locking information from the first blockchain, the first resource locking information is sent to the relay blockchain node, the relay blockchain link node triggers a corresponding cross-link event based on whether second resource locking information sent by a second cross-link relay is received in a specified period of time, and corresponding processing is performed based on the cross-link event. In the scheme, the timing task in the cross-chain transaction is realized through the relay blockchain and the relay, so that the cross-chain transaction is not dependent on the timing task capacity of the blockchain any more, and the universality of the cross-chain transaction scheme is improved.
Optionally, the apparatus further includes a first data module to be verified, configured to:
generating first data to be verified of a first resource locking event in response to the first resource locking event;
and sending the first data to be verified to the relay block chain node so that the relay block chain node performs first verification on the validity of the first resource locking event based on the first data to be verified.
Optionally, the device further comprises a third data module to be verified, configured to:
generating third to-be-verified data of the cross-chain event in response to the cross-chain event;
and sending the third data to be verified to the first node in the first blockchain so that the first node performs third verification on the validity of the cross-chain event based on the third data to be verified.
It will be appreciated that the above-described modules of the cross-chain data processing apparatus in the embodiments of the present disclosure have the functionality to implement the corresponding steps of the cross-chain data processing method in the embodiment shown in fig. 3. The functions can be realized by hardware, and can also be realized by executing corresponding software by hardware. The hardware or software includes one or more modules corresponding to the functions described above. The modules may be software and/or hardware, and each module may be implemented separately or may be implemented by integrating multiple modules. For the functional description of each module of the above-mentioned testing device, reference may be specifically made to the corresponding description of the cross-link data processing method in the embodiment shown in fig. 3, which is not repeated herein.
Based on the same principle as the method shown in fig. 4, fig. 9 shows a schematic structural diagram of a cross-link data processing apparatus provided by an embodiment of the disclosure, and as shown in fig. 9, the cross-link data processing apparatus 90 may include:
a lock event triggering module 910, configured to, when a resource lock request for a first resource on a first blockchain is received, lock the first resource and trigger a first resource lock event, so that a first cross-chain relay obtains first resource lock information from the first blockchain in response to the first resource lock event, send the first resource lock information to a relay blockchain node, and enable the relay blockchain node to trigger a corresponding cross-chain event based on whether second resource lock information sent by a second cross-chain relay is received within a specified period of time, where the second resource lock information is obtained from the second blockchain by the second cross-chain relay in response to the second resource lock event in the second blockchain;
the data processing module 920 is configured to perform corresponding processing based on the cross-chain event.
According to the device provided by the embodiment of the disclosure, when the node of the first blockchain receives a resource locking request aiming at a first resource on the first blockchain, the first resource is locked, a first resource locking event is triggered, the first cross-link relay responds to the first resource locking event to acquire first resource locking information from the first blockchain, the first resource locking information is sent to the relay blockchain node, the relay blockchain link node triggers a corresponding cross-link event based on whether second resource locking information sent by a second cross-link relay is received in a specified period of time, and corresponding processing is performed based on the cross-link event. In the scheme, the timing task in the cross-chain transaction is realized through the relay blockchain and the relay, so that the cross-chain transaction is not dependent on the timing task capacity of the blockchain any more, and the universality of the cross-chain transaction scheme is improved.
Optionally, the cross-link event includes a resource rollback event and a resource transfer event, and if the cross-link event is a resource rollback event, the data processing module is specifically configured to:
rollback the first resource;
if the cross-link event is a resource transfer event, the data processing module is specifically configured to:
the first resource is transferred.
Optionally, the apparatus further includes a third verification module configured to:
receiving third to-be-verified data of a cross-link event sent by the first cross-link relay, wherein the third to-be-verified data is generated by the first cross-link relay in response to the cross-link event;
performing third verification on the validity of the cross-chain event based on the third data to be verified;
the data processing module is specifically used for carrying out corresponding processing based on the cross-chain event:
and if the third verification is passed, carrying out corresponding processing based on the cross-chain event.
It will be appreciated that the above-described modules of the cross-chain data processing apparatus in the embodiments of the present disclosure have the functionality to implement the corresponding steps of the cross-chain data processing method in the embodiment shown in fig. 4. The functions can be realized by hardware, and can also be realized by executing corresponding software by hardware. The hardware or software includes one or more modules corresponding to the functions described above. The modules may be software and/or hardware, and each module may be implemented separately or may be implemented by integrating multiple modules. For the functional description of each module of the above-mentioned testing device, reference may be specifically made to the corresponding description of the cross-link data processing method in the embodiment shown in fig. 4, which is not repeated herein.
According to embodiments of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.
The electronic device includes: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform a method of cross-chain data processing as provided by embodiments of the present disclosure.
Compared with the prior art, when a node of a first blockchain receives a resource locking request aiming at a first resource on the first blockchain, the first resource is locked, a first resource locking event is triggered, a first cross-link relay responds to the first resource locking event to acquire first resource locking information from the first blockchain, the first resource locking information is sent to a relay blockchain node, the relay blockchain link node triggers a corresponding cross-link event based on whether second resource locking information sent by a second cross-link relay is received in a specified period of time, and corresponding processing is performed based on the cross-link event. In the scheme, the timing task in the cross-chain transaction is realized through the relay blockchain and the relay, so that the cross-chain transaction is not dependent on the timing task capacity of the blockchain any more, and the universality of the cross-chain transaction scheme is improved.
The readable storage medium is a non-transitory computer readable storage medium storing computer instructions for causing a computer to perform a method of cross-chain data processing as provided by embodiments of the present disclosure.
Compared with the prior art, when a node of a first blockchain receives a resource locking request aiming at a first resource on the first blockchain, the node locks the first resource and triggers a first resource locking event, a first cross-link relay responds to the first resource locking event to acquire first resource locking information from the first blockchain, the first resource locking information is sent to a relay blockchain node, the relay blockchain link node triggers a corresponding cross-link event based on whether second resource locking information sent by a second cross-link relay is received in a designated period of time, and corresponding processing is performed based on the cross-link event. In the scheme, the timing task in the cross-chain transaction is realized through the relay blockchain and the relay, so that the cross-chain transaction is not dependent on the timing task capacity of the blockchain any more, and the universality of the cross-chain transaction scheme is improved.
The computer program product comprises a computer program which, when executed by a processor, implements a method for cross-chain data processing as provided by embodiments of the present disclosure.
Compared with the prior art, when a node of a first blockchain receives a resource locking request aiming at a first resource on the first blockchain, the node locks the first resource and triggers a first resource locking event, a first cross-link relay responds to the first resource locking event to acquire first resource locking information from the first blockchain, the first resource locking information is sent to a relay blockchain node, the relay blockchain link node triggers a corresponding cross-link event based on whether second resource locking information sent by a second cross-link relay is received in a specified period of time, and corresponding processing is performed based on the cross-link event. In the scheme, the timing task in the cross-chain transaction is realized through the relay blockchain and the relay, so that the cross-chain transaction is not dependent on the timing task capacity of the blockchain any more, and the universality of the cross-chain transaction scheme is improved.
Fig. 10 shows a schematic block diagram of an example electronic device 2000 that may be used to implement embodiments of the present disclosure. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the disclosure described and/or claimed herein.
As shown in fig. 10, the apparatus 2000 includes a computing unit 2010 that may perform various appropriate actions and processes according to a computer program stored in a Read Only Memory (ROM) 2020 or a computer program loaded from a storage unit 2080 into a Random Access Memory (RAM) 2030. In the RAM 2030, various programs and data required for the operation of the device 2000 may also be stored. The computing unit 2010, ROM 2020, and RAM 2030 are connected to each other by a bus 2040. An input/output (I/O) interface 2050 is also connected to bus 2040.
Various components in the device 2000 are connected to the I/O interface 2050, including: an input unit 2060 such as a keyboard, a mouse, or the like; an output unit 2070, such as various types of displays, speakers, and the like; a storage unit 2080 such as a magnetic disk, an optical disk, or the like; and a communication unit 2090 such as a network card, modem, wireless communication transceiver, etc. The communication unit 2090 allows the device 2000 to exchange information/data with other devices through a computer network such as the internet and/or various telecommunication networks.
The computing unit 2010 may be a variety of general purpose and/or special purpose processing components having processing and computing capabilities. Some examples of computing unit 2010 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, or the like. The computing unit 2010 performs the cross-chain data processing methods provided in the embodiments of the present disclosure. For example, in some embodiments, the cross-chain data processing methods provided in embodiments of the present disclosure may be implemented as a computer software program tangibly embodied on a machine-readable medium, such as storage unit 2080. In some embodiments, some or all of the computer program may be loaded and/or installed onto the device 2000 via the ROM 2020 and/or the communication unit 2090. One or more steps of the cross-chain data processing method provided in embodiments of the present disclosure may be performed when the computer program is loaded into RAM 2030 and executed by computing unit 2010. Alternatively, in other embodiments, the computing unit 2010 may be configured to perform the cross-chain data processing methods provided in embodiments of the present disclosure in any other suitable manner (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for carrying out methods of the present disclosure may be written in any combination of one or more programming languages. These program code may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus such that the program code, when executed by the processor or controller, causes the functions/operations specified in the flowchart and/or block diagram to be implemented. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. The machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and pointing device (e.g., a mouse or trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), and the internet.
The computer system may include a client and a server. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server may be a cloud server, a server of a distributed system, or a server incorporating a blockchain.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps recited in the present disclosure may be performed in parallel, sequentially, or in a different order, provided that the desired results of the disclosed aspects are achieved, and are not limited herein.
The above detailed description should not be taken as limiting the scope of the present disclosure. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present disclosure are intended to be included within the scope of the present disclosure.

Claims (14)

1. A cross-chain data processing method is applied to relay block chain nodes and comprises the following steps:
receiving first resource locking information sent by a first cross-chain relay, wherein the first resource locking information is acquired by the first cross-chain relay to a first blockchain in response to a first resource locking event in the first blockchain;
triggering a corresponding cross-chain event based on whether second resource locking information sent by a second cross-chain relay is received in a specified period of time, so that the first block chain and the second block chain respectively perform corresponding processing based on the cross-chain event, wherein the second resource locking information is acquired by the second cross-chain relay to the second block chain in response to the second resource locking event in the second block chain;
The cross-link event includes a resource rollback event and a resource transfer event, and the triggering of the corresponding cross-link event based on whether second resource locking information sent by a second cross-link relay is received in a specified period of time includes:
triggering a resource transfer event if second resource locking information sent by a second cross-link relay is received in a specified period;
and if the second resource locking information sent by the second cross-link relay is not received within the appointed time period, triggering a resource rollback event.
2. The method of claim 1, further comprising:
receiving first to-be-verified data of a first resource locking event sent by the first cross-chain relay, and carrying out first verification on the validity of the first resource locking event based on the first to-be-verified data;
the triggering the corresponding cross-link event based on whether the second resource locking information sent by the second cross-link relay is received in the specified period of time includes:
and if the first verification is passed, triggering a corresponding cross-link event based on whether second resource locking information sent by a second cross-link relay is received in a specified period of time.
3. The method according to claim 1 or 2, wherein if the second resource lock information sent by the second cross-chain relay is received within a specified period of time, the method further comprises:
Receiving second to-be-verified data of a second resource locking event sent by the second cross-chain relay, and carrying out second verification on the validity of the second resource locking event based on the second to-be-verified data;
the triggering of the corresponding cross-chain event includes:
and if the second verification is passed, triggering a corresponding cross-chain event.
4. A method of cross-chain data processing applied to a first cross-chain relay, the method comprising:
in response to a first resource locking event in a first blockchain, obtaining first resource locking information from the first blockchain;
the first resource locking information is sent to a relay blockchain node, so that the relay blockchain node triggers corresponding cross-link events based on whether second resource locking information sent by a second cross-link relay is received within a specified period of time, the first blockchain and the second blockchain are correspondingly processed based on the cross-link events, and the second resource locking information is acquired by the second cross-link relay to the second blockchain in response to the second resource locking event in the second blockchain;
the cross-link event comprises a resource rollback event and a resource transfer event, and the relay blockchain node triggers the resource transfer event if receiving second resource locking information sent by a second cross-link relay within a specified period; and if the relay blockchain node does not receive the second resource locking information sent by the second cross-chain relay within the appointed period, triggering a resource rollback event.
5. The method of claim 4, further comprising:
generating first data to be verified of the first resource locking event in response to the first resource locking event;
and sending the first data to be verified to a relay block chain node so that the relay block chain node performs first verification on the validity of the first resource locking event based on the first data to be verified.
6. The method of claim 4 or 5, further comprising:
generating third to-be-verified data of the cross-chain event in response to the cross-chain event;
and sending the third data to be verified to a first node in a first blockchain so that the first node performs third verification on the validity of the cross-chain event based on the third data to be verified.
7. A method of cross-chain data processing for a first node in a first blockchain, comprising:
when a resource locking request for a first resource on the first blockchain is received, locking the first resource, triggering a first resource locking event to enable a first cross-chain relay to acquire first resource locking information from the first blockchain in response to the first resource locking event, sending the first resource locking information to a relay blockchain node, and enabling the relay blockchain node to trigger a corresponding cross-chain event based on whether second resource locking information sent by a second cross-chain relay is received in a specified period of time or not, wherein the second resource locking information is acquired from the second blockchain by the second cross-chain relay in response to the second resource locking event in the second blockchain;
Performing corresponding processing based on the cross-chain event;
the cross-link event comprises a resource rollback event and a resource transfer event, and the relay blockchain node triggers the resource transfer event if receiving second resource locking information sent by a second cross-link relay within a specified period; and if the relay blockchain node does not receive the second resource locking information sent by the second cross-chain relay within the appointed period, triggering a resource rollback event.
8. The method of claim 7, wherein the performing the respective processing based on the cross-chain event comprises:
rollback the first resource;
if the cross-link event is a resource transfer event, the performing corresponding processing based on the cross-link event includes:
and transferring the first resource.
9. The method according to claim 7 or 8, wherein the method further comprises:
receiving third to-be-verified data of the cross-link event sent by the first cross-link relay, wherein the third to-be-verified data is generated by the first cross-link relay in response to the cross-link event;
performing third verification on the validity of the cross-chain event based on the third data to be verified;
The corresponding processing based on the cross-chain event comprises the following steps:
and if the third verification is passed, carrying out corresponding processing based on the cross-chain event.
10. A cross-chain data processing apparatus, comprising:
the first resource locking information receiving module is used for receiving first resource locking information sent by a first cross-chain relay, wherein the first resource locking information is acquired from the first block chain by the first cross-chain relay in response to a first resource locking event in the first block chain;
the data processing module is used for triggering corresponding cross-chain events based on whether second resource locking information sent by a second cross-chain relay is received in a specified period of time or not, so that the first block chain and the second block chain respectively carry out corresponding processing based on the cross-chain events, and the second resource locking information is acquired from the second block chain by the second cross-chain relay in response to the second resource locking event in the second block chain;
the cross-link event comprises a resource rollback event and a resource transfer event, and the data processing module is specifically used for when triggering the corresponding cross-link event based on whether second resource locking information sent by a second cross-link relay is received in a specified period:
Triggering a resource transfer event if second resource locking information sent by a second cross-link relay is received in a specified period;
and if the second resource locking information sent by the second cross-link relay is not received within the appointed time period, triggering a resource rollback event.
11. A cross-chain data processing apparatus, comprising:
a first resource locking information acquisition module, configured to acquire first resource locking information from a first blockchain in response to a first resource locking event in the first blockchain;
the data processing module is used for sending the first resource locking information to a relay blockchain node so that the relay blockchain node triggers corresponding cross-chain events based on whether second resource locking information sent by a second cross-chain relay is received in a specified period of time or not, so that the first blockchain and the second blockchain perform corresponding processing based on the cross-chain events, and the second resource locking information is acquired by the second cross-chain relay to the second blockchain in response to the second resource locking event in the second blockchain;
the cross-link event comprises a resource rollback event and a resource transfer event, and the relay blockchain node triggers the resource transfer event if receiving second resource locking information sent by a second cross-link relay within a specified period; and if the relay blockchain node does not receive the second resource locking information sent by the second cross-chain relay within the appointed period, triggering a resource rollback event.
12. A cross-chain data processing apparatus, comprising:
the locking event triggering module is used for locking a first resource on a first blockchain when a resource locking request aiming at the first resource is received, triggering a first resource locking event, enabling a first cross-chain relay to respond to the first resource locking event to acquire first resource locking information from the first blockchain, sending the first resource locking information to a relay blockchain node, enabling the relay blockchain link point to trigger a corresponding cross-chain event based on whether second resource locking information sent by a second cross-chain relay is received within a specified period of time or not, wherein the second resource locking information is acquired by the second cross-chain relay to the second blockchain in response to the second resource locking event in the second blockchain;
the data processing module is used for carrying out corresponding processing based on the cross-chain event;
the cross-link event comprises a resource rollback event and a resource transfer event, and the relay blockchain node triggers the resource transfer event if receiving second resource locking information sent by a second cross-link relay within a specified period; and if the relay blockchain node does not receive the second resource locking information sent by the second cross-chain relay within the appointed period, triggering a resource rollback event.
13. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-9.
14. A non-transitory computer readable storage medium storing computer instructions for causing the computer to perform the method of any one of claims 1-9.
CN202110730252.XA 2021-06-29 2021-06-29 Cross-chain data processing method and device, electronic equipment and readable storage medium Active CN113377875B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110730252.XA CN113377875B (en) 2021-06-29 2021-06-29 Cross-chain data processing method and device, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110730252.XA CN113377875B (en) 2021-06-29 2021-06-29 Cross-chain data processing method and device, electronic equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN113377875A CN113377875A (en) 2021-09-10
CN113377875B true CN113377875B (en) 2024-03-22

Family

ID=77579972

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110730252.XA Active CN113377875B (en) 2021-06-29 2021-06-29 Cross-chain data processing method and device, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN113377875B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114185996B (en) * 2022-02-15 2022-05-13 北京溪塔科技有限公司 Cross-chain transaction processing method and device
CN116708463B (en) * 2023-08-04 2023-10-03 腾讯科技(深圳)有限公司 Information processing method, device, equipment and medium based on multi-block chain

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108269190A (en) * 2018-01-17 2018-07-10 深圳四方精创资讯股份有限公司 Across chain method and its system based on across chain relaying platform
CN110245517A (en) * 2019-05-29 2019-09-17 杭州秘猿科技有限公司 A kind of across chain method, apparatus, system and the electronic equipment of block chain
WO2020258848A1 (en) * 2019-06-28 2020-12-30 创新先进技术有限公司 Method and apparatus for cross-chain transmission of resources
CN112650764A (en) * 2020-12-30 2021-04-13 北京百度网讯科技有限公司 Cross-chain data processing method, device, equipment and storage medium
CN112927075A (en) * 2021-02-26 2021-06-08 北京百度网讯科技有限公司 Processing method and device for cross-chain transaction, electronic equipment and readable storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108269190A (en) * 2018-01-17 2018-07-10 深圳四方精创资讯股份有限公司 Across chain method and its system based on across chain relaying platform
CN110245517A (en) * 2019-05-29 2019-09-17 杭州秘猿科技有限公司 A kind of across chain method, apparatus, system and the electronic equipment of block chain
WO2020258848A1 (en) * 2019-06-28 2020-12-30 创新先进技术有限公司 Method and apparatus for cross-chain transmission of resources
CN112650764A (en) * 2020-12-30 2021-04-13 北京百度网讯科技有限公司 Cross-chain data processing method, device, equipment and storage medium
CN112927075A (en) * 2021-02-26 2021-06-08 北京百度网讯科技有限公司 Processing method and device for cross-chain transaction, electronic equipment and readable storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
BitXHub:基于侧链中继的异构区块链互操作平台;叶少杰;汪小益;徐才巢;孙建伶;;计算机科学(06);全文 *
Ling Cao ; Bo Song.Blockchain cross-chain protocol and platform research and development.《2021 International Conference on Electronics, Circuits and Information Engineering (ECIE)》.2021,摘要. *

Also Published As

Publication number Publication date
CN113377875A (en) 2021-09-10

Similar Documents

Publication Publication Date Title
AU2019248524C1 (en) Cross-blockchain interaction method, apparatus, system, and electronic device
CN109087080B (en) Cross-chain transaction method, device and storage medium
CN113377875B (en) Cross-chain data processing method and device, electronic equipment and readable storage medium
CN110365491A (en) Method for processing business, device, equipment, storage medium and data-sharing systems
CN113434881B (en) Credibility verification method and device for cross-chain transaction and electronic equipment
US9058572B2 (en) Transaction aware, flexible interface for a state correlation and transition execution engine
CN108022090B (en) Virtual account management method, device, system and readable storage medium
CN112650764A (en) Cross-chain data processing method, device, equipment and storage medium
CN111260474B (en) Asset transaction method, device, equipment, system and storage medium of cross-blockchain
CN110413676A (en) The access method and its device of database, electronic equipment and medium
CN112817995B (en) Data processing method and device, electronic equipment and storage medium
CN112764887A (en) Construction method, processing method, device, equipment and storage medium of transaction request
CN113420090A (en) Cross-chain processing method and device, electronic equipment and readable storage medium
CN107038025B (en) SOA architecture-based system calling method and device
CN114327799A (en) Distributed transaction processing method and device, electronic equipment and storage medium
CN112927073A (en) Cross-link data interchange method, system, device and electronic equipment
CN111143040A (en) Transaction processing method, device, system and storage medium
CN108924184B (en) Data processing method and server
CN113360547A (en) Cross-chain query method and device, electronic equipment and readable storage medium
WO2022206429A1 (en) Distributed transaction implementation method and distributed system
CN112927075B (en) Processing method and device of cross-chain transaction, electronic equipment and readable storage medium
CN112783877B (en) Cross-chain data verification method, device, equipment and storage medium
US9092779B2 (en) Heuristics processing
CN113434883A (en) Cross-chain processing method and device, electronic equipment and readable storage medium
CN113468268A (en) Cross-chain processing method and device, electronic equipment and readable storage medium

Legal Events

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