Digital asset transaction recovery method, device and electronic equipment

By obtaining and verifying the joint signature information of the backup wallet address and transaction wallet address, combined with the recovery password and recovery strategy, the security risk when the blockchain wallet private key is lost is solved, and safe transaction recovery of digital assets is achieved.

CN111861475BActive Publication Date: 2024-09-24SHANGHAI ZHONGXIN INFORMATION DEV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010775021.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-08-04
Publication Date
2024-09-24
Estimated Expiration
2040-08-04

AI Technical Summary

Technical Problem

The existing technology cannot effectively determine the user who generated the public-private key pair when dealing with the loss of the blockchain wallet private key, resulting in the leakage of the private key when the transaction is restored, which increases the security risk of the wallet account.

Method used

By receiving the private key loss message of the target account, the pre-created backup wallet address and transaction wallet address are obtained, joint address signature is performed through a specified number of verification accounts, joint signature information is generated, and based on the joint signature information, transaction wallet address and pre- The set recovery password generates transaction recovery request data, and the digital assets of the target account are traded for recovery based on the recovery strategy.

Benefits of technology

It effectively prevents the private key from being obtained and tampered with by users other than the transaction user, prevents the loss of digital assets caused by the loss of the user's private key, and improves the security of transaction recovery.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111861475B
    Figure CN111861475B
Patent Text Reader

Abstract

The present invention provides a digital asset transaction recovery method, device and electronic device, which relates to the field of blockchain technology. The method includes: if a private key loss message of a target account is received, obtaining a backup wallet address of a backup wallet pre-created by the target account and a transaction wallet address of a transaction wallet of the target account; performing a joint address signature on the backup wallet address through a pre-selected specified number of verification accounts to obtain joint signature information; generating transaction recovery request data according to the joint signature information, the transaction wallet address and a pre-set recovery password; and performing transaction recovery on the digital assets of the target account based on the transaction recovery request data and a pre-set recovery strategy. It can effectively prevent the loss of digital assets caused by the loss of the user's private key, and improve the security of transaction recovery.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of blockchain technology, and in particular to a digital asset transaction recovery method, device and electronic equipment. Background Art

[0002] The blockchain wallet private key is an important means to protect the security of digital assets. The wallet private key has absolute control over the wallet digital assets. Since there are no rules to follow for the generation of the wallet private key and it is very difficult to remember, when the transaction user loses the wallet private key due to the loss of the blockchain wallet or the sudden damage of the storage device, it is impossible to trade through the blockchain wallet. The existing method of recovering the wallet private key when the wallet private key is lost cannot determine that the user who generated the public-private key pair is the transaction user when processing the user's report of loss, which makes it easy to cause the private key to be leaked when the transaction is restored, resulting in a higher security risk for the wallet account. Summary of the invention

[0003] The purpose of the present invention is to provide a digital asset transaction recovery method, device and electronic device, which can effectively prevent the loss of digital assets caused by the loss of the user's private key and improve the security of transaction recovery.

[0004] In a first aspect, an embodiment of the present invention provides a method for recovering digital asset transactions, the method comprising: if a private key loss message of a target account is received, obtaining a backup wallet address of a backup wallet pre-created for the target account and a transaction wallet address of a transaction wallet of the target account; performing a joint address signature on the backup wallet address through a pre-selected specified number of verification accounts to obtain joint signature information; generating transaction recovery request data according to the joint signature information, the transaction wallet address and a pre-set recovery password; and performing transaction recovery on the digital assets of the target account based on the transaction recovery request data and a pre-set recovery strategy.

[0005] In an optional implementation, the recovery strategy setting step includes: creating a backup wallet for the current existing account; the backup wallet includes a backup wallet address and a backup private key; pre-selecting a specified number of verification accounts and obtaining the verification wallet address of each verification account; determining the recovery strategy based on transaction recovery information; the transaction recovery information includes one or more of the backup wallet address, the verification wallet address, the number of verification signatures corresponding to the verification account, and the recovery password.

[0006] In an optional implementation, the step of determining a recovery strategy based on transaction recovery information includes: determining the strength of the recovery strategy based on the number of verified accounts, the number of verification signatures, and the recovery password; determining whether the strength of the recovery strategy is higher than a specified threshold; if so, signing the transaction recovery information according to the transaction wallet private key of the transaction wallet of the target account, and determining the recovery strategy based on the signed transaction recovery information.

