WO2020042936A1 - Parallel chain-based cross-chain transaction method and apparatus, and block chain system - Google Patents

Parallel chain-based cross-chain transaction method and apparatus, and block chain system Download PDF

Info

Publication number
WO2020042936A1
WO2020042936A1 PCT/CN2019/101057 CN2019101057W WO2020042936A1 WO 2020042936 A1 WO2020042936 A1 WO 2020042936A1 CN 2019101057 W CN2019101057 W CN 2019101057W WO 2020042936 A1 WO2020042936 A1 WO 2020042936A1
Authority
WO
WIPO (PCT)
Prior art keywords
transaction
chain
cross
initiation
target
Prior art date
Application number
PCT/CN2019/101057
Other languages
French (fr)
Chinese (zh)
Inventor
白杰
吴先锋
李冬云
Original Assignee
白杰
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Priority claimed from CN201811496870.7A external-priority patent/CN110866824B/en
Application filed by 白杰 filed Critical 白杰
Publication of WO2020042936A1 publication Critical patent/WO2020042936A1/en

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

Definitions

  • This application relates to the field of blockchain technology, and in particular, to a cross-chain-based cross-chain transaction method, device, and blockchain system.
  • Blockchain provides a decentralized system idea. The most fundamental principle of this idea is to create a relatively objective anti-repudiation digital environment through public consensus.
  • Blockchain technology can make network information immutable once it is released. For example, a transaction occurs in the blockchain network. Nodes in the blockchain network will record the transaction in the generated block, and then add the block. Go to the blockchain and broadcast it throughout the network to form an unchangeable blockchain. Therefore, the blockchain is essentially a distributed public ledger.
  • This public ledger consists of multiple data blocks and is jointly maintained by each node.
  • the nodes that maintain the same blockchain form a physical chain, such as public, private, and alliance chains. These nodes together form a peer-to-peer blockchain network.
  • the above-mentioned transactions not only refer to transactions in the traditional sense, such as the purchase and sale of goods and the exchange of goods, but also the results of data operations or data exchange.
  • node A in a public chain initiates a transaction request, and the transaction content of the transaction request is to pay 10 tokens for node A to query the weather.
  • Node B in the public chain provides weather query services. Then, node A pays 10 securities exchanges to the account corresponding to node B, and node B sends the weather conditions inquired to node A, and then node A and node B jointly complete the transaction request initiated by node A.
  • the payment of 10 Zentong and sending weather conditions can be recorded as the transaction information of the transaction in the blockchain of the public chain.
  • This application provides a cross-chain-based cross-chain transaction method, device, and blockchain system, which can be used to solve the problem that cross-chain transactions cannot be performed between different blockchain networks in the prior art, resulting in blockchain-based transactions being blocked. Problems confined to a single blockchain network.
  • the present application provides a cross-chain-based cross-chain transaction method, which includes:
  • the transaction initiation chain is instructed to pay the transaction content required by the transaction target chain in the cross-chain transaction.
  • the transaction content that instructs the transaction target chain to pay for the transaction initiation chain requirement in the cross-chain transaction includes:
  • the transaction content that instructs the transaction initiation chain to pay for the transaction target chain demand in the cross-chain transaction includes:
  • the determining a cross-chain transaction to be completed between the transaction initiation chain and the transaction target chain includes:
  • cross-chain blockchain does not record the cross-chain transaction, it is determined that the cross-chain transaction is a pending cross-chain transaction.
  • the method further includes:
  • the updating the parachain blockchain includes:
  • the present application provides a parachain-based blockchain cross-chain transaction device, which is deployed in a parachain node and includes:
  • a transaction determination module for determining a cross-chain transaction to be completed between a transaction initiation chain and a transaction target chain
  • a transaction instruction module configured to instruct a transaction target chain to pay the transaction content required by the transaction initiation chain in the cross-chain transaction according to the cross-chain transaction; and when the transaction target chain is detected to complete the payment, instruct the transaction to initiate The transaction content required by the transaction target chain in the cross-chain transaction.
  • the present application provides a blockchain system based on a parallel chain.
  • the blockchain system includes a transaction initiation chain, a parallel chain, and a transaction target chain.
  • the common node composition of the transaction target chain is described;
  • the parallel chain is used to determine a cross-chain transaction to be completed between the transaction initiation chain and the transaction target chain; and according to the cross-chain transaction, instruct the transaction target chain to pay for the transaction initiation in the cross-chain transaction Transaction content required by the chain; when it is detected that the transaction target chain completes payment, instruct the transaction initiation chain to pay the transaction content required by the transaction target chain in the cross-chain transaction;
  • the transaction target chain is configured to pay the transaction content required by the transaction initiation chain in the cross-chain transaction according to an instruction of the parallel chain;
  • the transaction initiation chain is configured to pay for transaction content required by the transaction target chain in the cross-chain transaction according to an instruction of the parallel chain.
  • the parallel chain instructs the transaction initiation chain and the transaction target chain to pay the transaction contents that need to be paid according to the cross-chain transaction, thereby completing the cross-chain transaction.
  • the parachain node is a common node of the transaction initiation chain and the transaction target chain
  • the parachain can participate in both the transaction of the transaction initiation chain and the transaction of the transaction target chain.
  • Parachain uses this feature to centrally regulate and connect the transaction initiation chain and the transaction target chain during the transaction process, overcoming the differences between the two parties, achieving cross-chain transactions between different chains, and making blockchain transactions no longer Limited to a single blockchain network.
  • FIG. 1 is a schematic diagram showing a network architecture between a transaction initiation chain, a transaction target chain, and a parallel chain;
  • Fig. 2 is a schematic flowchart of a cross-chain-based cross-chain transaction according to an exemplary embodiment
  • Fig. 3 is a flow chart showing a parachain determining a cross-chain transaction to be completed according to an exemplary embodiment
  • Fig. 4 is a schematic flowchart of a parallel chain instruction transaction target chain payment transaction content according to an exemplary embodiment
  • Fig. 5 is a schematic flow chart showing the contents of a parallel chain instruction transaction initiation chain payment transaction according to an exemplary embodiment
  • Fig. 6 is a block diagram showing a parachain-based cross-chain transaction device according to an exemplary embodiment.
  • the blockchain network refers to a point-to-point network formed by blockchain nodes.
  • the blockchain network can perform distributed storage, public consensus, digital encryption, transaction accounting, and verification.
  • the data information in the blockchain or blockchain block is the transaction information of the nodes of the blockchain according to the transaction records when a transaction occurs in the blockchain network.
  • one block includes transaction information of multiple transactions, and multiple blocks form a block chain.
  • Each node in the blockchain network can be a physical node, such as a terminal, a server, or a virtual node. Nodes in the same blockchain network communicate and maintain the operation of the blockchain network based on the same consensus mechanism.
  • the transaction initiation chain, transaction target chain, and parachain refer to different blockchain networks that conform to the blockchain technology.
  • the transaction initiation chain refers to the blockchain network that initiated the cross-chain transaction
  • the transaction target chain is the blockchain network where the transaction object of the cross-chain transaction is located.
  • the transaction initiation chain and the transaction target chain are independent blockchain networks, such as Bitcoin and Ethereum, or industry and alliance chains developed by different industries, or even different private or public chains. Due to the differences between these independent blockchain networks, such as different consensus mechanisms, they cannot communicate or trade with each other. Therefore, in the technical solution provided in this application, the transaction initiation chain and the transaction target chain are connected by a parallel chain.
  • the parachain is composed of the common nodes of the transaction initiation chain and the transaction target chain. Because the parachain node is a common node of the transaction initiation chain and the transaction target chain, the parachain has both the function of the transaction initiation chain and the transaction target chain, and stores both parties' blockchains. Therefore, the parallel chain can transform the information in the blockchain network on one side and then transfer it to the blockchain network on the other side. Through the bridging effect in the parallel chain, communication or transaction can be performed between the transaction initiation chain and the transaction target chain.
  • FIG. 1 shows a schematic diagram of a network architecture between a transaction initiation chain, a transaction target chain, and a parallel chain.
  • the parallel chain node 101 can both communicate with the transaction initiation chain node 111 and communicate with the transaction target chain node 121.
  • FIG. 2 a schematic flowchart of a cross-chain-based cross-chain transaction method according to the present application is exemplarily shown. The method includes the following steps.
  • S20 Determine a cross-chain transaction to be completed between the transaction initiation chain and the transaction target chain.
  • a pending cross-chain transaction refers to a cross-chain transaction that has been sent to a parallel chain but has not yet been completed. It includes transaction-related information, such as the address information of the two parties to the transaction, the transaction conditions, and the transaction content that both parties need to pay.
  • a transaction refers to the transaction content of both parties in accordance with the transaction conditions. Therefore, a cross-chain transaction actually includes two sub-transactions.
  • a sub-transaction is the transaction content of the transaction initiation chain and the transaction target chain to pay for the transaction target chain.
  • Another sub-transaction is the transaction content that the transaction target chain pays to the transaction initiation chain. Therefore, to complete a cross-chain transaction, two sub-transactions in the cross-chain transaction need to be completed.
  • the cross-chain transaction between the transaction initiation chain A and the transaction target chain B is: 50 transactions initiating the Zhengtong a of the chain A, in exchange for 5 transactions in the trading target chain B.
  • the two sub-transactions actually included in this cross-chain transaction are: the transaction initiation chain pays 50 STOs A to the transaction target chain, and the transaction target chain pays 5 STOs b to the transaction initiation chain.
  • the parallel chain determines the cross-chain transaction to be completed between the transaction initiation chain and the transaction target chain, including the following sub-steps.
  • the parallel chain needs to obtain the cross-chain transaction first.
  • the nodes that initiate transactions are called transaction nodes.
  • the transaction nodes in the transaction initiation chain initiate a cross-chain transaction and broadcast the cross-chain transaction in the transaction initiation chain.
  • the parachain node receives the cross-chain transaction, the parachain obtains the cross-chain transaction initiated by the transaction initiation chain.
  • the transaction initiation chain initiates a transaction request to initiate a cross-chain transaction.
  • the transaction request only includes information related to cross-chain transactions, such as transaction conditions, address information of both parties to the transaction, and so on.
  • the transaction node sends the transaction request to the parachain. Accordingly, the parallel chain determines the corresponding cross-chain transaction according to the information in the transaction request.
  • the transaction initiation chain initiates a trigger transaction to initiate a cross-chain transaction.
  • This trigger transaction is a special transaction.
  • the transaction form is the same as the ordinary transaction form in the transaction initiation chain, but it requires a specific agreement on the specific transaction method, such as a transaction with an agreed number of STOs to be transferred.
  • the transaction initiation chain initiates the trigger transaction, and the transaction object is a cross-chain transaction smart contract.
  • the node that completes the triggered transaction generates a transaction result by triggering a cross-chain transaction smart contract.
  • the transaction results include information related to cross-chain transactions.
  • the transaction initiation chain node generates a block containing the result of the transaction, adds it to the blockchain, and broadcasts it.
  • the parallel chain obtains the transaction results in the block, it determines the cross-chain transaction initiated by the transaction initiation chain.
  • the transaction initiation chain initiates a trigger transaction, and the trigger transaction is to pay 1 Zhengtong to the cross-chain transaction smart contract; and the trigger transaction includes information related to the cross-chain transaction.
  • the node that completes the triggered transaction executes a cross-chain transaction smart contract, generates a block containing the transaction result, adds it to the blockchain, and broadcasts it.
  • one token pass paid to the cross-chain transaction smart contract in the triggered transaction is obtained as a reward token pass.
  • the blockchains stored in the parallel chain include the blockchain of the transaction initiation chain and the transaction target chain.
  • the transaction initiation chain and the transaction target chain have their respective completed transactions recorded. Therefore, the parachain can detect whether the cross-chain transaction is recorded in the parachain blockchain to determine whether the cross-chain transaction is completed; if the cross-chain transaction is recorded in the parachain blockchain, it is determined that the cross-chain transaction has been completed; if Cross-chain transactions are not recorded in the parachain blockchain, and it is determined that the cross-chain transaction is to be completed.
  • cross-chain transactions are recorded in the parallel chain blockchain, which means that two sub-transactions in the cross-chain transaction have been recorded in the parallel chain blockchain.
  • the cross-chain transaction between the transaction initiation chain A and the transaction target chain B is: 50 transactions initiating the Zhengtong a of the chain A, in exchange for 5 transactions in the trading target chain B. Then, in the parachain blockchain, parachain detects whether the transaction initiation chain A has paid 50 tokens a to the transaction target chain B, and whether the transaction target chain B has paid 5 tokens b to the transaction initiation chain A. .
  • the parallel chain may determine a cross-chain transaction to be completed by calling a query smart contract. Because cross-chain transactions include two sub-transactions, the parallel chain can query the two smart transactions through the transaction initiation chain and the transaction target chain respectively. For the sub-transactions that need to be completed in the transaction initiation chain, the parallel chain calls the query smart contract in the transaction initiation chain to check whether the sub-transaction is completed; for the sub-transactions that the transaction target chain needs to complete, the parallel chain calls the query smart contract in the transaction target chain Query whether the sub-transaction is completed.
  • a transaction node before a transaction node initiates a cross-chain transaction, it first initiates a query transaction.
  • the query transaction includes the transaction content required by the transaction initiation chain and the transaction content that the transaction initiation chain can pay.
  • the parallel chain determines whether the transaction target chain can reach a transaction with the transaction initiation chain. If there is a target node in the transaction target chain that can reach a transaction with the transaction node, the parallel chain sends the relevant information of the target node to the transaction node, such as the address information and transaction conditions of the target node.
  • the transaction node initiates cross-chain transactions according to the relevant information of the target node.
  • the transaction node A1 hopes to initiate Zentong a of chain A with 50 transactions in exchange for Zentong b of 5 transaction target chains B. Therefore, transaction node A1 initiates a query transaction.
  • Parallel chain determines the transaction according to the query transaction. Node A1 needs 5 STOs A and can pay 50 STOs b.
  • the parallel chain queries whether the transaction target chain B has a target node B1 that can reach a transaction with the transaction node A1.
  • One node in the transaction target chain B requires 50 STOs A and is willing to pay up to 7 STOs b.
  • the parallel chain uses the node as a target node, and sends related information of the target node to the transaction node A1.
  • the transaction node A1 initiates a cross-chain transaction according to the relevant information of the target node B1.
  • the transaction node directly initiates a cross-chain transaction.
  • Cross-chain transactions also include the transaction content required by the transaction initiation chain and the transaction content that the transaction initiation chain can pay, but it does not specify the target node that is the most transaction target.
  • the parallel chain determines whether the transaction target chain can reach a transaction with the transaction initiation chain. If there is a target node in the transaction target chain that can reach a transaction with the transaction node, the parallel chain directly performs the subsequent cross-chain transaction steps; if there is no target node in the transaction target chain that can reach a transaction with the transaction node, the parallel chain notifies the transaction node transaction failed.
  • the transaction target chain is first instructed to pay for the transaction content of the transaction initiation chain demand in the cross-chain transaction.
  • the parachain node is also a node in the transaction target chain
  • the parachain has the full function of the transaction target chain, and can directly call the execution of the smart contract of the transaction target chain to instruct the transaction target chain to pay for transaction initiation in the cross-chain transaction
  • the transaction content of the chain demand The parallel chain invokes the execution of the smart contract of the transaction target chain, and the maintainer node in the transaction target chain completes the corresponding sub-transactions, that is, the transaction content required by the transaction initiation chain in the payment of cross-chain transactions.
  • the maintainer node is the node responsible for maintaining the blockchain in the blockchain network and has the right to keep accounts. After the maintainer node in the transaction target chain completes the corresponding sub-transaction, it will record the sub-transaction in the generated block.
  • the transaction target chain is synchronized with the parallel chain block, that is, the parallel chain synchronizes the block chain of the transaction target chain.
  • the parallel chain instructs the transaction target chain to pay the transaction content of the transaction initiation chain demand in the cross-chain transaction, including the following sub-steps.
  • the parallel chain invokes the execution of the smart contract of the transaction target chain to generate a first transaction instruction.
  • the parallel chain sends the first transaction instruction to the transaction target chain.
  • S213 The transaction content of the transaction initiation chain demand in the transaction target chain payment cross-chain transaction.
  • the parachain calls the execution of the smart contract of the transaction target chain to generate a first transaction instruction. Since the first transaction instruction is used to notify the transaction target chain of the transaction content of the transaction initiation chain demand in the cross-chain transaction, the first transaction instruction includes payment-related information, such as address information and specific transaction content to be paid.
  • the parallel chain sends the first transaction instruction to the transaction target chain, that is, the first transaction instruction is broadcast in the transaction target chain.
  • the maintainer node in the transaction initiation chain receives the first transaction instruction, it verifies the first transaction instruction, pays for the transaction content required by the transaction initiation chain in the cross-chain transaction, and records it in the generated block.
  • the block generated by the transaction initiation chain broadcasts a consensus among the nodes in the transaction initiation chain and confirms that the payment is complete.
  • cross-chain transactions generally include two types: exchange of information exchange and information services.
  • the STO exchange refers to the use of the STO of the transaction initiation chain to exchange the STO of the transaction target chain;
  • the information service means that the transaction initiation chain pays a certain amount of STO to the transaction target chain, and the purchase of the transaction target chain sends the corresponding Or the transaction initiation chain sends the information data to the transaction target chain in exchange for a certain amount of securities.
  • it is a stock exchange or an information service, it is a data operation or the result of a data operation.
  • the maintainer node when the transaction initiation chain pays a certain number of transactions in the transaction initiation chain to the transaction target chain, the maintainer node actually transfers a certain number of securities in the transaction to the account corresponding to the target node. Because the payment is made through the transaction initiation chain, the transfer operation is completed in the transaction initiation chain and does not involve cross-chain operations between the transaction initiation chain and the transaction target chain. Therefore, after the maintainer node determines the address information and transaction conditions of the respective accounts of the transaction node and the target node, it can complete the payment of the transaction content between the transaction node and the target node.
  • the cross-chain transaction is an information service
  • the transaction initiation chain A pays 50 transaction initiation chains A of the transaction initiation chain A to the transaction target chain B to purchase weather information provided by the transaction target chain B.
  • the transaction content paid by the transaction target chain B is specific weather information.
  • the maintainer node B2 in the transaction target chain B sends specific weather information to the account corresponding to the transaction node A1 in the transaction initiation chain A according to the address information of the transaction node A1.
  • the parallel chain instructs the transaction target chain to pay for the transaction content required by the transaction initiation chain, it is necessary to check whether the transaction target chain has completed the payment. Only when the transaction target chain completes the payment, the parallel chain can indicate the transaction content required by the transaction target chain in the transaction initiation chain payment cross-chain transaction. Because the maintainer node in the transaction target chain will record the paid transaction content in the generated block and broadcast the blockchain in the transaction target chain, the parallel chain can be based on the synchronized transaction target chain area in the parallel chain blockchain Block chain, to check whether the transaction target chain has completed the payment.
  • the parallel chain may detect whether the transaction target chain has completed the payment by invoking the transaction target chain to query the smart contract. Because the method of detecting whether the transaction target chain has completed the payment according to the parallel chain blockchain, the parallel chain needs to synchronize the blockchain of the transaction target chain first. When the transaction target chain has paid for the transaction content, but the parallel chain has not synchronized the transaction target chain's blockchain, the parallel chain cannot know that the transaction target chain has completed the payment. However, the parallel chain can be queried by calling the query smart contract, which can more quickly determine that the transaction target chain has completed payment, and improve the efficiency of cross-chain transactions.
  • the parallel chain has the full function of the transaction initiation chain, and can directly call the transaction initiation chain to execute the smart contract.
  • the parallel chain invokes the execution of the smart contract of the transaction initiation chain, and the maintainer node in the transaction initiation chain completes the corresponding sub-transaction, that is, the transaction content required to pay the transaction target chain.
  • the maintainer node in the transaction initiation chain will record in the generated block after completing the corresponding sub-transaction.
  • the transaction initiation chain is synchronized with the parallel chain block, that is, the parallel chain synchronizes the transaction initiation chain block chain.
  • the parallel chain can determine whether the transaction initiation chain has completed the payment by detecting the parallel chain blockchain or invoking the smart contract of the transaction initiation chain to query the completion of cross-chain transactions.
  • the parallel chain instructs the transaction content of the transaction target chain demand in the transaction initiation chain payment cross-chain transaction, including the following sub-steps.
  • the parallel chain invokes the execution of the smart contract of the transaction initiation chain to generate a second transaction instruction.
  • the parallel chain sends the second transaction instruction to the transaction initiation chain.
  • S223 The transaction content of the transaction target chain demand in the transaction initiation chain payment cross-chain transaction.
  • the parallel chain invokes the execution of the smart contract of the transaction initiation chain to generate a second transaction instruction. Because the second transaction instruction is used to notify the transaction content of the transaction initiation chain payment transaction target chain requirement, the second transaction instruction includes payment-related transaction information, such as address information, and specific transaction content that needs to be paid.
  • the parallel chain sends the second transaction instruction to the transaction target chain, that is, the second transaction instruction is broadcast in the transaction target chain.
  • the maintainer node in the transaction initiation chain receives the second transaction instruction, it verifies the second transaction instruction, pays for the transaction content required by the transaction initiation chain, and records the transaction in the generated block.
  • the transaction target chain broadcasts the generated block, and a consensus is reached among the nodes of the transaction target chain to confirm that the payment is completed.
  • the cross-chain transaction is an information service
  • the transaction initiation chain A pays 50 transaction initiation chains A of the transaction initiation chain A to the transaction target chain B to purchase weather information provided by the transaction target chain B.
  • the transaction content of the transaction initiation chain A payment is 50 Zhengtong a.
  • the maintainer node in the transaction initiation chain A according to the address information in the second transaction instruction, pays 50 tokens a to the target node B1 in the transaction target chain B.
  • the transaction target chain locks the transaction content when the transaction content required by the transaction initiation chain is paid.
  • the parallel chain determines that the transaction initiation chain has completed the payment, it sends the information that the transaction initiation chain has completed the payment to the transaction target chain.
  • the transaction target chain unlocks the transaction content of its own payment. By locking the transaction content, it prevents the transaction initiation chain from paying the corresponding transaction content, which causes losses to the transaction initiation chain and achieves the effect of anti-repudiation.
  • the parallel chain instructs the transaction initiation chain and the transaction target chain to pay the transaction contents that need to be paid according to the cross-chain transaction, thereby completing the cross-chain transaction.
  • the parachain node is a common node of the transaction initiation chain and the transaction target chain
  • the parachain can participate in both the transaction of the transaction initiation chain and the transaction of the transaction target chain.
  • Parachain uses this feature to centrally regulate and connect the transaction initiation chain and the transaction target chain during the transaction process, overcoming the differences between the two parties, achieving cross-chain transactions between different chains, and making blockchain transactions no longer Limited to a single blockchain network.
  • the parallel chain in the process of cross-chain transactions, the parallel chain will synchronize the blockchain of the transaction initiation chain and the transaction target chain to update the parallel chain blockchain. Since the parachain node is a common node of the transaction initiation chain and the transaction target chain, the parachain can directly obtain the blockchain of the transaction initiation chain or the transaction target chain and update the parachain blockchain. Specifically, in the technical solution provided in this application, there are two update modes of the parallel chain blockchain.
  • the parallel chain uses the same consensus mechanism as the blockchain network to synchronize and update the parallel chain blockchain.
  • the parallel chain blockchain is the same as the blockchain of the blockchain network.
  • the parallel chain After acquiring the blockchain of the transaction initiation chain or the transaction target chain, the parallel chain generates summary information according to the blockchain of the transaction initiation chain or the transaction target chain.
  • the summary information is used to indicate transactions recorded in the blockchain of the corresponding blockchain network.
  • Parachain generates blocks that include summary information, and adds the block to the parachain blockchain to achieve the update of the parachain blockchain.
  • Fig. 6 is a block diagram of a parachain-based cross-chain transaction device according to an exemplary embodiment.
  • the device can be deployed at a parachain node and has a function for implementing the above method example, and the function can be implemented by hardware, or can be implemented by hardware executing corresponding software.
  • the apparatus may include a transaction determination module 601 and a transaction instruction module 602.
  • the transaction determination module 601 is configured to determine a cross-chain transaction to be completed between a transaction initiation chain and a transaction target chain.
  • the transaction instruction module 602 is configured to instruct the transaction target chain to pay the transaction content required by the transaction initiation chain in the cross-chain transaction according to the cross-chain transaction; and when the transaction target chain is detected to complete the payment, instruct the transaction.
  • the initiation chain pays for the transaction content required by the transaction target chain in the cross-chain transaction.
  • the parallel chain instructs the transaction initiation chain and the transaction target chain to pay the transaction contents that need to be paid according to the cross-chain transaction, thereby completing the cross-chain transaction.
  • the parachain node is a common node of the transaction initiation chain and the transaction target chain
  • the parachain can participate in both the transaction of the transaction initiation chain and the transaction of the transaction target chain.
  • Parachain uses this feature to centrally regulate and connect the transaction initiation chain and the transaction target chain during the transaction process, overcoming the differences between the two parties, achieving cross-chain transactions between different chains, and making blockchain transactions no longer Limited to a single blockchain network.
  • the transaction instruction module 602 is specifically configured to: call the execution of the smart contract of the transaction target chain to generate a first transaction instruction, and the first transaction instruction is used to notify the transaction target chain to pay the cross-chain transaction The transaction content required by the transaction initiation chain; sending the first transaction instruction to the transaction target chain, so that the transaction target chain verifies the first transaction instruction and pays for the transaction required by the transaction initiation chain content.
  • the transaction instruction module 602 is specifically configured to: call the execution of the smart contract of the transaction initiation chain to generate a second transaction instruction, and the second transaction instruction is used to notify the transaction initiation chain to pay the cross-chain transaction The transaction content required by the transaction target chain; sending the second transaction instruction to the transaction target chain, so that the transaction initiation chain verifies the second transaction instruction and pays for the transaction required by the transaction target chain content.
  • the transaction determination module 601 is specifically configured to: obtain cross-chain transactions initiated by the transaction initiation chain; detect whether the cross-chain transactions are recorded in a parallel chain blockchain; and when detecting the parallel chain blockchain When the cross-chain transaction is not recorded, it is determined that the cross-chain transaction is a pending cross-chain transaction.
  • the apparatus further includes: a block update module.
  • the block update module is configured to obtain the block chain of the transaction initiation chain or the transaction target chain; and update the parallel chain block chain according to the block chain of the transaction initiation chain or the transaction target chain.
  • the block update module is specifically configured to generate summary information according to the block chain of the transaction initiation chain or the transaction target chain, and the summary information is used to instruct the transaction initiation chain or Generate a block including the summary information, and add the block to the parachain blockchain.
  • this application also provides a parallel chain-based blockchain system.
  • the system includes a transaction initiation chain, a parallel chain, and a transaction target chain.
  • the parallel chain is composed of the transaction initiation chain and the transaction chain. Composition of common nodes of the transaction target chain;
  • the parallel chain is used to determine a cross-chain transaction to be completed between the transaction initiation chain and the transaction target chain; and according to the cross-chain transaction, instruct the transaction target chain to pay for the transaction initiation in the cross-chain transaction Transaction content required by the chain; when it is detected that the transaction target chain completes payment, instruct the transaction initiation chain to pay the transaction content required by the transaction target chain in the cross-chain transaction;
  • the transaction target chain is configured to pay the transaction content required by the transaction initiation chain in the cross-chain transaction according to an instruction of the parallel chain;
  • the transaction initiation chain is configured to pay for transaction content required by the transaction target chain in the cross-chain transaction according to an instruction of the parallel chain.
  • the transaction initiation chain and the transaction target chain are connected through a parallel chain, and the transaction content that needs to be paid is paid according to the instructions of the parallel chain to complete the cross-chain transaction.
  • the parachain node is a common node of the transaction initiation chain and the transaction target chain, the parachain can participate in both the transaction of the transaction initiation chain and the transaction of the transaction target chain.
  • Parachain uses this feature to centrally regulate and connect the transaction initiation chain and the transaction target chain during the transaction process, overcoming the differences between the two parties, achieving cross-chain transactions between different chains, and making blockchain transactions no longer Limited to a single blockchain network.
  • the technology in the embodiment of the present invention can be implemented by means of software plus a necessary universal hardware platform. Based on such an understanding, the technical solutions in the embodiments of the present invention can be embodied in the form of software products that are essentially or contribute to the existing technology.
  • the computer software product can be stored in a storage medium, such as ROM / RAM. , Magnetic disks, optical disks, etc., including a number of instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform the methods described in various embodiments of the present invention or certain parts of the embodiments.

