A method, device, medium and equipment for asset recovery based on blockchain system

By introducing lost transactions initiated and executed contracts in the blockchain system, and judging and processing lost transaction requests, the problem of the inability to retrieve assets after the private key is lost is solved, the risk of malicious loss reporting is reduced, and the anti-theft performance of digital assets is enhanced.

CN113971557BActive Publication Date: 2025-03-21HAINAN HUOCHAIN TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202111131378.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-26
Publication Date
2025-03-21
Estimated Expiration
2041-09-26

AI Technical Summary

Technical Problem

After the private key in the blockchain system is lost or stolen, the corresponding digital assets cannot be retrieved, and the existing loss-report recovery methods are easily exploited by malicious users.

Method used

By introducing a reported transaction initiation contract in the blockchain system, we can determine whether the reported transaction request meets the preset reporting conditions, and execute the reported transaction execution contract when the conditions are met, and process the reported transaction request.

Benefits of technology

Significantly reduce the risk of private key theft and malicious report loss, ensure that the assets can be easily retrieved after the private key is lost, and enhance the anti-theft performance of digital assets.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113971557B_ABST
    Figure CN113971557B_ABST
Patent Text Reader

Abstract

The present invention provides an asset recovery method and device, medium, and equipment based on a blockchain system, which receives a loss report transaction request initiated by a first blockchain node for a second blockchain node, reads a preset loss report transaction initiation contract from the blockchain network according to the loss report transaction request, and determines whether the loss report transaction request meets the loss report condition according to the loss report transaction initiation contract; if the loss report transaction request meets the loss report condition, the blockchain server processes the loss report transaction request according to the preset loss report transaction execution contract, and if the loss report transaction request does not meet the loss report condition, the blockchain server rejects the loss report transaction request. The present invention can significantly reduce the risk of private key theft and malicious loss report, and is easy to recover assets after the private key is lost, thereby ensuring the property safety of users and enhancing the anti-theft performance of digital assets.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to an asset recovery method, device, medium, and equipment based on a blockchain system. Background Art

[0002] Blockchain technology is a new distributed infrastructure and computing paradigm that uses block chain data structures to verify and store data, distributed node consensus algorithms to generate and update data, cryptography to ensure the security of data transmission and access, and smart contracts composed of automated script code to program and operate data.

[0003] Due to the technology of equal use rights and ownership established by blockchain technology, the private key, as a symbol of the ownership and control of the corresponding digital assets on the blockchain node, is the only proof that the user owns the digital assets. Due to the decentralized and secure characteristics of the private key, there is no way to use the digital assets after losing it. Therefore, if the private key is lost or stolen, the assets in the address will not be able to be recovered, causing great losses to the user, and the current method of recovering assets by reporting the loss cannot avoid being maliciously reported by other users. Summary of the invention

[0004] In view of the above problems, the present invention proposes an asset recovery method and device, medium, and equipment based on a blockchain system, which recovers lost assets by reporting the loss of blockchain nodes whose private keys are lost in the blockchain system, thereby enhancing the anti-theft performance of digital assets.

[0005] According to a first aspect of the present invention, there is provided an asset recovery method based on a blockchain system, which is executed by a blockchain server, wherein the blockchain system includes a plurality of blockchain network nodes, and the blockchain network nodes include at least: a first blockchain node as a first transaction party in the blockchain network, and a second blockchain node as a second transaction party in the blockchain network, wherein the method includes:

[0006] Receiving a loss reporting transaction request initiated by the first blockchain node to the second blockchain node;

[0007] Reading a preset loss reporting transaction initiation contract from the blockchain network according to the loss reporting transaction request;

[0008] Determining whether the loss reporting transaction request meets the loss reporting conditions according to the loss reporting transaction initiation contract;

[0009] If the loss reporting transaction request meets the loss reporting conditions, the blockchain server processes the loss reporting transaction request according to the preset loss reporting transaction execution contract.

[0010] Optionally, before receiving the loss reporting transaction request initiated by the first blockchain node for the second blockchain node, the method further includes:

[0011] Using the management server to set a loss reporting transaction initiation function and a corresponding loss reporting transaction initiation interface on the blockchain system;

[0012] The blockchain server receives a loss reporting transaction initiation contract deployed by the management server according to the loss reporting transaction initiation function and the corresponding loss reporting transaction initiation interface.

[0013] Optionally, judging whether the loss reporting transaction request satisfies the loss reporting condition according to the loss reporting transaction initiation contract includes:

[0014] Calling the loss reporting transaction initiation interface corresponding to the loss reporting transaction initiation function, using the loss reporting transaction initiation interface to read the loss reporting condition indicated by the loss reporting transaction initiation function, and detecting whether the loss reporting transaction request satisfies the loss reporting condition;

