Blockchain-based wallet system, wallet use method, and storage medium

CN109863520BActive Publication Date: 2026-09-08BCM SOCIAL CORP +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN201880002438.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2018-11-27
Publication Date
2026-09-08
Estimated Expiration
2038-11-27

AI Technical Summary

Technical Problem

其中,电脑端的网页钱包和智能终端的应用轻钱包均能与互联网连接,因此电脑端的网页钱包和智能终端的应用轻钱包中存储的安全密钥、合约等重要数据存在较大的被盗或被篡改的风险

Benefits of technology

[0015] Beneficial Effects: Unlike existing technologies, the wallet system method of this invention allows a hardware wallet to activate its function using an activation password; after the wallet function is activated, the smart terminal obtains transaction data; the hardware wallet obtains the wallet address contained in the transaction data, retrieves the corresponding wallet private key based on the wallet address, and signs the transaction data using the wallet private key; the signed transaction data is sent to the smart terminal; the smart terminal receives the signed transaction data and broadcasts it to the blockchain network. Activating the offline hardware wallet with a password enhances the security of the hardware wallet; furthermore, by using the activated hardware wallet to sign the transaction data obtained by the smart terminal, the wallet private key remains in the hardware wallet throughout the process and is not leaked, thus improving the security of wallet private key storage.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN109863520B_ABST
    Figure CN109863520B_ABST
Patent Text Reader

Abstract

The application discloses a wallet system use method based on a blockchain, which is applied to a hardware wallet system including a smart terminal and a hardware wallet. The use method comprises the following steps: the hardware wallet activates a wallet function by using an activation password; the smart terminal acquires transaction data after the wallet function is activated; the hardware wallet acquires a wallet address contained in the transaction data, acquires a wallet private key corresponding to the wallet address according to the wallet address, and signs the transaction data by using the wallet private key; the hardware wallet sends the signed transaction data to the smart terminal; and the smart terminal receives the signed transaction data and broadcasts the signed transaction data to a blockchain network. The offline hardware wallet is activated by using a password, and the use safety of the hardware wallet is improved. Furthermore, the transaction data acquired by the smart terminal is signed by using the activated hardware wallet, and in the processing process, the wallet private key is always in the hardware wallet and cannot be leaked, and the safety of the wallet private key storage is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of blockchain technology, and in particular to a blockchain-based wallet system, wallet usage method, and storage medium. Background Technology

[0002] With the continuous development and maturation of blockchain technology, various blockchain applications are gradually being widely implemented in industries such as data currency, payment clearing, financial transactions, and big data. Blockchain technology, also known as "distributed ledger technology," is an internet database technology characterized by decentralization, collective maintenance, high transparency, trustlessness, and anonymity. It enables end-to-end value transfer, leading more and more people to accept, believe in, and begin using it to build and transform new financial and social service systems.

[0003] In blockchain technology, the key data used to construct blocks needs to be verified for correctness, validity, and security. Currently, many blockchain applications typically use asymmetric cryptography stored in software for data encryption, decryption, signing, and verification. For applications with higher security requirements, security keys and contracts need to be stored and used in hardware. The rules for constructing blocks or the methods for using data—i.e., smart contracts in the blockchain—also need to be stored and used in hardware. Furthermore, blockchain-based monetary payment transactions require the creation of corresponding monetary wallets.

[0004] Common cryptocurrency wallets currently available include web wallets for computers, application-based light wallets for smart devices, and hardware wallets. Web wallets for computers and application-based light wallets for smart devices can connect to the internet, making them vulnerable to theft or tampering of sensitive data such as security keys and contracts stored there. Hardware wallets, on the other hand, are typically offline devices like computers or USB drives. While this avoids theft or tampering of important data during storage by eliminating the need for an internet connection, it still requires the data to be read from the device, which is inconvenient and carries the risk of theft or tampering during the reading process. Summary of the Invention

[0005] The purpose of this invention is to provide a blockchain-based wallet system, a method for using the wallet, and a storage medium, which can improve the security of the wallet system.

[0006] To achieve the above objectives, the present invention provides a method for using a blockchain-based wallet system, wherein the method is applied to a hardware wallet system, the hardware wallet system comprising a smart terminal and a hardware wallet;

[0007] The hardware wallet uses the obtained activation password to activate the wallet function;

[0008] The smart terminal acquires transaction data after the wallet function is activated;

[0009] The hardware wallet obtains the wallet address contained in the transaction data, obtains the corresponding wallet private key based on the wallet address, signs the transaction data using the wallet private key, and sends the signed transaction data to the smart terminal.

[0010] The smart terminal receives the signed transaction data and broadcasts it to the blockchain network.

[0011] On the other hand, the present invention also proposes a blockchain-based wallet usage method, which is applied to a hardware wallet;

[0012] The hardware wallet uses the obtained activation password to activate the wallet function;

