A cross-chain account generation and mutual recognition transaction method for alliance chains

By establishing cross-chain accounts and smart contracts on the blockchain network, cross-chain identity association and transaction verification are realized, asset and data liquidity problems between blockchain networks are solved, and the security and consistency of cross-chain transactions are ensured.

CN118916919BActive Publication Date: 2024-12-06SHANGHAI TEGAO INFORMATION TECH CO LTD
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202411411536.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-10-11
Publication Date
2024-12-06
Estimated Expiration
2044-10-11

AI Technical Summary

Technical Problem

The lack of direct connection and communication between different blockchain networks has led to the inability to flow freely between different networks, resulting in the inability to transfer assets, exchange assets, and interoperate data between multiple blockchains.

Method used

By establishing cross-chain accounts on the initiator and receiver blockchains, using unified identity information to realize cross-chain identity association, and perform cross-chain asset transfer and transaction verification through transaction smart contracts and business smart contracts, ensuring the security of transactions and consistency.

Benefits of technology

It has achieved the solution to interoperability, liquidity and transaction complexity issues between different blockchain networks, ensuring the security and consistency of cross-chain transactions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118916919B_ABST
    Figure CN118916919B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of blockchain technology, specifically a method for generating cross-chain accounts and mutually recognized transactions of a consortium chain, including an initiator blockchain and a receiver blockchain, establishing an initiator cross-chain account on the initiator blockchain, establishing a receiver cross-chain account on the receiver blockchain, establishing cross-chain unified identity information according to the initiator cross-chain account and the receiver cross-chain account, and realizing cross-chain identity association; the initiator executes and submits the cross-chain transaction on the initiator blockchain, and the receiver executes and submits the cross-chain transaction on the receiver blockchain, completing the cross-chain account mutual recognition transaction; and when a cross-chain transaction fails at any stage during execution, rollback is performed. This method can effectively solve the problems of interoperability, liquidity, transaction complexity, security, etc. between various blockchain networks in a decentralized transaction network, thereby ensuring the security and consistency of cross-chain transactions.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of blockchain technology, and in particular to a method for cross-chain account generation and mutual recognition transaction of an alliance chain. Background Art

[0002] Blockchain technology is an innovative technology based on distributed ledger and encryption technology. It has the characteristics of decentralization, immutability, transparency and traceability, which makes blockchain technology have broad application prospects in the fields of finance, medical care, government affairs, etc. With the rapid development of blockchain technology, different types of public chains, alliance chains, and private chains have emerged, which carry blockchain scenarios for different important businesses.

[0003] Among them, the alliance chain, as a blockchain system between the public chain and the private chain, has the characteristics of partial decentralization, strong controllability, data access rights restrictions and fast transaction speed. It has broad application prospects in many fields such as finance, logistics, and public services, and many typical alliance chain projects have emerged. With the continuous development and improvement of blockchain technology, the application scenarios and influence of the alliance chain will be further expanded.

[0004] In the alliance chain, there is a lack of direct connection and communication between different blockchain networks, which results in the inability of assets and data to flow freely between different networks; the isolation of networks and value makes it impossible to transfer assets, exchange assets, and interoperate data between multiple blockchains in many business scenarios, making each chain like an independent island of value, with assets and value isolated from each other and unable to circulate.

[0005] Therefore, a new technical solution is urgently needed to solve the above technical problems. Summary of the invention

[0006] The purpose of the present invention is to overcome the above-mentioned problems of the prior art and provide a cross-chain account generation and mutual recognition transaction method for a consortium chain to solve the technical problem that different blockchain networks in the traditional consortium chain lack direct connection and communication, resulting in the inability of assets and data to flow freely between different networks, and further resulting in the inability to transfer assets, exchange assets, and interoperate data between multiple blockchains in many business scenarios.

[0007] The above objectives are achieved through the following technical solutions:

[0008] A cross-chain account generation and mutual recognition transaction method of a consortium chain includes an initiator blockchain and a receiver blockchain, an initiator cross-chain account is established on the initiator blockchain, a receiver cross-chain account is established on the receiver blockchain, and cross-chain unified identity information is established according to the initiator cross-chain account and the receiver cross-chain account to realize cross-chain identity association; the mutual recognition transaction method includes the following steps:

[0009] Step (1) The initiator initiates a cross-chain transaction request, executes a cross-chain asset transfer through the initiator transaction smart contract on the initiator blockchain, transfers the assets from the initiator to the initiator smart contract account, saves the initiator business contract execution parameters in the initiator execution transaction state, and saves the initiator rollback business contract execution parameters in the initiator rollback transaction state, thus completing the first transaction;

[0010] If the transaction fails, the first transaction will be rolled back;

[0011] If the transaction is successfully executed, the first transaction proof result is sent to the receiving blockchain for verification and preservation through the initiator business smart contract on the initiator blockchain; and the next step is executed;

[0012] Step (2) The recipient transaction smart contract on the recipient blockchain verifies the first transaction proof result;

[0013] If the verification fails, roll back the first transaction;

[0014] If the verification is successful, the assets are transferred to the receiver's smart contract account through the receiver's cross-chain account, and the receiver's business contract execution parameters are saved in the receiver's execution transaction state, and the receiver's rollback business contract execution parameters are saved in the receiver's rollback transaction state, completing the second transaction;

[0015] If the transaction fails, the first transaction will be rolled back;

[0016] If the transaction is successfully executed, the second transaction proof result is sent to the initiator's blockchain for verification and storage through the recipient's business smart contract, and the next step is executed;

[0017] Step (3) the initiator transaction smart contract on the initiator blockchain verifies the second transaction proof result;

[0018] If the verification fails, roll back the first transaction and roll back the second transaction;

[0019] If the verification is successful, the initiator’s business contract execution parameters are read, and the assets are transferred from the initiator’s smart contract account to the initiator’s cross-chain account;

[0020] If the transaction fails, the first and second transactions are rolled back;

[0021] If the transaction is successfully executed, the assets will be transferred from the receiver's smart contract account to the receiver's account through the receiver's transaction smart contract; if the transaction fails, the first transaction and the second transaction will be rolled back; if the transaction is successfully executed, the mutual recognition transaction is completed.

[0022] Furthermore, the initiator cross-chain account and the recipient cross-chain account use the same seed to establish accounts and initialize assets on the initiator blockchain and the recipient blockchain respectively.

[0023] Furthermore, the cross-chain unified identity information is established according to the initiator's cross-chain account and the receiver's cross-chain account to realize cross-chain identity association, specifically: after obtaining the public and private keys of the initiator's cross-chain account and the receiver's cross-chain account, the unified identity information of the initiator's blockchain and the receiver's blockchain is established, and then a cross-chain account correspondence is established.

[0024] Furthermore, the initiator transaction smart contract and the recipient transaction smart contract are used to provide storage of cross-chain transaction status data, cross-chain transaction proof data, cross-chain transaction execution, cross-chain transaction submission and cross-chain transaction rollback.

[0025] Furthermore, the initiator business smart contract and the recipient business smart contract are used to perform business operations of specific cross-chain transactions through forward and reverse.

[0026] Furthermore, the rolling back of the first transaction is specifically as follows: the initiator transaction smart contract reads the initiator rollback business contract execution parameters to execute the rollback asset transfer, and rolls back the assets received on the initiator smart contract account to the initiator's account.

[0027] Furthermore, the rolling back of the second transaction is specifically as follows: the recipient transaction smart contract reads the recipient rollback business contract execution parameters to execute the rollback asset transfer, and rolls back the assets received on the recipient smart contract account to the recipient cross-chain account.

[0028] The cross-chain account generation and mutual recognition transaction method of the alliance chain provided by the present invention can effectively solve the problems of interoperability, liquidity, transaction complexity, security, etc. between various blockchain networks in the decentralized transaction network, thereby ensuring the security and consistency of cross-chain transactions. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] Figure 1 A schematic diagram of a cross-chain account transaction in a cross-chain account generation and mutual recognition transaction method of a consortium chain according to the present invention;

[0030] Figure 2The present invention provides a schematic diagram of cross-chain account asset transfer in a cross-chain account generation and mutual recognition transaction method of a consortium chain. DETAILED DESCRIPTION

[0031] The present invention is further described in detail below based on the accompanying drawings and embodiments. The described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0032] A cross-chain account generation and mutual recognition transaction method of a consortium chain includes an initiator blockchain and a receiver blockchain, an initiator cross-chain account is established on the initiator blockchain, and a receiver cross-chain account is established on the receiver blockchain, and a cross-chain unified identity information is established according to the initiator cross-chain account and the receiver cross-chain account to realize cross-chain identity association, thereby completing the cross-chain account generation of the consortium chain in this solution.

[0033] It should be noted that the initiator's cross-chain account and the recipient's cross-chain account use the same seed to establish accounts and initialize assets on the initiator's blockchain and the recipient's blockchain respectively.

[0034] The cross-chain unified identity information is established according to the initiator cross-chain account and the receiver cross-chain account to realize the cross-chain identity association, specifically:

[0035] After obtaining the public and private keys of the initiator's cross-chain account and the recipient's cross-chain account, the unified identity information of the initiator's blockchain and the recipient's blockchain is established, and then the cross-chain account correspondence is established.

[0036] A cross-chain mutual recognition transaction method of an alliance chain provided in this embodiment includes the following steps:

[0037] Step (1) The initiator initiates a cross-chain transaction request, executes a cross-chain asset transfer through the initiator transaction smart contract on the initiator blockchain, transfers the assets from the initiator to the initiator smart contract account, saves the initiator business contract execution parameters in the initiator execution transaction state, and saves the initiator rollback business contract execution parameters in the initiator rollback transaction state, thus completing the first transaction;

[0038] If the transaction fails, the first transaction will be rolled back;

[0039] If the transaction is successfully executed, the first transaction proof result is sent to the receiving blockchain for verification and preservation through the initiator business smart contract on the initiator blockchain; and the next step is executed;

[0040] Step (2) The recipient transaction smart contract on the recipient blockchain verifies the first transaction proof result;

[0041] If the verification fails, roll back the first transaction;

[0042] If the verification is successful, the assets are transferred to the receiver's smart contract account through the receiver's cross-chain account, and the receiver's business contract execution parameters are saved in the receiver's execution transaction state, and the receiver's rollback business contract execution parameters are saved in the receiver's rollback transaction state, completing the second transaction;

[0043] If the transaction fails, the first transaction will be rolled back;

[0044] If the transaction is successfully executed, the second transaction proof result is sent to the initiator's blockchain for verification and storage through the recipient's business smart contract, and the next step is executed;

[0045] Step (3) the initiator transaction smart contract on the initiator blockchain verifies the second transaction proof result;

[0046] If the verification fails, roll back the first and second transactions;

[0047] If the verification is successful, the initiator’s business contract execution parameters are read, and the assets are transferred from the initiator’s smart contract account to the initiator’s cross-chain account;

[0048] If the transaction fails, the first and second transactions are rolled back;

[0049] If the transaction is successfully executed, the assets are transferred from the receiver’s smart contract account to the receiver’s account through the receiver’s transaction smart contract;

[0050] If the transaction fails, the first and second transactions are rolled back;

[0051] If the transaction is successfully executed, the mutual recognition transaction is completed.

[0052] In the above method, the initiator transaction smart contract and the receiver transaction smart contract are used to provide cross-chain transaction status data, cross-chain transaction proof data, cross-chain transaction execution, cross-chain transaction submission and cross-chain transaction rollback.

[0053] The initiator business smart contract and the receiver business smart contract are used to perform specific cross-chain transaction business operations through forward and reverse.

[0054] In this embodiment, asset security is achieved by rolling back the first transaction and rolling back the second transaction.

[0055] Among them, the rolling back of the first transaction is specifically: the initiator transaction smart contract reads the initiator rollback business contract execution parameters to execute the rollback asset transfer, and rolls back the assets received on the initiator smart contract account to the initiator's account.

[0056] The specific rolling back of the second transaction is: the recipient transaction smart contract reads the recipient rollback business contract execution parameters to execute the rollback asset transfer, and rolls back the assets received on the recipient smart contract account to the recipient cross-chain account.

[0057] like Figure 1 and Figure 2 As shown, as a specific embodiment of the present solution, the C1 chain is used as the initiator blockchain and the C2 chain is used as the recipient blockchain, and the present solution is explained accordingly.

[0058] The cross-chain transaction of the alliance chain provided in this embodiment includes at least two chains, and each chain maintains its own ledger, such as account status and block transaction data.

[0059] The generation of cross-chain accounts for consortium chains is based on the principle that each chain maintains its own ledger, using the same seed to create accounts and initialize assets on each chain. This account has the same nature as a smart contract account, and only through cross-chain transactions can assets be transferred and exchanged. For example, the cross-chain account corresponding to the C1 chain is A1, and the account corresponding to the C2 chain is A2.