[0015] The loss reporting condition includes a first loss reporting transaction initiation sub-condition, a second loss reporting transaction initiation sub-condition and / or a third loss reporting transaction initiation sub-condition;

[0016] The detecting whether the loss reporting transaction request satisfies the loss reporting condition specifically includes:

[0017] Detect whether the loss reporting transaction request satisfies the loss reporting transaction initiation sub-condition; if the loss reporting transaction request satisfies all loss reporting transaction initiation sub-conditions in the loss reporting condition at the same time, then the loss reporting transaction request satisfies the loss reporting condition.

[0018] Optionally, the first loss reporting transaction initiation sub-condition is that the second blockchain node has been accessed within a first preset time before the first blockchain node initiates the loss reporting transaction request;

[0019] The second loss reporting transaction initiation sub-condition is that the asset amount in the account corresponding to the first blockchain node is greater than or equal to a preset asset amount; the size of the preset asset amount is proportional to the size of the asset amount in the account corresponding to the second blockchain node;

[0020] The third loss reporting transaction initiation sub-condition is that before the first blockchain node initiates the loss reporting transaction request, no loss reporting transaction request is initiated by other blockchain nodes in the blockchain network for the second blockchain node.

[0021] Optionally, before the blockchain server processes the loss reporting transaction request according to a preset loss reporting transaction execution contract, the process further includes:

[0022] Using the management server to respectively set a margin freezing function, a loss reporting transaction termination function and / or an asset recovery function on the blockchain system, and a margin freezing interface, a loss reporting transaction termination interface and / or an asset recovery interface corresponding to each function;

[0023] The blockchain server receives a lost transaction execution contract deployed by the management server according to the margin freezing function, the lost transaction termination function and / or the asset recovery function and the margin freezing interface, the lost transaction termination interface and / or the asset recovery interface corresponding to each function.

[0024] Optionally, the blockchain server processes the loss reporting transaction request according to a preset loss reporting transaction execution contract, including:

[0025] Calling the margin freezing interface corresponding to the margin freezing function, the blockchain server uses the margin freezing interface to freeze the digital assets of the preset asset amount in the account corresponding to the first blockchain node;

[0026] Determine whether the second blockchain node generates an access operation within a second preset time after the first blockchain node initiates the loss reporting transaction request;

[0027] If generated, the loss reporting transaction request is terminated according to the loss reporting transaction termination function;

[0028] If not generated, the asset transfer process is performed on the loss report transaction request according to the asset recovery function.

[0029] Optionally, performing transaction termination processing on the loss reporting transaction request according to the loss reporting transaction termination function includes:

[0030] The report-lost-transaction termination interface corresponding to the report-lost-transaction termination function is called, and the blockchain server uses the report-lost-transaction termination interface to transfer the digital assets of the preset asset amount in the account corresponding to the first blockchain node to the account corresponding to the second blockchain;

[0031] And, the blockchain server terminates the loss reporting transaction request using the loss reporting transaction termination interface.

[0032] Optionally, performing asset transfer processing on the loss reporting transaction request according to the asset recovery function includes:

[0033] Calling the asset recovery interface corresponding to the asset recovery function, the blockchain server uses the asset recovery interface to transfer all digital assets in the account corresponding to the second blockchain to the account corresponding to the first blockchain node;

[0034] Furthermore, the blockchain server uses the asset recovery interface to unfreeze the digital assets of the preset asset amount in the account corresponding to the first blockchain node.

[0035] Optionally, the digital assets of the accounts corresponding to each blockchain network node on the blockchain system are protocol assets, the contracts of each blockchain network node are protocol contracts, and the assets and contracts are bound to each other; wherein the protocol contracts can be changed or upgraded.

[0036] According to a second aspect of the present invention, an asset recovery device based on a blockchain system is proposed, comprising:

[0037] A request receiving module, used to receive a loss reporting transaction request initiated by the first blockchain node for the second blockchain node;

[0038] A condition judgment module, used to read a preset loss reporting transaction initiation contract from the blockchain network according to the loss reporting transaction request; and judge whether the loss reporting transaction request meets the loss reporting condition according to the loss reporting transaction initiation contract;

[0039] A transaction processing module, configured to, when the loss reporting transaction request meets the loss reporting condition, cause the blockchain server to process the loss reporting transaction request according to a preset loss reporting transaction execution contract;

[0040] The loss reporting termination module is used for the blockchain server to reject the loss reporting transaction request when the loss reporting transaction request does not meet the loss reporting condition.

[0041] According to the third aspect of the present invention, a computer-readable storage medium is proposed, on which a computer program is stored, characterized in that when the computer program is executed by a processor, the steps of the asset recovery method based on the blockchain system described in any one of claims 1 to 7 are implemented.