[0007] In an optional embodiment, the method also includes: providing a recovery strategy data structure for the recovery strategy through a recovery strategy field set by a preset transaction recovery model; the recovery strategy field includes one or more fields of a backup wallet address, a joint address, a number of joint signatures, a number of verification signatures, a recovery password, and a policy strength; the joint address is obtained by hashing the verification wallet addresses of a specified number of verification users; the number of joint signatures is the number of verification wallet addresses included in the joint address.

[0008] In an optional implementation, the recovery strategy strength is calculated by the following formula:

[0009] Y=A1*λ1+A2*λ2+A3*λ3

[0010] Among them, Y is the strength of the policy recovery strategy; A1 is the number of joint signatures; λ1 is the joint signature coefficient; A2 is the number of verification signatures; λ2 is the verification signature coefficient; A3 is the strength of the recovery password; λ3 is the recovery password coefficient.

[0011] In an optional implementation, the step of generating transaction recovery request data based on the joint signature information, the transaction wallet address and a preset recovery password includes: packaging the joint signature information, the transaction wallet address and the preset recovery password through a standby wallet to obtain transaction recovery application data; performing a transaction recovery signature on the transaction recovery application data based on a standby private key of the standby wallet to generate transaction recovery request data.

[0012] In an optional implementation, the method further includes: obtaining a backup wallet address from the transaction recovery request data; obtaining a pre-set recovery strategy; sequentially verifying the backup wallet address, joint signature information, number of joint signatures, joint address, and recovery password set in the recovery strategy, and determining that the transaction recovery of the digital assets of the target account is valid when all verifications pass.

[0013] In a second aspect, an embodiment of the present invention provides a transaction recovery device for digital assets, the device comprising: an acquisition module, for obtaining a backup wallet address of a backup wallet pre-created by the target account and a transaction wallet address of the transaction wallet of the target account if a private key loss message of the target account is received; a joint signature module, for performing a joint address signature on the backup wallet address through a pre-selected specified number of verification accounts to obtain joint signature information; a recovery data generation module, for generating transaction recovery request data according to the joint signature information, the transaction wallet address and a pre-set recovery password; a transaction recovery module, for performing transaction recovery on the digital assets of the target account based on the transaction recovery request data and a pre-set recovery strategy.

[0014] In a third aspect, an embodiment of the present invention provides an electronic device, including a processor and a memory; a computer program is stored in the memory, and when the computer program is executed by the processor, a method as described in any one of the aforementioned implementations is executed.

[0015] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium for storing computer software instructions used for any of the methods in the aforementioned implementation modes.

[0016] The digital asset transaction recovery method, device and electronic device provided by the present invention, when receiving the private key loss message of the target account, first obtain the backup wallet address of the backup wallet pre-created by the target account and the transaction wallet address of the transaction wallet of the target account, then perform a joint address signature on the backup wallet address through a pre-selected specified number of verification accounts to obtain a joint signature information, and then generate transaction recovery request data according to the joint signature information, the transaction wallet address and the pre-set recovery password, and finally perform transaction recovery on the digital assets of the target account based on the transaction recovery request data and the pre-set recovery strategy. The above method performs a joint address signature on the backup wallet address through a specified number of verification accounts to obtain the joint signature information, which can prevent the private key from being obtained and tampered by users other than the transaction user, and can effectively prevent the loss of digital assets caused by the loss of the user's private key. Then, the transaction recovery request data determined by the joint signature information, the transaction wallet address and the pre-set recovery password is used to recover the digital assets of the target account according to the pre-set recovery strategy, which can effectively prevent the loss of digital assets caused by the loss of the user's private key, and improve the security of transaction recovery. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0018] Figure 1 A flowchart of a digital asset transaction recovery method provided by an embodiment of the present invention;

[0019] Figure 2 A flowchart of a transaction recovery verification method provided by an embodiment of the present invention;

[0020] Figure 3 A flowchart of another digital asset transaction recovery method provided by an embodiment of the present invention;

[0021] Figure 4A schematic diagram of the structure of a digital asset transaction recovery device provided by an embodiment of the present invention;

[0022] Figure 5 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0023] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Generally, the components of the embodiments of the present invention described and shown in the drawings here can be arranged and designed in various different configurations.

[0024] Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the invention claimed for protection, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0025] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.