[0013] After the wallet function is activated, the hardware wallet obtains the wallet address contained in the transaction data, obtains the corresponding wallet private key based on the wallet address, signs the transaction data using the wallet private key, and sends the signed transaction data to the smart terminal so that the smart terminal broadcasts the signed transaction data to the blockchain network.

[0014] On the other hand, the present invention also proposes a storage medium storing program data that can be executed to implement the above-described blockchain-based wallet system usage method and blockchain-based wallet usage method.

[0015] Beneficial Effects: Unlike existing technologies, the wallet system method of this invention allows a hardware wallet to activate its function using an activation password; after the wallet function is activated, the smart terminal obtains transaction data; the hardware wallet obtains the wallet address contained in the transaction data, retrieves the corresponding wallet private key based on the wallet address, and signs the transaction data using the wallet private key; the signed transaction data is sent to the smart terminal; the smart terminal receives the signed transaction data and broadcasts it to the blockchain network. Activating the offline hardware wallet with a password enhances the security of the hardware wallet; furthermore, by using the activated hardware wallet to sign the transaction data obtained by the smart terminal, the wallet private key remains in the hardware wallet throughout the process and is not leaked, thus improving the security of wallet private key storage. Attached Figure Description

[0016] Figure 1 This is a schematic diagram of the structure of an embodiment of the blockchain-based wallet system of the present invention;

[0017] Figure 2This is a flowchart of the first embodiment of the method for using a blockchain-based wallet system according to the present invention;

[0018] Figure 3 yes Figure 2 The illustration shown is a diagram of the wallet system interaction in the usage method embodiment.

[0019] Figure 4 This is a flowchart of the second embodiment of the method for using the blockchain-based wallet system of the present invention;

[0020] Figure 5 yes Figure 4 The illustration shown is a diagram of the wallet system interaction in the usage method embodiment.

[0021] Figure 6 This is a flowchart of the third embodiment of the method for using the blockchain-based wallet system of the present invention;

[0022] Figure 7 yes Figure 6 The illustration shown is a diagram of the wallet system interaction in the usage method embodiment.

[0023] Figure 8 This is a flowchart of the fourth embodiment of the blockchain-based wallet system usage method of the present invention;

[0024] Figure 9 yes Figure 8 The illustration shown is a diagram of the wallet system interaction in the usage method embodiment.

[0025] Figure 10 This is a flowchart of an embodiment of the blockchain-based wallet usage method of the present invention;

[0026] Figure 11 This is a flowchart of an embodiment of the blockchain-based smart terminal usage method of the present invention;

[0027] Figure 12 This is a schematic diagram of the structure of an embodiment of the electronic device of the present invention;

[0028] Figure 13 This is a schematic diagram of the structure of an embodiment of the storage medium of the present invention. Detailed Implementation

[0029] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0030] It should be noted that if the embodiments of the present invention involve directional indicators (such as up, down, left, right, front, back, etc.), the directional indicators are only used to explain the relative positional relationship and movement of the components in a certain specific posture (as shown in the figure). If the specific posture changes, the directional indicators will also change accordingly.

[0031] Furthermore, if the embodiments of this invention involve descriptions such as "first" or "second," these descriptions are for descriptive purposes only and should not be construed as indicating or implying their relative importance or implicitly specifying the number of technical features indicated. Therefore, a feature defined with "first" or "second" may explicitly or implicitly include at least one of those features. Additionally, the technical solutions of the various embodiments can be combined with each other, but this must be based on the ability of those skilled in the art to implement them. If the combination of technical solutions is contradictory or impossible to implement, it should be considered that such a combination of technical solutions does not exist and is not within the scope of protection claimed by this invention.

[0032] Please see Figure 1 , Figure 1 This is a schematic diagram of an embodiment of the blockchain-based wallet system of the present invention. Figure 1 As shown, the wallet system 100 in this embodiment includes a hardware wallet 10 and a smart terminal 20 that can communicate with each other. The smart terminal 20 can join the blockchain network as a blockchain node. The hardware wallet 10 interacts with the smart terminal 20 via wireless communication technologies such as Bluetooth. In this embodiment, the smart terminal 20 can be a smartphone, tablet, laptop, desktop computer, or other terminal device; this invention does not impose specific limitations on this. The smart terminal 20 may be equipped with a touch screen 201 for receiving various control commands and transaction requests input by the user, and for displaying the account information contained in the hardware wallet 10 to the user.

