Cross-chain account generation and mutual recognition transaction method of alliance chain

By establishing cross-chain accounts and smart contracts between blockchain networks, cross-chain identity association and transaction verification are achieved, the problem of insufficient asset and data liquidity between blockchain networks is solved, and the security of cross-chain transactions is ensured. consistency.

CN118916919AActive Publication Date: 2024-11-08SHANGHAI 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
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-11
Publication Date
2024-11-08
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 realizes interoperability, liquidity and transaction complexity between various blockchain networks, ensures the security and consistency of cross-chain transactions, and solves the value isolation problem caused by network isolation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118916919A_ABST
    Figure CN118916919A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of block chains, in particular to a cross-chain account generation and mutual recognition transaction method of an alliance chain, which comprises an initiator block chain and a receiver block chain, and is characterized in that an initiator cross-chain account is established on the initiator block chain, a receiver cross-chain account is established on the receiver block chain, and the initiator cross-chain account and the receiver cross-chain account form a cross-chain account. Establishing cross-chain unified identity information according to the initiator cross-chain account and the receiver cross-chain account to realize cross-chain identity association; the cross-chain account mutual recognition transaction is completed by executing cross-chain transaction execution and submitting on an initiator block chain through an initiator and executing cross-chain transaction execution and submitting on a receiver block chain through a receiver. And when any stage fails in the cross-chain transaction execution process, rollback is carried out. According to the method, the problems of interoperability, mobility, transaction complexity, security and the like among block chain networks in a decentralized transaction network can be effectively solved, so that the security and consistency of cross-chain transactions are ensured.
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 in an alliance chain. Background Art

[0002] Blockchain technology is an innovative technology based on distributed ledgers and encryption. Its characteristics of decentralization, immutability, transparency, and traceability make it widely applicable in finance, healthcare, government affairs, and other fields. With the rapid development of blockchain technology, various types of public, consortium, and private blockchains have emerged, each supporting blockchain scenarios for different key businesses.

[0003] Consortium chains, a blockchain system that lies between public and private chains, offer characteristics such as partial decentralization, strong controllability, restricted data access rights, and fast transaction speeds. They have broad application prospects in various fields, including finance, logistics, and public services, and numerous exemplary consortium chain projects have already emerged. With the continuous development and improvement of blockchain technology, the application scenarios and influence of consortium chains will continue to expand.

[0004] In the consortium chain, there is a lack of direct connection and communication between different blockchain networks, resulting 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 value island, 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 traditional consortium chains 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: A cross-chain account generation and mutual recognition transaction method for a consortium chain includes an initiator blockchain and a receiver blockchain, wherein an initiator cross-chain account is established on the initiator blockchain, and a receiver cross-chain account is established on the receiver blockchain. Cross-chain unified identity information is established based on the initiator cross-chain account and the receiver cross-chain account to achieve cross-chain identity association. The mutual recognition transaction method includes the following steps: 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 is rolled back; If the transaction is successfully executed, the first transaction proof result is sent to the receiving blockchain for verification and storage through the initiator's business smart contract on the initiator's 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 verification fails, roll back the first transaction; If the verification is successful, the assets are transferred to the recipient's smart contract account through the recipient's cross-chain account, and the recipient's business contract execution parameters are saved in the recipient's execution transaction state. The recipient's rollback business contract execution parameters are saved in the recipient's rollback transaction state, completing the second transaction. If the transaction fails, the first transaction is rolled back; If the transaction is successfully executed, the second transaction proof result is sent to the initiator's blockchain through the recipient's business smart contract for verification and storage, 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 transaction and roll back the second transaction; 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 will be transferred from the recipient's smart contract account to the recipient's account through the recipient'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.

[0008] Furthermore, 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.

[0009] Furthermore, the cross-chain unified identity information is established based on the initiator's cross-chain account and the recipient's cross-chain account to achieve 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 a cross-chain account correspondence is established.

[0010] 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.

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

[0012] Furthermore, the rollback 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.

[0013] Furthermore, the rollback 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.

[0014] 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 and other issues between various blockchain networks in a decentralized trading network, thereby ensuring the security and consistency of cross-chain transactions. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] Figure 1 A schematic diagram of cross-chain account transactions in a cross-chain account generation and mutual recognition transaction method of a consortium chain according to the present invention; Figure 2 This is a schematic diagram of cross-chain account asset transfer in the cross-chain account generation and mutual recognition transaction method of the alliance chain described in the present invention. DETAILED DESCRIPTION