Abstract

A parallel chain-based cross-chain transaction method and apparatus, and a block chain system. Said method comprises: determining a cross-chain transaction to be completed between a transaction initiation chain and a transaction target chain; instructing, according to said cross-chain transaction, the transaction target chain to pay for transaction content required by the transaction initiation chain in the cross-chain transaction; and upon detecting that the transaction target chain has completed the payment, instructing the transaction initiation chain to pay for transaction content required by the transaction target chain in said cross-chain transaction. In the present application, a parallel chain instructs a transaction initiation chain and a transaction target chain to pay for transaction content required thereby, thereby completing a cross-chain transaction. As a parallel chain node is a common node of the transaction initiation chain and the transaction target chain, the parallel chain can participate in both a transaction of the transaction initiation chain and a transaction of the transaction target chain. Using this characteristic, the parallel chain can perform coordination and control during a transaction, and connect the transaction initiation chain and the transaction target chain, realizing a cross-chain transaction between different chains, so that block chain transactions are no longer limited within a single block chain network.

Description

一种基于平行链的跨链交易方法、装置及区块链系统Method, device and blockchain system for cross-chain transactions based on parallel chains
本申请要求在2018年8月28日提交中国专利局、申请号为201810986825.3、发明名称为“区块链标准应用模型及其应用方法”以及在2018年12月7日提交中国专利局、申请号为201811496870.7、发明名称为“一种基于平行链的跨链交易方法、装置及区块链系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application requires the submission of the China Patent Office on August 28, 2018, application number 201810986825.3, the invention name as "Blockchain Standard Application Model and Application Method", and the submission of the China Patent Office on December 7, 2018, application number The priority of the Chinese patent application is 201811496870.7 and the invention name is "A Parallel Chain-based Cross-chain Transaction Method, Device and Blockchain System", the entire contents of which are incorporated herein by reference.
技术领域Technical field
本申请涉及区块链技术领域,尤其涉及一种基于平行链的跨链交易方法、装置及区块链系统。This application relates to the field of blockchain technology, and in particular, to a cross-chain-based cross-chain transaction method, device, and blockchain system.
背景技术Background technique
区块链提供了一种去除中心化的系统思想,这种思想最根本的原理是通过公众共识的方式,创建一个相对客观的抗抵赖数字环境。区块链技术可以使网络信息一旦发布即不可改变,例如,区块链网络中发生一笔交易,区块链网络中的节点会在生成的区块中记录该交易,再将该区块添加至区块链中,并全网广播,形成不可更改的区块链。因此,区块链本质上是一个分布式的公共账本,这个公共账本由多个数据区块组成,并由各个节点共同维护。维护同一区块链的节点组成一个物理链,例如公链、私链、联盟链等等。这些节点共同形成了一个点对点的区块链网络。Blockchain provides a decentralized system idea. The most fundamental principle of this idea is to create a relatively objective anti-repudiation digital environment through public consensus. Blockchain technology can make network information immutable once it is released. For example, a transaction occurs in the blockchain network. Nodes in the blockchain network will record the transaction in the generated block, and then add the block. Go to the blockchain and broadcast it throughout the network to form an unchangeable blockchain. Therefore, the blockchain is essentially a distributed public ledger. This public ledger consists of multiple data blocks and is jointly maintained by each node. The nodes that maintain the same blockchain form a physical chain, such as public, private, and alliance chains. These nodes together form a peer-to-peer blockchain network.
其中,上述交易不仅指传统意义上的交易,例如商品买卖和物品交换,还包括对数据的操作结果或数据交换。例如,一个公链中的节点A发起了一个交易请求,该交易请求的交易内容为节点A支付10个证通来查询天气情况。公链中的节点B提供天气查询服务。那么,节点A向节点B对应的账户支付10个证通,节点B将查询的天气情况发送给节点A,则节点A和节点B共同完成了节点A发起的交易请求。其中,支付10个证通和发送天气情况可作为交易的交易信息被记录至公链的区块链中。Among them, the above-mentioned transactions not only refer to transactions in the traditional sense, such as the purchase and sale of goods and the exchange of goods, but also the results of data operations or data exchange. For example, node A in a public chain initiates a transaction request, and the transaction content of the transaction request is to pay 10 tokens for node A to query the weather. Node B in the public chain provides weather query services. Then, node A pays 10 securities exchanges to the account corresponding to node B, and node B sends the weather conditions inquired to node A, and then node A and node B jointly complete the transaction request initiated by node A. Among them, the payment of 10 Zentong and sending weather conditions can be recorded as the transaction information of the transaction in the blockchain of the public chain.
随着区块链技术的不断发展,出现了越来越多的针对不同领域的区块链网络。不同区块链网络之间存在差异,例如共识机制的不同,而且彼此之间缺乏统一有效的机制进行沟通。由于不同区块链网络之间无法进行跨链交易,导致基于区块链的交易被局限于单个区块链网络内部。With the continuous development of blockchain technology, more and more blockchain networks targeted at different fields have appeared. There are differences between different blockchain networks, such as different consensus mechanisms, and the lack of a unified and effective mechanism to communicate with each other. Because cross-chain transactions cannot be conducted between different blockchain networks, blockchain-based transactions are limited to a single blockchain network.
发明内容Summary of the Invention
本申请提供一种基于平行链的跨链交易方法、装置及区块链系统,可用于解决在现有技术中不同区块链网络之间无法进行跨链交易,导致基于区块链的交易被局限于单个区块链网络内部的问题。This application provides a cross-chain-based cross-chain transaction method, device, and blockchain system, which can be used to solve the problem that cross-chain transactions cannot be performed between different blockchain networks in the prior art, resulting in blockchain-based transactions being blocked. Problems confined to a single blockchain network.
第一方面,本申请提供一种基于平行链的跨链交易方法,所述方法包括:In a first aspect, the present application provides a cross-chain-based cross-chain transaction method, which includes:
确定交易发起链与交易目标链之间待完成的跨链交易;Determine the pending cross-chain transactions between the transaction initiation chain and the transaction target chain;
根据所述跨链交易,指示交易目标链支付所述跨链交易中所述交易发起链需求的交易内容;Instructing the transaction target chain to pay the transaction content required by the transaction initiation chain in the cross-chain transaction according to the cross-chain transaction;
当检测到所述交易目标链完成支付时,指示交易发起链支付所述跨链交易中所述交易目标链需求的交易内容。When it is detected that the transaction target chain has completed the payment, the transaction initiation chain is instructed to pay the transaction content required by the transaction target chain in the cross-chain transaction.
可选地,所述指示交易目标链支付所述跨链交易中所述交易发起链需求的交易内容,包括:Optionally, the transaction content that instructs the transaction target chain to pay for the transaction initiation chain requirement in the cross-chain transaction includes:
调用所述交易目标链的执行智能合约,生成第一交易指令,所述第一交易指令用于通知所述交易目标链支付所述跨链交易中所述交易发起链需求的交易内容;Calling the execution of the smart contract of the transaction target chain to generate a first transaction instruction, where the first transaction instruction is used to notify the transaction target chain to pay the transaction content required by the transaction initiation chain in the cross-chain transaction;
将所述第一交易指令发送给所述交易目标链,以使得所述交易目标链验证所述第一交易指令并支付所述交易发起链需求的交易内容。Sending the first transaction instruction to the transaction target chain, so that the transaction target chain verifies the first transaction instruction and pays transaction content required by the transaction initiation chain.
可选地,所述指示交易发起链支付所述跨链交易中所述交易目标链需求的交易内容,包括:Optionally, the transaction content that instructs the transaction initiation chain to pay for the transaction target chain demand in the cross-chain transaction includes:
调用所述交易发起链的执行智能合约,生成第二交易指令,所述第二交易指令用于通知所述交易发起链支付所述跨链交易中所述交易目标链需求的交易内容;Calling the execution of the smart contract of the transaction initiation chain to generate a second transaction instruction, where the second transaction instruction is used to notify the transaction initiation chain to pay the transaction content required by the transaction target chain in the cross-chain transaction;
将所述第二交易指令发送给所述交易目标链,以使得所述交易发起链验证所述第二交易指令并支付所述交易目标链需求的交易内容。Sending the second transaction instruction to the transaction target chain, so that the transaction initiation chain verifies the second transaction instruction and pays transaction content required by the transaction target chain.
可选地,所述确定交易发起链与交易目标链之间待完成的跨链交易,包括:Optionally, the determining a cross-chain transaction to be completed between the transaction initiation chain and the transaction target chain includes:
获取所述交易发起链发起的跨链交易;Obtaining a cross-chain transaction initiated by the transaction initiation chain;
检测所述跨链交易是否记录在平行链区块链中;Detecting whether the cross-chain transaction is recorded in a parallel chain blockchain;
若检测所述平行链区块链没有记录所述跨链交易,则确定所述跨链交易为待完成的跨链交易。If it is detected that the cross-chain blockchain does not record the cross-chain transaction, it is determined that the cross-chain transaction is a pending cross-chain transaction.
可选地,所述方法还包括:Optionally, the method further includes:
获取所述交易发起链或所述交易目标链的区块链;Obtaining a blockchain of the transaction initiation chain or the transaction target chain;
根据所述交易发起链或所述交易目标链的区块链,更新平行链区块链。Update the parallel chain blockchain according to the blockchain of the transaction initiation chain or the transaction target chain.
可选地,所述更新平行链区块链,包括:Optionally, the updating the parachain blockchain includes:
根据所述交易发起链或所述交易目标链的区块链,生成摘要信息,所述摘要信息用于指示将所述交易发起链或所述交易目标链的区块链中记录的交易;Generating summary information according to the blockchain of the transaction initiation chain or the transaction target chain, where the summary information is used to indicate a transaction recorded in the blockchain of the transaction initiation chain or the transaction target chain;
生成包括所述摘要信息的区块,以及添加所述区块至所述平行链区块链。Generate a block including the summary information, and add the block to the parachain blockchain.
第二方面,本申请提供一种基于平行链的区块链跨链交易装置,所述装置部署于平行链节点中,包括:In a second aspect, the present application provides a parachain-based blockchain cross-chain transaction device, which is deployed in a parachain node and includes:
交易确定模块,用于确定交易发起链与交易目标链之间待完成的跨链交易;A transaction determination module, for determining a cross-chain transaction to be completed between a transaction initiation chain and a transaction target chain;
交易指示模块,用于根据所述跨链交易,指示交易目标链支付所述跨链交易中所述交易发起链需求的交易内容;以及当检测到所述交易目标链完成支付时,指示交易发起链支付所述跨链交易中所述交易目标链需求的交易内容。A transaction instruction module, configured to instruct a transaction target chain to pay the transaction content required by the transaction initiation chain in the cross-chain transaction according to the cross-chain transaction; and when the transaction target chain is detected to complete the payment, instruct the transaction to initiate The transaction content required by the transaction target chain in the cross-chain transaction.
第三方面,本申请提供一种基于平行链的区块链系统,所述区块链系统包括:交易发起链、平行链、以及交易目标链,所述平行链由所述交易发起链和所述交易目标链的共有节点组成;In a third aspect, the present application provides a blockchain system based on a parallel chain. The blockchain system includes a transaction initiation chain, a parallel chain, and a transaction target chain. The common node composition of the transaction target chain is described;
所述平行链,用于确定所述交易发起链与所述交易目标链之间待完成的跨链交易;根据所述跨链交易,指示交易目标链支付所述跨链交易中所述交易发起链需求的交易内容;当检测到所述交易目标链完成支付时,指示交易发起链支付所述跨链交易中所述交易目标链需求的交易内容;The parallel chain is used to determine a cross-chain transaction to be completed between the transaction initiation chain and the transaction target chain; and according to the cross-chain transaction, instruct the transaction target chain to pay for the transaction initiation in the cross-chain transaction Transaction content required by the chain; when it is detected that the transaction target chain completes payment, instruct the transaction initiation chain to pay the transaction content required by the transaction target chain in the cross-chain transaction;
所述交易目标链,用于根据所述平行链的指示,支付所述跨链交易中所述交易发起链需求的交易内容;The transaction target chain is configured to pay the transaction content required by the transaction initiation chain in the cross-chain transaction according to an instruction of the parallel chain;
所述交易发起链,用于根据所述平行链的指示,支付所述跨链交易中所述交易目标链需求的交易内容。The transaction initiation chain is configured to pay for transaction content required by the transaction target chain in the cross-chain transaction according to an instruction of the parallel chain.
在本申请提供的方案中,平行链根据跨链交易指示交易发起链和交易目标链支付各自需要支付的交易内容,进而完成跨链交易。因为平行链节点是交易发起链和交易目标链的共有节点,所以平行链既能参与交易发起链的交易又能参与交易目标链的交易。平行链利用这一特性,在交易过程中,居中调控,连接交易发起链和交易目标链,克服了双方之间的差异,实现不同链之间的跨链交易,使得区块链的交易不再局限于单个区块链网络内部。In the solution provided by this application, the parallel chain instructs the transaction initiation chain and the transaction target chain to pay the transaction contents that need to be paid according to the cross-chain transaction, thereby completing the cross-chain transaction. Because the parachain node is a common node of the transaction initiation chain and the transaction target chain, the parachain can participate in both the transaction of the transaction initiation chain and the transaction of the transaction target chain. Parachain uses this feature to centrally regulate and connect the transaction initiation chain and the transaction target chain during the transaction process, overcoming the differences between the two parties, achieving cross-chain transactions between different chains, and making blockchain transactions no longer Limited to a single blockchain network.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to explain the technical solutions in the embodiments of the present application more clearly, the drawings used in the description of the embodiments are briefly introduced below. Obviously, the drawings in the following description are just some embodiments of the application. For those of ordinary skill in the art, other drawings can be obtained according to these drawings without paying creative labor.
图1是示出的交易发起链、交易目标链以及平行链之间的网络架构的示意图;1 is a schematic diagram showing a network architecture between a transaction initiation chain, a transaction target chain, and a parallel chain;
图2是根据一示例性实施例示出的基于平行链的跨链交易的流程示意图;Fig. 2 is a schematic flowchart of a cross-chain-based cross-chain transaction according to an exemplary embodiment;
图3是根据一示例性实施例示出的平行链确定待完成的跨链交易的流程图;Fig. 3 is a flow chart showing a parachain determining a cross-chain transaction to be completed according to an exemplary embodiment;
图4是根据一示例性实施例示出的平行链指示交易目标链支付交易内容的流程示意图;Fig. 4 is a schematic flowchart of a parallel chain instruction transaction target chain payment transaction content according to an exemplary embodiment;
图5是根据一示例性实施例示出的平行链指示交易发起链支付交易内容的流程示意图;Fig. 5 is a schematic flow chart showing the contents of a parallel chain instruction transaction initiation chain payment transaction according to an exemplary embodiment;
图6是根据一示例性实施例示出的基于平行链的跨链交易装置的框图。Fig. 6 is a block diagram showing a parachain-based cross-chain transaction device according to an exemplary embodiment.
具体实施方式detailed description
下面将详细地对实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下实施例中描述的实施方式并不代表与本申请相一致的所有实施方式。仅是与权利要求书中所详述的、本申请的一些方面相一致的系统和方法的示例。The embodiments will be described in detail below, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following examples do not represent all implementations consistent with this application. These are merely examples of systems and methods consistent with some aspects of the application as detailed in the claims.
在本申请提供的技术方案中,区块链网络是指区块链节点形成的一个点对点的网络,该区块链网络能够进行分布式存储、公共共识、数字加密、交易记账以及验证。区块链或区块链区块中的数据信息是在区块链网络中发生交易时,区块链的节点根据交易记录的交易信息。其中,一个区块包括多笔交易的交易信息,而多个区块又形成一条区块链。区块链网络中的各个节点可以是物理节点,如终端、服务器,也可以是虚拟节点。同一区块链网络中的节点基于同一共识机制,沟通维护区块链网络的运行。In the technical solution provided in this application, the blockchain network refers to a point-to-point network formed by blockchain nodes. The blockchain network can perform distributed storage, public consensus, digital encryption, transaction accounting, and verification. The data information in the blockchain or blockchain block is the transaction information of the nodes of the blockchain according to the transaction records when a transaction occurs in the blockchain network. Among them, one block includes transaction information of multiple transactions, and multiple blocks form a block chain. Each node in the blockchain network can be a physical node, such as a terminal, a server, or a virtual node. Nodes in the same blockchain network communicate and maintain the operation of the blockchain network based on the same consensus mechanism.
在本申请中,交易发起链、交易目标链以及平行链,均是指符合区块链技术的不同区块链网络。交易发起链是指发起跨链交易的区块链网络,而交易目标链是该跨链交易的交易对像所在的区块链网络。交易发起链和交易目标链是各自独立的区块链网络,如比特币和以太坊,或者,不同行业开发的行业链和联盟链,甚至是不同的私有 链或公链。这些各自独立的区块链网络由于存在差异,例如共识机制的不同,彼此之间不能进行通信或交易。因此,在本申请提供的技术方案中,交易发起链和交易目标链提通过平行链来连接。In this application, the transaction initiation chain, transaction target chain, and parachain refer to different blockchain networks that conform to the blockchain technology. The transaction initiation chain refers to the blockchain network that initiated the cross-chain transaction, and the transaction target chain is the blockchain network where the transaction object of the cross-chain transaction is located. The transaction initiation chain and the transaction target chain are independent blockchain networks, such as Bitcoin and Ethereum, or industry and alliance chains developed by different industries, or even different private or public chains. Due to the differences between these independent blockchain networks, such as different consensus mechanisms, they cannot communicate or trade with each other. Therefore, in the technical solution provided in this application, the transaction initiation chain and the transaction target chain are connected by a parallel chain.
在本申请中,平行链由交易发起链和交易目标链的共有节点组成。因为平行链节点是交易发起链和交易目标链的共有节点,所以平行链同时具有交易发起链和交易目标链的功能,并存储有双方的区块链。因此,平行链能够对一侧区块链网络中的信息进行转化,再传递给另一侧的区块链网络。通过平行链中的桥接作用,交易发起链和交易目标链之间可以进行通信或交易。In this application, the parachain is composed of the common nodes of the transaction initiation chain and the transaction target chain. Because the parachain node is a common node of the transaction initiation chain and the transaction target chain, the parachain has both the function of the transaction initiation chain and the transaction target chain, and stores both parties' blockchains. Therefore, the parallel chain can transform the information in the blockchain network on one side and then transfer it to the blockchain network on the other side. Through the bridging effect in the parallel chain, communication or transaction can be performed between the transaction initiation chain and the transaction target chain.
示例性地,如图1所示,其示出了交易发起链、交易目标链以及平行链之间的网络架构的示意图。平行链节点101作为交易发起链11和交易目标链12共有节点,既能够与交易发起链节点111连接通信,又能够与交易目标链节点121连接通信。For example, as shown in FIG. 1, it shows a schematic diagram of a network architecture between a transaction initiation chain, a transaction target chain, and a parallel chain. As a common node of the transaction initiation chain 11 and the transaction target chain 12, the parallel chain node 101 can both communicate with the transaction initiation chain node 111 and communicate with the transaction target chain node 121.
参见图2,其示例性地示出了本申请一种基于平行链的跨链交易方法的流程示意图。该方法包括以下步骤。Referring to FIG. 2, a schematic flowchart of a cross-chain-based cross-chain transaction method according to the present application is exemplarily shown. The method includes the following steps.
S20,确定交易发起链与交易目标链之间待完成的跨链交易。S20: Determine a cross-chain transaction to be completed between the transaction initiation chain and the transaction target chain.
在本申请提供的方案中,交易发起链和交易目标链之间的跨链交易需要通过平行链完成。因此,由平行链确定交易发起链与交易目标链之间待完成的跨链交易。待完成的跨链交易是指已经发送至平行链、但尚未完成的跨链交易,其中包括了交易相关的信息,如交易双方的地址信息、交易条件和双方需要支付的交易内容等等。一笔交易是指交易双方按照交易条件,各自支付对方需求的交易内容。因此,一笔跨链交易实际包括两笔子交易。一笔子交易是交易发起链向及交易目标链支付交易目标链需求的交易内容。另一笔子交易是交易目标链向交易发起链支付交易发起链需求的交易内容。因此,完成一笔跨链交易,需要完成跨链交易中的两笔子交易。In the solution provided in this application, cross-chain transactions between the transaction initiation chain and the transaction target chain need to be completed through a parallel chain. Therefore, the parallel chain determines the cross-chain transaction to be completed between the transaction initiation chain and the transaction target chain. A pending cross-chain transaction refers to a cross-chain transaction that has been sent to a parallel chain but has not yet been completed. It includes transaction-related information, such as the address information of the two parties to the transaction, the transaction conditions, and the transaction content that both parties need to pay. A transaction refers to the transaction content of both parties in accordance with the transaction conditions. Therefore, a cross-chain transaction actually includes two sub-transactions. A sub-transaction is the transaction content of the transaction initiation chain and the transaction target chain to pay for the transaction target chain. Another sub-transaction is the transaction content that the transaction target chain pays to the transaction initiation chain. Therefore, to complete a cross-chain transaction, two sub-transactions in the cross-chain transaction need to be completed.
示例性地,交易发起链A与交易目标链B之间的跨链交易是:以50个交易发起链A的证通a,换取5个交易目标链B的证通b。那么,这笔跨链交易实际包括的两笔子交易分别为:交易发起链向交易目标链支付50个证通A,以及交易目标链向交易发起链支付5个证通b。Exemplarily, the cross-chain transaction between the transaction initiation chain A and the transaction target chain B is: 50 transactions initiating the Zhengtong a of the chain A, in exchange for 5 transactions in the trading target chain B. Then, the two sub-transactions actually included in this cross-chain transaction are: the transaction initiation chain pays 50 STOs A to the transaction target chain, and the transaction target chain pays 5 STOs b to the transaction initiation chain.
进一步地,如图3所示,上述步骤S20,平行链确定交易发起链与交易目标链之间待完成的跨链交易,包括如下子步骤。Further, as shown in FIG. 3, in the above step S20, the parallel chain determines the cross-chain transaction to be completed between the transaction initiation chain and the transaction target chain, including the following sub-steps.
S201,获取交易发起链发起的跨链交易。S201. Obtain a cross-chain transaction initiated by a transaction initiation chain.
S202,检测跨链交易是否记录在平行链区块链中。S202: Detect whether cross-chain transactions are recorded in a parallel chain blockchain.
S203,若检测平行链区块链没有记录跨链交易,则确定跨链交易为待完成的跨链交易。S203: If it is detected that the cross-chain blockchain does not record cross-chain transactions, it is determined that the cross-chain transactions are pending cross-chain transactions.
要确定待完成的跨链交易,平行链需要先获取到该跨链交易。在区块链网络中,发起交易的节点称为交易节点。交易发起链中的交易节点发起一笔跨链交易,并在交易发起链中广播该跨链交易。相应地,平行链节点接收到该跨链交易,则平行链获取到交易发起链发起的跨链交易。To determine the cross-chain transaction to be completed, the parallel chain needs to obtain the cross-chain transaction first. In the blockchain network, the nodes that initiate transactions are called transaction nodes. The transaction nodes in the transaction initiation chain initiate a cross-chain transaction and broadcast the cross-chain transaction in the transaction initiation chain. Correspondingly, when the parachain node receives the cross-chain transaction, the parachain obtains the cross-chain transaction initiated by the transaction initiation chain.
在本申请实施例中,由于交易发起链发起的跨链交易实际包括两笔子交易,需要平行链来指示交易发起链和交易目标链完成这两笔子交易。因此,交易发起链发起的 跨链交易的方式包括两种类型。In the embodiment of the present application, since the cross-chain transaction initiated by the transaction initiation chain actually includes two sub-transactions, a parallel chain is required to instruct the transaction initiation chain and the transaction target chain to complete the two sub-transactions. Therefore, there are two types of cross-chain transactions initiated by the transaction initiation chain.
第一种,交易发起链发起一个交易请求来发起跨链交易。该交易请求中仅包括与跨链交易相关的信息,例如交易条件、交易双方的地址信息等等。交易节点将该交易请求发送给平行链。相应地,平行链根据交易请求中的信息确定对应的跨链交易。First, the transaction initiation chain initiates a transaction request to initiate a cross-chain transaction. The transaction request only includes information related to cross-chain transactions, such as transaction conditions, address information of both parties to the transaction, and so on. The transaction node sends the transaction request to the parachain. Accordingly, the parallel chain determines the corresponding cross-chain transaction according to the information in the transaction request.
第二种,交易发起链发起一笔触发交易来发起跨链交易。该触发交易是一种特殊交易,其交易形式与交易发起链中的普通交易形式相同,但需要特殊约定具体的交易方式,例如约定转账的证通数量为0的交易。交易发起链发起该触发交易,交易对象是跨链交易智能合约。完成该触发交易的节点,通过触发跨链交易智能合约,生成一个交易结果。该交易结果包括与跨链交易相关的信息。交易发起链节点生成一个包含该交易结果的区块添加至区块链中,并进行广播。相应地,平行链获取到区块中的交易结果后,确定交易发起链所发起的跨链交易。Second, the transaction initiation chain initiates a trigger transaction to initiate a cross-chain transaction. This trigger transaction is a special transaction. The transaction form is the same as the ordinary transaction form in the transaction initiation chain, but it requires a specific agreement on the specific transaction method, such as a transaction with an agreed number of STOs to be transferred. The transaction initiation chain initiates the trigger transaction, and the transaction object is a cross-chain transaction smart contract. The node that completes the triggered transaction generates a transaction result by triggering a cross-chain transaction smart contract. The transaction results include information related to cross-chain transactions. The transaction initiation chain node generates a block containing the result of the transaction, adds it to the blockchain, and broadcasts it. Correspondingly, after the parallel chain obtains the transaction results in the block, it determines the cross-chain transaction initiated by the transaction initiation chain.
示例性地,交易发起链发起一笔触发交易,该触发交易为向跨链交易智能合约支付1个证通;并且,触发交易中包括与跨链交易相关的信息。完成该触发交易的节点执行跨链交易智能合约,生成一个包含交易结果的区块添加至区块链中,并进行广播。相应地,由于该节点完成的触发交易,获取触发交易中向跨链交易智能合约支付的1个证通作为奖励证通。Exemplarily, the transaction initiation chain initiates a trigger transaction, and the trigger transaction is to pay 1 Zhengtong to the cross-chain transaction smart contract; and the trigger transaction includes information related to the cross-chain transaction. The node that completes the triggered transaction executes a cross-chain transaction smart contract, generates a block containing the transaction result, adds it to the blockchain, and broadcasts it. Correspondingly, due to the triggered transaction completed by this node, one token pass paid to the cross-chain transaction smart contract in the triggered transaction is obtained as a reward token pass.
平行链存储的区块链包括交易发起链的区块链和交易目标链的区块链,而交易发起链和交易目标链的区块链中,记录有各自完成的交易。因此,平行链可以检测跨链交易是否记录在平行链区块链中,来确定跨链交易是否完成;若跨链交易记录在平行链区块链中,则确定该跨链交易已完成;若跨链交易没有记录在平行链区块链中,在确定该跨链交易待完成。其中,跨链交易记录在平行链区块链中,是指跨链交易中的两笔子交易都已记录在平行链区块链中。The blockchains stored in the parallel chain include the blockchain of the transaction initiation chain and the transaction target chain. The transaction initiation chain and the transaction target chain have their respective completed transactions recorded. Therefore, the parachain can detect whether the cross-chain transaction is recorded in the parachain blockchain to determine whether the cross-chain transaction is completed; if the cross-chain transaction is recorded in the parachain blockchain, it is determined that the cross-chain transaction has been completed; if Cross-chain transactions are not recorded in the parachain blockchain, and it is determined that the cross-chain transaction is to be completed. Among them, cross-chain transactions are recorded in the parallel chain blockchain, which means that two sub-transactions in the cross-chain transaction have been recorded in the parallel chain blockchain.
示例性地,交易发起链A与交易目标链B之间的跨链交易是:以50个交易发起链A的证通a,换取5个交易目标链B的证通b。那么,平行链在平行链区块链中检测是否记录了交易发起链A向交易目标链B支付50个证通a,以及是否记录了交易目标链B向交易发起链A支付5个证通b。Exemplarily, the cross-chain transaction between the transaction initiation chain A and the transaction target chain B is: 50 transactions initiating the Zhengtong a of the chain A, in exchange for 5 transactions in the trading target chain B. Then, in the parachain blockchain, parachain detects whether the transaction initiation chain A has paid 50 tokens a to the transaction target chain B, and whether the transaction target chain B has paid 5 tokens b to the transaction initiation chain A. .
在另一种的实施例中,平行链可以通过调用查询智能合约确定待完成的跨链交易。由于跨链交易包括两笔子交易,因此,平行链可以通过交易发起链与交易目标链各自的查询智能合约,分别查询两笔子交易。对于交易发起链需要完成的子交易,平行链调用交易发起链中的查询智能合约,查询子交易是否完成;对于交易目标链需要完成的子交易,平行链调用交易目标链中的查询智能合约,查询子交易是否完成。In another embodiment, the parallel chain may determine a cross-chain transaction to be completed by calling a query smart contract. Because cross-chain transactions include two sub-transactions, the parallel chain can query the two smart transactions through the transaction initiation chain and the transaction target chain respectively. For the sub-transactions that need to be completed in the transaction initiation chain, the parallel chain calls the query smart contract in the transaction initiation chain to check whether the sub-transaction is completed; for the sub-transactions that the transaction target chain needs to complete, the parallel chain calls the query smart contract in the transaction target chain Query whether the sub-transaction is completed.
在一种可能的实施方式中,交易节点发起跨链交易前,先发起一笔查询交易。其中,查询交易包括交易发起链所需要的交易内容和交易发起链所能支付的交易内容。平行链根据查询交易,确定交易目标链是否能够与交易发起链达成交易。若交易目标链中有能够与交易节点达成交易的目标节点,则平行链将该目标节点的相关信息发送给交易节点,如目标节点的地址信息和交易条件等等。交易节点根据目标节点的相关信息发起跨链交易。In a possible implementation manner, before a transaction node initiates a cross-chain transaction, it first initiates a query transaction. The query transaction includes the transaction content required by the transaction initiation chain and the transaction content that the transaction initiation chain can pay. According to the query transaction, the parallel chain determines whether the transaction target chain can reach a transaction with the transaction initiation chain. If there is a target node in the transaction target chain that can reach a transaction with the transaction node, the parallel chain sends the relevant information of the target node to the transaction node, such as the address information and transaction conditions of the target node. The transaction node initiates cross-chain transactions according to the relevant information of the target node.
示例性地,交易节点A1希望以50个交易发起链A的证通a,换取5个交易目标链B的证通b。因此,交易节点A1发起一笔查询交易。平行链根据查询交易确定交易 节点A1需要5个证通A,并且能够支付50个证通b。平行链根据查询交易的内容,查询交易目标链B是否有能够与交易节点A1达成交易的目标节点B1。交易目标链B中有一个节点需要50个证通A,并愿意支付最多7个证通b。那么,平行链将该节点作为目标节点,并将目标节点的相关信息发送给交易节点A1。交易节点A1根据目标节点B1的相关信息发起跨链交易。Exemplarily, the transaction node A1 hopes to initiate Zentong a of chain A with 50 transactions in exchange for Zentong b of 5 transaction target chains B. Therefore, transaction node A1 initiates a query transaction. Parallel chain determines the transaction according to the query transaction. Node A1 needs 5 STOs A and can pay 50 STOs b. According to the content of the query transaction, the parallel chain queries whether the transaction target chain B has a target node B1 that can reach a transaction with the transaction node A1. One node in the transaction target chain B requires 50 STOs A and is willing to pay up to 7 STOs b. Then, the parallel chain uses the node as a target node, and sends related information of the target node to the transaction node A1. The transaction node A1 initiates a cross-chain transaction according to the relevant information of the target node B1.
在另一种可能的实施方式中,交易节点直接发起跨链交易。跨链交易中同样包括交易发起链所需要的交易内容和交易发起链所能支付的交易内容,但并未指明最为交易对象的目标节点。平行链根据该跨链交易,确定交易目标链是否能够与交易发起链达成交易。若交易目标链中有能够与交易节点达成交易的目标节点,则平行链直接执行后续跨链交易的步骤;若交易目标链中没有能够与交易节点达成交易的目标节点,则平行链通知交易节点交易失败。In another possible implementation manner, the transaction node directly initiates a cross-chain transaction. Cross-chain transactions also include the transaction content required by the transaction initiation chain and the transaction content that the transaction initiation chain can pay, but it does not specify the target node that is the most transaction target. According to the cross-chain transaction, the parallel chain determines whether the transaction target chain can reach a transaction with the transaction initiation chain. If there is a target node in the transaction target chain that can reach a transaction with the transaction node, the parallel chain directly performs the subsequent cross-chain transaction steps; if there is no target node in the transaction target chain that can reach a transaction with the transaction node, the parallel chain notifies the transaction node transaction failed.
S21,指示交易目标链支付跨链交易中交易发起链需求的交易内容。S21, indicating the transaction content of the transaction initiation chain demand in the transaction target chain payment cross-chain transaction.
平行链确定待完成的跨链交易后,根据待完成的跨链交易,先指示交易目标链支付跨链交易中交易发起链需求的交易内容。具体地,由于平行链节点也是交易目标链中的节点,因此,平行链具有交易目标链的完整功能,可以直接调用交易目标链的执行智能合约,来指示交易目标链支付跨链交易中交易发起链需求的交易内容。平行链调用交易目标链的执行智能合约,由交易目标链中的维护者节点来完成相应的子交易,即支付跨链交易中交易发起链需求的交易内容。其中,维护者节点是在区块链网络中负责维护区块链的节点,拥有记账的权力。交易目标链中的维护者节点在完成相应的子交易后,会在生成的区块中记录该子交易。交易目标链与平行链区块同步,即平行链同步交易目标链的区块链。After the parallel chain determines the pending cross-chain transaction, according to the pending cross-chain transaction, the transaction target chain is first instructed to pay for the transaction content of the transaction initiation chain demand in the cross-chain transaction. Specifically, since the parachain node is also a node in the transaction target chain, the parachain has the full function of the transaction target chain, and can directly call the execution of the smart contract of the transaction target chain to instruct the transaction target chain to pay for transaction initiation in the cross-chain transaction The transaction content of the chain demand. The parallel chain invokes the execution of the smart contract of the transaction target chain, and the maintainer node in the transaction target chain completes the corresponding sub-transactions, that is, the transaction content required by the transaction initiation chain in the payment of cross-chain transactions. Among them, the maintainer node is the node responsible for maintaining the blockchain in the blockchain network and has the right to keep accounts. After the maintainer node in the transaction target chain completes the corresponding sub-transaction, it will record the sub-transaction in the generated block. The transaction target chain is synchronized with the parallel chain block, that is, the parallel chain synchronizes the block chain of the transaction target chain.
进一步地,如图4所示,上述步骤S21,平行链指示交易目标链支付跨链交易中交易发起链需求的交易内容,包括如下子步骤。Further, as shown in FIG. 4, in the above step S21, the parallel chain instructs the transaction target chain to pay the transaction content of the transaction initiation chain demand in the cross-chain transaction, including the following sub-steps.
S211,平行链调用交易目标链的执行智能合约,生成第一交易指令。S211. The parallel chain invokes the execution of the smart contract of the transaction target chain to generate a first transaction instruction.
S212,平行链将第一交易指令发送给交易目标链。S212. The parallel chain sends the first transaction instruction to the transaction target chain.
S213,交易目标链支付跨链交易中交易发起链需求的交易内容。S213: The transaction content of the transaction initiation chain demand in the transaction target chain payment cross-chain transaction.
平行链调用交易目标链的执行智能合约,生成第一交易指令。由于第一交易指令用于通知交易目标链支付跨链交易中交易发起链需求的交易内容,因此,第一交易指令包括了支付相关的信息,如地址信息、具体需要支付的交易内容。平行链将第一交易指令发送给交易目标链,即在交易目标链中广播第一交易指令。当交易发起链中的维护者节点接收到该第一交易指令后,验证第一交易指令,支付跨链交易中交易发起链需求的交易内容,并在生成的区块中进行记录。交易发起链广播生成的区块,在交易发起链的节点中达成共识,确认支付完成。The parachain calls the execution of the smart contract of the transaction target chain to generate a first transaction instruction. Since the first transaction instruction is used to notify the transaction target chain of the transaction content of the transaction initiation chain demand in the cross-chain transaction, the first transaction instruction includes payment-related information, such as address information and specific transaction content to be paid. The parallel chain sends the first transaction instruction to the transaction target chain, that is, the first transaction instruction is broadcast in the transaction target chain. When the maintainer node in the transaction initiation chain receives the first transaction instruction, it verifies the first transaction instruction, pays for the transaction content required by the transaction initiation chain in the cross-chain transaction, and records it in the generated block. The block generated by the transaction initiation chain broadcasts a consensus among the nodes in the transaction initiation chain and confirms that the payment is complete.
在本申请提供的技术方案中,跨链交易一般包括两种类型:证通兑换和信息服务。其中,证通兑换是指用交易发起链的证通兑换交易目标链的证通;信息服务是指交易发起链向交易目标链支付一定数量的证通,购买交易目标链向交易发起链发送相应的信息数据,或者,交易发起链向交易目标链发送信息数据,换取一定数量的证通。但无论是证通兑换,还是信息服务,都是数据操作或数据操作结果。例如,交易发起链向交易目标链支付一定数量的交易发起链的证通时,维护者节点实际是将一定数量的 证通,由交易节点对应的账户转移至目标节点对应的账户。由于支付的是交易发起链的证通,因此该转账操作是在交易发起链中完成的,不涉及交易发起链和交易目标链之间的跨链操作。因此,维护者节点确定交易节点和目标节点各自账户的地址信息和交易条件等信息后,即可完成交易节点和目标节点之间交易内容的支付。In the technical solution provided in this application, cross-chain transactions generally include two types: exchange of information exchange and information services. Among them, the STO exchange refers to the use of the STO of the transaction initiation chain to exchange the STO of the transaction target chain; the information service means that the transaction initiation chain pays a certain amount of STO to the transaction target chain, and the purchase of the transaction target chain sends the corresponding Or the transaction initiation chain sends the information data to the transaction target chain in exchange for a certain amount of securities. However, whether it is a stock exchange or an information service, it is a data operation or the result of a data operation. For example, when the transaction initiation chain pays a certain number of transactions in the transaction initiation chain to the transaction target chain, the maintainer node actually transfers a certain number of securities in the transaction to the account corresponding to the target node. Because the payment is made through the transaction initiation chain, the transfer operation is completed in the transaction initiation chain and does not involve cross-chain operations between the transaction initiation chain and the transaction target chain. Therefore, after the maintainer node determines the address information and transaction conditions of the respective accounts of the transaction node and the target node, it can complete the payment of the transaction content between the transaction node and the target node.
示例性地,跨链交易为信息服务,交易发起链A向交易目标链B支付50个交易发起链A的证通a,购买交易目标链B提供的天气信息。在平行链指示交易目标链B支付的交易内容为具体的天气信息。交易目标链B中的维护者节点B2,根据交易节点A1的地址信息,向交易发起链A中的交易节点A1对应的账户发送具体的天气信息。Exemplarily, the cross-chain transaction is an information service, and the transaction initiation chain A pays 50 transaction initiation chains A of the transaction initiation chain A to the transaction target chain B to purchase weather information provided by the transaction target chain B. In the parallel chain, the transaction content paid by the transaction target chain B is specific weather information. The maintainer node B2 in the transaction target chain B sends specific weather information to the account corresponding to the transaction node A1 in the transaction initiation chain A according to the address information of the transaction node A1.
需要说明的是,在待完成的跨链交易中,可能出现交易目标链已经支付了相应的交易内容,而交易发起链未支付的情况。对于这种待完成的跨链交易,平行链不再执行步骤S21,而是直接执行步骤S22。It should be noted that in the cross-chain transactions to be completed, there may be cases where the transaction target chain has already paid the corresponding transaction content, and the transaction initiation chain has not paid. For such a cross-chain transaction to be completed, the parallel chain no longer executes step S21, but directly executes step S22.
S22,当检测到交易目标链完成支付时,指示交易发起链支付跨链交易中交易目标链需求的交易内容。S22. When it is detected that the transaction target chain completes payment, instruct the transaction initiation chain to pay for the transaction content required by the transaction target chain in the cross-chain transaction.
平行链在指示交易目标链支付交易发起链需求的交易内容后,需要检测交易目标链是否完成支付。只有交易目标链完成支付时,平行链才能指示交易发起链支付跨链交易中交易目标链需求的交易内容。因为交易目标链中的维护者节点会在生成的区块中记录已支付交易内容,并在交易目标链中广播区块链,所以平行链可以根据平行链区块链中同步的交易目标链区块链,检测交易目标链是否完成支付。After the parallel chain instructs the transaction target chain to pay for the transaction content required by the transaction initiation chain, it is necessary to check whether the transaction target chain has completed the payment. Only when the transaction target chain completes the payment, the parallel chain can indicate the transaction content required by the transaction target chain in the transaction initiation chain payment cross-chain transaction. Because the maintainer node in the transaction target chain will record the paid transaction content in the generated block and broadcast the blockchain in the transaction target chain, the parallel chain can be based on the synchronized transaction target chain area in the parallel chain blockchain Block chain, to check whether the transaction target chain has completed the payment.
在本申请另一实施例中,平行链可以通过调用交易目标链的查询智能合约,来检测交易目标链是否完成支付。因为根据平行链区块链检测交易目标链是否完成支付的方式,需要平行链先同步交易目标链的区块链。当交易目标链已经支付了交易内容,但平行链尚未同步交易目标链的区块链时,平行链无法得知交易目标链已完成支付。但平行链可以通过调用查询智能合约来查询,能够更快地确定交易目标链已完成支付,提高跨链交易的效率。In another embodiment of the present application, the parallel chain may detect whether the transaction target chain has completed the payment by invoking the transaction target chain to query the smart contract. Because the method of detecting whether the transaction target chain has completed the payment according to the parallel chain blockchain, the parallel chain needs to synchronize the blockchain of the transaction target chain first. When the transaction target chain has paid for the transaction content, but the parallel chain has not synchronized the transaction target chain's blockchain, the parallel chain cannot know that the transaction target chain has completed the payment. However, the parallel chain can be queried by calling the query smart contract, which can more quickly determine that the transaction target chain has completed payment, and improve the efficiency of cross-chain transactions.
与平行链指示交易目标链支付交易内容的方式相似,由于平行链节点也是交易发起链中的节点,因此,平行链具有交易发起链的完整功能,可以直接调用交易发起链的执行智能合约,来指示交易发起链支付跨链交易中交易发起链需求的交易内容。具体地,平行链调用交易发起链的执行智能合约,由交易发起链中的维护者节点来完成相应的子交易,即支付交易目标链需求的交易内容。交易发起链中的维护者节点在完成相应的子交易后,会在生成的区块中进行记录。交易发起链与平行链区块同步,即平行链同步交易发起链的区块链。Similar to the way that the parallel chain indicates the transaction target chain to pay for the transaction content, since the parallel chain node is also a node in the transaction initiation chain, therefore, the parallel chain has the full function of the transaction initiation chain, and can directly call the transaction initiation chain to execute the smart contract. Indicate the transaction content of the transaction initiation chain payment in the transaction initiation chain payment cross-chain transaction. Specifically, the parallel chain invokes the execution of the smart contract of the transaction initiation chain, and the maintainer node in the transaction initiation chain completes the corresponding sub-transaction, that is, the transaction content required to pay the transaction target chain. The maintainer node in the transaction initiation chain will record in the generated block after completing the corresponding sub-transaction. The transaction initiation chain is synchronized with the parallel chain block, that is, the parallel chain synchronizes the transaction initiation chain block chain.
在交易发起链完成支付后,平行链可以通过检测平行链区块链或调用交易发起链的查询智能合约,来确定交易发起链已完成支付,进而确定跨链交易完成。After the transaction initiation chain completes the payment, the parallel chain can determine whether the transaction initiation chain has completed the payment by detecting the parallel chain blockchain or invoking the smart contract of the transaction initiation chain to query the completion of cross-chain transactions.
进一步地,如图5所示,上述步骤S22,平行链指示交易发起链支付跨链交易中交易目标链需求的交易内容,包括如下子步骤。Further, as shown in FIG. 5, in the above step S22, the parallel chain instructs the transaction content of the transaction target chain demand in the transaction initiation chain payment cross-chain transaction, including the following sub-steps.
S221,平行链调用交易发起链的执行智能合约,生成第二交易指令。S221. The parallel chain invokes the execution of the smart contract of the transaction initiation chain to generate a second transaction instruction.
S222,平行链将第二交易指令发送给交易发起链。S222. The parallel chain sends the second transaction instruction to the transaction initiation chain.
S223,交易发起链支付跨链交易中交易目标链需求的交易内容。S223: The transaction content of the transaction target chain demand in the transaction initiation chain payment cross-chain transaction.
平行链调用交易发起链的执行智能合约,生成第二交易指令。由于第二交易指令 用于通知交易发起链支付交易目标链需求的交易内容,因此,第二交易指令包括了支付相关的交易信息,如地址信息、以及具体需要支付的交易内容。平行链将第二交易指令发送给交易目标链,即在交易目标链中广播第二交易指令。当交易发起链中的维护者节点接收到该第二交易指令后,验证第二交易指令,支付交易发起链需求的交易内容,并在生成的区块中记录该交易。交易目标链广播生成的区块,在交易目标链的节点中达成共识,确认支付完成。The parallel chain invokes the execution of the smart contract of the transaction initiation chain to generate a second transaction instruction. Because the second transaction instruction is used to notify the transaction content of the transaction initiation chain payment transaction target chain requirement, the second transaction instruction includes payment-related transaction information, such as address information, and specific transaction content that needs to be paid. The parallel chain sends the second transaction instruction to the transaction target chain, that is, the second transaction instruction is broadcast in the transaction target chain. When the maintainer node in the transaction initiation chain receives the second transaction instruction, it verifies the second transaction instruction, pays for the transaction content required by the transaction initiation chain, and records the transaction in the generated block. The transaction target chain broadcasts the generated block, and a consensus is reached among the nodes of the transaction target chain to confirm that the payment is completed.
示例性地,跨链交易为信息服务,交易发起链A向交易目标链B支付50个交易发起链A的证通a,购买交易目标链B提供的天气信息。在平行链指示交易发起链A支付的交易内容为50个证通a。交易发起链A中的维护者节点,根据第二交易指令中的地址信息,向交易目标链B中的目标节点B1支付50个证通a。Exemplarily, the cross-chain transaction is an information service, and the transaction initiation chain A pays 50 transaction initiation chains A of the transaction initiation chain A to the transaction target chain B to purchase weather information provided by the transaction target chain B. In the parallel chain, the transaction content of the transaction initiation chain A payment is 50 Zhengtong a. The maintainer node in the transaction initiation chain A, according to the address information in the second transaction instruction, pays 50 tokens a to the target node B1 in the transaction target chain B.
在一种可能的实施方式中,交易目标链在支付交易发起链需要的交易内容时,会锁定该交易内容。平行链确定交易发起链已完成支付后,将交易发起链已完成支付的信息发送给交易目标链。交易目标链在确定交易发起链支付了交易目标链需要的交易内容后,解锁自身支付的交易内容。通过对交易内容的锁定,防止因交易发起链不支付相应的交易内容,给交易发起链造成损失,达到抗抵赖的效果。In a possible implementation manner, the transaction target chain locks the transaction content when the transaction content required by the transaction initiation chain is paid. After the parallel chain determines that the transaction initiation chain has completed the payment, it sends the information that the transaction initiation chain has completed the payment to the transaction target chain. After determining that the transaction initiation chain has paid for the transaction content required by the transaction target chain, the transaction target chain unlocks the transaction content of its own payment. By locking the transaction content, it prevents the transaction initiation chain from paying the corresponding transaction content, which causes losses to the transaction initiation chain and achieves the effect of anti-repudiation.
在本申请实施例中,平行链根据跨链交易指示交易发起链和交易目标链支付各自需要支付的交易内容,进而完成跨链交易。因为平行链节点是交易发起链和交易目标链的共有节点,所以平行链既能参与交易发起链的交易又能参与交易目标链的交易。平行链利用这一特性,在交易过程中,居中调控,连接交易发起链和交易目标链,克服了双方之间的差异,实现不同链之间的跨链交易,使得区块链的交易不再局限于单个区块链网络内部。In the embodiment of the present application, the parallel chain instructs the transaction initiation chain and the transaction target chain to pay the transaction contents that need to be paid according to the cross-chain transaction, thereby completing the cross-chain transaction. Because the parachain node is a common node of the transaction initiation chain and the transaction target chain, the parachain can participate in both the transaction of the transaction initiation chain and the transaction of the transaction target chain. Parachain uses this feature to centrally regulate and connect the transaction initiation chain and the transaction target chain during the transaction process, overcoming the differences between the two parties, achieving cross-chain transactions between different chains, and making blockchain transactions no longer Limited to a single blockchain network.
在本申请提供的技术方案中,平行链在跨链交易的过程中,会同步交易发起链和交易目标链的区块链,以更新平行链区块链。由于平行链节点是交易发起链和交易目标链的共有节点,因此,平行链能够直接获取到交易发起链或交易目标链的区块链,并更新平行链区块链。具体地,在本申请提供的技术方案中,平行链区块链的有两种更新方式。In the technical solution provided in this application, in the process of cross-chain transactions, the parallel chain will synchronize the blockchain of the transaction initiation chain and the transaction target chain to update the parallel chain blockchain. Since the parachain node is a common node of the transaction initiation chain and the transaction target chain, the parachain can directly obtain the blockchain of the transaction initiation chain or the transaction target chain and update the parachain blockchain. Specifically, in the technical solution provided in this application, there are two update modes of the parallel chain blockchain.
在一种可能的实施方式中,对于通过平行链连接的区块链网络,平行链采用与该区块链网络相同的共识机制,同步更新平行链区块链。平行链节点作为该区块链网络中的节点,采用与其它节点相同的方式同步区块链。平行链区块链和该区块链网络的区块链相同。In a possible implementation manner, for a blockchain network connected through a parallel chain, the parallel chain uses the same consensus mechanism as the blockchain network to synchronize and update the parallel chain blockchain. As a node in the blockchain network, parachain nodes synchronize the blockchain in the same way as other nodes. The parallel chain blockchain is the same as the blockchain of the blockchain network.
在另一种可能的实施方式中,对于通过平行链连接的区块链网络,平行链区块链中仅记录该区块链网络中交易的摘要信息。具体地,在获取到交易发起链或交易目标链的区块链后,平行链根据交易发起链或交易目标链的区块链,生成摘要信息。该摘要信息用于指示对应区块链网络的区块链中记录的交易。平行链再生成包括摘要信息的区块,并添加该区块至平行链区块链,实现平行链区块链的更新。通过记录摘要信息,减少平行链需要存储的数据数量,减少对平行链上存储空间的占用。In another possible implementation manner, for a blockchain network connected through a parachain, only the summary information of transactions in the blockchain network is recorded in the parachain blockchain. Specifically, after acquiring the blockchain of the transaction initiation chain or the transaction target chain, the parallel chain generates summary information according to the blockchain of the transaction initiation chain or the transaction target chain. The summary information is used to indicate transactions recorded in the blockchain of the corresponding blockchain network. Parachain generates blocks that include summary information, and adds the block to the parachain blockchain to achieve the update of the parachain blockchain. By recording the summary information, the amount of data to be stored in the parallel chain is reduced, and the storage space on the parallel chain is reduced.
下述为本申请装置实施例,可以用于执行本申请方法实施例。对于本申请装置实 施例中未披露的细节,请参照本申请方法实施例。The following are device embodiments of the present application and can be used to implement the method embodiments of the present application. For details not disclosed in the device embodiments of the present application, please refer to the method embodiments of the present application.
图6是根据一示例性实施例示出的一种基于平行链的跨链交易装置的框图。该装置可以部署在平行链节点,具有实现上述方法示例的功能,所述功能可以由硬件实现,也可以由硬件执行相应的软件实现。该装置可以包括:交易确定模块601和交易指示模块602。Fig. 6 is a block diagram of a parachain-based cross-chain transaction device according to an exemplary embodiment. The device can be deployed at a parachain node and has a function for implementing the above method example, and the function can be implemented by hardware, or can be implemented by hardware executing corresponding software. The apparatus may include a transaction determination module 601 and a transaction instruction module 602.
交易确定模块601,用于确定交易发起链与交易目标链之间待完成的跨链交易。The transaction determination module 601 is configured to determine a cross-chain transaction to be completed between a transaction initiation chain and a transaction target chain.
交易指示模块602,用于根据所述跨链交易,指示交易目标链支付所述跨链交易中所述交易发起链需求的交易内容;以及当检测到所述交易目标链完成支付时,指示交易发起链支付所述跨链交易中所述交易目标链需求的交易内容。The transaction instruction module 602 is configured to instruct the transaction target chain to pay the transaction content required by the transaction initiation chain in the cross-chain transaction according to the cross-chain transaction; and when the transaction target chain is detected to complete the payment, instruct the transaction. The initiation chain pays for the transaction content required by the transaction target chain in the cross-chain transaction.
在本申请实施例提供的装置中,平行链根据跨链交易指示交易发起链和交易目标链支付各自需要支付的交易内容,进而完成跨链交易。因为平行链节点是交易发起链和交易目标链的共有节点,所以平行链既能参与交易发起链的交易又能参与交易目标链的交易。平行链利用这一特性,在交易过程中,居中调控,连接交易发起链和交易目标链,克服了双方之间的差异,实现不同链之间的跨链交易,使得区块链的交易不再局限于单个区块链网络内部。In the device provided in the embodiment of the present application, the parallel chain instructs the transaction initiation chain and the transaction target chain to pay the transaction contents that need to be paid according to the cross-chain transaction, thereby completing the cross-chain transaction. Because the parachain node is a common node of the transaction initiation chain and the transaction target chain, the parachain can participate in both the transaction of the transaction initiation chain and the transaction of the transaction target chain. Parachain uses this feature to centrally regulate and connect the transaction initiation chain and the transaction target chain during the transaction process, overcoming the differences between the two parties, achieving cross-chain transactions between different chains, and making blockchain transactions no longer Limited to a single blockchain network.
可选地,交易指示模块602,具体用于:调用所述交易目标链的执行智能合约,生成第一交易指令,所述第一交易指令用于通知所述交易目标链支付所述跨链交易中所述交易发起链需求的交易内容;将所述第一交易指令发送给所述交易目标链,以使得所述交易目标链验证所述第一交易指令并支付所述交易发起链需求的交易内容。Optionally, the transaction instruction module 602 is specifically configured to: call the execution of the smart contract of the transaction target chain to generate a first transaction instruction, and the first transaction instruction is used to notify the transaction target chain to pay the cross-chain transaction The transaction content required by the transaction initiation chain; sending the first transaction instruction to the transaction target chain, so that the transaction target chain verifies the first transaction instruction and pays for the transaction required by the transaction initiation chain content.
可选地,交易指示模块602,具体用于:调用所述交易发起链的执行智能合约,生成第二交易指令,所述第二交易指令用于通知所述交易发起链支付所述跨链交易中所述交易目标链需求的交易内容;将所述第二交易指令发送给所述交易目标链,以使得所述交易发起链验证所述第二交易指令并支付所述交易目标链需求的交易内容。Optionally, the transaction instruction module 602 is specifically configured to: call the execution of the smart contract of the transaction initiation chain to generate a second transaction instruction, and the second transaction instruction is used to notify the transaction initiation chain to pay the cross-chain transaction The transaction content required by the transaction target chain; sending the second transaction instruction to the transaction target chain, so that the transaction initiation chain verifies the second transaction instruction and pays for the transaction required by the transaction target chain content.
可选地,交易确定模块601,具体用于:获取所述交易发起链发起的跨链交易;检测所述跨链交易是否记录在平行链区块链中;当检测所述平行链区块链没有记录所述跨链交易时,确定所述跨链交易为待完成的跨链交易。Optionally, the transaction determination module 601 is specifically configured to: obtain cross-chain transactions initiated by the transaction initiation chain; detect whether the cross-chain transactions are recorded in a parallel chain blockchain; and when detecting the parallel chain blockchain When the cross-chain transaction is not recorded, it is determined that the cross-chain transaction is a pending cross-chain transaction.
可选地,所述装置还包括:区块更新模块。Optionally, the apparatus further includes: a block update module.
所述区块更新模块,用于获取所述交易发起链或所述交易目标链的区块链;根据所述交易发起链或所述交易目标链的区块链,更新平行链区块链。The block update module is configured to obtain the block chain of the transaction initiation chain or the transaction target chain; and update the parallel chain block chain according to the block chain of the transaction initiation chain or the transaction target chain.
可选地,所述区块更新模块,具体用于:根据所述交易发起链或所述交易目标链的区块链,生成摘要信息,所述摘要信息用于指示将所述交易发起链或所述交易目标链的区块链中记录的交易;生成包括所述摘要信息的区块,以及添加所述区块至所述平行链区块链。Optionally, the block update module is specifically configured to generate summary information according to the block chain of the transaction initiation chain or the transaction target chain, and the summary information is used to instruct the transaction initiation chain or Generate a block including the summary information, and add the block to the parachain blockchain.
基于上述交易方法,本申请还提供一种基于平行链的区块链系统,所述系统包括:交易发起链、平行链、以及交易目标链,所述平行链由所述交易发起链和所述交易目标链的共有节点组成;Based on the above transaction method, this application also provides a parallel chain-based blockchain system. The system includes a transaction initiation chain, a parallel chain, and a transaction target chain. The parallel chain is composed of the transaction initiation chain and the transaction chain. Composition of common nodes of the transaction target chain;
所述平行链,用于确定所述交易发起链与所述交易目标链之间待完成的跨链交易;根据所述跨链交易,指示交易目标链支付所述跨链交易中所述交易发起链需求的交易 内容;当检测到所述交易目标链完成支付时,指示交易发起链支付所述跨链交易中所述交易目标链需求的交易内容;The parallel chain is used to determine a cross-chain transaction to be completed between the transaction initiation chain and the transaction target chain; and according to the cross-chain transaction, instruct the transaction target chain to pay for the transaction initiation in the cross-chain transaction Transaction content required by the chain; when it is detected that the transaction target chain completes payment, instruct the transaction initiation chain to pay the transaction content required by the transaction target chain in the cross-chain transaction;
所述交易目标链,用于根据所述平行链的指示,支付所述跨链交易中所述交易发起链需求的交易内容;The transaction target chain is configured to pay the transaction content required by the transaction initiation chain in the cross-chain transaction according to an instruction of the parallel chain;
所述交易发起链,用于根据所述平行链的指示,支付所述跨链交易中所述交易目标链需求的交易内容。The transaction initiation chain is configured to pay for transaction content required by the transaction target chain in the cross-chain transaction according to an instruction of the parallel chain.
本申请提供的区块链系统中,交易发起链和交易目标链通过平行链连接,根据平行链的指示支付各自需要支付的交易内容,进而完成跨链交易。因为平行链节点是交易发起链和交易目标链的共有节点,所以平行链既能参与交易发起链的交易又能参与交易目标链的交易。平行链利用这一特性,在交易过程中,居中调控,连接交易发起链和交易目标链,克服了双方之间的差异,实现不同链之间的跨链交易,使得区块链的交易不再局限于单个区块链网络内部。In the blockchain system provided in this application, the transaction initiation chain and the transaction target chain are connected through a parallel chain, and the transaction content that needs to be paid is paid according to the instructions of the parallel chain to complete the cross-chain transaction. Because the parachain node is a common node of the transaction initiation chain and the transaction target chain, the parachain can participate in both the transaction of the transaction initiation chain and the transaction of the transaction target chain. Parachain uses this feature to centrally regulate and connect the transaction initiation chain and the transaction target chain during the transaction process, overcoming the differences between the two parties, achieving cross-chain transactions between different chains, and making blockchain transactions no longer Limited to a single blockchain network.
本领域的技术人员可以清楚地了解到本发明实施例中的技术可借助软件加必需的通用硬件平台的方式来实现。基于这样的理解,本发明实施例中的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例或者实施例的某些部分所述的方法。Those skilled in the art can clearly understand that the technology in the embodiment of the present invention can be implemented by means of software plus a necessary universal hardware platform. Based on such an understanding, the technical solutions in the embodiments of the present invention can be embodied in the form of software products that are essentially or contribute to the existing technology. The computer software product can be stored in a storage medium, such as ROM / RAM. , Magnetic disks, optical disks, etc., including a number of instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform the methods described in various embodiments of the present invention or certain parts of the embodiments.
本说明书中各个实施例之间相同相似的部分互相参见即可。此外,在本申请的描述中,除非另有说明,“多个”是指两个或多于两个。另外,为了便于清楚描述本申请实施例的技术方案,在本申请的实施例中,采用了“第一”、“第二”等字样对功能和作用基本相同的相同项或相似项进行区分。本领域技术人员可以理解“第一”、“第二”等字样并不对数量和执行次序进行限定,并且“第一”、“第二”等字样也并不限定一定不同。The same or similar parts among the various embodiments in this specification may refer to each other. Furthermore, in the description of this application, unless stated otherwise, "plurality" means two or more. In addition, in order to facilitate a clear description of the technical solutions of the embodiments of the present application, in the embodiments of the present application, words such as “first” and “second” are used to distinguish between the same or similar items having substantially the same functions and functions. Those skilled in the art can understand that the words "first", "second" and the like do not limit the number and execution order, and the words "first" and "second" are not necessarily different.
以上所述的本申请实施方式并不构成对本申请保护范围的限定。The embodiments of the present application described above do not constitute a limitation on the protection scope of the present application.