[0026] Some embodiments of the present invention are described in detail below in conjunction with the accompanying drawings. In the absence of conflict, the following embodiments and features in the embodiments can be combined with each other.

[0027] For ease of understanding, firstly, a digital asset transaction recovery method provided by an embodiment of the present invention is described in detail. Figure 1 The flowchart of a method for recovering digital asset transactions is shown in FIG. 1 , and the method mainly includes the following steps S102 to S108:

[0028] Step S102: If a private key loss message of the target account is received, the backup wallet address of the backup wallet pre-created by the target account and the transaction wallet address of the transaction wallet of the target account are obtained.

[0029] In one embodiment, the private key loss information can be generated by the display terminal of the electronic device triggered by the user holding the target account. The pre-created backup wallet can be obtained by the holder of the target account through a new application on the trading platform, or by selecting a wallet from other wallets already owned by the holder of the target account (it can be understood that a user can often have one or more account wallets on the trading platform, so one can be selected from other wallets already owned by the user (i.e., the holder of the target account)). In actual applications, the key information of the backup wallet includes the backup wallet address. Similarly, the key information of the transaction wallet of the target account includes the transaction wallet address. The backup wallet is associated with the transaction wallet of the target account. When the transaction wallet of the target account cannot be used, the digital assets can be transferred to the backup wallet so that transactions and other operations can be performed through the backup wallet.

[0030] Step S104, a joint address signature is performed on the standby wallet address through a pre-selected specified number of verification accounts to obtain joint signature information.

[0031] The pre-selected specified number of verification accounts includes the transaction objects of the target account, that is, the accounts that have traded with the target account. The specified number can be set according to actual needs. It is understandable that the more verification accounts there are, the higher the security of the target account when recovering transactions, but the more verification accounts are not necessarily better. Therefore, in actual application, the number of verification accounts with higher verification efficiency can be selected under the premise of ensuring security. The user selects a specified number of verification accounts that have traded with the target account to perform a joint address signature on the backup wallet address to obtain the joint signature information (that is, the verification account signature information), which ensures the security of the backup wallet address.

[0032] Step S106, generating transaction recovery request data according to the joint signature information, the transaction wallet address and the preset recovery password.

[0033] The pre-set recovery password is mainly used for recovery verification when restoring the wallet, and can be generated by user settings. In one embodiment, the recovery password can include three different password strengths: low, medium, and high, such as (1) low: the recovery password is less than 8 characters or 8 digits; (2) medium: the recovery password length is greater than or equal to 8 digits, uppercase letters [AZ], lowercase letters [az]; (3) strong: the recovery password length is greater than or equal to 8 digits, including uppercase letters [AZ], lowercase letters [az], numbers [0-9], and special characters other than word characters (for example only). After determining the joint signature information, the transaction wallet address, and the pre-set recovery password, the joint signature information, the transaction wallet address, and the pre-set recovery password can be provided to the standby wallet, and the standby wallet packages the joint signature information, the transaction wallet address, and the pre-set recovery password to obtain transaction recovery application data (also referred to as a transaction recovery request package). Preferably, after the joint signature information, the transaction wallet address and the pre-set recovery password are packaged, the transaction recovery application data is signed based on the standby private key of the standby wallet to generate the transaction recovery request data.

[0034] Step S108, performing transaction recovery on the digital assets of the target account based on the transaction recovery request data and the preset recovery strategy.

[0035] In one embodiment, the pre-set recovery strategy can provide users with a recovery strategy in the event that the private key of the target account is lost, transfer the digital assets to a pre-created backup wallet through the above-mentioned verification account joint signature verification mechanism, and use the backup private key of the backup wallet to restore transaction control of the digital assets.

[0036] The digital asset transaction recovery method provided by the embodiment of the present invention performs a joint address signature on the backup wallet address through a specified number of verification accounts to obtain joint signature information, which can prevent the private key from being obtained and tampered with by users other than the transaction user, and can effectively prevent the loss of digital assets caused by the loss of the user's private key. Then, the transaction recovery request data determined by the joint signature information, the transaction wallet address and a preset recovery password is used to recover the digital assets of the target account according to a preset recovery strategy, which can effectively prevent the loss of digital assets caused by the loss of the user's private key, and improve the security of transaction recovery.

