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

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

Info

Publication number
CN113434883A
CN113434883A CN202110732918.5A CN202110732918A CN113434883A CN 113434883 A CN113434883 A CN 113434883A CN 202110732918 A CN202110732918 A CN 202110732918A CN 113434883 A CN113434883 A CN 113434883A
Authority
CN
China
Prior art keywords
data
cross
verified
link
chain
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.)
Pending
Application number
CN202110732918.5A
Other languages
Chinese (zh)
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 CN202110732918.5A priority Critical patent/CN113434883A/en
Publication of CN113434883A publication Critical patent/CN113434883A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • 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
    • 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
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Data Mining & Analysis (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Marketing (AREA)
  • Health & Medical Sciences (AREA)
  • Development Economics (AREA)
  • Strategic Management (AREA)
  • Technology Law (AREA)
  • General Business, Economics & Management (AREA)
  • Computing Systems (AREA)
  • Economics (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Software Systems (AREA)
  • Storage Device Security (AREA)

Abstract

The disclosure provides a cross-chain processing method and device, electronic equipment and a readable storage medium, and relates to the technical field of block chains, in particular to the technical field of cross-chain of block chains. The specific implementation scheme is as follows: processing target data by a second application link node, generating receipt information based on a processing result, generating third data to be verified by a second cross-link relay based on the receipt information, and sending the third data to be verified to a relay link node; and the relay link node performs third verification on the third data to be verified, the first cross-link relay generates fourth data to be verified when the third verification passes, the fourth data to be verified is sent to a first application link node, the first application link node performs fourth verification on the fourth data to be verified, and the receipt information is acquired when the fourth verification passes. Based on the scheme, the method and the device can verify the credibility of the cross-chain transaction, and are beneficial to ensuring the safety and credibility of the cross-chain transaction.

Description

Cross-chain processing method and device, electronic equipment and readable storage medium
Technical Field
The present disclosure relates to the field of blockchain technologies, and in particular, to a method and an apparatus for processing a blockchain, an electronic device, and a readable storage medium.
Background
The block chain technology is developed to date, a plurality of different block chains are produced, and data on the chains of the block chains are isolated, so that the block chains become a data isolated island, and the different block chains cannot be interconnected and intercommunicated.
The cross-chain technology is a technology for solving data interaction between two or more blockchains, so that data can cross the barriers of the chains and the price value can be circulated among different blockchains.
In the cross-chain transaction, how to verify the credibility of the cross-chain transaction on the blockchain is an important problem to be solved in the cross-chain technology.
Disclosure of Invention
In order to solve at least one of the above drawbacks, the present disclosure provides a cross-chain processing method, an apparatus, an electronic device, and a readable storage medium.
According to a first aspect of the present disclosure, there is provided a cross-chain processing method, including:
when receiving third to-be-verified data sent by the second cross-link relay, the relay link node performs third verification on the third to-be-verified data, wherein the third to-be-verified data is generated by the second cross-link relay based on receipt information of a processing result, and the receipt information is generated by the second application link node based on the processing result;
when the third verification passes, the first cross-link relay generates fourth data to be verified, and the fourth data to be verified is sent to the first application link node;
and the first application chain node carries out fourth verification on the fourth data to be verified, and acquires the receipt information when the fourth verification passes.
According to a second aspect of the present disclosure, there is provided another cross-chain processing method, the method including:
the second cross-link relay generates third data to be verified based on the receipt information of the processing result and sends the third data to be verified to the relay link node;
and the relay link node performs third verification on the third data to be verified so that the first cross-link relay generates fourth data to be verified when the third verification passes, sends the fourth data to be verified to the first application link node so that the first application link node performs fourth verification on the fourth data to be verified, and acquires receipt information when the fourth verification passes.
According to a third aspect of the present disclosure, there is provided a cross-chain processing apparatus, the apparatus comprising:
the third data verification module is used for performing third verification on third data to be verified when the relay link node receives the third data to be verified sent by the second cross-link relay, wherein the third data to be verified is generated by the second cross-link relay based on receipt information of a processing result;
the fourth data to be verified module is used for generating fourth data to be verified by the first cross-link relay and sending the fourth data to be verified to the first application link node when the third verification is passed;
and the fourth data verification module is used for performing fourth verification on the fourth data to be verified by the first application link node and acquiring the receipt information when the fourth verification passes.
According to a fourth aspect of the present disclosure, there is provided another cross-chain processing apparatus, the apparatus comprising:
the third data to be verified module is used for the second cross-link relay to generate third data to be verified based on the receipt information of the processing result and send the third data to be verified to the relay link node;
and the third data verification module is used for performing third verification on the third to-be-verified data by the relay link node so that the first cross-link relay generates fourth to-be-verified data when the third verification passes, sending the fourth to-be-verified data to the first application link node so that the first application link node performs fourth verification on the fourth to-be-verified data, and acquiring the receipt information when the fourth verification passes.
According to a fifth aspect of the present disclosure, there is provided an electronic apparatus including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the cross-chain processing method.
According to a sixth aspect of the present disclosure, there is provided a non-transitory computer readable storage medium storing computer instructions for causing a computer to execute the above-described cross-chain processing method.
According to a seventh 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 processing method.
It should be understood that the statements in this section do not necessarily identify key or critical features of the embodiments of the present disclosure, nor do they limit the scope of the present disclosure. Other features of the present disclosure will become apparent from the following description.
The technical scheme provided by the disclosure has the following beneficial effects:
according to the scheme provided by the embodiment of the disclosure, the target data is processed by the second application link node, the receipt information is generated based on the processing result, the second cross-link relay generates third data to be verified based on the receipt information, and the third data to be verified is sent to the relay link node; and the relay link node performs third verification on the third data to be verified, the first cross-link relay generates fourth data to be verified when the third verification is passed, the fourth data to be verified is sent to the first application link node, the first application link node performs fourth verification on the fourth data to be verified, and when the fourth verification is passed, receipt information is obtained. Based on the scheme, the method and the device can verify the credibility of the cross-chain transaction, and are beneficial to ensuring the safety and credibility of the cross-chain transaction.
Drawings
The drawings are included to provide a better understanding of the present solution and are not to be construed as limiting the present disclosure. Wherein:
FIG. 1 is a schematic structural diagram of a cross-chain system provided by an embodiment of the present disclosure;
fig. 2 is a schematic flowchart of a cross-chain processing method provided by an embodiment of the present disclosure;
FIG. 3 is a schematic flow chart diagram of another cross-chain processing method provided by the embodiments of the present disclosure;
FIG. 4 is a flowchart illustrating a specific implementation of a cross-chain processing method according to an embodiment of the disclosure;
FIG. 5 is a schematic flowchart illustrating another specific implementation of a cross-chain processing method according to an embodiment of the present disclosure;
FIG. 6 is a schematic structural diagram of a cross-chain processing apparatus provided in an embodiment of the present disclosure;
FIG. 7 is a schematic structural diagram of another cross-chain processing apparatus provided in the embodiments of the present disclosure;
fig. 8 is a block diagram of an electronic device for implementing the cross-chain processing method provided by the embodiment of the present disclosure.
Detailed Description
Exemplary embodiments of the present disclosure are described below with reference to the accompanying drawings, in which various details of the embodiments of the disclosure are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those 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.
Fig. 1 shows a schematic structural diagram of a cross-chain system provided by an embodiment of the present disclosure, and the method provided by the embodiment of the present disclosure is applied to the cross-chain system shown in fig. 1, where the cross-chain system includes a relay chain, a first application chain, a first cross-chain relay, a second application chain, and a second cross-chain relay.
The relay chain, namely the relay block chain, is deployed with a cross-chain management contract, and is used for application chain management, verification of application chain certification information, triggering of cross-chain events, storage query of cross-chain transactions, and the like. By abstracting the behavior of the heterogeneous chain, the relay chain standardizes the realization interface of the parallel chain, and the cross-chain management contract can be updated by realizing the block chain abstract class so as to adapt to the new heterogeneous chain type. The interfaces defined in the relay chain may be as shown in table 1.
TABLE 1
Figure BDA0003139659900000041
The function realized by the interface named as register Block is used for registering application chain information, the function realized by the interface named as unregisterBlock is used for canceling application chain information, and the function realized by the interface named as DataVertification is used for verifying the validity of a message sent by an application chain.
The first application chain and the second application chain are parallel chains participating in cross-chain transactions, a cross-chain contract and a service contract are deployed, the cross-chain contract and the service contract can be communicated through cross-chain contract calling, and unified validity checking, data serialization and safety authentication can be conducted on cross-chain messages of the service contract based on the cross-chain contract.
The first cross-link relay and the second cross-link relay, namely the relay, are interaction components for connecting different blockchain systems, and are used for connecting the application blockchain and the relay chain. Relays can listen to inter-link events occurring in block and relay chains. By abstracting the behavior of the heterogeneous chain, the cross-chain relay can define the interface shown in table 2, and different heterogeneous chains only need to realize the interface according to the characteristics of the heterogeneous chains.
TABLE 2
Figure BDA0003139659900000051
The function realized by the interface named as 'Init' is initialization application chain configuration, the function realized by the interface named as 'Stop' is Stop operation, the function realized by the interface named as 'ListeningEvents' is monitoring cross-chain events and transmitting the events to a core module for processing, and the function realized by the interface named as 'InvokeProxyContract' calls a cross-chain contract and is used for transmitting the information of a relay chain to a parallel chain.
The cross-chain system provided by the embodiment of the disclosure may further include a cross-chain client, that is, a user may initiate a request to different types of application blockchains and relay chains using an entry of the cross-chain system.
The chain-crossing system provided by the embodiment of the disclosure does not limit the number of application block chains, can be expanded according to actual needs, and supports access of heterogeneous block chains.
The initialization process of the cross-chain system provided by the embodiment of the disclosure is specifically as follows:
the application chains respectively start the network and deploy cross-link contracts (designating relay chains during initialization) and service contracts;
a relay chain deploys a cross-link management contract;
information of each application chain is registered with a cross-link management contract of the relay chain. The registered information depends on the trust model of the application chain, and can be a starting block or a certifier certificate;
the configuration and initiation of the relay is used to connect the application block chain with the relay chain.
When the inter-chain system provided by the embodiment of the present disclosure wants to support a new blockchain a of a blockchain type, the following modifications need to be made:
(1) upgrading a cross-link management contract of the relay link, and supporting registration, management and verification of the block chain A;
(2) compiling a cross-link contract of an intelligent contract language facing to a block chain A;
(3) and compiling a plug-in of the cross-link relay based on the SDK of the block chain A to realize a corresponding interface, so that the relay has the capability of communicating with the block chain A.
It becomes very simple for a running application chain to want to access a cross-chain system, and the steps are as follows:
(1) the application chain deploys a cross-chain contract oriented to the intelligent contract language of the application chain;
(2) upgrading the existing service contract, and communicating with the cross-chain contract through cross-contract calling;
(3) authorizing a cross-link right of the business contract through a cross-link contract;
(4) registering information of the application chain to the relay chain, such as registering a root of trust of the application chain, and verifying the validity of the message based on the root of trust when subsequently performing cross-chain message verification;
(5) cross-link relays are configured and initiated to connect the relay chain with the application chain.
At this time, the application chain can access the cross-chain system, and cross-chain connection is established with other application chains.
In the prior art, the interoperation of two heterogeneous or homogeneous block chains is generally realized through a relay mode, and the two chains need to establish a light client for maintaining the state of the block chain of the other side. In this way, since the two blockchains need to directly verify the messages of the other side, the codes of the blockchains need to be modified, the implementation difficulty is high, and hot plugging of the blockchains cannot be realized, i.e., the functions of accessing, exiting and updating the application chains cannot be performed under the condition that the operation of the cross-chain system is not affected. In addition, in this way, when one blockchain wants to cross chains with heterogeneous blockchains of different types, an adaptation is needed to be performed on one blockchain, which results in high adaptation complexity.
The cross-chain system provided by the embodiment of the disclosure can realize the access of the application chain in a mode of registering the application chain to the cross-chain management contract of the relay chain by deploying the cross-chain contract and the service intelligent contract, does not need complicated code modification work, reduces the realization difficulty of the cross-chain system, and supports the hot plug of the application block chain, namely, can perform the functions of access, exit and update on the application block chain under the condition of not influencing the operation of the cross-chain system. In addition, in the chain crossing system provided by the embodiment of the disclosure, when the application block chain needs to cross the chain with heterogeneous block chains of different types, two-by-two adaptation of the block chain is not needed, and only the relay chain needs to be adapted, so that the adaptation complexity is reduced.
Fig. 2 shows a schematic flowchart of a cross-chain processing method provided by an embodiment of the present disclosure, and as shown in fig. 2, the method mainly includes:
step S210: when receiving third to-be-verified data sent by the second cross-link relay, the relay link node performs third verification on the third to-be-verified data, wherein the third to-be-verified data is generated by the second cross-link relay based on receipt information of a processing result;
step S220: when the third verification passes, the first cross-link relay generates fourth data to be verified, and the fourth data to be verified is sent to the first application link node;
step S230: and the first application chain node carries out fourth verification on the fourth data to be verified, and acquires the receipt information when the fourth verification passes.
The first application chain and the second application chain may be two block chains participating in a cross-chain transaction, the first cross-chain relay is in communication with the first application chain and the relay chain, and the second cross-chain relay is in communication with the second application chain and the relay chain. The first application chain node is a block chain node in the first application chain, the second application chain node is a block chain link node in the second application chain, and the relay chain node is a block chain node in the relay chain.
The first application chain may be an initiator of the cross-chain processing request, and the user may initiate the cross-chain processing request by invoking a business contract of the first application chain through a client of the first application chain. Causing the second application chain to process the target data involved in the cross-chain processing request.
The receipt information is used to feed back a processing result, such as processing success or processing failure, as the target data to the first application chain.
As a typical example, a usage scenario of the embodiment of the present disclosure may initiate a chain crossing transaction for writing a deposit certificate to a second application chain for a user on a first application chain, and return receipt information of the write deposit certificate to the first application chain after the write deposit certificate operation is completed on the second application chain.
The third data to be verified can be generated by the second cross-link relay and sent to the relay link node, so as to verify the credibility of the receipt information on the second application link to the relay link.
When the third to-be-verified data is not verified, the receipt information on the second application chain can be considered to be not trusted, and then the cross-chain processing flow can be terminated.
When the third to-be-verified data is verified to pass, the cross-link processing request on the second application chain can be considered to be credible, and then the relay chain node can generate fourth to-be-verified data which is used for verifying the credibility of the receipt information on the second application chain to the first application chain.
In the chain crossing system provided by the embodiment of the disclosure, because the first application chain and the second application chain are both adapted to the relay chain, after the relay chain verifies that the third data to be verified is trusted, fourth data to be verified can be generated, and the first application chain can complete verification of validity of the receipt information by verifying the fourth data to be verified, thereby overcoming limitations of the existing chain crossing system.
In the method provided by the embodiment of the disclosure, a second application link node processes target data, and generates receipt information based on a processing result, and a second cross-link relay generates third data to be verified based on the receipt information and sends the third data to be verified to a relay link node; and the relay link node performs third verification on the third data to be verified, the first cross-link relay generates fourth data to be verified when the third verification is passed, the fourth data to be verified is sent to the first application link node, the first application link node performs fourth verification on the fourth data to be verified, and when the fourth verification is passed, receipt information is obtained. Based on the scheme, the method and the device can verify the credibility of the cross-chain transaction, and are beneficial to ensuring the safety and credibility of the cross-chain transaction.
In an optional implementation manner of the present disclosure, the method further includes:
the first cross-link relay generates first to-be-verified data based on a cross-link processing request initiated on the first application link and aiming at target data on the second application link, and sends the first to-be-verified data to the relay link node;
and the relay link node performs first verification on the first data to be verified so that second data to be verified is generated when the first verification is passed by a second cross-link relay, sends the second data to be verified to a second application link node so that the second application link node performs second verification on the second data to be verified, and processes the target data when the second verification is passed so as to obtain a processing result.
The first application chain may be an initiator of the cross-chain processing request, and the user may invoke a service contract of the first application chain to initiate the cross-chain processing request through a client of the first application chain.
The first to-be-verified data can be generated by the first cross-link relay and sent to the relay link node, so as to verify the credibility of the cross-link processing request on the first application link to the relay link.
When the first to-be-verified data is not verified, the cross-link processing request on the first application chain can be considered to be not trusted, and then the cross-link processing flow can be terminated.
When the first to-be-verified data passes verification, the cross-link processing request on the first application chain can be considered to be credible, and then the relay chain node can generate second to-be-verified data which is used for verifying the credibility of the cross-link processing request on the first application chain to the second application chain.
In the cross-link system provided by the embodiment of the disclosure, because the first application chain and the second application chain are both adapted to the relay chain, after the relay chain verifies that the first to-be-verified data is trusted, the second to-be-verified data can be generated, and the second application chain can complete verification of validity of the cross-link processing request by verifying the second to-be-verified data, thereby overcoming limitations of the existing cross-link system.
In an optional implementation manner of the present disclosure, when the third verification passes, the generating, by the first cross-link relay, fourth data to be verified includes:
when the third verification passes, the relay block chain node generates a fourth cross-chain event;
and the first cross-link relay generates fourth data to be verified when monitoring a fourth cross-link event.
And the relay chain can trigger a fourth cross-chain event after the third verification is passed, and the first cross-chain relay can monitor the fourth cross-chain event through event monitoring. The event information of the fourth cross-chain event may include receipt information.
The first cross-link relay may package the fourth to-be-verified data and the receipt information into a fourth transaction, and submit the fourth transaction to the first application chain.
In an optional implementation manner of the present disclosure, when the first cross-link relay monitors the fourth cross-link event, generating fourth data to be verified includes:
when the first cross-link relay monitors a fourth cross-link event, generating a fourth existence certificate of the fourth cross-link event, and taking the fourth existence certificate as fourth data to be verified;
the fourth verification of the fourth data to be verified is carried out by the first application chain node, and the fourth verification comprises the following steps:
the first application chain node performs a fourth verification of the fourth presence credential.
Wherein the fourth presence attestation is a presence attestation of a fourth cross-chain event.
In actual use, a fourth proof of presence for a fourth cross-chain event may be generated from trust information of the first application chain. The first application chain may verify the validity of the fourth presence attestation based on trust information of the first application chain.
In particular, the trust information may comprise at least one of a root of trust, starting block information, and a certificate of the verifier node.
In an optional implementation manner of the present disclosure, the generating, by the first cross-link relay, the first to-be-verified data based on the cross-link processing request initiated on the first application chain for the target data on the second application chain includes:
the first application chain node responds to a cross-chain processing request initiated on the first application chain and aiming at target data on the second application chain to generate a first cross-chain event;
the first cross-link relay generates first data to be verified when monitoring a first cross-link event.
The first cross-link relay may monitor the first cross-link event through event monitoring. The event information of the first cross-chain event may include basic information of the cross-chain processing request.
The first cross-link relay can package the first to-be-verified data and the basic information of the cross-link processing request into a first transaction, and submit the first transaction to the relay link.
In an optional implementation manner of the present disclosure, the generating, by the first cross-link relay, first to-be-verified data when the first cross-link event is monitored includes:
when the first cross-link relay monitors the first cross-link event, generating a first existence certificate of the first cross-link event, and taking the first existence certificate as first data to be verified;
the relay link node performs first verification on the first to-be-verified data, and the method comprises the following steps:
the relay link node performs a first verification of the first presence credential.
Wherein the first presence attestation is a presence attestation of the first cross-chain event.
In actual use, a first presence credential for a first cross-chain event may be generated from trust information for a first application chain.
The relay link node may obtain the trust information of the first application chain in advance, so that the validity of the first presence certificate is verified based on the trust information of the first application chain.
The first application chain can initiate a registration request when joining the cross-chain system, and registers the trust information of the first application chain to the relay chain, so that a foundation is provided for the subsequent relay chain to verify the first to-be-verified data based on the trust information of the first application chain.
Fig. 3 shows a schematic flowchart of another cross-chain processing method provided by the embodiment of the present disclosure, and as shown in fig. 3, the method mainly includes:
step S310: the second cross-link relay generates third data to be verified based on the receipt information of the processing result and sends the third data to be verified to the relay link node;
step S320: and the relay link node performs third verification on the third data to be verified so that the first cross-link relay generates fourth data to be verified when the third verification passes, sends the fourth data to be verified to the first application link node so that the first application link node performs fourth verification on the fourth data to be verified, and acquires receipt information when the fourth verification passes.
The first application chain and the second application chain may be two block chains participating in a cross-chain transaction, the first cross-chain relay is in communication with the first application chain and the relay chain, and the second cross-chain relay is in communication with the second application chain and the relay chain. The first application chain node is a block chain node in the first application chain, the second application chain node is a block chain link node in the second application chain, and the relay chain node is a block chain node in the relay chain.
The first application chain may be an initiator of the cross-chain processing request, and the user may initiate the cross-chain processing request by invoking a business contract of the first application chain through a client of the first application chain. Causing the second application chain to process the target data involved in the cross-chain processing request.
The receipt information is used to feed back a processing result, such as processing success or processing failure, as the target data to the first application chain.
As a typical example, a usage scenario of the embodiment of the present disclosure may initiate a chain crossing transaction for writing a deposit certificate to a second application chain for a user on a first application chain, and return receipt information of the write deposit certificate to the first application chain after the write deposit certificate operation is completed on the second application chain.
The third data to be verified can be generated by the second cross-link relay and sent to the relay link node, so as to verify the credibility of the receipt information on the second application link to the relay link.
When the third to-be-verified data is not verified, the receipt information on the second application chain can be considered to be not trusted, and then the cross-chain processing flow can be terminated.
When the third to-be-verified data is verified to pass, the cross-link processing request on the second application chain can be considered to be credible, and then the relay chain node can generate fourth to-be-verified data which is used for verifying the credibility of the receipt information on the second application chain to the first application chain.
In the chain crossing system provided by the embodiment of the disclosure, because the first application chain and the second application chain are both adapted to the relay chain, after the relay chain verifies that the third data to be verified is trusted, fourth data to be verified can be generated, and the first application chain can complete verification of validity of the receipt information by verifying the fourth data to be verified, thereby overcoming limitations of the existing chain crossing system.
In the method provided by the embodiment of the disclosure, a second application link node processes target data, and generates receipt information based on a processing result, and a second cross-link relay generates third data to be verified based on the receipt information and sends the third data to be verified to a relay link node; and the relay link node performs third verification on the third data to be verified, the first cross-link relay generates fourth data to be verified when the third verification is passed, the fourth data to be verified is sent to the first application link node, the first application link node performs fourth verification on the fourth data to be verified, and when the fourth verification is passed, receipt information is obtained. Based on the scheme, the method and the device can verify the credibility of the cross-chain transaction, and are beneficial to ensuring the safety and credibility of the cross-chain transaction.
In an optional implementation manner of the present disclosure, the method further includes:
the method comprises the steps that a relay link node receives first to-be-verified data sent by a first cross-link relay, and first verification is conducted on the first to-be-verified data, wherein the first to-be-verified data are generated by the first cross-link relay based on a cross-link processing request initiated on a first application link and used for target data on a second application link;
when the first verification passes, the second cross-link relay generates second data to be verified, and the second data to be verified is sent to the second application link node;
and the second application chain link point performs second verification on the second data to be verified, and processes the target data when the second verification passes to obtain a processing result.
The first application chain may be an initiator of the cross-chain processing request, and the user may invoke a service contract of the first application chain to initiate the cross-chain processing request through a client of the first application chain.
The first to-be-verified data can be generated by the first cross-link relay and sent to the relay link node, so as to verify the credibility of the cross-link processing request on the first application link to the relay link.
When the first to-be-verified data is not verified, the cross-link processing request on the first application chain can be considered to be not trusted, and then the cross-link processing flow can be terminated.
When the first to-be-verified data passes verification, the cross-link processing request on the first application chain can be considered to be credible, and then the relay chain node can generate second to-be-verified data which is used for verifying the credibility of the cross-link processing request on the first application chain to the second application chain.
In the cross-link system provided by the embodiment of the disclosure, because the first application chain and the second application chain are both adapted to the relay chain, after the relay chain verifies that the first to-be-verified data is trusted, the second to-be-verified data can be generated, and the second application chain can complete verification of validity of the cross-link processing request by verifying the second to-be-verified data, thereby overcoming limitations of the existing cross-link system.
In an optional implementation manner of the present disclosure, the generating, by the second cross-link relay, third data to be verified based on the receipt information includes:
the second application chain node generates a third chain crossing event based on the receipt information;
and the second cross-link relay generates third data to be verified when monitoring a third cross-link event.
After the generated receipt information, the second application chain may trigger a third cross-chain event, and the second cross-chain relay may monitor the third cross-chain event through event monitoring. The event information of the third cross-chain event may include receipt information.
The second cross-link relay may package the third to-be-verified data and the receipt information into a third transaction, and submit the third transaction to the relay link.
In an optional implementation manner of the present disclosure, when the second inter-link relay monitors a third inter-link event, generating third data to be verified includes:
when the second cross-link relay monitors a third cross-link event, generating a third existence certification of the third cross-link event, and taking the third existence certification as third data to be verified;
and the relay link node performs third verification on the third data to be verified, and the third verification comprises the following steps:
the relay link node performs a third verification of the third presence credential.
Wherein the third presence attestation is a presence attestation of a third cross-chain event.
In actual use, a third presence attestation of a third cross-chain event may be generated from trust information of the second application chain. The relay chain may verify the validity of the third presence attestation based on the trust information of the second application chain.
The second application chain can initiate a registration request when joining the cross-chain system, and registers the trust information of the second application chain to the relay chain, so that a basis is provided for the subsequent relay chain to verify the third data to be verified based on the trust information of the second application chain.
In particular, the trust information may comprise at least one of a root of trust, starting block information, and a certificate of the verifier node.
In an optional implementation manner of the present disclosure, when the first authentication passes, the second cross-link relay generates second data to be authenticated, including:
when the first verification passes, the relay chain node generates a second cross-chain event;
and the second cross-link relay generates second data to be verified when monitoring a second cross-link event.
The relay chain can trigger a second cross-chain event after the first verification is passed, and the second cross-chain relay can monitor the second cross-chain event through event monitoring. The event information of the second cross-chain event can include basic information of the cross-chain transaction request.
The second cross-chain relay may package the second to-be-verified data and the basic information of the cross-chain transaction request into a second transaction, and submit the second transaction to the second application chain.
In an optional implementation manner of the present disclosure, when the second cross-link relay monitors the second cross-link event, generating second data to be verified includes:
when the second cross-link relay monitors a second cross-link event, generating a second existence certificate of the second cross-link event, and taking the second existence certificate as second data to be verified;
and the second application chain node performs second verification on the second data to be verified, and the second verification comprises the following steps:
the second application link point performs a second verification of the second presence credential.
Wherein the second presence attestation is a presence attestation of a second cross-chain event.
In actual use, a second presence attestation of a second cross-chain event may be generated from trust information of a second application chain. The second chain of applications may verify the validity of the second presence attestation based on trust information of the second chain of applications.
Fig. 4 is a schematic flowchart of a specific implementation manner of the cross-chain processing method provided by the embodiment of the present disclosure, where the specific flowchart is as follows:
1. calling a service contract 2 of the application chain A by a user Alice of the application chain A (namely a first application chain) through a cross-chain Client (namely a cross-chain Client);
2. triggering a cross-link calling condition by the service contract 2 of the application chain A, processing target data on the service contract 2 of the application chain B (namely a second application chain), and calling the cross-link contract of the application chain A through the cross-link contract;
3. the cross-link contract of the application chain A triggers a first cross-link event E1, and E1 identifies basic information of the cross-link processing request;
4. a relay (namely a first cross-link relay) connected with the application chain A obtains a first cross-link event E1 through event monitoring;
5. the first cross-chain relay resolves the first cross-chain event E1 and then generates a first existence proof P1 of the first cross-chain event E1, wherein the first existence proof P1 can be used for proving the validity of the first cross-chain event E1;
6. the first cross-link relay generates a first transaction T1 of a cross-link management contract for sending to the relay link, and basic information of a cross-link processing request and a first existence certification P1 are contained in the first transaction T1;
7. the method comprises the steps that a cross-link management contract of a relay link executes a first transaction T1, the validity of a first existence certificate P1 is verified, then basic information of a cross-link processing request at this time is recorded in an account book, if the verification of the first existence certificate P1 is passed, a second cross-link event E2 is sent out, and event information of the second cross-link event E2 contains the basic information of the cross-link processing request;
8. a second cross-link relay connected with the application chain B monitors a second cross-link event E2, and the resource location of the calling target data is obtained through analysis;
9. the relay link node analyzes the second cross-link event E2 and generates a second existence proof P2 for proving the validity of the second cross-link event E2;
10. the relay node generates a second transaction T2 of the cross-chain contract for sending to the application chain B, and the second T2 contains basic information of the cross-chain processing request and a second existence certification P2;
11. performing a second transaction T2 by the cross-link contract of the application chain B, verifying the validity of a second existence proof P2, and obtaining the resource location of the calling target data;
12. and the cross-chain contract of the application chain B calls a service contract through the cross-contract to process the target data.
Fig. 5 is a schematic flow chart of another specific implementation of the cross-chain processing method provided in the embodiment of the present disclosure, and the specific flow chart is as follows:
13. the application chain B executes the cross-chain call transaction T2, throws out an event E3 (namely, a third cross-chain event), the E3 contains receipt information which needs to be returned to the application chain A, namely, the application chain B processes the target data, and generates the receipt information according to the processing result of the target data, the third cross-chain event can be triggered after the receipt information is generated, and the event information of the third cross-chain event comprises the receipt information;
14. the relay monitors the trigger of E3 to obtain E3 information, namely the second cross-link relay monitors a third cross-link event and obtains receipt information according to the event information of the third cross-link event;
15. the second cross-link relay generates certification information P3 (i.e., a third presence certification) for certifying the validity of E3;
16. the second cross-link relay generates a transaction T3 (i.e., a third transaction) for a cross-link management contract to the relay link, P3 being contained within T3;
17. executing T3 by a cross-link management contract of the relay link, verifying the validity of P3, triggering a cross-link E4, wherein the E4 identifies that an application chain B triggers E3, namely the relay link node verifies the validity of a third existence certification, and triggers a fourth cross-link event after the third existence certification is verified to be valid;
18. the first cross-link relay monitors triggering of E4 to acquire E4 information, namely the first cross-link relay monitors a fourth cross-link event to acquire event information of the fourth cross-link event;
19. the first cross-link relay generates existence proving information P4 for proving the effectiveness of E4;
20. the first cross-chain relay generates a fourth transaction T4, which is sent to the application chain a, and P4 is contained in T4;
21. the application chain A executes T4, verifies the validity of P4, receives the receipt information, namely the first application chain node verifies the validity of the fourth existence certificate, and can acquire the receipt information when the fourth existence certificate is verified to be valid;
22. the cross-link contract of the first application chain returns the receipt information to the business contract through cross-contract calling, and the business contract records the receipt information in the account book;
23. a cross-chain client (i.e., a cross-chain client) obtains receipt information.
Based on the same principle as the method shown in fig. 2, fig. 6 shows a schematic structural diagram of a cross-chain processing apparatus provided by the embodiment of the present disclosure, as shown in fig. 6, the cross-chain processing apparatus 60 may include:
a third data verification module 610, configured to perform third verification on third data to be verified when the relay link node receives the third data to be verified that is sent by the second cross-link relay, where the third data to be verified is generated by the second cross-link relay based on the receipt information of the processing result;
a fourth to-be-verified data module 620, configured to, when the third verification passes, generate fourth to-be-verified data by the first cross-link relay, and send the fourth to-be-verified data to the first application link node;
the fourth data verification module 630 is configured to perform fourth verification on the fourth to-be-verified data by the first application link node, and acquire the receipt information when the fourth verification passes.
According to the device provided by the embodiment of the disclosure, the second application link node processes the target data, the receipt information is generated based on the processing result, the second cross-link relay generates third data to be verified based on the receipt information, and the third data to be verified is sent to the relay link node; and the relay link node performs third verification on the third data to be verified, the first cross-link relay generates fourth data to be verified when the third verification is passed, the fourth data to be verified is sent to the first application link node, the first application link node performs fourth verification on the fourth data to be verified, and when the fourth verification is passed, receipt information is obtained. Based on the scheme, the method and the device can verify the credibility of the cross-chain transaction, and are beneficial to ensuring the safety and credibility of the cross-chain transaction.
Optionally, the apparatus further comprises:
the first to-be-verified data module is used for generating first to-be-verified data by a first cross-link relay based on a cross-link processing request initiated on a first application link and aiming at target data on a second application link, and sending the first to-be-verified data to a relay link node;
the first data verification module is used for performing first verification on the first to-be-verified data by the relay link node, so that second to-be-verified data is generated when the first verification is passed by the second cross-link relay, the second to-be-verified data is sent to the second application link node, so that second verification is performed on the second to-be-verified data by the second application link node, and when the second verification is passed, the target data is processed, and a processing result is obtained.
Optionally, when the third verification passes and the first cross-link relay generates the fourth data to be verified, the fourth data to be verified module is specifically configured to:
when the third verification passes, the relay block chain node generates a fourth cross-chain event;
and the first cross-link relay generates fourth data to be verified when monitoring a fourth cross-link event.
Optionally, the fourth to-be-verified data module is specifically configured to, when the first cross-link relay monitors a fourth cross-link event and generates fourth to-be-verified data:
when the first cross-link relay monitors a fourth cross-link event, generating a fourth existence certificate of the fourth cross-link event, and taking the fourth existence certificate as fourth data to be verified;
the fourth data verification module is specifically configured to, when the first application link node performs fourth verification on the fourth to-be-verified data:
the first application chain node performs a fourth verification of the fourth presence credential.
Optionally, when the first cross-link relay generates the first to-be-verified data based on a cross-link processing request initiated on the first application chain and made to the target data on the second application chain, the first to-be-verified data module is specifically configured to:
the first application chain node responds to a cross-chain processing request initiated on the first application chain and aiming at target data on the second application chain to generate a first cross-chain event;
the first cross-link relay generates first data to be verified when monitoring a first cross-link event.
Optionally, when the first cross-link relay monitors a first cross-link event and generates first data to be verified, the first data to be verified module is specifically configured to:
when the first cross-link relay monitors the first cross-link event, generating a first existence certificate of the first cross-link event, and taking the first existence certificate as first data to be verified;
the first data verification module is specifically configured to, when the relay link node performs first verification on the first to-be-verified data:
the relay link node performs a first verification of the first presence credential.
It is understood that the above modules of the cross-chain processing device in the embodiment of the present disclosure have functions of implementing the corresponding steps of the cross-chain processing device method in the embodiment shown in fig. 2. The function 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 can be software and/or hardware, and each module can be implemented independently or by integrating a plurality of modules. For the functional description of each module of the test apparatus, reference may be specifically made to the corresponding description of the cross-chain processing method in the embodiment shown in fig. 2, and details are not repeated here.
Based on the same principle as the method shown in fig. 3, fig. 7 shows a schematic structural diagram of a cross-chain processing apparatus provided by the embodiment of the present disclosure, as shown in fig. 7, the cross-chain processing apparatus 70 may include:
a third to-be-verified data module 710, configured to generate third to-be-verified data based on the receipt information of the processing result by the second inter-link relay, and send the third to-be-verified data to the relay link node;
the third data verification module 720 is configured to perform third verification on the third to-be-verified data by the relay link node, so that the first cross-link relay generates fourth to-be-verified data when the third verification passes, send the fourth to-be-verified data to the first application link node, so that the first application link node performs fourth verification on the fourth to-be-verified data, and obtain receipt information when the fourth verification passes.
According to the device provided by the embodiment of the disclosure, the second application link node processes the target data, the receipt information is generated based on the processing result, the second cross-link relay generates third data to be verified based on the receipt information, and the third data to be verified is sent to the relay link node; and the relay link node performs third verification on the third data to be verified, the first cross-link relay generates fourth data to be verified when the third verification is passed, the fourth data to be verified is sent to the first application link node, the first application link node performs fourth verification on the fourth data to be verified, and when the fourth verification is passed, receipt information is obtained. Based on the scheme, the method and the device can verify the credibility of the cross-chain transaction, and are beneficial to ensuring the safety and credibility of the cross-chain transaction.
Optionally, the apparatus further comprises:
the first data verification module is used for receiving first to-be-verified data sent by a first cross-link relay by a relay link node and performing first verification on the first to-be-verified data, wherein the first to-be-verified data is generated by the first cross-link relay based on a cross-link processing request initiated on a first application link and aiming at target data on a second application link;
the second data to be verified module is used for generating second data to be verified by the second cross-link relay when the first verification passes and sending the second data to be verified to the second application link node;
and the second data verification module is used for performing second verification on the second to-be-verified data by the second application link node, and processing the target data to obtain a processing result when the second verification passes.
Optionally, when the second cross-link relay generates the second data to be verified based on the receipt information, the second data to be verified module is specifically configured to:
the second application chain node generates a third chain crossing event based on the receipt information;
and the second cross-link relay generates third data to be verified when monitoring a third cross-link event.
Optionally, when the third to-be-verified data module monitors a third cross-link event in the second cross-link relay and generates third to-be-verified data, the third to-be-verified data module is specifically configured to:
when the second cross-link relay monitors a third cross-link event, generating a third existence certification of the third cross-link event, and taking the third existence certification as third data to be verified;
the third data verification module is specifically configured to, when performing third verification on the third to-be-verified data at the relay link node:
the relay link node performs a third verification of the third presence credential.
Optionally, when the first verification passes and the second cross-link relay generates the second data to be verified, the second data module to be verified is specifically configured to:
when the first verification passes, the relay chain node generates a second cross-chain event;
and the second cross-link relay generates second data to be verified when monitoring a second cross-link event.
Optionally, the second to-be-verified data module is specifically configured to, when the second cross-link relay monitors a second cross-link event and generates second to-be-verified data:
when the second cross-link relay monitors a second cross-link event, generating a second existence certificate of the second cross-link event, and taking the second existence certificate as second data to be verified;
the second data verification module, when performing second verification on the second to-be-verified data at the second application link node, is specifically configured to:
the second application link point performs a second verification of the second presence credential. .
It is understood that the above modules of the cross-chain processing device in the embodiment of the present disclosure have functions of implementing the corresponding steps of the cross-chain processing device method in the embodiment shown in fig. 3. The function 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 can be software and/or hardware, and each module can be implemented independently or by integrating a plurality of modules. For the functional description of each module of the test apparatus, reference may be specifically made to the corresponding description of the cross-chain processing method in the embodiment shown in fig. 3, and details are not repeated here.
The present disclosure also provides an electronic device, a readable storage medium, and a computer program product according to embodiments of the present disclosure.
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 cross-chain processing method as provided by an embodiment of the disclosure.
Compared with the prior art, the electronic equipment processes target data by the second application link node, generates receipt information based on a processing result, generates third data to be verified based on the receipt information by the second cross-link relay, and sends the third data to be verified to the relay link node; and the relay link node performs third verification on the third data to be verified, the first cross-link relay generates fourth data to be verified when the third verification is passed, the fourth data to be verified is sent to the first application link node, the first application link node performs fourth verification on the fourth data to be verified, and when the fourth verification is passed, receipt information is obtained. Based on the scheme, the method and the device can verify the credibility of the cross-chain transaction, and are beneficial to ensuring the safety and credibility of the cross-chain transaction.
The readable storage medium is a non-transitory computer readable storage medium storing computer instructions for causing a computer to perform a cross-chain processing method as provided by an embodiment of the present disclosure.
Compared with the prior art, the readable storage medium is characterized in that the target data is processed by the second application link node, receipt information is generated based on the processing result, the second cross-link relay generates third data to be verified based on the receipt information, and the third data to be verified is sent to the relay link node; and the relay link node performs third verification on the third data to be verified, the first cross-link relay generates fourth data to be verified when the third verification is passed, the fourth data to be verified is sent to the first application link node, the first application link node performs fourth verification on the fourth data to be verified, and when the fourth verification is passed, receipt information is obtained. Based on the scheme, the method and the device can verify the credibility of the cross-chain transaction, and are beneficial to ensuring the safety and credibility of the cross-chain transaction.
The computer program product comprises a computer program which, when executed by a processor, implements a cross-chain processing method as provided by embodiments of the present disclosure.
Compared with the prior art, the computer program product is characterized in that the target data is processed by the second application link node, receipt information is generated based on the processing result, the second cross-link relay generates third data to be verified based on the receipt information, and the third data to be verified is sent to the relay link node; and the relay link node performs third verification on the third data to be verified, the first cross-link relay generates fourth data to be verified when the third verification is passed, the fourth data to be verified is sent to the first application link node, the first application link node performs fourth verification on the fourth data to be verified, and when the fourth verification is passed, receipt information is obtained. Based on the scheme, the method and the device can verify the credibility of the cross-chain transaction, and are beneficial to ensuring the safety and credibility of the cross-chain transaction.
Fig. 8 illustrates a schematic block diagram of an example electronic device 2000 that can 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 phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the disclosure described and/or claimed herein.
As shown in fig. 8, the device 2000 includes a computing unit 2010, which may perform various appropriate actions and processes in accordance with 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 can also be stored. The computing unit 2010, ROM 2020, and RAM 2030 are coupled to each other via bus 2040. An input/output (I/O) interface 2050 is also connected to bus 2040.
Various components in device 2000 are connected to 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, and 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 over a computer network, such as the internet, and/or various telecommunication networks.
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 executes the cross-chain processing method provided in the embodiments of the present disclosure. For example, in some embodiments, the cross-chain processing methods provided in embodiments of the present disclosure may be implemented as a computer software program tangibly embodied in a machine-readable medium, such as storage unit 2080. In some embodiments, some or all of the computer program may be loaded onto and/or installed onto the device 2000 via the ROM 2020 and/or the communication unit 2090. When loaded into RAM 2030 and executed by computing unit 2010, may perform one or more steps of the cross-chain processing method provided in embodiments of the disclosure. Alternatively, in other embodiments, the computing unit 2010 may be configured in any other suitable manner (e.g., by way of firmware) to perform the cross-chain processing methods provided in embodiments of the present disclosure.
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, Field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), system on a 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 that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for implementing the methods of the present disclosure may be written in any combination of one or more programming languages. These program codes 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 codes, when executed by the processor or controller, cause the functions/operations specified in the flowchart and/or block diagram to be performed. 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. A 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 a pointing device (e.g., a mouse or a 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 can 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, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end 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 back-end, 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 clients and servers. A client and server are generally 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 with a combined blockchain.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present disclosure may be executed in parallel or sequentially or in different orders, and are not limited herein as long as the desired results of the technical solutions disclosed in the present disclosure can be achieved.
The above detailed description should not be construed as limiting the scope of the disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present disclosure should be included in the scope of protection of the present disclosure.

Claims (19)

1. A method of cross-chain processing, comprising:
when receiving third to-be-verified data sent by a second cross-link relay, a relay link node performs third verification on the third to-be-verified data, wherein the third to-be-verified data is generated by the second cross-link relay based on receipt information of a processing result;
when the third verification passes, the first cross-link relay generates fourth data to be verified, and the fourth data to be verified is sent to the first application link node;
and the first application chain node carries out fourth verification on the fourth data to be verified, and acquires the receipt information when the fourth verification is passed.
2. The method of claim 1, further comprising:
the first cross-link relay generates first to-be-verified data based on a cross-link processing request initiated on a first application link and used for target data on a second application link, and sends the first to-be-verified data to the relay link node;
the relay link node performs first verification on the first data to be verified, so that second data to be verified are generated when a second cross-link relay passes the first verification, the second data to be verified are sent to a second application link node, so that the second application link node performs second verification on the second data to be verified, and when the second verification passes, the target data are processed, and a processing result is obtained.
3. The method according to claim 1 or 2, wherein the first cross-link relay generating fourth data to be verified when the third verification passes comprises:
when the third verification passes, the relay block chain node generates a fourth cross-chain event;
and the first cross-link relay generates fourth data to be verified when monitoring the fourth cross-link event.
4. The method of claim 3, wherein the first cross-link relay generating fourth data to be verified upon listening for the fourth cross-link event comprises:
when the first cross-chain relay monitors the fourth cross-chain event, generating a fourth existence certification of the fourth cross-chain event, and taking the fourth existence certification as fourth data to be verified;
the fourth verification of the fourth to-be-verified data by the first application chain node comprises the following steps:
the first application chain node performs a fourth verification of the fourth presence attestation.
5. The method of claim 2, wherein the first cross-link relay generating the first to-be-verified data based on a cross-link processing request initiated on the first application chain for target data on the second application chain comprises:
the first application chain node responds to a cross-chain processing request initiated on a first application chain and aiming at target data on a second application chain to generate a first cross-chain event;
and the first cross-link relay generates first data to be verified when monitoring the first cross-link event.
6. The method of claim 2 or 5, wherein the first cross-link relay generating first to-be-verified data upon listening for the first cross-link event comprises:
when a first cross-link relay monitors the first cross-link event, generating a first existence certification of the first cross-link event, and using the first existence certification as first data to be verified;
the relay link node performs first verification on the first to-be-verified data, and the method includes:
the relay link node performs a first verification of the first presence credential.
7. A method of cross-chain processing, comprising:
the second cross-link relay generates third data to be verified based on receipt information of the processing result and sends the third data to be verified to the relay link node;
and the relay link node performs third verification on the third data to be verified so that the first cross-link relay generates fourth data to be verified when the third verification passes, sends the fourth data to be verified to a first application link node so that the first application link node performs fourth verification on the fourth data to be verified, and acquires the receipt information when the fourth verification passes.
8. The method of claim 7, further comprising:
the relay link node receives first to-be-verified data sent by a first cross-link relay, and performs first verification on the first to-be-verified data, wherein the first to-be-verified data is generated by the first cross-link relay based on a cross-link processing request initiated on a first application link and used for target data on a second application link;
when the first verification passes, the second cross-link relay generates second data to be verified, and the second data to be verified is sent to the second application chain node;
and the second application link node performs second verification on the second data to be verified, and processes the target data when the second verification passes to obtain a processing result.
9. The method of claim 7 or 8, wherein the second cross-link relay generating third data to be verified based on receipt information comprises:
the second application chain node generates a third chain crossing event based on the receipt information;
and the second cross-link relay generates third data to be verified when monitoring the third cross-link event.
10. The method of claim 9, wherein the second cross-chain relay generates third data to be verified upon listening for the third cross-chain event, comprising:
when the second cross-chain relay monitors the third cross-chain event, generating a third existence certification of the third cross-chain event, and taking the third existence certification as third data to be verified;
the third verification of the third to-be-verified data is performed by the relay link node, and the third verification comprises the following steps:
the relay link node performs a third verification of the third presence credential.
11. The method of claim 8, wherein the second cross-link relay generating second data to be verified when the first verification passes comprises:
when the first verification passes, the relay link node generates a second cross-link event;
and the second cross-chain relay generates second data to be verified when monitoring the second cross-chain event.
12. The method of claim 8 or 11, wherein the second cross-chain relay generating second to-be-verified data upon listening for the second cross-chain event comprises:
when the second cross-chain relay monitors the second cross-chain event, generating a second existence certification of the second cross-chain event, and taking the second existence certification as second data to be verified;
the second application link node performs second verification on the second data to be verified, including:
a second verification of the second presence credential is performed by a second application link point.
13. A cross-chain processing apparatus comprising:
the third data verification module is used for performing third verification on third data to be verified when the relay link node receives the third data to be verified sent by the second cross-link relay, wherein the third data to be verified is generated by the second cross-link relay based on receipt information of a processing result;
the fourth data to be verified module is used for generating fourth data to be verified by the first cross-link relay and sending the fourth data to be verified to the first application link node when the third verification is passed;
and the fourth data verification module is used for performing fourth verification on the fourth data to be verified by the first application link node and acquiring the receipt information when the fourth verification passes.
14. The apparatus of claim 13, further comprising:
the first to-be-verified data module is used for the first cross-link relay to generate first to-be-verified data based on a cross-link processing request initiated on a first application link and used for target data on a second application link, and the first to-be-verified data is sent to the relay link node;
the first data verification module is used for performing first verification on the first to-be-verified data by the relay link node point, so that second to-be-verified data is generated when the first verification is passed by a second cross-link relay, the second to-be-verified data is sent to a second application link node, so that second verification is performed on the second to-be-verified data by the second application link node point, and when the second verification is passed, the target data is processed to obtain a processing result.
15. A cross-chain processing apparatus comprising:
the third data to be verified module is used for the second cross-link relay to generate third data to be verified based on the receipt information of the processing result and send the third data to be verified to the relay link node;
and the third data verification module is used for performing third verification on the third to-be-verified data by the relay link node, so that the first cross-link relay generates fourth to-be-verified data when the third verification passes, sends the fourth to-be-verified data to the first application link node, so that the first application link node performs fourth verification on the fourth to-be-verified data, and acquires the receipt information when the fourth verification passes.
16. The apparatus of claim 15, further comprising:
a first data verification module, configured to receive, by the relay link node, first to-be-verified data sent by a first cross-link relay, and perform first verification on the first to-be-verified data, where the first to-be-verified data is generated by the first cross-link relay based on a cross-link processing request initiated on a first application link for target data on a second application link;
a second to-be-verified data module, configured to generate, by the second inter-link relay, second to-be-verified data when the first verification passes, and send the second to-be-verified data to the second application link node;
and the second data verification module is used for performing second verification on the second to-be-verified data by the second application link node, and processing the target data to obtain a processing result when the second verification passes.
17. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
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-4.
18. A non-transitory computer readable storage medium having stored thereon computer instructions for causing the computer to perform the method of any one of claims 1-12.
19. A computer program product comprising a computer program which, when executed by a processor, implements the method according to any one of claims 1-12.
CN202110732918.5A 2021-06-29 2021-06-29 Cross-chain processing method and device, electronic equipment and readable storage medium Pending CN113434883A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110732918.5A CN113434883A (en) 2021-06-29 2021-06-29 Cross-chain processing method and device, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110732918.5A CN113434883A (en) 2021-06-29 2021-06-29 Cross-chain processing method and device, electronic equipment and readable storage medium

Publications (1)

Publication Number Publication Date
CN113434883A true CN113434883A (en) 2021-09-24

Family

ID=77757960

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110732918.5A Pending CN113434883A (en) 2021-06-29 2021-06-29 Cross-chain processing method and device, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN113434883A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111159293A (en) * 2019-12-25 2020-05-15 杭州加密矩阵科技有限公司 Cross-link information verification method based on light node technology
WO2020098376A1 (en) * 2018-11-16 2020-05-22 阿里巴巴集团控股有限公司 Cross-blockchain data processing method and device, client terminal, and blockchain system
WO2020155832A1 (en) * 2019-01-31 2020-08-06 阿里巴巴集团控股有限公司 Cross-chain usage-rights system and method, device, eletronic apparatus and storage medium
CN112446785A (en) * 2020-11-06 2021-03-05 杭州趣链科技有限公司 Cross-chain transaction method, system, device, equipment and storage medium
CN112532393A (en) * 2020-11-20 2021-03-19 杭州趣链科技有限公司 Verification method of cross-link transaction, relay link node equipment and medium
CN112650764A (en) * 2020-12-30 2021-04-13 北京百度网讯科技有限公司 Cross-chain data processing method, device, equipment and storage medium
CN112804358A (en) * 2021-03-30 2021-05-14 支付宝(杭州)信息技术有限公司 Method and device for transferring data in cross-link mode based on relay equipment network
CN112822181A (en) * 2020-12-30 2021-05-18 杭州趣链科技有限公司 Verification method of cross-chain transaction, terminal device and readable storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020098376A1 (en) * 2018-11-16 2020-05-22 阿里巴巴集团控股有限公司 Cross-blockchain data processing method and device, client terminal, and blockchain system
WO2020155832A1 (en) * 2019-01-31 2020-08-06 阿里巴巴集团控股有限公司 Cross-chain usage-rights system and method, device, eletronic apparatus and storage medium
CN111159293A (en) * 2019-12-25 2020-05-15 杭州加密矩阵科技有限公司 Cross-link information verification method based on light node technology
CN112446785A (en) * 2020-11-06 2021-03-05 杭州趣链科技有限公司 Cross-chain transaction method, system, device, equipment and storage medium
CN112532393A (en) * 2020-11-20 2021-03-19 杭州趣链科技有限公司 Verification method of cross-link transaction, relay link node equipment and medium
CN112650764A (en) * 2020-12-30 2021-04-13 北京百度网讯科技有限公司 Cross-chain data processing method, device, equipment and storage medium
CN112822181A (en) * 2020-12-30 2021-05-18 杭州趣链科技有限公司 Verification method of cross-chain transaction, terminal device and readable storage medium
CN112804358A (en) * 2021-03-30 2021-05-14 支付宝(杭州)信息技术有限公司 Method and device for transferring data in cross-link mode based on relay equipment network

Similar Documents

Publication Publication Date Title
CN113434881A (en) Credibility verification method and device for cross-chain transaction and electronic equipment
CN112650764B (en) Cross-chain data processing method, device, equipment and storage medium
CN112783877B (en) Cross-chain data verification method, device, equipment and storage medium
CN111510333B (en) Alliance block chain system based on K3S platform, realization method and device
CN109873863B (en) Asynchronous calling method and device of service
CN114612103B (en) Method, device, system, medium and electronic equipment for cross-block chain transaction
CN110263580B (en) Data processing method and device based on block chain and block chain link points
CA3059719C (en) Payment processing method, device, medium and electronic device
CN112817995B (en) Data processing method and device, electronic equipment and storage medium
CN112738253A (en) Data processing method, device and equipment based on block chain and storage medium
CN112714158A (en) Transaction processing method, relay network, cross-link gateway, system, medium, and device
CN112764887A (en) Construction method, processing method, device, equipment and storage medium of transaction request
CN113377875B (en) Cross-chain data processing method and device, electronic equipment and readable storage medium
CN107038025B (en) SOA architecture-based system calling method and device
CN113010561B (en) Data acquisition method and device based on super account book and computer system
CN113360547A (en) Cross-chain query method and device, electronic equipment and readable storage medium
CN113420090A (en) Cross-chain processing method and device, electronic equipment and readable storage medium
CN113946816A (en) Cloud service-based authentication method and device, electronic equipment and storage medium
EP4365808A1 (en) Data verification method and apparatus
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
CN110968497A (en) Tree-shaped interceptor-based request verification method, device, medium and electronic equipment
CN114968822A (en) Interface testing method and device, computer equipment and storage medium
CN114143053A (en) Third-party service login method and device, terminal equipment and storage medium
CN114677138A (en) Data processing method, data processing equipment and computer 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