[0042] According to a fourth aspect of the present invention, a computer device is proposed, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the asset recovery method based on a blockchain system as described in any one of claims 1 to 7 when executing the computer program.

[0043] The present invention provides an asset recovery method and device based on a blockchain system, a medium, and a device, which receives a loss report transaction request initiated by a first blockchain node for a second blockchain node; reads a preset loss report transaction initiation contract from the blockchain network according to the loss report transaction request; determines whether the loss report transaction request meets the loss report condition according to the loss report transaction initiation contract; if the loss report transaction request meets the loss report condition, the blockchain server processes the loss report transaction request according to the preset loss report transaction execution contract; if the loss report transaction request does not meet the loss report condition, the blockchain server rejects the loss report transaction request. The risk of private key theft and malicious loss report is significantly reduced, and it is easy to recover assets after the private key is lost, avoiding the loss of assets due to the loss of the private key, and enhancing the anti-theft performance of digital assets.

[0044] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below.

[0045] Based on the following detailed description of specific embodiments of the present invention in conjunction with the accompanying drawings, those skilled in the art will become more aware of the above and other objects, advantages and features of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:

[0047] Figure 1 A schematic diagram of a process of an asset recovery method based on a blockchain system provided by an embodiment of the present invention is shown;

[0048] Figure 2 A schematic diagram of the structure of an asset recovery device based on a blockchain system provided by an embodiment of the present invention is shown;

[0049] Figure 3 A schematic diagram of the structure of an asset recovery device based on a blockchain system provided by another embodiment of the present invention is shown;

[0050] Figure 4 A schematic diagram of the physical structure of a computer device provided by an embodiment of the present invention is shown. DETAILED DESCRIPTION

[0051] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0052] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "include..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0053] The embodiment of the present invention provides an asset recovery method based on a blockchain system, such as Figure 1 As shown, the method may at least include the following steps S101 to S104:

[0054] Step S101, receiving a loss report transaction request initiated by a first blockchain node to a second blockchain node.

[0055] The loss reporting process in the embodiment of the present invention is carried out on a blockchain system, which includes multiple blockchain network nodes. The blockchain nodes can participate in all activities of the blockchain system and can independently perform consensus operations and bookkeeping operations. Specifically, each blockchain node is used to reach a consensus on transactions related to the blockchain node, and record the transactions that have reached a consensus in the account book of the blockchain system. In the embodiment of the present invention, each blockchain network node can serve as the transaction address of multiple transaction parties. Generally, the blockchain network node can be a mobile terminal that requires a certain amount of storage space, such as a computer, a mobile phone, etc.

[0056] The blockchain system also includes a blockchain server, which is used to centrally manage multiple blockchain nodes in the blockchain system. In an embodiment of the present invention, the blockchain server can centrally process the loss reporting transaction request initiated by the blockchain network node.

[0057] In the embodiment of the present invention, the assets of each blockchain network node on the blockchain system are protocol assets, and the contracts on each blockchain network node are protocol contracts, and the assets and contracts are bound to each other; wherein, the protocol contract is composed of four parts, namely, a loss transaction initiation function, a margin freezing function, a loss transaction termination function, and an asset recovery function, and the protocol contract can be changed or upgraded.

[0058] The blockchain system includes multiple blockchain network nodes. The loss report request is initiated by one of the blockchain network nodes. Another blockchain network node in the blockchain system is the node whose private key is lost or stolen. The blockchain network node that initiates the loss report transaction request is the first blockchain node, and the lost blockchain network node is the second blockchain node. For example, assuming that the initiator of the loss report transaction request is account A, and account A wants to report the loss of account B to retrieve all digital assets X on account B and transfer digital assets X to account A, the blockchain network node where account A is located is the first blockchain node, and the blockchain network node where account B is located is the second blockchain node.

[0059] Step S102, reading a preset loss reporting transaction initiation contract from the blockchain network according to the loss reporting transaction request; judging whether the loss reporting transaction request meets the loss reporting conditions according to the loss reporting transaction initiation contract.

[0060] Before the blockchain system in the embodiment of the present invention receives a report-lost transaction request initiated by the first blockchain node for the second blockchain node, the administrator can set a report-lost transaction initiation function and a corresponding report-lost transaction initiation interface on the blockchain system through the management server. The blockchain server receives the report-lost transaction initiation contract deployed by the management server according to the report-lost transaction initiation function and the corresponding report-lost transaction initiation interface, and records it on each blockchain network node of the blockchain system.