[0033] In the hardware wallet 10 transaction system of this embodiment, the wallet function of the hardware wallet 10 is activated by the user. The hardware wallet 10 obtains the activation password entered by the user to activate the wallet function. After the wallet function of the hardware wallet 10 is activated, it can connect with the smart terminal 20. In this embodiment, before the transaction, the user activates the wallet function of the hardware wallet 10 using the activation password; after the wallet function of the hardware wallet 10 is activated, the hardware wallet 10 establishes a connection with the smart terminal 20. During the transaction, the user can initiate a transaction request through the smart terminal 20. The smart terminal 20 obtains the corresponding data from the blockchain network, constructs transaction data corresponding to the transaction request from the data, and sends the transaction data to the hardware wallet 10. After receiving the transaction data, the hardware wallet 10 reads the wallet address contained in the transaction data, and obtains the wallet private key stored in the hardware wallet 10 according to the wallet address. The hardware wallet 10 can then use the wallet private key to sign the received transaction data, thereby making the transaction valid. The hardware wallet 10 further sends the transaction data signed with the wallet private key to the smart terminal 20. The smart terminal 20 receives the signed transaction data and broadcasts it to the blockchain network. In this embodiment, the wallet address and wallet public key are stored in the smart terminal 20. The smart terminal 20 obtains the corresponding data from the blockchain network and verifies the transaction using the wallet public key.

[0034] This embodiment uses fingerprint information as an example to illustrate the activation password. The hardware wallet 10 is equipped with a fingerprint module 101. The hardware wallet 10 obtains the user's fingerprint information through this fingerprint module 101 and uses this fingerprint information as an activation key to activate the wallet function. The fingerprint module 101 is connected to the security chip 102 in the hardware wallet 10, and sends the obtained fingerprint information to the security chip 102, which stores the fingerprint information used for activation. The security chip 102 is located inside the hardware wallet.

[0035] Furthermore, such as Figure 1 As shown, the hardware wallet 10 is equipped with a Bluetooth communication module 103, and the smart terminal 20 is also equipped with a Bluetooth communication module (not shown in the figure). Therefore, the hardware wallet 10 and the smart terminal 20 can connect via Bluetooth for data exchange. The Bluetooth communication module 103 is also coupled to the security chip 102 to transmit data sent by the smart terminal 20 to the security chip 102 for processing. Both the security chip 102 and the Bluetooth communication module 103 of the hardware wallet 10 are located inside the hardware wallet 10. Figure 1 The dashed lines are used to represent this.

[0036] In a blockchain network, transaction data must be signed by the private key of the sending wallet to become effective. In other words, possessing the wallet's private key is equivalent to possessing the digital currency within that wallet. Therefore, protecting the security of a user's digital currency is equivalent to protecting the security of their wallet's private key. This embodiment enhances the security of the hardware wallet 10 by password-activating it offline via the internet. Furthermore, the activated hardware wallet 10 is used to sign the transaction data acquired by the smart terminal 20. During this process, the wallet's private key remains within the hardware wallet 10 and is never leaked, thus improving the security of the wallet's private key storage.

[0037] Furthermore, before the transaction, the hardware wallet 10 is activated using an activation password, which generates a wallet key pair. Specifically, the smart terminal 20 obtains a key generation instruction and sends it to the hardware wallet 10. The hardware wallet 10 obtains the key generation instruction sent by the smart terminal 20, generates a wallet key pair based on the instruction, and stores the generated wallet key pair. In this embodiment, the wallet key pair generated by the hardware wallet 10 is also stored in the security chip 102.

[0038] In blockchain technology, a wallet key pair includes a private key and a public key. The private key is a 256-bit random number generated by a random number generator, and the corresponding public key is calculated using an elliptic curve algorithm. The private key cannot be derived from the public key; it can only be derived from the public key. Further, a public key hash is calculated from the public key. A one-byte address version number is then appended to the hash header, followed by two hash operations. The first four bytes of the result are used as a checksum and appended to the end of the hash. This result is then encoded to obtain the wallet address from the public key. The derivation process of the private key, public key, and wallet address is irreversible; therefore, the private key cannot be derived from the wallet address or public key.

[0039] In this embodiment, the hardware wallet 10 generates a set of random numbers using a random number generator based on key generation instructions, thereby obtaining the wallet's private key. The wallet's public key is then calculated based on the private key, forming a wallet key pair. The hardware wallet 10 stores the private key using its internal security chip 102 and sends the calculated public key to the smart terminal 20. Upon receiving the public key, the smart terminal 20 calculates the corresponding wallet address. The smart terminal 20 stores both the received public key and the calculated wallet address. The wallet address and public key can be broadcast to the blockchain network via the smart terminal 20, while the private key is stored in the hardware wallet 10. Since the hardware wallet 10 is always offline, the private key cannot be accessed by other devices outside of the hardware wallet 10, thus enhancing the security of the user account.

[0040] In one implementation, Figure 1 The instructions for using the wallet system shown may include the hardware wallet 10 activation process and the transaction process:

[0041] A1. Hardware Wallet 10 Activation Process: The hardware wallet 10 activates its wallet function using the obtained activation password and stores the activation password using its internal security chip 102. After activation, the hardware wallet 10 can establish a connection with the smart terminal 20. Further, the smart terminal 20 obtains a key generation instruction and sends it to the hardware wallet 10. The hardware wallet 10 generates a private key and a public key based on the key generation instruction. The hardware wallet 10 stores the private key using the aforementioned security chip 102 and sends the public key to the smart terminal 20, enabling the smart terminal 20 to calculate the wallet address based on the public key. At this point, the hardware wallet 10 stores the activation password and the private key, while the smart terminal 20 stores the public key and the wallet address.

[0042] A2. Transaction Process: The smart terminal 20 obtains relevant data from the blockchain network, constructs corresponding transaction data, and sends this transaction data to the hardware wallet 10. The hardware wallet 10 receives the transaction data, reads the wallet address contained in the transaction data, obtains the wallet private key stored in the hardware wallet 10 based on the wallet address, further signs the transaction data using the wallet private key, and sends the signed transaction data to the smart terminal 20. The smart terminal 20 encrypts the signed transaction data and broadcasts it to the blockchain network.

[0043] In another embodiment, Figure 1 The instructions for using the wallet system shown may include the hardware wallet 10 activation process, the hardware wallet login process, and the transaction process:

[0044] B1. Hardware Wallet 10 Activation Process: The hardware wallet 10 activates its wallet function using the obtained activation password and stores the activation password using its internal security chip 102. After activation, the hardware wallet 10 can establish a connection with the smart terminal 20. Further, the smart terminal 20 obtains a key generation instruction and sends it to the hardware wallet 10. The hardware wallet 10 generates a private key and a public key based on the key generation instruction. The hardware wallet 10 stores the private key using the aforementioned security chip 102 and sends the public key to the smart terminal 20, enabling the smart terminal 20 to calculate the wallet address based on the public key. At this point, the hardware wallet 10 stores the activation password and the private key, while the smart terminal 20 stores the public key and the wallet address.

[0045] B2. Hardware Wallet Login Process: The hardware wallet 10 obtains the user's login password and verifies the user's identity using the login password and the stored activation password. If the login password and activation password match, the user's identity verification is successful, and the logged-in user and the activated user are the same user, allowing the user to continue with subsequent transaction steps. Otherwise, the user's identity verification fails, and subsequent transaction steps cannot be performed.

[0046] B3. Transaction Process: The smart terminal 20 obtains relevant data from the blockchain network, constructs corresponding transaction data, and sends this transaction data to the hardware wallet 10. The hardware wallet 10 receives the transaction data, reads the wallet address contained in the transaction data, obtains the wallet private key stored in the hardware wallet 10 based on the wallet address, further signs the transaction data using the wallet private key, and sends the signed transaction data to the smart terminal 20. The smart terminal 20 encrypts the signed transaction data and broadcasts it to the blockchain network.

[0047] In another implementation, the smart terminal 20 can create an OPEND account (i.e., the OPENID public key), and the hardware wallet 10 generates a root key. Based on the same root key, a wallet key pair and an OPENID private key are generated. The process is as follows:

[0048] C1. Activation Process Before Transaction: The hardware wallet 10 activates its wallet function using the obtained activation password and stores the activation password using its internal security chip 102. After activation, the hardware wallet 10 can establish a connection with the smart terminal 20. Further, the smart terminal 20 obtains a key generation instruction and sends it to the hardware wallet 10. The hardware wallet 10 generates a root key based on the key generation instruction. The hardware wallet then generates a wallet private key and an OPENID private key based on the root key, and further generates a wallet public key based on the wallet private key. The hardware wallet 10 stores the generated wallet private key and OPENID private key using the aforementioned security chip 102 and sends the wallet public key to the smart terminal 20, enabling the smart terminal 20 to calculate the wallet address based on the wallet public key. At this point, the hardware wallet 10 stores the activation password and wallet private key, while the smart terminal 20 stores the wallet public key and wallet address.

[0049] C2. Pre-transaction login process: Hardware wallet 10 obtains the user's login password and verifies the user's identity using the login password and the stored activation password. Further, the user retrieves the stored OPENID account on the smart terminal 20 and sends the OPENID account to hardware wallet 10. Hardware wallet 10 verifies the received OPENID account using the OPENID private key stored in its security chip and sends the verification result back to smart terminal 20. If both the user's identity and OPENID account are successfully verified, the transaction can proceed.

[0050] C3. Transaction Process: The smart terminal 20 obtains relevant data from the blockchain network, constructs corresponding transaction data, and sends this transaction data to the hardware wallet 10. The hardware wallet 10 receives the transaction data, reads the wallet address contained in the transaction data, obtains the wallet private key stored in the hardware wallet 10 based on the wallet address, further signs the transaction data using the wallet private key, and sends the signed transaction data to the smart terminal 20. The smart terminal 20 encrypts the signed transaction data and broadcasts it to the blockchain network.