[0037] In order to achieve transaction recovery when the private key of the target account is lost, the recovery strategy modeling and recovery strategy setting can be performed first. For ease of understanding, the setting method of the above recovery strategy is first introduced. The method can be performed in the following steps (1) and (3):

[0038] Step (1) creates a backup wallet for the current existing account, wherein the backup wallet includes a backup wallet address and a backup private key. The current existing accounts are all accounts, not just the target account that has lost the user's private key. The backup wallet can be created by the user's new application on the trading platform, or by selecting from other existing wallet accounts of the user, or by other methods. It can be flexibly set in actual applications and is not specifically limited here. By creating a backup wallet as a backup wallet for the current transaction wallet of an existing account, it can be used as an emergency backup when the private key of the current transaction wallet is lost.

[0039] Step (2), pre-select a specified number of verification accounts, and obtain the verification wallet address of each verification account. The pre-selected specified number of verification accounts include the transaction object of the target account, see the above step S104, which will not be repeated here. It can be understood that each verification account has its own wallet address, that is, the verification wallet address.

[0040] Step (3), determining a recovery strategy based on the transaction recovery information. The transaction recovery information may include one or more of a backup wallet address, a verification wallet address, the number of verification signatures corresponding to the verification account, and a recovery password. When determining the recovery strategy, the backup wallet address and the verification wallet address of the verification account may be first obtained through the transaction wallet of the current existing account. Since the number of verification accounts is usually multiple, the verification wallet address of the obtained verification account may be subjected to a message digest algorithm (MD5) in a pre-selected order through the transaction wallet of the current existing account to generate a joint address, and the number of signatures required to be verified when the transaction is recovered may be pre-set by the user. The number of verification signatures may be equal to the number of verification accounts or may be less than the number of verification accounts, and may be set according to actual conditions. Then, the recovery password may be set by the user. In order to ensure the security of the recovery password, the preset recovery password may be encrypted by a preset encryption algorithm to obtain the encrypted recovery password. The encryption algorithm includes an MD5 algorithm and / or a Base64 algorithm. For example, the recovery password may be first encrypted using MD5, and then encrypted using 64 printable characters to represent binary data (ie, Base64), to obtain an encrypted character string corresponding to the recovery password.

[0041] In one embodiment, the above step (3) can also determine the strength of the recovery strategy, that is, the transaction wallet determines the strength of the recovery strategy through the above transaction recovery information, and feeds back the determination result to the user. Specifically, the strength of the recovery strategy is determined based on the number of verified accounts, the number of verification signatures and the recovery password, and the strength Y of the recovery strategy is calculated according to the actual value of the set policy item (that is, the number of verified accounts, the number of verification signatures and the recovery password set by the user) and the coefficient of each policy item. The specific calculation formula of Y is as follows: Y = A1*λ1+A2*λ1+A3*λ3+A4*λ4; wherein A1 is the number of joint signatures; λ1 is the joint signature coefficient; A2 is the number of verification signatures; λ2 is the verification signature coefficient; A3 is the strength of the recovery password; λ3 is the recovery password coefficient, and the strength of the strategy is determined according to the calculated Y value. The joint signature coefficient λ1, the verification signature coefficient λ2 and the recovery password coefficient λ3 are used to characterize the degree of influence on the strength of the recovery strategy, which can be set according to actual conditions and are not specifically limited here. In order to ensure the security of transaction recovery, the recovery strategy when the recovery strategy strength is higher than the specified threshold can be used as the final recovery strategy, and the transaction recovery information under the recovery strategy strength is signed according to the transaction wallet private key of the target account's transaction wallet, and the recovery strategy is determined based on the signed transaction recovery information, and the signed recovery strategy is submitted to the trading platform for endorsement (that is, the recovery strategy is stored and backed up). In addition, the created recovery strategy can also modify the content of the transaction recovery information at will, and re-sign it and submit it to the trading platform for endorsement if the user's transaction wallet private key is not lost.

[0042] In one embodiment, the recovery strategy field includes one or more fields of a backup wallet address, a joint address, a number of joint signatures, a number of verification signatures, a recovery password, and a policy strength, wherein the joint address is obtained by hashing the verification wallet addresses of a specified number of verification users, and the number of joint signatures is the number of verification wallet addresses included in the joint address. For ease of understanding, see Table 1 for a schematic table of a field data structure, which shows the data items contained in the original transaction field and the recovery strategy transaction field, as well as the data format of each data item. It can be understood that the recovery strategy field adds a backup wallet address, a joint address, a number of joint signatures, a number of verification signatures, a recovery password, and a policy strength compared to the original transaction field. By setting the recovery strategy field, the recovery strategy field (such as a backup wallet address, a joint address, a number of joint signatures, a number of verification signatures, a recovery password, and a policy strength) set by a pre-set transaction recovery model can provide a recovery strategy data structure for the recovery strategy.