[0061] When the blockchain server receives a loss reporting transaction request, it calls the loss reporting transaction initiation contract on the blockchain network, and detects whether the loss reporting transaction request meets the loss reporting conditions according to the loss reporting transaction initiation interface corresponding to the loss reporting transaction initiation function in the loss reporting transaction initiation contract. Among them, the loss reporting transaction initiation function is used to indicate the loss reporting conditions, and the loss reporting conditions include three loss reporting transaction initiation sub-conditions, namely the first loss reporting transaction initiation sub-condition, the second loss reporting transaction initiation sub-condition and the third loss reporting transaction initiation sub-condition.

[0062] Among them, the first loss reporting transaction initiation sub-condition is that the second blockchain node has been accessed within the first preset time before the first blockchain node initiates the loss reporting transaction request. Among them, the accessed operations are not limited to account login, balance inquiry, account deposit, account withdrawal, transfer transaction and other operations. In other words, it is necessary to ensure that the corresponding account of the second blockchain node that is reported lost is active for a period of time before the loss is reported. For example, only providing loss reporting services to accounts that have been active in the past half month can guarantee the authenticity of the loss reporting operation to a certain extent and improve the safety factor of account loss reporting.

[0063] The second sub-condition for initiating a lost transaction is that the asset amount in the account corresponding to the first blockchain node is greater than or equal to the preset asset amount, and the preset asset amount is proportional to the asset amount in the account corresponding to the second blockchain node. In other words, it is necessary to ensure that there is a certain amount of margin in the account corresponding to the lost node. If the lost operation is a malicious loss report by other users, the margin in the account corresponding to the lost node will be transferred to the account corresponding to the lost node. And the margin amount is proportional to the asset amount of the account corresponding to the lost node, that is, the larger the asset amount to be recovered, the larger the margin amount. For example, 50% of the asset amount of the account corresponding to the lost node can be set as the margin amount, then the margin amount Y is equal to 50% of all digital assets X on account B, and the asset amount Z on account A should be greater than or equal to the margin amount Y. When the asset amount on account A is less than the margin amount Y, the lost transaction is not allowed. By setting the margin and the corresponding amount, the probability of malicious lost operations can be greatly reduced, and the safety factor of account lost reporting can be improved.

[0064] The third loss report transaction initiation sub-condition is that before the first blockchain node initiates the loss report transaction request, no other blockchain node in the blockchain network initiates a loss report transaction request for the second blockchain node. In other words, it is necessary to ensure that no other user reports the loss of the reported node during the period of private key loss to avoid malicious loss reports.

[0065] In practical applications, the sub-conditions for initiating the loss report transaction may also be configured for the first preset time and the preset asset amount according to actual needs, and the present invention does not limit this.

[0066] Further, whether the loss reporting transaction request satisfies the loss reporting condition is determined by judging whether the loss reporting transaction request satisfies the loss reporting transaction initiation sub-condition.

[0067] If the loss reporting transaction request does not meet at least one of the loss reporting transaction initiation sub-conditions, the loss reporting transaction request does not meet the loss reporting conditions. If the loss reporting transaction request meets all the loss reporting transaction initiation sub-conditions, the loss reporting transaction request meets the loss reporting conditions. In other words, the loss reporting transaction request must meet the above three loss reporting transaction initiation sub-conditions at the same time before the loss reporting process can continue. When the loss reporting transaction request does not meet any of the loss reporting transaction initiation sub-conditions, the loss reporting operation is terminated.

[0068] Step S103: If the loss reporting transaction request meets the loss reporting conditions, the blockchain server processes the loss reporting transaction request according to the preset loss reporting transaction execution contract.

[0069] Before the blockchain server provided by the embodiment of the present invention receives a report-lost transaction request initiated by the first blockchain node for the second blockchain node, or before the blockchain server processes the report-lost transaction request according to a preset report-lost transaction execution contract, the administrator can use the management server to respectively set a margin freezing function, a report-lost transaction termination function and an asset recovery function and corresponding margin freezing interface, report-lost transaction termination interface and asset recovery interface on the blockchain system. The blockchain server can also receive the report-lost transaction execution contract deployed by the administrator using the management server through the margin freezing function, the report-lost transaction termination function and the asset recovery function and corresponding margin freezing interface, report-lost transaction termination interface and asset recovery interface, and process the report-lost transaction request accordingly by calling the corresponding interface of each function.

[0070] When the loss reporting transaction request meets all the loss reporting transaction initiation sub-conditions contained in the loss reporting transaction initiation contract, it is considered that this loss reporting transaction request meets the loss reporting conditions. After the loss reporting transaction request meets the loss reporting conditions, the loss reporting transaction request can be processed through the following steps:

[0071] Step S1: calling the margin freezing interface corresponding to the margin freezing function, and the blockchain server uses the margin freezing interface to freeze the digital assets of the preset asset amount in the account corresponding to the first blockchain node.