[0051] For further information, please refer to [link / reference]. Figure 2 , Figure 2 This is a flowchart of the first embodiment of the blockchain-based wallet system usage method of the present invention. The hardware wallet usage method of this embodiment is based on... Figure 1 The wallet system shown is as follows: Figure 2 As shown, the wallet system usage method in this embodiment may include the following steps:

[0052] In step S11, the hardware wallet activates its wallet function using the obtained activation password.

[0053] The wallet function of the hardware wallet is activated by the user. The hardware wallet obtains the activation password entered by the user to activate the wallet function. After the wallet function of the hardware wallet is activated, it can communicate transaction information with the smart terminal.

[0054] This embodiment uses an activation password as an example of fingerprint information. The hardware wallet is equipped with a fingerprint module. The hardware wallet obtains the fingerprint information entered by the user when activating the hardware wallet through this fingerprint module, and uses this fingerprint information as the activation password to activate the wallet function. The hardware wallet also includes a security chip. The fingerprint module is connected to the security chip and sends the fingerprint information it obtains to the security chip, which stores the fingerprint information used during activation.

[0055] In step S12, the smart terminal acquires transaction data.

[0056] Once activated, the hardware wallet can communicate with the smart terminal regarding transaction data. During a transaction, the user initiates a transaction request through the smart terminal. The smart terminal then retrieves relevant data from the blockchain network, constructs transaction data corresponding to the transaction request, and sends this transaction data to the hardware wallet. The transaction data sent by the smart terminal at this time includes at least the wallet address, transaction amount, and counterparty information related to the transaction. The smart terminal stores the wallet's public key, which can be used to verify the data retrieved from the blockchain network.

[0057] In step S13, the hardware wallet obtains the wallet address contained in the transaction data, obtains the corresponding wallet private key based on the wallet address, signs the transaction data using the wallet private key, and sends the signed transaction data to the smart terminal.

[0058] After the hardware wallet receives the transaction data sent by the smart terminal, it can read the wallet address contained in the transaction data, obtain the corresponding wallet private key based on the wallet address, sign the transaction data using the wallet private key, and send the signed transaction data to the smart terminal.

[0059] In step S14, the smart terminal receives the signed transaction data and broadcasts it to the blockchain network.

[0060] The smart terminal processes the transaction based on the signed transaction data, thereby completing the transfer operation; and broadcasts the signed transaction data to the blockchain network.

[0061] In this embodiment, the interaction between the hardware wallet and the smart terminal can be as follows: Figure 3 As shown, in this embodiment, step S11 is a step performed before the transaction, while steps S12 to S14 are steps performed during the transaction.

[0062] For further information, please refer to [link / reference]. Figure 4 In another embodiment, after the wallet function of the hardware wallet is activated in step S11, the following steps may also be included:

[0063] In step S15, the hardware wallet obtains a key generation instruction, generates a wallet key pair based on the key generation instruction, and stores the wallet key pair.

[0064] The smart terminal receives a key generation instruction and sends it to the hardware wallet. The hardware wallet receives the key generation instruction from the smart terminal, generates a wallet key pair based on the instruction, and stores the generated key pair. In this embodiment, the wallet key pair generated by the hardware wallet is also stored in a security chip.

[0065] It is understandable that the hardware wallet generates wallet key pairs before the transaction begins. That is, before a user makes a transaction using the hardware wallet, the hardware wallet needs to generate the corresponding wallet key pair. When making a transaction using the hardware wallet, the wallet key stored in it is used to sign the transaction data.

[0066] Furthermore, in blockchain technology, a wallet key pair includes a private key and a public key. After receiving the key generation instruction, the hardware wallet uses a random number generator to generate a set of random numbers, thus obtaining the private key. The corresponding public key is then calculated using an elliptic curve algorithm. Note that the private key cannot be calculated from the public key; it can only be calculated from the private key. The hardware wallet stores the private key using its internal security chip and sends the calculated public key to a smart terminal, allowing the smart terminal to calculate the corresponding wallet address. The smart terminal stores the received public key and the calculated wallet address. The wallet address and public key can be broadcast to the blockchain network via the smart terminal, while the private key is stored in the hardware wallet. Because the hardware wallet is always offline, the private key cannot be accessed by other devices outside the hardware wallet, thus enhancing user account security.

[0067] In this embodiment, the interaction between the hardware wallet and the smart terminal can be as follows: Figure 5 As shown, in this embodiment, steps S11 and S15 are steps performed before the transaction, while steps S12 to S14 are steps during the transaction.

[0068] For further information, please refer to [link / reference]. Figure 6 , Figure 6 This is a flowchart of the third embodiment of the usage method of the blockchain-based wallet system of the present invention. The usage method of this embodiment is also based on... Figure 1 The wallet system shown. (As shown) Figure 6 As shown, the wallet system usage method in this embodiment may include the following steps:

[0069] In step S21, the hardware wallet activates its wallet function using the obtained activation password.

