A non-homogeneous asset cross-chain transaction method, device and storage medium

By deploying cross-chain transaction contracts in a blockchain system, generating transaction instructions to modify or destroy asset status identifiers, and minting or activating assets on the target blockchain side, the problem of cross-chain circulation of non-fungible assets is solved, and cross-chain transfer is realized.

CN113888333BActive Publication Date: 2026-07-31林齐新
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
林齐新
Filing Date
2021-10-04
Publication Date
2026-07-31

AI Technical Summary

Technical Problem

Cross-chain circulation of non-fungible assets between blockchains is difficult, and existing technologies struggle to achieve cross-chain transfers.

Method used

By deploying non-fungible asset cross-chain transaction contracts on the first and second blockchains, transaction instructions are generated to modify or destroy the state identifier of the first asset, and the second asset is minted or activated on the target blockchain side, thus realizing cross-chain transfer.

Benefits of technology

It enables cross-chain transfer of non-fungible assets between different blockchains, solving the problem of cross-chain circulation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113888333B_ABST
    Figure CN113888333B_ABST
Patent Text Reader

Abstract

This invention belongs to the field of computer technology, and particularly relates to a method, device and storage medium for cross-chain transactions of non-fungible assets. This invention is based on a cross-chain transaction contract for non-fungible assets, where cancellation is performed on the initiating chain and activation is performed on the target chain. During activation, it is first determined whether the non-fungible asset in the cancelled state exists on the target chain. If it exists, the asset state is modified and the owner of the asset is set, and the transfer is successful. If it does not exist, a copy of the non-fungible asset needs to be minted according to fixed attributes, and the owner of the asset is set again, thereby realizing the cross-chain circulation of non-fungible assets.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of computer technology, and in particular relates to a method, device and storage medium for cross-chain transactions of non-fungible assets. Background Technology

[0002] Currently, many assets on the blockchain are homogeneous, such as token assets. However, non-fungible assets are becoming increasingly popular, such as in the fields of games, art, and collectibles. Non-fungible assets are receiving more and more attention, but at present, the circulation of non-fungible assets is limited to the same blockchain, and cross-chain circulation still faces certain difficulties. Summary of the Invention

[0003] To address the aforementioned technical problems, this invention provides a method, device, and storage medium for cross-chain transactions of non-fungible assets, resolving the issue of the difficulty in transferring non-fungible assets across chains.

[0004] To achieve the above objectives, the present invention adopts the following technical solution.

[0005] Firstly, a method for cross-chain trading of non-fungible assets is provided. This method is applicable to a blockchain system, which includes at least a first blockchain and a second blockchain. One of the first blockchain and the second blockchain is a main chain, and the other is a parallel chain. Cross-chain trading contracts for non-fungible assets are deployed on both the first blockchain and the second blockchain. The method includes:

[0006] Obtain a first transfer transaction initiated on the first blockchain for cross-chain transfer of the first asset, wherein the first transfer transaction includes fixed attribute information and ownership information of the first asset;

[0007] According to the first transfer transaction, the non-fungible asset cross-chain transaction contract of the first blockchain is invoked to generate a first transaction instruction. The first transaction instruction is used to modify the status identifier and owner of the first asset or to destroy the first asset. The method for modifying the status identifier and owner of the first asset or destroying the first asset includes: determining whether the first asset is a derived asset or a native asset. If it is a derived asset, it is destroyed. If it is a native asset, the status identifier of the first asset is modified to a cancelled state, and the owner of the first asset is set as the non-fungible asset cross-chain transaction contract. The native asset is a non-fungible asset formed in the current blockchain, and the derived asset is a non-fungible asset forged by the cross-chain transfer of the native asset.

[0008] The first transfer transaction is synchronized to the second blockchain based on the non-fungible asset cross-chain transaction contract. After the first transfer transaction is executed and consensus is reached on the first blockchain, the second blockchain, based on the first transfer transaction, calls the non-fungible asset cross-chain transaction contract of the first blockchain to generate a second transaction instruction. The second transaction instruction is used to mint or activate a second asset on the second blockchain side. The second asset is a derived asset or native asset of the first asset.

[0009] Preferably, the method for minting or activating the second asset on the second blockchain side includes:

[0010] When the first asset is a native asset, the second asset is directly cast based on the fixed attribute information of the first asset within the first transfer transaction;

[0011] When the first asset is a derived asset, determine whether the second asset in the second blockchain already exists in the cancelled state. If it does, modify the status identifier of the second asset to be valid. Otherwise, the second asset is minted based on the fixed attribute information of the first asset in the first transfer transaction.

[0012] Preferably, the validity of the first asset is determined before executing the second transaction instruction; if the asset is invalid, the execution of the first transfer transaction is terminated.

[0013] Preferably, if the third transaction instruction fails to execute, the asset status of the first asset is restored.

[0014] In a second aspect, a computer device is provided, comprising one or more processors;

[0015] Memory, used to store one or more programs.

[0016] When the one or more programs are executed by the one or more processors, the one or more processors perform the method as described in the first aspect above.