[0072] In order to avoid malicious loss reporting operations, the digital assets of the preset asset amount in the corresponding account of the first blockchain node are frozen. For example, if 50% of the asset amount of the corresponding account of the node being reported lost is set as the margin amount, and the margin amount Y on account A is equal to 50% of all digital assets X on account B, the margin amount Y on account A is frozen, and during the freezing period, account A is not allowed to withdraw or transfer the margin amount Y.

[0073] Step S2: Determine whether the second blockchain node generates an access operation within a second preset time after the first blockchain node initiates a loss reporting transaction request.

[0074] The accessed operations are not limited to account login, balance inquiry, account deposit, account withdrawal, transfer transaction and other operations. If the account corresponding to the second blockchain node is active within a certain period of time after the account corresponding to the second blockchain node is reported lost, it means that the user's retrieval of the private key or the loss report operation is malicious. For example, the second preset time can be set to 30 days, and the range of operations generated by the account corresponding to the second blockchain node within 30 days after the loss transaction request is generated are monitored.

[0075] In practical applications, the second preset time may also be set based on the first preset time and the preset asset limit according to actual needs, and the present invention does not limit this.

[0076] Step S3: If it is generated, the loss reporting transaction request is terminated according to the loss reporting transaction termination function.

[0077] That is to say, if the second blockchain node generates an access operation within the second preset time after the first blockchain node initiates the loss reporting transaction request, it is considered that the user may retrieve the private key or the loss reporting operation is malicious. Therefore, when the second blockchain node generates an access operation, the loss reporting transaction request is terminated.

[0078] Optionally, by calling the lost transaction termination interface corresponding to the lost transaction termination function, the blockchain server uses the lost transaction termination interface to transfer the digital assets of the preset asset amount in the corresponding account of the first blockchain node to the corresponding account of the second blockchain; and the blockchain server uses the lost transaction termination interface to terminate the lost transaction request.

[0079] If, during the processing of the loss report transaction request, the node being reported lost generates an access operation, in order to avoid malicious loss report operations and protect the asset security of users, the loss report transaction termination interface can be called when the node being reported lost generates an access operation, and the margin in the account corresponding to the first blockchain node is transferred to the account corresponding to the second blockchain node. For example, the second preset time is t1, and at t2 time after the loss report transaction request is generated, an access operation occurs on account B, and t2 is less than t1. At this time, the margin amount Y on account A is transferred to account B.

[0080] Step S4: If not generated, perform asset transfer processing on the loss transaction request according to the asset recovery function.

[0081] That is to say, if the second blockchain node does not generate any access operation within the second preset time after the first blockchain node initiates the loss transaction request, it is confirmed that the corresponding account of the second blockchain node is successfully reported lost, and the subsequent asset recovery process continues.

[0082] Optionally, the asset recovery interface corresponding to the asset recovery function is called, and the blockchain server uses the asset recovery interface to transfer all digital assets in the corresponding account of the second blockchain to the corresponding account of the first blockchain node; and the blockchain server uses the asset recovery interface to unfreeze the digital assets of the preset asset amount in the corresponding account of the first blockchain node.

[0083] If the node being reported lost does not generate any access operations during the processing of the loss report transaction request, it can be confirmed that the private key is lost and the loss report transaction is made by the user himself. At this time, all digital assets on account B can be transferred to account A, and the margin in account A can be unfrozen. At this time, the asset amount in account A is the original asset amount Z + transfer amount X. The assets are successfully recovered and the loss report transaction is completed.

[0084] Step S104: If the loss reporting transaction request does not meet the loss reporting conditions, the blockchain server rejects the loss reporting transaction request.

[0085] In order to maximize the security of user assets, when a loss reporting transaction request does not meet any of the loss reporting transaction initiation sub-conditions, the loss reporting transaction request will be intercepted and the loss reporting will be terminated.

[0086] The embodiment of the present invention proposes an asset recovery method and device, medium, and equipment based on a blockchain system. The solution recorded in the present invention provides an asset recovery method and device, medium, and equipment based on a blockchain system. By receiving a loss report transaction request initiated by a first blockchain node for a second blockchain node, a preset loss report transaction initiation contract is read from the blockchain network according to the loss report transaction request, and whether the loss report transaction request meets the loss report condition is determined according to the loss report transaction initiation contract; if the loss report transaction request meets the loss report condition, the blockchain server processes the loss report transaction request according to the preset loss report transaction execution contract, and if the loss report transaction request does not meet the loss report condition, the blockchain server rejects the loss report transaction request. The solution provided by the present invention can significantly reduce the risk of private key theft and malicious loss report, and it is easy to recover assets after the private key is lost, which ensures the property safety of users and enhances the anti-theft performance of digital assets.