[0070] In step S22, the hardware wallet obtains a key generation instruction, generates a wallet key pair based on the key generation instruction, and stores the wallet key pair.

[0071] In this embodiment, steps S21 and S22 are both execution steps of the hardware wallet before the transaction; furthermore, steps S21 and S22 are respectively related to... Figure 2 The steps S11 and S12 shown are shown. Figure 4 The steps shown in step S15 are the same and will not be repeated here.

[0072] In step S23, the hardware wallet obtains the wallet login password and determines whether the wallet login password matches the activation password.

[0073] During the transaction process, the user needs to log in to the hardware wallet. Only when the hardware wallet is successfully logged in can it process the transaction data obtained by the smart terminal to complete the transaction. In this embodiment, the user enters the corresponding wallet login password through the hardware wallet, and the hardware wallet obtains the wallet login password to complete the user login. Specifically, the hardware wallet obtains the wallet login password entered by the user during login, determines whether the wallet login password matches the activation password used by the user when activating the hardware wallet, and selects the subsequent execution steps based on the determination result; if the wallet login password matches the activation password, steps S25 and S26 are executed; if the wallet login password does not match the activation password, step S27 is executed.

[0074] Furthermore, taking the wallet login password as fingerprint information as an example, when a user logs in, they enter their login fingerprint information through the fingerprint module of the hardware wallet. The hardware wallet obtains the login fingerprint information and sends it to the security chip inside the hardware wallet. The security chip compares the received login fingerprint information with the fingerprint information entered during activation and determines whether the two match. If they match, it means that the user logging in at this time is the same user as the user who activated the hardware wallet, and the user authentication is completed, and the login is successful. If they do not match, it means that the user logging in at this time is not the same user as the user who activated the hardware wallet, and the user login cannot be completed.

[0075] In this embodiment, a preset matching degree can be set to determine whether the wallet login password and the activation password match; that is, the wallet login password and the activation password are compared to obtain the corresponding matching degree. If the obtained matching degree is greater than or equal to the preset matching degree, the wallet login password and the activation password are considered to match. If the obtained matching degree is less than the preset matching degree, the wallet login password and the activation password are considered to not match.

[0076] In step S24, the smart terminal acquires transaction data.

[0077] In step S25, the hardware wallet obtains the wallet address contained in the transaction data, obtains the wallet private key from the corresponding wallet key pair based on the wallet address, signs the transaction data using the wallet private key, and sends the signed transaction data to the smart terminal.

[0078] If the wallet login password matches the activation password, the user logs in successfully, and the hardware wallet can process the transaction data obtained from the smart terminal.

[0079] In step S26, the smart terminal receives the signed transaction data and broadcasts it to the blockchain network.

[0080] In this embodiment, steps S24 to S26 are respectively connected with... Figure 2 Steps S12 and S14 are the same as shown, and will not be repeated here. It can be understood that there is no explicit order of execution between steps S23 and S24. The execution subjects of the two are different. The execution subject of step S23 is the hardware wallet, while the execution subject of step S24 is the smart terminal. However, step S25 needs to be executed if the judgment result of step S23 is that the wallet login password matches the activation password.

[0081] In step S27, the hardware wallet displays a message indicating that wallet login failed.

[0082] If the wallet login password does not match the activation password, the login will fail and the user will be prompted.

[0083] In this embodiment, the interaction between the hardware wallet and the smart terminal can be as follows: Figure 7 As shown, in this embodiment, steps S21 and S22 are steps performed before the transaction, while steps S23 to S26 are steps performed during the transaction.

[0084] For further information, please refer to [link / reference]. Figure 8 , Figure 8 This is a flowchart of the fourth embodiment of the wallet system usage method based on blockchain of the present invention. The wallet system usage method in this embodiment is also based on... Figure 1 The wallet system shown. (As shown) Figure 8 As shown, the wallet system usage method in this embodiment may include the following steps:

[0085] In step S31, the hardware wallet activates its wallet function using the obtained activation password.

[0086] In step S32, the smart terminal creates an OPENID account.

[0087] In step S33, the hardware wallet obtains a key generation instruction, generates a root key based on the key generation instruction, generates a wallet key pair and an OPENID private key corresponding to the OPENID account based on the root key, and stores the wallet key pair and the OPENID private key.

[0088] Users create an OPENID account, i.e., an OPENID public key, through a smart terminal. Further, the hardware wallet generates a corresponding root key, calculates the OPENID private key and wallet private key based on the root key, and calculates the corresponding wallet public key using an elliptic curve algorithm based on the wallet private key. The wallet public key and wallet private key form a wallet key pair. At this point, the smart terminal stores the generated OPENID account, and the hardware wallet stores the generated OPENID private key and wallet private key. The hardware wallet utilizes its internal security chip to store the generated wallet private key and OPENID private key.

[0089] Furthermore, the hardware wallet sends the generated wallet public key to the smart terminal, which then calculates the corresponding wallet address based on the public key.