[0017] Thirdly, a storage medium storing a computer program is provided, which, when executed by a processor, implements the method described in the first aspect above.

[0018] The beneficial effect of this invention is that it enables cross-chain transfer of non-fungible assets. Attached Figure Description

[0019] Figure 1 This is a schematic diagram of the structure of a computer device according to Embodiment 2 of the present invention. Detailed Implementation

[0020] The present invention will be further described clearly and in detail below with reference to specific embodiments and the accompanying drawings. Those skilled in the art will be able to implement the present invention based on these descriptions. Furthermore, the embodiments of the present invention described below are generally only some, not all, of the embodiments of the present invention. Therefore, all other embodiments obtained by those skilled in the art based on the embodiments of the present invention without inventive effort should fall within the scope of protection of the present invention. Unless otherwise specified, the methods briefly described in the embodiments of the present invention are methods mastered by those skilled in the art.

[0021] Example 1

[0022] This embodiment provides a method for cross-chain trading of non-fungible assets (NFAs). The method is applicable to a blockchain system, which includes at least a first blockchain and a second blockchain. One of the first blockchain and the other is a main chain and the other is a parallel chain. Cross-chain trading contracts for NFAs are deployed on both the first blockchain and the second blockchain. Typically, NFAs possess certain fixed attributes to ensure their non-fungible nature, such as a unique ID and issuer in the blockchain system. These attributes cannot be modified by clients. The cross-chain trading contract for NFAs provided in this embodiment allows for the replication of NFAs on different blockchains within the same blockchain system. That is, all NFAs with the same fixed attributes but existing on different blockchains.

[0023] The method includes:

[0024] Obtain a first transfer transaction initiated on the first blockchain for cross-chain transfer of the first asset, wherein the first transfer transaction includes fixed attribute information and ownership information of the first asset;

[0025] According to the first transfer transaction, the non-fungible asset cross-chain transaction contract of the first blockchain is invoked to generate a first transaction instruction. The first transaction instruction is used to modify the status identifier and owner of the first asset or to destroy the first asset. The method for modifying the status identifier and owner of the first asset or destroying the first asset includes: determining whether the first asset is a derived asset or a native asset. If it is a derived asset, it is destroyed. If it is a native asset, the status identifier of the first asset is modified to a cancelled state, and the owner of the first asset is set as the non-fungible asset cross-chain transaction contract. The native asset is a non-fungible asset formed in the current blockchain, and the derived asset is a non-fungible asset forged by the cross-chain transfer of the native asset.

[0026] The first transfer transaction is synchronized to the second blockchain based on the non-fungible asset cross-chain transaction contract. After the first transfer transaction is executed and consensus is reached on the first blockchain, the second blockchain, based on the first transfer transaction, calls the non-fungible asset cross-chain transaction contract of the first blockchain to generate a second transaction instruction. The second transaction instruction is used to mint or activate a second asset on the second blockchain side. The second asset is a derived asset or native asset of the first asset.

[0027] Furthermore, the method for minting or activating the second asset on the second blockchain side includes:

[0028] When the first asset is a native asset, the second asset is directly cast based on the fixed attribute information of the first asset within the first transfer transaction;

[0029] When the first asset is a derived asset, determine whether the second asset in the second blockchain already exists in the cancelled state. If it does, modify the status identifier of the second asset to be valid. Otherwise, the second asset is minted based on the fixed attribute information of the first asset in the first transfer transaction.

[0030] The principle behind the solution provided in this embodiment is that the biggest difference between non-fungible assets and fungible assets is their uniqueness; they can only be held by a specific user at any given time. If a transfer is to be made, the corresponding owner needs to be changed. For cross-chain transfers of non-fungible assets, the status of the non-fungible asset needs to be modified to cancel or destroy on the initiating chain side, and then minted or activated on the target chain side. For example, destruction on the main chain and minting on a parallel chain. Based on the same transfer transaction, the main chain side executes first, determining whether the non-fungible asset meets the conditions, such as whether the non-fungible asset exists, whether the time is valid, etc. If the conditions are met, the transaction is executed successfully, and the non-fungible asset is destroyed (the initiating chain side is the derived asset). Then, the parallel chain synchronizes the same transaction, and the parallel chain side performs or mints (the target chain side is the derived asset). If activation or minting fails, for example, if the asset status cannot be modified or minting cannot be performed, the main chain side needs to restore the asset status to a valid state or restore the destroyed asset.

[0031] Example 2

[0032] A computer device includes: one or more processors; and a memory for storing one or more programs that, when executed by the one or more processors, cause the one or more processors to perform the method as described in Example 1.

[0033] A storage medium storing a computer program that, when executed by a processor, implements the method described in Embodiment 1 above.

[0034] Figure 1This is a schematic diagram of the structure of a device provided in this embodiment.

[0035] like Figure 1 As shown, in another aspect, this application also provides a computer device 500, including one or more central processing units (CPUs) 501, which can perform various appropriate actions and processes according to programs stored in read-only memory (ROM) 502 or programs loaded from storage portion 508 into random access memory (RAM) 503. The RAM 503 also stores various programs and data required for the operation of the device 500. The CPU 501, ROM 502, and RAM 503 are interconnected via a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.

