Cross-chain transaction method, computer device, and storage medium

By setting up multiple cross-chain information transmission channels between blockchains and selecting transmission strategies according to user needs, the problem of diversified transaction credentials and time in cross-chain transactions is solved, and the efficiency of cross-chain data interaction and user experience are improved.

CN119048230BActive Publication Date: 2025-09-26HANGZHOU HIGH-TECH ZONE (BINJIANG) INSTITUTE OF BLOCKCHAIN & DATA SECURITY
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410897075.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-04
Publication Date
2025-09-26
Estimated Expiration
2044-07-04

AI Technical Summary

Technical Problem

Existing cross-chain transaction methods require users to pay fixed user transaction credentials, which cannot meet users' diverse needs for transaction credentials and transaction time, and the efficiency of cross-chain data interaction between blockchains is low.

Method used

Set up transaction voucher priority channels, speed priority channels, balance channels and custom channels between the business acquisition blockchain and the target blockchain, select the target information transmission channel according to user needs, determine the user transaction voucher and cross-chain transmission data, send the cross-chain transmission data through the target information transmission channel, and send the target transaction data after authority verification on the target blockchain.

Benefits of technology

It meets users' diverse needs for transaction time and transaction credentials during cross-chain transactions, improves the efficiency of cross-chain data interaction, and enhances users' cross-chain transaction experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119048230B_ABST
    Figure CN119048230B_ABST
Patent Text Reader

Abstract

This application relates to a cross-chain transaction method, computer equipment, and storage medium. It includes: the business acquisition blockchain obtains cross-chain transaction information sent by the user end, analyzes the cross-chain transaction information through a cross-chain information transmission channel, and determines a target information transmission channel from the cross-chain information transmission channel based on the analysis results; the business acquisition blockchain determines the user transaction credentials and cross-chain transmission data based on the cross-chain transaction information through the target information transmission channel, and sends the cross-chain transmission data to the destination blockchain; the destination blockchain verifies the user's transaction authority based on the cross-chain transmission data; if the verification is successful, the user transaction credentials are obtained and the target transaction data is sent to the business acquisition blockchain; the business acquisition blockchain sends the target transaction data to the user end. The above solution meets the diverse needs of users for transaction time and the user transaction credentials required when conducting cross-chain transactions, and improves the efficiency of cross-chain data interaction of blockchains.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of blockchain technology, and in particular to a cross-chain transaction method, computer equipment, and storage medium. Background Art

[0002] Blockchain is a decentralized, distributed ledger with immutable, secure, and reliable block chain storage. Users can deploy transaction credentials on the blockchain to access desired information or data. Currently, a single blockchain may not be able to meet users' diverse transaction needs, leading to the emergence of cross-chain transactions. If the business-acquisition blockchain that obtains user transaction information cannot provide the data required, the business-acquisition blockchain can, based on a pre-configured cross-chain transaction contract, send the user transaction information to a destination blockchain capable of executing cross-chain transactions. This allows the user to obtain the required data from the destination blockchain upon payment of the user transaction credentials. However, current cross-chain transaction methods require users to pay a fixed user transaction credential, which cannot meet users' diverse needs for the required user transaction credentials and transaction time. Furthermore, cross-chain data exchange between blockchains is inefficient. Therefore, how to meet users' diverse needs for transaction time and required user transaction credentials during cross-chain transactions and improve the efficiency of cross-chain data exchange across blockchains is a challenge that needs to be addressed. Summary of the Invention

[0003] Based on this, it is necessary to address the above technical issues and provide a cross-chain transaction method, computer equipment, and storage medium that can meet the diverse needs of users regarding transaction time and the user transaction credentials required when conducting cross-chain transactions.

[0004] In a first aspect, the present application provides a cross-chain transaction method, the method comprising:

[0005] The business acquires cross-chain transaction information sent by the user end through the blockchain, analyzes the cross-chain transaction information through the cross-chain information transmission channel, and determines the target information transmission channel from the cross-chain information transmission channel based on the analysis results; the cross-chain information transmission channel includes a transaction voucher priority channel, a speed priority channel, a balance channel, and a custom channel;

[0006] The business acquires the blockchain through the target information transmission channel, determines the user transaction credentials and cross-chain transmission data according to the cross-chain transaction information, and sends the cross-chain transmission data to the destination blockchain;

[0007] The destination blockchain obtains the cross-chain transmission data and verifies the user's transaction authority based on the cross-chain transmission data. If the destination blockchain verifies the user's transaction authority successfully, it obtains the user transaction voucher sent by the target information transmission channel and sends the target transaction data to the business acquisition blockchain through the target information transmission channel.

[0008] The business acquisition blockchain obtains the target transaction data sent by the target information transmission channel and sends the target transaction data to the user terminal.

[0009] In one embodiment, the business acquires the blockchain through the target information transmission channel, determines the user transaction credentials and cross-chain transmission data according to the cross-chain transaction information, and sends the cross-chain transmission data to the destination blockchain, including:

[0010] If the target information transmission channel is a custom channel, the business obtains the blockchain through the custom channel and determines the user transaction voucher, user identity information, transaction voucher slippage, and transaction time slippage based on the cross-chain transaction information;

[0011] The business obtains the blockchain to verify the transaction time slippage through the custom channel;

[0012] If the business obtains the blockchain and verifies the transaction time slippage, the cross-chain transmission data is determined through the custom channel according to the user identity information and the transaction voucher slippage, and the cross-chain transmission data is sent to the destination blockchain.

[0013] In one embodiment, after the business obtains the blockchain to verify the transaction time slippage through the custom channel, it also includes:

[0014] If the business obtains the blockchain and fails to verify the transaction time slippage, the user transaction certificate is returned to the user terminal.

[0015] In one embodiment, the business acquires the blockchain through the target information transmission channel, determines the user transaction credentials and cross-chain transmission data according to the cross-chain transaction information, and sends the cross-chain transmission data to the destination blockchain, further comprising:

[0016] If the target information transmission channel is a transaction voucher priority channel, the business acquisition blockchain determines the user transaction voucher and user identity information based on the cross-chain transaction information through the transaction voucher priority channel, and uses the user identity information as cross-chain transmission data;

[0017] The business acquisition blockchain stores the cross-chain transmission data into the first transmission data queue through the transaction voucher priority channel;

[0018] The business acquisition blockchain determines whether the queue length of the first transmission data queue meets a preset queue length threshold. If so, all the cross-chain transmission data in the first transmission data queue are sent to the destination blockchain through the transaction voucher priority channel.

[0019] In one embodiment, the business acquires the blockchain through the target information transmission channel, determines the user transaction credentials and cross-chain transmission data according to the cross-chain transaction information, and sends the cross-chain transmission data to the destination blockchain, further comprising:

[0020] If the target information transmission channel is a balancing channel, the business acquires the blockchain through the balancing channel, determines the user transaction credentials and user identity information based on the cross-chain transaction information, and uses the user identity information as cross-chain transmission data;

[0021] The business obtains the blockchain through the balance channel and stores the cross-chain transaction information in the second transmission data queue;

[0022] The business acquisition blockchain sends all the cross-chain transmission data in the second transmission data queue to the destination blockchain through the balance channel based on the transaction information sending cycle.

[0023] In one embodiment, the business acquires the blockchain through the target information transmission channel, determines the user transaction credentials and cross-chain transmission data according to the cross-chain transaction information, and sends the cross-chain transmission data to the destination blockchain, further comprising:

[0024] If the target information transmission channel is a speed-priority channel, the business acquires the blockchain through the speed-priority channel, determines the user transaction credentials and user identity information based on the cross-chain transaction information, and uses the user identity information as cross-chain transmission data;

[0025] The business acquisition blockchain sends the cross-chain transmission data to the destination blockchain in real time through the speed priority channel.

[0026] In one embodiment, after the destination blockchain obtains the cross-chain transmission data and verifies the user's transaction authority based on the cross-chain transmission data, it also includes:

[0027] If the target blockchain fails to verify the user's transaction authority, feedback verification failure information to the business acquisition blockchain through the target information transmission channel;

[0028] After the business acquisition blockchain obtains the verification failure information, it obtains the user transaction certificate from the target information transmission channel and sends the verification failure information and the user transaction certificate to the user terminal.

[0029] In one embodiment, after the business acquisition blockchain obtains the verification failure information, obtains the user transaction voucher from the target information transmission channel, and sends the verification failure information and the user transaction voucher to the user terminal, it also includes:

[0030] The business obtains the transaction complaint information sent by the user terminal through the blockchain; the transaction complaint information includes the Merkle proof, the complaint transaction serial number and the transaction voucher information of the user transaction voucher;

[0031] The business acquires the blockchain and calls the cross-chain contract to verify the transaction complaint information. If the transaction complaint information is verified, the transaction complaint information is stored in the transaction complaint channel;

[0032] The business acquisition blockchain reviews the transaction complaint information through the off-chain relay corresponding to the transaction complaint channel. If the review is passed, a user compensation certificate is generated through the cross-chain contract;

[0033] The business acquisition blockchain sends the user compensation voucher and the user transaction voucher to the user terminal.

[0034] In a second aspect, the present application further provides a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:

[0035] The business acquires cross-chain transaction information sent by the user end through the blockchain, analyzes the cross-chain transaction information through the cross-chain information transmission channel, and determines the target information transmission channel from the cross-chain information transmission channel based on the analysis results; the cross-chain information transmission channel includes a transaction voucher priority channel, a speed priority channel, a balance channel, and a custom channel;

[0036] The business acquires the blockchain through the target information transmission channel, determines the user transaction credentials and cross-chain transmission data according to the cross-chain transaction information, and sends the cross-chain transmission data to the destination blockchain;

[0037] The destination blockchain obtains the cross-chain transmission data and verifies the user's transaction authority based on the cross-chain transmission data;

[0038] If the target blockchain verifies the user's transaction authority, it obtains the user's transaction voucher sent by the target information transmission channel, and sends the target transaction data to the business acquisition blockchain through the target information transmission channel;

[0039] The business acquisition blockchain obtains the target transaction data sent by the target information transmission channel and sends the target transaction data to the user terminal.

[0040] In a third aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the following steps:

[0041] The business acquires cross-chain transaction information sent by the user end through the blockchain, analyzes the cross-chain transaction information through the cross-chain information transmission channel, and determines the target information transmission channel from the cross-chain information transmission channel based on the analysis results; the cross-chain information transmission channel includes a transaction voucher priority channel, a speed priority channel, a balance channel, and a custom channel;

[0042] The business acquires the blockchain through the target information transmission channel, determines the user transaction credentials and cross-chain transmission data according to the cross-chain transaction information, and sends the cross-chain transmission data to the destination blockchain;

[0043] The destination blockchain obtains the cross-chain transmission data and verifies the user's transaction authority based on the cross-chain transmission data;

[0044] If the target blockchain verifies the user's transaction authority, it obtains the user's transaction voucher sent by the target information transmission channel, and sends the target transaction data to the business acquisition blockchain through the target information transmission channel;

[0045] The business acquisition blockchain obtains the target transaction data sent by the target information transmission channel and sends the target transaction data to the user terminal.

[0046] In the above-mentioned cross-chain transaction method, computer device and storage medium, the business acquisition blockchain obtains cross-chain transaction information sent by the user terminal, analyzes the cross-chain transaction information through the cross-chain information transmission channel, and determines the target information transmission channel from the cross-chain information transmission channel based on the analysis results; the business acquisition blockchain determines the user transaction certificate and cross-chain transmission data according to the cross-chain transaction information through the target information transmission channel, and sends the cross-chain transmission data to the destination blockchain; the destination blockchain obtains the cross-chain transmission data and verifies the user transaction authority based on the cross-chain transmission data; if the destination blockchain verifies the user transaction authority, it obtains the user transaction certificate sent by the target information transmission channel, and sends the target transaction data to the business acquisition blockchain through the target information transmission channel; the business acquisition blockchain obtains the target transaction data sent by the target information transmission channel, and sends the target transaction data to the user terminal. The above solution solves the problem that the current cross-chain transaction method requires users to pay fixed user transaction credentials and cannot meet the diverse needs of users for the user transaction credentials and transaction time they need to provide. By setting up cross-chain information transmission channels with different cross-chain transmission strategies under the business acquisition blockchain, the target information transmission channel is determined from the cross-chain information transmission channel according to the needs of the transaction requester. The business acquisition blockchain sends the cross-chain transmission data to the destination blockchain through the target information transmission channel. The destination blockchain determines whether to provide the target transaction data requested by the transaction requester to the user end based on the cross-chain transmission data. If so, the target transaction data is sent to the business acquisition blockchain through the target information transmission channel. The business acquisition blockchain sends the target transaction data to the user end, and constructs multiple cross-chain data transmission channels between the business blockchain and the destination blockchain, meeting the diverse needs of users for transaction time and the user transaction credentials required to be provided when conducting cross-chain transactions, improving the user's cross-chain transaction experience, and at the same time improving the cross-chain data interaction efficiency of the blockchain. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] Figure 1 A schematic diagram of a cross-chain transaction method in one embodiment;

[0048] Figure 2 A schematic diagram of a cross-chain transaction method in another embodiment;

[0049] Figure 3 This is a flowchart of a cross-chain transaction method in another embodiment;

[0050] Figure 4 This is a flowchart of a cross-chain transaction method in another embodiment;

[0051] Figure 5 FIG. 1 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0052] In order to make the purpose, technical solutions and advantages of this application more clear, the following further describes this application in detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain this application and are not intended to limit this application.