[0090] In this embodiment, steps S31 to S33 are steps performed by the hardware wallet and smart terminal before the transaction, which is the activation process of the hardware wallet, and at the same time, the corresponding wallet key pair, OPENID account and OPENID private key are generated.

[0091] In step S34, the hardware wallet obtains the wallet login password and determines whether the wallet login password matches the activation password.

[0092] In step S35, the smart terminal obtains the login instruction, calls the OPENID account, and sends the OPENID account to the hardware wallet.

[0093] In step S36, the hardware wallet receives the OPENID account, verifies the received OPENID account using the stored OPENID private key, and sends the verification result back to the smart terminal.

[0094] Steps S34 to S36 are the login process for the hardware wallet and smart terminal before the transaction.

[0095] On one hand, the hardware wallet obtains the login password and uses it along with the stored activation password to verify the user's identity; this step is related to... Figure 6 The steps shown in step S23 are the same, and will not be repeated here.

[0096] Furthermore, the user accesses the stored OPENID account on the smart terminal to log in. This requires verification using the OPENID private key, which is stored in the secure chip of the hardware wallet and is not sent to other devices. Therefore, the smart terminal sends the retrieved OPENID account to the hardware wallet. The hardware wallet receives the OPENID account, verifies it using the OPENID private key stored in its secure chip, and sends the verification result back to the smart terminal. If the OPENID account verification is successful, the login is completed on the smart terminal.

[0097] In step S37, the smart terminal acquires transaction data.

[0098] In step S38, the hardware wallet obtains the wallet address contained in the transaction data, obtains the wallet private key from the corresponding wallet key pair based on the wallet address, signs the transaction data using the wallet private key, and sends the signed transaction data to the smart terminal.

[0099] In step S39, the smart terminal receives the signed transaction data and broadcasts it to the blockchain network.

[0100] In step S310, the hardware wallet displays a message indicating that wallet login failed.

[0101] In this embodiment, steps S37 to S39 are respectively connected with... Figure 2 Steps S12 to S14 are the same as shown, and step S310 is the same as... Figure 6 The steps shown in step S27 are the same, and will not be repeated here.

[0102] In this embodiment, the interaction between the hardware wallet and the smart terminal can be as follows: Figure 9 As shown.

[0103] For further information, please refer to [link / reference]. Figure 10 , Figure 10 This is a flowchart of an embodiment of the blockchain-based wallet usage method of the present invention. The hardware wallet in this embodiment is... Figure 1 The hardware wallet 10 in the wallet system 100 shown. For example... Figure 10 As shown, the steps performed by the hardware wallet in this embodiment may include:

[0104] In step S41, the wallet function is activated using the obtained activation password.

[0105] In step S42, the wallet address contained in the transaction data is obtained, the corresponding wallet private key is obtained according to the wallet address, the transaction data is signed using the wallet private key, and the signed transaction data is sent to the smart terminal so that the smart terminal broadcasts the signed transaction data to the blockchain network.

[0106] In this embodiment, steps S41 and S42 are respectively related to Figure 2 Steps S11 and S13, which are performed by the hardware wallet as shown, will not be described again here.

[0107] Furthermore, the hardware wallet in this embodiment can execute... Figures 2 to 9 For details on the hardware wallet operations performed by the hardware wallet in the hardware wallet system shown, please refer to the line. Figures 2 to 9 The steps performed by the hardware wallet shown are not repeated here.

[0108] For further information, please refer to [link / reference]. Figure 11 , Figure 11 This is a flowchart of an embodiment of the blockchain-based smart terminal usage method of the present invention. The smart terminal in this embodiment is... Figure 1 The smart terminal 20 in the wallet system 100 shown. (As shown...) Figure 11 As shown, the steps performed by the smart terminal in this embodiment may include:

[0109] In step S51, transaction data is obtained after the wallet function of the hardware wallet is activated.

[0110] In step S52, the transaction data, which has been signed by the hardware wallet using the wallet's private key, is received and broadcast to the blockchain network.

[0111] In this embodiment, steps S51 and S52 are respectively related to Figure 2 Steps S12 and S14, which are executed by the smart terminal as shown, will not be described again here.

[0112] Furthermore, the smart terminal in this embodiment can execute... Figures 2 to 9 For details on the actions performed by the smart terminal in the hardware wallet system shown, please refer to the line. Figures 2 to 9 The steps performed by the smart terminal shown are not repeated here.

[0113] Please see Figure 12 , Figure 12 This is a schematic diagram of the structure of an embodiment of the electronic device of the present invention. For example... Figure 12 As shown, the electronic device 300 of this embodiment includes a processor 301 and a memory 302 interconnected with each other. The memory 302 stores a computer program that can run on the processor 301. The processor 301 can run the computer program stored in the memory 302 to implement... Figures 2 to 9 The execution content of the hardware wallet 10 in the first to fourth embodiments of the wallet system usage method shown will not be repeated here. In this embodiment, the electronic device 300 can be Figure 1 The hardware wallet 10 is shown in the wallet system 100.