[0016] The present invention will be further described in detail below with reference to the accompanying drawings and examples. The described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments derived by persons of ordinary skill in the art based on the embodiments of the present invention without inventive effort shall fall within the scope of protection of the present invention.

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

[0018] 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.

[0019] The cross-chain unified identity information is established based on the initiator's cross-chain account and the recipient's cross-chain account to achieve cross-chain identity association, specifically as follows: 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.

[0020] This embodiment provides a cross-chain mutual recognition transaction method for a consortium chain, including the following steps: 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 is rolled back; If the transaction is successfully executed, the first transaction proof result is sent to the receiving blockchain for verification and storage through the initiator's business smart contract on the initiator's 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 verification fails, roll back the first transaction; If the verification is successful, the assets are transferred to the recipient's smart contract account through the recipient's cross-chain account, and the recipient's business contract execution parameters are saved in the recipient's execution transaction state. The recipient's rollback business contract execution parameters are saved in the recipient's rollback transaction state, completing the second transaction. If the transaction fails, the first transaction is rolled back; If the transaction is successfully executed, the second transaction proof result is sent to the initiator's blockchain through the recipient's business smart contract for verification and storage, and the next step is executed; Step (3) the initiator transaction smart contract on the initiator blockchain verifies the second transaction proof result; If 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 recipient's smart contract account to the recipient's account through the recipient'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.

[0021] In the above method, 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.

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

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

[0024] Among them, the rollback 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.

[0025] 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.

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

[0027] The cross-chain transaction of the consortium 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.

[0028] Cross-chain account generation for consortium chains is based on the principle that each chain maintains its own ledger. Using the same seed, accounts are created and assets are initialized on each chain. These accounts behave like smart contract accounts; asset transfers and exchanges can only be performed through cross-chain transactions. For example, the cross-chain account corresponding to chain C1 is A1, and the account corresponding to chain C2 is A2.

[0029] Among them, unified cross-chain account identity information is established and generated; using the seed, accounts are established on each trusted chain that needs to cross the chain, selecting a supported algorithm type, such as ECDSA, SM2, etc. After obtaining the public and private keys of accounts A1 and A2 on each chain, unified cross-chain identity information is established for each two chains, which establishes a cross-chain account correspondence. For example, if a cross-chain is required from chain C1 to chain C2, a cross-chain identity association relationship is established between accounts A1 and A2.

[0030] This embodiment provides a cross-chain account mutual recognition transaction for a consortium chain, including a two-stage transaction, as follows: The first stage is the initiator, who executes the cross-chain transaction on the C1 chain and submits it; The second stage is for the receiver to execute the cross-chain transaction on the C2 chain and submit it.

[0031] 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.

[0032] 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 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).

[0033] The transaction smart contract mainly provides 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.

[0034] Business smart contracts mainly carry out specific cross-chain transaction operations through forward and reverse operations.

[0035] Cross-chain transaction execution begins 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. During this process, the asset is transferred from the sender to the smart contract account C1T1, and the business contract execution and rollback parameters are saved in the cross-chain execution and rollback transaction status.

[0036] If the transaction fails, the entire cross-chain transaction fails. 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.

[0037] After the first transaction proves successful, the second cross-chain transaction is executed, which is the asset transfer on the C2 chain, transferring the assets from the A2 account to the smart contract account C2T1; At this point, if the transaction fails, the first transaction on the C1 chain will be rolled back.

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

[0039] If the second transaction fails to execute or the first transaction fails to prove its validity, the first transaction will be 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.

[0040] If the second transaction is successfully executed, the transaction proof result is sent to the C1 chain for verification and saved, and preparations for the second-phase transaction submission begin.

[0041] After the second transaction proves successful, the cross-chain transaction performs a two-stage cross-chain transaction submission.

[0042] First, submit the transaction on the C1 chain, read the business contract execution parameters in the transaction status, and transfer the assets from the smart contract account C1T1 to A1; If it fails, the first and second transactions are rolled back.

[0043] Otherwise, submit the transaction on the C2 chain again, and the assets will be transferred from the smart contract account C2T1 to the recipient; If it fails, the first phase transaction and the second transaction are rolled back.

[0044] It should be noted that if the second-phase transaction fails to commit, the first-phase transaction is rolled back, and the assets are transferred from account A1 to the initiator's account. Simultaneously, the second transaction is rolled back on the C2 chain, and the rollback asset transfer is executed by reading the rollback business contract execution parameters in the rollback transaction status. At this point, the assets in smart contract account C2T1 are rolled back and transferred to A2.

[0045] The above description is only for explaining the embodiments of the present invention and is not intended to limit the present invention. For those skilled in the art, any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection 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