Claims (8)

  1. 一种基于平行链的跨链交易方法,其特征在于,所述方法包括:A cross-chain-based cross-chain transaction method, characterized in that the method includes:
    确定交易发起链与交易目标链之间待完成的跨链交易;Determine the pending cross-chain transactions between the transaction initiation chain and the transaction target chain;
    根据所述跨链交易,指示交易目标链支付所述跨链交易中所述交易发起链需求的交易内容;Instructing the transaction target chain to pay the transaction content required by the transaction initiation chain in the cross-chain transaction according to the cross-chain transaction;
    当检测到所述交易目标链完成支付时,指示交易发起链支付所述跨链交易中所述交易目标链需求的交易内容。When it is detected that the transaction target chain has completed the payment, the transaction initiation chain is instructed to pay the transaction content required by the transaction target chain in the cross-chain transaction.
  2. 根据权利要求1所述的方法,其特征在于,所述指示交易目标链支付所述跨链交易中所述交易发起链需求的交易内容,包括:The method according to claim 1, wherein the transaction content instructing the transaction target chain to pay for the transaction initiation chain demand in the cross-chain transaction comprises:
    调用所述交易目标链的执行智能合约,生成第一交易指令,所述第一交易指令用于通知所述交易目标链支付所述跨链交易中所述交易发起链需求的交易内容;Calling the execution of the smart contract of the transaction target chain to generate a first transaction instruction, where the first transaction instruction is used to notify the transaction target chain to pay the transaction content required by the transaction initiation chain in the cross-chain transaction;
    将所述第一交易指令发送给所述交易目标链,以使得所述交易目标链验证所述第一交易指令并支付所述交易发起链需求的交易内容。Sending the first transaction instruction to the transaction target chain, so that the transaction target chain verifies the first transaction instruction and pays transaction content required by the transaction initiation chain.
  3. 根据权利要求1所述的方法,其特征在于,所述指示交易发起链支付所述跨链交易中所述交易目标链需求的交易内容,包括:The method according to claim 1, wherein the transaction content instructing the transaction initiation chain to pay for the transaction target chain demand in the cross-chain transaction comprises:
    调用所述交易发起链的执行智能合约,生成第二交易指令,所述第二交易指令用于通知所述交易发起链支付所述跨链交易中所述交易目标链需求的交易内容;Calling the execution of the smart contract of the transaction initiation chain to generate a second transaction instruction, where the second transaction instruction is used to notify the transaction initiation chain to pay the transaction content required by the transaction target chain in the cross-chain transaction;
    将所述第二交易指令发送给所述交易发起链,以使得所述交易发起链验证所述第二交易指令并支付所述交易目标链需求的交易内容。Sending the second transaction instruction to the transaction initiation chain, so that the transaction initiation chain verifies the second transaction instruction and pays transaction content required by the transaction target chain.
  4. 根据权利要求1-3任一项所述的方法,其特征在于,所述确定交易发起链与交易目标链之间待完成的跨链交易,包括:The method according to any one of claims 1-3, wherein the determining a cross-chain transaction to be completed between a transaction initiation chain and a transaction target chain comprises:
    获取所述交易发起链发起的跨链交易;Obtaining a cross-chain transaction initiated by the transaction initiation chain;
    检测所述跨链交易是否记录在平行链区块链中;Detecting whether the cross-chain transaction is recorded in a parallel chain blockchain;
    若检测所述平行链区块链没有记录所述跨链交易,则确定所述跨链交易为待完成的跨链交易。If it is detected that the cross-chain blockchain does not record the cross-chain transaction, it is determined that the cross-chain transaction is a pending cross-chain transaction.
  5. 根据权利要求1-3任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1 to 3, further comprising:
    获取所述交易发起链或所述交易目标链的区块链;Obtaining a blockchain of the transaction initiation chain or the transaction target chain;
    根据所述交易发起链或所述交易目标链的区块链,更新平行链区块链。Update the parallel chain blockchain according to the blockchain of the transaction initiation chain or the transaction target chain.
  6. 根据权利要求5所述的方法,其特征在于,所述更新平行链区块链,包括:The method according to claim 5, wherein the updating the parachain blockchain comprises:
    根据所述交易发起链或所述交易目标链的区块链,生成摘要信息,所述摘要信息用于指示将所述交易发起链或所述交易目标链的区块链中记录的交易;Generating summary information according to the blockchain of the transaction initiation chain or the transaction target chain, where the summary information is used to indicate a transaction recorded in the blockchain of the transaction initiation chain or the transaction target chain;
    生成包括所述摘要信息的区块,以及添加所述区块至所述平行链区块链。Generate a block including the summary information, and add the block to the parachain blockchain.
  7. 一种基于平行链的区块链跨链交易装置,其特征在于,所述装置部署于平行链 节点中,包括:A blockchain-based cross-chain transaction device based on a parallel chain, characterized in that the device is deployed in a parallel chain node and includes:
    交易确定模块,用于确定交易发起链与交易目标链之间待完成的跨链交易;A transaction determination module, for determining a cross-chain transaction to be completed between a transaction initiation chain and a transaction target chain;
    交易指示模块,用于根据所述跨链交易,指示交易目标链支付所述跨链交易中所述交易发起链需求的交易内容;以及当检测到所述交易目标链完成支付时,指示交易发起链支付所述跨链交易中所述交易目标链需求的交易内容。A transaction instruction module, configured to instruct a transaction target chain to pay the transaction content required by the transaction initiation chain in the cross-chain transaction according to the cross-chain transaction; and when the transaction target chain is detected to complete the payment, instruct the transaction to initiate The transaction content required by the transaction target chain in the cross-chain transaction.
  8. 一种基于平行链的区块链系统,其特征在于,所述区块链系统包括:交易发起链、平行链、以及交易目标链,所述平行链由所述交易发起链和所述交易目标链的共有节点组成;A blockchain system based on a parallel chain is characterized in that the blockchain system includes a transaction initiation chain, a parallel chain, and a transaction target chain, and the parallel chain is composed of the transaction initiation chain and the transaction target. Common nodes of the chain;
    所述平行链,用于确定所述交易发起链与所述交易目标链之间待完成的跨链交易;根据所述跨链交易,指示交易目标链支付所述跨链交易中所述交易发起链需求的交易内容;当检测到所述交易目标链完成支付时,指示交易发起链支付所述跨链交易中所述交易目标链需求的交易内容;The parallel chain is used to determine a cross-chain transaction to be completed between the transaction initiation chain and the transaction target chain; and according to the cross-chain transaction, instruct the transaction target chain to pay for the transaction initiation in the cross-chain transaction Transaction content required by the chain; when it is detected that the transaction target chain completes payment, instruct the transaction initiation chain to pay the transaction content required by the transaction target chain in the cross-chain transaction;
    所述交易目标链,用于根据所述平行链的指示,支付所述跨链交易中所述交易发起链需求的交易内容;The transaction target chain is configured to pay the transaction content required by the transaction initiation chain in the cross-chain transaction according to an instruction of the parallel chain;
    所述交易发起链,用于根据所述平行链的指示,支付所述跨链交易中所述交易目标链需求的交易内容。The transaction initiation chain is configured to pay for transaction content required by the transaction target chain in the cross-chain transaction according to an instruction of the parallel chain.