[0043] Table 1 Schematic diagram of a field data structure

[0044]

[0045]

[0046] After the transaction recovery request data is generated as above, the backup wallet submits the generated transaction recovery request data to the trading platform to request transaction recovery. The trading platform verifies the transaction recovery. Figure 2 A transaction recovery verification method shown in the figure first obtains the backup wallet address from the transaction recovery request data, and obtains the preset recovery strategy, such as obtaining the preset recovery strategy of the wallet through the transaction wallet address. The backup wallet address, joint signature information, number of joint signatures, joint address, and recovery password set in the recovery strategy are verified in sequence, and when all verifications are passed, it is determined that the transaction recovery of the digital assets of the target account is valid.

[0047] Specifically, first verify the backup wallet address, derive the signature wallet address from the joint signature information (also referred to as the verification user signature), if the signature address is inconsistent with the signature address of the joint address in the set recovery strategy, the verification fails, if they are consistent, verify the verification account signature, and verify the signature of the verification account in the order of the pre-selected verification accounts. If the verification fails, the verification fails, if it passes, verify the number of joint signatures, if the number of verifications is less than the number of verification signatures pre-set in the recovery strategy, the verification fails, otherwise further verify the joint address, perform MD5 on the verification wallet address of the verification account in sequence, compare the generated verification account address with the verification account address of the recovery strategy, if they are inconsistent, the verification fails, otherwise further verify the recovery password provided in the user transaction recovery request data, perform MD5 and Base64 on the recovery password provided in the user transaction recovery request data, and compare it with the recovery password set in the recovery strategy, if they are inconsistent, the verification fails, otherwise the verification succeeds. Furthermore, when the verification is successful, the digital assets of the target account are transferred from the current transaction wallet to the backup wallet, so that the user can use the backup private key to control the transaction of digital assets in the backup wallet.

[0048] This embodiment also provides another digital asset transaction recovery method, which mainly includes three aspects: recovery strategy modeling, recovery strategy setting and digital asset transaction recovery. For ease of understanding, see Figure 3The flowchart of another method for recovering a digital asset transaction is shown, in which the recovery strategy modeling establishes a recovery strategy data structure for the transaction wallet by adding a recovery strategy field, see the above implementation method, which will not be repeated here. The method sets the recovery strategy through the recovery strategy setting stage, and applies the recovery strategy in the transaction recovery stage, and finally transfers the digital assets of the target account to the backup wallet associated with the target account, and trades through the backup private key (that is, the backup private key in the figure). By establishing a user backup wallet, a transaction recovery strategy combining user joint signature verification and recovery password can be formulated to achieve transaction recovery of digital assets in the event of private key loss, solving the problem that digital assets cannot be traded when the user wallet private key is lost. And because the order of user signature wallet addresses needs to be verified when the transaction is recovered, it can effectively prevent criminals from illegally obtaining all verified user signatures for transaction recovery.

[0049] In summary, the digital asset transaction recovery method provided in this embodiment can prevent the private key from being obtained and tampered with by users other than the transaction user, effectively prevent the loss of digital assets caused by the loss of the user's private key, and improve the security of transaction recovery.

[0050] For the above-mentioned digital asset transaction recovery method, the embodiment of the present invention provides a digital asset transaction recovery device, see Figure 4 The structure diagram of a digital asset transaction recovery device shown in FIG. 1 mainly includes the following parts:

[0051] The acquisition module 402 is used to acquire the backup wallet address of the backup wallet pre-created by the target account and the transaction wallet address of the transaction wallet of the target account if a private key loss message of the target account is received;

[0052] The joint signature module 404 is used to perform a joint address signature on the backup wallet address through a pre-selected specified number of verification accounts to obtain joint signature information;

[0053] The recovery data generation module 406 is used to generate transaction recovery request data according to the joint signature information, the transaction wallet address and the preset recovery password;

[0054] The transaction recovery module 408 is used to recover the digital assets of the target account based on the transaction recovery request data and a preset recovery strategy.

