A method, terminal and system for updating a digital currency wallet
By collaborating with a trusted platform through a digital currency wallet terminal, withdrawals and data synchronization are performed before updates, resolving the issue of account data loss during the update process and improving user experience and security.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-27
- Publication Date
- 2026-03-31
AI Technical Summary
During the update process of digital currency wallets, existing technology makes it impossible to query account historical transaction records, which reduces the user experience.
Terminals that set up digital currency wallets can query update requests through a trusted platform, withdraw digital currency and synchronize offline transaction data, and perform updates according to the target update instructions to ensure the integrity of account data.
This feature allows users to still view historical transaction records after an update, improving user experience, preventing cryptocurrency losses, and enhancing account security and usability.
Smart Images

Figure CN116029720B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of computer technology, and in particular to a method, terminal, and system for updating a digital currency wallet. Background Technology
[0002] As the needs of digital currency wallet services change or wallet functions are upgraded, it is necessary to update and upgrade the digital currency wallet application.
[0003] Currently, when updating and upgrading a digital currency wallet, the process involves canceling the existing digital currency wallet and then applying to open a new one.
[0004] In the process of realizing this invention, the inventors discovered at least the following problems in the prior art:
[0005] When canceling an existing cryptocurrency wallet, the corresponding account will also be closed. As a result, when a new cryptocurrency wallet is opened, the account's historical transaction records and other data will not be available, thus reducing the user experience. Summary of the Invention
[0006] In view of this, embodiments of the present invention provide a method, terminal, and system for updating a digital currency wallet. A terminal equipped with a digital currency wallet can query a trusted platform to determine if the wallet needs updating. If an update is required, the digital currency wallet is updated according to the account data in the target update instruction sent by the trusted platform. This ensures that the account data corresponding to the updated digital currency wallet remains unchanged, and historical transaction records and other data can still be queried, thereby improving user experience. Furthermore, when an update is required, the terminal equipped with the digital currency wallet first withdraws the digital currency from the wallet and synchronizes the offline transaction data. This avoids loss of digital currency during the update process and ensures that the account data in the target update instruction is complete data including offline transaction data, thereby improving account security and usability.
[0007] To achieve the above objectives, according to one aspect of the present invention, a method for updating a digital currency wallet is provided.
[0008] An embodiment of the present invention provides a method for updating a digital currency wallet. When applied to a terminal equipped with a digital currency wallet, the method includes: sending a query request to a trusted platform regarding whether the digital currency wallet needs to be updated, triggered by a user.
[0009] Receive the query results returned by the trusted platform based on the query request;
[0010] If the query result indicates that the digital currency wallet needs to be updated, the digital currency in the digital currency wallet is withdrawn, the offline transaction data of the digital currency wallet is synchronized, and an update request is sent to the trusted platform.
[0011] Receive the target update instruction sent by the trusted platform according to the update request, wherein the target update instruction indicates the account data corresponding to the digital currency wallet;
[0012] The digital currency wallet is updated according to the account data indicated by the target update instruction.
[0013] Optionally, after sending the update request to the trusted platform and before receiving the target update instruction sent by the trusted platform according to the update request, the method further includes:
[0014] Receive an update initialization command sent by the trusted platform, the update initialization command indicating the status of the digital currency wallet;
[0015] Based on the update initialization instruction, determine whether there is a digital currency balance in the digital currency wallet;
[0016] If not, based on the state indicated by the update initialization instruction, set the current state of the digital currency wallet and return a first status code to the trusted platform, so that the trusted platform can send the target update instruction based on the first status code.
[0017] Optionally, the state indicated by the update initialization instruction is an updating state; after setting the current state of the digital currency wallet to the state indicated by the update initialization instruction, the method further includes:
[0018] Offline transaction operations of the digital currency wallet are restricted.
[0019] Optionally, if a digital currency balance exists in the digital currency wallet, the following additional features are also included:
[0020] The system returns a second status code to the trusted platform, causing the trusted platform to terminate its response to the update request based on the second status code.
[0021] Optionally, after updating the digital currency wallet according to the account data indicated by the target update instruction, the method further includes:
[0022] Set the current state of the digital currency wallet to an available state.
[0023] Optionally, the target update instruction includes a deletion instruction and an installation instruction; updating the digital currency wallet according to the account data indicated by the target update instruction includes:
[0024] According to the deletion instruction, the digital currency wallet is deleted, and according to the installation package indicated by the installation instruction, a new digital currency wallet corresponding to the installation package is downloaded and installed;
[0025] The new digital currency wallet is opened based on the account data.
[0026] Optionally, after downloading and installing the new digital currency wallet corresponding to the installation package, the method further includes:
[0027] The system sends certificate application data to the trusted platform, enabling the trusted platform to obtain the account data from the management platform corresponding to the digital currency wallet based on the certificate application data, and generate the target update instruction based on the account data.
[0028] To achieve the above objectives, according to another aspect of the present invention, a terminal for updating a digital currency wallet is provided.
[0029] A terminal for updating a digital currency wallet according to an embodiment of the present invention includes: a query interaction module, a processing module, and an update module; wherein,
[0030] The query interaction module is used to send a query request to a trusted platform regarding whether the digital currency wallet needs to be updated, triggered by the user, and to receive the query results returned by the trusted platform based on the query request.
[0031] The processing module is used to withdraw digital currency from the digital currency wallet when the query result indicates that the digital currency wallet needs to be updated, synchronize the offline transaction data of the digital currency wallet, and send an update request to the trusted platform.
[0032] The update module is configured to receive a target update instruction sent by the trusted platform according to the update request, wherein the target update instruction indicates account data corresponding to the digital currency wallet; and update the digital currency wallet according to the account data indicated by the target update instruction.
[0033] To achieve the above objectives, according to another aspect of the present invention, a digital currency wallet update system is provided.
[0034] An embodiment of the present invention provides a digital currency wallet update system comprising: a trusted platform, a management platform corresponding to the digital currency wallet, and a terminal for updating the digital currency wallet provided in the second aspect above; wherein,
[0035] The trusted platform is used to determine whether the digital currency wallet needs to be updated based on the query request sent by the terminal regarding whether the digital currency wallet needs to be updated, and the configuration information corresponding to the digital currency wallet, and return the query result to the terminal; after receiving the update request sent by the terminal, it obtains account data from the management platform corresponding to the digital currency wallet, and sends the target update instruction to the terminal based on the account data.
[0036] To achieve the above objectives, according to another aspect of the present invention, an electronic device for updating a digital currency wallet is provided.
[0037] An electronic device for updating a digital currency wallet according to an embodiment of the present invention includes: 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 a method for updating a digital currency wallet according to an embodiment of the present invention.
[0038] To achieve the above objectives, according to another aspect of the present invention, a computer-readable storage medium is provided.
[0039] An embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements a digital currency wallet update method according to an embodiment of the present invention.
[0040] One embodiment of the above invention has the following advantages or beneficial effects: a terminal equipped with a digital currency wallet can query a trusted platform whether the digital currency wallet needs to be updated. If an update is required, the digital currency wallet is updated according to the account data in the target update instruction sent by the trusted platform, so that the account data corresponding to the updated digital currency wallet remains unchanged, and the query of historical transaction records and other data can still be realized, thereby improving the user experience.
[0041] Furthermore, when an update is required, the terminal with the digital currency wallet first withdraws the digital currency from the digital currency wallet and synchronizes the offline transaction data of the digital currency wallet. On the one hand, this avoids the loss of digital currency during the update process, and on the other hand, it ensures that the account data in the target update instruction is complete data containing offline transaction data, thereby improving account security and availability.
[0042] The further effects of the aforementioned unconventional alternative methods will be explained below in conjunction with specific implementation methods. Attached Figure Description
[0043] The accompanying drawings are provided to better understand the invention and are not intended to unduly limit the scope of the invention. Wherein:
[0044] Figure 1 This is a schematic diagram illustrating the main steps of a digital currency wallet update method according to an embodiment of the present invention;
[0045] Figure 2 This is a schematic diagram of the main modules of a terminal for updating a digital currency wallet according to an embodiment of the present invention;
[0046] Figure 3 This is a schematic diagram of the main modules of a digital currency wallet update system according to an embodiment of the present invention;
[0047] Figure 4 This is a schematic diagram illustrating the main steps of another digital currency wallet update method according to an embodiment of the present invention;
[0048] Figure 5 This is an exemplary system architecture diagram in which embodiments of the present invention can be applied;
[0049] Figure 6 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
[0050] 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.
[0051] It should be noted that, unless otherwise specified, the embodiments of the present invention and the technical features thereof can be combined with each other.
[0052] Figure 1 This is a schematic diagram illustrating the main steps of a digital currency wallet update method according to an embodiment of the present invention.
[0053] like Figure 1 As shown, the method for updating a digital currency wallet according to an embodiment of the present invention, when applied to a terminal equipped with a digital currency wallet, mainly includes the following steps:
[0054] Step S101: Based on user triggering, send a query request to the trusted platform regarding whether the digital currency wallet needs to be updated.
[0055] In this embodiment of the invention, to ensure the security of digital currency transactions, the digital currency wallet is a hardware wallet typically installed in a security chip, such as a hardware wallet installed on different security chips like a mobile phone SE (Secure Element), SIM card (Subscriber Identity Module), or IC card (Integrated Circuit Chip). It is understood that the digital currency wallet or hardware wallet described in this embodiment of the invention is an application on a security chip; that is, the digital currency wallet is actually a digital currency wallet application, and the hardware wallet is a hardware wallet application.
[0056] It is understood that before executing the digital currency wallet update method provided in this embodiment of the invention, the security chip has successfully completed the application, download, installation, personalization, and opening of the hardware wallet through the card writing device, and is in a normal, transactional state. Furthermore, the trusted platform has uploaded installation packages for different versions of the hardware wallet, and can obtain new versions of the hardware wallet when they become available. In addition, as a management system for the hardware wallet's lifecycle, the trusted platform has the ability to manage applications based on multiple dimensions such as channel, manufacturer, and version number. Here, "channel" refers to the payment channel corresponding to different payment application sources.
[0057] When an end user accesses the hardware wallet's operation page through the wallet app on their device, the hardware wallet is activated. At this point, the device sends a query request to a trusted platform via the wallet app to inquire whether the hardware wallet on the device's security chip needs updating. It's important to note that the wallet app is an application running on the device itself, unlike the hardware wallet (cryptocurrency wallet), which is a program running on the security chip.
[0058] Step S102: Receive the query results returned by the trusted platform based on the query request.
[0059] After receiving a query request from a terminal regarding whether a cryptocurrency wallet needs an update, the trusted platform determines this based on the wallet's configuration information. For example, the platform might use the wallet's version number, channel, and manufacturer information to determine if an update is necessary. Furthermore, if modifications are found, the platform can further determine whether a mandatory update is required. For instance, if the wallet addresses a serious security vulnerability, a mandatory update is necessary; otherwise, if the updates only slightly affect functionality but have a minor impact on user experience (e.g., only changing the interface's color scheme), a non-mandatory update is not required.
[0060] After determining whether the digital currency wallet needs updating and whether a forced update is necessary, the trusted platform returns the query results corresponding to the query request to the terminal, allowing the terminal to determine whether to initiate an update request based on the query request. Step S103: If the query result indicates that the digital currency wallet needs updating, the platform withdraws the digital currency from the digital currency wallet, synchronizes the offline transaction data of the digital currency wallet, and sends an update request to the trusted platform.
[0061] In one embodiment of the present invention, after receiving the query result returned by the trusted platform, the wallet app on the terminal can determine whether to send an update request to the trusted platform based on the query result. If the wallet app determines that the query result indicates that the digital currency wallet needs to be updated and that an update is mandatory, the wallet app on the terminal sends an update request to the trusted platform. Alternatively, if the query result indicates that an update is required but not mandatory, the wallet app on the terminal can determine whether to initiate an update request based on business needs or user judgment. For example, the wallet app can display an update prompt about the digital currency wallet to the user through the terminal's touchscreen. If the user refuses to update, the terminal does not initiate an update request to the trusted platform, and the update process of the digital currency wallet can be terminated. Furthermore, if the query result indicates that the digital currency wallet does not need to be updated, the wallet app also does not initiate an update request to the trusted platform, and the update process of the digital currency wallet is also terminated.
[0062] After the wallet app determines that an update request needs to be sent to a trusted platform, before the wallet app sends the update request to the trusted platform, because the original cryptocurrency wallet on the terminal needs to be deleted during the update process, to avoid the loss of cryptocurrency, the terminal first withdraws the cryptocurrency from the cryptocurrency wallet and synchronizes the offline transaction data of the cryptocurrency wallet. Specifically, the terminal can guide the user to perform the withdrawal operation by displaying withdrawal guidance information, and synchronize the offline transaction data in the cryptocurrency wallet to the corresponding management platform of the cryptocurrency wallet, so that the management platform can record the cryptocurrency wallet account (such as wallet ID), association code, and account data (transaction data and certificates, etc.).
[0063] The association code is primarily used for secure communication between the cryptocurrency wallet's management platform and a trusted platform. Each association code corresponds uniquely to an account. During communication between the management and trusted platforms, the association code serves as the cryptocurrency wallet's identifier, preventing the direct transmission of the wallet's account information and thus mitigating transaction risks caused by account theft. Furthermore, after the terminal synchronizes offline transaction data to its corresponding management platform, the account data recorded by the management platform becomes complete, including both online and offline transaction data. Subsequent updates to the cryptocurrency wallet based on this complete transaction data enhance account security and usability, ultimately improving user experience.
[0064] Step S104: Receive the target update instruction sent by the trusted platform according to the update request, wherein the target update instruction indicates the account data corresponding to the digital currency wallet.
[0065] After completing the withdrawal and offline data synchronization operations, the terminal sends an update request to the trusted platform. Upon receiving the update request, the trusted platform records the update application information corresponding to the digital currency wallet, sets the status of the digital currency wallet in the trusted platform to "updating," and then organizes and issues update initialization instructions.
[0066] After receiving an update initialization command from a trusted platform, the terminal sets the current state of its digital currency wallet accordingly. Specifically, in one embodiment of the present invention, the terminal receives an update initialization command from a trusted platform, the update initialization command indicating the state of the digital currency wallet; based on the update initialization command, it determines whether there is a digital currency balance in the digital currency wallet; if not, based on the state indicated by the update initialization command, it sets the current state of the digital currency wallet and returns a first status code to the trusted platform, so that the trusted platform sends the target update command based on the first status code.
[0067] In this embodiment, the wallet app on the terminal receives an update initialization command from a trusted platform, indicating that the digital currency wallet's status is "updating." The wallet app sends this update initialization command to the digital currency wallet on the security chip. The digital currency wallet determines whether there is any unsynchronized information, such as a digital currency balance. If such information exists, it returns a second status code indicating an error to the wallet app, which then sends this second status code to the trusted platform. If no such information exists, it returns a first status code indicating normal operation to the wallet app, which then sends this first status code to the trusted platform. The trusted platform then organizes the target update command based on this normal first status code. Furthermore, in the absence of digital currency balance information, the digital currency wallet also sets its current status to "pending update" based on the status (updating) in the update initialization command and restricts offline transaction operations to prevent data loss due to other operations (such as transactions) during the update process, thereby improving the security of the update process.
[0068] After the terminal sends a first status code indicating normal operation to the trusted platform, the trusted platform can, based on a personalized data request message, notify the management platform that the corresponding digital currency wallet needs to be updated. The terminal then obtains the necessary personalized data for the update from the management platform corresponding to the digital currency wallet, i.e., account data, such as the wallet ID, the key used for message encryption, the key for calculating the MAC address, the key used for transaction authentication, and the association code. After obtaining the personalized data from the management platform, the trusted platform organizes the target update instructions (including deletion, download, installation, and personalization instructions) according to the digital currency wallet type (hardware wallet applications installed on different security chips such as mobile phone SE, SIM cards, and IC cards), and sends the target update instructions to the terminal.
[0069] Of course, if the wallet app sends a second status code to the trusted platform, the trusted platform can terminate the response to the update request sent by the terminal based on the second status code that indicates an error, delete the update application information and status value corresponding to the digital currency wallet of the terminal, and further return an error code to the terminal, so that the wallet app on the terminal can prompt the user that the update cannot be performed.
[0070] Step S105: Update the digital currency wallet according to the account data indicated by the target update instruction.
[0071] In one embodiment of the present invention, the target update instruction includes a deletion instruction and an installation instruction. The terminal can delete the digital currency wallet according to the deletion instruction, and download and install a new digital currency wallet corresponding to the installation package indicated by the installation instruction; then open the new digital currency wallet according to the account data.
[0072] As mentioned above, the target update instructions can include deletion instructions, download instructions, installation instructions, and personalized instruction streams. The trusted platform can issue these instructions in batches, which are then forwarded by the wallet app on the terminal to the digital currency wallet on the security chip. The digital currency wallet deletes the original digital currency wallet according to the deletion instruction, downloads the installation package of the new version of the digital currency wallet according to the download instruction, installs the new version of the digital currency wallet according to the installation instruction, and then further opens a new digital currency wallet based on the personalized data (account data) corresponding to the digital currency wallet included in the personalization instruction.
[0073] After the security chip successfully executes all the deletion, download, installation, and personalization command streams, the wallet app can send wallet certificate application data to the trusted platform to apply for a new digital currency wallet certificate and other account data, such as nickname and historical transaction records. Based on the successful execution feedback and after obtaining the wallet certificate application data from the terminal, the trusted platform notifies the corresponding management platform of the digital currency wallet to perform an update opening operation, obtaining updated opening response data (including hardware wallet opening instructions, certificate, nickname, and historical transaction records), and sends the opening response data to the digital currency wallet on the security chip in the terminal. After successfully executing the opening operation based on the opening response data, the digital currency wallet returns the opening execution result to the trusted platform. The trusted platform forwards the opening execution result as an opening completion notification to the management platform. Based on this opening completion notification, the management platform sets the current status of the updated digital currency wallet to available and returns an opening completion response to the trusted platform. Afterward, the updated digital currency wallet is in a normal, tradable state.
[0074] It is worth noting that if an update fails during the update process, the terminal can prompt the user to initiate the update request again. After receiving the update request, the trusted platform can continue to complete the update operation based on the update request information recorded when the terminal first initiated the update request.
[0075] According to an embodiment of the present invention, a method for updating a digital currency wallet allows a terminal equipped with a digital currency wallet to query a trusted platform to determine if the wallet needs updating. If an update is required, the digital currency wallet is updated based on the account data in the target update instruction sent by the trusted platform. This ensures that the account data in the updated digital currency wallet remains unchanged, allowing for the continued querying of historical transaction records and other data, thereby improving user experience. Furthermore, when an update is required, the terminal equipped with the digital currency wallet first withdraws the digital currency from the wallet and synchronizes the offline transaction data. This avoids the loss of digital currency during the update process and ensures that the account data in the target update instruction is complete, including offline transaction data, thus improving account security and usability.
[0076] Figure 2 This is a schematic diagram of the main modules of a terminal for updating a digital currency wallet according to an embodiment of the present invention.
[0077] like Figure 2 As shown, a terminal 200 for updating a digital currency wallet according to an embodiment of the present invention includes: a query interaction module 201, a processing module 202, and an update module 203; wherein,
[0078] The query interaction module 201 is used to send a query request to the trusted platform regarding whether the digital currency wallet needs to be updated, based on user triggering, and to receive the query result returned by the trusted platform based on the query request.
[0079] The processing module 202 is used to withdraw digital currency from the digital currency wallet when the query result indicates that the digital currency wallet needs to be updated, synchronize the offline transaction data of the digital currency wallet, and send an update request to the trusted platform.
[0080] The update module 203 is used to receive a target update instruction sent by the trusted platform according to the update request, wherein the target update instruction indicates account data corresponding to the digital currency wallet; and to update the digital currency wallet according to the account data indicated by the target update instruction.
[0081] In one embodiment of the present invention, the update module 203 is further configured to receive an update initialization instruction sent by the trusted platform, the update initialization instruction indicating the status of the digital currency wallet; determine whether there is a digital currency balance in the digital currency wallet according to the update initialization instruction; if not, set the current status of the digital currency wallet according to the status indicated by the update initialization instruction, and return a first status code to the trusted platform, so that the trusted platform sends the target update instruction according to the first status code.
[0082] In one embodiment of the present invention, the state indicated by the update initialization instruction is an update in progress state; the update module 203 is also used to restrict offline transaction operations of the digital currency wallet.
[0083] In one embodiment of the present invention, the update module 203 is further configured to return a second status code to the trusted platform when there is a digital currency balance in the digital currency wallet, so that the trusted platform terminates the response to the update request based on the second status code.
[0084] In one embodiment of the present invention, the update module 203 is further configured to set the current state of the digital currency wallet to an available state after updating the digital currency wallet according to the account data indicated by the target update instruction.
[0085] In one embodiment of the present invention, the target update instruction includes a deletion instruction and an installation instruction; the update module 203 is used to delete the digital currency wallet according to the deletion instruction, and download and install a new digital currency wallet corresponding to the installation package indicated by the installation instruction; and open the new digital currency wallet according to the account data.
[0086] In one embodiment of the present invention, the update module 203 is used to send certificate application data to the trusted platform, so that the trusted platform obtains the account data from the management platform corresponding to the digital currency wallet according to the certificate application data, and generates the target update instruction according to the account data.
[0087] According to an embodiment of the present invention, a terminal for updating a digital currency wallet can query a trusted platform to determine if the digital currency wallet needs updating. If an update is required, the terminal updates the digital currency wallet based on the account data in the target update instruction sent by the trusted platform. This ensures that the account data corresponding to the updated digital currency wallet remains unchanged, and historical transaction records and other data can still be queried, thereby improving the user experience. Furthermore, when an update is required, the terminal first withdraws the digital currency from the wallet and synchronizes the offline transaction data. This avoids the loss of digital currency during the update process and ensures that the account data in the target update instruction is complete data including offline transaction data, thereby improving account security and usability.
[0088] Figure 3 This is a schematic diagram of the main modules of a digital currency wallet update system according to an embodiment of the present invention.
[0089] like Figure 3 As shown, a digital currency wallet update system 300 according to an embodiment of the present invention includes: a trusted platform 301, a management platform 302 corresponding to the digital currency wallet, and a terminal 200 for updating the digital currency wallet provided in any of the above embodiments; wherein,
[0090] The trusted platform 301 is used to determine whether the digital currency wallet needs to be updated based on the query request sent by the terminal 200 regarding whether the digital currency wallet needs to be updated, and the configuration information corresponding to the digital currency wallet, and return the query result to the terminal 200; after receiving the update request sent by the terminal, it obtains the account data corresponding to the digital currency wallet from the management platform 302 corresponding to the digital currency wallet, and sends the target update instruction to the terminal 200 based on the account data.
[0091] The following description, in conjunction with the architecture of a digital currency wallet update system, further illustrates the digital currency wallet update method provided in this embodiment of the invention. The terminal includes a wallet app and a digital currency wallet application. The wallet app is the application running on the terminal, while the digital currency wallet is the program running on a secure chip. The wallet app on the terminal is used to communicate with a trusted platform, while the digital currency wallet running on the secure chip does not communicate directly with the trusted platform to ensure security. Figure 4 As shown, the method may include the following steps:
[0092] Step S401: Based on the user's trigger, the terminal sends a query request to the trusted platform regarding whether the digital currency wallet needs to be updated.
[0093] When an end user accesses the hardware wallet operation page through the wallet app on the terminal, the hardware wallet is triggered. At this time, the terminal sends a query request to the trusted platform through the wallet app to ask whether the hardware wallet on the terminal's security chip needs to be updated.
[0094] Step S402: The trusted platform determines whether the digital currency wallet needs to be updated based on the configuration information corresponding to the digital currency wallet, and returns the corresponding query results to the terminal.
[0095] Step S403: If the query results indicate that the digital currency wallet needs to be updated, the wallet app guides the user to withdraw digital currency from the digital currency wallet and synchronize the offline transaction data of the digital currency wallet.
[0096] In this step, if the query results indicate that the digital currency wallet does not need to be updated, the update process of the digital currency wallet can be completed. In this case, the user can be guided to withdraw digital currency and synchronize offline transaction data, or the existing working state of the digital currency wallet can be maintained, that is, the user is not guided to withdraw digital currency and synchronize offline transaction data.
[0097] Step 404: Complete the process of the wallet app sending an update request to the trusted platform.
[0098] Step S405: The trusted platform sets the status of the digital currency wallet and, based on the status of the digital currency wallet, sends an update initialization command to the wallet app, which then sends the update initialization command to the digital currency wallet.
[0099] Step S406: The digital currency wallet determines whether there is a digital currency balance in the digital currency wallet according to the update initialization instruction. If yes, proceed to step S407; otherwise, proceed to step S408.
[0100] Step S407: Send a second status code to the trusted platform via the wallet app, so that the trusted platform terminates its response to the update request based on the second status code.
[0101] The second status code indicates that the cryptocurrency wallet is in an error state and cannot be updated. The trusted platform can terminate the update request based on this second status code, thus ending the cryptocurrency wallet update process. In this case, the trusted platform can return an error code to the wallet app, which will then notify the user that the update cannot be performed. The user can also re-initiate the update request based on the initial update request information, and the trusted platform can continue the update operation based on the information from the initial update request.
[0102] Step S408: Restrict offline cryptocurrency transactions by sending the first status code to a trusted platform via the wallet app; and proceed to step S409.
[0103] The first status code indicates that the cryptocurrency wallet is in a normal state and can be updated. After confirming that there is no unsynchronized data such as cryptocurrency balance, the cryptocurrency wallet can set its current state (pending update) according to the status (updating) in the update initialization instruction, thereby restricting offline transaction operations of the cryptocurrency wallet.
[0104] Step S409: The trusted platform sends a personalized data request message to the management platform corresponding to the digital currency wallet to notify the management platform that the digital currency wallet needs to be updated, and obtains the personalized data corresponding to the digital currency wallet from the management platform.
[0105] It is understandable that personalized data refers to a portion of the account data corresponding to a digital currency wallet, which may include account ID, key, and association code, etc.
[0106] Step S410: The trusted platform sends a target update instruction to the wallet app, which then forwards the target update instruction to the security chip where the digital currency wallet is located, causing the security chip to execute the target update instruction.
[0107] The target update instructions include deletion instructions, download instructions, installation instructions, and personalized instruction streams. The trusted platform can issue these instructions in batches, causing the security chip to execute them to delete the original digital currency wallet application and download and install a new digital currency wallet application.
[0108] Step S411: The digital currency wallet sends certificate application data to the trusted platform through the wallet app.
[0109] Step S412: Based on the certificate application data, the trusted platform notifies the management platform to perform an update and issuance operation, and obtains the update and issuance response data.
[0110] The updated opening response data includes the wallet opening instruction. This updated opening response data also contains partial account data corresponding to the cryptocurrency wallet, which may include the cryptocurrency wallet's certificate, nickname, and historical transaction records. It can be understood that the wallet opening instruction is also a target update instruction. Through the wallet opening instruction and account data such as the certificate, nickname, and historical transaction records, the new version of the cryptocurrency wallet is opened, and the newly opened cryptocurrency wallet is now in a usable state.
[0111] Step S413: The trusted platform will send the updated opening response data to the wallet app, which will then forward the opening response data to the digital currency wallet, enabling the digital currency wallet to complete the opening process based on the opening response data.
[0112] Step S414: The digital currency wallet returns the opening result to the trusted platform through the wallet app, and the trusted platform forwards the opening result to the management platform.
[0113] Once the account is opened, the new version of the digital currency wallet will be available. Since it is updated based on the account data of the old version, the wallet ID, nickname, and historical transaction records of the updated digital currency wallet will remain unchanged, making the historical transaction records searchable.
[0114] As can be seen from the digital currency wallet update system provided in this embodiment of the invention, a terminal equipped with a digital currency wallet can query a trusted platform whether the digital currency wallet needs to be updated. If an update is required, the digital currency wallet is updated according to the account data in the target update instruction sent by the trusted platform. This ensures that the account data corresponding to the updated digital currency wallet remains unchanged, and historical transaction records and other data can still be queried, thereby improving the user experience. Furthermore, when an update is required, the terminal equipped with the digital currency wallet first withdraws the digital currency from the digital currency wallet and synchronizes the offline transaction data of the digital currency wallet. This avoids the loss of digital currency during the update process and also ensures that the account data in the target update instruction is complete data including offline transaction data, thereby improving account security and usability.
[0115] Figure 5 An exemplary system architecture 500 is shown, which can be applied to a digital currency wallet update method or a digital currency wallet update system according to embodiments of the present invention.
[0116] like Figure 5 As shown, system architecture 500 may include terminal devices 501, 502, and 503, a network 504, and a server 505. Network 504 serves as the medium for providing communication links between terminal devices 501, 502, and 503 and server 505. Network 504 may include various connection types, such as wired or wireless communication links, or fiber optic cables, etc.
[0117] Users can use terminal devices 501, 502, and 503 to interact with server 505 via network 504 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 501, 502, and 503, such as wallet applications for electronic payments, shopping applications, web browser applications, search applications, instant messaging tools, email clients, social media platform software, etc.
[0118] Terminal devices 501, 502, and 503 can be various electronic devices with displays that support web browsing, including but not limited to smartphones, tablets, laptops, and desktop computers.
[0119] Server 505 can be a server that provides various services, such as a back-end management server that supports payment requests initiated by users using terminal devices 501, 502, and 503. The back-end management server can analyze and process data such as received product information query requests, and feed back the processing results (such as opening results) to the terminal devices.
[0120] It should be understood that Figure 5 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.
[0121] The following is for reference. Figure 6 It shows a schematic diagram of the structure of a computer system 600 suitable for implementing a terminal device of the present invention. Figure 6 The terminal device shown is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments of the present invention.
[0122] like Figure 6 As shown, the computer system 600 includes a central processing unit (CPU) 601, which can perform various appropriate actions and processes based on programs stored in read-only memory (ROM) 602 or programs loaded from storage section 608 into random access memory (RAM) 603. The RAM 603 also stores various programs and data required for the operation of the system 600. The CPU 601, ROM 602, and RAM 603 are interconnected via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.
[0123] The following components are connected to I / O interface 605: an input section 606 including a keyboard, mouse, etc.; an output section 607 including a cathode ray tube (CRT), liquid crystal display (LCD), etc., and speakers, etc.; a storage section 608 including a hard disk, etc.; and a communication section 609 including a network interface card such as a LAN card, modem, etc. The communication section 609 performs communication processing via a network such as the Internet. A drive 610 is also connected to I / O interface 605 as needed. A removable medium 611, such as a disk, optical disk, magneto-optical disk, semiconductor memory, etc., is installed on drive 610 as needed so that computer programs read from it can be installed into storage section 608 as needed.
[0124] 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 609, and / or installed from removable medium 611. When the computer program is executed by central processing unit (CPU) 601, it performs the functions defined above in the system of this invention.
[0125] 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.
[0126] 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.
[0127] The modules described in the embodiments of the present invention can be implemented in software or hardware. The described modules can also be housed in a processor; for example, a processor can be described as including a query interaction module, a processing module, and an update module. The names of these modules do not necessarily limit the module itself; for example, the update module can also be described as "a module for updating a digital currency wallet."
[0128] 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 and not assembled into the device. The computer-readable medium carries one or more programs that, when executed by the device, cause the device to include: sending a query request to a trusted platform regarding whether a digital currency wallet needs updating, triggered by a user; receiving a query result returned by the trusted platform based on the query request; if the query result indicates that the digital currency wallet needs updating, withdrawing digital currency from the digital currency wallet, synchronizing offline transaction data of the digital currency wallet, and sending an update request to the trusted platform; receiving a target update instruction sent by the trusted platform based on the update request, the target update instruction indicating account data corresponding to the digital currency wallet; and updating the digital currency wallet according to the account data indicated by the target update instruction.
[0129] According to the technical solution of this invention, a terminal equipped with a digital currency wallet can query a trusted platform whether the digital currency wallet needs to be updated. If an update is required, the digital currency wallet is updated according to the account data in the target update instruction sent by the trusted platform. This ensures that the account data corresponding to the updated digital currency wallet remains unchanged, and historical transaction records and other data can still be queried, thereby improving the user experience. Furthermore, when an update is required, the terminal equipped with the digital currency wallet first withdraws the digital currency from the wallet and synchronizes the offline transaction data. This avoids the loss of digital currency during the update process and ensures that the account data in the target update instruction is complete data including offline transaction data, thereby improving account security and usability.
[0130] 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 of updating a digital currency wallet, characterized by, The application is applied to a terminal provided with a digital currency wallet, and includes: According to the user trigger, a query request about whether the digital currency wallet needs to be updated is sent to a trusted platform; Receiving the query result returned by the trusted platform according to the query request; In the case where the query result indicates that the digital currency wallet needs to be updated, the digital currency in the digital currency wallet is withdrawn, the offline transaction data of the digital currency wallet is synchronized, and an update request is sent to the trusted platform; Receiving the target update instruction sent by the trusted platform according to the update request, the target update instruction indicating the account data corresponding to the digital currency wallet; According to the account data indicated by the target update instruction, the digital currency wallet is updated; After the update request is sent to the trusted platform, before the target update instruction sent by the trusted platform according to the update request is received, it further includes: Receiving the update initialization instruction sent by the trusted platform, the update initialization instruction indicating the state of the digital currency wallet; According to the update initialization instruction, it is determined whether there is a digital currency balance in the digital currency wallet; If not, according to the state indicated by the update initialization instruction, the current state of the digital currency wallet is set, and a first state code is returned to the trusted platform, so that the trusted platform sends the target update instruction according to the first state code.
2. The method of claim 1, wherein, The state indicated by the update initialization instruction is an updating state; after setting the current state of the digital currency wallet to the state indicated by the update initialization instruction, it further includes: Limiting the offline transaction operation of the digital currency wallet.
3. The method of claim 1, wherein, In the case where there is a digital currency balance in the digital currency wallet, it further includes: A second state code is returned to the trusted platform, so that the trusted platform terminates the response to the update request according to the second state code.
4. The method of claim 2, wherein, After the digital currency wallet is updated according to the account data indicated by the target update instruction, it further includes: The current state of the digital currency wallet is set to an available state.
5. The method of claim 1, wherein, The target update instruction includes a delete instruction and an installation instruction; the digital currency wallet is updated according to the account data indicated by the target update instruction, including: According to the delete instruction, the digital currency wallet is deleted, and according to the installation package indicated by the installation instruction, a new digital currency wallet corresponding to the installation package is downloaded and installed; According to the account data, the new digital currency wallet is opened.
6. The method of claim 5, wherein, After the new digital currency wallet corresponding to the installation package is downloaded and installed, it further includes: Certificate application data is sent to the trusted platform, so that the trusted platform obtains the account data from the management platform corresponding to the digital currency wallet according to the certificate application data, and generates the target update instruction according to the account data.
7. A terminal for updating a digital currency wallet, characterized by, It includes: Query interaction module, processing module and update module; wherein, The query interaction module is configured to, according to a user trigger, send a query request about whether the digital currency wallet needs to be updated to a trusted platform, and receive a query result returned by the trusted platform according to the query request. The processing module is configured to, in a case where the query result indicates that the digital currency wallet needs to be updated, perform a withdrawal of digital currency in the digital currency wallet, synchronize offline transaction data of the digital currency wallet, and send an update request to the trusted platform. The update module is configured to receive a target update instruction sent by the trusted platform according to the update request, the target update instruction indicating account data corresponding to the digital currency wallet, and update the digital currency wallet according to the account data indicated by the target update instruction. The update module is further configured to, after sending the update request to the trusted platform and before receiving the target update instruction sent by the trusted platform according to the update request, receive an update initialization instruction sent by the trusted platform, the update initialization instruction indicating a state of the digital currency wallet, determine whether there is a digital currency balance in the digital currency wallet according to the update initialization instruction, and if not, set a current state of the digital currency wallet according to the state indicated by the update initialization instruction, and return a first state code to the trusted platform, so that the trusted platform sends the target update instruction according to the first state code.
8. An updating system of a digital currency wallet characterized by, The system comprises: a trusted platform, a management platform corresponding to a digital currency wallet, and the terminal for updating the digital currency wallet of claim 7; wherein The trusted platform is configured to determine whether the digital currency wallet needs to be updated according to a query request about whether the digital currency wallet needs to be updated sent by the terminal and configuration information corresponding to the digital currency wallet, return a query result to the terminal, and after receiving an update request sent by the terminal, obtain account data from the management platform corresponding to the digital currency wallet, and send a target update instruction to the terminal according to the account data.
9. An electronic device that updates a digital currency wallet, the electronic device comprising: The system comprises: one or more processors; a storage device configured to store 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 of any one of claims 1-6.
10. A computer readable medium having stored thereon a computer program, characterized in that, The program is executed by the processor to implement the method of any one of claims 1-6.
Citation Information
Patent Citations
Method and system for using digital currency based on block chain as well as terminal
CN106850200A
Digital currency hardware wallet application upgrading method and device
CN112732288A