PCT/CN2019/101057 2018-08-28 2019-08-16 Parallel chain-based cross-chain transaction method and apparatus, and block chain system WO2020042936A1 (en)

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
CN201810986825 2018-08-28
CN201810986825.3 2018-08-28
CN201811496870.7 2018-12-07
CN201811496870.7A CN110866824B (en) 2018-08-28 2018-12-07 Cross-chain transaction method and device based on parallel chain and block chain system

Publications (1)

Publication Number Publication Date
WO2020042936A1 true WO2020042936A1 (en) 2020-03-05

Family

ID=69645010

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/101057 WO2020042936A1 (en) 2018-08-28 2019-08-16 Parallel chain-based cross-chain transaction method and apparatus, and block chain system

Country Status (1)

Country Link
WO (1) WO2020042936A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111639925A (en) * 2020-06-01 2020-09-08 上海旺链信息科技有限公司 Sealed auction method and system based on block chain
CN112598514A (en) * 2020-12-09 2021-04-02 杭州趣链科技有限公司 Block chain-based cross-chain transaction management method, cross-chain platform and medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106228446A (en) * 2016-05-12 2016-12-14 北京众享比特科技有限公司 Transaction in assets plateform system based on privately owned block chain and method
CN107301600A (en) * 2017-06-23 2017-10-27 北京天德科技有限公司 A kind of core algorithm for the block chain the Internet model merchandised across chain
US20180197155A1 (en) * 2016-12-12 2018-07-12 Topl, Llc Method and Apparatus for Processing Mobile Payment Using Blockchain Techniques

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106228446A (en) * 2016-05-12 2016-12-14 北京众享比特科技有限公司 Transaction in assets plateform system based on privately owned block chain and method
US20180197155A1 (en) * 2016-12-12 2018-07-12 Topl, Llc Method and Apparatus for Processing Mobile Payment Using Blockchain Techniques
CN107301600A (en) * 2017-06-23 2017-10-27 北京天德科技有限公司 A kind of core algorithm for the block chain the Internet model merchandised across chain

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
BAI, JIE ET AL.: "The Standard of Blockchain Applications Model Publication and Deployment Technologies Research", INFORMATION AND NETWORK SECURITY, vol. 7, no. 8, 10 August 2018 (2018-08-10), pages 13 - 18 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111639925A (en) * 2020-06-01 2020-09-08 上海旺链信息科技有限公司 Sealed auction method and system based on block chain
CN112598514A (en) * 2020-12-09 2021-04-02 杭州趣链科技有限公司 Block chain-based cross-chain transaction management method, cross-chain platform and medium

