+

CN114493597B - A cross-chain asset extraction method, device and storage medium - Google Patents

A cross-chain asset extraction method, device and storage medium Download PDF

Info

Publication number
CN114493597B
CN114493597B CN202210107041.5A CN202210107041A CN114493597B CN 114493597 B CN114493597 B CN 114493597B CN 202210107041 A CN202210107041 A CN 202210107041A CN 114493597 B CN114493597 B CN 114493597B
Authority
CN
China
Prior art keywords
transaction
blockchain
extraction
cross
withdrawal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210107041.5A
Other languages
Chinese (zh)
Other versions
CN114493597A (en
Inventor
何正军
王志文
吴思进
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Shugao Technology Co.,Ltd.
Original Assignee
Beijing Shugao Technology Co.,Ltd.
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Shugao Technology Co.,Ltd. filed Critical Beijing Shugao Technology Co.,Ltd.
Priority to CN202210107041.5A priority Critical patent/CN114493597B/en
Publication of CN114493597A publication Critical patent/CN114493597A/en
Application granted granted Critical
Publication of CN114493597B publication Critical patent/CN114493597B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/389Keeping log of transactions for guaranteeing non-repudiation of a transaction
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/30Payment architectures, schemes or protocols characterised by the use of specific devices or networks
    • G06Q20/36Payment architectures, schemes or protocols characterised by the use of specific devices or networks using electronic wallets or electronic money safes
    • G06Q20/367Payment architectures, schemes or protocols characterised by the use of specific devices or networks using electronic wallets or electronic money safes involving electronic purses or money safes
    • G06Q20/3678Payment architectures, schemes or protocols characterised by the use of specific devices or networks using electronic wallets or electronic money safes involving electronic purses or money safes e-cash details, e.g. blinded, divisible or detecting double spending
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange

Landscapes

  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Technology Law (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

本发明属于计算机技术领域,尤其涉及一种跨链资产提取方法、设备及存储介质,该方法中中继器通过监控第一区块链的日志获取跨链提取交易,然后解析该交易再生成对应的提取存证交易准备发送至作为目标链的第二区块链,再判断第二区块链的在线余额是否能够足额支持当前的提取操作,决定是否需要暂停资产提取操作,通过中继器的协调令资产提取性能更加稳定,减少跨链资产提取失败的频率,改善用户体验。

The present invention belongs to the field of computer technology, and more particularly to a cross-chain asset extraction method, device and storage medium. In the method, a repeater obtains a cross-chain extraction transaction by monitoring the log of a first blockchain, and then parses the transaction to regenerate a corresponding extraction evidence transaction to be sent to a second blockchain as a target chain, and then determines whether the online balance of the second blockchain can fully support the current extraction operation, and decides whether the asset extraction operation needs to be suspended. Through the coordination of the repeater, the asset extraction performance is made more stable, the frequency of cross-chain asset extraction failure is reduced, and the user experience is improved.

Description

Cross-chain asset extraction method, device and storage medium
Technical Field
The invention belongs to the technical field of computers, and particularly relates to a method, equipment and a storage medium for extracting cross-chain assets.
Background
With development of blockchain technology, various blockchain systems appear successively, so that information islands are avoided, cross-chain interaction among blockchains is also paid attention to gradually, cross-chain asset extraction is taken as an important ring in the cross-chain interaction of blockchains, naturally, much attention is paid to the fact that the current balance of an online wallet is monitored through a centralized service in the current asset cross-chain extraction scheme, when the balance is smaller than a set value, the fact that the balance of the online wallet needs to be transferred to the asset in the cold wallet is indicated, however, great inconvenience exists in the mode, when multi-terminal multi-user performs cross-chain asset extraction operation, the centralized service cannot count accumulation of asset extraction operations of multiple users, and concurrent cross-chain asset extraction transactions in the same period are compared based on the same balance, rather than total amount of extraction transactions and the online balance, so that the fact that only a few users are likely to succeed in cross-chain asset extraction, and most user asset extraction failures occur. However, in a blockchain system, the centralized service is mostly deployed based on intelligent contracts, the balance of the current online wallet in the blockchain is acquired by the intelligent contracts to be used for transferring the cross-chain asset extraction transaction, but calculation of the total amount of the extracted assets of all the cross-chain asset extraction transactions is difficult to realize actively, so that when multi-terminal multi-user concurrent cross-chain asset extraction operations are carried out, for example, the cross-chain asset extraction period is high, the whole blockchain system has the possibility of untimely response and unsmooth service, a large number of asset extraction failures occur, the asset extraction performance is unstable, and even though post-remediation measures are carried out, the asset extraction experience is still poor.
Disclosure of Invention
In order to solve the problems, the invention provides a method, equipment and a storage medium for extracting the cross-chain asset, which coordinate the extraction operation of the cross-chain asset through a repeater, so that the asset extraction performance is more stable, the frequency of failure of the extraction of the cross-chain asset is reduced, and the user experience is improved.
The invention adopts the following technical scheme.
In a first aspect, the present invention provides a method for cross-chain asset extraction, the method being applicable to a repeater, the method comprising:
acquiring a first cross-chain asset extraction transaction in a first blockchain, wherein the first cross-chain asset extraction transaction takes a second blockchain as a target chain;
analyzing the first cross-link asset extraction transaction to obtain transaction information of the first cross-link asset extraction transaction, and generating a first extraction and certification transaction according to the transaction information;
inquiring the balance of the online wallet in the second block chain, and judging whether the balance of the online wallet is sufficient;
If the balance of the online wallet is sufficient, the first certificate-extracting transaction is sent to the second blockchain, the first certificate-extracting transaction is used for extracting second blockchain assets with a first amount in the second blockchain, meanwhile, the transaction hash and the asset quantity of the first certificate-extracting transaction are recorded, and the state corresponding to the transaction hash of the first certificate-extracting transaction is set to be in a pending state;
If the balance of the online wallet is insufficient, suspending the first certificate-extracting transaction and suspending generating the certificate-extracting transaction;
Receiving recharging journal information of the second blockchain, restarting the first extraction and evidence-storage transaction, and judging whether the balance of the online wallet in the second blockchain is sufficient or not;
After the first extraction and verification transaction is sent to the second blockchain, judging whether the first extraction and verification transaction is successfully executed in the second blockchain according to the log of the second blockchain, if yes, modifying the state corresponding to the transaction hash of the first extraction and verification transaction into success in the repeater, otherwise, modifying the state corresponding to the transaction hash of the first extraction and verification transaction into failure in the repeater.
Preferably, the method for judging whether the balance of the online wallet is sufficient comprises the following steps:
acquiring all the extraction and evidence-storage transactions which are recorded in the repeater and take the state of the second blockchain as a target chain as a pending state, and calculating the total amount of the assets to be extracted;
Comparing the queried online wallet balance of the second blockchain with the total amount of the assets to be extracted, if the sum of the total amount of the assets to be extracted and the first amount is smaller than the queried online wallet balance of the second blockchain, determining that the online wallet balance is sufficient, and if the sum of the total amount of the assets to be extracted and the first amount is larger than the queried online wallet balance of the second blockchain, determining that the online wallet balance is insufficient.
Preferably, the repeater obtains the first cross-chain asset extraction transaction by listening to a transaction log of the first blockchain.
Preferably, the method of judging whether the first extracted and stored transaction is successfully executed in the second blockchain according to the log of the second blockchain is to monitor the log event when the second blockchain generates a block, inquire whether the generated block contains the transaction information of the first extracted and stored transaction, and if so, analyze the transaction information of the first extracted and stored transaction to judge whether the first extracted and stored transaction is successfully executed.
Preferably, when the balance of the online wallet is insufficient, the first certificate-extracting transaction is suspended, and after the generation of the certificate-extracting transaction is suspended, the repeater sends alarm information to the background to prompt that the balance of the online wallet is insufficient.
In a second aspect, a computer device is provided that includes one or more processors;
A memory for storing one or more programs,
The one or more programs, when executed by the one or more processors, cause the one or more processors to perform the method as described in the first aspect above.
In a third aspect, there is provided a storage medium storing a computer program which, when executed by a processor, implements a method as described in the first aspect above.
The method has the beneficial effects that the relay is used for coordinating the asset cross-chain extraction transaction, so that the situation that the asset extraction failure is caused by taking the balance of the same online wallet as a reference object in the high-incidence period of the cross-chain extraction of the asset and the concurrent multi-asset cross-chain extraction transaction is avoided, and the relay is used for comparing the total number of the assets to be extracted of all the undetermined asset cross-chain extraction transaction and the first asset cross-chain extraction transaction with the balance of the online wallet of the target blockchain, so that the successful execution of the asset cross-chain extraction transaction is ensured, the asset cross-chain extraction is more stable, and the user experience is improved.
Drawings
FIG. 1 is a flow chart of a method for cross-chain asset extraction according to one embodiment of the present invention;
fig. 2 is a schematic structural diagram of a computer device according to an embodiment of the present invention.
Detailed Description
The application is described in further detail below with reference to specific examples and figures of the specification. Those of ordinary skill in the art will be able to implement the application based on these descriptions. In addition, the embodiments of the present application referred to in the following description are typically only some, but not all, embodiments of the present application. Therefore, all other embodiments, which can be made by one of ordinary skill in the art without undue burden, are intended to be within the scope of the present application, based on the embodiments of the present application. It should be noted that, without conflict, the embodiments of the present application and features of the embodiments may be combined with each other. The methods outlined in the examples of the present application are all those known to those skilled in the art unless specifically stated otherwise.
Fig. 1 is a flowchart of a method for extracting a cross-chain asset according to an embodiment of the present invention.
As shown in fig. 1, the present embodiment provides a method for extracting a cross-chain asset, which is applicable to a repeater, and the method includes:
acquiring a first cross-chain asset extraction transaction in a first blockchain, wherein the first cross-chain asset extraction transaction takes a second blockchain as a target chain;
analyzing the first cross-link asset extraction transaction to obtain transaction information of the first cross-link asset extraction transaction, and generating a first extraction and certification transaction according to the transaction information;
inquiring the balance of the online wallet in the second block chain, and judging whether the balance of the online wallet is sufficient;
If the balance of the online wallet is sufficient, the first certificate-extracting transaction is sent to the second blockchain, the first certificate-extracting transaction is used for extracting second blockchain assets with a first amount in the second blockchain, meanwhile, the transaction hash and the asset quantity of the first certificate-extracting transaction are recorded, and the state corresponding to the transaction hash of the first certificate-extracting transaction is set to be in a pending state;
If the balance of the online wallet is insufficient, suspending the first certificate-extracting transaction and suspending generating the certificate-extracting transaction;
Receiving recharging journal information of the second blockchain, restarting the first extraction and evidence-storage transaction, and judging whether the balance of the online wallet in the second blockchain is sufficient or not;
After the first extraction and verification transaction is sent to the second blockchain, judging whether the first extraction and verification transaction is successfully executed in the second blockchain according to the log of the second blockchain, if yes, modifying the state corresponding to the transaction hash of the first extraction and verification transaction into success in the repeater, otherwise, modifying the state corresponding to the transaction hash of the first extraction and verification transaction into failure in the repeater.
Further, the method for judging whether the balance of the online wallet is sufficient comprises the following steps:
acquiring all the extraction and evidence-storage transactions which are recorded in the repeater and take the state of the second blockchain as a target chain as a pending state, and calculating the total amount of the assets to be extracted;
Comparing the queried online wallet balance of the second blockchain with the total amount of the assets to be extracted, if the sum of the total amount of the assets to be extracted and the first amount is smaller than the queried online wallet balance of the second blockchain, determining that the online wallet balance is sufficient, and if the sum of the total amount of the assets to be extracted and the first amount is larger than the queried online wallet balance of the second blockchain, determining that the online wallet balance is insufficient.
Further, the repeater obtains the first cross-chain asset extraction transaction by listening to a transaction log of the first blockchain.
Further, the method of judging whether the first extracted and stored transaction is successfully executed in the second blockchain according to the log of the second blockchain is to monitor the log event when the second blockchain generates a block, inquire whether the generated block contains the transaction information of the first extracted and stored transaction, and if yes, analyze the transaction information of the first extracted and stored transaction to judge whether the first extracted and stored transaction is successfully executed.
Further, when the balance of the online wallet is insufficient, the first extraction and deposit transaction is paused, and after the generation of the extraction and deposit transaction is paused, the repeater sends alarm information to the background to prompt that the balance of the online wallet is insufficient.
In order to not lose generality, the present embodiment exemplifies the extraction of assets from the a-chain to the B-chain, and the above method is exemplarily described. In this embodiment, the asset of the A chain is defined as assetA, the asset of the B chain is defined as assetB, and the characterization of assetA on the B chain is B_ assetA. The asset extraction process is as follows:
1. user a initiates a cross-chain asset extraction transaction on the a-chain, illustratively denoted as a first cross-chain asset extraction transaction, for extracting the a-chain asset of 100 on the B-chain, i.e., extracting 100b_assea, the repeater listens to the log of the a-chain, finds the first cross-chain asset extraction transaction, parses the asset type (b_ assetA) and the number (100) therein, and prepares to initiate a first extraction certification transaction to the B-chain;
2. The repeater inquires whether the balance of the online wallet on the B chain can fully support the asset extraction operation of the first certificate-extracting transaction, and judges whether the balance of the online wallet on the B chain can fully support the asset extraction operation of the first certificate-extracting transaction or not, wherein the judgment condition is that the balance of the online wallet which is initiated to the B chain is accumulated as much as 30000, the balance of the current certificate-extracting transaction is 29999, the balance of the online wallet is insufficient to support the asset extraction operation of the first certificate-extracting transaction, if the balance of the online wallet is balance, the first certificate-extracting transaction is continuously initiated to the B chain, otherwise, the subsequent asset extraction operation is suspended, for example, the balance of the B chain is 30000, the balance of the current certificate-extracting transaction is accumulated as much as 29999, and the balance of the online wallet is insufficient to support the asset extraction operation of the first certificate-extracting transaction, and the subsequent asset extraction operation is required to be suspended.
3. If the asset extraction operation is normally initiated to the B chain, the hash and the amount of the first asset extraction transaction (namely, the transaction hash of the first asset extraction transaction) are recorded, the state corresponding to the hash of the first asset extraction transaction is set to be pending, when a new B chain block is generated, whether the asset extraction is successful or not is determined by monitoring log events (whether the asset extraction is successful or not cannot be determined simply by inquiring a single transaction) is determined, if the asset extraction is successful, the state corresponding to the hash of the transaction is updated to be success, and if the hash is unsuccessful, the state corresponding to the hash of the transaction is updated to be fail.
4. If the current online wallet balance is not enough, the repeater can send out alarm information (e-mail or other alarm paths) in the background after suspending all pending withdrawal and deposit transactions.
5. After the operator successfully supplements the online wallet with money through the transaction, the repeater receives the recharging journal information, then the asset extraction transaction cached locally is restarted, the inspection conditions of the step 2 are operated again by one, the condition is initiated, and otherwise, the operation is paused.
According to the embodiment, the relay is used for coordinating the asset cross-chain extraction transaction, so that the situation that the asset extraction failure is caused by taking the same online wallet balance as a reference object in the high-incidence period of the cross-chain extraction of the asset and the concurrent multiple asset cross-chain extraction transactions is avoided, and the relay is used for comparing the total number of the assets to be extracted of all the undetermined asset cross-chain extraction transactions and the first asset cross-chain extraction transaction with the online wallet balance of the target blockchain, so that successful execution of the asset cross-chain extraction transactions is ensured, the asset cross-chain extraction is more stable, and the user experience is improved.
Fig. 2 is a schematic structural diagram of an apparatus according to an embodiment of the present invention.
As shown in fig. 2, as another aspect, the present application also provides a computer apparatus 500 including one or more Central Processing Units (CPUs) 501, which can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 502 or a program loaded from a storage part 508 into a Random Access Memory (RAM) 503. In the RAM503, various programs and data required for the operation of the device 500 are also stored. The CPU501, ROM502, and RAM503 are connected to each other through a bus 504. An input/output (I/O) interface 505 is also connected to bus 504.
Connected to the I/O interface 505 are an input section 506 including a keyboard, a mouse, and the like, an output section 507 including a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, a speaker, and the like, a storage section 508 including a hard disk, and the like, and a communication section 509 including a network interface card such as a LAN card, a modem, and the like. The communication section 509 is also connected to the I/O interface 505 as needed via a network execution communication processing driver 510 such as the internet. A removable medium 511 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 510 as needed so that a computer program read therefrom is mounted into the storage section 508 as needed.
In particular, according to the disclosed embodiment of the application, the method described in the above embodiment 1 may be implemented as a computer software program. For example, embodiments of the present disclosure include a computer program product comprising a computer program tangibly embodied on a machine-readable medium, the computer program comprising program code for performing the method described in any of the embodiments above. In such an embodiment, the computer program may be downloaded and installed from a network via the communication portion 509, and/or installed from the removable media 511.
As a further aspect, the present application also provides a computer-readable storage medium, which may be a computer-readable storage medium included in the apparatus of the above embodiment, or may be a computer-readable storage medium that exists alone and is not assembled into a device. The computer-readable storage medium stores one or more programs for use by one or more processors in performing the methods described herein.
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units or modules involved in the embodiments of the present application may be implemented in software or in hardware. The described units or modules may also be provided in a processor, for example, each of the units may be a software program provided in a computer or a mobile smart device, or may be separately configured hardware devices. Wherein the names of the units or modules do not in some cases constitute a limitation of the units or modules themselves.
The above description is only illustrative of the preferred embodiments of the present application and of the principles of the technology employed. It will be appreciated by persons skilled in the art that the scope of the application referred to in the present application is not limited to the specific combinations of the technical features described above, but also covers other technical features formed by any combination of the technical features described above or their equivalents without departing from the spirit of the application. Such as the above-mentioned features and the technical features disclosed in the present application (but not limited to) having similar functions are replaced with each other.

Claims (6)

1.一种跨链资产提取方法,其特征在于,所述方法适用于中继器,所述方法包括:1. A cross-chain asset extraction method, characterized in that the method is applicable to a repeater, and the method comprises: 获取第一区块链中的第一跨链资产提取交易;所述第一跨链资产提取交易以第二区块链作为目标链;Obtaining a first cross-chain asset extraction transaction in the first blockchain; the first cross-chain asset extraction transaction uses the second blockchain as a target chain; 解析所述第一跨链资产提取交易获取所述第一跨链资产提取交易的交易信息,并根据交易信息生成第一提取存证交易;Parsing the first cross-chain asset withdrawal transaction to obtain transaction information of the first cross-chain asset withdrawal transaction, and generating a first withdrawal evidence storage transaction according to the transaction information; 查询第二区块链中的在线钱包余额,判断在线钱包余额是否充足;Query the online wallet balance in the second blockchain to determine whether the online wallet balance is sufficient; 若在线钱包余额充足,则向所述第二区块链发送所述第一提取存证交易,所述第一提取存证交易用于在第二区块链中提取第一额度的第二区块链资产,同时记录所述第一提取存证交易的交易哈希以及资产数量,并将所述第一提取存证交易的交易哈希所对应的状态设置为待定状态;If the balance of the online wallet is sufficient, the first withdrawal evidence transaction is sent to the second blockchain, where the first withdrawal evidence transaction is used to withdraw the second blockchain asset of the first amount in the second blockchain, and the transaction hash and asset quantity of the first withdrawal evidence transaction are recorded, and the status corresponding to the transaction hash of the first withdrawal evidence transaction is set to a pending status; 若在线钱包余额不足,则暂停所述第一提取存证交易,并暂停生成提取存证交易;If the online wallet balance is insufficient, suspend the first withdrawal and deposit transaction, and suspend the generation of the withdrawal and deposit transaction; 接收所述第二区块链的充值日志信息,重启所述第一提取存证交易,重新判断第二区块链中的在线钱包余额是否充足;Receiving the recharge log information of the second blockchain, restarting the first withdrawal and evidence storage transaction, and re-determining whether the online wallet balance in the second blockchain is sufficient; 向所述第二区块链发送所述第一提取存证交易后,根据所述第二区块链的日志判断所述第一提取存证交易是否在所述第二区块链中成功执行,若是,则在中继器中将所述第一提取存证交易的交易哈希所对应的状态修改为成功,否则在中继器中将所述第一提取存证交易的交易哈希所对应的状态修改为失败;After sending the first withdrawal evidence transaction to the second blockchain, judging whether the first withdrawal evidence transaction is successfully executed in the second blockchain according to the log of the second blockchain, if so, modifying the state corresponding to the transaction hash of the first withdrawal evidence transaction to success in the repeater, otherwise modifying the state corresponding to the transaction hash of the first withdrawal evidence transaction to failure in the repeater; 判断在线钱包余额是否充足的方法包括如下步骤:The method for determining whether the online wallet balance is sufficient includes the following steps: 获取已经记录在中继器中的所有以第二区块链为目标链的状态为待定状态的提取存证交易并计算待提取资产总额;Obtain all withdrawal evidence transactions recorded in the repeater with the second blockchain as the target chain in a pending state and calculate the total amount of assets to be withdrawn; 将查询到的第二区块链的在线钱包余额与所述待提取资产总额进行对比,若所述待提取资产总额与第一额度的和小于查询到的第二区块链的在线钱包余额则认定为在线钱包余额充足,若所述待提取资产总额与第一额度的和大于查询到的第二区块链的在线钱包余额则认定为在线钱包余额不足。The online wallet balance of the queried second blockchain is compared with the total amount of assets to be withdrawn. If the sum of the total amount of assets to be withdrawn and the first amount is less than the online wallet balance of the queried second blockchain, it is determined that the online wallet balance is sufficient; if the sum of the total amount of assets to be withdrawn and the first amount is greater than the online wallet balance of the queried second blockchain, it is determined that the online wallet balance is insufficient. 2.根据权利要求1所述的一种跨链资产提取方法,其特征在于,“根据所述第二区块链的日志判断所述第一提取存证交易是否在所述第二区块链中成功执行”的方法为通过在第二区块链生成区块时监听其日志事件,查询生成区块中是否包含所述第一提取存证交易的交易信息,若存在则解析所述第一提取存证交易的交易信息以判定所述第一提取存证交易是否成功执行。2. A cross-chain asset extraction method according to claim 1, characterized in that the method of "judging whether the first extraction evidence transaction is successfully executed in the second blockchain based on the log of the second blockchain" is to monitor its log events when the second blockchain generates a block, query whether the generated block contains the transaction information of the first extraction evidence transaction, and if so, parse the transaction information of the first extraction evidence transaction to determine whether the first extraction evidence transaction is successfully executed. 3.根据权利要求1所述的一种跨链资产提取方法,其特征在于,当在线钱包余额不足,暂停所述第一提取存证交易,并暂停生成提取存证交易后,中继器向后台发送警报信息以提示在线钱包余额不足。3. A cross-chain asset extraction method according to claim 1, characterized in that when the online wallet balance is insufficient, the first withdrawal evidence transaction is suspended, and the generation of the withdrawal evidence transaction is suspended, and the repeater sends an alarm message to the background to prompt that the online wallet balance is insufficient. 4.根据权利要求1所述的一种跨链资产提取方法,其特征在于,中继器通过监听所述第一区块链的交易日志以获取所述第一跨链资产提取交易。4. A cross-chain asset extraction method according to claim 1, characterized in that the repeater obtains the first cross-chain asset extraction transaction by monitoring the transaction log of the first blockchain. 5.一种计算机设备,其特征在于,一个或多个处理器;5. A computer device, characterized by one or more processors; 存储器,用于存储一个或多个程序,a memory for storing one or more programs, 当所述一个或多个程序被所述一个或多个处理器执行时,使得所述一个或多个处理器执行如权利要求1至4中任意一项所述的方法。When the one or more programs are executed by the one or more processors, the one or more processors are caused to perform the method according to any one of claims 1 to 4. 6.一种存储有计算机程序的存储介质,其特征在于,该程序被处理器执行时实现如权利要求1至4中任意一项所述的方法。6. A storage medium storing a computer program, characterized in that when the program is executed by a processor, the method according to any one of claims 1 to 4 is implemented.
CN202210107041.5A 2022-01-28 2022-01-28 A cross-chain asset extraction method, device and storage medium Active CN114493597B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210107041.5A CN114493597B (en) 2022-01-28 2022-01-28 A cross-chain asset extraction method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210107041.5A CN114493597B (en) 2022-01-28 2022-01-28 A cross-chain asset extraction method, device and storage medium

Publications (2)

Publication Number Publication Date
CN114493597A CN114493597A (en) 2022-05-13
CN114493597B true CN114493597B (en) 2025-05-09

Family

ID=81476474

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210107041.5A Active CN114493597B (en) 2022-01-28 2022-01-28 A cross-chain asset extraction method, device and storage medium

Country Status (1)

Country Link
CN (1) CN114493597B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021218459A1 (en) * 2020-04-28 2021-11-04 北京邮电大学 Cross-chain interaction method, apparatus and system
CN113850599A (en) * 2021-12-01 2021-12-28 南京金宁汇科技有限公司 Cross-link transaction method and system applied to alliance link

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019246072A1 (en) * 2018-06-21 2019-12-26 Rare Bits, Inc. Bid matching for blockchain-based goods/assets systems and methods
CN109035016B (en) * 2018-06-28 2020-10-23 杭州复杂美科技有限公司 Multi-chain concurrent transaction method
CN111598566A (en) * 2020-04-30 2020-08-28 厦门潭宏信息科技有限公司 Network payment system based on mixed cross-chain

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021218459A1 (en) * 2020-04-28 2021-11-04 北京邮电大学 Cross-chain interaction method, apparatus and system
CN113850599A (en) * 2021-12-01 2021-12-28 南京金宁汇科技有限公司 Cross-link transaction method and system applied to alliance link

Also Published As

Publication number Publication date
CN114493597A (en) 2022-05-13

Similar Documents

Publication Publication Date Title
JP6731203B2 (en) Risk identification method, client device and risk identification system
US10348809B2 (en) Naming of distributed business transactions
CN105357038B (en) Method and system for monitoring virtual machine cluster
CN109871263B (en) Operation method, device and equipment of offline block chain system and storage medium
CN110727563B (en) Cloud service alarm method and device for preset customers
CN115471309A (en) Transaction anomaly detection method, device, electronic device, and readable storage medium
CN110134488A (en) A container application monitoring method and system
CN112860343A (en) Configuration changing method, system, device, electronic equipment and storage medium
JP2023553067A (en) Transaction processing methods, devices, electronic devices and computer programs
CN117131167A (en) Method and device for predicting queuing time of online customer service consultation
CN113656239A (en) Monitoring method and device for middleware and computer program product
CN114493597B (en) A cross-chain asset extraction method, device and storage medium
CN114327804B (en) Blockchain-based distributed transaction processing method, device, device and medium
CN113824651B (en) Market data caching method and device, storage medium and electronic equipment
CN115222515A (en) Capital clearing method, device, computer equipment and storage medium
CN115190125A (en) Monitoring method and device for cache cluster
CN118227720A (en) Vehicle trajectory segmentation method, device, electronic device and storage medium
CN115499347B (en) Data transmission method, device, electronic device and computer readable storage medium
CN116501488A (en) Transaction processing method, device, equipment and storage medium
CN114511323B (en) Cross-chain asset management method, device and storage medium
CN112508710B (en) Account checking system and corresponding computer equipment
CN116167855A (en) Method and device for processing abnormal fund data
US11500857B2 (en) Asynchronous remote calls with undo data structures
CN113064812A (en) A method, device and medium for predicting quality defects in project development process
CN114745426A (en) Method, device and equipment for monitoring abnormity of terminal, readable storage medium and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20241025

Address after: Unit 304, Building 1-4, Qishanyuan, Shangjie Town, Minhou County, Fuzhou City, Fujian Province, 350000

Applicant after: Lin Qixin

Country or region after: China

Address before: 310000 Room 702, 7th Floor, Building 6, East Software Park, No. 90 Wensan Road, Xihu District, Hangzhou City, Zhejiang Province

Applicant before: HANGZHOU FUZAMEI TECHNOLOGY Co.,Ltd.

Country or region before: China

TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20250409

Address after: No. 15-3 Nanyuan Road, Fengtai District, Beijing 100071, China - Floors 3 to 7, Room 01, Floor 7, Room 08-4

Applicant after: Beijing Shugao Technology Co.,Ltd.

Country or region after: China

Address before: Unit 304, Building 1-4, Qishanyuan, Shangjie Town, Minhou County, Fuzhou City, Fujian Province, 350000

Applicant before: Lin Qixin

Country or region before: China

GR01 Patent grant
GR01 Patent grant
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载