[0053] In one embodiment, Figure 1 As shown, a cross-chain transaction method is provided, which is executed by a cross-chain transaction system and includes the following steps:

[0054] S110: The business obtains the cross-chain transaction information sent by the user end through the blockchain, analyzes the cross-chain transaction information through the cross-chain information transmission channel, and determines the target information transmission channel from the cross-chain information transmission channel based on the analysis results.

[0055] Cross-chain information transmission channels include transaction voucher priority channels, speed priority channels, balance channels and custom channels.

[0056] It should be noted that the "business acquisition blockchain" refers to the blockchain used to obtain cross-chain transaction information sent by the transaction requester, and the "destination blockchain" refers to the blockchain used to provide the transaction requester with the requested transaction data. Transaction data can be transmitted cross-chain between the business acquisition blockchain and the destination blockchain based on the cross-chain transaction contract. A cross-chain information transmission channel refers to the data transmission channel used to transfer information between the business acquisition blockchain and the destination blockchain. For each cross-chain information transmission channel, a corresponding downlink relay is required as the information transmission component of the cross-chain information transmission channel. The information transmission components of each cross-chain information transmission channel are independent of each other. Each corresponding information transmission component monitors cross-chain transaction information emitted by the cross-chain contract on the business acquisition blockchain in real time and determines whether the monitored cross-chain information should be transmitted through its corresponding cross-chain information transmission channel. Different cross-chain information transmission channels correspond to different information transmission strategies.

[0057] For example, the information transmission strategy for the transaction voucher priority channel may be: when a transaction requester needs to conduct a cross-chain transaction, fewer user transaction vouchers are collected, but the corresponding cross-chain transmission data of the transaction requester needs to be temporarily stored in the transaction queue of the transaction voucher priority channel. Until the queue length of the transaction queue in the transaction voucher priority channel is greater than or equal to a preset queue length threshold, all cross-chain transmission data in the transaction voucher priority channel is sent to the destination blockchain, thereby achieving batch transmission of cross-chain transmission data. The information transmission strategy for the speed priority channel may be: when a transaction requester needs to conduct a cross-chain transaction, more user transaction vouchers are collected, and after determining the cross-chain transmission data corresponding to the transaction requester, the cross-chain transmission data is immediately sent to the destination blockchain. The information transmission strategy for the balancing channel may be: when a transaction requester needs to conduct a cross-chain transaction, a certain number of user transaction vouchers is collected, which is greater than the number of user transaction vouchers collected by the transaction voucher priority channel and less than the number of user transaction vouchers collected by the speed priority channel, and the corresponding cross-chain transmission data of the transaction requester is temporarily stored in the transaction queue of the balancing channel. When the specified data transmission time arrives, all cross-chain transmission data in the transaction queue of the balancing channel is sent to the destination blockchain. The information transmission strategy of the custom channel can be: the transaction requester can customize the transaction voucher slippage and transaction time slippage. The custom channel can determine the maximum user transaction voucher that the transaction requester can pay, as well as the transaction requester's expected transaction time based on the user-customized transaction voucher slippage and transaction time slippage, and determine whether cross-chain transaction services can be provided to the transaction requester based on the maximum user transaction voucher and expected transaction time. If so, the cross-chain transmission data corresponding to the transaction requester is sent to the destination blockchain based on the expected transaction time corresponding to the transaction time slippage.

[0058] It can be understood that among the transaction voucher priority channel, speed priority channel and balance channel, the user transaction vouchers collected when conducting cross-chain transactions based on the transaction voucher priority channel are the least, the user transaction vouchers collected when conducting cross-chain transactions based on the speed priority channel are the most, and the number of user transaction vouchers collected when conducting cross-chain transactions based on the balance channel is between the number of user transaction vouchers corresponding to the transaction voucher priority channel and the number of user transaction vouchers corresponding to the speed priority channel.

[0059] Specifically, the business acquisition blockchain obtains cross-chain transaction information sent by the transaction requester through the user terminal. Cross-chain transaction information may include the transaction requester's user identity information, user transaction credentials, and the transaction requester's desired transaction strategy. User identity information refers to information that can represent the identity of the transaction requester, and user transaction credentials refer to the credential information required by the transaction requester to pay when conducting a cross-chain transaction. The business acquisition blockchain analyzes the cross-chain transaction information through the information transmission component corresponding to the cross-chain information transmission channel, determines the transaction requester's desired transaction strategy, and then determines the target information transmission channel from the cross-chain information transmission channel that can transmit the user transaction information across the chain based on the desired transaction strategy.

[0060] S120: The business obtains the blockchain through the target information transmission channel, determines the user transaction credentials and cross-chain transmission data based on the cross-chain transaction information, and sends the cross-chain transmission data to the destination blockchain.

[0061] Among them, cross-chain transmission data refers to the data required by the destination blockchain to verify the user transaction authority of the transaction requester.

[0062] Specifically, the business obtains the information transmission component corresponding to the blockchain through the target information transmission channel, determines the user transaction certificate issued by the transaction requester and the cross-chain transmission data that can verify the user transaction authority of the user requester based on the cross-chain transaction information, and sends the cross-chain transmission data to the destination blockchain through the target information transmission channel.

[0063] S130. The destination blockchain obtains cross-chain transmission data and verifies the user's transaction authority based on the cross-chain transmission data. If the destination blockchain verifies the user's transaction authority, it obtains the user transaction certificate sent by the target information transmission channel and sends the target transaction data to the business acquisition blockchain through the target information transmission channel.

[0064] The target transaction data refers to the transaction data that the transaction requester expects to obtain.

[0065] Specifically, after the destination blockchain obtains the cross-chain transmission data, it determines the user identity information of the transaction requester based on the cross-chain transmission data, and verifies the user transaction authority of the transaction requester based on the user identity information to determine whether the transaction requester has the authority to conduct cross-chain transactions. If the destination blockchain verifies the user transaction authority, it determines that the transaction requester has the authority to obtain the target transaction data, and sends a notification of the user transaction authority verification to the business acquisition blockchain through the target information transmission channel. After the business acquisition blockchain obtains the notification of the user transaction authority verification, it sends the user transaction voucher to the destination blockchain through the target information transmission channel. After the destination blockchain obtains the user transaction voucher, it sends the target transaction data to the business acquisition blockchain through the target transaction channel.

[0066] S140: The business acquisition blockchain obtains the target transaction data sent by the target information transmission channel and sends the target transaction data to the user terminal.

[0067] In the above-mentioned cross-chain transaction method, the business acquisition blockchain obtains the cross-chain transaction information sent by the user terminal, and analyzes the cross-chain transaction information through the cross-chain information transmission channel, and determines the target information transmission channel from the cross-chain information transmission channel according to the analysis results; the business acquisition blockchain determines the user transaction certificate and cross-chain transmission data according to the cross-chain transaction information through the target information transmission channel, and sends the cross-chain transmission data to the destination blockchain; the destination blockchain obtains the cross-chain transmission data, and verifies the user transaction authority based on the cross-chain transmission data; if the destination blockchain verifies the user transaction authority, it obtains the user transaction certificate sent by the target information transmission channel, and sends the target transaction data to the business acquisition blockchain through the target information transmission channel; the business acquisition blockchain obtains the target transaction data sent by the target information transmission channel, and sends the target transaction data to the user terminal. The above solution solves the problem that the current cross-chain transaction method requires users to pay fixed user transaction credentials and cannot meet the diverse needs of users for the user transaction credentials and transaction time they need to provide. By setting up cross-chain information transmission channels with different cross-chain transmission strategies under the business acquisition blockchain, the target information transmission channel is determined from the cross-chain information transmission channel according to the needs of the transaction requester. The business acquisition blockchain sends the cross-chain transmission data to the destination blockchain through the target information transmission channel. The destination blockchain determines whether to provide the target transaction data requested by the transaction requester to the user end based on the cross-chain transmission data. If so, the target transaction data is sent to the business acquisition blockchain through the target information transmission channel. The business acquisition blockchain sends the target transaction data to the user end, and constructs multiple cross-chain data transmission channels between the business blockchain and the destination blockchain, meeting the diverse needs of users for transaction time and the user transaction credentials required to be provided when conducting cross-chain transactions, improving the user's cross-chain transaction experience, and at the same time improving the cross-chain data interaction efficiency of the blockchain.

[0068] In one embodiment, Figure 2 As shown, the business obtains the target information transmission channel through the blockchain, determines the user transaction credentials and cross-chain transmission data based on the cross-chain transaction information, and sends the cross-chain transmission data to the destination blockchain, including:

[0069] S210. If the target information transmission channel is a custom channel, the business obtains the blockchain through the custom channel and determines the user transaction credentials, user identity information, transaction credential slippage, and transaction time slippage based on the cross-chain transaction information.

[0070] Among them, the transaction voucher slippage refers to the maximum user transaction voucher that can be paid in the cross-chain transaction set by the transaction requester, and the transaction time slippage refers to the transmission time of the cross-chain data that the transaction requester expects in the cross-chain transaction.

[0071] Specifically, if the target information transmission channel is a custom channel, the business acquisition blockchain can analyze the cross-chain transaction information through the information transmission component corresponding to the custom channel to determine the user transaction credentials, user identity information, transaction credential slippage, and transaction time slippage corresponding to the cross-chain transaction information.

[0072] S220: The business obtains the blockchain to verify the transaction time slippage through a custom channel.

[0073] It should be noted that the earlier the cross-chain data transmission time is, the more user transaction credentials the transaction requester needs to pay. Therefore, it is necessary to verify whether the transmission time of the cross-chain data transmission and the user transaction credentials that the transaction requester can pay match.

[0074] Specifically, the earlier the cross-chain data transmission time, the larger the user transaction voucher required. Therefore, the business access blockchain needs to use the information transmission component corresponding to the custom channel to determine whether the transmission time of the user transaction voucher corresponding to the transaction voucher slippage matches the transmission time of the cross-chain data corresponding to the transaction time slippage, and whether the transmission time of the cross-chain data corresponding to the transaction time slippage is valid. If the transmission time of the user transaction voucher corresponding to the transaction voucher slippage matches the transmission time of the cross-chain data corresponding to the transaction time slippage, and the transmission time of the cross-chain data corresponding to the transaction time slippage is valid, then the verification of the transaction time slippage and transaction voucher slippage is determined to have passed. If the transmission time of the user transaction voucher corresponding to the transaction voucher slippage does not match the transmission time of the cross-chain data corresponding to the transaction time slippage, or the transmission time of the cross-chain data corresponding to the transaction time slippage is not valid, then the verification of the transaction time slippage and transaction voucher slippage is determined to have failed. For example, if the transmission time of the cross-chain data corresponding to the transaction time slippage is 10:00, but the confirmed time of the cross-chain data is 14:00, then the transmission time of the cross-chain data corresponding to the transaction time slippage is invalid.

[0075] S230. If the transaction time slippage verification of the business-acquired blockchain is successful, the cross-chain transmission data is determined through a custom channel based on the user identity information and transaction credential slippage, and the cross-chain transmission data is sent to the destination blockchain.

[0076] Specifically, if the business obtains the blockchain's verification of the transaction time slippage and passes, the maximum credential information of the user transaction credential that the transaction requester can pay is determined based on the transaction credential slippage through a custom channel, and the cross-chain transmission data is determined based on the user identity information and the maximum credential information, and then the cross-chain transmission data is sent to the destination blockchain through the custom channel.

[0077] Exemplary methods for determining cross-chain data transmission based on user identity information and maximum credential information may include hashing the maximum credential information and signing the hashed maximum credential information based on the user identity information to determine the cross-chain data transmission. When verifying user transaction permissions based on cross-chain data transmission, the destination blockchain needs to verify whether the transaction requester has transaction permissions for the target transaction data based on the user identity information, and determine whether the user transaction credentials paid by the transaction requester are sufficient to trade the target transaction data based on the maximum credential information. If so, the user transaction permission verification is determined to be successful.

[0078] It is understandable that the custom channel allows the transaction requester to customize the transaction time slippage and transaction voucher slippage according to actual needs, thereby meeting the transaction requester's diverse needs for cross-chain transaction time and transaction vouchers to be paid, and improving the transaction requester's cross-chain transaction experience.

[0079] In one embodiment, after the business obtains the blockchain and verifies the transaction time slippage through the custom channel, it also includes:

[0080] If the business fails to pass the blockchain verification of transaction time slippage or transaction voucher slippage, the user transaction voucher will be returned to the user end.

[0081] Specifically, if the business obtains the blockchain and fails to pass the transaction time slippage verification through the target information transmission channel, the cross-chain transaction task will be canceled, and the user transaction certificate will be returned to the user end, and the reason for the verification failure will be fed back to the user end.

[0082] The above solution can return the user transaction certificate to the user end when the transaction time slippage set by the transaction requester cannot be met, thereby ensuring the security of the transaction certificate of the transaction requester.

[0083] In one embodiment, Figure 3 As shown, the business obtains the target information transmission channel through the blockchain, determines the user transaction credentials and cross-chain transmission data based on the cross-chain transaction information, and sends the cross-chain transmission data to the destination blockchain, which also includes:

[0084] S310. If the target information transmission channel is the transaction credential priority channel, the business obtains the blockchain through the transaction credential priority channel, determines the user transaction credential and user identity information based on the cross-chain transaction information, and uses the user identity information as the cross-chain transmission data.

[0085] Specifically, if the target information transmission channel is the transaction voucher priority channel, the business obtains the blockchain through the transaction voucher priority channel and determines the user transaction voucher and user identity information based on the cross-chain transaction information. At this time, the user transaction voucher is locked in the cross-chain contract and will not be uploaded to the destination blockchain along with the cross-chain transmission data.

[0086] S320: The business obtains the blockchain through the transaction voucher priority channel and stores the cross-chain transmission data in the first transmission data queue.

[0087] Among them, the first transmission data queue refers to the transmission data queue in the transaction voucher priority channel. The transaction voucher priority channel will collect fewer user transaction vouchers and store the cross-chain transmission data of the transaction requester in the first transmission data queue.

[0088] S330: The business acquisition blockchain determines whether the queue length of the first transmission data queue meets the preset queue length threshold. If so, all cross-chain transmission data in the first transmission data queue are sent to the destination blockchain through the transaction voucher priority channel.

[0089] The queue length threshold can be set according to actual needs.

[0090] It is understandable that when the business acquisition blockchain sends cross-chain transmission data to the destination blockchain through the transaction voucher priority channel, the transaction requester can obtain the target transaction data fed back by the destination blockchain by paying fewer user transaction vouchers. However, the transmission efficiency of cross-chain transmission data is low, which can meet the needs of transaction requesters who do not have high requirements for the transmission efficiency of cross-chain transmission data and hope to conduct cross-chain transactions by paying fewer user transaction vouchers.

[0091] In one embodiment, the business obtains the blockchain through the target information transmission channel, determines the user transaction credentials and cross-chain transmission data based on the cross-chain transaction information, and sends the cross-chain transmission data to the destination blockchain, further comprising:

[0092] If the target information transmission channel is a balancing channel, the business acquires the blockchain through the balancing channel, determines the user transaction credentials and user identity information based on the cross-chain transaction information, and uses the user identity information as the cross-chain transmission data; the business acquires the blockchain through the balancing channel, stores the cross-chain transaction information in the second transmission data queue; the business acquires the blockchain through the balancing channel, and sends all cross-chain transmission data in the second transmission data queue to the destination blockchain based on the transaction information sending cycle.

[0093] Among them, the second transmission data queue is composed of cross-chain transmission data received at different times and is a transmission data queue stored in the balance channel.

[0094] It should be noted that when executing the cross-chain data transmission task through the balancing channel, the transaction information sending cycle can be set in advance, and all cross-chain transmission data in the second transmission data queue can be sent to the destination blockchain on a regular basis according to the transaction information sending cycle.

[0095] The above scheme, by executing the transmission task of cross-chain transmission data through the balancing channel, can balance the relationship between the user transaction voucher that the transaction requester needs to pay and the transmission efficiency of cross-chain transmission data, and meet the transaction requester's demand for a balance between the user transaction voucher and the transmission efficiency of cross-chain transmission data.

[0096] In one embodiment, the business obtains the blockchain through the target information transmission channel, determines the user transaction credentials and cross-chain transmission data based on the cross-chain transaction information, and sends the cross-chain transmission data to the destination blockchain, further comprising:

[0097] If the target information transmission channel is a speed priority channel, the business acquisition blockchain uses the speed priority channel to determine the user transaction credentials and user identity information based on the cross-chain transaction information, and uses the user identity information as the cross-chain transmission data; the business acquisition blockchain sends the cross-chain transmission data to the destination blockchain in real time through the speed priority channel.

[0098] Specifically, if the target information transmission channel is a speed-priority channel, a higher user transaction certificate is required to provide cross-chain transaction services to the transaction requester. The business acquisition blockchain determines the user transaction certificate and user identity information based on the cross-chain transaction information through the speed-priority channel, and uses the user identity information as the cross-chain transmission data. After the business acquisition blockchain confirms the cross-chain transmission data is successful, it immediately sends the cross-chain transmission data to the destination blockchain through the speed-priority channel.

[0099] The above solution can send cross-chain transmission data to the destination blockchain immediately after the cross-chain transmission data is generated, meeting the transaction requester's demand for the transmission rate of cross-chain transmission data.

[0100] In one embodiment, after the destination blockchain obtains the cross-chain transmission data and verifies the user's transaction authority based on the cross-chain transmission data, it also includes:

[0101] If the destination blockchain fails to verify the user's transaction authority, the verification failure information will be fed back to the business acquisition blockchain through the target information transmission channel; after the business acquisition blockchain obtains the verification failure information, it obtains the user transaction certificate from the target information transmission channel and sends the verification failure information and the user transaction certificate to the user end.

[0102] The above solution can return the user transaction certificate to the transaction requester when the destination blockchain fails to verify the user's transaction authority, thereby preventing the transaction requester from losing the user transaction certificate.

[0103] In one embodiment, Figure 4 As shown, after the business obtains the verification failure information from the blockchain, it obtains the user transaction certificate from the target information transmission channel, and sends the verification failure information and the user transaction certificate to the user end, and also includes:

[0104] S410: The business obtains the transaction complaint information sent by the user end through the blockchain.

[0105] The transaction appeal information includes the Merkle proof, the appeal transaction serial number, and the transaction voucher information of the user's transaction voucher.

[0106] A Merkle proof involves a light node initiating a proof request to a full node, asking whether a specified node exists in the full Merkle tree. The full node then returns a Merkle proof path to the light node, which then calculates and verifies its existence. The appeal transaction sequence number is the sequence number of the cross-chain transaction information that the transaction requester wishes to appeal. The transaction voucher information includes the number of user transaction vouchers paid by the transaction requester.

[0107] It should be noted that when the destination blockchain fails to verify the user's transaction authority, the business acquisition blockchain needs to return the user's transaction certificate to the user end. If the user end does not receive the returned user transaction certificate, the transaction requester can issue a transaction complaint information through the user end. When submitting the transaction complaint information, the user also needs to upload certain guarantee certificates on the business acquisition blockchain. If the transaction complaint information submitted by the transaction requester does not meet the complaint conditions, the guarantee certificate can be withheld to avoid malicious complaints.

[0108] S420: The business acquires the blockchain and calls the cross-chain contract to verify the transaction complaint information. If the transaction complaint information is verified, the transaction complaint information is stored in the transaction complaint channel.

[0109] Specifically, the business obtains the blockchain and calls the cross-chain contract to verify the transaction complaint information. While verifying the Merkel proof, it extracts the maximum transaction sequence number in the transmission queue during the batch cross-chain transaction and compares it with the complaint transaction sequence number. If the Merkel proof verification is successful and the maximum transaction sequence number is greater than the complaint transaction sequence number, it is determined that the transaction complaint information is verified successfully, and the transaction complaint information is stored in the transaction complaint channel.

[0110] S430. The business acquisition blockchain reviews the transaction complaint information through the off-chain relay corresponding to the transaction complaint channel. If the review is passed, a user compensation certificate is generated through the cross-chain contract.

[0111] Specifically, after the transaction complaint information is stored in the transaction complaint channel, there will be a waiting period. During the waiting period, the business acquisition blockchain will review the transaction complaint information through the off-chain relay corresponding to the transaction complaint channel to determine whether the cross-chain transaction process corresponding to the transaction complaint information is legal and compliant. If the off-chain relay corresponding to the transaction complaint channel finds that the cross-chain transaction process corresponding to the transaction complaint information is legal and compliant, the transaction complaint information will be deemed invalid, and the guarantee certificate uploaded by the transaction requester will be deducted; if at the end of the waiting period, the off-chain relay corresponding to the transaction complaint channel cannot prove that the cross-chain transaction process corresponding to the transaction complaint information is legal and compliant, then the transaction complaint information will be deemed to have been reviewed and approved, and a user compensation certificate will be generated through the cross-chain contract.

[0112] S440: The business acquisition blockchain sends the user compensation voucher and the user transaction voucher to the user terminal.

[0113] The above solution can ensure the security of the transaction requester's user transaction credentials and the reliability of cross-chain transactions.

[0114] Exemplarily, based on the above embodiment, the cross-chain transaction method includes:

[0115] The business acquisition blockchain obtains cross-chain transaction information sent by the transaction requester through the user terminal. Cross-chain transaction information may include the transaction requester's user identity information, user transaction credentials, and the transaction requester's desired transaction strategy. User identity information refers to information that represents the transaction requester's identity, and user transaction credentials refer to the payment credentials required by the transaction requester to conduct cross-chain transactions. The business acquisition blockchain analyzes the cross-chain transaction information through the information transmission component corresponding to the cross-chain information transmission channel, determines the transaction requester's desired transaction strategy, and then, based on the desired transaction strategy, identifies the target information transmission channel from the cross-chain information transmission channel that can transmit the user's transaction information across the chain. Cross-chain information transmission channels include transaction credential priority channels, speed priority channels, balance channels, and custom channels.

[0116] If the target information transmission channel is a custom channel, the business acquisition blockchain can analyze the cross-chain transaction information through the information transmission component corresponding to the custom channel to determine the user transaction credentials, user identity information, transaction credential slippage, and transaction time slippage corresponding to the cross-chain transaction information. The faster the cross-chain data transmission speed, the larger the user transaction credentials required. Therefore, the business acquisition blockchain needs to use the information transmission component corresponding to the custom channel to determine whether the transmission time of the cross-chain transmission data corresponding to the transaction credential slippage matches the user transaction credentials corresponding to the transaction time slippage, and whether the transmission time of the cross-chain transmission data corresponding to the transaction time slippage is a valid transmission time. If the user transaction voucher corresponding to the transaction voucher slippage meets the transaction conditions for the cross-chain transaction, the transmission time of the user transaction voucher corresponding to the transaction voucher slippage matches the cross-chain transmission data corresponding to the transaction time slippage, and the transmission time of the cross-chain transmission data corresponding to the transaction time slippage is a valid transmission time, then the verification of the transaction time slippage and transaction voucher slippage is determined to have passed. If the transmission time of the user transaction voucher corresponding to the transaction voucher slippage does not match the transmission time of the cross-chain transmission data corresponding to the transaction time slippage, or the transmission time of the cross-chain transmission data corresponding to the transaction time slippage is not a valid transmission time, then the verification of the transaction time slippage and transaction voucher slippage is determined to have failed. If the business obtains the blockchain and verifies the transaction time slippage, it determines the maximum credential information of the user transaction voucher that the transaction requester can pay based on the transaction voucher slippage through a custom channel, determines the cross-chain transmission data based on the user identity information and the maximum credential information, and then sends the cross-chain transmission data to the destination blockchain through the custom channel. If the business obtains the blockchain and verifies the transaction time slippage through the target information transmission channel, it cancels the cross-chain transaction task, returns the user transaction voucher to the user, and provides feedback to the user on the reason for the verification failure.

[0117] If the target information transmission channel is the transaction voucher priority channel, the business acquisition blockchain uses the transaction voucher priority channel to determine the user's transaction voucher and user identity information based on the cross-chain transaction information. The user's transaction voucher is then locked in the cross-chain contract and will not be uploaded to the destination blockchain along with the cross-chain transmission data. The business acquisition blockchain uses the transaction voucher priority channel to store the cross-chain transmission data in the first transmission data queue. The business acquisition blockchain then determines whether the queue length of the first transmission data queue meets the preset queue length threshold. If so, it sends all cross-chain transmission data in the first transmission data queue to the destination blockchain via the transaction voucher priority channel.

[0118] If the target information transmission channel is a balancing channel, the business acquisition blockchain determines the user transaction credentials and user identity information based on the cross-chain transaction information through the balancing channel, and uses the user identity information as the cross-chain transmission data; the business acquisition blockchain stores the cross-chain transaction information in the second transmission data queue through the balancing channel, and then sends all cross-chain transmission data in the second transmission data queue to the destination blockchain through the balancing channel.

[0119] If the target information transmission channel is a speed-priority channel, a higher user transaction certificate is required to provide cross-chain transaction services to the transaction requester. The business acquisition blockchain determines the user transaction certificate and user identity information based on the cross-chain transaction information through the speed-priority channel, and uses the user identity information as the cross-chain transmission data. After the business acquisition blockchain confirms that the cross-chain transmission data is successful based on the cross-chain transmission data confirmation information, it immediately sends the cross-chain transmission data to the destination blockchain through the speed-priority channel.

[0120] After the destination blockchain obtains the cross-chain transmission data, it determines the user identity information of the transaction requester based on the cross-chain transmission data, and verifies the user transaction authority of the transaction requester based on the user identity information to determine whether the transaction requester has the authority to conduct cross-chain transactions.

[0121] If the destination blockchain verifies the user's transaction authority, it determines that the transaction requester has the authority to obtain the target transaction data, and sends a notification message of the user's transaction authority verification passing to the business acquisition blockchain through the target information transmission channel. After the business acquisition blockchain obtains the notification message of the user's transaction authority verification passing, it sends the user's transaction voucher to the destination blockchain through the target information transmission channel. After the destination blockchain obtains the user's transaction voucher, it sends the target transaction data to the business acquisition blockchain through the target transaction channel.

[0122] If the destination blockchain fails to verify the user's transaction authority, the verification failure information will be fed back to the business acquisition blockchain through the target information transmission channel; after the business acquisition blockchain obtains the verification failure information, it obtains the user transaction certificate from the target information transmission channel and sends the verification failure information and the user transaction certificate to the user end.

[0123] If the destination blockchain fails to verify a user's transaction permissions, the business acquisition blockchain must return the user's transaction voucher to the user. If the user does not receive the returned voucher, the transaction requester can submit a transaction appeal through the user's end. When submitting the transaction appeal, the user must also upload certain assurance certificates to the business acquisition blockchain. The business acquisition blockchain then calls the cross-chain contract to verify the transaction appeal. If the verification is successful, the transaction appeal is stored in the appeal queue within the appeal channel. After the transaction appeal is stored in the appeal channel, there is a waiting period. During this waiting period, the business acquisition blockchain verifies the appeal through the off-chain relay corresponding to the appeal channel to determine whether the cross-chain transaction process underlying the appeal is legal and compliant. If the off-chain relay verifies that the cross-chain transaction process underlying the appeal is legal and compliant, the appeal is invalidated and the assurance certificate uploaded by the transaction requester is deducted. If, at the end of the waiting period, the off-chain relay corresponding to the appeal channel cannot verify the legality of the cross-chain transaction process underlying the appeal, the appeal is deemed approved and a compensation certificate for the user is generated through the cross-chain contract. The business acquisition blockchain sends the user compensation voucher and user transaction voucher to the user end.

[0124] In the above-mentioned cross-chain transaction method, the business acquisition blockchain obtains the cross-chain transaction information sent by the user terminal, and analyzes the cross-chain transaction information through the cross-chain information transmission channel, and determines the target information transmission channel from the cross-chain information transmission channel according to the analysis results; the business acquisition blockchain determines the user transaction certificate and cross-chain transmission data according to the cross-chain transaction information through the target information transmission channel, and sends the cross-chain transmission data to the destination blockchain; the destination blockchain obtains the cross-chain transmission data, and verifies the user transaction authority based on the cross-chain transmission data; if the destination blockchain verifies the user transaction authority, it obtains the user transaction certificate sent by the target information transmission channel, and sends the target transaction data to the business acquisition blockchain through the target information transmission channel; the business acquisition blockchain obtains the target transaction data sent by the target information transmission channel, and sends the target transaction data to the user terminal. The above solution solves the problem that the current cross-chain transaction method requires users to pay fixed user transaction credentials and cannot meet the diverse needs of users for the user transaction credentials and transaction time they need to provide. By setting up a cross-chain information transmission channel with different cross-chain transmission strategies under the business acquisition blockchain, the target information transmission channel is determined from the cross-chain information transmission channel according to the needs of the transaction requester. The business acquisition blockchain sends the cross-chain transmission data to the destination blockchain through the target information transmission channel. The destination blockchain determines whether to provide the target transaction data requested by the transaction requester to the user end based on the cross-chain transmission data. If so, the target transaction data is sent to the business acquisition blockchain through the target information transmission channel. The business acquisition blockchain sends the target transaction data to the user end, which meets the diverse needs of users for transaction time and user transaction credentials required to be provided when conducting cross-chain transactions, and improves the user's cross-chain transaction experience.

[0125] It should be understood that, although the various steps in the flowcharts involved in the various embodiments described above are displayed in sequence according to the instructions of the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and these steps can be executed in other orders. Moreover, at least a portion of the steps in the flowcharts involved in the various embodiments described above can include multiple steps or multiple stages, and these steps or stages are not necessarily executed and completed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a portion of steps or stages in other steps.

[0126] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Figure 5As shown. The computer device includes a processor, memory, input / output interface, communication interface, display unit, and input device. The processor, memory, and input / output interface are connected via a system bus, and the communication interface, display unit, and input device are connected to the system bus via the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and internal memory. The non-volatile storage medium stores an operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and external devices. The communication interface of the computer device is used to communicate with external terminals via wired or wireless means. The wireless means can be achieved through WiFi, mobile cellular networks, NFC (near-field communication), or other technologies. When the computer program is executed by the processor, a cross-chain transaction method is implemented. The display unit of the computer device is used to form a visually visible image and can be a display screen, a projection device, or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device casing, or an external keyboard, touchpad or mouse.

[0127] Those skilled in the art will understand that Figure 5 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.

[0128] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:

[0129] Step 1: The business obtains the cross-chain transaction information sent by the user end through the blockchain, analyzes the cross-chain transaction information through the cross-chain information transmission channel, and determines the target information transmission channel from the cross-chain information transmission channel based on the analysis results; the cross-chain information transmission channel includes the transaction voucher priority channel, speed priority channel, balance channel and custom channel;

[0130] Step 2: The business obtains the target information transmission channel through the blockchain, determines the user transaction credentials and cross-chain transmission data based on the cross-chain transaction information, and sends the cross-chain transmission data to the destination blockchain;

[0131] Step 3: The destination blockchain obtains the cross-chain transmission data and verifies the user's transaction authority based on the cross-chain transmission data. If the destination blockchain verifies the user's transaction authority, it obtains the user transaction certificate sent by the target information transmission channel and sends the target transaction data to the business acquisition blockchain through the target information transmission channel;

[0132] Step 4: Business acquisition: The blockchain obtains the target transaction data of the target information transmission channel and sends the target transaction data to the user end.

[0133] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented:

[0134] Step 1: The business obtains the cross-chain transaction information sent by the user end through the blockchain, analyzes the cross-chain transaction information through the cross-chain information transmission channel, and determines the target information transmission channel from the cross-chain information transmission channel based on the analysis results; the cross-chain information transmission channel includes the transaction voucher priority channel, speed priority channel, balance channel and custom channel;

[0135] Step 2: The business obtains the target information transmission channel through the blockchain, determines the user transaction credentials and cross-chain transmission data based on the cross-chain transaction information, and sends the cross-chain transmission data to the destination blockchain;

[0136] Step 3: The destination blockchain obtains the cross-chain transmission data and verifies the user's transaction authority based on the cross-chain transmission data. If the destination blockchain verifies the user's transaction authority, it obtains the user transaction certificate sent by the target information transmission channel and sends the target transaction data to the business acquisition blockchain through the target information transmission channel;

[0137] Step 4: Business acquisition: The blockchain obtains the target transaction data of the target information transmission channel and sends the target transaction data to the user end.

[0138] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:

[0139] Step 1: The business obtains the cross-chain transaction information sent by the user end through the blockchain, analyzes the cross-chain transaction information through the cross-chain information transmission channel, and determines the target information transmission channel from the cross-chain information transmission channel based on the analysis results; the cross-chain information transmission channel includes the transaction voucher priority channel, speed priority channel, balance channel and custom channel;

[0140] Step 2: The business obtains the target information transmission channel through the blockchain, determines the user transaction credentials and cross-chain transmission data based on the cross-chain transaction information, and sends the cross-chain transmission data to the destination blockchain;

[0141] Step 3: The destination blockchain obtains the cross-chain transmission data and verifies the user's transaction authority based on the cross-chain transmission data. If the destination blockchain verifies the user's transaction authority, it obtains the user transaction certificate sent by the target information transmission channel and sends the target transaction data to the business acquisition blockchain through the target information transmission channel;