[0087] Further, as Figure 1 The specific implementation of the present invention provides an asset recovery device based on a blockchain system, such as Figure 2 As shown, the device may include: a request receiving module 210, a condition judging module 220, a transaction processing module 230 and a loss reporting termination module 240.

[0088] The request receiving module 210 can be used to receive a loss reporting transaction request initiated by the first blockchain node to the second blockchain node.

[0089] The condition judgment module 220 can be used to read a preset loss reporting transaction initiation contract from the blockchain network according to the loss reporting transaction request; and judge whether the loss reporting transaction request meets the loss reporting conditions according to the loss reporting transaction initiation contract.

[0090] The transaction processing module 230 can be used for the blockchain server to process the loss reporting transaction request according to the preset loss reporting transaction execution contract when the loss reporting transaction request meets the loss reporting conditions.

[0091] The loss reporting termination module 240 can be used for the blockchain server to reject the loss reporting transaction request when the loss reporting transaction request does not meet the loss reporting conditions.

[0092] Alternatively, if Figure 3 As shown, an asset recovery device based on a blockchain system provided by an embodiment of the present invention may also include: a rule setting module 250.

[0093] The rule setting module 250 can be used to set a loss reporting transaction initiation function and a corresponding loss reporting transaction initiation interface on the blockchain system using a management server;

[0094] The blockchain server receives the loss reporting transaction initiation contract deployed by the management server according to the loss reporting transaction initiation function and the corresponding loss reporting transaction initiation interface;

[0095] Using the management server to respectively set up a margin freezing function, a loss reporting transaction termination function and / or an asset recovery function on the blockchain system, and a margin freezing interface, a loss reporting transaction termination interface and / or an asset recovery interface corresponding to each function;

[0096] The blockchain server receives the lost transaction execution contract deployed by the management server according to the margin freezing function, the lost transaction termination function and / or the asset recovery function and the margin freezing interface, the lost transaction termination interface and / or the asset recovery interface corresponding to each function.

[0097] Optionally, the condition judgment module 220 may also be used to call the loss reporting transaction initiation interface corresponding to the loss reporting transaction initiation function, use the loss reporting transaction initiation interface to read the loss reporting condition indicated by the loss reporting transaction initiation function, and detect whether the loss reporting transaction request satisfies the loss reporting condition;

[0098] The loss reporting condition includes a first loss reporting transaction initiation sub-condition, a second loss reporting transaction initiation sub-condition and / or a third loss reporting transaction initiation sub-condition;

[0099] Check whether the loss reporting transaction request meets the loss reporting conditions, including:

[0100] Detecting whether the loss reporting transaction request satisfies the loss reporting transaction initiation sub-condition; if the loss reporting transaction request satisfies all the loss reporting transaction initiation sub-conditions in the loss reporting condition at the same time, the loss reporting transaction request satisfies the loss reporting condition;

[0101] The first loss reporting transaction initiation sub-condition is that the second blockchain node has been accessed within a first preset time before the first blockchain node initiates the loss reporting transaction request;

[0102] The second loss reporting transaction initiation sub-condition is that the asset amount in the account corresponding to the first blockchain node is greater than or equal to the preset asset amount; the size of the preset asset amount is proportional to the size of the asset amount in the account corresponding to the second blockchain node;

[0103] The third loss reporting transaction initiation sub-condition is that before the first blockchain node initiates the loss reporting transaction request, no loss reporting transaction request initiated by other blockchain nodes in the blockchain network for the second blockchain node.

[0104] Optionally, the transaction processing module 230 may also be used to call a margin freezing interface corresponding to the margin freezing function, and the blockchain server uses the margin freezing interface to freeze the digital assets of a preset asset amount in the account corresponding to the first blockchain node;

[0105] Determine whether the second blockchain node generates an access operation within a second preset time after the first blockchain node initiates a request for reporting a loss transaction;

[0106] If it is generated, the loss reporting transaction request will be terminated according to the loss reporting transaction termination function;

[0107] If not, the asset transfer process will be performed for the loss transaction request according to the asset recovery function;

[0108] The report-lost-transaction termination interface corresponding to the report-lost-transaction termination function is called, and the blockchain server uses the report-lost-transaction termination interface to transfer the digital assets of the preset asset amount in the corresponding account of the first blockchain node to the corresponding account of the second blockchain;

[0109] And, the blockchain server terminates the loss reporting transaction request using the loss reporting transaction termination interface;

[0110] Call the asset recovery interface corresponding to the asset recovery function, and the blockchain server uses the asset recovery interface to transfer all digital assets in the corresponding account of the second blockchain to the corresponding account of the first blockchain node;