[0114] Further reading Figure 12 The electronic device 300 of the present invention may further include a biometric acquisition module 303, which is connected to the processor 301 and is used to acquire the user's biometric information and send the acquired biometric information to the processor 301, which then executes the acquisition based on the acquired biometric information. Figures 2 to 9 The wallet system usage method shown illustrates the execution content of the hardware wallet 10 in the first to fourth embodiments. In this embodiment, the biometric acquisition module 303 can be a fingerprint module, and the corresponding acquired biometric information is fingerprint information. In other embodiments, the biometric acquisition module 303 can also be one of different types of acquisition modules, such as a fingerprint module, an iris acquisition module, a face information acquisition module, or a finger vein information acquisition module, or it can be a combination of multiple acquisition modules to form comprehensive biometric information.

[0115] Further reading Figure 12 The electronic device 300 in this embodiment may also include a Bluetooth communication module 304. The Bluetooth communication module 304 is connected to the processor 301 and is used to transmit the data processed by the processor 301 to other electronic devices connected to the electronic device 300 via Bluetooth communication, and to receive data sent by other electronic devices connected to the electronic device 300 via Bluetooth communication, thereby realizing Bluetooth communication between the electronic device 300 and other electronic devices.

[0116] Please see Figure 13 , Figure 13 This is a schematic diagram of the structure of an embodiment of the storage medium of the present invention. For example... Figure 13 As shown, the storage medium 400 in this embodiment stores executable program data 401, which, when executed, can achieve... Figures 2 to 9 The execution content of the hardware wallet and / or smart terminal in the first to fourth embodiments of the wallet system usage method shown will not be repeated here.

[0117] In this embodiment, the storage medium 400 can be a storage module of a smart terminal, a mobile storage device (such as a portable hard drive, USB flash drive, etc.), a network cloud drive, an application storage platform, or a server, or other media with storage functions. Furthermore, the storage medium 400 can also be... Figure 1 The storage module is set in the hardware wallet 10 and / or smart terminal 20 in the wallet system 100 shown.

[0118] The above are merely embodiments of the present invention and do not limit the patent scope of the present invention. Any equivalent structural or procedural transformations made based on the content of the present invention specification and drawings, or direct or indirect applications in other related technical fields, are similarly included within the patent protection scope of the present invention.

Claims

1. A method for using a blockchain-based wallet system, characterized in that, The method of use is applied to a hardware wallet system, which includes a smart terminal and a hardware wallet. The hardware wallet and the smart terminal communicate via Bluetooth technology, and the hardware wallet is always offline to the Internet. The hardware wallet uses the obtained activation password to activate the wallet function; The hardware wallet obtains a key generation instruction, generates a wallet private key and a wallet public key based on the key generation instruction, and sends the wallet public key to the smart terminal so that the smart terminal can calculate the wallet address based on the wallet public key; wherein, the wallet private key and the wallet public key form a wallet key pair; The smart terminal acquires transaction data after the wallet function is activated; The hardware wallet obtains the wallet address contained in the transaction data, obtains the corresponding wallet private key based on the wallet address, and signs the transaction data using the wallet private key, wherein the hardware wallet stores the wallet private key; and sends the signed transaction data to the smart terminal. The smart terminal receives the signed transaction data and broadcasts it to the blockchain network.

2. The method according to claim 1, characterized in that, The hardware wallet uses the obtained activation password to activate the wallet function, including: The hardware wallet uses its built-in fingerprint module to obtain fingerprint information and uses the fingerprint information as the activation password to activate the wallet function.

3. The method according to claim 2, characterized in that, The fingerprint information acquired by the fingerprint module is stored in the security chip within the hardware wallet.

4. The method according to claim 1, characterized in that, The method of use also includes: The smart terminal creates an OPENID account.

5. The method according to claim 4, characterized in that, After the hardware wallet activates its wallet function using the obtained activation password, the following steps are also included: The hardware wallet obtains a key generation instruction, generates a root key based on the key generation instruction, generates a wallet key pair and an OPENID private key corresponding to the OPENID account based on the root key, and stores the wallet key pair and the OPENID private key.

6. A storage medium, characterized in that, The system stores program data that can be executed to implement the operation of the blockchain-based wallet system usage method as described in any one of claims 1-5.

7. An electronic device, characterized in that, include: Interconnected memory and processor; The memory stores computer programs that can run on a processor; When the processor executes the computer program, it implements the operation of the blockchain-based wallet system usage method as described in any one of claims 1-5.

Citation Information

Patent Citations

  • Resource transaction method and electronic wallet system

    CN107993066A

  • Information processing method, device and system and hardware wallet

    CN108665250A