[0060] Among them, the unified identity information of cross-chain accounts is established; through the seed, the supported algorithm type is selected to establish accounts on each trusted chain that needs to cross the chain, such as: ECDSA, SM2, etc. After obtaining the public and private keys of accounts A1 and A2 of each chain, the unified identity information of each two cross-chains is established, which establishes the corresponding relationship of cross-chain accounts. For example, if it is necessary to cross from C1 chain to C2 chain, a cross-chain identity association relationship is established between accounts A1 and A2.

[0061] The cross-chain account mutual recognition transaction of the alliance chain provided in this embodiment includes a two-stage transaction, as follows:

[0062] The first stage is for the initiator to execute the cross-chain transaction on the C1 chain and submit it;

[0063] The second stage is for the receiver to execute the cross-chain transaction on the C2 chain and submit it.

[0064] In this way, the entire cross-chain account mutual recognition transaction is truly completed. Otherwise, if any stage fails during the execution of the cross-chain transaction, it will be rolled back.

[0065] Cross-chain account mutual recognition transactions use transaction transactions to ensure the consistency of asset transfer and exchange during the cross-chain process. This is specifically achieved through transaction smart contracts (i.e. the initiator’s transaction smart contract and the recipient’s transaction smart contract) and business smart contracts (i.e. the initiator’s business smart contract and the recipient’s business smart contract).

[0066] The transaction smart contract mainly provides the storage of cross-chain transaction status data, cross-chain transaction proof data, cross-chain transaction execution, cross-chain transaction submission, cross-chain transaction rollback, etc.

[0067] Business smart contracts mainly perform specific cross-chain transaction operations through forward and reverse operations.

[0068] The cross-chain transaction execution starts with the first asset transfer on the C1 chain. The initiator initiates a cross-chain transaction request, and the transaction smart contract on the C1 chain executes the cross-chain asset transfer. In this process, the asset is transferred from the sender to the smart contract account C1T1, and the business contract execution parameters and rollback parameters are saved in the cross-chain execution and rollback transaction status.

[0069] If the transaction fails to execute, the entire cross-chain transaction fails;

[0070] Otherwise, the initiator’s business smart contract sends the transaction proof result to the C2 chain for verification and storage, and starts executing the second cross-chain transaction on the C2 chain.

[0071] After the first transaction is proven successful, the second cross-chain transaction is the asset transfer on the C2 chain, which transfers the assets to the smart contract account C2T1 through the A2 account;

[0072] At this point, if the transaction fails, the first transaction on the C1 chain will be rolled back.

[0073] Otherwise, the transaction proof result is sent to the C1 chain for verification and storage.

[0074] If the second transaction fails to execute or the first transaction fails to prove, the first transaction is rolled back on the C1 chain. Specifically, the rollback asset transfer is executed by reading the rollback business contract execution parameters in the rollback transaction state. At this time, the assets of the smart contract account C1T1 are rolled back and transferred to the initiator's account.

[0075] If the second transaction is executed successfully, the transaction proof result will be sent to the C1 chain for verification and preservation, and preparation for the second-phase transaction submission will begin.

[0076] After the second transaction is proven successful, the cross-chain transaction executes a two-stage cross-chain transaction submission.

[0077] First, submit the transaction on the C1 chain, read the business contract execution parameters in the transaction execution status, and transfer the assets from the smart contract account C1T1 to A1;

[0078] If it fails, rollback the first and second transactions.

[0079] Otherwise, submit the transaction on the C2 chain again, and the assets will be transferred from the smart contract account C2T1 to the recipient;

[0080] If it fails, the first phase transaction and the second transaction are rolled back.

[0081] It should be noted that if the second-stage transaction fails to be submitted, the first-stage transaction will be rolled back, and the assets will be rolled back from the A1 account to the initiator's account. At the same time, the second transaction will be rolled back on the C2 chain, and the rollback asset transfer will be executed by reading the rollback business contract execution parameters in the rollback transaction status. At this time, the assets of the smart contract account C2T1 will be rolled back and transferred to A2.

