Hardware wallet balance recovery method and apparatus
By receiving user loss reporting requests, verifying identities, and setting waiting periods, the hardware wallet balance recovery method solves the problem of hardware wallets being unable to synchronize, improves the security and user experience of hardware wallets, and ensures that the balance of a hardware wallet can be recovered after it is lost or damaged.
Patent Information
- Application Number
- CN202410089189.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-22
- Publication Date
- 2026-11-20
- Estimated Expiration
- 2044-01-22
AI Technical Summary
Hardware wallets cannot synchronize with the operating institution after two offline transactions, resulting in the inability to recover the value of the coins, affecting payment security and user experience.
This paper provides a method for restoring the balance of a hardware wallet. The method involves receiving a user's loss reporting request, verifying the user's identity, setting a loss reporting waiting period, and restoring the hardware wallet balance at the end of the waiting period based on the balance and transaction information of the last synchronization. It supports asynchronous reconciliation of dual offline and single offline transactions.
It improves the robustness and security of hardware wallet payments, protects users' funds, and reduces losses in the event of a lost or damaged hardware wallet.
Smart Images

Figure CN117974136B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of computer technology, and in particular to a hardware wallet balance recovery method, apparatus, electronic device, and computer-readable medium. Background Technology
[0002] The hardware wallet uses a secure chip to store the user's cryptocurrency account information and key data, and supports both single and dual offline transactions. In dual offline transaction scenarios, users directly exchange cryptocurrency tokens peer-to-peer during payments, achieving value transfer and recording the transaction information. Once the maximum number of dual offline transactions or the maximum offline transaction time is reached, the hardware wallet uses a client app to synchronize the dual offline transaction information and cryptocurrency token credentials to the operating institution's backend system, simultaneously clearing the dual offline transaction information and updating the cryptocurrency tokens. Because the cryptocurrency token value is stored in the hardware wallet's secure chip, if the hardware wallet is lost, the cryptocurrency token value cannot be recovered; or if the hardware wallet is damaged, it cannot process payments based on the cryptocurrency token value. Summary of the Invention
[0003] In view of this, embodiments of the present invention provide a hardware wallet balance recovery method, which solves the problem that existing hardware wallets, after transactions based on cryptocurrency strings, suffer losses and cannot recover balance value before being synchronized with the operating institution online. This improves the robustness of hardware wallet payments and ensures the security of hardware wallet usage. Specifically, the method is applied to the server of a first operating institution and includes the following steps:
[0004] The system receives a loss reporting request from a user. The loss reporting request includes the identifier of the first hardware wallet to be reported. After the first hardware wallet is connected to the server of the first operating institution to synchronize the first coin string certificate and the first transaction information, it can perform dual offline transactions within the set maximum offline transaction time. The server of the first operating institution can obtain the first balance of the first hardware wallet based on the first coin string certificate.
[0005] The user's identity information is verified based on the identifier of the first hardware wallet. In response to the successful user identity verification, the loss waiting period is started, and the status of the first hardware wallet is set to the loss status.
[0006] In response to the loss waiting period reaching the set maximum offline transaction time, the balance of the first hardware wallet is restored based on the first balance at the time of the last synchronization and the transaction information of the first hardware wallet including the first hardware wallet after the last synchronization.
[0007] In some embodiments of the present invention, the transaction counterparty of the first hardware wallet includes a second hardware wallet that conducts dual offline transactions with the first hardware wallet, and the method further includes:
[0008] Receive asynchronous reconciliation requests sent by the server of the second operating institution, wherein the asynchronous reconciliation requests include the second currency string certificate and the second transaction information synchronized by the second hardware wallet online. The second currency string certificate and the second transaction information are generated when the second hardware wallet and the first hardware wallet are offline.
[0009] After verifying and successfully synchronizing the second coin string certificate with the second hardware wallet, the second transaction information synchronized with the second hardware wallet is stored. The transaction information after the last synchronization with the first hardware wallet includes the transaction information of the first hardware wallet, and the transaction information in the second transaction information includes the transaction information after the last synchronization with the first hardware wallet.
[0010] In some embodiments of the present invention, the transaction counterparty of the first hardware wallet further includes a transaction terminal that conducts a single offline transaction with the first hardware wallet, and the method further includes:
[0011] The system receives a transaction request sent by the server of the second operating institution. The transaction request includes a third currency string certificate, third transaction information and first hardware wallet identity information sent by the transaction terminal. The transaction terminal and the first hardware wallet generate the third currency string certificate and third transaction information when conducting offline transactions, and obtain the identity information of the first hardware wallet from the first hardware wallet.
[0012] After verifying the identity information of the third-party token and the first hardware wallet and passing the verification, a transaction request is sent to the second operating institution's server so that the second operating institution's server can conduct digital currency transactions based on the account corresponding to the transaction terminal.
[0013] The third transaction information is stored, wherein the transaction information of the first hardware wallet after the last synchronization includes the transaction information of the first hardware wallet, and the transaction information of the third transaction information includes the transaction information after the last synchronization of the first hardware wallet.
[0014] In some embodiments of the present invention, verifying the user identity information of the first hardware wallet based on the identifier of the first hardware wallet includes:
[0015] Obtain the first user identification information sent by the user;
[0016] Obtain the second user identifier information corresponding to the identifier of the first hardware wallet based on the identifier of the first hardware wallet;
[0017] If the first user identifier information and the second user identifier information are consistent, then the user's authentication is successful.
[0018] In response to the determination that the first user identification information and the second user identification information are inconsistent, the user's authentication is set to fail.
[0019] In some embodiments of the present invention, the second or third currency string certificate includes a currency string and a transaction chain. Verifying the second or third currency string certificate includes:
[0020] If the verification token contains the server identifier of the first operating institution and the private key signature in the transaction chain is matched with the public key, then the verification of the second or third token token is successful.
[0021] In some embodiments of the present invention, restoring the balance of the first hardware wallet includes:
[0022] Transfer digital currency corresponding to the user's balance to the user's digital currency account.
[0023] In some embodiments of the present invention, restoring the balance of the first hardware wallet includes:
[0024] In response to a balance receiving request sent by a digital currency application terminal, a coin string corresponding to the balance is sent to the digital currency application terminal, so that the digital currency application terminal transmits the coin string corresponding to the balance to a third hardware wallet that is communicatively connected to the digital currency application terminal. The balance receiving request includes the identifier of the third hardware wallet, and the coin string corresponding to the balance contains the identifier of the third hardware wallet.
[0025] According to another aspect of the present invention, a hardware wallet balance recovery device is also provided, which is disposed on a first operating institution server. The device includes a receiving module, a verification module, and a balance recovery module, wherein...
[0026] The receiving module is configured to receive loss reporting requests reported by users. The loss reporting request includes the identifier of the first hardware wallet. After the first hardware wallet is connected to the first operating institution's server to synchronize the first coin string certificate and the first transaction information, it can perform dual offline transactions within the longest offline transaction time. The first operating institution's server can obtain the first balance of the first hardware wallet based on the first coin string certificate.
[0027] The verification module is configured to verify the user's identity based on the identifier of the first hardware wallet, and in response to the successful user authentication, start the loss waiting period timer and set the state of the first hardware wallet to the loss state.
[0028] The balance recovery module is configured to restore the balance of the first hardware wallet in response to the loss waiting period reaching the set maximum offline transaction time, based on the first balance at the time of the last synchronization of the first hardware wallet and the transaction information of the first hardware wallet after the last synchronization of the first hardware wallet, including the transaction information of the first hardware wallet.
[0029] According to another aspect of the present invention, an electronic device is provided, comprising: one or more processors; and a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the hardware wallet balance recovery method provided in the embodiments of the present invention.
[0030] According to another aspect of the present invention, a computer-readable medium is provided having a computer program stored thereon, which, when executed by a processor, implements the hardware wallet balance recovery method provided in the embodiments of the present invention.
[0031] One embodiment of the above invention has the following advantages or beneficial effects: In this embodiment, after the hardware wallet is synchronized with the operating institution's server, it can conduct dual offline transactions within a set maximum offline time. When the offline time reaches the set maximum offline time, it needs to be synchronized with the operating institution's server again to ensure transaction security and achieve unified maintenance of information in the hardware wallet. If the set maximum offline time is reached but synchronization with the operating institution's server is not achieved, the hardware wallet will be unable to continue trading. In this embodiment, the first operating institution's server of the first hardware wallet receives a hardware wallet loss reporting request sent by the digital currency application terminal. Based on the identifier of the first hardware wallet in the loss reporting request, the identity of the first hardware wallet is verified. After successful verification, a loss reporting waiting timer is started. When the timer reaches the maximum offline transaction time of the hardware wallet, the balance of the first hardware wallet is determined based on the balance information of the first hardware wallet during the last online synchronization and the transaction information of the first hardware wallet after the last synchronization, and the balance is restored. This provides a solution for restoring the value of a hardware wallet after loss, damage, or other reasons that cause value abnormalities, improving the user experience and reducing user losses.
[0032] The further effects of the aforementioned unconventional alternative methods will be explained below in conjunction with specific implementation methods. Attached Figure Description
[0033] The accompanying drawings are provided to better understand the invention and are not intended to unduly limit the scope of the invention. Wherein:
[0034] Figure 1 This is a schematic diagram of the overall architecture of a hardware wallet balance recovery system according to some embodiments of the present invention;
[0035] Figure 2 This is a flowchart illustrating a hardware wallet balance recovery method according to some embodiments of the present invention;
[0036] Figure 3 This is a schematic diagram of the interface interaction in the hardware wallet balance recovery method according to some embodiments of the present invention, in which a loss reporting request is initiated through a digital currency application terminal;
[0037] Figure 4 This is a schematic diagram of the identity verification process in a hardware wallet balance recovery method according to some embodiments of the present invention;
[0038] Figure 5 This is a flowchart illustrating a hardware wallet balance recovery method according to other embodiments of the present invention;
[0039] Figure 6 This is a flowchart illustrating a hardware wallet balance recovery method according to other embodiments of the present invention;
[0040] Figure 7 This is a schematic diagram of the balance receiving process in a hardware wallet balance recovery method according to some embodiments of the present invention;
[0041] Figure 8 This is a schematic diagram of the structure of a hardware wallet balance recovery device according to some embodiments of the present invention;
[0042] Figure 9 This is an exemplary system architecture diagram in which embodiments of the present invention can be applied;
[0043] Figure 10 This is a schematic diagram of the structure of a computer system suitable for implementing terminal devices or servers of the present invention. Detailed Implementation
[0044] The following description, in conjunction with the accompanying drawings, illustrates exemplary embodiments of the present invention, including various details to aid understanding. These details should be considered merely exemplary. Therefore, those skilled in the art will recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the invention. Similarly, for clarity and brevity, descriptions of well-known functions and structures are omitted in the following description.
[0045] It should be noted that the technical solutions disclosed in this invention, regarding the collection, updating, analysis, processing, use, transmission, and storage of user personal information, all comply with relevant laws and regulations, are used for legitimate purposes, and do not violate public order and good morals. Necessary measures are taken to prevent unauthorized access to user personal information data and to safeguard user personal information security, network security, and national security.
[0046] It should be noted that the collection, use, storage, sharing and transfer of user personal information involved in the technical solution of the present invention all comply with the provisions of relevant laws and regulations, and require notification to users and obtaining their consent or authorization. When applicable, user personal information is subjected to de-identification and / or anonymization and / or encryption technical processing.
[0047] This invention provides a method for restoring the balance of a hardware wallet. The hardware wallet can be a value-mode hardware wallet, which refers to a digital wallet that stores digital currency strings on a secure unit or secure chip. In a value-mode hardware wallet, the value of the digital currency is directly stored in the hardware carrier, and the user enjoys ownership of the digital currency by possessing and controlling the corresponding hardware carrier. The value of the digital currency is represented by digital currency strings, and the hardware carrier used for storage is a secure unit or secure chip. When using a value-mode hardware wallet for payment, the payer and payee can directly complete the value / currency string transfer peer-to-peer. During dual offline transactions using a value-mode hardware wallet, network synchronization with the operating institution's server is required when the longest offline time is reached. In this invention embodiment, the offline time refers to the time interval between two consecutive online synchronizations of the hardware wallet. The longest offline time refers to the set longest time interval between two consecutive online synchronizations of the hardware wallet. The hardware wallet in this invention embodiment can also be a hybrid hardware wallet that includes value-mode functionality.
[0048] In some embodiments of the present invention, the hardware wallet can be opened at different operating institutions. When the hardware wallet is connected to the network for synchronization, it is synchronized with the corresponding operating institution's server. Different operating institution servers can achieve asynchronous reconciliation. Specifically, the reconciliation information can be transmitted through an interconnection system.
[0049] like Figure 1 As shown, this embodiment of the invention provides a system 100 for restoring the value of a hardware wallet, including a first digital currency application terminal 110, a first value mode hardware wallet 120, a first operating institution server 130, an interconnection system 140, a second operating institution server 150, a second value mode hardware wallet 160, and a second digital currency application terminal 170.
[0050] In this embodiment of the invention, the first digital currency application terminal 110 is a client application installed on the user's smart terminal, which provides management functions for the value model hardware wallet 120, including prompting the user to perform online synchronization before the longest offline time is reached or after the number of dual offline transactions reaches the limit, and synchronizing the dual offline transaction information and coin string information stored in the value model hardware wallet 120 to the first operating institution server 130.
[0051] In this embodiment of the invention, the first value mode hardware wallet 120 stores digital currency strings and supports dual offline payment and receipt. During dual offline transactions, transaction information is stored in the security chip within the first value mode hardware wallet 120, and the balance within the security chip is updated simultaneously. After receiving an online synchronization notification from the first digital currency application terminal 110, the user needs to bring the first value mode hardware wallet 120 close to the smart device equipped with the first digital currency application terminal 110. The dual offline transaction information and string information are then uploaded to the first operating institution server 130 via short-range communication or contactless communication. Upon receiving a new digital currency string, the first value mode hardware wallet 120 replaces the original string in the security chip and clears the original dual offline transaction information.
[0052] In this embodiment of the invention, the first operating institution server 130 and the second operating institution server 150 store the coin string information of the first value model hardware wallet 130 and the second value model hardware wallet 160, as well as transaction information of all online transactions and dual offline transactions. After receiving the dual offline transaction information uploaded by the second value model hardware wallet 160, the interoperability system 140 realizes the cross-operating institution reconciliation function to ensure the correct balance of the value model hardware wallet, and issues new digital currency coin strings to it through the first digital currency application terminal 110, while providing services for value recovery and balance retrieval of the value model hardware wallet.
[0053] The interconnection system 140 in this embodiment of the invention provides cross-institutional secure transaction services for operating institutions, including real-time transactions and asynchronous reconciliation.
[0054] The operating flow of the system 100 for restoring the value of a hardware wallet in this embodiment of the invention is as follows.
[0055] The first step is for the value model hardware wallet to perform dual offline payment and receipt (i.e., offline value transfer).
[0056] Taking the example of a first-value-mode hardware wallet 120 receiving funds and a second-value-mode hardware wallet 160 making payments, the second-value-mode hardware wallet 160 transmits the coin string and a transaction chain (including the transaction index, transaction time, transaction amount, the first-value-mode hardware wallet's public key, and the second-value-mode hardware wallet's private key signature) to the first-value-mode hardware wallet 120, thus achieving value transfer. During the transaction, the first-value-mode hardware wallet 120 stores the coin string certificate (including the coin string and the transaction chain) and records the transaction information, while the second-value-mode hardware wallet 160 updates the coin string balance and records the transaction information. The transaction information includes the wallet identifier of the receiving first-value-mode hardware wallet, the wallet identifier of the paying second-value-mode hardware wallet, the transaction index, the transaction time, the transaction amount, the transaction result, and the receiving first-value-mode hardware wallet's private key signature.
[0057] The second step involves the first user reporting that the hardware wallet of the first value model is damaged (item 120).
[0058] The first user discovers that the First Value Model hardware wallet 120 is damaged and reports the damage to the First Operating Institution server 130 through offline outlets, customer service hotlines, or the First Digital Currency application terminal 110. The First Operating Institution server 130 registers the first user with their real name, verifies the user's identity and ownership of the First Value Model hardware wallet 120, and updates the status of the First Value Model hardware wallet 120 to "damaged" in the background system, informing the first user that they can recover their balance after a certain period (the waiting period can be based on the longest offline time of the hardware wallet). This step can also occur after the third or fourth step.
[0059] The third step is to synchronize the hardware wallet of the second value model online with 160.
[0060] When the hardware wallet 160 of the second value mode reaches the maximum offline time, the second digital currency application terminal 170 will initiate online synchronization by default; or the second user will actively initiate online synchronization within the maximum offline time; or after the maximum offline time is reached, the receiving terminal will prompt the second user to use the second digital currency application terminal 170 to synchronize online before the transaction.
[0061] Specifically, the second digital currency application terminal 170 obtains all coin tokens, balances, and transaction information from the security hardware and transmits them to the backend system of the second operating institution server 150 for online synchronization. After receiving the synchronization information, the backend system of the second operating institution server 150 verifies all coin tokens and transaction information and returns new coin tokens to the second digital currency application terminal 170. The second digital currency application terminal 170 writes the new coin tokens returned by the backend system of the second operating institution server 150 into the second value model hardware wallet 160.
[0062] The fourth step involves the second operating agency's server 150 performing asynchronous reconciliation.
[0063] The second operating institution's server 150 backend system performs asynchronous reconciliation according to its own rules. The interconnection system 140 transmits the coin string information and transaction information of the two offline transactions to the first operating institution's server 130 backend system. After receiving the reconciliation information, the first operating institution's server 130 backend system verifies the coin string and stores the transaction information.
[0064] Step 5: Wait until the end of the waiting period to restore the balance.
[0065] After the reporting and waiting period, the backend system of the first operating institution's server 130 receives transaction information from all offline transactions of the first value model hardware wallet 120 (reconciliation information from other operating institutions' backend systems). Based on the balance of the first value model hardware wallet 120's last online synchronization and all transaction information (including online transaction information and offline transaction information), the balance can be restored; the first operating institution's server 130 notifies the first user that the balance has been recovered. During the balance recovery process, the digital currency corresponding to the balance can be transferred to the account of the first digital currency application terminal 110, or the coin string corresponding to the balance can be sent to the first digital currency application terminal 110, which will then send the coin string corresponding to the balance to the first user's newly acquired value model hardware wallet.
[0066] In addition to restoring balances based on dual offline transaction information, this invention can also restore balances based on online transactions, such as single offline transaction information. During a single offline process, the transaction terminal sends the identity information and transaction information of the first value mode hardware wallet 120 to the second operating institution server 150 connected to the transaction terminal, and then forwards it to the first operating institution server 130 via the interconnection system 140. Subsequently, the first operating institution server 130 restores the balance of the first value mode hardware wallet 120 based on the received transaction information.
[0067] In this embodiment of the invention, the first operating institution server 130 can restore the balance by using the balance and all transaction information (including online transaction information and dual offline transaction information) from the last online synchronization of the first value mode hardware wallet 120. In some embodiments of the invention, it is stipulated that after each offline transaction's value mode hardware wallet reaches its corresponding maximum offline transaction duration, it needs to connect to the network to synchronize the coin token and transaction information; otherwise, offline use cannot continue. In this embodiment of the invention, the loss reporting waiting period can be set to the longest of the maximum offline transaction durations stipulated by each operating institution to ensure that all relevant offline transaction information is synchronized online when the waiting period expires.
[0068] For example, the first operating institution's server 130 stores the balance of the value model hardware wallet A (identified as wallet12) that was last synchronized online, which was 46.8. The last synchronization time was 11:05:23 on December 1, 2023. A request to report the wallet lost was made at 14:05:00 on December 2, 2023. After verifying identity and reaching the set maximum offline time (5 days), the transaction information retrieved in the first operating institution's server 130 includes first transaction information, second transaction information, and third transaction information. In the first transaction information, the payer's hardware wallet is identified as wallet12, the payee's hardware wallet is identified as wallet10 (identified as value model hardware wallet X), the transaction amount is 3.2, and the transaction time is 14:05:23 on November 30, 2023. The second... In the transaction information, the payer's hardware wallet is identified as wallet12, and the payee's hardware wallet is identified as wallet19 (the identifier of value model hardware wallet Y). The transaction amount is 5, and the transaction time is 2023-12-1-15:04:22. In the third transaction information, the payer's hardware wallet is identified as wallet15 (the identifier of value model hardware wallet Z), and the payee's hardware wallet is identified as wallet12. The transaction amount is 4, and the transaction time is 2023-12-2-09:05:23. Therefore, the first operating institution server 130 determines that the transaction time in the first transaction information is before the last synchronization time, so it is not used to calculate the balance. Based on the second and third transaction information, the balance of value model hardware wallet A is obtained as 46.8 - 5 + 4 = 45.8.
[0069] The system in this embodiment of the invention can generate restored balance information based on transaction information sent synchronously or asynchronously by the counterparty to the operating institution's server and the balance information of the hardware wallet last synchronized, thus ensuring the recovery of wallet value and improving the security of funds used by users.
[0070] like Figure 2 As shown, some embodiments of the present invention provide a hardware wallet balance recovery method, including the following steps:
[0071] S210: Receive a loss reporting request from a user, wherein the loss reporting request includes the identifier of the first hardware wallet to be reported for loss. After synchronizing the first coin string certificate and the first transaction information with the first operating institution's server, the first hardware wallet can perform dual offline transactions within a set maximum offline transaction period. The first operating institution's server can obtain the first balance of the first hardware wallet based on the first coin string certificate. In this embodiment of the invention, the user can report the loss reporting request at a bank counter, at an ATM, or through the user's digital currency application terminal, wherein the user identity information of the digital currency application terminal is consistent with the user identity information of the first hardware wallet.
[0072] In this embodiment of the invention, when a user reports a loss on the first hardware wallet, they can initiate the report through a digital currency application terminal, or by registering at a physical counter or via telephone customer service. For example, Figure 3 As shown, after logging into the digital currency terminal APP, the user selects the bound first hardware wallet W1, selects to request a loss, and the digital currency terminal will organize the loss request according to the identifier of the first hardware wallet W1 and send the loss request to the first operating institution server that operates the first hardware wallet W1.
[0073] In some embodiments of the present invention, when a loss reporting request is initiated through a digital currency terminal APP, the user identity of the first hardware wallet to be reported must be consistent with the user identity information logged into the digital currency terminal. After the first hardware wallet and the digital currency terminal APP establish a near-field communication connection, the digital currency terminal APP sends the identifier of the first hardware wallet and the user's identity information to the server of the first operating institution that runs or issues the first hardware wallet. The first operating institution server binds the identifier of the first hardware wallet and the user's identity information and sends the binding relationship to the backend server of the digital currency terminal APP. In some embodiments of the present invention, the digital currency terminal APP can obtain the user's identity information from information stored locally on the digital currency terminal APP, or it can query the backend server to obtain the user's identity information based on the ID of the login account of the digital currency terminal APP. Each time a user views the hardware wallet under their identity information through the digital currency terminal APP, the backend server returns the identifier information of the first hardware wallet based on the user's identity information, and the user obtains the information of the hardware wallet.
[0074] In some embodiments of the present invention, the identification information of the first hardware wallet may include the identification information of the first operating institution. The digital currency application terminal can obtain the target's first operating institution server through the identification information of the first hardware wallet, and thus communicate with the target's first operating institution server.
[0075] S220: Verify the user's identity based on the identifier of the first hardware wallet, start the loss waiting period timer in response to the successful user authentication, and set the state of the first hardware wallet to the loss state.
[0076] In some embodiments of the present invention, to prevent malicious reporting of losses, verification conditions are set for loss reporting requests; only after successful verification can the hardware wallet loss reporting process be initiated. In some embodiments of the present invention, the user's identity can be verified based on the correspondence between the user's identity information and user identifier information in the first hardware wallet.
[0077] Specifically, such as Figure 4 As shown, verifying the user's identity based on the identifier of the first hardware wallet includes:
[0078] S221: Obtain the first user identification information sent by the user.
[0079] In some embodiments of the present invention, after the digital currency application terminal (APP) sends a loss reporting request, the first operating institution's server sends an identity verification page to the digital currency application terminal (APP), such as... Figure 3 As shown, the user is on the authentication page ( Figure 3 (See right figure) Input the first user identification information, and the digital currency application terminal sends the first user identification information to the server of the first operating institution. In some embodiments of the present invention, the first user identification information includes information such as the user's ID card number or the mobile phone number used to open the wallet account.
[0080] In some embodiments of the present invention, when a user reports a loss at the counter, they can enter first user identification information according to the teller's prompts. The first user identification information is transmitted to the first operating institution's server for verification through the teller machine at the front desk. Alternatively, when a user reports a loss through an ATM, they can enter the first user identification information themselves. The first user identification information is transmitted to the first operating institution's server for verification through the ATM.
[0081] S222: Obtain the second user identifier information corresponding to the identifier of the first hardware wallet based on the identifier of the first hardware wallet.
[0082] S223: In response to the determination that the first user identification information and the second user identification information are consistent, the user's authentication is set to pass.
[0083] S224: In response to the determination that the first user identification information and the second user identification information are inconsistent, the user's authentication is set to fail.
[0084] In embodiments of the present invention, the first operating institution server stores the identification information of the first hardware wallet and the corresponding user identification information. For example, the first operating institution server stores the wallet identification information and user identification information as shown in the table below.
[0085] Table 1. Correspondence between Wallet Identification Information and User Identification Information
[0086]
[0087] For example, the server of the first operating institution receives a first hardware wallet identifier of Wallet0102 and a first user identifier of 1101061990abcd1612. From the correspondence table between wallet identifiers and user identifiers, it obtains a second user identifier of 1101061990abcd1612. Since the first and second user identifiers match, the verification is successful. However, when a user enters 1101061990aber1612 as the first user identifier for the first hardware wallet (identified as Wallet0102), the first and second user identifiers do not match, and the user's authentication fails.
[0088] In some embodiments of the present invention, the first user identification information may further include the user's name and email address, and correspondingly, the second user identification information may also further include the user's name and email address.
[0089] In an embodiment of the present invention, after the user's identity verification is passed, the state of the first hardware wallet is determined to be in a lost state. If there is a subsequent transaction request from the counterparty of the first hardware wallet, the server of the first operating institution verifies that the state of the first hardware wallet is in a lost state, then rejects the transaction, and the transaction fails, thus ensuring the safety of funds after the hardware wallet is lost.
[0090] S230: In response to the loss waiting period reaching the set maximum offline transaction time, restore the balance of the first hardware wallet based on the first balance at the time of the last synchronization and the transaction information of the first hardware wallet including the first hardware wallet after the last synchronization.
[0091] In this embodiment of the invention, each operating institution can set the maximum offline transaction time for its own hardware wallet. In this case, the maximum offline transaction time for the hardware wallet in this embodiment refers to the maximum value among the maximum offline transaction times set by each operating institution. In some embodiments of the invention, the maximum offline time for the hardware wallets of each operating institution can also be set to be consistent. When a hardware wallet is synchronized online, the corresponding operating institution's server will start an offline timer. When the offline timer reaches the maximum offline transaction time, the operating institution's server will notify the user, for example, by popping up a message on the digital currency application terminal to notify the user to synchronize online. Before online synchronization, the user will not be able to use the hardware wallet to conduct transactions. Through timely online synchronization, it is ensured that clearing and settlement can be carried out in a timely manner among the various operating institutions.
[0092] In some embodiments of the present invention, the transaction counterparty of the first hardware wallet includes a second hardware wallet that conducts dual offline transactions with the first hardware wallet.
[0093] like Figure 5 As shown, the balance recovery method in this embodiment of the invention further includes:
[0094] S240: Receive an asynchronous reconciliation request sent by the server of the second operating institution, wherein the asynchronous reconciliation request includes the second coin string certificate and the second transaction information synchronized by the second hardware wallet online. The second coin string certificate and the second transaction information are generated when the second hardware wallet and the first hardware wallet are offline.
[0095] In some embodiments of the present invention, after the second operating institution server verifies the second currency string certificate and the second transaction information synchronized by the second hardware wallet, it generates the above-mentioned asynchronous reconciliation request, thereby ensuring the security of the transaction.
[0096] In this embodiment of the invention, the first hardware wallet and the second hardware wallet perform dual offline transactions, that is, the first hardware wallet and the second hardware wallet can complete the transaction without being connected to the operator's server. During the transaction, the first hardware wallet and the second hardware wallet verify each other's identities and then conduct the coin string transaction. The first hardware wallet generates a second coin string certificate and records the transaction information, and sends the second coin string certificate to the second hardware wallet. The second hardware wallet updates the coin string balance according to the received second coin string certificate and records the generation of the second transaction information.
[0097] In some embodiments of the present invention, when the second hardware wallet and the first hardware wallet are both offline for transactions, the first hardware wallet generates a second coin string certificate and second transaction information, and sends the second coin string certificate to the second hardware wallet. When the second hardware wallet reaches the set maximum offline time or the user of the second hardware wallet actively sends a network synchronization request to the second operating institution server through the digital currency application terminal, the second hardware wallet organizes and returns all coin string certificates and transaction information to the second operating institution server through the digital currency application terminal. After verifying the second coin string certificate and the second transaction information, the second operating institution server determines the balance of the second hardware wallet, generates a corresponding new coin string, returns the new coin string to the second hardware wallet through the digital currency application terminal, and sends the second coin string certificate and the second transaction information to the first operating institution server for asynchronous reconciliation.
[0098] In this embodiment of the invention, the second hardware wallet and the digital currency application terminal are connected via near-field communication.
[0099] In some embodiments of the present invention, the second transaction information includes data such as the identifier of the payee's hardware wallet, the identifier of the payer's hardware wallet, the transaction index, the transaction time, the transaction amount, the transaction result, and the private key signature of the payee's hardware wallet. In a transaction scenario where the first hardware wallet makes a payment to the second hardware wallet, the payer's hardware wallet is the first hardware wallet, and the payee's hardware wallet is the second hardware wallet. In some embodiments of the present invention, the second operating institution server obtains the public key of the second hardware wallet based on the identifier of the second hardware wallet, and verifies the signature of the private key of the payee's hardware wallet in the second transaction information using the public key of the second hardware wallet. If the verification is successful, the second transaction information is verified successfully.
[0100] In some embodiments of the present invention, the second token certificate includes a second token and a second transaction chain. The second transaction chain includes multiple transaction sub-chains arranged in transaction order. The latest transaction sub-chain is generated by transactions between the first hardware wallet and the second hardware wallet. The latest transaction sub-chain includes information such as transaction index, transaction time, transaction amount, public key of the first hardware wallet, and private key signature of the second hardware wallet. The previous transaction sub-chain above the latest transaction sub-chain includes the private key signature information of the first hardware wallet and other transaction information. When the second operating institution server verifies the second token certificate, it performs iterative verification. Starting from the latest transaction sub-chain, it uses the public key of the second hardware wallet to verify the private key signature of the second hardware wallet in the latest transaction sub-chain. After successful verification, it uses the public key of the first hardware wallet in the latest transaction sub-chain to verify the private key signature information of the first hardware wallet in the previous transaction sub-chain above the latest transaction sub-chain. This iterative verification continues until the signature information in the initial transaction sub-chain is verified, at which point the second token certificate is verified successfully.
[0101] S250: After verifying and successfully verifying the second coin string certificate synchronized by the second hardware wallet, store the second transaction information synchronized by the second hardware wallet. The transaction information after the last synchronization of the first hardware wallet includes the transaction information of the first hardware wallet, and includes the transaction information in the second transaction information after the last synchronization of the first hardware wallet.
[0102] In embodiments of the present invention, the verification process of the second token credential by the first operating institution server is consistent with the verification process of the second operating institution server. After successful verification, the second transaction information is stored, and then transaction information with a transaction time point after the last synchronization time of the first hardware wallet is found from the second transaction information as the basis for balance recovery.
[0103] In this embodiment of the invention, the balance is restored through asynchronous reconciliation information. Even if the first hardware wallet is lost, the balance of the first hardware wallet can be determined through the transaction information asynchronously synchronized by the counterparty.
[0104] In some embodiments of the present invention, balance recovery can be performed based on transaction information from a synchronized reconciliation of two offline transactions, or it can be performed using transaction information recorded in the background of a single offline transaction. Specifically, the counterparty of the first hardware wallet also includes a transaction terminal that conducts a single offline transaction with the first hardware wallet.
[0105] like Figure 6 As shown, the balance recovery method in this embodiment of the invention further includes:
[0106] S260: Receive a transaction request sent by the server of the second operating institution, wherein the transaction request includes a third currency string certificate, third transaction information and first hardware wallet identity information sent by the transaction terminal. The transaction terminal and the first hardware wallet generate the third currency string certificate and third transaction information when conducting offline transactions, and obtain the identity information of the first hardware wallet from the first hardware wallet.
[0107] In an embodiment of the present invention, after the transaction terminal establishes a near-field communication connection with the first hardware wallet, it obtains the third currency string certificate and the identity information of the first hardware wallet sent by the first hardware wallet. Based on the transaction details, it generates third transaction information and sends the third currency string certificate, the third transaction information, and the identity information of the first hardware wallet to the second operating institution's server. In this embodiment of the present invention, after the first hardware wallet sends the third currency string certificate, the first hardware wallet deducts its balance.
[0108] In this embodiment of the invention, the third transaction information includes the identifier of the payee's hardware wallet, the identifier of the payer's hardware wallet, the transaction index, the transaction time, the transaction amount, the transaction result, and the private key signature of the payee's hardware wallet; the first hardware wallet identity information includes the public key information and the corresponding private key signature information of the first hardware wallet.
[0109] S270: After verifying the identity information of the third-party token and the first hardware wallet and passing the verification, a transaction request is sent to the second operating institution server so that the second operating institution server can conduct digital currency transactions according to the account corresponding to the transaction terminal.
[0110] In this embodiment of the invention, the process by which the first operating institution server verifies the third currency string certificate is similar to the process by which it verifies the second currency string certificate, and will not be described in detail here. The first operating institution server verifies the private key signature information using the public key information of the first hardware wallet. If the verification is successful, the identity information of the first hardware wallet is verified successfully.
[0111] In this embodiment of the invention, the transaction between the first hardware wallet and the transaction terminal is conducted in the background. After the first operating institution server verifies the third-party token and the identity information of the first hardware wallet, it initiates a transaction request to the second operating institution server. The transaction request includes the transaction amount and the transaction terminal identifier. The second operating institution server obtains the digital currency account corresponding to the transaction terminal based on the transaction terminal identifier in the transaction request and transfers the digital currency corresponding to the transaction amount to the digital currency account corresponding to the transaction terminal.
[0112] S280: Store third transaction information, wherein the transaction information of the first hardware wallet after the last synchronization includes the transaction information of the first hardware wallet, including the transaction information in the third transaction information after the last synchronization of the first hardware wallet.
[0113] In an embodiment of the present invention, after the second operating institution server completes the transaction, it sends a transaction response to the first operating institution server. After receiving the transaction completion information, the first operating institution server stores the third transaction information. Subsequently, according to the loss reporting request, it retrieves the transaction information after the last synchronization time of the first hardware wallet from the third transaction information as the basis for balance recovery.
[0114] In this embodiment of the invention, the first operating institution's server can restore the balance using the most recent online synchronization of the first hardware wallet's balance and all transaction information (including online transaction information and dual offline transaction information). In some embodiments of the invention, it is stipulated that after each offline transaction hardware wallet reaches its corresponding maximum offline transaction duration, it needs to connect to the internet to synchronize the coin token and transaction information; otherwise, offline use cannot continue. In this embodiment of the invention, the loss reporting waiting period can be set to the longest of the maximum offline transaction durations stipulated by each operating institution to ensure that all relevant offline transaction information is synchronized online upon the expiration of the waiting period.
[0115] For example, the first operating institution's server stores the balance of hardware wallet A (identified as wallet12) which was last synchronized online at 11:05:23 on December 1, 2023. A request to report the wallet lost was made at 14:05:00 on December 2, 2023. After identity verification and reaching the set maximum offline time (5 days), the transaction information retrieved on the first operating institution's server includes transaction information S1, transaction information S2, and transaction information S3. In transaction information S1, the payer's hardware wallet is identified as wallet12, the recipient's hardware wallet is identified as wallet10 (identified as hardware wallet X), the transaction amount is 3.2, and the transaction time is 14:05:23 on November 30, 2023. In transaction information S2, the payer's hardware wallet is identified as wallet12, and the payee's hardware wallet is identified as wallet19 (the identifier of hardware wallet Y). The transaction amount is 5, and the transaction time is 2023-12-1-15:04:22. In transaction information S3, the payer's hardware wallet is identified as wallet15 (the identifier of hardware wallet Z), and the payee's hardware wallet is identified as wallet12. The transaction amount is 4, and the transaction time is 2023-12-2-09:05:23. Therefore, the first operating institution's server determines that the transaction time in transaction information S1 is before the last synchronization time, so it is not used to calculate the balance. Based on transaction information S2 and transaction information S3, the balance of hardware wallet A is obtained as 46.8 - 5 + 4 = 45.8.
[0116] In some embodiments of the present invention, the second or third coin string certificate includes a coin string and a transaction chain. Verifying the second or third coin string certificate includes: verifying that the coin string contains the identifier of a first operating institution server, and that the private key signature in the transaction chain is paired with the public key; if so, the second or third coin string certificate is verified successfully. In these embodiments of the present invention, not only is the transaction chain verified, but the identifier of the operating institution server in the coin string is also verified, thus verifying the legitimacy of the coin string from its initial use.
[0117] In some embodiments of the present invention, restoring the balance of the first hardware wallet includes transferring digital currency corresponding to the balance to the user's digital currency account. In these embodiments, when a user requests a loss report and specifies that the method for receiving the balance is the user's digital currency account, the first operating institution's server generates digital currency based on the restored balance and transfers it to the user's digital currency account.
[0118] In some embodiments of the present invention, the digital currency corresponding to the balance can also be received and restored through a digital currency terminal. For example, digital currency corresponding to the balance can be transferred into the account corresponding to the digital currency application terminal.
[0119] In some embodiments of the present invention, the user may be notified after the balance is restored, and the user may choose to receive the balance using a new hardware wallet.
[0120] like Figure 7 As shown, restoring the balance of the first hardware wallet includes:
[0121] S231: Notify the user who submitted the damage report request.
[0122] In this embodiment of the invention, when a user requests a loss report, they can fill in the information receiving method, such as receiving notifications via SMS or through a digital currency application terminal.
[0123] S232: In response to a balance receiving request sent by the digital currency application terminal, a coin string corresponding to the balance is sent to the digital currency application terminal, so that the digital currency application terminal transmits the coin string corresponding to the balance to a third hardware wallet communicatively connected to the digital currency application terminal. The balance receiving request includes the identifier of the third hardware wallet, and the coin string corresponding to the balance contains the identifier of the third hardware wallet. In some embodiments of the present invention, after receiving information about balance restoration, the user can actively log in to the digital currency application terminal to initiate a balance receiving request. The user can also receive a restoration notification through the digital currency application terminal. After opening the digital currency application terminal, clicking a link generates a page for initiating a balance receiving request, and the user clicks the corresponding button to send the balance receiving request from the digital currency application terminal.
[0124] In this embodiment of the invention, the user sends a balance receipt request through a digital currency application terminal. The user places a third hardware wallet close to the digital currency application terminal. After the third hardware wallet and the digital currency application terminal establish a near-field communication connection, the digital currency application terminal sends a balance receipt request to the first operating institution server. The balance receipt request includes information such as the identifier and public key of the third hardware wallet. The first operating institution server generates a new coin string based on the identifier of the third hardware wallet and the recovered balance. It can also encrypt the coin string using the public key of the third hardware wallet and send the coin string or the encrypted coin string to the digital currency application terminal. The digital currency application terminal sends the new coin string or the encrypted coin string to the third hardware wallet. The third hardware wallet stores the new coin string or the encrypted coin string and returns a receipt response to the digital currency application terminal. The digital currency application terminal returns the receipt response to the first operating institution server, and the entire loss request processing is completed. In subsequent payments, the third hardware wallet can use the recovered coin string for payment.
[0125] In this embodiment of the invention, after the hardware wallet is synchronized with the operating institution's server, it can conduct dual offline transactions within a set maximum offline time. When the offline time reaches the set maximum offline time, it needs to reconnect with the operating institution's server to ensure transaction security and achieve unified maintenance of information in the hardware wallet. If the set maximum offline time is reached but synchronization with the operating institution's server is not achieved, the hardware wallet will be unable to continue trading. In this embodiment of the invention, the first operating institution's server of the first hardware wallet receives a hardware wallet loss reporting request sent by the digital currency application terminal. Based on the identifier of the first hardware wallet in the loss reporting request, it verifies the identity of the first hardware wallet. After successful verification, it starts a loss reporting waiting timer. When the timer reaches the maximum offline transaction time of the hardware wallet, it determines the balance of the first hardware wallet based on the balance information of the first hardware wallet during the last network synchronization and the transaction information of the first hardware wallet after the last synchronization, and restores the balance. This provides a solution for restoring the value of a hardware wallet after loss, damage, or other reasons that cause value abnormalities, improving the user experience and reducing user losses.
[0126] Embodiments of the present invention, such as Figure 8 As shown, a hardware wallet balance recovery device 300 is also provided, which is installed on the server of the first operating institution. The device 300 includes a receiving module 310, a verification module 320 and a balance recovery module 330. The modules are described below.
[0127] The receiving module 310 is configured to receive a loss reporting request reported by the user. The loss reporting request includes the identifier of the first hardware wallet. After the first hardware wallet is connected to the first operating institution's server to synchronize the first coin string certificate and the first transaction information, it can perform dual offline transactions within the longest offline transaction time. The first operating institution's server can obtain the first balance of the first hardware wallet based on the first coin string certificate.
[0128] The verification module 320 is configured to verify the user's identity based on the identifier of the first hardware wallet, and in response to the successful user authentication, start the loss waiting period timer and set the state of the first hardware wallet to the loss state.
[0129] The balance recovery module 330 is configured to restore the balance of the first hardware wallet in response to the loss waiting period reaching the set maximum offline transaction time, based on the balance of the first hardware wallet at the time of the last synchronization and the transaction information of the first hardware wallet after the last synchronization.
[0130] In some embodiments of the present invention, the counterparty of the first hardware wallet includes a second hardware wallet that conducts dual offline transactions with the first hardware wallet. The device 300 also includes an asynchronous reconciliation request processing module 340. The asynchronous reconciliation request processing module 340 is configured to receive an asynchronous reconciliation request sent by a second operating institution server. The asynchronous reconciliation request includes a second coin string certificate and second transaction information synchronized by the second hardware wallet. The second coin string certificate and second transaction information are generated when the second hardware wallet and the first hardware wallet conduct dual offline transactions. After verifying and successfully verifying the second coin string certificate synchronized by the second hardware wallet, the second transaction information synchronized by the second hardware wallet is stored. The transaction information after the last synchronization of the first hardware wallet includes the transaction information of the first hardware wallet, including the transaction information in the second transaction information after the last synchronization of the first hardware wallet.
[0131] In some embodiments of the present invention, the counterparty of the first hardware wallet also includes a transaction terminal that conducts a single offline transaction with the first hardware wallet. The device further includes a transaction request processing module 350, which is configured to receive a transaction request sent by a second operating institution server. The transaction request includes a third currency string certificate, third transaction information, and the identity information of the first hardware wallet sent by the transaction terminal. When the transaction terminal and the first hardware wallet conduct a single offline transaction, the third currency string certificate and the third transaction information are generated, and the identity information of the first hardware wallet is obtained from the first hardware wallet. After verifying the third currency string certificate and the identity information of the first hardware wallet and passing the verification, the transaction request is sent to the second operating institution server so that the second operating institution server can conduct digital currency transactions according to the account corresponding to the transaction terminal. The third transaction information is stored, wherein the transaction information after the last synchronization of the first hardware wallet includes the transaction information of the first hardware wallet, including the transaction information in the third transaction information after the last synchronization of the first hardware wallet.
[0132] In some embodiments of the present invention, the verification module 320 is configured to: obtain first user identification information sent by the user; obtain second user identification information corresponding to the identifier of the first hardware wallet according to the identifier of the first hardware wallet; in response to the determination that the first user identification information and the second user identification information are consistent, set the user's identity verification as successful; in response to the determination that the first user identification information and the second user identification information are inconsistent, set the user's identity verification as unsuccessful.
[0133] In some embodiments of the present invention, the second or third currency string certificate in the asynchronous reconciliation request processing module 340 or the transaction request processing module 350 includes a currency string and a transaction chain. The process of verifying the second or third currency string certificate is as follows: after verifying that the currency string has the identifier of the first operating institution server and that the private key signature in the transaction chain is matched with the public key, the second or third currency string certificate is verified.
[0134] In some embodiments of the present invention, the balance recovery module 330 is configured to transfer digital currency corresponding to the balance into the user's digital currency account.
[0135] In other embodiments of the present invention, the balance recovery module 330 is configured to: in response to a balance receiving request sent by a digital currency application terminal, send a coin string corresponding to the balance to the digital currency application terminal, so that the digital currency application terminal transmits the coin string corresponding to the balance to a third hardware wallet communicatively connected to the digital currency application terminal, wherein the balance receiving request includes the identifier of the third hardware wallet, and the coin string corresponding to the balance contains the identifier of the third hardware wallet.
[0136] In this embodiment of the invention, the server of the first operating institution of the first hardware wallet receives a hardware wallet loss reporting request sent by a digital currency application terminal. Based on the identifier of the first hardware wallet in the loss reporting request, the server verifies the identity of the first hardware wallet. Upon successful verification, a loss reporting waiting timer is initiated. When the timer reaches the maximum offline transaction duration of the hardware wallet, the balance of the first hardware wallet is determined based on the balance information from the last online synchronization and the transaction information of the first hardware wallet since the last synchronization, and the balance is restored. This provides a device for restoring the value of a hardware wallet after loss, damage, or other reasons that cause value anomalies, improving the user experience and reducing user losses.
[0137] In some embodiments of the present invention, the balance recovery device may combine the features of the balance recovery method and system in any embodiment, and vice versa, which will not be elaborated here.
[0138] Figure 9 An exemplary system architecture 900 is shown that can be applied to the hardware wallet balance recovery method or hardware wallet balance recovery implementation device of the present invention.
[0139] like Figure 9 As shown, system architecture 900 may include terminal devices 901, 902, and 903, network 904, and server 905. Network 904 is used as a medium to provide a communication link between terminal devices 901, 902, and 903 and server 905. Network 904 may include various connection types, such as wired or wireless communication links or fiber optic cables, etc.
[0140] Users can use terminal devices 901, 902, and 903 to interact with server 905 via network 904 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 901, 902, and 903, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social media platform software, etc. (for example only).
[0141] Terminal devices 901, 902, and 903 can be various electronic devices with displays that support web browsing, including but not limited to smartphones, tablets, laptops, and desktop computers.
[0142] Server 905 can be a server providing various services, such as a backend management server supporting shopping websites browsed by users using terminal devices 901, 902, and 903 (for example only). The backend management server can analyze and process data such as received product information query requests, and feed back the processing results (such as target push information, product information - for example only) to the terminal devices.
[0143] It should be noted that the hardware wallet balance recovery method provided in this embodiment of the invention is generally executed by server 905, and correspondingly, the hardware wallet balance recovery implementation device is generally set in server 905.
[0144] It should be understood that Figure 9 The number of terminal devices, networks, and servers shown is merely illustrative. Depending on implementation needs, any number of terminal devices, networks, and servers can be included.
[0145] The following is for reference. Figure 10 It shows a schematic diagram of the structure of a computer system 1000 suitable for implementing terminal devices or servers of the present invention. The methods or apparatus for implementing the methods in the embodiments of the present invention can be implemented on the computer system 1000. Figure 10 The terminal device or server shown is merely an example and should not impose any limitation on the functionality and scope of use of the embodiments of the present invention.
[0146] like Figure 10 As shown, the computer system 1000 includes a central processing unit (CPU) 1001, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1002 or a program loaded from a storage section 1008 into a random access memory (RAM) 1003. The RAM 1003 also stores various programs and data required for the operation of the system 1000. The CPU 1001, ROM 1002, and RAM 1003 are interconnected via a bus 1004. An input / output (I / O) interface 1005 is also connected to the bus 1004.
[0147] The following components are connected to I / O interface 1005: an input section 1006 including a keyboard, mouse, etc.; an output section 1007 including a cathode ray tube (CRT), liquid crystal display (LCD), etc., and speakers, etc.; a storage section 1008 including a hard disk, etc.; and a communication section 1009 including a network interface card such as a LAN card, modem, etc. The communication section 1009 performs communication processing via a network such as the Internet. A drive 1010 is also connected to I / O interface 1005 as needed. A removable medium 1011, such as a disk, optical disk, magneto-optical disk, semiconductor memory, etc., is installed on drive 1010 as needed so that computer programs read from it can be installed into storage section 1008 as needed.
[0148] In particular, according to the embodiments disclosed in this invention, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments disclosed in this invention include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via communication section 1009, and / or installed from removable medium 1011. When the computer program is executed by central processing unit (CPU) 1001, it performs the functions defined in the system of this invention.
[0149] It should be noted that the computer-readable medium shown in this invention can be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this invention, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In this invention, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. Computer-readable signal media can also be any computer-readable medium other than computer-readable storage media, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to: wireless, wire, optical fiber, RF, etc., or any suitable combination thereof.
[0150] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present invention. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram or flowchart, and combinations of blocks in a block diagram or flowchart, may be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0151] The units or modules described in the embodiments of the present invention can be implemented in software or hardware. The described units or modules can also be housed in a processor; for example, a processor can be described as including a sending unit (or "module"), an acquisition unit, a determining unit, and a first processing unit. The names of these units or modules do not necessarily limit the specific unit or module itself; for example, a sending unit can also be described as "a unit that sends an image acquisition request to a connected server."
[0152] In another aspect, the present invention also provides a computer-readable medium, which may be included in the device described in the above embodiments; or it may exist independently without being assembled into the device. The computer-readable medium carries one or more programs that, when executed by the device, cause the device to control the receipt of a loss reporting request from a user. The loss reporting request includes the identifier of a first hardware wallet to be reported for loss. After synchronizing a first coin string certificate and first transaction information with a first operating institution server, the first hardware wallet can perform dual offline transactions within a set maximum offline transaction period. The first operating institution server can obtain the first balance of the first hardware wallet based on the first coin string certificate; verify the user's identity based on the identifier of the first hardware wallet; and, in response to successful user authentication, start the loss reporting waiting period timer and set the first hardware wallet's state to a loss state. In response to the loss reporting waiting period reaching the set maximum offline transaction time, the balance of the first hardware wallet is restored based on the balance at the time of the last synchronization and the transaction information of the first hardware wallet after the last synchronization.
[0153] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can occur depending on design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.
Claims
1. A method for restoring the balance of a hardware wallet, characterized in that, Applied to the server of the first operating organization, the method includes the following steps: The system receives a loss reporting request from a user. The loss reporting request includes the identifier of the first hardware wallet to be reported. After synchronizing the first coin string certificate and first transaction information with the first operating institution's server, the first hardware wallet can perform dual offline transactions within a set maximum offline transaction period. The first operating institution's server can obtain the first balance of the first hardware wallet based on the first coin string certificate. The first coin string certificate includes a coin string and a transaction chain. The transaction chain includes a transaction sub-chain added when the second hardware wallet makes a payment to the first hardware wallet. The transaction sub-chain includes a transaction index, transaction time, transaction amount, the first hardware wallet's public key, and the second hardware wallet's private key signature. The user's identity is verified based on the identifier of the first hardware wallet. In response to the successful user authentication, the loss waiting period is started, and the state of the first hardware wallet is set to the loss state. In response to the loss waiting period reaching the set maximum offline transaction time, the balance of the first hardware wallet is restored based on the first balance at the time of the last synchronization and the transaction information of the first hardware wallet including the first hardware wallet after the last synchronization.
2. The method according to claim 1, characterized in that, The transaction counterparty of the first hardware wallet includes a second hardware wallet that conducts dual offline transactions with the first hardware wallet, and the method further includes: Receive an asynchronous reconciliation request sent by the server of the second operating institution, wherein the asynchronous reconciliation request includes a second currency string certificate and a second transaction information synchronized by the second hardware wallet online, and the second currency string certificate and the second transaction information are generated when the second hardware wallet and the first hardware wallet are offline; After verifying and successfully verifying the second coin string certificate synchronized by the second hardware wallet, the second transaction information synchronized by the second hardware wallet is stored. The transaction information after the last synchronization of the first hardware wallet includes the transaction information of the first hardware wallet, including the transaction information in the second transaction information after the last synchronization of the first hardware wallet.
3. The method according to claim 2, characterized in that, The counterparty to the transaction of the first hardware wallet also includes a transaction terminal that conducts a single offline transaction with the first hardware wallet, and the method further includes: The system receives a transaction request sent by the server of the second operating institution. The transaction request includes a third currency string certificate, third transaction information and first hardware wallet identity information sent by the transaction terminal. The transaction terminal and the first hardware wallet generate the third currency string certificate and the third transaction information when they conduct an offline transaction, and obtain the identity information of the first hardware wallet from the first hardware wallet. After verifying the identity information of the third currency string certificate and the first hardware wallet, a transaction request is sent to the second operating institution server so that the second operating institution server can conduct digital currency transactions based on the account corresponding to the transaction terminal. The third transaction information is stored, wherein the transaction information of the first hardware wallet after the last synchronization includes the transaction information of the first hardware wallet, and the transaction information in the third transaction information includes the transaction information after the last synchronization of the first hardware wallet.
4. The method according to claim 1, characterized in that, The step of verifying the user's identity based on the identifier of the first hardware wallet includes: Obtain the first user identification information sent by the user; Obtain the second user identifier information corresponding to the identifier of the first hardware wallet based on the identifier of the first hardware wallet; If the first user identifier information and the second user identifier information are consistent, then the user's authentication is set to pass. In response to the determination that the first user identification information and the second user identification information are inconsistent, the user's authentication is set to fail.
5. The method according to claim 3, characterized in that, The second or third coin string certificate includes a coin string and a transaction chain. Verifying the second or third coin string certificate includes: If the coin string contains the identifier of the first operating institution's server and the private key signature in the transaction chain is paired with the public key, then the verification of the second or third coin string certificate is successful.
6. The method according to claim 1, characterized in that, The process of restoring the balance of the first hardware wallet includes: Transfer digital currency corresponding to the balance to the user's digital currency account.
7. The method according to claim 1, characterized in that, The process of restoring the balance of the first hardware wallet includes: In response to a balance receiving request sent by a digital currency application terminal, a coin string corresponding to the balance is sent to the digital currency application terminal, so that the digital currency application terminal transmits the coin string corresponding to the balance to a third hardware wallet communicatively connected to the digital currency application terminal, wherein the balance receiving request includes the identifier of the third hardware wallet, and the coin string corresponding to the balance contains the identifier of the third hardware wallet.
8. A hardware wallet balance recovery device, characterized in that, The device, located on the server of the first operating institution, includes a receiving module, a verification module, and a balance recovery module. The receiving module is configured to receive loss reporting requests from users. The loss reporting request includes the identifier of a first hardware wallet. After synchronizing a first coin string certificate and first transaction information with the first operating institution's server, the first hardware wallet can perform dual offline transactions within a set maximum offline transaction period. The first operating institution's server can obtain the first balance of the first hardware wallet based on the first coin string certificate. The first coin string certificate includes a coin string and a transaction chain. The transaction chain includes a transaction sub-chain added when the second hardware wallet makes a payment to the first hardware wallet. The transaction sub-chain includes a transaction index, transaction time, transaction amount, the first hardware wallet's public key, and the second hardware wallet's private key signature. The verification module is configured to verify the user's identity based on the identifier of the first hardware wallet, start the loss reporting waiting period timer in response to the user's identity verification being successful, and set the state of the first hardware wallet to a loss state. The balance recovery module is configured to restore the balance of the first hardware wallet in response to the loss waiting period reaching the set maximum offline transaction time, based on the first balance at the time of the last synchronization of the first hardware wallet and the transaction information of the first hardware wallet after the last synchronization of the first hardware wallet.
9. An electronic device, characterized in that, include: One or more processors; Storage device for storing one or more programs. When the one or more programs are executed by the one or more processors, the one or more processors implement the method as described in any one of claims 1-7.
10. A computer-readable medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, it implements the method as described in any one of claims 1-7.
Citation Information
Patent Citations
Digital currency wallet and digital currency double offline payment method
CN111340469A
Digital currency wallet management method, device and system
CN114202332A
