Cross-chain transaction method, device and storage medium for non-homogeneous asset groups

By deploying cross-chain transaction contracts in a blockchain system and using hash operations to generate transaction instructions, the transfer and registration of non-fungible assets between different blockchains can be realized, solving the cross-chain circulation problem and enabling the cross-chain transfer and ownership transfer of non-fungible assets.

CN113888328BActive 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 efficient cross-chain transfers are not possible.

Method used

By deploying cross-chain transaction contracts for non-fungible assets in a blockchain system and using hash operations to generate transaction instructions, the transfer and registration of non-fungible assets between different blockchains can be realized, including destroying or modifying the state on the main chain and minting or activating additional assets on parallel chains.

Benefits of technology

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

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113888328B_ABST
    Figure CN113888328B_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 the requirement that the status of the non-fungible asset be modified to cancellation or destruction on the initiating chain side through a cross-chain transaction contract for non-fungible assets, and then minted or activated on the target chain side. Then, the same additional asset is generated on the target chain side and registered on the minted or activated fungible asset. Finally, the asset group is rebuilt on the target chain side, 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 asset groups. 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 asset groups, 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 transactions 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 transaction contracts for non-fungible assets are deployed in the blockchain system. Each non-fungible asset within the blockchain system is registered with additional assets, transaction record hashes, and authentication certificate hashes based on these contracts. The transaction record hashes are obtained by hashing the transaction records of the corresponding non-fungible assets, and the authentication certificate hashes are obtained by hashing the authentication certificates of the corresponding non-fungible assets. The method includes:

[0006] The system receives a first transfer transaction based on a first asset group, asset information of the first asset, and user information. The first asset is a non-fungible asset. The first asset group includes the first asset and its supplementary assets. The supplementary assets include transaction records and authentication certificates. The supplementary assets are registered on the first asset through their corresponding hash values. The fixed attribute information of the first asset includes the issuer, unique ID, and minting parameters of the first asset. The first transfer transaction includes the fixed attribute information of the first asset, ownership information, and the identity hash of the first asset group. The hash of the first asset group is obtained by hashing the first asset and its supplementary assets.

[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 the second asset on the second blockchain side and generate a copy of the additional asset of the first asset and register it to the second asset. The second asset is a derived asset or native asset of the first asset.

[0009] After the first transfer transaction is completed, update the transaction records registered on the second asset.

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

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

[0012] 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. The blockchain system deploys cross-chain trading contracts for non-fungible assets (NFAs). Each NFA within the blockchain system registers additional assets based on the NFA cross-chain trading contracts, along with transaction record hashes and authentication certificate hashes. The transaction record hashes are obtained by hashing the transaction records of the corresponding NFA, and the authentication certificate hashes are obtained by hashing the authentication certificates of the corresponding NFA. The method includes:

[0013] The system receives a first transfer transaction based on a first asset group, asset information of the first asset, and user information. The first asset is a non-fungible asset. The first asset group includes the first asset and its supplementary assets. The supplementary assets include transaction records and authentication certificates. The supplementary assets are registered on the first asset through their corresponding hash values. The fixed attribute information of the first asset includes the issuer, unique ID, and minting parameters of the first asset. The first transfer transaction includes the fixed attribute information of the first asset, ownership information, and the identity hash of the first asset group. The hash of the first asset group is obtained by hashing the first asset and its supplementary assets.

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

[0015] 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 the second asset on the second blockchain side and generate a copy of the additional asset of the first asset and register it to the second asset. The second asset is a derived asset or native asset of the first asset.

[0016] After the first transfer transaction is completed, update the transaction records registered on the second asset.

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

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

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

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

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

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

[0023] The beneficial effect of this invention is that it enables cross-chain transfer of non-homogeneous asset groups. Attached Figure Description

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

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

[0026] Example 1

[0027] This embodiment provides a method for cross-chain transactions 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 second blockchain is a main chain, and the other is a parallel chain. The blockchain system deploys NFA cross-chain transaction contracts. Each NFAs within the blockchain system is registered with a transaction record hash and an authentication certificate hash based on the NFA cross-chain transaction contract. The transaction record hash is obtained by hashing the corresponding NFA transaction record, and the authentication certificate hash is obtained by hashing the corresponding NFA authentication certificate. The method includes:

[0028] The system receives a first transfer transaction based on a first asset group, asset information of the first asset, and receiving user information. The first asset is a non-fungible asset. The first asset group includes the first asset and its supplementary assets. The supplementary assets include transaction records and authentication certificates. The supplementary assets are registered on the first asset through their corresponding hash values. The fixed attribute information of the first asset includes the issuer, unique ID, and minting parameters of the first asset. The first transfer transaction includes the fixed attribute information of the first asset, ownership information, and the identity hash of the first asset group. The hash of the first asset group is obtained by hashing the first asset and its transaction records and authentication certificates.

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

[0030] 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 the second asset on the second blockchain side and generate a copy of the additional asset of the first asset and register it to the second asset. The second asset is a derived asset or native asset of the first asset.

[0031] After the first transfer transaction is completed, update the transaction records registered on the second asset.

[0032] Furthermore, the method for activating the second asset on the second blockchain side includes:

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

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

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

[0036] The principle behind the solution provided in this embodiment is that the biggest difference between non-fungible assets and fungible assets is their uniqueness. Only a specific user can hold them at any given time, and if a transfer is to be made, the corresponding owner needs to be changed. The transfer record or authentication signature record of a non-fungible asset can also be considered a non-fungible asset. On the blockchain, they all exist and are recorded as non-fungible assets. When transferring non-fungible assets across chains, if the transfer record or authentication signature record needs to be transferred together, it constitutes an asset group, which needs to be transferred in the form of an asset group. When transferring a non-fungible asset group across chains, 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. Then, the same additional asset is generated on the target chain side and registered on the minted or activated fungible asset. For example, if the asset is destroyed on the main chain and minted on a parallel chain, based on the same transfer transaction, the main chain will execute the transaction first. It will first determine whether the non-fungible asset meets the conditions, such as whether the non-fungible asset exists and whether the time is valid. If the conditions are met, the transaction will be executed successfully, and the non-fungible asset will be destroyed (the initiating chain is a derived asset). Then, the parallel chain will synchronize the same transaction, and the parallel chain will perform or mint (the target chain is a derived asset) and register additional assets. If activation or minting fails, such as the asset status cannot be modified or the minting cannot be performed, the main chain needs to restore the asset status to a valid state or restore the destroyed asset.

[0037] Example 2

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

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

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

[0041] like Figure 1As 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.

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

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

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

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

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

[0047] 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 other is a main chain and the other is a parallel chain. The blockchain system deploys cross-chain trading contracts for non-fungible assets (NFAs). Each NFA within the blockchain system is registered with a transaction record hash and an authentication certificate hash based on the NFA cross-chain trading contracts. The transaction record hash is obtained by hashing the corresponding NFA transaction record, and the authentication certificate hash is obtained by hashing the corresponding NFA authentication certificate. The method includes: The system receives a first transfer transaction based on a first asset group, asset information of the first asset, and receiving user information. The first asset is a non-fungible asset. The first asset group includes the first asset and its supplementary assets. The supplementary assets include transaction records and authentication certificates. The supplementary assets are registered on the first asset through their corresponding hash values. The fixed attribute information of the first asset includes the issuer, unique ID, and minting parameters of the first asset. The first transfer transaction includes the fixed attribute information of the first asset, ownership information, and the identity hash of the first asset group. The hash of the first asset group is obtained by hashing the first asset and its transaction records and authentication certificates. 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 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. The blockchain system deploys cross-chain trading contracts for non-fungible assets (NFAs). Each NFA within the blockchain system registers additional assets based on the NFA cross-chain trading contracts, along with transaction record hashes and authentication certificate hashes. The transaction record hashes are obtained by hashing the transaction records of the corresponding NFA, and the authentication certificate hashes are obtained by hashing the authentication certificates of the corresponding NFA. The method includes: The system receives a first transfer transaction based on a first asset group, asset information of the first asset, and user information. The first asset is a non-fungible asset. The first asset group includes the first asset and its supplementary assets. The supplementary assets include transaction records and authentication certificates. The supplementary assets are registered on the first asset through their corresponding hash values. The fixed attribute information of the first asset includes the issuer, unique ID, and minting parameters of the first asset. The first transfer transaction includes the fixed attribute information of the first asset, ownership information, and the identity hash of the first asset group. The hash of the first asset group is obtained by hashing the first asset and its supplementary assets. 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 the second asset on the second blockchain side and generate a copy of the additional asset of the first asset and register it to the second asset. The second asset is a derived asset or native asset of the first asset. After the first transfer transaction is completed, update the transaction records registered on the second asset.

2. The method for cross-chain transactions of non-fungible assets 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 forged 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 the second blockchain is the original asset chain of the first asset. If so, modify the status identifier of the second asset to be valid. Otherwise, mint the second asset based on the fixed attribute information of the first asset in the first transfer transaction. Perform a hash operation on the second asset and its attached assets to obtain the hash of the second asset group. Determine whether the hash of the first asset group is the same as the hash of the second asset group. If they are the same, the transfer is successful.

3. The method for cross-chain transactions of non-fungible assets according to claim 1, characterized in that, Before executing the second 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, characterized in that, 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 in that, When the program is executed by the processor, it implements the method as described in any one of claims 1-3.