[0055] The digital asset transaction recovery device provided by the embodiment of the present invention can obtain joint signature information by performing a joint address signature on the backup wallet address through a specified number of verification accounts, which can prevent the private key from being obtained and tampered with by users other than the transaction user, and can effectively prevent the loss of digital assets caused by the loss of the user's private key. Then, the digital assets of the target account are recovered according to the preset recovery strategy through the transaction recovery request data determined by the joint signature information, the transaction wallet address and the preset recovery password, which can effectively prevent the loss of digital assets caused by the loss of the user's private key, and improve the security of transaction recovery.

[0056] In one embodiment, the above-mentioned device also includes: a policy setting module, which is used to create a backup wallet for the current existing account; the backup wallet includes a backup wallet address and a backup private key; pre-selecting a specified number of verification accounts, and obtaining the verification wallet address of each verification account; determining a recovery strategy based on transaction recovery information; the transaction recovery information includes one or more of the backup wallet address, the verification wallet address, the number of verification signatures corresponding to the verification account, and the recovery password.

[0057] In one embodiment, the above-mentioned policy setting module is further used to determine the strength of the recovery policy based on the number of verified accounts, the number of verification signatures and the recovery password; determine whether the strength of the recovery policy is higher than a specified threshold; if so, sign the transaction recovery information according to the transaction wallet private key of the transaction wallet of the target account, and determine the recovery strategy based on the signed transaction recovery information.

[0058] In one embodiment, the above-mentioned device also includes: a policy data structure providing module, which is used to provide a recovery strategy data structure for the recovery strategy through the recovery strategy field set by a preset transaction recovery model; the recovery strategy field includes one or more fields of a backup wallet address, a joint address, a number of joint signatures, a number of verification signatures, a recovery password, and a policy strength; the joint address is obtained by hashing the verification wallet addresses of a specified number of verification users; the number of joint signatures is the number of verification wallet addresses included in the joint address.

[0059] In one implementation, the above-mentioned policy setting module is further used to calculate the recovery policy strength by the following formula:

[0060] Y=A1*λ1+A2*λ2+A3*λ3

[0061] Among them, Y is the strength of the policy recovery strategy; A1 is the number of joint signatures; λ1 is the joint signature coefficient; A2 is the number of verification signatures; λ2 is the verification signature coefficient; A3 is the strength of the recovery password; λ3 is the recovery password coefficient.

[0062] In one embodiment, the recovery data generation module 406 is further used to package the joint signature information, the transaction wallet address and the pre-set recovery password through the standby wallet to obtain transaction recovery application data; based on the standby private key of the standby wallet, the transaction recovery application data is signed for transaction recovery to generate transaction recovery request data.

[0063] In one embodiment, the above-mentioned device also includes: a transaction recovery verification module, which is used to obtain a backup wallet address from the transaction recovery request data; obtain a pre-set recovery strategy; verify the backup wallet address, joint signature information, number of joint signatures, joint address, and recovery password set in the recovery strategy in sequence, and determine that the transaction recovery of the digital assets of the target account is valid when all verifications pass.

[0064] The device provided in the embodiment of the present invention has the same implementation principle and technical effects as those of the aforementioned method embodiment. For the sake of brief description, for matters not mentioned in the device embodiment, reference may be made to the corresponding contents in the aforementioned method embodiment.

[0065] An embodiment of the present invention provides an electronic device. Specifically, the electronic device includes a processor and a storage device. The storage device stores a computer program, and when the computer program is executed by the processor, it executes the method described in any one of the above-mentioned implementation methods.

[0066] Figure 5 A structural diagram of an electronic device provided in an embodiment of the present invention, the electronic device 100 includes: a processor 50, a memory 51, a bus 52 and a communication interface 53, wherein the processor 50, the communication interface 53 and the memory 51 are connected via the bus 52; the processor 50 is used to execute an executable module stored in the memory 51, such as a computer program.

[0067] The memory 51 may include a high-speed random access memory (RAM), and may also include a non-volatile memory, such as at least one disk memory. The communication connection between the system network element and at least one other network element is realized through at least one communication interface 53 (which may be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. may be used.

[0068] The bus 52 may be an ISA bus, a PCI bus, or an EISA bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 5 Only one bidirectional arrow is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0069] Among them, the memory 51 is used to store programs, and the processor 50 executes the program after receiving the execution instruction. The method executed by the device for flow process definition disclosed in any embodiment of the above-mentioned embodiment of the present invention can be applied to the processor 50 or implemented by the processor 50.

