CN113888333A - Non-homogeneous asset cross-chain transaction method, equipment and storage medium - Google Patents
Non-homogeneous asset cross-chain transaction method, equipment and storage medium Download PDFInfo
- Publication number
- CN113888333A CN113888333A CN202111167251.5A CN202111167251A CN113888333A CN 113888333 A CN113888333 A CN 113888333A CN 202111167251 A CN202111167251 A CN 202111167251A CN 113888333 A CN113888333 A CN 113888333A
- Authority
- CN
- China
- Prior art keywords
- asset
- chain
- transaction
- blockchain
- homogeneous
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 35
- 238000003860 storage Methods 0.000 title claims abstract description 15
- 238000012546 transfer Methods 0.000 claims description 30
- 238000005266 casting Methods 0.000 claims description 17
- 238000004590 computer program Methods 0.000 claims description 9
- 230000003213 activating effect Effects 0.000 claims description 6
- 238000004519 manufacturing process Methods 0.000 claims description 3
- 230000001360 synchronised effect Effects 0.000 claims description 3
- 238000010586 diagram Methods 0.000 description 6
- 238000004891 communication Methods 0.000 description 4
- 230000006870 function Effects 0.000 description 4
- 230000004913 activation Effects 0.000 description 2
- 230000006378 damage Effects 0.000 description 2
- 230000000977 initiatory effect Effects 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000008569 process Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q40/00—Finance; Insurance; Tax strategies; Processing of corporate or income taxes
- G06Q40/04—Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
Landscapes
- Business, Economics & Management (AREA)
- Accounting & Taxation (AREA)
- Finance (AREA)
- Engineering & Computer Science (AREA)
- Development Economics (AREA)
- Economics (AREA)
- Marketing (AREA)
- Strategic Management (AREA)
- Technology Law (AREA)
- Physics & Mathematics (AREA)
- General Business, Economics & Management (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
Abstract
The invention belongs to the technical field of computers, and particularly relates to a non-homogeneous asset cross-chain transaction method, equipment and a storage medium.
Description
Technical Field
The invention belongs to the technical field of computers, and particularly relates to a non-homogeneous asset cross-chain transaction method, equipment and a storage medium.
Background
Many assets on the block chain are homogeneous, such as tokens, but the heterogeneous assets are more and more popular nowadays, for example, in the fields of games, artworks, collections and the like, the heterogeneous assets are more and more concerned, but the circulation of the heterogeneous assets is limited to be in the same block chain at present, and the circulation across the chain still has certain difficulty.
Disclosure of Invention
In order to solve the technical problems, the invention provides a non-homogeneous asset cross-chain transaction method, equipment and a storage medium, and solves the problem that non-homogeneous assets are difficult to transfer in a cross-chain mode.
In order to achieve the purpose, the invention adopts the following technical scheme.
In a first aspect, a non-homogeneous asset cross-chain transaction method is provided, where the method is applied to a blockchain system, where the blockchain system at least includes a first blockchain and a second blockchain, where one of the first blockchain and the second blockchain is a main chain and the other is a parallel chain, and a non-homogeneous asset cross-chain transaction contract is deployed on each of the first blockchain and the second blockchain, and the method includes:
obtaining a first transfer transaction initiated on a first blockchain for transferring a first asset across the chain, the first transfer transaction comprising fixed attribute information and ownership information of the first asset;
according to the first transfer transaction, calling a non-homogeneous asset cross-chain transaction contract of the first block chain to generate a first transaction instruction, wherein the first transaction instruction is used for modifying the state identifier and the owner of the first asset or destroying the first asset; the method of modifying the status identification and owner of a first asset or destroying the first asset comprises: judging whether the first asset is a derived asset or a native asset, destroying the first asset if the first asset is the derived asset, modifying the state identifier of the first asset into a logout state if the first asset is the native asset, and setting the owner of the first asset as a non-homogeneous asset cross-chain trading contract; the primary asset being a non-homogeneous asset formed in a current blockchain, the derived asset being a non-homogeneous asset cast by the primary asset transferring across the chain;
the first transfer transaction is synchronized to a second block chain based on the non-homogeneous asset cross-chain transaction contract, after the first transfer transaction is executed and identified on the first block chain, the second block chain calls the non-homogeneous asset cross-chain transaction contract of the first block chain based on the first transfer transaction to generate a second transaction instruction, and the second transaction instruction is used for casting or activating a second asset at the side of the second block chain; the second asset is a derived asset or a native asset of the first asset.
Preferably, the method of casting or activating a second asset at the second blockchain side comprises:
casting the second asset directly based on the fixed attribute information of the first asset within the first transfer transaction when the first asset is an original production asset;
and when the first asset is a derived asset, judging whether a second block chain has a second asset in a logout state, if so, modifying the second state identifier to be effective, otherwise, casting the second asset based on the fixed attribute information of the first asset in the first transfer transaction.
Preferably, the validity of the first asset is determined before the second transaction instruction is executed, and if the first asset is invalid, the execution of the first transfer transaction is terminated.
Preferably, if the third transaction instruction fails to execute, the asset status of the first asset is restored.
In a second aspect, a computer device is provided, comprising one or more processors;
a memory for storing one or more programs,
the one or more programs, when executed by the one or more processors, cause the one or more processors to perform the method as described in the first aspect above.
In a third aspect, there is provided a storage medium storing a computer program which, when executed by a processor, implements the method as described in the first aspect above.
The method has the beneficial effect of realizing cross-chain transfer of the non-homogeneous assets.
Drawings
Fig. 1 is a schematic structural diagram of a computer device according to embodiment 2 of the present invention.
Detailed Description
The invention is described in further detail below with reference to specific embodiments and the attached drawing figures. Those skilled in the art will be able to implement the invention based on these teachings. Moreover, the embodiments of the present invention described in the following description are generally only some embodiments of the present invention, and not all embodiments. Therefore, all other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without any creative effort shall fall within the protection scope of the present invention. Unless otherwise specified, the methods described in the examples of the present invention are all those known to those skilled in the art.
Example 1
The embodiment provides a non-homogeneous asset cross-chain transaction method, which is applicable to a blockchain system, where the blockchain system at least includes a first blockchain and a second blockchain, where 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 are deployed with a non-homogeneous asset cross-chain transaction contract, and in general, a non-homogeneous asset has some fixed attributes to ensure its non-homogeneous characteristics, such as a unique ID in the blockchain system, an issuer, and the like, and none of these clients can modify.
The method comprises the following steps:
obtaining a first transfer transaction initiated on a first blockchain for transferring a first asset across the chain, the first transfer transaction comprising fixed attribute information and ownership information of the first asset;
according to the first transfer transaction, calling a non-homogeneous asset cross-chain transaction contract of the first block chain to generate a first transaction instruction, wherein the first transaction instruction is used for modifying the state identifier and the owner of the first asset or destroying the first asset; the method of modifying the status identification and owner of a first asset or destroying the first asset comprises: judging whether the first asset is a derived asset or a native asset, destroying the first asset if the first asset is the derived asset, modifying the state identifier of the first asset into a logout state if the first asset is the native asset, and setting the owner of the first asset as a non-homogeneous asset cross-chain trading contract; the primary asset is a non-homogeneous asset formed in a current blockchain and the derived asset is a non-homogeneous asset cast by the primary asset transferring across the chain.
The first transfer transaction is synchronized to a second block chain based on the non-homogeneous asset cross-chain transaction contract, after the first transfer transaction is executed and identified on the first block chain, the second block chain calls the non-homogeneous asset cross-chain transaction contract of the first block chain based on the first transfer transaction to generate a second transaction instruction, and the second transaction instruction is used for casting or activating a second asset at the side of the second block chain; the second asset is a derived asset or a native asset of the first asset.
Further, the method of casting or activating a second asset at a second blockchain side includes:
casting the second asset directly based on the fixed attribute information of the first asset within the first transfer transaction when the first asset is an original production asset;
and when the first asset is a derived asset, judging whether a second block chain has a second asset in a logout state, if so, modifying the second state identifier to be effective, otherwise, casting the second asset based on the fixed attribute information of the first asset in the first transfer transaction.
The principle of the scheme provided by the embodiment is that the most difference between the non-homogeneous asset and the homogeneous asset is uniqueness, only certain users can hold the assets at the same time, and if the assets are transferred, corresponding owners need to be replaced; the transfer of non-homogeneous assets across the chain requires modification of the state of the non-homogeneous asset to logout or destruction on the initiating chain side, casting or activation on the target chain side. For example, in main chain destruction, in parallel chain casting, based on the same transfer transaction, the method is executed first on the main chain side, and first, whether the non-homogeneous asset meets the conditions is determined, for example, whether the non-homogeneous asset exists or not is judged, whether the time is effective or not, and the like, if the conditions are met, the transaction execution is successful, and the non-homogeneous asset is destroyed (the derived asset is on the initiating chain side); the parallel chain then synchronizes the same transaction, with the parallel chain side going on or casting (the target chain side being the derivative asset), and if activation or casting fails, e.g., the asset state cannot be modified or casting cannot be performed, the main chain side needs to restore the asset state to a valid state or to restore the destroyed asset.
Example 2
A computer device, the device comprising: one or more processors; 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 of embodiment 1.
A storage medium storing a computer program which, when executed by a processor, implements the method as described in embodiment 1 above.
Fig. 1 is a schematic structural diagram of an apparatus provided in this embodiment.
As shown in fig. 1, as another aspect, the present application also provides a computer apparatus 500 including one or more Central Processing Units (CPUs) 501 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)502 or a program loaded from a storage section 508 into a Random Access Memory (RAM) 503. In the RAM503, various programs and data necessary for the operation of the apparatus 500 are also stored. The CPU501, ROM502, and RAM503 are connected to each other via a bus 504. An input/output (I/O) interface 505 is also connected to bus 504.
The following components are connected to the I/O interface 505: an input portion 506 including a keyboard, a mouse, and the like; an output portion 507 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage portion 508 including a hard disk and the like; and a communication section 509 including a network interface card such as a LAN card, a modem, or the like. The communication section 509 performs communication via a network such as the internet, and the processing driver 510 is also connected to the I/O interface 505 as necessary. A removable medium 511 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 510 as necessary, so that a computer program read out therefrom is mounted into the storage section 508 as necessary.
In particular, according to the embodiments disclosed in the present application, the method described in the above embodiment 1 may be implemented as a computer software program. For example, embodiments disclosed herein include a computer program product comprising a computer program tangibly embodied on a machine-readable medium, the computer program comprising program code for performing the method described in any of the embodiments above. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 509, and/or installed from the removable medium 511.
As yet another aspect, the present application also provides a computer-readable storage medium, which may be the computer-readable storage medium included in the apparatus of the above-described embodiment; or it may be a separate computer readable storage medium not incorporated into the device. The computer readable storage medium stores one or more programs for use by one or more processors in performing the methods described herein.
The flowchart and block diagrams in the figures 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 the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units or modules described in the embodiments of the present application may be implemented by software or hardware. The described units or modules may also be provided in a processor, for example, each of the described units may be a software program provided in a computer or a mobile intelligent device, or may be a separately configured hardware device. Wherein the designation of a unit or module does not in some way constitute a limitation of the unit or module itself.
The above description is only a preferred embodiment of the application and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the invention herein disclosed is not limited to the particular combination of features described above, but also encompasses other arrangements formed by any combination of the above features or their equivalents without departing from the spirit of the present application. For example, the above features may be replaced with (but not limited to) features having similar functions disclosed in the present application.
Claims (6)
1. A non-homogeneous asset cross-chain trading method is applicable to a blockchain system, the blockchain system at least comprises 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, and non-homogeneous asset cross-chain trading contracts are deployed on the first blockchain and the second blockchain respectively, and the method comprises the following steps:
obtaining a first transfer transaction initiated on a first blockchain for transferring a first asset across the chain, the first transfer transaction comprising fixed attribute information and ownership information of the first asset;
according to the first transfer transaction, calling a non-homogeneous asset cross-chain transaction contract of the first block chain to generate a first transaction instruction, wherein the first transaction instruction is used for modifying the state identifier and the owner of the first asset or destroying the first asset; the method of modifying the status identification and owner of a first asset or destroying the first asset comprises: judging whether the first asset is a derived asset or a native asset, destroying the first asset if the first asset is the derived asset, modifying the state identifier of the first asset into a logout state if the first asset is the native asset, and setting the owner of the first asset as a non-homogeneous asset cross-chain trading contract; the primary asset being a non-homogeneous asset formed in a current blockchain, the derived asset being a non-homogeneous asset cast by the primary asset transferring across the chain;
the first transfer transaction is synchronized to a second block chain based on the non-homogeneous asset cross-chain transaction contract, after the first transfer transaction is executed and identified on the first block chain, the second block chain calls the non-homogeneous asset cross-chain transaction contract of the first block chain based on the first transfer transaction to generate a second transaction instruction, and the second transaction instruction is used for casting or activating a second asset at the side of the second block chain; the second asset is a derived asset or a native asset of the first asset.
2. The method of claim 1, wherein the method of casting or activating a second asset at a side of a second blockchain comprises:
casting the second asset directly based on the fixed attribute information of the first asset within the first transfer transaction when the first asset is an original production asset;
and when the first asset is a derived asset, judging whether a second block chain has a second asset in a logout state, if so, modifying the second state identifier to be effective, otherwise, casting the second asset based on the fixed attribute information of the first asset in the first transfer transaction.
3. The method of claim 1, wherein the validity of the first asset is determined before the first transaction instruction is executed, and if the first transaction instruction is invalid, execution of the first transfer transaction is terminated.
4. The method of claim 1, wherein the first asset is recovered if the third transaction instruction fails to execute.
5. A computer device, characterized by one or more processors;
a memory for storing one or more programs,
the one or more programs, when executed by the one or more processors, cause the one or more processors to perform the method recited in any of claims 1-4.
6. A storage medium storing a computer program, characterized in that the program, when executed by a processor, implements the method according to any one of claims 1-4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111167251.5A CN113888333A (en) | 2021-10-04 | 2021-10-04 | Non-homogeneous asset cross-chain transaction method, equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111167251.5A CN113888333A (en) | 2021-10-04 | 2021-10-04 | Non-homogeneous asset cross-chain transaction method, equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113888333A true CN113888333A (en) | 2022-01-04 |
Family
ID=79005349
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111167251.5A Pending CN113888333A (en) | 2021-10-04 | 2021-10-04 | Non-homogeneous asset cross-chain transaction method, equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113888333A (en) |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109146448A (en) * | 2018-07-13 | 2019-01-04 | 杭州复杂美科技有限公司 | Across chain assets transfer method, equipment and storage medium |
CN109446195A (en) * | 2018-09-20 | 2019-03-08 | 成都捕风数据科技有限公司 | A kind of design method of non-homogeneous digital asset standard |
CN111105236A (en) * | 2020-01-06 | 2020-05-05 | 江苏恒为信息科技有限公司 | Realization algorithm of non-homogeneity evidence |
US20200294143A1 (en) * | 2019-07-15 | 2020-09-17 | Alibaba Group Holding Limited | Transaction processing in a service blockchain |
US20210133700A1 (en) * | 2019-10-10 | 2021-05-06 | Forte Labs, Inc. | Blockchain Cross-Chain Non-Fungible Token Exchange |
CN112965985A (en) * | 2021-02-04 | 2021-06-15 | 复旦大学 | Data consistency maintenance method for realizing cross-chain interoperation |
CN113407640A (en) * | 2021-07-21 | 2021-09-17 | 杭州链网科技有限公司 | Multi-chain NFT (network File transfer) based chain crossing method and system |
US20210304196A1 (en) * | 2020-03-25 | 2021-09-30 | SneakrCred Inc. | System and method for digital fashion asset management through blockchain |
-
2021
- 2021-10-04 CN CN202111167251.5A patent/CN113888333A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109146448A (en) * | 2018-07-13 | 2019-01-04 | 杭州复杂美科技有限公司 | Across chain assets transfer method, equipment and storage medium |
CN109446195A (en) * | 2018-09-20 | 2019-03-08 | 成都捕风数据科技有限公司 | A kind of design method of non-homogeneous digital asset standard |
US20200294143A1 (en) * | 2019-07-15 | 2020-09-17 | Alibaba Group Holding Limited | Transaction processing in a service blockchain |
US20210133700A1 (en) * | 2019-10-10 | 2021-05-06 | Forte Labs, Inc. | Blockchain Cross-Chain Non-Fungible Token Exchange |
CN111105236A (en) * | 2020-01-06 | 2020-05-05 | 江苏恒为信息科技有限公司 | Realization algorithm of non-homogeneity evidence |
US20210304196A1 (en) * | 2020-03-25 | 2021-09-30 | SneakrCred Inc. | System and method for digital fashion asset management through blockchain |
CN112965985A (en) * | 2021-02-04 | 2021-06-15 | 复旦大学 | Data consistency maintenance method for realizing cross-chain interoperation |
CN113407640A (en) * | 2021-07-21 | 2021-09-17 | 杭州链网科技有限公司 | Multi-chain NFT (network File transfer) based chain crossing method and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108446947B (en) | Real estate transaction method and device | |
CN111783142B (en) | Data protection method, device, server and medium | |
CN111242780A (en) | Method, device and storage medium for sending consensus transaction | |
CN114327799B (en) | Distributed transaction processing method and device, electronic equipment and storage medium | |
CN112948081B (en) | Method, device, equipment and storage medium for processing tasks in delayed mode | |
CN113888328A (en) | Non-homogeneous asset group cross-chain transaction method, equipment and storage medium | |
CN115220876A (en) | Virtual resource creating method, device, program product, medium and electronic equipment | |
CN106874020B (en) | Method and device for starting plug-in | |
US20150256599A1 (en) | Dynamic transaction coordination | |
US7346690B1 (en) | Deferred piggybacked messaging mechanism for session reuse | |
CN113888333A (en) | Non-homogeneous asset cross-chain transaction method, equipment and storage medium | |
CN112596871A (en) | Service processing method and device | |
US20180060731A1 (en) | Stage-wise mini batching to improve cache utilization | |
US9910893B2 (en) | Failover and resume when using ordered sequences in a multi-instance database environment | |
CN112435123A (en) | Transaction method, system and storage medium based on isomorphic multi-chain system | |
CN111292028A (en) | Inventory information processing method and system, computer system and readable storage medium | |
US10402234B2 (en) | Fine-grain synchronization in data-parallel jobs | |
CN114661523A (en) | Data backup method, device, program product, medium and electronic equipment | |
CN110795288B (en) | Data acquisition method, device and storage medium | |
CN114217911A (en) | Cross-chain transaction processing method, device, computing equipment and medium | |
CN114331425A (en) | Block chain based digital asset calling method, system, electronic device and readable storage medium | |
CN112232824A (en) | Abstract syntax tree-based risk result calculation method and equipment | |
CN113448704B (en) | Task processing method and device | |
CN117436042A (en) | NFT-based image copyright protection method, device and storage medium | |
CN113744055B (en) | Cross-link message transmission method, device and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |