Asset cross-chain system, method, electronic device, and storage medium
By introducing a cross-chain platform as a relay chain into the blockchain system, the centralization risk of cross-chain transactions in existing blockchain technologies is resolved, and decentralized cross-chain asset transactions and data security are achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- HANGZHOU QULIAN TECHNOLOGY CO LTD
- Filing Date
- 2022-08-17
- Publication Date
- 2026-04-21
AI Technical Summary
Existing blockchain cross-chain technology has the risk of centralization, which leads to the easy loss of transaction data and insufficient security.
An asset cross-chain system is adopted, including a source chain, a destination chain, and a cross-chain platform. The cross-chain platform acts as a relay chain to facilitate the flow and trading of asset information, ensuring the decentralization and security of transaction data.
It achieves decentralization of cross-chain asset transactions, ensuring the security and authenticity of transaction data and avoiding the risks of centralization.
Smart Images

Figure CN115439119B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of blockchain technology, and in particular to an asset cross-chain system, method, electronic device, and storage medium. Background Technology
[0002] Cross-chain technology enables direct communication between blockchains, breaking down barriers between them. It is a crucial technological means to achieve interoperability and improve scalability. Currently, mainstream blockchain cross-chain technologies can be categorized by their principles and implementation methods, including: notary mechanisms, sidechains / relays, and hash locking.
[0003] The notary mechanism is the simplest model, where the "intermediary" is also the "notary" and becomes a trusted third party. The notary continuously collects data and performs transaction confirmation and verification. That is, assuming A and B cannot trust each other, a third party that both A and B can trust is introduced to act as a notary as an intermediary. In this way, A and B can indirectly trust each other, solving the problem of two chains not being able to directly interoperate.
[0004] However, the notary mechanism uses a centralized data processing method when conducting transactions, meaning that transaction data is collected and traded at the notary's location. If data is lost at the notary's location, the transaction data cannot be retrieved, which poses a centralized risk. Summary of the Invention
[0005] This application provides an asset cross-chain system, method, electronic device, and storage medium to address the problem of centralization risk in asset transactions in the prior art.
[0006] In a first aspect, embodiments of this application provide an asset cross-chain system, including: a source chain, a destination chain, and a cross-chain platform;
[0007] The source chain is used to initiate a first asset cross-chain request, which includes first asset information and destination chain address information.
[0008] The cross-chain platform is used to obtain the first asset cross-chain request, transfer the first asset information to obtain the second asset information, and send the second asset cross-chain request to the destination chain indicated by the destination chain address information. The second asset request includes the second asset information. The cross-chain platform is a relay chain.
[0009] The destination chain is used to receive the cross-chain request for the second asset; and when it is determined that the second asset information meets the transaction conditions, to complete the cross-chain transaction based on the second asset information.
[0010] Optionally, when the cross-chain platform processes the first asset information to obtain the second asset information, it specifically uses the following methods:
[0011] Anchored asset information is generated based on the first asset information;
[0012] According to the preset cross-chain payment rules, cross-chain asset payment is performed on the anchored asset information to obtain the second asset information.
[0013] Optionally, the second asset information includes a margin deposit, which is used for cross-chain asset payments to the target chain.
[0014] When the destination chain determines that the second asset information meets the transaction conditions, it is specifically used for:
[0015] The target chain obtains cross-chain threshold information, which is used to indicate the minimum value required for cross-chain asset payments with the target chain.
[0016] Determine whether the margin is greater than the cross-chain threshold information;
[0017] If so, determine that the second asset information meets the transaction conditions.
[0018] Optionally, the second asset information includes margin and transferred asset information. When the destination chain completes a cross-chain asset transaction based on the second asset information, it is specifically used for:
[0019] The destination chain deducts the cross-chain asset fee from the margin of the second asset information;
[0020] The destination chain transfers the transferred asset information from the second asset information to its local chain, thus completing the cross-chain asset transaction.
[0021] Optionally, the source chain is further configured to: when the second asset information does not meet the transaction conditions, obtain newly added third asset information and send a third asset cross-chain request to the cross-chain platform, wherein the third asset cross-chain request includes the third asset information;
[0022] The cross-chain platform is also used to forward the cross-chain request of the third asset to the destination chain after receiving it.
[0023] The destination chain is also used to receive the cross-chain request for the third asset and to complete the cross-chain transaction based on the second asset information and the third asset information.
[0024] Optionally, the source chain is further configured to: send a request to the cross-chain platform to cancel the cross-chain transaction when the second asset information does not meet the transaction conditions;
[0025] The cross-chain platform is also used to receive the request to cancel the cross-chain asset transfer and forward the request to the destination chain.
[0026] The destination chain is also used to receive the request to cancel the cross-chain asset transaction and cancel the cross-chain asset transaction of the second cross-chain asset request.
[0027] Optionally, the first asset cross-chain request may also include first cross-chain endorsement information;
[0028] The cross-chain platform is further configured to verify the first cross-chain endorsement information after receiving the first asset cross-chain request; if the verification of the first cross-chain endorsement information fails, the cross-chain asset transaction of the first asset cross-chain request is rejected; if the verification of the first cross-chain endorsement information passes, the transfer of the first asset information is executed.
[0029] Optionally, the source chain and the cross-chain platform, as well as the cross-chain platform and the destination chain, communicate through a cross-chain gateway.
[0030] Secondly, embodiments of this application provide an asset cross-chain method, applied to the asset cross-chain system described in the first aspect, the method comprising:
[0031] Receive a first asset cross-chain request initiated by the source chain, the first asset cross-chain request including first asset information and destination chain address information;
[0032] The first asset information is transferred to obtain the second asset information;
[0033] A second asset cross-chain request is sent to the destination chain indicated by the destination chain address information. The second asset request includes the second asset information, so that the destination chain receives the second asset cross-chain request. When it is determined that the second asset information meets the transaction conditions, the asset cross-chain transaction is completed based on the second asset information.
[0034] Thirdly, embodiments of this application provide an electronic device, including: a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus;
[0035] The memory is used to store computer programs;
[0036] The processor is used to execute the program stored in the memory to implement the cross-chain asset method described in the second aspect.
[0037] Fourthly, embodiments of this application provide a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the cross-chain asset method described in the second aspect.
[0038] Compared with the prior art, the technical solution provided in this application has the following advantages: The system provided in this application sets up a source chain, a destination chain, and a cross-chain platform; the source chain initiates a first asset cross-chain request, which includes first asset information and destination chain address information; the cross-chain platform is used to obtain the first asset cross-chain request, process the first asset information to obtain second asset information, and send a second asset cross-chain request to the destination chain indicated by the destination chain address information, which includes the second asset information; the destination chain is used to receive the second asset cross-chain request; and when it is determined that the second asset information meets the transaction conditions, the cross-chain transaction is completed based on the second asset information. Thus, when a user needs to perform asset cross-chain transactions, after initiating a first asset cross-chain request through the source chain, the cross-chain platform can process the first asset information and send the corresponding second asset cross-chain request to the destination chain requested by the source chain, thereby completing the asset cross-chain transaction. Using a cross-chain platform for asset cross-chain transactions, since the cross-chain platform is a relay chain, ensures the decentralization of transaction data on the cross-chain platform and guarantees the security of transaction data. Attached Figure Description
[0039] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0040] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0041] Figure 1 A structural diagram of an asset cross-chain system provided in an embodiment of this application;
[0042] Figure 2 A structural diagram of an asset cross-chain system provided in another embodiment of this application;
[0043] Figure 3 A flowchart of an asset cross-chain method provided in an embodiment of this application;
[0044] Figure 4 This is a structural diagram of an electronic device provided in an embodiment of this application. Detailed Implementation
[0045] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0046] Before providing a further detailed description of the embodiments of the present invention, the nouns and terms involved in the embodiments of the present invention will be explained, and the nouns and terms involved in the embodiments of the present invention shall be subject to the following interpretations.
[0047] The relay mode establishes an additional relay chain between the source and destination chains to verify and execute cross-chain transactions. Nodes in the relay chain are distributed across various blockchain networks, constantly synchronizing cross-chain transaction information. After a user initiates a cross-chain transaction in the source chain, the relay node forwards this information to the relay chain and verifies the transaction data. Once verification is complete, the consensus nodes in the relay chain construct the corresponding transaction, complete the signature, and finally transfer it to the destination chain via the relay node. The relay chain itself is also a blockchain, possessing many of the advantages of blockchain and providing security for data.
[0048] Smart contracts are often thought of as an automated escrow account; for example, a program releases and transfers funds when certain conditions are met.
[0049] Endorsement: In blockchain, endorsement can be understood as a node in the chain verifying a transaction and declaring it legal (or illegal). An endorsing node must prove its legitimacy through a valid signature of the expected information in a valid certificate.
[0050] Gas fees are used to measure the cost required to perform a specific operation on the Ethereum blockchain.
[0051] One embodiment of this application provides an asset cross-chain system, such as... Figure 1 As shown, this cross-chain asset system includes: a source chain, a destination chain, and a cross-chain platform. Among them,
[0052] The source chain is used to initiate a first asset cross-chain request, which includes first asset information and destination chain address information.
[0053] The cross-chain platform is used to obtain the first asset cross-chain request, transfer the first asset information to obtain the second asset information, and send the second asset cross-chain request to the destination chain indicated by the destination chain address information. The second asset request includes the second asset information. The cross-chain platform is a relay chain.
[0054] The destination chain is used to receive the cross-chain request for the second asset; and when it is determined that the second asset information meets the transaction conditions, to complete the cross-chain transaction based on the second asset information.
[0055] In some embodiments, the source chain is the originator in the asset cross-chain process, and the source chain includes a user account module and a corresponding custody contract module. When a user needs to conduct an asset cross-chain transaction, they log in to the user account module, transfer the first asset information in the user account module, and initiate a first asset cross-chain request based on the first asset information and the destination chain address information by calling the custody contract module.
[0056] Upon receiving a cross-chain request for the first asset, the cross-chain platform processes the cross-chain information of the first asset according to its internal procedures, converting it into a pegged asset and charging a gas fee to obtain the second asset information. Then, based on the second asset information, it sends a cross-chain request for the second asset to the target chain. Because the cross-chain platform is a relay chain, asset transactions conducted through it achieve decentralization, ensuring the security and authenticity of transaction data.
[0057] After receiving a cross-chain request for a second asset, the destination chain determines whether the transaction conditions are met based on the information of the second asset. If the transaction conditions are met, the cross-chain transaction is completed based on the information of the second asset.
[0058] In one optional embodiment, the source chain and the cross-chain platform, as well as the cross-chain platform and the destination chain, communicate through a cross-chain gateway.
[0059] In some embodiments, a cross-chain gateway is an intermediary component used to communicate between the source chain and the cross-chain platform, and between the destination chain and the cross-chain platform, during the asset cross-chain process. By setting up a cross-chain gateway, interaction and data transmission between the source chain, the cross-chain platform, and the destination chain are realized.
[0060] In an optional embodiment, when the cross-chain platform transfers the first asset information to obtain the second asset information, it specifically performs the following:
[0061] Anchored asset information is generated based on the first asset information; cross-chain asset payment is performed on the anchored asset information according to the preset cross-chain payment rules to obtain the second asset information.
[0062] In some embodiments, anchor asset information is generated from the first asset information and converted into an asset form common in the cross-chain platform, thereby facilitating subsequent asset transactions. Additionally, each time a cross-chain transaction is conducted through the cross-chain platform, the platform typically charges a gas fee, i.e., cross-chain asset payments are made using the anchor asset information, thus obtaining the second asset information.
[0063] In one optional embodiment, the second asset information includes a margin deposit, which is used for cross-chain asset payments on the target chain.
[0064] When the destination chain determines that the second asset information meets the transaction conditions, it is specifically used for:
[0065] The target chain obtains cross-chain threshold information, which indicates the minimum value required for cross-chain asset payments with the target chain; it determines whether the margin is greater than the cross-chain threshold information; if so, it determines that the second asset information meets the transaction conditions.
[0066] In some embodiments, before the asset information is transferred to the target chain, the cost of the target chain needs to be paid by the cross-chain platform. Furthermore, the actual cost of the target chain is uncertain and may fluctuate significantly; in extreme cases, the cost of the target chain could even be higher than the actual cross-chain asset. Therefore, a margin is set in the asset information, and this margin is used to determine whether the second asset information meets the transaction conditions.
[0067] The cross-chain threshold information can be the average or median value of the cross-chain fees calculated by the target chain for asset transactions on that chain, and this average or median value can be used as the cross-chain threshold information.
[0068] In one optional embodiment, the second asset information includes margin and transferred asset information. When the destination chain completes a cross-chain asset transaction based on the second asset information, it is specifically used for:
[0069] The destination chain deducts the cross-chain asset fee from the margin of the second asset information; the destination chain transfers the transferred asset information in the second asset information to its local machine, thus completing the cross-chain asset transaction.
[0070] In some embodiments, after the destination chain receives a cross-chain request for a second asset, it extracts a margin from the second asset information in the request. If the margin is sufficient to cover the cross-chain fees of the destination chain, the destination chain deducts the cross-chain asset fees from the margin and transfers the transferred asset information locally. The transferred asset information refers to the asset information that the user wants to transfer from the source chain to the destination chain.
[0071] In an optional embodiment, the source chain is further configured to: when the second asset information does not meet the transaction conditions, obtain newly added third asset information and send a third asset cross-chain request to the cross-chain platform, the third asset cross-chain request including the third asset information; the cross-chain platform is further configured to forward the third asset cross-chain request to the destination chain after receiving it; the destination chain is further configured to receive the third asset cross-chain request and complete the asset cross-chain transaction based on the second asset information and the third asset information.
[0072] In some embodiments, when the source chain determines that the second asset information does not meet the transaction conditions (i.e., the margin is insufficient to cover the cross-chain fees of the destination chain), it sends a third asset cross-chain request to the cross-chain platform. Upon receiving this request, the cross-chain platform forwards it to the destination chain, which then completes the cross-chain transaction based on the third asset information in the request and the second asset information. Thus, by increasing the margin, the amount of the margin is increased to complete the cross-chain transaction.
[0073] In an optional embodiment, the source chain is further configured to: send a request to cancel the cross-chain transaction to the cross-chain platform when the second asset information does not meet the transaction conditions; the cross-chain platform is further configured to receive the request to cancel the cross-chain transaction and forward the request to the destination chain; the destination chain is further configured to receive the request to cancel the cross-chain transaction and cancel the cross-chain transaction of the second asset cross-chain request.
[0074] In some embodiments, when the second asset information does not meet the transaction conditions, the source chain can send a request to the cross-chain platform to cancel the cross-chain transaction, which is then forwarded by the cross-chain platform to the destination chain so that the destination chain cancels the cross-chain transaction.
[0075] In an optional embodiment, the first asset cross-chain request further includes first cross-chain endorsement information;
[0076] The cross-chain platform is further configured to verify the first cross-chain endorsement information after receiving the first asset cross-chain request; if the verification of the first cross-chain endorsement information fails, the cross-chain asset transaction of the first asset cross-chain request is rejected; if the verification of the first cross-chain endorsement information passes, the transfer of the first asset information is executed.
[0077] In an optional embodiment, the second asset cross-chain request further includes second cross-chain endorsement information;
[0078] The destination chain is further configured to verify the second cross-chain endorsement information after obtaining the second asset cross-chain request; if the verification of the second cross-chain endorsement information fails, the cross-chain asset transaction of the second asset cross-chain request is rejected; if it is determined that the second asset information meets the transaction conditions, the asset cross-chain transaction is completed based on the second asset information.
[0079] In some embodiments, to improve the security of cross-chain asset transactions, cross-chain endorsement information can be added to the cross-chain request. This allows the cross-chain platform to verify the first cross-chain endorsement information after receiving the first asset cross-chain request, and to verify the second cross-chain endorsement information after receiving the second asset cross-chain request from the destination link.
[0080] In an optional embodiment, see Figure 2 The cross-chain asset system of this application specifically includes:
[0081] Source Chain: Refers to the source chain in the asset cross-chain process, containing a custody contract. Destination Chain: Refers to the destination chain in the asset cross-chain process, containing a custody contract. Cross-Chain Platform: Refers to the relay chain in the asset cross-chain process, used for asset transfer and endorsement of corresponding cross-chain transactions. Cross-Chain Gateway: Refers to the intermediary component used to communicate between the source chain and the cross-chain platform, and between the destination chain and the cross-chain platform, during the asset cross-chain process.
[0082] The specific asset cross-chain process can be as follows: First, the user initiates an asset cross-chain request to the custody contract of the source chain. Initiating this request requires transferring the corresponding cross-chain assets to the custody contract's account. During this process, the user first needs to pay the source chain's fees. In addition to transferring the cross-chain assets to the custody contract, the user also needs to transfer a corresponding margin to the custody contract. The margin amount is set by the user and is used to pay the destination chain's fees. The platform recommends the median destination chain fees for the current period, and users can choose to increase or decrease the margin. After the user successfully invokes the custody contract, the custody contract will trigger an asset cross-chain event.
[0083] The cross-chain event of an asset on the source chain will be captured by the cross-chain gateway of the source chain. The cross-chain gateway will send an asset cross-chain request to the cross-chain platform based on this asset cross-chain event. The asset cross-chain request contains the endorsement of the source chain for the asset cross-chain request.
[0084] After receiving an asset cross-chain request, the cross-chain platform verifies the endorsement of the request. If the verification fails, the cross-chain request will not be accepted; otherwise, it will be accepted.
[0085] Based on an asset cross-chain request, the cross-chain platform generates an anchor asset within the platform and facilitates its circulation. During this circulation process, the cross-chain platform collects corresponding cross-chain fees, which are charged proportionally. After a successful asset transfer, the cross-chain platform destroys the transferred asset and initiates an asset cross-chain request to the cross-chain gateway of the destination chain. This request includes the cross-chain platform's endorsement of the asset cross-chain request.
[0086] Upon receiving this cross-chain request for the asset, the cross-chain gateway on the destination chain verifies the endorsement of the request. If the verification fails, the cross-chain request for the asset will not be accepted; otherwise, it will be accepted.
[0087] After accepting the application, the cross-chain gateway will determine whether the user's current margin is sufficient to pay the target chain fee. If the margin is sufficient, the cross-chain gateway will invoke the escrow contract in the target chain; if the margin is insufficient, the cross-chain gateway will wait for the target chain fee to decrease.
[0088] Typically, when the margin is insufficient, two methods can be used. First, upon determining that the margin is insufficient to cover the costs, the user is prompted to actively cancel the cross-chain asset request. The destination chain's custody contract then throws a cancellation event, which is captured by the cross-chain gateway and sent to the relay chain (i.e., the cross-chain platform). The relay chain verifies the cancellation and sends it back to the destination chain gateway. It's understandable that the user can actively redeem the cross-chain assets, but this will incur relevant cross-chain fees. Second, the user can choose to actively add commission, transfer asset information, and repeat the above cross-chain steps until the margin is sufficient to cover the destination chain fees.
[0089] After confirming that the margin is sufficient for payment, during the invocation of the destination chain's escrow contract, the escrow contract verifies the cross-chain platform's endorsement. Once verification is successful, the escrow contract transfers the assets to the user's account on the destination chain. The destination chain's cross-chain gateway captures the fees for this asset transfer on the destination chain, and these fees are deducted from the user's margin.
[0090] Understandably, after a local cross-chain transaction is completed, if there is still a remaining margin, the user can choose to redeem it on the source chain or keep it for future use. The cross-chain platform maintains the user's margin amount, and the cross-chain platform must provide endorsement for the user to redeem assets on the source chain.
[0091] Based on the same concept, one embodiment of this application provides an asset cross-chain method, which can be applied to the asset cross-chain system described in the above embodiments. For example... Figure 3 As shown, this cross-chain asset transfer method includes:
[0092] Step 301: Receive the first asset cross-chain request initiated by the source chain, wherein the first asset cross-chain request includes the first asset information and the destination chain address information;
[0093] Step 302: Transfer the first asset information to obtain the second asset information;
[0094] Step 303: Send a second asset cross-chain request to the destination chain indicated by the destination chain address information. The second asset request includes the second asset information, so that the destination chain receives the second asset cross-chain request. When it is determined that the second asset information meets the transaction conditions, complete the asset cross-chain transaction based on the second asset information.
[0095] Based on the same concept, this application also provides an electronic device, such as... Figure 4 As shown, the electronic device mainly includes a processor 401, a memory 402, and a communication bus 403. The processor 401 and the memory 402 communicate with each other via the communication bus 403. The memory 402 stores programs that can be executed by the processor 401. The processor 401 executes the programs stored in the memory 402 to perform the following steps:
[0096] Receive a first asset cross-chain request initiated by the source chain, the first asset cross-chain request including first asset information and destination chain address information;
[0097] The first asset information is transferred to obtain the second asset information;
[0098] A second asset cross-chain request is sent to the destination chain indicated by the destination chain address information. The second asset request includes the second asset information, so that the destination chain receives the second asset cross-chain request. When it is determined that the second asset information meets the transaction conditions, the asset cross-chain transaction is completed based on the second asset information.
[0099] The communication bus 403 mentioned in the above electronic device can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. This communication bus 403 can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 4 The bus is represented by a single thick line, but this does not mean that there is only one bus or one type of bus.
[0100] The memory 402 may include random access memory (RAM) or non-volatile memory, such as at least one disk storage device. Optionally, the memory may also be at least one storage device located remotely from the aforementioned processor 401.
[0101] The processor 401 mentioned above can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc., or a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components.
[0102] In another embodiment of this application, a computer-readable storage medium is also provided, which stores a computer program that, when run on a computer, causes the computer to execute the asset cross-chain system described in the above embodiments.
[0103] In the above embodiments, implementation can be achieved, in whole or in part, through software, hardware, firmware, or any combination thereof. When implemented in software, it can be implemented, in whole or in part, as a computer program product. This computer program product includes one or more computer instructions. When these computer instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another, for example, from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, microwave, etc.) means. The computer-readable storage medium can be any available medium accessible to a computer or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape, etc.), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid-state drive), etc.
[0104] It should be noted that, in this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0105] The above description is merely a specific embodiment of the present invention, enabling those skilled in the art to understand or implement the invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the invention. Therefore, the present invention is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features claimed herein.
Claims
1. An asset cross-chain system, characterized in that, include: Source chain, destination chain, and cross-chain platform; The source chain is used to initiate a first asset cross-chain request, which includes first asset information, destination chain address information, and first cross-chain endorsement information. The cross-chain platform is used to obtain the first asset cross-chain request, verify the first cross-chain endorsement information, and if the first cross-chain endorsement information fails to be verified, reject the cross-chain asset transaction of the first asset cross-chain request. If the first cross-chain endorsement information is verified, the first asset information is transferred to obtain the second asset information, including: generating anchor asset information based on the first asset information, making cross-chain asset payments on the anchor asset information according to preset cross-chain payment rules to obtain the second asset information, destroying the transferred asset after the asset transfer is successful, and sending a second asset cross-chain request to the destination chain indicated by the destination chain address information, wherein the second asset request includes the second asset information; The destination chain is used to receive the cross-chain request for the second asset; and when it is determined that the second asset information meets the transaction conditions, to complete the cross-chain transaction based on the second asset information.
2. The cross-chain asset system according to claim 1, characterized in that, The second asset information includes a margin deposit, which is used for cross-chain asset payments on the target chain. When the destination chain determines that the second asset information meets the transaction conditions, it is specifically used for: The target chain obtains cross-chain threshold information, which is used to indicate the minimum value required for cross-chain asset payments with the target chain. Determine whether the margin is greater than the cross-chain threshold information; If so, determine that the second asset information meets the transaction conditions.
3. The asset cross-chain system according to claim 1 or 2, characterized in that, The second asset information includes margin and transferred asset information. When the destination chain completes a cross-chain asset transaction based on the second asset information, it is specifically used for: The destination chain deducts the cross-chain asset fee from the margin of the second asset information; The destination chain transfers the transferred asset information from the second asset information to its local chain, thus completing the cross-chain asset transaction.
4. The asset cross-chain system according to claim 1 or 2, characterized in that, The source chain is also used to: when the second asset information does not meet the transaction conditions, obtain newly added third asset information and send a third asset cross-chain request to the cross-chain platform, wherein the third asset cross-chain request includes the third asset information; The cross-chain platform is also used to forward the cross-chain request of the third asset to the destination chain after receiving it. The destination chain is also used to receive the cross-chain request for the third asset and to complete the cross-chain transaction based on the second asset information and the third asset information.
5. The cross-chain asset system according to claim 1 or 2, characterized in that, The source chain is also used to: send a request to the cross-chain platform to cancel the cross-chain transaction when the second asset information does not meet the transaction conditions; The cross-chain platform is also used to receive the request to cancel the cross-chain asset transfer and forward the request to the destination chain. The destination chain is also used to receive the request to cancel the cross-chain asset transaction and cancel the cross-chain asset transaction of the second cross-chain asset request.
6. A method for cross-chain asset transfer, characterized in that, Applied to the cross-chain asset system as described in any one of claims 1-5, the method includes: Receive a first asset cross-chain request initiated by the source chain, the first asset cross-chain request including first asset information, destination chain address information and first cross-chain endorsement information; Verify the first cross-chain endorsement information. If the first cross-chain endorsement information fails verification, reject the cross-chain asset transaction request of the first asset. If the first cross-chain endorsement information passes verification, transfer the first asset information to obtain the second asset information, including: generating anchor asset information based on the first asset information, making cross-chain asset payments on the anchor asset information according to preset cross-chain payment rules to obtain the second asset information, and destroying the transferred asset after the asset transfer is successful. A second asset cross-chain request is sent to the destination chain indicated by the destination chain address information. The second asset request includes the second asset information, so that the destination chain receives the second asset cross-chain request. When it is determined that the second asset information meets the transaction conditions, the asset cross-chain transaction is completed based on the second asset information.
7. An electronic device, characterized in that, include: The processor, communication interface, memory, and communication bus are connected, with the processor, communication interface, and memory communicating with each other via the communication bus. The memory is used to store computer programs; The processor is used to execute the program stored in the memory to implement the cross-chain asset method of claim 6.
8. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it implements the cross-chain asset method of claim 6.
Citation Information
Patent Citations
A cross-chain distributed service system and method developed based on a block chain
CN109726251A
Satellite chain relay-based cross-chain communication method
CN113839768A