[0070] The processor 50 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the processor 50. The above processor 50 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present invention can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor. The steps of the method disclosed in the embodiments of the present invention can be directly embodied as a hardware decoding processor to be executed, or can be executed by a combination of hardware and software modules in the decoding processor. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 51, and the processor 50 reads the information in the memory 51 and completes the steps of the above method in combination with its hardware.

[0071] The digital asset transaction recovery method, device and computer program product of the electronic device provided in the embodiments of the present invention include a computer-readable storage medium storing a non-volatile program code executable by a processor, and a computer program is stored on the computer-readable storage medium. The computer program is executed by the processor to execute the method described in the previous method embodiment. The specific implementation can be found in the method embodiment, which will not be repeated here.

[0072] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the system described above can refer to the corresponding process in the aforementioned embodiment, and will not be repeated here.

[0073] The computer program product of the readable storage medium provided in the embodiment of the present invention includes a computer-readable storage medium storing program code, and the instructions included in the program code can be used to execute the method described in the previous method embodiment. The specific implementation can be referred to the method embodiment, which will not be repeated here.

[0074] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art or the 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, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc., which can store program codes.

[0075] 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 they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. A digital asset transaction recovery method, characterized in that: The method comprises: If a private key loss message of the target account is received, obtain the backup wallet address of the backup wallet pre-created by the target account and the transaction wallet address of the transaction wallet of the target account; Performing a joint address signature on the backup wallet address through a pre-selected specified number of verification accounts to obtain joint signature information; Generate transaction recovery request data according to the joint signature information, the transaction wallet address and a preset recovery password; Recovering the transaction of the digital assets of the target account based on the transaction recovery request data and a preset recovery strategy; The steps of setting the recovery strategy include: Create a backup wallet for the current existing account; the backup wallet includes a backup wallet address and a backup private key; Preselect a specified number of verification accounts and obtain the verification wallet address of each of the verification accounts; Determining the recovery strategy based on transaction recovery information; the transaction recovery information includes one or more of the backup wallet address, the verification wallet address, the number of verification signatures corresponding to the verification account, and a recovery password; The step of determining the recovery strategy based on the transaction recovery information includes: The strength of the recovery strategy is determined based on the number of verified accounts, the number of verification signatures and the recovery password: Y=A1*λ1+A2*λ2+A3*λ3, where Y is the strength of the strategy recovery strategy; A1 is the number of joint signatures; λ1 is the joint signature coefficient; A2 is the number of verification signatures; λ2 is the verification signature coefficient; A3 is the strength of the recovery password; λ3 is the recovery password coefficient Determining whether the strength of the recovery strategy is greater than a specified threshold; If yes, signing the transaction recovery information according to the transaction wallet private key of the transaction wallet of the target account, and determining the recovery strategy based on the signed transaction recovery information; The recovery strategy field set by the preset transaction recovery model provides a recovery strategy data structure for the recovery strategy; the recovery strategy field includes one or more fields of the backup wallet address, the joint address, the number of joint signatures, the number of verification signatures, the recovery password, and the strategy strength; the joint address is obtained by hashing the verification wallet addresses of a specified number of verification users; the number of joint signatures is the number of verification wallet addresses included in the joint address; Verify the backup wallet address, derive the signature wallet address from the joint signature information, if the signature address is inconsistent with the signature address of the joint address in the set recovery strategy, the verification fails, if they are consistent, verify the verification account signature, verify the verification account signature in the order of the pre-selected verification accounts, if the verification fails, the verification fails, if it passes, verify the number of joint signatures, if the number of verifications is less than the number of verification signatures pre-set in the recovery strategy, the verification fails, otherwise further verify the joint address, perform MD5 on the verification wallet address of the verification account in sequence, compare the generated verification account address with the verification account address of the recovery strategy, if they are inconsistent, the verification fails, otherwise further verify the recovery password provided in the user transaction recovery request data, perform MD5 and Base64 on the recovery password provided in the user transaction recovery request data, and compare it with the recovery password set in the recovery strategy, if they are inconsistent, the verification fails, otherwise the verification succeeds; when the verification succeeds, transfer the digital assets of the target account from the current transaction wallet to the backup wallet, so that the user can use the backup private key to control the transaction of digital assets in the backup wallet.