[0142] Step 4: Business acquisition: The blockchain obtains the target transaction data of the target information transmission channel and sends the target transaction data to the user end.

[0143] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of relevant countries and regions.

[0144] Those skilled in the art will appreciate that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, database or other media used in the embodiments provided in this application may include at least one of non-volatile and volatile memory. Non-volatile memory may include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory may include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in the various embodiments provided herein may include at least one of a relational database and a non-relational database. Non-relational databases may include, but are not limited to, distributed databases based on blockchains. The processor involved in the various embodiments provided herein may be, but are not limited to, a general-purpose processor, a central processing unit, a graphics processing unit, a digital signal processor, a programmable logic unit, a data processing logic unit based on quantum computing, and the like.

[0145] The technical features of the above embodiments can be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0146] The above-described embodiments merely represent several implementation methods of the present application. While the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the present application. It should be noted that a person of ordinary skill in the art may make various modifications and improvements without departing from the spirit of the present application, and these modifications and improvements fall within the scope of protection of the present application. Therefore, the scope of protection of the present application shall be determined by the appended claims.

Claims

1. A cross-chain transaction method, characterized in that: The cross-chain transaction method is executed by a cross-chain transaction system, which includes a business acquisition blockchain and a destination blockchain. The cross-chain transaction method includes: The business acquires cross-chain transaction information sent by the user end through the blockchain, analyzes the cross-chain transaction information through the cross-chain information transmission channel, and determines the target information transmission channel from the cross-chain information transmission channel based on the analysis results; the cross-chain information transmission channel includes a transaction voucher priority channel, a speed priority channel, a balance channel, and a custom channel; The business acquires the blockchain through the target information transmission channel, determines the user transaction credentials and cross-chain transmission data according to the cross-chain transaction information, and sends the cross-chain transmission data to the destination blockchain; The destination blockchain obtains the cross-chain transmission data and verifies the user's transaction authority based on the cross-chain transmission data. If the destination blockchain verifies the user's transaction authority successfully, it obtains the user transaction voucher sent by the target information transmission channel and sends the target transaction data to the business acquisition blockchain through the target information transmission channel. The business acquisition blockchain obtains the target transaction data sent by the target information transmission channel and sends the target transaction data to the user terminal.

2. The method according to claim 1, characterized in that The business obtains the blockchain through the target information transmission channel, determines the user transaction credentials and cross-chain transmission data according to the cross-chain transaction information, and sends the cross-chain transmission data to the destination blockchain, including: If the target information transmission channel is a custom channel, the business obtains the blockchain through the custom channel and determines the user transaction voucher, user identity information, transaction voucher slippage, and transaction time slippage based on the cross-chain transaction information; The business obtains the blockchain to verify the transaction time slippage through the custom channel; If the business obtains the blockchain and verifies the transaction time slippage, the cross-chain transmission data is determined through the custom channel according to the user identity information and the transaction voucher slippage, and the cross-chain transmission data is sent to the destination blockchain.

3. The method according to claim 2, characterized in that After the business obtains the blockchain and verifies the transaction time slippage through the custom channel, it also includes: If the business obtains the blockchain and fails to verify the transaction time slippage, the user transaction certificate is returned to the user terminal.

4. The method according to claim 1, wherein The business acquires the blockchain through the target information transmission channel, determines the user transaction credentials and cross-chain transmission data according to the cross-chain transaction information, and sends the cross-chain transmission data to the destination blockchain, further comprising: If the target information transmission channel is a transaction voucher priority channel, the business acquisition blockchain determines the user transaction voucher and user identity information based on the cross-chain transaction information through the transaction voucher priority channel, and uses the user identity information as cross-chain transmission data; The business acquisition blockchain stores the cross-chain transmission data into the first transmission data queue through the transaction voucher priority channel; The business acquisition blockchain determines whether the queue length of the first transmission data queue meets a preset queue length threshold. If so, all the cross-chain transmission data in the first transmission data queue are sent to the destination blockchain through the transaction voucher priority channel.

5. The method according to claim 1, wherein The business acquires the blockchain through the target information transmission channel, determines the user transaction credentials and cross-chain transmission data according to the cross-chain transaction information, and sends the cross-chain transmission data to the destination blockchain, further comprising: If the target information transmission channel is a balancing channel, the business acquires the blockchain through the balancing channel, determines the user transaction credentials and user identity information based on the cross-chain transaction information, and uses the user identity information as cross-chain transmission data; The business obtains the blockchain through the balance channel and stores the cross-chain transaction information in the second transmission data queue; The business acquisition blockchain sends all the cross-chain transmission data in the second transmission data queue to the destination blockchain through the balance channel based on the transaction information sending cycle.

6. The method according to claim 1, wherein The business acquires the blockchain through the target information transmission channel, determines the user transaction credentials and cross-chain transmission data according to the cross-chain transaction information, and sends the cross-chain transmission data to the destination blockchain, further comprising: If the target information transmission channel is a speed-priority channel, the business acquires the blockchain through the speed-priority channel, determines the user transaction credentials and user identity information based on the cross-chain transaction information, and uses the user identity information as cross-chain transmission data; The business acquisition blockchain sends the cross-chain transmission data to the destination blockchain in real time through the speed priority channel.

7. The method according to claim 1, characterized in that After the destination blockchain obtains the cross-chain transmission data and verifies the user's transaction authority based on the cross-chain transmission data, it also includes: If the target blockchain fails to verify the user's transaction authority, feedback verification failure information to the business acquisition blockchain through the target information transmission channel; After the business acquisition blockchain obtains the verification failure information, it obtains the user transaction certificate from the target information transmission channel and sends the verification failure information and the user transaction certificate to the user terminal.

8. The method according to claim 7, characterized in that After the business acquisition blockchain obtains the verification failure information, obtains the user transaction voucher from the target information transmission channel, and sends the verification failure information and the user transaction voucher to the user terminal, it also includes: The business obtains the transaction complaint information sent by the user terminal through the blockchain; the transaction complaint information includes the Merkle proof, the complaint transaction serial number and the transaction voucher information of the user transaction voucher; The business acquires the blockchain and calls the cross-chain contract to verify the transaction complaint information. If the transaction complaint information is verified, the transaction complaint information is stored in the transaction complaint channel; The business acquisition blockchain reviews the transaction complaint information through the off-chain relay corresponding to the transaction complaint channel. If the review is passed, a user compensation certificate is generated through the cross-chain contract; The business acquisition blockchain sends the user compensation voucher and the user transaction voucher to the user terminal.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 8 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.

Citation Information

Patent Citations

  • Multichannel implementation method based on alliance chain

    CN110555682A

  • Cross-chain data access transmission method, system and device adopting multi-channel access

    CN114095253A