Asset Cross-chain Transfer Method and System That Do Not Affect the Normal Execution of Associated Asset Transactions
By constructing and executing asset transfer and transfer into pre-execution transactions between blockchains, the problem of asset freezing in the existing technology affecting related asset business is solved, and the integrity and atomicity of cross-chain transfer of assets is achieved without affecting related asset transactions.
Patent Information
- Application Number
- CN202211032417.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-26
- Publication Date
- 2025-06-13
- Estimated Expiration
- 2042-08-26
AI Technical Summary
Existing cross-chain technology will freeze assets during the cross-chain transfer of complex assets, resulting in the inability to continue to be executed in the related asset business and will not affect related asset transactions without ensuring the integrity and atomicity of cross-chain asset transfers.
By constructing and executing asset transfer and transfer into pre-execution transactions between the source chain and the target chain, the integrity and atomicity of the asset transfer process are ensured, while synchronizing asset status and metadata without affecting related asset transactions.
It ensures the integrity and atomicity of the cross-chain transfer process of assets without affecting the normal execution of related asset transactions, and solves the problem of asset freezing in the existing technology that affects related asset business.
Smart Images

Figure CN115601164B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure belongs to the technical field of blockchain, and particularly relates to an asset cross-chain transfer method and system that do not affect the normal execution of associated asset transactions. Background Art
[0002] The statements in this part merely provide background technical information related to the present disclosure and do not necessarily constitute prior art.
[0003] With the development of the blockchain industry, the need for interoperability and collaboration between different blockchains has become increasingly urgent. As a bridge connecting different blockchain systems, cross-chain technology is used to achieve trusted interoperability between different blockchains. Currently, there are three mainstream cross-chain methods: notary mechanism, hash locking, and side chain / relay chain.
[0004] Asset cross-chain transfer is a common requirement in cross-chain scenarios. In complex asset scenarios, there are association relationships between assets, and asset transactions rely on other assets or affect the states of other assets. For example, in the commercial insurance underwriting transaction, it is necessary to be authorized to use the medical insurance record information in the medical insurance data asset. The inventors found that in the process of complex asset cross-chain transfer using existing cross-chain methods, assets will be frozen, and after the assets are frozen, the associated asset business cannot continue to be executed, and it is impossible to ensure the normal execution of the associated asset business while ensuring the integrity and atomicity of the cross-chain asset transfer. For example, in the process of transferring medical insurance data assets, the medical insurance data assets are frozen, and the commercial insurance underwriter is not allowed to use the medical insurance records carried in the medical insurance data assets anymore, and the commercial insurance underwriting transaction cannot be carried out. Summary of the Invention
[0005] In order to solve the above problems, the present disclosure provides an asset cross-chain transfer method and system that do not affect the normal execution of associated asset transactions. The solution solves the problem that in the process of complex asset cross-chain transfer using existing cross-chain technologies, the normal execution of associated asset transactions is affected, and realizes the normal execution of associated asset transactions without affecting the integrity and atomicity of the cross-chain asset transfer process.
[0006] According to the first aspect of the embodiments of the present disclosure, an asset cross-chain transfer method that does not affect the normal execution of associated asset transactions is provided, including:
[0007] The source chain initiates a cross-chain asset transfer and constructs and executes a pre-execution transaction for asset transfer out.
[0008] The source chain node transmits the state, metadata, association relationship of the asset at the starting position, and the legitimacy proof information of the pre-execution transaction for asset transfer out to the target chain through a cross-chain message.
[0009] After the target chain verifies the cross-chain message, it constructs and executes a pre-execution transaction for asset transfer in.
[0010] The target chain transfers the assets, and the proof of the legality of the pre-execution transaction of the assets is transmitted to the source chain through cross-chain messaging;
[0011] After the source chain verifies the message, it constructs and executes the asset transfer submission transaction;
[0012] The source chain encapsulates the proof of the legality of the asset transfer submission transaction and the state change from the starting position to the ending position of the asset transfer as a cross-chain message and transmits it to the target chain;
[0013] After the target chain verifies the message, it constructs and executes the asset transfer-in submission transaction to achieve cross-chain asset transfer.
[0014] Furthermore, when the source chain initiates a cross-chain asset transfer and constructs and executes a pre-execution transaction for asset transfer-out, specifically: it declares that the assets are transferred from the source chain to the target chain, marks the assets as being transferred out, marks the starting position of the asset transfer as the block height of the block where the transaction is located, and the transaction of the asset itself to be transferred cannot be carried out again, while the associated transactions of the transferred assets are not affected;
[0015] Furthermore, the associated transaction is a transaction of the associated assets of the transferred assets, and the associated assets of the transferred assets are assets that have an associated relationship with the transferred assets and will affect the state of the transferred assets;
[0016] Furthermore, after the target chain verifies the cross-chain message, it constructs and executes a pre-execution transaction for asset transfer-in, specifically: it creates assets on this chain, sets the state, metadata, and associated relationship to be the same as those of the assets transferred out from the source chain carried by the cross-chain message. At the same time, it marks the asset state as being transferred in, marks the starting position of the asset transfer as the block height and state root of the block where the pre-execution transaction of asset transfer-out on the source chain is located, and the created assets cannot be traded.
[0017] Furthermore, after the source chain verifies the message, it constructs and executes the asset transfer-out submission transaction, specifically: it marks the assets as having been transferred out, marks the ending position of the transfer as the block height where the asset transfer-out submission transaction is located, and the assets cannot be used again. At the same time, it changes the associated reference of the associated assets of the transferred assets to the assets created on the target chain, and all transactions that will trigger state changes of the transferred assets in the future are propagated to the assets created on the target chain.
[0018] Furthermore, after the target chain verifies the message, it constructs and executes the asset transfer-in submission transaction, specifically: it updates the asset state to the value after the asset state change carried in the cross-chain message, marks the assets as having been transferred in, marks the ending position of the asset transfer as the block height and state root of the block where the asset transfer-out submission transaction on the source chain is located, and the assets can be traded normally.
[0019] Furthermore, the proof of transaction legality includes, but is not limited to, the block signature where the transaction is located and the Merkel proof.
[0020] According to the second aspect of the embodiments of the present disclosure, there is provided an asset cross-chain transfer system that does not affect the normal execution of associated asset transactions, which includes a source chain and a target chain, and specifically executes the following process:
[0021] The source chain initiates a cross-chain asset transfer, constructs and executes a pre-execution transaction for asset transfer out.
[0022] The source chain node transfers the state, metadata, association relationship of the asset at the starting position, and the proof information of the legality of the pre-execution transaction for asset transfer out to the target chain through a cross-chain message.
[0023] After verifying the cross-chain message, the target chain constructs and executes a pre-execution transaction for asset transfer in.
[0024] The target chain transfers the proof information of the legality of the pre-execution transaction for asset transfer in to the source chain through a cross-chain message.
[0025] After verifying the message, the source chain constructs and executes a submission transaction for asset transfer out.
[0026] The source chain encapsulates the proof of the legality of the submission transaction for asset transfer out and the state change from the starting position to the ending position of the asset transfer into a cross-chain message and transfers it to the target chain.
[0027] After verifying the message, the target chain constructs and executes a submission transaction for asset transfer in to achieve cross-chain asset transfer.
[0028] According to the third aspect of the embodiments of the present disclosure, there is provided an electronic device, including a memory, a processor, and a computer program running on the memory. When the processor executes the program, it implements the asset cross-chain transfer method that does not affect the normal execution of associated asset transactions.
[0029] According to the fourth aspect of the embodiments of the present disclosure, there is provided a non-transitory computer-readable storage medium, on which a computer program is stored. When the program is executed by a processor, it implements the asset cross-chain transfer method that does not affect the normal execution of associated asset transactions.
[0030] Compared with the prior art, the beneficial effects of the present disclosure are:
[0031] (1) The present disclosure provides an asset cross-chain transfer method and system that do not affect the normal execution of associated asset transactions. The solution solves the problem that in the process of complex asset cross-chain transfer using existing cross-chain technologies, the normal execution of associated asset transactions is affected, and realizes that without affecting the normal execution of associated asset transactions, the integrity and atomicity of the cross-chain asset transfer process are ensured.
[0032] (2) Without affecting the normal execution of related asset transactions, the solution of the present disclosure can effectively ensure the integrity and atomicity of the cross-chain asset transfer process: First, by marking the blockchain positions at the start and end of the asset transfer, the state changes caused by related assets are synchronized to the target chain, achieving the integrity of the cross-chain asset transfer without affecting the normal execution of related asset transactions; Second, after each blockchain node receives a cross-chain message, it independently constructs a transaction to prevent the problem of cross-chain transaction execution failure caused by malicious nodes, ensuring the atomicity of cross-chain transactions.
[0033] Advantages of additional aspects of the present disclosure will be given in part in the following description, become apparent in part from the following description, or be understood through the practice of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] The accompanying drawings forming a part of this disclosure are used to provide a further understanding of the present disclosure. The schematic embodiments and descriptions thereof of the present disclosure are used to explain the present disclosure and do not constitute an improper limitation of the present disclosure.
[0035] Figure 1 It is a flowchart of a cross-chain asset transfer method that does not affect the normal execution of related asset transactions described in an embodiment of the present disclosure;
[0036] Figure 2 It is a state diagram of cross-chain asset transfer with a related relationship described in an embodiment of the present disclosure. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0037] The present disclosure will be further described below in conjunction with the drawings and embodiments.
[0038] It should be noted that the following detailed description is exemplary and is intended to provide further explanation of the present disclosure. Unless otherwise specified, all technical and scientific terms used herein have the same meaning as commonly understood by those of ordinary skill in the technical field to which the present disclosure belongs.
[0039] It should be noted that the terms used herein are only for describing specific embodiments and are not intended to limit the exemplary embodiments according to the present disclosure. As used herein, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. In addition, it should be understood that when the terms "comprising" and / or "including" are used in this specification, they indicate the presence of features, steps, operations, devices, components, and / or combinations thereof.
[0040] In the case of no conflict, the embodiments in the present disclosure and the features in the embodiments can be combined with each other.
[0041] TERMINOLOGY EXPLANATION:
[0042] Source Chain: That is, the source chain of asset transfer, which is the blockchain where the asset is located before transfer and includes multiple blockchain nodes. It is responsible for initiating cross-chain asset transfer transactions, receiving cross-chain messages passed from the target chain, and completing the transfer of assets out.
[0043] Target Chain: That is, the target chain of asset transfer, which is the blockchain where the asset is located after transfer and contains multiple blockchain nodes. It is responsible for receiving cross-chain messages passed from the source chain and completing the transfer of assets in.
[0044] Embodiment 1:
[0045] The purpose of this embodiment is to provide a method for cross-chain transfer of assets that does not affect the normal execution of associated asset transactions.
[0046] A method for cross-chain transfer of assets that does not affect the normal execution of associated asset transactions, including:
[0047] The source chain initiates a cross-chain asset transfer, constructs and executes a pre-execution transaction for asset transfer out;
[0048] The source chain node passes the state, metadata, association relationship of the asset at the starting position, and the proof information of the legality of the pre-execution transaction for asset transfer out to the target chain through a cross-chain message;
[0049] After the target chain verifies the cross-chain message, it constructs and executes a pre-execution transaction for asset transfer in;
[0050] The target chain passes the proof information of the legality of the pre-execution transaction for asset transfer in to the source chain through a cross-chain message;
[0051] After the source chain verifies the message, it constructs and executes a submission transaction for asset transfer out;
[0052] The source chain encapsulates the proof of the legality of the submission transaction for asset transfer out and the state change from the starting position to the ending position of asset transfer into a cross-chain message and passes it to the target chain;
[0053] After the target chain verifies the message, it constructs and executes a submission transaction for asset transfer in to achieve cross-chain transfer of assets.
[0054] Further, when the source chain initiates a cross-chain asset transfer, constructs and executes a pre-execution transaction for asset transfer out, specifically: declare that the asset is transferred from the source chain to the target chain, mark the asset as being transferred out, mark the starting position of asset transfer as the block height of the block where the transaction is located, the transaction of the asset to be transferred itself cannot be carried out anymore, and the associated transactions of the transferred asset are not affected;
[0055] Further, the associated transaction is a transaction of the associated asset of the transferred asset, and the associated asset of the transferred asset is an asset that has an association relationship with the transferred asset and affects the state of the transferred asset;
[0056] Further, after the target chain verifies the cross-chain message, it constructs and executes a pre-execution transaction for asset transfer in, specifically: creating an asset on the local chain, setting the status, metadata, association relationship to be the same as the asset transferred out from the source chain carried in the cross-chain message, marking the asset status as being transferred in at the same time, marking the starting position of the asset transfer as the block height and state root of the block where the pre-execution transaction for asset transfer out from the source chain is located, and the created asset cannot be traded.
[0057] Further, after the source chain verifies the message, it constructs and executes a submission transaction for asset transfer out, specifically: marking the asset as transferred out, marking the termination position of the transfer as the block height where the submission transaction for asset transfer out is located, the asset can no longer be used, and at the same time changing the association pointer of the associated asset of the transferred asset to the asset created on the target chain, and all transactions that will trigger changes in the status of the transferred asset for the associated asset are propagated to the asset created on the target chain.
[0058] Further, after the target chain verifies the message, it constructs and executes a submission transaction for asset transfer in, specifically: updating the asset status to the value after the change in the asset status carried in the cross-chain message, marking the asset as transferred in, marking the termination position of the asset transfer as the block height and state root of the block where the submission transaction for asset transfer out from the source chain is located, and it can be traded normally.
[0059] Further, the proof of transaction legality includes, but is not limited to, the block signature where the transaction is located and the Merkle proof.
[0060] Specifically, for the sake of easy understanding, the following will describe the solution of this embodiment in detail with reference to the accompanying drawings:
[0061] As Figure 1 shown, in order to solve the problems existing in the prior art, this embodiment provides an asset cross-chain transfer method that does not affect the normal execution of transactions of associated assets, including the following steps:
[0062] Step 101: The source chain initiates a cross-chain asset transfer, constructs and executes a pre-execution transaction for asset transfer out, declares that the asset is transferred from the source chain to the target chain, marks the asset as being transferred out, marks the starting position of the asset transfer as the block height of the block where the transaction is located, the transaction of the asset itself to be transferred can no longer be carried out, and the associated transactions of the transferred asset are not affected;
[0063] The associated transaction mentioned above refers to the transaction of the associated asset of the transferred asset;
[0064] The associated asset of the transferred asset mentioned above refers to the asset that has an association relationship with the transferred asset and will affect the status of the transferred asset;
[0065] Step 102: The source chain node transmits information such as the status, metadata, association relationship of the asset at the starting position, and the proof of transaction legality of the pre-execution transaction for asset transfer out to the target chain through a cross-chain message;
[0066] Step 103: After the target chain verifies the cross-chain message, construct and execute a pre-execution transaction for asset transfer in: Create an asset on this chain, set the status, metadata, and association relationship to be the same as the asset transferred out from the source chain carried by the cross-chain message. At the same time, mark the asset status as being transferred in, mark the starting position of the asset transfer as the block height and state root of the block where the pre-execution transaction for asset transfer out from the source chain is located. The created asset cannot be traded;
[0067] Step 104: The target chain passes the legality proof information of the pre-execution transaction for asset transfer in to the source chain through a cross-chain message;
[0068] Step 105: After the source chain verifies the message, construct and execute a submission transaction for asset transfer out: Mark the asset as transferred out, mark the termination position of the transfer as the block height where the submission transaction for asset transfer out is located. The asset can no longer be used. At the same time, change the association pointer of the associated asset of the transferred asset to the asset created by the target chain. All transactions that will trigger changes in the state of the transferred asset in the future are propagated to the asset created by the target chain;
[0069] Step 106: The source chain encapsulates the legality proof of the submission transaction for asset transfer out and the state change from the starting position to the termination position of the asset transfer into a cross-chain message and passes it to the target chain;
[0070] Step 107: After the target chain verifies the message, construct and execute a submission transaction for asset transfer in, update the asset status to the value after the asset status change carried in the cross-chain message, mark the asset as transferred in, mark the termination position of the asset transfer as the block height and state root of the block where the submission transaction for asset transfer out from the source chain is located, and the asset can be traded normally;
[0071] The legality proof of the transaction optionally includes the block signature and Merkle proof of the transaction location;
[0072] For the cross-chain message transfer, optionally, a dynamic cross-chain message transfer mechanism based on the relay chain is used for cross-chain message transfer to achieve the mutual recognition and security of cross-chain messages through the relay method;
[0073] When the source chain and the target chain receive cross-chain messages and construct transactions, each node constructs them independently, and then performs deduplication based on semantics, transaction legality proof, etc. to prevent cross-chain transfer failures caused by malicious node tampering and interception.
[0074] As Figure 2 shown, it shows a cross-chain transfer state diagram of assets with an association relationship. Among them, chain A is the source chain of the cross-chain transfer of assets, chain B is the target chain of the cross-chain transfer of assets, and asset D α is chainA The assets on B are to be transferred to chain β D α is the associated asset of D β The transaction of D α will affect the status S of the asset D 1 Value:
[0075] t 0 Time: chain A The asset D on α The cross-chain transfer pre-execution transaction tx 1 is uploaded to chain α The meta-status of D 0 is marked as being transferred out, and the transfer start position is BH 0 where BH 1 is the block height where tx B is located, and the transfer target chain is chain
[0076] t 1 Time: chain B The asset D on α The incoming pre-execution transaction tx 2 is uploaded to chain, and the asset D α ' is created, and the asset meta-status is set to being transferred in, and the transfer start position is BH 0 and BH 0 status root, and the asset status is set to t 0 Time of D α status, and the asset metadata is set to t 0 Time of D α metadata;
[0077] t 2 Time: chain A The associated asset D on β The transaction tx 3 is uploaded to chain and affects D α status S 1 which changes to X 2 ;
[0078] t 3 Time: chain A The asset D on α The cross-chain transfer submission transaction tx 4 is uploaded to chain, and D α meta-status is set to transferred out, and the transfer end position is marked as BH 3 where BH 3 is the block height where the transaction tx 4 is located, and the associated asset pointed to by D β is updated to chain B .Dα ';
[0079] t 4 Time: chain B Upper asset D α Transfer to the submitted transaction tx 5 On-chain, set asset D α 'The status of yuan is transferred, and the transfer end position is BH 3 And BH 3 State root, update status S 1 To X 2 , that is, t 3 The D at time t α The status S of 1 The value of, that is, the impact on D after the associated asset transaction is on-chain at time t2 α The value after the status change of
[0080] Embodiment 2:
[0081] The purpose of this embodiment is to provide an asset cross-chain transfer system that does not affect the normal execution of associated asset transactions.
[0082] An asset cross-chain transfer system that does not affect the normal execution of associated asset transactions, which includes a source chain and a target chain, and specifically performs the following processes:
[0083] The source chain initiates a cross-chain asset transfer and constructs and executes an asset transfer pre-execution transaction;
[0084] The source chain node transfers the status, metadata, association relationship of the asset at the starting position, and the asset transfer pre-execution transaction legality proof information to the target chain through a cross-chain message;
[0085] After the target chain verifies the cross-chain message, it constructs and executes an asset transfer pre-execution transaction;
[0086] The target chain transfers the asset transfer pre-execution transaction legality proof information to the source chain through a cross-chain message;
[0087] After the source chain verifies the message, it constructs and executes an asset transfer submission transaction;
[0088] The source chain encapsulates the asset transfer submission transaction legality proof and the status change from the asset transfer starting position to the asset transfer ending position into a cross-chain message and transfers it to the target chain;
[0089] After the target chain verifies the message, it constructs and executes an asset transfer submission transaction to achieve asset cross-chain transfer.
[0090] Furthermore, the system described in this embodiment corresponds to the method described in Embodiment 1, and its technical details have been described in detail in Embodiment 1, so they will not be repeated here.
[0091] In more embodiments, there is also provided:
[0092] An electronic device includes a memory, a processor, and computer instructions stored on the memory and running on the processor. When the computer instructions are run by the processor, the method described in the first embodiment is completed. For the sake of brevity, it will not be elaborated here.
[0093] It should be understood that in this embodiment, the processor may be a central processing unit (CPU), and the processor may also be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), off-the-shelf programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0094] The memory may include a read-only memory and a random access memory, and provide instructions and data to the processor. A part of the memory may also include a non-volatile random access memory. For example, the memory may also store information about the device type.
[0095] A computer-readable storage medium is used to store computer instructions. When the computer instructions are executed by the processor, the method described in the first embodiment is completed.
[0096] The method in the first embodiment can be directly implemented by a hardware processor, or implemented by a combination of hardware and software modules in the processor. The software module may be located in a mature storage medium in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. This storage medium is located in the memory, and the processor reads the information in the memory and combines its hardware to complete the steps of the above method. To avoid repetition, it will not be described in detail here.
[0097] Those of ordinary skill in the art can realize that the units and algorithm steps of each example described in combination with this embodiment can be implemented by electronic hardware or a combination of computer software and electronic hardware. Whether these functions are executed in a hardware or software manner depends on the specific application and design constraints of the technical solution. Professional technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of this disclosure.
[0098] The asset cross-chain transfer method and system provided in the above embodiment, which do not affect the normal execution of associated asset transactions, can be realized and have broad application prospects.
[0099] The above are only the preferred embodiments of the present disclosure and are not intended to limit the present disclosure. For those skilled in the art, the present disclosure may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present disclosure shall be included within the protection scope of the present disclosure.
Claims
1. An asset cross-chain transfer method that does not affect the normal execution of associated asset transactions, characterized in that, it includes: The source chain initiates a cross-chain asset transfer and constructs and executes a pre-execution transaction for asset transfer out; The source chain node transfers the state, metadata, association relationship of the asset at the starting position, and the legality proof information of the pre-execution transaction for asset transfer out to the target chain through a cross-chain message; After verifying the cross-chain message, the target chain constructs and executes a pre-execution transaction for asset transfer in; The target chain transfers the legality proof information of the pre-execution transaction for asset transfer in to the source chain through a cross-chain message; After verifying the message, the source chain constructs and executes a submission transaction for asset transfer out; The source chain encapsulates the legality proof of the submission transaction for asset transfer out and the state change from the starting position to the ending position of the asset transfer into a cross-chain message and transfers it to the target chain; After verifying the message, the target chain constructs and executes a submission transaction for asset transfer in to achieve asset cross-chain transfer; When the source chain initiates a cross-chain asset transfer and constructs and executes a pre-execution transaction for asset transfer out, specifically: declare that the asset is transferred from the source chain to the target chain, mark the asset as being transferred out, mark the starting position of the asset transfer as the block height of the block where the transaction is located, the transaction of the asset to be transferred itself cannot be carried out anymore, and the associated transactions of the transferred asset are not affected; After verifying the cross-chain message, when the target chain constructs and executes a pre-execution transaction for asset transfer in, specifically: create an asset on this chain, set the state, metadata, and association relationship to be the same as the asset transferred out from the source chain carried in the cross-chain message, and at the same time mark the asset state as being transferred in, mark the starting position of the asset transfer as the block height and state root of the block where the pre-execution transaction for asset transfer out on the source chain is located, and the created asset cannot be traded; After verifying the message, when the source chain constructs and executes a submission transaction for asset transfer out, specifically: mark the asset as having been transferred out, mark the ending position of the transfer as the block height where the submission transaction for asset transfer out is located, the asset cannot be used anymore, and at the same time change the association pointer of the associated asset of the transferred asset to the asset created by the target chain, and all transactions that will trigger the state change of the transferred asset for the associated asset are propagated to the asset created by the target chain; After verifying the message, when the target chain constructs and executes a submission transaction for asset transfer in, specifically: update the asset state to the value after the asset state change carried in the cross-chain message, mark the asset as having been transferred in, mark the ending position of the asset transfer as the block height and state root of the block where the submission transaction for asset transfer out on the source chain is located, and it can be traded normally.
2. An asset cross-chain transfer method as described in claim 1 that does not affect the normal execution of associated asset transactions, characterized in that, The associated transaction is the transaction of the associated asset of the transferred asset, and the associated asset of the transferred asset is an asset that has an association relationship with the transferred asset and will affect the state of the transferred asset.
3. An asset cross-chain transfer method as described in claim 1 that does not affect the normal execution of associated asset transactions, characterized in that, The transaction legality proof includes but is not limited to the block signature where the transaction is located and the Merkle proof.
4. An asset cross-chain transfer system that does not affect the normal execution of associated asset transactions, characterized in that, it includes a source chain and a target chain, and specifically executes the following process: The source chain initiates a cross-chain asset transfer, constructs and executes a pre-execution transaction for asset transfer out; The source chain node transfers the state, metadata, association relationship of the asset at the starting position, and the proof information of the legality of the pre-execution transaction for asset transfer out to the target chain through cross-chain messages; After verifying the cross-chain message, the target chain constructs and executes a pre-execution transaction for asset transfer in; The target chain transfers the proof information of the legality of the pre-execution transaction for asset transfer in to the source chain through cross-chain messages; After verifying the message, the source chain constructs and executes a submission transaction for asset transfer out; The source chain encapsulates the proof of the legality of the submission transaction for asset transfer out and the state change from the starting position to the ending position of the asset transfer into a cross-chain message and transfers it to the target chain; After verifying the message, the target chain constructs and executes a submission transaction for asset transfer in to realize cross-chain asset transfer; When the source chain initiates a cross-chain asset transfer and constructs and executes a pre-execution transaction for asset transfer out, specifically: declare that the asset is transferred from the source chain to the target chain, mark the asset as being transferred out, mark the starting position of the asset transfer as the block height of the block where the transaction is located, the transaction of the asset to be transferred itself cannot be carried out again, and the associated transactions of the transferred asset are not affected; After verifying the cross-chain message, when the target chain constructs and executes a pre-execution transaction for asset transfer in, specifically: create an asset on this chain, set the state, metadata, and association relationship to be the same as the asset transferred out from the source chain carried in the cross-chain message, at the same time mark the asset state as being transferred in, mark the starting position of the asset transfer as the block height and state root of the block where the pre-execution transaction for asset transfer out on the source chain is located, and the created asset cannot be traded; After verifying the message, when the source chain constructs and executes a submission transaction for asset transfer out, specifically: mark the asset as having been transferred out, mark the ending position of the transfer as the block height where the submission transaction for asset transfer out is located, the asset cannot be used again, and at the same time change the association pointer of the associated asset of the transferred asset to the asset created by the target chain, and the transactions that will trigger the state change of the transferred asset in the future are propagated to the asset created by the target chain; After verifying the message, when the target chain constructs and executes a submission transaction for asset transfer in, specifically: update the asset state to the value after the asset state change carried in the cross-chain message, mark the asset as having been transferred in, mark the ending position of the asset transfer as the block height and state root of the block where the submission transaction for asset transfer out on the source chain is located, and it can be traded normally.
5. An electronic device, including a memory, a processor, and a computer program running on the memory, characterized in that, when the processor executes the program, it realizes an asset cross-chain transfer method that does not affect the normal execution of associated asset transactions as described in any one of claims 1-3.
6. A non-transitory computer-readable storage medium, on which a computer program is stored, characterized in that, when the program is executed by the processor, it realizes an asset cross-chain transfer method that does not affect the normal execution of associated asset transactions as described in any one of claims 1-3.
Citation Information
Patent Citations
Performing transactions using private and public blockchains
CA3157091A1
Cross-chain data processing method and device, equipment and storage medium
CN112650764A