Cross-chain Transaction Atomicity via Consensus Validation
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Existing cross-chain transaction methods fail to ensure atomic submission of associated transactions across multiple blockchains, leading to issues where successful transactions may be irrevocable and intermediate status and rollback transactions are difficult to design, especially when service logic is complex.
Innovation Solution
A cross-chain transaction method where nodes on the first blockchain determine the validity of an anchor transaction based on its identifier, ensuring that associated transactions are written into the blockchain only if the anchor transaction is valid, thereby avoiding simultaneous failure and eliminating the need for intermediate statuses and rollback transactions.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Ease of operation
If an intermediary (Escrow) is used to facilitate cross-chain transactions, then transaction coordination between blockchains is improved, but the risk of irrevocable successful transactions when failure occurs increases
Solution Approach 1:
The patent introduces a consensus node as an intermediary that coordinates transactions across multiple blockchains. This consensus node validates transactions and ensures they are committed atomically across all blockchains, eliminating the need for traditional Escrow mechanisms while maintaining transaction coordination.
Solution Approach 2:
The patent implements preliminary validation of transactions by the consensus node before commitment. The consensus node checks transaction validity and prepares the commitment state in advance, ensuring that transactions are only committed if all prerequisites are met, thus preventing irrevocable successful transactions upon failure.
2Ease of operation
If traditional intermediary-based cross-chain transaction methods are used, then transaction facilitation is improved, but the complexity of designing intermediate status and rollback transactions increases
Solution Approach 1:
The consensus node serves as a mediator that manages the transaction commitment process across blockchains. It handles the complexity of intermediate states and rollback mechanisms internally, presenting a simplified interface to users while managing the sophisticated coordination logic required for atomic cross-chain transactions.
Solution Approach 2:
The system implements self-service through automated consensus validation and atomic commitment mechanisms. The consensus node automatically manages transaction states, validates prerequisites, and handles rollback operations without requiring manual intervention or complex user-designed intermediate statuses.
3Reliability
If atomic submission of associated transactions to multiple blockchains is implemented, then transaction security is improved, but the complexity of transaction validation increases
Solution Approach 1:
The consensus node acts as a centralized validation intermediary that simplifies the complex task of validating transactions across multiple blockchains. It consolidates validation logic in one location, reducing the overall system complexity while ensuring atomic submission and enhancing transaction security through coordinated validation.
Data Source
Figure 1
Figure 2a
Figure 2b
AI summary
This application discloses a cross-chain transaction method and apparatus. In the method, for any node on a first blockchain of blockchains on which a plurality of associated transactions occur, after receiving an association transaction sent by a consensus node, the node needs to determine, based on an identifier of an anchor transaction included in the association transaction, whether the anchor transaction is a valid transaction, and if the anchor transaction is a valid transaction, writes a transaction that occurs in the first blockchain into the first blockchain based on identifiers of the blockchains on which the plurality of transactions occur, to ensure that the plurality of associated transactions on the plurality of blockchains are successfully submitted simultaneously, and effectively avoid problems in the prior art that a plurality of transactions fail to be submitted simultaneously and a successful transaction may be irrevocable. In addition, because the plurality of transactions are atomic, it is not necessary to design an intermediate status and a rollback transaction based on a specific service type.