[0111] Furthermore, the blockchain server uses the asset recovery interface to unfreeze the digital assets of the preset asset amount in the account corresponding to the first blockchain node.

[0112] In some embodiments of the present invention, in the above-mentioned device, on the blockchain network, the digital assets of the accounts corresponding to each blockchain node are protocol assets, and the contracts of each blockchain node are protocol contracts, and the assets and contracts are bound to each other; wherein, the protocol contracts can be changed or upgraded.

[0113] It should be noted that for other corresponding descriptions of the functional modules involved in the asset recovery device based on the blockchain system provided in the embodiment of the present invention, please refer to Figure 1 The corresponding description of the method shown will not be repeated here.

[0114] Based on the above Figure 1 The method shown, accordingly, an embodiment of the present invention also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the asset recovery method based on the blockchain system described in any of the above embodiments are implemented.

[0115] Based on the above Figure 1 The method shown and Figure 3 The embodiment of the device shown in the figure, the embodiment of the present invention also provides a physical structure diagram of a computer device, such as Figure 4 As shown, the computer device may include a communication bus, a processor, a memory and a communication interface, and may also include an input and output interface and a display device, wherein each functional unit may communicate with each other through the bus. The memory stores a computer program, and the processor is used to execute the program stored in the memory and execute the steps of the asset recovery method based on the blockchain system described in the above embodiment.

[0116] Those skilled in the art can clearly understand that the specific working processes of the systems, devices, modules and units described above can refer to the corresponding processes in the aforementioned method embodiments, and for the sake of brevity, they are not further described here.

[0117] In addition, the functional units in various embodiments of the present invention may be physically independent of each other, or two or more functional units may be integrated together, or all functional units may be integrated into one processing unit. The above integrated functional units may be implemented in the form of hardware, or in the form of software or firmware.

[0118] Those skilled in the art can understand that if the integrated functional unit is implemented in the form of software and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention can essentially or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, which includes a number of instructions to enable a computing device (such as a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present invention when running the instructions. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), magnetic disk or optical disk and other media that can store program codes.

[0119] Alternatively, all or part of the steps of implementing the aforementioned method embodiments may be accomplished by hardware associated with program instructions (such as a computing device such as a personal computer, a server, or a network device), and the program instructions may be stored in a computer-readable storage medium. When the program instructions are executed by a processor of a computing device, the computing device executes all or part of the steps of the methods described in the embodiments of the present invention.

[0120] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that within the spirit and principles of the present invention, the technical solutions described in the aforementioned embodiments can still be modified, or some or all of the technical features therein can be replaced by equivalents. However, these modifications or replacements do not deviate from the protection scope of the present invention.

Claims

1. An asset recovery method based on a blockchain system, executed by a blockchain server, characterized in that: The blockchain system includes a plurality of blockchain network nodes, and the blockchain network nodes include at least: a first blockchain node as a first transaction party in the blockchain network, and a second blockchain node as a second transaction party in the blockchain network, and the method includes: Receiving a loss reporting transaction request initiated by the first blockchain node to the second blockchain node; Reading a preset loss reporting transaction initiation contract from the blockchain network according to the loss reporting transaction request; Determine whether the loss reporting transaction request meets the loss reporting conditions according to the loss reporting transaction initiation contract; If the loss reporting transaction request meets the loss reporting conditions, the blockchain server processes the loss reporting transaction request according to the preset loss reporting transaction execution contract; Wherein, the digital assets of the corresponding accounts of each blockchain network node on the blockchain system are protocol assets, and the contracts of each blockchain network node are protocol contracts, and the assets and contracts are bound to each other; wherein, the protocol contracts can be modified or upgraded; Wherein, before the blockchain server processes the loss reporting transaction request according to the preset loss reporting transaction execution contract, it also includes: Using the management server to respectively set up a margin freezing function, a loss reporting transaction termination function and / or an asset recovery function on the blockchain system, and a margin freezing interface, a loss reporting transaction termination interface and / or an asset recovery interface corresponding to each function; The blockchain server receives a lost transaction execution contract deployed by the management server according to the margin freezing function, the lost transaction termination function and / or the asset recovery function and the margin freezing interface, lost transaction termination interface and / or asset recovery interface corresponding to each function.

2. The method according to claim 1, characterized in that Before receiving the loss reporting transaction request initiated by the first blockchain node for the second blockchain node, the method further includes: Using the management server to set a loss reporting transaction initiation function and a corresponding loss reporting transaction initiation interface on the blockchain system; The blockchain server receives a lost transaction initiation contract deployed by the management server according to the lost transaction initiation function and the corresponding lost transaction initiation interface.

