CN114493862A - Verification method, device, electronic equipment, system and storage medium for cross-chain transaction - Google Patents

Verification method, device, electronic equipment, system and storage medium for cross-chain transaction Download PDF

Info

Publication number
CN114493862A
CN114493862A CN202111642216.4A CN202111642216A CN114493862A CN 114493862 A CN114493862 A CN 114493862A CN 202111642216 A CN202111642216 A CN 202111642216A CN 114493862 A CN114493862 A CN 114493862A
Authority
CN
China
Prior art keywords
cross
chain
link
transaction information
information
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
CN202111642216.4A
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.)
Hangzhou Qulian Technology Co Ltd
Original Assignee
Hangzhou Qulian Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Qulian Technology Co Ltd filed Critical Hangzhou Qulian Technology Co Ltd
Priority to CN202111642216.4A priority Critical patent/CN114493862A/en
Publication of CN114493862A publication Critical patent/CN114493862A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/44Program or device authentication

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • Finance (AREA)
  • Databases & Information Systems (AREA)
  • Accounting & Taxation (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Software Systems (AREA)
  • Computer Hardware Design (AREA)
  • Data Mining & Analysis (AREA)
  • Computing Systems (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Technology Law (AREA)
  • General Business, Economics & Management (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application relates to a verification method, a verification device, electronic equipment and a storage medium for cross-chain transactions, which are applied to a destination block chain node, wherein the verification method for the cross-chain transactions comprises the following steps: acquiring cross-chain transaction information carrying signature information; the cross-chain transaction information comprises a source block chain identifier, a destination block chain identifier, a cross-chain transaction calling method and parameters of the cross-chain transaction calling method; verifying the cross-chain transaction information based on the signature information to obtain a verification result; and determining whether to execute the transaction corresponding to the cross-chain transaction information according to the verification result. In the method and the device, the target block chain node verifies the cross-chain transaction information based on the signature information carried in the acquired cross-chain transaction information so as to ensure that the cross-chain transaction information is not tampered and ensure the safety of cross-chain transaction.

Description

Verification method, device, electronic equipment, system and storage medium for cross-chain transaction
Technical Field
The present application relates to the field of blockchain technologies, and in particular, to a method, an apparatus, an electronic device, a system, and a storage medium for verifying a cross-chain transaction.
Background
In the current implementation of the cross-link transaction based on the relay link, after receiving the cross-link transaction sent by the relay link, the cross-link gateway verifies the existence and validity of the cross-link transaction in the relay link, and after the verification is passed, directly assembles the transaction of the corresponding application link (i.e. the target block link) according to the received cross-link call information of the cross-link transaction, and submits the transaction to the corresponding application link. In such an implementation, the security and validity of the cross-chain transaction is guaranteed by the cross-chain gateway, that is, the application chain relies on the cross-chain gateway to guarantee the security of the cross-chain transaction. If the cross-chain gateway is malicious, for example, the call information of the cross-chain transaction is tampered to construct any cross-chain transaction meeting the condition, and the application chain is called. At this time, transaction parameters, calling contracts, calling methods, and the like of the cross-chain transaction may be modified, and the security of the cross-chain transaction cannot be guaranteed.
Disclosure of Invention
The application provides a verification method, a verification device, electronic equipment, a verification system and a storage medium for cross-chain transactions, and aims to solve the problem that the safety of the cross-chain transactions cannot be guaranteed.
In a first aspect, the present application provides a method for verifying a cross-chain transaction, which is applied to a destination blockchain node, and the method includes:
acquiring cross-chain transaction information carrying signature information; the cross-chain transaction information comprises a source block chain identifier, a destination block chain identifier, a cross-chain transaction calling method and parameters of the cross-chain transaction calling method;
verifying the cross-chain transaction information based on the signature information to obtain a verification result;
and determining whether to execute the transaction corresponding to the cross-chain transaction information according to the verification result.
Optionally, the verifying the cross-chain transaction information based on the signature information to obtain a verification result includes:
and verifying the cross-chain transaction information based on the signature information by calling a cross-chain management contract to obtain a verification result.
Optionally, the signature information includes addresses of a preset number of relay nodes and signatures of the preset number of relay nodes, where the preset number is greater than a preset number threshold;
the verifying the cross-chain transaction information based on the signature information to obtain a verification result comprises:
the addresses of the relay nodes in the preset number all belong to a locally stored address set of the relay nodes, the number of the addresses of the relay nodes in the preset number exceeds a preset number threshold, the signature types of the relay nodes in the preset number are preset signature types, and the signatures of the relay nodes in the preset number are legal, so that the verification result is determined to be passed;
wherein the locally stored address set of the relay node comprises addresses of relay nodes passing verification in the same block.
Optionally, the method further comprises:
acquiring a relay node address updating request carrying the signature information;
and verifying the relay node address updating request, and updating the address in the locally stored relay node address set if the verification is passed.
In a second aspect, the present application provides a method for verifying a cross-chain transaction, which is applied to a cross-chain gateway, and the method for verifying the cross-chain transaction includes:
acquiring cross-chain transaction information; the cross-chain transaction information comprises a source block chain identifier, a destination block chain identifier, a cross-chain transaction calling method and parameters of the cross-chain transaction calling method;
verifying the cross-link transaction information, and after the cross-link transaction information passes the verification, sending a signature request to a relay node based on the cross-link transaction information to acquire signature information;
and sending the cross-chain transaction information carrying the signature information to a target block chain node corresponding to the cross-chain transaction information, so that the target block chain node verifies the cross-chain transaction information carrying the signature information.
Optionally, the method further comprises:
acquiring a relay node address updating request, wherein the updating request comprises the signature information;
and verifying the relay node address updating request, and if the verification is passed, sending the relay node address updating request to the destination block chain node so as to facilitate the destination block chain node to update the address in the locally stored relay node address set.
In a third aspect, the present application provides a verification method for a cross-link transaction, which is applied in a relay node, and the method includes:
acquiring cross-chain transaction information; the cross-chain transaction information comprises a source block chain identifier, a destination block chain identifier, a cross-chain transaction calling method and parameters of the cross-chain transaction calling method;
verifying the cross-link transaction information, and sending the cross-link transaction information to a cross-link gateway after the cross-link transaction information passes the verification;
and responding to the acquired signature request, and sending signature information to the cross-chain gateway so that the cross-chain gateway sends the cross-chain transaction information carrying the signature information to a destination block chain node corresponding to the cross-chain transaction information.
In a fourth aspect, an embodiment of the present application provides a verification system for a cross-link transaction, where the system includes a destination block link node, a cross-link gateway, and a relay node;
the relay node is used for verifying the acquired cross-link transaction information and sending the cross-link transaction information to the cross-link gateway after the cross-link transaction information passes the verification; the cross-chain transaction information comprises a source block chain identifier, a destination block chain identifier, a cross-chain transaction calling method and parameters of the cross-chain transaction calling method;
the cross-link gateway is used for verifying the acquired cross-link transaction information and sending a signature request to the relay node based on the cross-link transaction information after the verification is passed so as to acquire signature information;
the relay node is configured to send, in response to the obtained signature request, signature information to the inter-link gateway, so that the inter-link gateway sends, to a destination block link node corresponding to the inter-link transaction information, the inter-link transaction information carrying the signature information;
the cross-link gateway is configured to send the cross-link transaction information carrying the signature information to a destination block link node corresponding to the cross-link transaction information, so that the destination block link node verifies the cross-link transaction information carrying the signature information;
the destination block chain node is used for acquiring cross-chain transaction information carrying signature information; verifying the cross-chain transaction information based on the signature information to obtain a verification result; and determining whether to execute the transaction corresponding to the cross-chain transaction information according to the verification result.
In a fifth aspect, the present application provides a verification apparatus for a cross-chain transaction, the apparatus comprising:
the acquisition module is used for acquiring cross-chain transaction information carrying signature information; the cross-chain transaction information comprises a source block chain identifier, a destination block chain identifier, a cross-chain transaction calling method and parameters of the cross-chain transaction calling method;
the verification module is used for verifying the cross-chain transaction information based on the signature information to obtain a verification result;
and the execution module is used for determining whether to execute the transaction corresponding to the cross-chain transaction information according to the verification result.
In a sixth aspect, the present application provides a verification apparatus for a cross-chain transaction, the apparatus comprising:
the acquisition module is used for acquiring cross-chain transaction information; the cross-chain transaction information comprises a source block chain identifier, a destination block chain identifier, a cross-chain transaction calling method and parameters of the cross-chain transaction calling method;
the verification module is used for verifying the cross-chain transaction information to obtain a verification result;
the acquisition module is further configured to acquire signature information based on the cross-link transaction information if the verification result is that the verification is passed;
and the sending module is used for sending the cross-chain transaction information carrying the signature information to a target block chain node corresponding to the cross-chain transaction information so as to verify the cross-chain transaction information carrying the signature information by the target block chain node.
In a seventh aspect, the present application provides a verification apparatus for cross-chain transactions, the apparatus comprising:
the acquisition module is used for acquiring cross-chain transaction information; the cross-chain transaction information comprises a source block chain identifier, a destination block chain identifier, a cross-chain transaction calling method and parameters of the cross-chain transaction calling method;
the verification module is used for verifying the cross-chain transaction information to obtain a verification result;
the sending module is used for sending the cross-chain transaction information to a cross-chain gateway if the verification result is that the verification is passed;
the sending module is further configured to send, in response to the obtained signature request, signature information to the inter-link gateway, so that the inter-link gateway sends, to a destination block link node corresponding to the inter-link transaction information, the inter-link transaction information carrying the signature information.
In an eighth aspect, the present application provides an electronic device, including a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete communication with each other through the communication bus;
a memory for storing a computer program;
a processor, configured to implement the steps of the method for verifying a cross-chain transaction according to any one of the embodiments of the first aspect to the third aspect when executing the program stored in the memory.
In a ninth aspect, there is provided a computer readable storage medium having stored thereon a computer program which, when executed by a processor, carries out the steps of the method of verifying a cross-chain transaction as defined in any one of the embodiments of the first to third aspects.
Compared with the prior art, the technical scheme provided by the embodiment of the application has the following advantages:
according to the verification method for the cross-chain transaction provided by the embodiment of the application, the target block chain link point verifies the cross-chain transaction information based on the signature information carried in the acquired cross-chain transaction information so as to ensure that the cross-chain transaction information is not tampered and ensure the safety of the cross-chain transaction.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise.
Fig. 1 is a schematic flowchart of a verification method applied to a cross-link transaction in a target blockchain node according to an embodiment of the present disclosure;
fig. 2 is a schematic flowchart of a verification method applied to a cross-link transaction in a cross-link gateway according to an embodiment of the present disclosure;
fig. 3 is a schematic flowchart of a verification method applied to a cross-link transaction in a relay node according to an embodiment of the present disclosure;
FIG. 4 is a first schematic diagram of a verification system for cross-chain transactions according to an embodiment of the present disclosure;
fig. 5 is a second schematic diagram of a verification system for cross-chain transactions according to an embodiment of the present disclosure;
fig. 6 is a first schematic diagram of a verification apparatus for cross-chain transaction according to an embodiment of the present disclosure;
fig. 7 is a second schematic diagram of a verification apparatus for cross-chain transaction according to an embodiment of the present disclosure;
fig. 8 is a third schematic diagram of a verification apparatus for cross-chain transaction according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In order to solve the problem that the security of the cross-chain transaction cannot be guaranteed, an embodiment of the present application provides a verification method for the cross-chain transaction, which is applied to a destination block chain node, as shown in fig. 1, the verification method for the cross-chain transaction includes steps 101 to 103:
step 101: and acquiring cross-chain transaction information carrying the signature information.
The cross-chain transaction information (i.e., the cross-chain call information) includes a source blockchain identifier, a destination blockchain identifier, a cross-chain transaction call method, and a parameter of the cross-chain transaction call method.
Optionally, cross-chain transaction information carrying signature information and sent by the cross-chain gateway is obtained.
Step 102: and verifying the cross-chain transaction information based on the signature information to obtain a verification result.
In a possible implementation manner, a cross-chain management contract is called, and corresponding cross-chain transaction information, namely the cross-chain transaction information carrying the signature information, is verified based on the signature information, so that a verification result is obtained.
Typically, a cross-chain management contract is deployed on an application chain, i.e., a destination blockchain node. The aforementioned invoking of a cross-chain management contract, i.e., submitting a cross-chain transaction to a destination blockchain node. Signature verification of the cross-chain transaction is then conducted by the cross-chain management contract. When the signature information is multi-signature information, the signature verification is multi-signature verification.
In one possible implementation, the signature information is multi-signature information. That is, the signature information includes signatures of a preset number of relay nodes. In addition, the signature information further includes addresses of the preset number of relay nodes corresponding to the signatures of the preset number of relay nodes. The relay node is also the above-mentioned relay chain, or may be a relay, a relay device, or the like. In addition, the preset number is greater than or equal to a preset number threshold.
Illustratively, the signature information includes an address of the relay node 1, an address of the relay node 2, a signature of the relay node 1 on the cross-chain transaction 1, and a signature of the relay node 2 on the cross-chain transaction 2, and possibly, the signature information further includes a signature of the relay node 1 on the cross-chain transaction 3, and the like.
At this time, in the process of verifying the cross-link transaction information based on the signature information and obtaining a verification result, if the addresses of the relay nodes in the preset number in the signature information all belong to the address set of the relay nodes stored locally, the types of the signatures of the relay nodes in the preset number are preset signature types, and the signatures of the relay nodes in the preset number are legal, the verification result is determined to be passed. The locally stored address set of the relay node comprises addresses of relay nodes passing verification in the same block.
In a possible implementation manner, that the signatures of the preset number of relay nodes are legal means that the signatures of the preset number of relay nodes are consistent with the signatures of the locally stored relay nodes. If the signature of a certain relay node is inconsistent with the locally stored signature of the relay node, it indicates that the signature of the relay node is illegal, that is, the signatures of the preset number of relay nodes are illegal.
Of course, if there is an address that does not belong to the locally stored address set of the relay node in the addresses of the preset number of relay nodes in the signature information, it is determined that the verification result is failed. Or if the signature type of the relay node in the signature information is not the corresponding preset signature type, determining that the verification result is failed, or if the signatures of the preset number of relay nodes have illegal signatures, determining that the verification result is failed.
It should be noted that the preset number threshold and the preset signature type may be predetermined, or may be determined according to an actual operating condition. For example, the preset number threshold may be determined by a different consensus algorithm. In addition, the preset number may be predetermined or determined according to actual conditions.
In a possible implementation manner, after the cross-link management contract is deployed on the destination block link point, information such as an address set of the relay node locally stored by the destination block link point is initialized, and then, the information such as the address set of the relay node locally stored is updated according to the received address update request.
In the updating process, the target area link node acquires the relay node address updating request carrying the signature information, verifies the relay node address updating request, updates the address in the locally stored relay node address set if the verification is passed, and does not update if the verification fails. For a specific verification process, that is, a process of verifying the signature information, reference may be made to the above contents, which are not described herein again.
That is, the relay nodes are dynamically changed, and when the number of the relay nodes changes, the target blockchain node realizes the update of the relay nodes through a cross-chain management contract. The updating process can realize authority control by verifying the signature information, and ensure the safety when the address set of the relay node locally stored in the link point of the target block is updated.
Specifically, the acquired address update request further includes an updated address of the relay node, that is, an address of the relay node that needs to be added to the locally stored address set of the relay node, or an address of the relay node that passes the verification.
It should be noted that, when a cross-chain transaction needs to call a target block chain link point, multiple contracts may be involved, and the target block chain node calls each contract and needs to write corresponding verification logic for verification, which is tedious in operation.
Step 103: and determining whether to execute the transaction corresponding to the cross-chain transaction information according to the verification result.
Optionally, if the verification result is that the verification is passed, executing a transaction corresponding to the cross-link transaction information; and if the verification result is that the verification fails, the transaction corresponding to the cross-chain transaction information is not executed.
It should be noted that, through the above process, the target block link point verifies the cross-chain transaction information based on the signature information carried in the acquired cross-chain transaction information, so as to ensure that the cross-chain transaction information is not tampered, and ensure the security of the cross-chain transaction.
In order to solve the problem that the security of the cross-chain transaction cannot be guaranteed, an embodiment of the present application provides a verification method for the cross-chain transaction, which is applied to a cross-chain gateway, as shown in fig. 2, the verification method for the cross-chain transaction includes steps 201 to 203:
step 201: and acquiring cross-chain transaction information.
The cross-chain transaction information comprises a source blockchain identifier, a destination blockchain identifier, a cross-chain transaction calling method and parameters of the cross-chain transaction calling method.
Optionally, cross-link transaction information sent by the relay node is obtained.
Step 202: and verifying the cross-link transaction information, and after the cross-link transaction information passes the verification, sending a signature request to the relay node based on the cross-link transaction information to acquire the signature information.
For the description of the signature information, reference is made to the above. In addition, the relay node is the relay node that transmits the cross-link transaction information.
In a possible implementation manner, the inter-link gateway requests multiple tags from the relay node based on the acquired identification list of the inter-link transactions passing the check in the same block, the type of the inter-link transactions, and the like.
Through the step, the cross-link gateway performs validity verification on the cross-link transaction information received by the cross-link gateway, so that after the verification is passed, it is determined that the relay node does not perform malicious modification on the cross-link transaction information, that is, a transmission link between the relay node and the cross-link gateway is safe. Then, a signature request is sent to the relay node based on the cross-chain transaction information to obtain signature information. This validity verification process is described in the prior art and will not be described in detail herein.
Step 203: and sending the cross-chain transaction information with the signature information to a target block chain node corresponding to the cross-chain transaction information so as to verify the cross-chain transaction information with the signature information by the target block chain node.
In one possible implementation manner, a relay node address update request is obtained from the relay node, and the update request includes signature information. And then, verifying the relay node address updating request, and if the verification is passed, sending the relay node address updating request to the destination block chain node so that the destination block chain node updates the address in the locally stored address set of the relay node.
In another possible implementation manner, the relay node address update request is verified, after the verification is passed, signature information is obtained from the relay node, and the relay node address update request carrying the signature information is sent to the destination block chain node.
It should be noted that, through the above process, the target block link point verifies the cross-chain transaction information based on the signature information carried in the acquired cross-chain transaction information, so as to ensure that the cross-chain transaction information is not tampered, and ensure the security of the cross-chain transaction.
In order to solve the problem that the security of the cross-chain transaction cannot be guaranteed, an embodiment of the present application provides a method for verifying the cross-chain transaction, which is applied to a relay node, as shown in fig. 3, the method for verifying the cross-chain transaction includes steps 301 to 303:
step 301: and acquiring cross-chain transaction information.
For an introduction of cross-chain transaction information, see above.
Optionally, cross-link transaction information sent by the source block link node through a cross-link gateway is obtained, where the cross-link gateway is a cross-link gateway between the source block link node and the relay node.
Step 302: and verifying the cross-link transaction information, and sending the cross-link transaction information to a cross-link gateway after the cross-link transaction information passes the verification.
The verification is validity verification, and is used for determining whether a transmission link between the source chain and the relay node is safe or not, or whether the cross-chain transaction information is tampered by a cross-chain gateway between the source chain and the relay node or not. If the verification is passed, it indicates that the transmission link between the source chain and the relay node is secure, or that the cross-link transaction information is not tampered by the cross-link gateway between the source chain and the relay node. This validity verification process is described in the prior art and will not be described in detail herein.
Step 303: and responding to the acquired signature request, and sending the signature information to the cross-chain gateway so that the cross-chain gateway can send the cross-chain transaction information carrying the signature information to a destination block chain node corresponding to the cross-chain transaction information.
In a possible implementation manner, the relay node may further sign the acquired cross-link transaction information to obtain a signature in the signature information. The content contained in the cross-chain transaction information is the content required to be subjected to signature encryption.
Illustratively, the fields that the relay node needs to encrypt include From: source chain (or source block chain) Identification (ID), To: destination chain (or destination block chain) identification, Index: cross-chain transaction serial number (or cross-chain transaction identifier), Func: cross-chain calling method and Args: parameters of a cross-chain call method. Wherein the above fields can be serialized by using a solid. It should be noted that the fields of int type need to use big endian.
The information signed by the relay chain may also be determined according to actual requirements.
In one possible implementation, to ensure that multiple signatures can be verified via a cross-chain management contract, the signatures of cross-chain transactions and the manner in which the signatures are verified are predefined. That is, the information to be signed is predetermined. After the cross-chain management contract is deployed, the corresponding information in the cross-chain transaction is signed according to the predetermined signature rule, namely, which information is signed in which mode and the like.
In one possible implementation, the relay node address update request is sent to the destination blockchain node through the inter-chain gateway, so that the destination blockchain node updates the address in the locally stored address set of the relay node.
It should be noted that, through the above process, the target block link point verifies the cross-chain transaction information based on the signature information carried in the acquired cross-chain transaction information, so as to ensure that the cross-chain transaction information is not tampered, and ensure the security of the cross-chain transaction.
As shown in fig. 4, the present embodiment provides a verification system for a cross-chain transaction, which includes a destination blockchain node 401, a cross-chain gateway 402, and a relay node 403.
The relay node is used for carrying out validity verification on the acquired cross-chain transaction information and sending the cross-chain transaction information to the cross-chain gateway after the verification is passed; the cross-chain transaction information comprises a source blockchain identifier, a destination blockchain identifier, a cross-chain transaction calling method and parameters of the cross-chain transaction calling method. The inter-link transaction information acquired by the relay node is sent by a source block link node through an inter-link gateway, the inter-link gateway is an inter-link gateway between the source block link node and the relay node, and the inter-link gateway receiving the inter-link transaction information sent by the relay node is a gateway between the relay node and a destination block link node.
The validity verification of the relay node on the acquired cross-link transaction information may be to verify whether a signature of the cross-link transaction is correct or not, so as to determine whether the cross-link transaction information received by the relay node is cross-link transaction information thrown by a source link or not.
The cross-link gateway is used for verifying the acquired cross-link transaction information and sending a signature request to the relay node based on the cross-link transaction information after the verification is passed so as to acquire the signature information. The inter-link gateway is an inter-link gateway between the relay node and the destination block link node, and the inter-link transaction information acquired by the inter-link gateway is acquired from the relay node.
The verification of the acquired cross-link transaction information by the cross-link gateway may be to verify whether a signature of the cross-link transaction is correct or not, so as to determine whether the cross-link transaction information received by the cross-link gateway is cross-link transaction information thrown by the relay node or not.
The relay node is configured to send, in response to the obtained signature request, signature information to the inter-link gateway, so that the inter-link gateway sends, to a destination block link node corresponding to the inter-link transaction information, the inter-link transaction information carrying the signature information; the signature request acquired by the relay node is sent by the relay node and the destination block chain node.
The cross-link gateway is configured to send the cross-link transaction information carrying the signature information to a destination block link node corresponding to the cross-link transaction information, so that the destination block link node verifies the cross-link transaction information carrying the signature information;
the destination block link node is used for acquiring cross-link transaction information carrying signature information; verifying the cross-chain transaction information based on the signature information to obtain a verification result; and determining whether to execute the transaction corresponding to the cross-chain transaction information according to the verification result.
Exemplarily, as shown in fig. 5, the verification system for cross-link transaction includes an application chain a, an application chain B, a first cross-link gateway, a second cross-link gateway, and a relay node, where the application chain a sends cross-link transaction information to the first cross-link gateway, that is, monitors and submits cross-link transaction to the first cross-link gateway. And then, the first cross-link gateway sends the cross-link transaction information to the relay node, namely, submits the cross-link transaction to the relay node. The relay node includes at least one device, for example, the at least one device includes a node 1, a node 2, and a node 3, and the at least one device communicates with each other through an IBTP (universal inter-link transport protocol). Then, the relay node synchronously executes the cross-chain transaction, that is, the cross-chain transaction information is sent to the second cross-chain gateway, and after the second cross-chain gateway verifies the received cross-chain transaction information, the multi-signature information corresponding to the cross-chain transaction information, that is, the multi-signature information of the cross-chain transaction in the same block corresponding to the cross-chain transaction information is obtained from the corresponding relay node through, for example, a relay request. The relay node responds to the received signature request, and sends corresponding multi-signature information to the second cross-link gateway, so that the second cross-link gateway sends the cross-link transaction information carrying the signature information to the application chain B, namely the second cross-link gateway submits the cross-link transaction carrying the multi-signature information to the application chain B. And finally, the application chain B receives the cross-chain transaction information which is sent by the second cross-chain gateway and carries the signature information, verifies the cross-chain transaction information based on the signature information, and executes corresponding cross-chain transactions after the verification is passed, such as payment and updating of the address set of the relay node which is locally stored.
As shown in fig. 6, an embodiment of the present application provides a verification apparatus for a cross-chain transaction, which includes an obtaining module 601, a verification module 602, and an executing module 603.
The acquiring module 601 is configured to acquire cross-link transaction information carrying signature information; the cross-chain transaction information comprises a source block chain identifier, a destination block chain identifier, a cross-chain transaction calling method and parameters of the cross-chain transaction calling method;
the verification module 602 is configured to verify the cross-chain transaction information based on the signature information to obtain a verification result;
the executing module 603 is configured to determine whether to execute the transaction corresponding to the cross-chain transaction information according to the verification result.
As shown in fig. 7, an embodiment of the present application provides a verification apparatus for a cross-chain transaction, which includes an obtaining module 701, a verification module 702, and a sending module 703.
An obtaining module 701, configured to obtain cross-chain transaction information; the cross-chain transaction information comprises a source block chain identifier, a destination block chain identifier, a cross-chain transaction calling method and parameters of the cross-chain transaction calling method;
a verification module 702, configured to verify the cross-link transaction information to obtain a verification result;
the obtaining module 701 is further configured to obtain signature information based on the cross-link transaction information if the verification result is that the verification passes;
a sending module 703 is configured to send the cross-chain transaction information carrying the signature information to a destination block chain node corresponding to the cross-chain transaction information, so that the destination block chain node verifies the cross-chain transaction information carrying the signature information.
As shown in fig. 8, an embodiment of the present application provides an authentication apparatus for a cross-chain transaction, which includes an obtaining module 801, an authentication module 802, and a sending module 803.
The acquiring module 801 is used for acquiring cross-chain transaction information; the cross-chain transaction information comprises a source block chain identifier, a destination block chain identifier, a cross-chain transaction calling method and parameters of the cross-chain transaction calling method;
the verification module 802 is configured to verify the cross-link transaction information to obtain a verification result;
a sending module 803, configured to send the cross-chain transaction information to a cross-chain gateway if the verification result is that the verification passes;
the sending module 803 is further configured to send, in response to the obtained signature request, signature information to the inter-link gateway, so that the inter-link gateway sends, to a destination block link node corresponding to the inter-link transaction information, the inter-link transaction information carrying the signature information.
As shown in fig. 9, an embodiment of the present application provides an electronic device, which includes a processor 901, a communication interface 902, a memory 903, and a communication bus 904, where the processor 901, the communication interface 902, and the memory 903 complete mutual communication through the communication bus 904,
a memory 903 for storing computer programs;
in an embodiment of the present application, the processor 901 is configured to implement the steps of the verification method for cross-chain transaction provided in any one of the foregoing method embodiments when executing the program stored in the memory 903.
Embodiments of the present application further provide a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the cross-chain transaction method provided in any of the foregoing method embodiments.
It is noted that, in this document, relational terms such as "first" and "second," and the like, are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The foregoing are merely exemplary embodiments of the present invention, which enable those skilled in the art to understand or practice the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A verification method for cross-chain transaction is applied to a destination block chain node, and the method comprises the following steps:
acquiring cross-chain transaction information carrying signature information; the cross-chain transaction information comprises a source block chain identifier, a destination block chain identifier, a cross-chain transaction calling method and parameters of the cross-chain transaction calling method;
verifying the cross-chain transaction information based on the signature information to obtain a verification result;
and determining whether to execute the transaction corresponding to the cross-chain transaction information according to the verification result.
2. The method for verifying the cross-chain transaction according to claim 1, wherein the verifying the cross-chain transaction information based on the signature information to obtain a verification result comprises:
and verifying the cross-chain transaction information based on the signature information by calling a cross-chain management contract to obtain a verification result.
3. The method of claim 1,
the signature information comprises addresses of a preset number of relay nodes and signatures of the preset number of relay nodes, and the preset number is larger than a preset number threshold;
the verifying the cross-chain transaction information based on the signature information to obtain a verification result comprises:
if the addresses of the relay nodes in the preset number all belong to the address set of the relay nodes stored locally, the types of the signatures of the relay nodes in the preset number are preset signature types, and the signatures of the relay nodes in the preset number are legal, the verification result is determined to be passed;
wherein the locally stored address set of the relay node comprises addresses of relay nodes passing verification in the same block.
4. A method of validating a cross-chain transaction according to any one of claims 1-3, the method further comprising:
acquiring a relay node address updating request carrying the signature information;
and verifying the relay node address updating request, and updating the address in the locally stored relay node address set if the verification is passed.
5. A verification method for cross-chain transaction is applied to a cross-chain gateway, and comprises the following steps:
acquiring cross-chain transaction information; the cross-chain transaction information comprises a source block chain identifier, a destination block chain identifier, a cross-chain transaction calling method and parameters of the cross-chain transaction calling method;
verifying the cross-link transaction information, and after the cross-link transaction information passes the verification, sending a signature request to a relay node based on the cross-link transaction information to acquire signature information;
and sending the cross-chain transaction information carrying the signature information to a target block chain node corresponding to the cross-chain transaction information, so that the target block chain node verifies the cross-chain transaction information carrying the signature information.
6. The method of validating a cross-chain transaction as claimed in claim 5, further comprising:
acquiring a relay node address updating request, wherein the updating request comprises the signature information;
and verifying the relay node address updating request, and if the verification is passed, sending the relay node address updating request to the destination block chain node so as to facilitate the destination block chain node to update the address in the locally stored relay node address set.
7. A verification method for cross-link transaction is applied to a relay node, and the method comprises the following steps:
acquiring cross-chain transaction information; the cross-chain transaction information comprises a source block chain identifier, a destination block chain identifier, a cross-chain transaction calling method and parameters of the cross-chain transaction calling method;
verifying the cross-link transaction information, and sending the cross-link transaction information to a cross-link gateway after the cross-link transaction information passes the verification;
and responding to the acquired signature request, and sending signature information to the cross-chain gateway so that the cross-chain gateway sends the cross-chain transaction information carrying the signature information to a destination block chain node corresponding to the cross-chain transaction information.
8. A verification system of cross-chain transaction is characterized in that the system comprises a destination block chain node, a cross-chain gateway and a relay node;
the relay node is used for verifying the acquired cross-link transaction information and sending the cross-link transaction information to the cross-link gateway after the cross-link transaction information passes the verification; the cross-chain transaction information comprises a source block chain identifier, a destination block chain identifier, a cross-chain transaction calling method and parameters of the cross-chain transaction calling method;
the cross-link gateway is used for verifying the acquired cross-link transaction information and sending a signature request to the relay node based on the cross-link transaction information after the verification is passed so as to acquire signature information;
the relay node is configured to send, in response to the obtained signature request, signature information to the inter-link gateway, so that the inter-link gateway sends, to a destination block link node corresponding to the inter-link transaction information, the inter-link transaction information carrying the signature information;
the cross-link gateway is configured to send the cross-link transaction information carrying the signature information to a destination block link node corresponding to the cross-link transaction information, so that the destination block link node verifies the cross-link transaction information carrying the signature information;
the destination block chain node is used for acquiring cross-chain transaction information carrying signature information; verifying the cross-chain transaction information based on the signature information to obtain a verification result; and determining whether to execute the transaction corresponding to the cross-chain transaction information according to the verification result.
9. The electronic equipment is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing the communication between the processor and the memory through the communication bus;
a memory for storing a computer program;
a processor for implementing the steps of the method of verifying a cross-chain transaction of any one of claims 1 to 7 when executing a program stored on the memory.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of verifying a cross-chain transaction according to any one of claims 1 to 7.
CN202111642216.4A 2021-12-29 2021-12-29 Verification method, device, electronic equipment, system and storage medium for cross-chain transaction Pending CN114493862A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111642216.4A CN114493862A (en) 2021-12-29 2021-12-29 Verification method, device, electronic equipment, system and storage medium for cross-chain transaction

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111642216.4A CN114493862A (en) 2021-12-29 2021-12-29 Verification method, device, electronic equipment, system and storage medium for cross-chain transaction

Publications (1)

Publication Number Publication Date
CN114493862A true CN114493862A (en) 2022-05-13

Family

ID=81497392

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111642216.4A Pending CN114493862A (en) 2021-12-29 2021-12-29 Verification method, device, electronic equipment, system and storage medium for cross-chain transaction

Country Status (1)

Country Link
CN (1) CN114493862A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115049402A (en) * 2022-08-17 2022-09-13 国网区块链科技(北京)有限公司 Transaction risk parameter calculation method, block chain verification node and storage medium
CN115801778A (en) * 2022-11-23 2023-03-14 南方电网数字电网研究院有限公司 Cross-chain electric power transaction method and cross-chain electric power transaction system
CN116132052A (en) * 2022-11-18 2023-05-16 杭州趣链科技有限公司 Cross-chain transaction method, device, electronic equipment and storage medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110266655A (en) * 2019-05-30 2019-09-20 中国工商银行股份有限公司 A kind of across chain interconnected method, equipment and system based on block chain
CN110751475A (en) * 2019-10-24 2020-02-04 杭州趣链科技有限公司 Cross-chain method, system, equipment and storage medium for blockchain transaction
CN110766408A (en) * 2019-10-24 2020-02-07 杭州趣链科技有限公司 Cross-chain transaction verification method, engine, equipment and storage medium for heterogeneous block chain
CN112200682A (en) * 2020-12-04 2021-01-08 腾讯科技(深圳)有限公司 Block chain-based cross-chain transaction method and device and computer-readable 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
CN112822181A (en) * 2020-12-30 2021-05-18 杭州趣链科技有限公司 Verification method of cross-chain transaction, terminal device and readable storage medium
US20210218578A1 (en) * 2018-09-30 2021-07-15 Huawei Technologies Co., Ltd. Data Processing Method and Data Processing Device
CN113191900A (en) * 2021-05-11 2021-07-30 预言机(重庆)科技有限公司 Trans-block chain equity transfer method and system based on relay chain
CN113850599A (en) * 2021-12-01 2021-12-28 南京金宁汇科技有限公司 Cross-link transaction method and system applied to alliance link

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20210218578A1 (en) * 2018-09-30 2021-07-15 Huawei Technologies Co., Ltd. Data Processing Method and Data Processing Device
CN110266655A (en) * 2019-05-30 2019-09-20 中国工商银行股份有限公司 A kind of across chain interconnected method, equipment and system based on block chain
CN110751475A (en) * 2019-10-24 2020-02-04 杭州趣链科技有限公司 Cross-chain method, system, equipment and storage medium for blockchain transaction
CN110766408A (en) * 2019-10-24 2020-02-07 杭州趣链科技有限公司 Cross-chain transaction verification method, engine, equipment and storage medium for heterogeneous block chain
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
CN112200682A (en) * 2020-12-04 2021-01-08 腾讯科技(深圳)有限公司 Block chain-based cross-chain transaction method and device and computer-readable storage medium
CN112822181A (en) * 2020-12-30 2021-05-18 杭州趣链科技有限公司 Verification method of cross-chain transaction, terminal device and readable storage medium
CN113191900A (en) * 2021-05-11 2021-07-30 预言机(重庆)科技有限公司 Trans-block chain equity transfer method and system based on relay chain
CN113850599A (en) * 2021-12-01 2021-12-28 南京金宁汇科技有限公司 Cross-link transaction method and system applied to alliance link

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115049402A (en) * 2022-08-17 2022-09-13 国网区块链科技(北京)有限公司 Transaction risk parameter calculation method, block chain verification node and storage medium
CN115049402B (en) * 2022-08-17 2022-10-25 国网区块链科技(北京)有限公司 Transaction risk parameter calculation method, block chain verification node and storage medium
CN116132052A (en) * 2022-11-18 2023-05-16 杭州趣链科技有限公司 Cross-chain transaction method, device, electronic equipment and storage medium
WO2024103854A1 (en) * 2022-11-18 2024-05-23 杭州趣链科技有限公司 Cross-chain transaction method and system, electronic device, and storage medium
CN115801778A (en) * 2022-11-23 2023-03-14 南方电网数字电网研究院有限公司 Cross-chain electric power transaction method and cross-chain electric power transaction system

Similar Documents

Publication Publication Date Title
CN112446785B (en) Cross-chain transaction method, system, device, equipment and storage medium
CN109040029B (en) Method and apparatus for executing transactions in a blockchain
CN108200050B (en) Single sign-on server, method and computer readable storage medium
CN114493862A (en) Verification method, device, electronic equipment, system and storage medium for cross-chain transaction
CN108197913B (en) Payment method, system and computer readable storage medium based on block chain
US8417964B2 (en) Software module management device and program
CN107797822A (en) Equipment and associated method for authenticated firmware
CN112165382B (en) Software authorization method and device, authorization server side and terminal equipment
CN111163182A (en) Block chain-based device registration method and apparatus, electronic device, and storage medium
CN103677892A (en) Authorization scheme to enable special privilege mode in secure electronic control unit
US11373762B2 (en) Information communication device, authentication program for information communication device, and authentication method
CN103679005A (en) Method to enable development mode of a secure electronic control unit
CN112668913B (en) Network construction method, device, equipment and storage medium based on federal learning
CN110276193B (en) Risk feature output method, application operation control method, system and device
CN114338666A (en) Method, device, equipment and medium for verifying Fabric block chain cross-chain transaction
JP7052325B2 (en) Devices, secure elements, programs, information processing systems and information processing methods
CN107979579B (en) Security authentication method and security authentication equipment
CN116707758A (en) Authentication method, equipment and server of trusted computing equipment
CN110061988B (en) Authentication method of embedded equipment, service server and storage medium
CN109699030B (en) Unmanned aerial vehicle authentication method, device, equipment and computer readable storage medium
CN114710362B (en) Identity authentication method and device based on block chain and electronic equipment
CN113326540B (en) Micro-service calling authority control method, device, server, system and medium
CN108234399B (en) Interface communication method and terminal
KR20160109241A (en) Method and apparatus for secure accecss to resources
CN114817903A (en) Vaccination verification system, method and contract platform based on intelligent contract

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