2. The method according to claim 1, characterized in that: The step of generating transaction recovery request data according to the joint signature information, the transaction wallet address and the preset recovery password includes: The standby wallet packages the joint signature information, the transaction wallet address and the preset recovery password to obtain transaction recovery application data; The transaction recovery application data is signed based on the standby private key of the standby wallet to generate transaction recovery request data.

3. The method according to claim 1, characterized in that The method further comprises: Get the backup wallet address from the transaction recovery request data; Get the pre-set recovery strategy; The backup wallet address, the joint signature information, the number of joint signatures, the joint address, and the recovery password set in the recovery strategy are verified in sequence, and when all verifications pass, it is determined that the transaction recovery of the digital assets of the target account is valid.

4. A digital asset transaction recovery device, characterized in that: The device comprises: An acquisition module, configured to acquire, if a private key loss message of a target account is received, a backup wallet address of a backup wallet pre-created for the target account and a transaction wallet address of a transaction wallet of the target account; A joint signature module, used to perform a joint address signature on the standby wallet address through a pre-selected specified number of verification accounts to obtain joint signature information; A recovery data generation module, used to generate transaction recovery request data according to the joint signature information, the transaction wallet address and a preset recovery password; A transaction recovery module, used to recover the digital assets of the target account based on the transaction recovery request data and a preset recovery strategy; The above-mentioned device also includes: a policy setting module, which is used to create a backup wallet for the current existing account; the backup wallet includes a backup wallet address and a backup private key; pre-selecting a specified number of verification accounts, and obtaining the verification wallet address of each verification account; determining a recovery strategy based on transaction recovery information; the transaction recovery information includes one or more of the backup wallet address, the verification wallet address, the number of verification signatures corresponding to the verification account, and the recovery password; The policy setting module is further used to determine the strength of the recovery policy based on the number of verified accounts, the number of verified signatures and the recovery password; determine whether the strength of the recovery policy is higher than a specified threshold; if so, sign the transaction recovery information according to the transaction wallet private key of the transaction wallet of the target account, and determine the recovery policy based on the signed transaction recovery information; The device further includes: a policy data structure providing module, which is used to provide a recovery policy data structure for the recovery policy through a recovery policy field set by a preset transaction recovery model; the recovery policy field includes one or more fields of a backup wallet address, a joint address, a number of joint signatures, a number of verification signatures, a recovery password, and a policy strength; the joint address is obtained by hashing the verification wallet addresses of a specified number of verification users; the number of joint signatures is the number of verification wallet addresses included in the joint address; The policy setting module is further used to calculate the recovery policy strength by the following formula: Y=A1*λ1+A2*λ2+A3*λ3 Where Y is the strength of the policy recovery strategy; A1 is the number of joint signatures; λ1 is the joint signature coefficient; A2 is the number of verification signatures; λ2 is the verification signature coefficient; A3 is the strength of the recovery password; λ3 is the recovery password coefficient; Verify the backup wallet address, derive the signature wallet address from the joint signature information, if the signature address is inconsistent with the signature address of the joint address in the set recovery strategy, the verification fails, if they are consistent, verify the verification account signature, verify the verification account signature in the order of the pre-selected verification accounts, if the verification fails, the verification fails, if it passes, verify the number of joint signatures, if the number of verifications is less than the number of verification signatures pre-set in the recovery strategy, the verification fails, otherwise further verify the joint address, perform MD5 on the verification wallet address of the verification account in sequence, compare the generated verification account address with the verification account address of the recovery strategy, if they are inconsistent, the verification fails, otherwise further verify the recovery password provided in the user transaction recovery request data, perform MD5 and Base64 on the recovery password provided in the user transaction recovery request data, and compare it with the recovery password set in the recovery strategy, if they are inconsistent, the verification fails, otherwise the verification succeeds; when the verification succeeds, transfer the digital assets of the target account from the current transaction wallet to the backup wallet, so that the user can use the backup private key to control the transaction of digital assets in the backup wallet.

5. An electronic device, characterized in that: including a processor and a memory; The memory stores a computer program, which, when executed by the processor, performs the method according to any one of claims 1 to 3.

6. A computer-readable storage medium, characterized in that: Used to store computer software instructions used for the method according to any one of claims 1 to 3.