CN112070499B - Asset and data cross-chain method and system based on blockchain - Google Patents

Asset and data cross-chain method and system based on blockchain Download PDF

Info

Publication number
CN112070499B
CN112070499B CN202010960604.6A CN202010960604A CN112070499B CN 112070499 B CN112070499 B CN 112070499B CN 202010960604 A CN202010960604 A CN 202010960604A CN 112070499 B CN112070499 B CN 112070499B
Authority
CN
China
Prior art keywords
transaction
blockchain
cross
node
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.)
Active
Application number
CN202010960604.6A
Other languages
Chinese (zh)
Other versions
CN112070499A (en
Inventor
李宝珠
朱浩冰
吕伟康
周英
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wealedger Network Technologies Co ltd
Tianjin Polytechnic University
Tianjin University of Technology
Original Assignee
Wealedger Network Technologies Co ltd
Tianjin Polytechnic University
Tianjin University of Technology
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 Wealedger Network Technologies Co ltd, Tianjin Polytechnic University, Tianjin University of Technology filed Critical Wealedger Network Technologies Co ltd
Priority to CN202010960604.6A priority Critical patent/CN112070499B/en
Publication of CN112070499A publication Critical patent/CN112070499A/en
Application granted granted Critical
Publication of CN112070499B publication Critical patent/CN112070499B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3825Use of electronic signatures
    • 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

  • Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • General Physics & Mathematics (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Technology Law (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The invention discloses a block chain-based asset and data cross-chain method and system. The asset cross-chain method based on the block chain comprises the following steps: the relay chain acquires asset transaction information; a plurality of nodes in the relay chain add asset transaction information according to a cross-link contract, and the node added with successful asset transaction information at first is determined as a first execution trigger node; the first execution triggering node creates an address for performing asset transaction to the second blockchain; performing asset transaction signature operation by other nodes except the first execution triggering node in the relay chain according to the address for performing asset transaction to the second blockchain to obtain a first multi-signature address; the first execution triggering node carries out transaction broadcasting to the second blockchain according to the first multi-signature address and the asset transaction information, and meanwhile receives an instruction for the second blockchain to finish transaction confirmation, so that asset transfer can be safely and conveniently realized. By adopting the method and the system provided by the invention, the asset transfer, the data transfer and the inter-chain access can be safely and conveniently realized.

Description

Asset and data cross-chain method and system based on blockchain
Technical Field
The invention relates to the technical field of blockchains, in particular to a blockchain-based asset and data cross-chain method and system.
Background
The blockchain is a general digital ledger, and the ledger flow is communicated in a decentralised network and plays a core role, so that the blockchain is an innovative application mode of a new generation technology in the Internet age. Among the problems faced by blockchains, interoperability between blockchains greatly limits the application space of blockchains. The cross-chain technology is a key for realizing value Internet, and is a good medicine for saving blockchains from scattered islands, and is a bridge for expanding and connecting the blockchains outwards.
At present, the existing cross-chain technology simultaneously realizes asset cross-chain, data cross-chain and inter-chain mutual calling is extremely difficult. For example: the A chain asset cannot be transferred to the B chain when the asset spans the chain; when data crosses a chain, the data of the A chain cannot be transferred to the B chain; the B-chain related data cannot be accessed from the A-chain when called between chains. Therefore, how to implement asset and data cross-chaining of blockchains is a challenge.
Disclosure of Invention
The invention aims to provide a block chain-based asset and data cross-chain method and system, which can safely and conveniently realize asset transfer, data transfer and mutual access among chains.
In order to achieve the above object, the present invention provides the following solutions:
a blockchain-based asset cross-chain method, comprising:
the relay chain acquires asset transaction information; the asset transaction information is asset transaction information to be transferred from a first blockchain to a second blockchain;
a plurality of nodes in the relay chain add the asset transaction information according to a cross-link contract, and the node which is added with the asset transaction information successfully at first is determined to be a first execution trigger node;
the first execution triggering node creates an address for performing asset transaction to the second blockchain;
performing asset transaction signature operation by other nodes except the first execution triggering node in the relay chain according to the address for performing asset transaction to the second blockchain to obtain a first multi-signature address;
and the first execution triggering node performs transaction broadcasting to the second blockchain according to the first multi-signature address and the asset transaction information, and simultaneously receives an instruction for the second blockchain to finish transaction confirmation.
Optionally, the plurality of nodes in the relay chain add the asset transaction information according to a cross-link contract, and determine a node which is added with the asset transaction information successfully first as a first execution trigger node, and further include:
and the nodes of the relay chain sequentially perform filtering processing and judging operation whether the asset transaction information accords with the cross-chain rule or not to obtain filtered asset transaction information which accords with the cross-chain rule.
The invention also provides a block chain-based asset cross-chain system, comprising:
the asset transaction information acquisition module is used for acquiring asset transaction information by the relay chain; the asset transaction information is asset transaction information to be transferred from a first blockchain to a second blockchain;
the first execution trigger node determining module is used for enabling a plurality of nodes in the relay chain to add the asset transaction information according to a cross-link contract, and determining the node which is added with the asset transaction information successfully at first as a first execution trigger node;
a first address creation module configured to implement the first execution triggering node to create an address for performing an asset transaction to the second blockchain;
the first signature module is used for realizing that other nodes except the first execution triggering node in the relay chain conduct asset transaction signature operation according to the address for conducting asset transaction to the second block chain, and a first multi-signature address is obtained;
and the first transaction broadcasting module is used for realizing that the first execution triggering node broadcasts transactions to the second blockchain according to the first multi-signature address and the asset transaction information and simultaneously receives an instruction of the second blockchain for completing transaction confirmation.
Optionally, the method further comprises:
the first preprocessing module is used for realizing that the nodes of the relay chain sequentially filter the asset transaction information and judge whether the asset transaction information accords with the cross-chain rule or not to obtain filtered asset transaction information which accords with the cross-chain rule.
The invention also provides a data cross-chain method based on the block chain, which comprises the following steps:
the relay chain acquires data transaction information; the data transaction information is data transaction information to be transferred from a first blockchain to a second blockchain;
a plurality of nodes in the relay chain add the data transaction information according to a cross-link contract, and the node which is added with the data transaction information successfully at first is determined to be a second execution trigger node;
the second execution triggering node creates an address for performing data transaction to the second blockchain;
performing data transaction signature operation by other nodes except the second execution triggering node in the relay chain according to the address for performing data transaction to the second blockchain to obtain a second multi-signature address;
and the second execution triggering node performs transaction broadcasting to the second blockchain according to the second multi-signature address and the data transaction information, and simultaneously receives an instruction for the second blockchain to finish transaction confirmation.
Optionally, the plurality of nodes in the relay chain add the data transaction information according to a cross-link contract, and determine the node which is added with the data transaction information successfully first as a second execution trigger node, and further include:
and the nodes of the relay chain sequentially perform filtering processing and judging operation whether the data transaction information accords with the cross-chain rule or not to obtain filtered data transaction information which accords with the cross-chain rule.
The invention also provides a data cross-chain system based on the block chain, which comprises:
the data transaction information acquisition module is used for acquiring data transaction information by the relay chain; the data transaction information is data transaction information to be transferred from a first blockchain to a second blockchain;
the second execution trigger node determining module is used for enabling a plurality of nodes in the relay chain to add the data transaction information according to a cross-link contract, and determining the node which is added with the data transaction information successfully at first as a second execution trigger node;
the second address creation module is used for realizing that the second execution triggering node creates an address for carrying out data transaction on the second blockchain;
the second signature module is used for realizing that other nodes except the second execution triggering node in the relay chain conduct data transaction signature operation according to the address for conducting data transaction to the second block chain, and a second multi-signature address is obtained;
and the second transaction broadcasting module is used for realizing that the second execution triggering node broadcasts transactions to the second blockchain according to the second multi-signature address and the data transaction information and simultaneously receives an instruction of the second blockchain for completing transaction confirmation.
Optionally, the method further comprises:
and the second preprocessing module is used for realizing that the nodes of the relay chain sequentially filter the data transaction information and judge whether the data transaction information accords with the cross-chain rule or not to obtain the filtered data transaction information which accords with the cross-chain rule.
The invention also provides a data access method based on the block chain, which comprises the following steps:
the relay chain acquires data access information; the data access information is data information of a first blockchain to be accessed by a second blockchain;
a plurality of nodes in the relay chain add the data access information according to a cross-link contract, and the node which is added with the data access information successfully at first is determined to be a third execution trigger node;
the third execution triggering node obtains specified transaction information corresponding to the data access information from the first blockchain, and creates second data access information according to the specified transaction information;
performing data transaction signature operation by other nodes except the third execution triggering node in the relay chain according to the second data access information to obtain a third multi-signature address;
and the third execution triggering node performs transaction broadcasting to the second blockchain according to the third multi-signature address and the data access information, and simultaneously receives an instruction for the second blockchain to finish transaction confirmation.
The invention also provides a data access system based on the block chain, which comprises:
the data access information acquisition module is used for acquiring data access information by the relay chain; the data access information is data information of a first blockchain to be accessed by a second blockchain;
the third execution trigger node determining module is used for enabling a plurality of nodes in the relay chain to add the data access information according to a cross-link contract, and determining the node which is added with the data access information successfully at first as a third execution trigger node;
the second data access information creation module is used for realizing that the third execution triggering node obtains specified transaction information corresponding to the data access information from the first blockchain and creates second data access information according to the specified transaction information;
the third address creation module is used for realizing that other nodes except the third execution triggering node in the relay chain perform data transaction signature operation according to the second data access information to obtain a third multi-signature address;
and the third transaction broadcasting module is used for realizing that the third execution triggering node broadcasts the transaction to the second blockchain according to the third multi-signature address and the data access information and simultaneously receives an instruction of the second blockchain for completing transaction confirmation.
Compared with the prior art, the invention has the beneficial effects that:
the invention provides an asset cross-chain method and system based on a block chain, wherein a relay chain acquires asset transaction information; a plurality of nodes in the relay chain add asset transaction information according to a cross-link contract, and the node added with successful asset transaction information at first is determined as a first execution trigger node; the first execution triggering node creates an address for performing asset transaction to the second blockchain; performing asset transaction signature operation by other nodes except the first execution triggering node in the relay chain according to the address for performing asset transaction to the second blockchain to obtain a first multi-signature address; the first execution triggering node carries out transaction broadcasting to the second blockchain according to the first multi-signature address and the asset transaction information, and meanwhile receives an instruction for the second blockchain to finish transaction confirmation, so that asset transfer can be safely and conveniently realized.
The invention provides a data cross-link method and a system based on a block chain, wherein a relay chain acquires data transaction information; a plurality of nodes in the relay chain add data transaction information according to the cross-link contract, and the node added with successful data transaction information at first is determined as a second execution trigger node; the second execution triggering node creates an address for performing data transaction to the second blockchain; the other nodes except the second execution triggering node in the relay chain conduct data transaction signature operation according to the address for conducting data transaction to the second blockchain, and a second multi-signature address is obtained; the second execution triggering node broadcasts the transaction to the second blockchain according to the second multi-signature address and the data transaction information, and meanwhile receives an instruction for the second blockchain to finish transaction confirmation, so that data transfer can be safely and conveniently realized.
The invention provides a data access method and a system based on a block chain, wherein a relay chain acquires data access information; a plurality of nodes in the relay chain add data access information according to a cross-link contract, and the node added with successful data access information at first is determined as a third execution trigger node; the third execution triggering node acquires specified transaction information corresponding to the data access information from the first blockchain, and creates second data access information according to the specified transaction information; performing data transaction signature operation by other nodes except the third execution trigger node in the relay chain according to the second data access information to obtain a third multi-signature address; and the third execution triggering node performs transaction broadcasting to the second blockchain according to the third multi-signature address and the data access information, and simultaneously receives an instruction for the second blockchain to finish transaction confirmation, so that the mutual access among the blockchains can be safely and conveniently realized.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions of the prior art, the drawings that are needed in the embodiments will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic diagram of a networking architecture of a relay link cross-link scheme in an embodiment of the present invention;
FIG. 2 is a flowchart of a blockchain-based asset cross-chain method in accordance with an embodiment of the present invention;
FIG. 3 is a block chain based asset cross-chain system architecture diagram in accordance with one embodiment of the present invention;
FIG. 4 is a flowchart of a block chain based data cross-chain method in a second embodiment of the present invention;
FIG. 5 is a block chain based data cross-chain system architecture diagram in accordance with a second embodiment of the present invention;
FIG. 6 is a flowchart of a block chain based data access method according to a third embodiment of the present invention;
FIG. 7 is a block chain based data access system architecture diagram in accordance with a third embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The invention aims to provide a block chain-based asset and data cross-chain method and system, which can safely and conveniently realize asset transfer, data transfer and mutual access among chains.
In order that the above-recited objects, features and advantages of the present invention will become more readily apparent, a more particular description of the invention will be rendered by reference to the appended drawings and appended detailed description.
Example 1
FIG. 2 is a flowchart of a blockchain-based asset cross-chain method in an embodiment of the invention, as shown in FIG. 2, comprising:
step 101: the relay chain acquires asset transaction information; the asset transaction information is asset transaction information to be transferred from the first blockchain to the second blockchain.
Step 102: and sequentially filtering the asset transaction information and judging whether the asset transaction information accords with the cross-link rule by the nodes of the relay chain to obtain filtered asset transaction information which accords with the cross-link rule.
Step 103: and adding asset transaction information by a plurality of nodes in the relay chain according to the cross-link contract, and determining the node added with successful asset transaction information first as a first execution trigger node.
Step 104: the first execution triggering node creates an address for asset transactions to the second blockchain.
Step 105: and performing asset transaction signature operation by other nodes except the first execution triggering node in the relay chain according to the address for performing asset transaction to the second blockchain to obtain a first multi-signature address.
Step 106: the first execution triggering node performs transaction broadcasting to the second blockchain according to the first multi-signature address and the asset transaction information, and meanwhile receives an instruction of the second blockchain to finish transaction confirmation.
FIG. 3 is a block chain based asset cross-chain system architecture diagram in an embodiment of the invention. As shown in fig. 3, a blockchain-based asset cross-chain system includes:
an asset transaction information acquisition module 201, configured to acquire asset transaction information by using a relay chain; the asset transaction information is asset transaction information to be transferred from the first blockchain to the second blockchain.
The first preprocessing module 202 is configured to sequentially perform filtering processing and judging whether the asset transaction information accords with the cross-link rule by using a node of the relay link, so as to obtain filtered asset transaction information that accords with the cross-link rule.
The first execution trigger node determining module 203 is configured to implement that a plurality of nodes in the relay chain add asset transaction information according to a cross-link contract, and determine a node to which successful asset transaction information is added first as a first execution trigger node.
The first address creating module 204 is configured to implement that the first execution triggering node creates an address for performing an asset transaction to the second blockchain.
The first signature module 205 is configured to implement an asset transaction signature operation by nodes in the relay chain except for the first execution trigger node according to an address for performing an asset transaction to the second blockchain, so as to obtain a first multi-signature address.
The first transaction broadcasting module 206 is configured to implement a transaction broadcast by the first execution triggering node to the second blockchain according to the first multi-signature address and the asset transaction information, and receive an instruction that the second blockchain completes the transaction confirmation.
Specifically, as shown in fig. 1:
someone transfers 30 token-X to mAddrA multi-signature address in the A chain for the relay chain, and the transaction Ta specifies a transfer to the B chain YYYYYYYYYYY address.
Any node of the relay link participating in generating the multi-signature address mAddrA receives the transaction Ta (the transaction is confirmed by the network), submits a cross-link rule engine to filter, accords with the cross-link rule, drives the relay link point to call a cross-link service contract (source link+source transaction id+source address, destination link, destination address and the like), and participates in cross-link trigger node competition.
Multiple relay chain nodes compete to execute cross-chain transactions, and by using the relay chain cross-chain service contract to invoke the execution serial feature, it can be ensured that only one node can become a cross-chain (the node that first adds the cross-chain transaction to the cross-chain contract state) transaction execution trigger node (exeNode).
The node exeNode confirmed as the transaction execution trigger node firstly creates a transaction Tb that mAddrB address in a B chain transfers 30 token-X to B chain YYYYYYYYYYY address (in actual operation, the token-X of the B chain can be generated by adopting a pre-generation/temporary generation mode), and sequentially invokes signature contracts of other 4 nodes to complete multi-signature action of the transaction Tb.
After the transaction triggering node exeNode obtains the signed multi-signature address transfer transaction Tb, broadcasting the transaction to the B chain.
After the transaction Tb is confirmed by the B chain, the transaction triggering node exeNode invokes the cross-chain service contract, and writes the transaction information (chain information, transaction id, block and the like) in the B chain into the cross-chain service contract to complete the whole cross-chain service.
Example 2
FIG. 4 is a flowchart of a data cross-link method based on a blockchain in an embodiment of the present invention, as shown in FIG. 4, a data cross-link method based on a blockchain includes:
step 301: the relay chain acquires data transaction information; the data transaction information is data transaction information to be transferred from the first blockchain to the second blockchain.
Step 302: and the nodes of the relay chain sequentially perform filtering processing and judging operation whether the data transaction information accords with the cross-chain rule, so as to obtain filtered data transaction information which accords with the cross-chain rule.
Step 303: and the nodes in the relay chain add data transaction information according to the cross-link contract, and determine the node added with successful data transaction information at first as a second execution trigger node.
Step 304: the second execution triggering node creates an address for data transactions to the second blockchain.
Step 305: and performing data transaction signature operation by other nodes except the second execution triggering node in the relay chain according to the address for performing data transaction to the second blockchain to obtain a second multi-signature address.
Step 306: and the second execution triggering node broadcasts the transaction to the second blockchain according to the second multi-signature address and the data transaction information, and simultaneously receives an instruction of the second blockchain for completing the transaction confirmation.
FIG. 5 is a block chain based data cross-chain system architecture diagram in accordance with an embodiment of the present invention. As shown in fig. 5, a blockchain-based data cross-chain system includes:
a data transaction information acquisition module 401, configured to implement relay chain acquisition of data transaction information; the data transaction information is data transaction information to be transferred from the first blockchain to the second blockchain.
The second preprocessing module 402 is configured to sequentially perform filtering processing and judging whether the data transaction information accords with the cross-link rule by using a node of the relay link, so as to obtain filtered data transaction information that accords with the cross-link rule.
The second execution trigger node determining module 403 is configured to implement that a plurality of nodes in the relay chain add data transaction information according to the cross-link contract, and determine a node to which successful data transaction information is added first as the second execution trigger node.
A second address creation module 404, configured to implement a second execution triggering node to create an address for performing a data transaction to a second blockchain.
And the second signature module 405 is configured to implement data transaction signature operation by other nodes in the relay chain except the second execution trigger node according to an address for performing data transaction to the second blockchain, so as to obtain a second multi-signature address.
And the second transaction broadcasting module 406 is configured to implement a transaction broadcast by the second execution triggering node to the second blockchain according to the second multi-signature address and the data transaction information, and receive an instruction that the second blockchain completes the transaction confirmation.
Specifically, as shown in fig. 1:
the data to be cross-chain data is determined before the data to be stored is up-chain, the mAddrA address is added into the output address when the writing transaction Ta is created, and the transaction Ta is broadcast in the A chain.
Any node of the relay link participating in generating the multi-signature address mAddrA receives the transaction Ta (the transaction is confirmed by the network), submits a cross-link rule engine to filter, accords with the cross-link rule, drives the relay link point to call a cross-link service contract (source link+source transaction id+source address, writes data information and the like), and participates in cross-link trigger node competition.
Multiple relay chain nodes compete to execute cross-chain transactions, and by using the relay chain cross-chain service contract to invoke the execution serial feature, it can be ensured that only one node can become a cross-chain (the node that first adds the cross-chain transaction to the cross-chain contract state) transaction execution trigger node (exeNode).
The node exeNode confirmed as the transaction execution trigger node firstly creates a transaction Tb (Tb contains all key contents of the transaction Ta) of writing data into the B chain by mAddrB address in the B chain, and sequentially invokes signature contracts of other 4 nodes to complete multi-signature action of the transaction Tb.
After the transaction triggering node exeNode obtains the signed multi-signature address transfer transaction Tb, broadcasting the transaction to the B chain.
After the transaction Tb is confirmed by the B chain, the transaction triggering node exeNode invokes the cross-chain service contract, and writes the transaction information (chain information, transaction id, block and the like) in the B chain into the cross-chain service contract to complete the whole cross-chain service.
Example 3
FIG. 6 is a flowchart of a data access method based on a blockchain in an embodiment of the present invention, as shown in FIG. 6, a data access method based on a blockchain includes:
step 501: the relay chain acquires data access information; the data access information is data information to be accessed by the second blockchain to the first blockchain.
Step 502: and the nodes in the relay chain add the data access information according to the cross-link contract, and determine the node added with the successful data access information first as a third execution trigger node.
Step 503: the third execution triggering node acquires specified transaction information corresponding to the data access information from the first blockchain, and creates second data access information according to the specified transaction information.
Step 504: and performing data transaction signature operation by other nodes except the third execution trigger node in the relay chain according to the second data access information to obtain a third multi-signature address.
Step 505: and the third execution triggering node broadcasts the transaction to the second blockchain according to the third multi-signature address and the data access information, and simultaneously receives an instruction of the second blockchain for completing transaction confirmation.
FIG. 7 is a block chain based data access system architecture in accordance with an embodiment of the present invention. As shown in fig. 7, a blockchain-based data access system includes:
a data access information obtaining module 601, configured to obtain data access information by using a relay chain; the data access information is data information to be accessed by the second blockchain to the first blockchain.
The third execution trigger node determining module 602 is configured to implement that a plurality of nodes in the relay chain add data access information according to a cross-link contract, and determine a node to which successful data access information is added first as a third execution trigger node.
The second data access information creating module 603 is configured to implement that the third execution triggering node obtains specified transaction information corresponding to the data access information in the first blockchain, and creates the second data access information according to the specified transaction information.
And the third address creation module 604 is configured to implement data transaction signature operation by other nodes in the relay chain except the third execution trigger node according to the second data access information, so as to obtain a third multi-signature address.
And the third transaction broadcasting module 605 is configured to implement a third execution triggering node to broadcast a transaction to the second blockchain according to the third multi-signature address and the data access information, and receive an instruction that the second blockchain completes the transaction confirmation.
In particular, as shown in FIG. 1,
the B-chain user creates a cross-chain access transaction Tb (containing the necessary information to access the destination chain block height/transaction id/objectID, etc.) and broadcasts the transaction within the B-chain network.
Any node of the relay link participating in generating the multi-signature address mAddrA receives a transaction Tb (the transaction is confirmed by a network), submits a cross-link rule engine to filter, accords with the cross-link rule, drives the relay link point to call a cross-link service contract (source link+source transaction id+source address, data information to be accessed) and participates in cross-link trigger node competition.
Multiple relay chain nodes compete to execute cross-chain transactions, and by using the relay chain cross-chain service contract to invoke the execution serial feature, it can be ensured that only one node can become a cross-chain (the node that first adds the cross-chain transaction to the cross-chain contract state) transaction execution trigger node (exeNode).
The rule engine drives the A chain node to acquire appointed transaction Ta in the A chain, creates transaction Tb' according to the acquired key information in the transaction Ta, and sequentially calls the rest cross-link points to complete multi-signature transaction signature.
After the transaction triggering node exeNode obtains the signed multi-signature address transfer transaction Tb', the transaction is broadcasted to the B chain.
After the transaction Tb' is confirmed by the B chain, the transaction triggering node exeNode invokes the cross-chain service contract, and writes the transaction information (chain information, transaction id, block and the like) in the B chain into the cross-chain service contract to complete the whole cross-chain service.
The invention realizes the problems of asset transfer, data transfer and mutual access between chains. The relay chain is a blockchain network which can participate in operation in multiple ways, and stakeholders can participate in the deployment and operation of the relay chain network; the method has the advantages of competition, centralization avoidance, multiple nodes and single-point accidents avoidance; the various cross-link services can be automatically completed without manual intervention; the safety is strong: the cross-link rule engine plays a role of a firewall, and can adopt a black-and-white list to control the cross-link service; the cross-link transaction mapping relation is permanently managed in the cross-link contract, so that the possible data loss problem of centralization is avoided; and the expandability is good, and one relay chain can be connected with N service chains and can support the requirement of the relay chain for crossing the chains.
The principles and embodiments of the present invention have been described herein with reference to specific examples, the description of which is intended only to assist in understanding the methods of the present invention and the core ideas thereof; also, it is within the scope of the present invention to be modified by those of ordinary skill in the art in light of the present teachings. In summary, the present description should not be construed as limiting the invention.

Claims (10)

1. A blockchain-based asset cross-linking method, comprising:
the relay chain acquires asset transaction information; the asset transaction information is asset transaction information to be transferred from a first blockchain to a second blockchain;
a plurality of nodes in the relay chain add the asset transaction information according to a cross-link contract, and the node which is added with the asset transaction information successfully at first is determined to be a first execution trigger node; a plurality of nodes compete for executing the cross-link transaction, and the relay link cross-link service contract is utilized to call the execution serial characteristic, so that only one node is ensured to become a cross-link transaction execution trigger node;
the first execution triggering node creates an address for performing asset transaction to the second blockchain;
performing asset transaction signature operation by other nodes except the first execution triggering node in the relay chain according to the address for performing asset transaction to the second blockchain to obtain a first multi-signature address;
and the first execution triggering node performs transaction broadcasting to the second blockchain according to the first multi-signature address and the asset transaction information, and simultaneously receives an instruction for the second blockchain to finish transaction confirmation.
2. The blockchain-based asset cross-linking method of claim 1, wherein a plurality of nodes within the relay chain add the asset transaction information according to a cross-linking contract and determine a node that first added the asset transaction information successfully as a first execution trigger node, further comprising:
and the nodes of the relay chain sequentially perform filtering processing and judging operation whether the asset transaction information accords with the cross-chain rule or not to obtain filtered asset transaction information which accords with the cross-chain rule.
3. A blockchain-based asset cross-chain system, comprising:
the asset transaction information acquisition module is used for acquiring asset transaction information by the relay chain; the asset transaction information is asset transaction information to be transferred from a first blockchain to a second blockchain;
the first execution trigger node determining module is used for enabling a plurality of nodes in the relay chain to add the asset transaction information according to a cross-link contract, and determining the node which is added with the asset transaction information successfully at first as a first execution trigger node; a plurality of nodes compete for executing the cross-link transaction, and the relay link cross-link service contract is utilized to call the execution serial characteristic, so that only one node is ensured to become a cross-link transaction execution trigger node;
a first address creation module configured to implement the first execution triggering node to create an address for performing an asset transaction to the second blockchain;
the first signature module is used for realizing that other nodes except the first execution triggering node in the relay chain conduct asset transaction signature operation according to the address for conducting asset transaction to the second block chain, and a first multi-signature address is obtained;
and the first transaction broadcasting module is used for realizing that the first execution triggering node broadcasts transactions to the second blockchain according to the first multi-signature address and the asset transaction information and simultaneously receives an instruction of the second blockchain for completing transaction confirmation.
4. The blockchain-based asset cross-chain system of claim 3, further comprising:
the first preprocessing module is used for realizing that the nodes of the relay chain sequentially filter the asset transaction information and judge whether the asset transaction information accords with the cross-chain rule or not to obtain filtered asset transaction information which accords with the cross-chain rule.
5. A blockchain-based data cross-chain method, comprising:
the relay chain acquires data transaction information; the data transaction information is data transaction information to be transferred from a first blockchain to a second blockchain;
a plurality of nodes in the relay chain add the data transaction information according to a cross-link contract, and the node which is added with the data transaction information successfully at first is determined to be a second execution trigger node; a plurality of nodes compete for executing the cross-link transaction, and the relay link cross-link service contract is utilized to call the execution serial characteristic, so that only one node is ensured to become a cross-link transaction execution trigger node;
the second execution triggering node creates an address for performing data transaction to the second blockchain;
performing data transaction signature operation by other nodes except the second execution triggering node in the relay chain according to the address for performing data transaction to the second blockchain to obtain a second multi-signature address;
and the second execution triggering node performs transaction broadcasting to the second blockchain according to the second multi-signature address and the data transaction information, and simultaneously receives an instruction for the second blockchain to finish transaction confirmation.
6. The blockchain-based data cross-link method of claim 5, wherein a plurality of nodes within the relay chain add the data transaction information according to a cross-link contract and determine a node that first added the data transaction information successfully as a second execution trigger node, further comprising:
and the nodes of the relay chain sequentially perform filtering processing and judging operation whether the data transaction information accords with the cross-chain rule or not to obtain filtered data transaction information which accords with the cross-chain rule.
7. A blockchain-based data cross-chain system, comprising:
the data transaction information acquisition module is used for acquiring data transaction information by the relay chain; the data transaction information is data transaction information to be transferred from a first blockchain to a second blockchain;
the second execution trigger node determining module is used for enabling a plurality of nodes in the relay chain to add the data transaction information according to a cross-link contract, and determining the node which is added with the data transaction information successfully at first as a second execution trigger node; a plurality of nodes compete for executing the cross-link transaction, and the relay link cross-link service contract is utilized to call the execution serial characteristic, so that only one node is ensured to become a cross-link transaction execution trigger node;
the second address creation module is used for realizing that the second execution triggering node creates an address for carrying out data transaction on the second blockchain;
the second signature module is used for realizing that other nodes except the second execution triggering node in the relay chain conduct data transaction signature operation according to the address for conducting data transaction to the second block chain, and a second multi-signature address is obtained;
and the second transaction broadcasting module is used for realizing that the second execution triggering node broadcasts transactions to the second blockchain according to the second multi-signature address and the data transaction information and simultaneously receives an instruction of the second blockchain for completing transaction confirmation.
8. The blockchain-based data cross-chain system of claim 7, further comprising:
and the second preprocessing module is used for realizing that the nodes of the relay chain sequentially filter the data transaction information and judge whether the data transaction information accords with the cross-chain rule or not to obtain the filtered data transaction information which accords with the cross-chain rule.
9. A blockchain-based data access method, comprising:
the relay chain acquires data access information; the data access information is data information of a first blockchain to be accessed by a second blockchain;
a plurality of nodes in the relay chain add the data access information according to a cross-link contract, and the node which is added with the data access information successfully at first is determined to be a third execution trigger node; a plurality of nodes compete for executing the cross-link transaction, and the relay link cross-link service contract is utilized to call the execution serial characteristic, so that only one node is ensured to become a cross-link transaction execution trigger node;
the third execution triggering node obtains specified transaction information corresponding to the data access information from the first blockchain, and creates second data access information according to the specified transaction information;
performing data transaction signature operation by other nodes except the third execution triggering node in the relay chain according to the second data access information to obtain a third multi-signature address;
and the third execution triggering node performs transaction broadcasting to the second blockchain according to the third multi-signature address and the data access information, and simultaneously receives an instruction for the second blockchain to finish transaction confirmation.
10. A blockchain-based data access system, comprising:
the data access information acquisition module is used for acquiring data access information by the relay chain; the data access information is data information of a first blockchain to be accessed by a second blockchain;
the third execution trigger node determining module is used for enabling a plurality of nodes in the relay chain to add the data access information according to a cross-link contract, and determining the node which is added with the data access information successfully at first as a third execution trigger node; a plurality of nodes compete for executing the cross-link transaction, and the relay link cross-link service contract is utilized to call the execution serial characteristic, so that only one node is ensured to become a cross-link transaction execution trigger node;
the second data access information creation module is used for realizing that the third execution triggering node obtains specified transaction information corresponding to the data access information from the first blockchain and creates second data access information according to the specified transaction information;
the third address creation module is used for realizing that other nodes except the third execution triggering node in the relay chain perform data transaction signature operation according to the second data access information to obtain a third multi-signature address;
and the third transaction broadcasting module is used for realizing that the third execution triggering node broadcasts the transaction to the second blockchain according to the third multi-signature address and the data access information and simultaneously receives an instruction of the second blockchain for completing transaction confirmation.
CN202010960604.6A 2020-09-14 2020-09-14 Asset and data cross-chain method and system based on blockchain Active CN112070499B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010960604.6A CN112070499B (en) 2020-09-14 2020-09-14 Asset and data cross-chain method and system based on blockchain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010960604.6A CN112070499B (en) 2020-09-14 2020-09-14 Asset and data cross-chain method and system based on blockchain

Publications (2)

Publication Number Publication Date
CN112070499A CN112070499A (en) 2020-12-11
CN112070499B true CN112070499B (en) 2023-08-11

Family

ID=73695549

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010960604.6A Active CN112070499B (en) 2020-09-14 2020-09-14 Asset and data cross-chain method and system based on blockchain

Country Status (1)

Country Link
CN (1) CN112070499B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112738243B (en) * 2020-12-29 2022-06-24 合肥达朴汇联科技有限公司 Block chain information cross-chain interaction system
CN112910946B (en) * 2020-12-29 2022-06-28 合肥达朴汇联科技有限公司 Block chain information cross-chain interaction method, system and equipment applied to t2 node
CN113191756B (en) * 2021-06-04 2022-07-19 杭州复杂美科技有限公司 Cross-chain asset security management method, computer device and storage medium
CN114422520B (en) * 2021-12-31 2024-04-02 支付宝(杭州)信息技术有限公司 Cross-chain interaction method and device
CN115955317B (en) * 2023-03-03 2023-05-26 鲜明技术(北京)有限公司 Cross-blockchain resource storage method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110766408A (en) * 2019-10-24 2020-02-07 杭州趣链科技有限公司 Cross-chain transaction verification method, engine, equipment and storage medium for heterogeneous block chain
CN111107136A (en) * 2019-12-05 2020-05-05 上海中信信息发展股份有限公司 Block chain cross-chain relay method based on IPFS
CN111598566A (en) * 2020-04-30 2020-08-28 厦门潭宏信息科技有限公司 Network payment system based on mixed cross-chain

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11875300B2 (en) * 2018-07-12 2024-01-16 International Business Machines Corporation Perishable asset tracking for blockchain

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110766408A (en) * 2019-10-24 2020-02-07 杭州趣链科技有限公司 Cross-chain transaction verification method, engine, equipment and storage medium for heterogeneous block chain
CN111107136A (en) * 2019-12-05 2020-05-05 上海中信信息发展股份有限公司 Block chain cross-chain relay method based on IPFS
CN111598566A (en) * 2020-04-30 2020-08-28 厦门潭宏信息科技有限公司 Network payment system based on mixed cross-chain

Also Published As

Publication number Publication date
CN112070499A (en) 2020-12-11

Similar Documents

Publication Publication Date Title
CN112070499B (en) Asset and data cross-chain method and system based on blockchain
JP2006338507A (en) Processing device and processing method
JPS62169242A (en) Decentralized editing system
CN103731465A (en) Distributed system and transaction treatment method thereof
Övergaard A formal approach to collaborations in the unified modeling language
CN106453154A (en) Real-time debugging method and system based on multicast replicated message
CN116010039B (en) Message middleware integration method for intelligent automobile multi-entity joint simulation
CN108959488A (en) Safeguard the method and device of Question-Answering Model
WO2022052091A1 (en) Asset and data cross-chain method and system based on blockchain
CN112328406A (en) Micro-service distributed transaction system based on TCC (transmission control center) and service processing method
CN116911763A (en) Flow approval method, device, terminal equipment and storage medium
CN111488151A (en) Method and device for page interaction among Android modules
CN116260590A (en) High concurrency relay transaction coordination method and system under cross-link scene
CN109284935A (en) A kind of task processing system based on micro- assistance the superior and the subordinate office group
CN115454383A (en) Software defined automobile service development process and implementation method
CN108664240A (en) A kind of realization method and system applied to intelligent glasses workflow
CN114499824A (en) Node system of block chain and cooperation method thereof
CN113850683A (en) Car insurance inquiry request processing method and device, computer equipment and storage medium
CN112308857A (en) Method and device for determining center line of blood vessel and readable storage medium
CN116911393B (en) Quantum chip design system, quantum chip design method, electronic equipment and storage medium
CN116208621A (en) Method, device, platform and storage medium for forwarding national landmark data
CN115268887A (en) Micro application engineering generation method, system and equipment based on domain model
JPH05233327A (en) Message sequence generator
KR100226452B1 (en) Method for making compatibility test abstract suite of multi party call/connection controlling protocol
CN116485538A (en) Lightweight distributed account book construction method, device and medium

Legal Events

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