[0082] The above description is only for illustrating the implementation mode of the present invention and is not intended to limit the present invention. For those skilled in the art, any modification, equivalent substitution, improvement, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A cross-chain account generation and mutual recognition transaction method of a consortium chain, comprising an initiator blockchain and a receiver blockchain, characterized in that: Establishing an initiator cross-chain account on the initiator blockchain, establishing a receiver cross-chain account on the receiver blockchain, and establishing cross-chain unified identity information based on the initiator cross-chain account and the receiver cross-chain account to achieve cross-chain identity association; Mutual recognition transaction methods include: Step (1) The initiator initiates a cross-chain transaction request, executes a cross-chain asset transfer through the initiator transaction smart contract on the initiator blockchain, transfers the assets from the initiator to the initiator smart contract account, saves the initiator business contract execution parameters in the initiator execution transaction state, and saves the initiator rollback business contract execution parameters in the initiator rollback transaction state, thus completing the first transaction; If the transaction fails, the first transaction will be rolled back; If the transaction is successfully executed, the first transaction proof result is sent to the receiving blockchain for verification and preservation through the initiator business smart contract on the initiator blockchain; and the next step is executed; Step (2) The recipient transaction smart contract on the recipient blockchain verifies the first transaction proof result; If the verification fails, roll back the first transaction; If the verification is successful, the assets are transferred to the receiver's smart contract account through the receiver's cross-chain account, and the receiver's business contract execution parameters are saved in the receiver's execution transaction state, and the receiver's rollback business contract execution parameters are saved in the receiver's rollback transaction state, completing the second transaction; If the transaction fails, the first transaction will be rolled back; If the transaction is successfully executed, the second transaction proof result is sent to the initiator's blockchain for verification and storage through the recipient's business smart contract, and the next step is executed; Step (3) the initiator transaction smart contract on the initiator blockchain verifies the second transaction proof result; If the verification fails, roll back the first and second transactions; If the verification is successful, the initiator’s business contract execution parameters are read, and the assets are transferred from the initiator’s smart contract account to the initiator’s cross-chain account; If the transaction fails, the first and second transactions are rolled back; If the transaction is successfully executed, the assets are transferred from the receiver’s smart contract account to the receiver’s account through the receiver’s transaction smart contract; If the transaction fails, the first and second transactions are rolled back; If the transaction is successfully executed, the mutual recognition transaction is completed.

2. According to claim 1, a method for cross-chain account generation and mutual recognition transaction of a consortium chain is characterized in that: The initiator cross-chain account and the recipient cross-chain account use the same seed to establish accounts and initialize assets on the initiator blockchain and the recipient blockchain respectively.

3. A method for cross-chain account generation and mutual recognition transaction of a consortium chain according to claim 1 or 2, characterized in that: A unified cross-chain identity information is established according to the initiator cross-chain account and the receiver cross-chain account to realize cross-chain identity association, specifically: After obtaining the public and private keys of the initiator's cross-chain account and the recipient's cross-chain account, the unified identity information of the initiator's blockchain and the recipient's blockchain is established, and then the cross-chain account correspondence is established.

4. According to claim 1, a method for cross-chain account generation and mutual recognition transaction of a consortium chain is characterized in that: The initiator transaction smart contract and the receiver transaction smart contract are used to provide cross-chain transaction status data, cross-chain transaction proof data, cross-chain transaction execution, cross-chain transaction submission and cross-chain transaction rollback.

5. According to claim 1, a method for cross-chain account generation and mutual recognition transaction of a consortium chain is characterized in that: The initiator business smart contract and the receiver business smart contract are used to perform specific cross-chain transaction business operations through forward and reverse.

6. According to claim 1, a method for cross-chain account generation and mutual recognition transaction of a consortium chain is characterized in that: The specific rolling back of the first transaction is: the initiator transaction smart contract reads the initiator rollback business contract execution parameters to execute the rollback asset transfer, and rolls back the assets received on the initiator smart contract account to the initiator's account.

7. According to claim 1, a method for cross-chain account generation and mutual recognition transaction of a consortium chain is characterized in that: The specific rolling back of the second transaction is: the recipient transaction smart contract reads the recipient rollback business contract execution parameters to execute the rollback asset transfer, and rolls back the assets received on the recipient smart contract account to the recipient cross-chain account.

Citation Information

Patent Citations

  • Distributed blockchain transaction system

    CA3149396A1

  • Isomorphic public blockchain value exchange method

    CN112508703A

  • Smart contract interaction model for cross-blockchain interaction and collaborative execution system

    CN113450113A

  • Cross-chain interoperation system and method, medium and data processing terminal

    CN113965329A

  • Anonymous supervisible cross-chain privacy protection method based on zero knowledge proof

    CN115859316A