[0036] The following components are connected to I / O interface 505: an input section 506 including a keyboard, mouse, etc.; an output section 507 including a cathode ray tube (CRT), liquid crystal display (LCD), etc., and speakers, etc.; a storage section 508 including a hard disk, etc.; and a communication section 509 including a network interface card such as a LAN card, modem, etc. The communication section 509 performs communication processing via a network such as the Internet. Driver 510 is also connected to I / O interface 505 as needed. Removable media 511, such as a disk, optical disk, magneto-optical disk, semiconductor memory, etc., are installed on driver 510 as needed so that computer programs read from them can be installed into storage section 508 as needed.

[0037] Specifically, according to the embodiments disclosed in this application, the method described in Embodiment 1 above can be implemented as a computer software program. For example, embodiments disclosed in this application include a computer program product comprising a computer program tangibly embodied on a machine-readable medium, the computer program containing program code for performing the methods described in any of the embodiments above. In such embodiments, the computer program can be downloaded and installed from a network via communication section 509, and / or installed from removable medium 511.

[0038] In another aspect, this application also provides a computer-readable storage medium, which may be a computer-readable storage medium included in the apparatus of the above embodiments; or it may be a standalone computer-readable storage medium not assembled into a device. The computer-readable storage medium stores one or more programs that are used by one or more processors to perform the methods described in this application.

[0039] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present invention. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented by a dedicated hardware-based system that performs the specified function or operation, or by a combination of dedicated hardware and computer instructions.

[0040] The units or modules described in the embodiments of this application can be implemented in software or hardware. The described units or modules can also be located in a processor; for example, each unit can be a software program located in a computer or mobile smart device, or a separately configured hardware device. The names of these units or modules do not, in some cases, constitute a limitation on the unit or module itself.

[0041] The above description is merely a preferred embodiment of this application and an explanation of the technical principles employed. Those skilled in the art should understand that the scope of the invention involved in this application is not limited to technical solutions formed by specific combinations of the above-described technical features, but should also cover other technical solutions formed by arbitrary combinations of the above-described technical features or their equivalents without departing from the concept of this application. For example, technical solutions formed by substituting the above features with (but not limited to) technical features with similar functions disclosed in this application.

Claims

1. A method for cross-chain transactions of non-fungible assets, characterized in that, The method is applicable to a blockchain system, which includes at least a first blockchain and a second blockchain, wherein one of the first blockchain and the second blockchain is a main chain and the other is a parallel chain, and both the first blockchain and the second blockchain have non-fungible asset cross-chain transaction contracts deployed on them. The method includes: Obtain a first transfer transaction initiated on the first blockchain for cross-chain transfer of the first asset, wherein the first transfer transaction includes fixed attribute information and ownership information of the first asset; According to the first transfer transaction, the non-fungible asset cross-chain transaction contract of the first blockchain is invoked to generate a first transaction instruction. The first transaction instruction is used to modify the status identifier and owner of the first asset or to destroy the first asset. The method for modifying the status identifier and owner of the first asset or destroying the first asset includes: determining whether the first asset is a derived asset or a native asset. If it is a derived asset, it is destroyed. If it is a native asset, the status identifier of the first asset is modified to a cancelled state, and the owner of the first asset is set as the non-fungible asset cross-chain transaction contract. The native asset is a non-fungible asset formed in the current blockchain, and the derived asset is a non-fungible asset forged by the cross-chain transfer of the native asset. The first transfer transaction is synchronized to the second blockchain based on the non-fungible asset cross-chain transaction contract. After the first transfer transaction is executed and consensus is reached on the first blockchain, the second blockchain, based on the first transfer transaction, calls the non-fungible asset cross-chain transaction contract of the first blockchain to generate a second transaction instruction. The second transaction instruction is used to mint or activate a second asset on the second blockchain side. The second asset is a derived asset or native asset of the first asset.

2. The non-fungible asset cross-chain transaction method according to claim 1, characterized in that, The method for minting or activating the second asset on the second blockchain side includes: When the first asset is a native asset, the second asset is directly cast based on the fixed attribute information of the first asset within the first transfer transaction; When the first asset is a derived asset, determine whether a second asset in the cancellation state already exists in the second blockchain. If it does, modify the status identifier of the second asset to be valid; otherwise, forge the second asset based on the fixed attribute information of the first asset in the first transfer transaction.

3. The non-fungible asset cross-chain transaction method of claim 1, wherein, Before executing the first transaction instruction, the validity of the first asset is determined. If the asset is invalid, the execution of the first transfer transaction is terminated.

4. A computer device, comprising: One or more processors; Memory, used to store one or more programs. When the one or more programs are executed by the one or more processors, the one or more processors perform the method as described in any one of claims 1-3.

5. A storage medium storing a computer program, characterized by comprising: When the program is executed by the processor, it implements the method as described in any one of claims 1-3.