3. The method according to claim 2, characterized in that The determining whether the loss reporting transaction request satisfies the loss reporting conditions according to the loss reporting transaction initiation contract includes: Calling the loss reporting transaction initiation interface corresponding to the loss reporting transaction initiation function, using the loss reporting transaction initiation interface to read the loss reporting condition indicated by the loss reporting transaction initiation function, and detecting whether the loss reporting transaction request satisfies the loss reporting condition; The loss reporting condition includes a first loss reporting transaction initiation sub-condition, a second loss reporting transaction initiation sub-condition and / or a third loss reporting transaction initiation sub-condition; The detecting whether the loss reporting transaction request satisfies the loss reporting condition specifically includes: Detect whether the loss reporting transaction request satisfies the loss reporting transaction initiation sub-condition; if the loss reporting transaction request satisfies all loss reporting transaction initiation sub-conditions in the loss reporting condition at the same time, then the loss reporting transaction request satisfies the loss reporting condition.

4. The method according to claim 3, characterized in that The first loss reporting transaction initiation sub-condition is that the second blockchain node has been accessed within a first preset time before the first blockchain node initiates the loss reporting transaction request; The second loss reporting transaction initiation sub-condition is that the asset amount in the account corresponding to the first blockchain node is greater than or equal to the preset asset amount; The size of the preset asset amount is proportional to the size of the asset amount in the account corresponding to the second blockchain node; The third loss reporting transaction initiation sub-condition is that before the first blockchain node initiates the loss reporting transaction request, no loss reporting transaction request is initiated by other blockchain nodes in the blockchain network for the second blockchain node.

5. The method according to claim 1, characterized in that The blockchain server processes the loss reporting transaction request according to a preset loss reporting transaction execution contract, including: Calling the margin freezing interface corresponding to the margin freezing function, the blockchain server uses the margin freezing interface to freeze the digital assets of the preset asset amount in the account corresponding to the first blockchain node; Determine whether the second blockchain node generates an access operation within a second preset time after the first blockchain node initiates the loss reporting transaction request; If generated, the loss reporting transaction request is terminated according to the loss reporting transaction termination function; If not generated, the asset transfer process is performed on the loss report transaction request according to the asset recovery function.

6. The method according to claim 5, characterized in that The performing transaction termination processing on the loss reporting transaction request according to the loss reporting transaction termination function comprises: The report-lost-transaction termination interface corresponding to the report-lost-transaction termination function is called, and the blockchain server uses the report-lost-transaction termination interface to transfer the digital assets of the preset asset amount in the account corresponding to the first blockchain node to the account corresponding to the second blockchain; And, the blockchain server terminates the loss reporting transaction request using the loss reporting transaction termination interface.

7. The method according to claim 5, characterized in that The performing asset transfer processing on the loss reporting transaction request according to the asset recovery function includes: Calling the asset recovery interface corresponding to the asset recovery function, the blockchain server uses the asset recovery interface to transfer all digital assets in the account corresponding to the second blockchain to the account corresponding to the first blockchain node; Furthermore, the blockchain server uses the asset recovery interface to unfreeze the digital assets of the preset asset amount in the account corresponding to the first blockchain node.

8. An asset recovery device based on a blockchain system, characterized in that: include: A request receiving module, used to receive a loss reporting transaction request initiated by the first blockchain node for the second blockchain node; A condition judgment module, used to read a preset loss reporting transaction initiation contract from the blockchain network according to the loss reporting transaction request; and judge whether the loss reporting transaction request meets the loss reporting condition according to the loss reporting transaction initiation contract; A transaction processing module, configured to, when the loss reporting transaction request meets the loss reporting condition, process the loss reporting transaction request according to a preset loss reporting transaction execution contract by the blockchain server; Wherein, the digital assets of the corresponding accounts of each blockchain network node on the blockchain system are protocol assets, and the contracts of each blockchain network node are protocol contracts, and the assets and contracts are bound to each other; wherein, the protocol contracts can be modified or upgraded; The transaction processing module is further used to: before the blockchain server processes the loss reporting transaction request according to the preset loss reporting transaction execution contract, use the management server to respectively set a margin freezing function, a loss reporting transaction termination function and / or an asset recovery function on the blockchain system and a margin freezing interface, a loss reporting transaction termination interface and / or an asset recovery interface corresponding to each function; The blockchain server receives a lost transaction execution contract deployed by the management server according to the margin freezing function, the lost transaction termination function and / or the asset recovery function and the margin freezing interface, lost transaction termination interface and / or asset recovery interface corresponding to each function.

9. 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 asset recovery method based on the blockchain system described in any one of claims 1 to 7 are implemented.

10. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the asset recovery method based on the blockchain system described in any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Block-chain-based virtual resource transfer method, device, medium and electronic device

    CN109345259A