Similar Documents

Publication Publication Date Title
CN110866824B (en) Cross-chain transaction method and device based on parallel chain and block chain system
WO2020042934A1 (en) Non-repudiation cross-chain transaction method and blockchain system
TW201935383A (en) Asset management method and apparatus, and electronic device
TW201935375A (en) Asset management method and apparatus, and electronic device
TW201935377A (en) Asset management method and device and electronic equipment
US20210326813A1 (en) Parallel Chain Cross-Chain Transaction Method, Device and Storage Medium
TWI754133B (en) Dual transaction method and system based on centralization and decentralization
AU2023201476A1 (en) Business Process Execution on a blockchain platform
CN111144883B (en) Processing performance analysis method and device for blockchain network
JP2019160316A (en) System, method and computer program for resource equity for blockchain
TW202022857A (en) Invoice creating method and device based on block chain and electronic device
TW201943250A (en) Cross-blockchain authentication method and apparatus, and electronic device
GB2593096A (en) Tokenized commodity for multipart transactions validated by a peer-to-peer network of nodes
WO2020042936A1 (en) Parallel chain-based cross-chain transaction method and apparatus, and block chain system
WO2020207093A1 (en) Blockchain-based leasing method and apparatus
CN108389080A (en) Transaction processing method and platform
CN107909440B (en) Transaction synchronous clearing method and system for distributed general ledger system
CN109165953A (en) Art sales method, apparatus, equipment and readable storage medium storing program for executing
WO2023078124A1 (en) Blockchain-based cross-border remittance
JP6818034B2 (en) Temporary consensus network within the resource transfer system
CA3175716A1 (en) Sensitive data transaction method and system based on blockchain
WO2020042929A1 (en) Block chain system
CN114742654A (en) Digital asset circulation method, system, electronic device and medium based on alliance chain
NL2026796B1 (en) Parallel chain-based cross-chain transaction method, device, and blockchain system
CN112488683B (en) Under-chain transaction method and device of blockchain

Legal Events

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

Ref document number: 19853695

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19853695

Country of ref document: EP

Kind code of ref document: A1