Digital currency interaction method, physical carrier of digital currency, terminal device and storage medium

Through the physical carrier of digital currency, the private and public keys of blockchain accounts are stored, offline digital currency ownership transfer is realized without relying on the network, solving the problems of complex use of digital currency and long transaction time, and improving ease of use and transaction efficiency.

CN112352241BActive Publication Date: 2025-05-30SHAANXI YUANGUANG HI TECH
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN201880094551.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2018-06-12
Publication Date
2025-05-30
Estimated Expiration
2038-06-12

AI Technical Summary

Technical Problem

The use of digital currencies has problems such as high learning costs, complex installation and use, long transactions and susceptibility to congestion.

Method used

Provide a digital currency interaction method, which uses digital currency physical carrier to store the private key and public key of blockchain account, and realizes offline digital currency ownership transfer that does not depend on the network. The method includes sending a signature request by the terminal device, signing and responding with an unreadable private key, and verifying the validity of the currency and completing the transaction online.

Benefits of technology

It realizes the ease of use and rapid transactions of digital currencies, reduces learning costs and transaction time, and avoids network congestion.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112352241B_ABST
    Figure CN112352241B_ABST
Patent Text Reader

Abstract

A method for digital currency interaction, a physical carrier of digital currency (10), a terminal device (20) and a storage medium. The physical carrier of digital currency (10) includes: a key chip (100) for storing a key pair of a blockchain account, wherein the private key in the key pair is unreadable in the key chip (100), and the public key in the key pair is readable in the key chip (100); the key chip (100) is further configured to, when receiving a signature request sent by the terminal device (20), sign the information carried in the signature request by using the private key, and return the signed information to the terminal device (20). This technical solution can realize the transfer of ownership of offline digital currency without relying on the network.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of digital currency, and specifically, to a method for digital currency interaction, a physical carrier of digital currency, a terminal device, and a storage medium. Background Art

[0002] Currently, the use of digital currency has the following problems:

[0003] For ordinary consumers, the learning cost of using digital currency for transactions is much higher than that of using traditional currency. For example, using blockchain-based currency transactions requires users to have certain basic blockchain knowledge and understand the transaction characteristics of such currencies. Also, when using these digital currencies, the installation and use of applications such as wallets form a natural entry barrier. In addition, the online transaction process of digital currency takes a long time, and with the continuous growth of global transaction volume, the degree of transaction congestion is increasing, and both buyers and sellers of normal transactions may not be able to accept it. Summary of the Invention

[0004] To solve the above problems existing in the prior art, the present disclosure provides a method for digital currency interaction, a physical carrier of digital currency, a terminal device, and a storage medium, which can achieve the transfer of ownership of offline digital currency without relying on the network.

[0005] To achieve the above object, in a first aspect of the present disclosure, a method for digital currency interaction is provided. The method is applied to a physical carrier of digital currency, wherein the physical carrier of digital currency stores a private key and a public key of a blockchain account, and the method includes:

[0006] Receiving a signature request sent by a terminal device;

[0007] Signing the information carried in the signature request according to the private key stored in the physical carrier of digital currency, wherein the public key stored in the physical carrier of digital currency is readable, and the stored private key is unreadable;

[0008] Sending a signature response to the terminal device, where the signature response includes the information signed by the private key.

[0009] In a second aspect of the present disclosure, another method for digital currency interaction is provided. The method is applied to a terminal device, and the method includes:

[0010] Sending a signature request to a physical carrier of digital currency, wherein the physical carrier of digital currency stores a private key and a public key of a blockchain account, and the stored public key is readable, and the private key is unreadable;

[0011] Receive the signature response sent by the physical carrier of the digital currency, where the signature response includes the information carried in the signature request signed by the private key;

[0012] Verify the currency validity of the physical carrier of the digital currency according to the signature response.

[0013] The third aspect of the present disclosure provides a physical carrier of digital currency, including:

[0014] A key chip for storing a key pair, where the private key in the key pair is unreadable in the key chip, and the public key in the key pair is readable in the key chip;

[0015] The key chip is further configured to, when receiving a signature request sent by a terminal device, sign the information carried in the signature request using the private key, and return the signed information to the terminal device.

[0016] The fourth aspect of the present disclosure provides a physical carrier of digital currency, including:

[0017] A memory storing a computer program thereon;

[0018] A processor for executing the computer program in the memory to implement the steps of the method in the first aspect.

[0019] The fifth aspect of the present disclosure provides a computer-readable storage medium storing a computer program thereon, and when the computer program is executed by a processor, the steps of the method in the second aspect are implemented.

[0020] The sixth aspect of the present disclosure provides a terminal device, including:

[0021] A memory storing a computer program thereon;

[0022] A processor for executing the computer program in the memory to implement the steps of the method in the second aspect.

[0023] Adopting the above technical solutions, at least the following technical effects can be achieved:

[0024] Save the private key of the digital currency in physical hardware, which can serve as the physical carrier of the digital currency and act as physical currency for transaction and circulation. Among them, the private key in the physical carrier is completely generated and used in the hardware, and the private key never leaves the hardware itself, having the anti-counterfeiting and non-replicability of the currency. In this way, the transfer of the physical carrier of the digital currency in the user's hands is equivalent to completing a currency transaction, and there is no need for the user to perform online operations at the transaction site, with strong usability and short time consumption.

[0025] Furthermore, after obtaining the ownership of the physical carrier of digital currency, any user can query and withdraw the digital currency in the physical carrier online through a terminal device. For a physical carrier with a wallet balance of 0, it can also be recharged through a terminal device.

[0026] Other features and advantages of the present disclosure will be described in detail in the following specific implementation section. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] The accompanying drawings are used to provide a further understanding of the present disclosure, and constitute a part of the specification. Together with the following specific implementation, they are used to explain the present disclosure, but do not constitute a limitation to the present disclosure. In the accompanying drawings:

[0028] Figure 1 is a schematic structural diagram of a physical carrier of digital currency provided by an embodiment of the present disclosure;

[0029] Figure 2 is a schematic flowchart of an interaction method for verifying the currency validity of a physical carrier of digital currency provided by an embodiment of the present disclosure;

[0030] Figure 3 is a schematic flowchart of a method for online trading of digital currency of a physical carrier of digital currency provided by an embodiment of the present disclosure;

[0031] Figure 4 is a schematic flowchart of a method for generating a key pair of a physical carrier of digital currency provided by an embodiment of the present disclosure;

[0032] Figure 5 is a schematic flowchart of another method for generating a key pair of a physical carrier of digital currency provided by an embodiment of the present disclosure;

[0033] Figure 6 is a schematic flowchart of a method for recharging and querying the balance of a physical carrier of digital currency provided by an embodiment of the present disclosure;

[0034] Figure 7 is a schematic flowchart of a method for verifying the hardware legality of a physical carrier of digital currency provided by an embodiment of the present disclosure;

[0035] Figure 8 is Figure 1 a schematic diagram of an application scenario of the physical carrier 10 of digital currency shown;

[0036] Figure 9 is a schematic structural diagram of a terminal device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0037] The following will describe in detail the specific embodiments of the present disclosure with reference to the accompanying drawings. It should be understood that the specific embodiments described herein are only for explaining and illustrating the present disclosure, and are not used to limit the present disclosure.

[0038] An embodiment of the present disclosure provides a physical carrier for digital currency, such as Figure 1 As shown, the physical carrier 10 of digital currency includes:

[0039] A key chip 100, which is used to store the key pair of the blockchain account. Among them, the private key in the key pair is unreadable in the key chip, and the public key in the key pair is readable in the key chip.

[0040] The key chip 100 is further used to, when receiving a signature request sent by a terminal device, sign the information carried in the signature request with the private key, and return the signed information to the terminal device.

[0041] Among them, the fact that the private key is unreadable in the key chip means that the private key is protected by hardware. For example, a high-security cryptographic chip is used, and the generation, encryption, decryption, signature verification and other calculation processes of the key are all completed within the cryptographic chip, ensuring that the private key does not leave the cryptographic chip, eliminating the backup and recovery of the private key, and having the anti-counterfeiting and non-replicability of currency.

[0042] It is worth noting that the wallet address in the blockchain account is generated according to the public key. Therefore, the readability of the public key in the key chip is for the terminal device to perform operations such as balance query or recharge on the physical carrier of the digital currency.

[0043] The key chip signs the information carried in the signature request of the terminal device with the private key, which can realize the verification of the currency validity of the physical carrier of digital currency by the terminal device, and the terminal device completes the transfer operation online. That is to say, after a user obtains the physical carrier of digital currency, the user can verify the authenticity of the physical carrier of digital currency through the terminal device, and based on the private key signature of the physical carrier of digital currency, initiate an online currency transaction in the blockchain network and transfer the balance of the physical carrier of digital currency to other blockchain accounts. Among them, the creation of the online transaction can be initiated by the terminal device or by the physical carrier of digital currency.

[0044] Optionally, a manufacturer's certificate is further stored in the key chip 100, and the manufacturer's certificate is used to verify the hardware legality of the physical carrier of digital currency. Among them, the manufacturer's certificate is obtained by signing the public key of the device key pair generated for the physical carrier of digital currency with the private key in the production batch key pair of the manufacturer.

[0045] In addition, Figure 1It is illustrated by using a card - type physical carrier, such as an IC card (Integrated Circuit Card). In this way, the physical carrier of this digital currency does not require a power supply design and a battery module. In specific implementation, the physical carrier of this digital currency can be any programmable smart card, such as a Java Card, and its shape can also be coin - type. The present disclosure does not limit this. Moreover, all interactions between the physical carrier of the digital currency and the terminal device can be contact - type or non - contact - type.

[0046] The contact - type can be, for example, NFC communication (Near Field Communication). In this way, the terminal device can be a smart phone with an NFC interface. By using NFC two - way identification and connection, there is no fixed master - slave relationship between the two communication parties, and the physical carrier of the digital currency can operate in a power - off environment.

[0047] Specifically, in the embodiments of the present disclosure, the function for connecting and communicating with the terminal device can be integrated into the key chip 100. In a possible implementation manner, the communication function of the physical carrier of the digital currency can also be separately set from the key chip. That is to say, the physical carrier of the digital currency further includes a communication module connected to the key chip, where the communication module is used to communicate with the terminal device in at least one of the following ways: NFC communication, Bluetooth communication, infrared communication, radio communication, contact - type communication.

[0048] On the appearance of the physical carrier of this digital currency, a currency denomination identifier can also be set. In this way, before issuing the physical carrier of the digital currency, the issuing institution can recharge it according to the denomination size set on the appearance of the physical carrier of the digital currency, so as to keep the denomination size seen by the user consistent with the actual amount size in the blockchain account of the physical carrier of the digital currency. The denomination identifier can be made by means such as printing, stamping, casting, etc. Optionally, the issuing institution can also set the release time, number, product information, etc. corresponding to the physical carrier of the digital currency according to actual needs. The present disclosure does not limit this.

[0049] By using the above - mentioned physical carrier of the digital currency, the physical carrier of the digital currency can act as physical currency for transaction and circulation. In this way, the transfer of the physical carrier of the digital currency in the user's hand is equivalent to completing a currency transaction. There is no need for the user to perform online operations at the transaction site, which has strong usability and short time consumption. Moreover, after any user obtains the ownership of the physical carrier of the digital currency, the user can subsequently query and withdraw the digital currency in the physical carrier online through the terminal device, and can also recharge it through the terminal device.

[0050] Specifically, the interaction method between the physical carrier of the digital currency and the terminal device can specifically refer to the technical solutions provided in the following method embodiments.

[0051] An embodiment of the present disclosure provides an interaction method between a physical carrier of digital currency and a terminal device. The physical carrier of digital currency may be, for example, Figure 1 the physical carrier of digital currency 10 as shown.

[0052] Specifically, the interaction method includes an interaction method for verifying the currency validity of the physical carrier of digital currency. As Figure 2 shown, it includes:

[0053] S201. The terminal device sends an authentication challenge request to the physical carrier of digital currency.

[0054] S202. The physical carrier of digital currency receives the authentication challenge request.

[0055] S203. The physical carrier of digital currency signs the information carried in the authentication challenge request according to the private key of the blockchain account stored.

[0056] For example, the information may be a challenge code.

[0057] S204. The physical carrier of digital currency sends an authentication challenge response to the terminal device, and the authentication challenge response includes the information signed by the private key.

[0058] Among them, the information signed by the private key is used for the terminal device to verify the validity of the private key of the physical carrier of digital currency.

[0059] S205. The terminal device receives the authentication challenge response.

[0060] In addition, the verification of the currency validity of the physical carrier of digital currency may further include verifying whether the private key has been used and whether the account balance is correct. Therefore, in a possible implementation manner of the embodiment of the present disclosure, the above authentication challenge response may further include the public key stored in the physical carrier of digital currency and the usage status information of the private key.

[0061] In this way, after receiving the authentication challenge response, the terminal device may further execute the following steps S206 to step S208.

[0062] S206. The terminal device performs signature authentication on the information signed by the private key to obtain an authentication result.

[0063] Specifically, the terminal device performs signature authentication on the information signed by the private key. If the authentication passes, it is considered that the private key of the physical carrier of digital currency is valid.

[0064] S207. The terminal device queries the balance in the wallet of the blockchain account in the blockchain network by using the public key.

[0065] S208. Determine whether the digital currency physical carrier is valid according to the usage status of the private key, the authentication result, and the balance.

[0066] Taking Figure 1 the digital currency physical carrier 10 shown as an example, the key chip 100 records the usage status of the private key. Specifically, the key chip 100 is used to change the usage status of the private key to "used" after using the private key to sign a currency transaction. In this way, the terminal device can confirm whether the digital currency of the digital currency physical carrier has been withdrawn based on the usage status information of the private key. If the usage status information of the private key indicates that the private key has been used, it can be determined that the digital currency of the digital currency physical carrier is being traded or the transaction has been completed. At this time, the terminal device needs to further query the balance from the blockchain network through the public key address.

[0067] Table 1 below provides the corresponding relationship between the combination of the validity of the private key, the usage status of the private key, the account balance, and the status of the digital currency physical carrier:

[0068]

[0069] Table 1

[0070] Among them, in the safe state, the digital currency physical carrier can be used as physical currency for offline transactions; in the state of issuance error, the digital currency physical carrier is restored by the issuing institution; in the unsafe state, the digital currency physical carrier may have signed a transaction using the private key, but the transaction has not been confirmed yet. Among them, reasons such as the transaction not being broadcast to the blockchain network or not being accepted by the blockchain network can all lead to the transaction being in an unconfirmed state. In this state, the digital currency physical carrier cannot be used for offline transactions; the digital currency physical carrier that has been withdrawn can be recharged by the issuing institution or the affiliated user; the forged digital currency physical carrier can be destroyed. In specific implementation, it can be considered that only the currency of the digital currency physical carrier in the safe state is valid, that is, it can be traded.

[0071] Therefore, in a possible application scenario, when a user with a digital currency physical carrier makes a purchase offline and the payee receives the digital currency physical carrier, the payee uses the smart phone carried by himself / herself to detect the status of the received digital currency physical carrier, and the detection method is as Figure 2 shown. When it is confirmed that the digital currency physical carrier is in a safe state, the transaction is completed. If the status of the digital currency physical carrier is other states, the collection can be refused.

[0072] In the application scenarios exemplified above, the transfer of the physical carrier of digital currency in the user's hands is equivalent to completing a currency transaction, and no online operation by the user is required at the transaction site. Further, after the payee obtains the physical carrier of digital currency, subsequent online transfers can be made. For example, if the payee has an account in the blockchain network, after receiving the physical carrier of digital currency, the payee can transfer the digital currency to their own account wallet.

[0073] That is to say, the interaction method between the physical carrier of digital currency and the terminal device can also include a method for conducting online transactions with digital currency, such as Figure 3 shown, including:

[0074] S301. The terminal device sends a transaction request to the physical carrier of digital currency.

[0075] Among them, the transaction request includes currency transaction information, such as the payee address. The currency transaction information is created by the terminal device based on user operations.

[0076] S302. The physical carrier of digital currency receives the transaction request.

[0077] S303. The physical carrier of digital currency signs the currency transaction information carried in the transaction request according to the private key of the stored blockchain account.

[0078] S304. The physical carrier of digital currency changes the usage status of the private key to used.

[0079] Among them, the usage status information of the private key recorded by the physical carrier of digital currency is readable and is used by the terminal device to determine whether the currency of the physical carrier of digital currency is safe and valid in combination with the validity of the private key and the balance.

[0080] S305. The physical carrier of digital currency sends a transaction response to the terminal device.

[0081] The transaction response includes the currency transaction information signed by the private key.

[0082] S306. The terminal device receives the transaction response.

[0083] S307. The terminal device initiates a currency transaction to the blockchain network according to the transaction response.

[0084] Specifically, before initiating a currency transaction, the terminal device can also verify the currency validity of the physical carrier of digital currency. For example, the transaction response includes the usage status information of the private key and the public key stored by the physical carrier of digital currency. After receiving the transaction response, the terminal device executes Figure 2 the steps S206 to S208 shown, and for details, reference can be made to Figure 2The corresponding description is not repeated here. After determining that the physical carrier of the digital currency is secure and effective, the terminal device starts to execute the process of initiating a currency transaction to the blockchain network. It should be noted that the process of the terminal device initiating a currency transaction to the blockchain network is the same as the existing online blockchain transaction process, which is not repeated here.

[0085] In addition, for the sake of easy understanding, the above description uses the method of method steps. However, those skilled in the art should know that the technical solution provided by the embodiments of the present disclosure is not limited by the sequence of steps. For example, the step of S304 above can be carried out after the step of S305. And, Figure 3 The method shown is only a possible implementation manner, and there may be other alternative ways. For example, the currency transaction information can be created by the physical carrier of the digital currency, and after the created currency transaction information is signed with the private key, a transaction request is sent to the terminal device.

[0086] Comprehensively Figure 2 and Figure 3 the method steps shown, on the side of the physical carrier of the digital currency, its interaction method with the terminal device includes: receiving a signature request sent by the terminal device; signing the information carried by the signature request according to the private key stored in the physical carrier of the digital currency; sending a signature response to the terminal device, where the signature response includes the information signed with the private key. Among them, the signature request can be, for example, Figure 2 the authentication challenge request described in Figure 3 or the transaction request described in

[0087] In this case, after the physical carrier of the digital currency signs the currency transaction information with the private key, it can also change the usage status of the private key to used.

[0088] Optionally, the physical carrier of the digital currency can also create currency transaction information, sign the currency transaction information with the private key, and send a transaction request to the terminal device. The transaction request includes the signed currency transaction information, and the transaction request is used for the terminal device to initiate a currency transaction to the blockchain network according to the currency transaction information. Figure 2 On the side of the terminal device, its interaction method with the physical carrier of the digital currency includes: sending a signature request to the physical carrier of the digital currency, such as Figure 3 the authentication challenge request described in

[0089] Specifically, when the signature response includes the usage status of the private key recorded in the digital currency physical carrier and the public key, the terminal device's verification of the currency validity of the digital currency physical carrier includes: performing signature authentication on the information signed by the private key to obtain an authentication result; querying the balance in the wallet of the blockchain account of the blockchain network using the public key; and determining whether the digital currency physical carrier is valid based on the usage status of the private key, the authentication result, and the balance.

[0090] Optionally, when the terminal device receives a transaction request sent by the digital currency physical carrier, and the transaction request includes currency transaction information signed by the private key, the terminal device can also initiate a currency transaction to the blockchain network according to the transaction request.

[0091] The interaction method between the digital currency physical carrier and the terminal device can also include a method for generating a key pair, such as Figure 4 shown, including:

[0092] S401. The terminal device sends a key generation request to the server, and this key generation request is used for the server to authenticate the terminal device.

[0093] Among them, the server is specifically the service backend of the issuing structure. The server can authorize a specified terminal device to have the permission to control the digital currency physical carrier to generate a key pair. In this way, when the server receives a key generation request sent by a certain terminal device, it needs to authenticate the terminal device to determine whether the terminal device has the corresponding permission.

[0094] S402. The server receives the key generation request and authenticates the terminal device according to the key generation request.

[0095] S403. The server sends a key generation response to the terminal device, and this key generation response includes the authentication result.

[0096] S404. The terminal device receives the key generation response sent by the server.

[0097] S405. If the authentication result indicates that the terminal device has the permission to control the digital currency physical carrier to generate a key pair, then the terminal device sends a key pair generation instruction to the digital currency physical carrier.

[0098] Among them, the key generation response also includes relevant information of the account registered in the blockchain network, and this relevant information is used to generate a key pair and a wallet address. For example, this relevant information can include the mnemonic words in the blockchain wallet AToken. The key pair generation instruction sent by the terminal device to the digital currency physical carrier carries the relevant information and is used to trigger the digital currency physical carrier to generate a public key and a private key.

[0099] S406. The physical carrier of the digital currency receives the key pair generation instruction sent by the terminal device.

[0100] S407. The physical carrier of the digital currency generates a corresponding public key and private key according to the key pair generation instruction.

[0101] It should be noted that the above steps S401 to S407 may be steps in the initialization process of the physical carrier of the digital currency. If the key generation request is an initialization request, then in step S407, the generated public key and private key can be directly stored, where the private key is not readable and not exportable, and the public key is readable.

[0102] In addition, in order to reuse the physical carrier of the digital currency, in a possible implementation manner of the embodiments of the present disclosure, the key pair in the physical carrier of the digital currency can be regenerated. That is to say, the above key generation request can be a reset request. In this case, after the new key pair is generated in step S407, S408 is executed.

[0103] S408. If a key pair is already stored in the physical carrier of the digital currency, delete the key pair and store the newly generated public key and private key.

[0104] That is to say, the key pair in the physical carrier of the digital currency can be regenerated. When the key pair is regenerated, the existing key pair is lost. In actual applications, since the user can regenerate the key pair, but the regeneration of the key pair will cause the loss of the previous key pair, it is only recommended to perform a reset operation on the physical carrier of the digital currency with a balance of 0.

[0105] For the physical carrier of the digital currency that has newly generated a key pair, the balance of its account wallet is 0. At this time, by linking to the data terminal, the terminal device can read the public key address and then recharge the corresponding address. For the specific method steps, reference can be made to the following Figure 5 shown method steps. For the physical carrier of the digital currency that displays the currency denomination on its appearance, the corresponding denomination of the digital currency should be recharged when recharging.

[0106] It should be noted that for the above method embodiments, for the sake of simple description, they are all expressed as a series of action combinations. However, those skilled in the art should know that the present disclosure is not limited by the described action sequence.

[0107] Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily essential to the present disclosure. For example, the method for generating the key pair of the physical carrier of the digital currency can also be as Figure 5 shown, including:

[0108] S501. The physical carrier of the digital currency generates a key pair.

[0109] Among them, what triggers the physical carrier of the digital currency to generate a key pair can be the user's operation on the physical carrier of the digital currency. For example, the physical carrier of the digital currency itself provides an initialization or reset function button, allowing the user to trigger the physical carrier of the digital currency to generate a key pair by operating this button.

[0110] S502. If a key pair is already stored in the physical carrier of the digital currency, delete the key pair and store the public key and private key in the newly generated key pair.

[0111] Among them, the public key is readable and the private key is not readable.

[0112] S503. The physical carrier of the digital currency sends the public key of the newly generated key pair to the terminal device.

[0113] S504. The terminal device receives the public key sent by the physical carrier of the digital currency and writes the public key into the blockchain.

[0114] The terminal device writes the public key of the key pair newly generated by the physical carrier of the digital currency into the blockchain to complete the registration of a new account in the blockchain network. In specific implementation, the physical carrier of the digital currency can have the ability to communicate with the blockchain network. In this case, it can also be the physical carrier of the digital currency itself that initiates the registration of a new account in the blockchain network. The present disclosure does not make any limitations in this regard.

[0115] The interaction method between the physical carrier of the digital currency and the terminal device can also include methods for recharging and querying the balance of the physical carrier of the digital currency, such as Figure 6 shown, this method includes:

[0116] S601. The terminal device sends a public key reading instruction to the physical carrier of the digital currency.

[0117] S602. The physical carrier of the digital currency receives the public key reading instruction initiated by the terminal device.

[0118] S603. The physical carrier of the digital currency returns the stored public key to the terminal device according to the public key reading instruction.

[0119] Those skilled in the art should understand that the wallet address of the digital currency based on the blockchain is usually generated by the public key and may also be directly the public key. For the convenience of description, the embodiments of the present disclosure directly use the public key to represent the wallet address. According to the specific application scenario, the physical carrier of the digital currency can store the private key, public key, and the address generated based on the public key at the same time, among which the private key is not readable, and the public key and address are readable.

[0120] S604. The terminal device receives the public key returned by the physical carrier of the digital currency.

[0121] S605. The terminal device recharges or queries the balance of the wallet of the blockchain account corresponding to the physical carrier of the digital currency according to the public key.

[0122] Users can recharge the physical carrier of the digital currency that has been initialized. Or, for the physical carrier of the digital currency that has been withdrawn, when users need to conduct an offline transaction, they can recharge the physical carrier of the digital currency that has been withdrawn in advance.

[0123] Optionally, in order to prevent the issuing manufacturers of the physical carriers of digital currency from being counterfeited, in a possible implementation manner of the embodiments of the present disclosure, a manufacturer certificate may also be stored in the physical carrier of the digital currency. The manufacturer certificate is used to verify the hardware legality of the physical carrier of the digital currency. Among them, the manufacturer certificate is obtained by signing the public key of the device key pair generated for the physical carrier of the digital currency with the private key in the production batch key pair of the manufacturer.

[0124] Specifically, before the physical carrier of the digital currency leaves the factory, a key pair of the device can be generated. For different production batches, the manufacturer's device can generate a key pair for production. In this way, by signing the public key of the physical carrier of the digital currency read with the private key in the production batch key pair, the manufacturer certificate can be obtained. Further, the manufacturer's device can write the public key in the production batch key pair into the blockchain. In this way, after the physical carrier of the digital currency leaves the factory and circulates, the user terminal device can read the manufacturer certificate in the physical carrier of the digital currency and the public key of the manufacturer in the blockchain, and use the public key to perform signature authentication on the manufacturer certificate. If the authentication passes, it is determined that the physical carrier of the digital currency is issued by the manufacturer. If the authentication fails, it is determined that the physical carrier of the digital currency is counterfeited.

[0125] That is to say, the interaction method between the physical carrier of the digital currency and the terminal device may further include a method for verifying the hardware legality of the physical carrier of the digital currency, such as Figure 7 shown, this method includes:

[0126] S701. The terminal device sends a certificate reading instruction to the physical carrier of the digital currency.

[0127] S702. The physical carrier of the digital currency receives the certificate reading instruction.

[0128] S703. The physical carrier of the digital currency sends the manufacturer certificate to the terminal device according to the certificate reading instruction.

[0129] S704. The terminal device receives the manufacturer certificate.

[0130] S705. The terminal device obtains the manufacturer's public key stored in the blockchain.

[0131] Among them, the manufacturer's public key can be divided into production batches, and the manufacturer's key pairs corresponding to the digital currency physical carriers produced in different batches are different.

[0132] S706: The terminal device uses the manufacturer's public key to perform signature authentication on the manufacturer's certificate to obtain a signature authentication result.

[0133] S707. The terminal device displays to the user whether the hardware of the physical carrier of the digital currency is legal based on the signature authentication result.

[0134] Specifically, if the authentication passes, it is determined that the physical carrier of the digital currency is issued by the manufacturer; if the authentication fails, it is determined that the physical carrier of the digital currency is counterfeit.

[0135] Figures 2 to 7 The interaction between the terminal device and the physical carrier of the digital currency involved requires the establishment of a communication link between the terminal device and the physical carrier of the digital currency. The communication link can be wired or wireless, contact or contactless.

[0136] by Figure 1 Taking the digital currency physical carrier 10 as an example, Figure 8 As shown, NFC communication can be established between the key chip 100 and the terminal device 20 (illustrated as a smart phone), and the key chip 100 can be implemented based on the NFC communication. Figures 2 to 7 The steps of the physical carrier of digital currency in the method shown. The terminal device 20 is connected to the blockchain network 30 and the back-end server 40 for communication.

[0137] The present disclosure also provides another physical carrier of digital currency, including:

[0138] a memory having a computer program stored thereon;

[0139] A processor is used to execute the computer program in the memory to implement the method steps performed by the physical carrier of digital currency in the interactive method provided in the above method embodiment.

[0140] That is to say, the execution subject for implementing the above-mentioned digital currency interaction method can have different physical implementation methods. Figure 1 The digital currency physical carrier 10 shown is only one possible physical implementation method. Based on the technical solution provided by the embodiment of the present disclosure, other methods that can be thought of by ordinary technicians in this field also fall within the protection scope of the present invention.

[0141] Embodiments of the present disclosure also provide a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the method steps executed by the terminal device in the interaction method provided in the foregoing method embodiments are implemented.

[0142] Embodiments of the present disclosure also provide a terminal device, including:

[0143] a memory, on which a computer program is stored;

[0144] a processor, configured to execute the computer program in the memory to implement the method steps executed by the terminal device in the interaction method provided in the foregoing method embodiments.

[0145] Exemplarily, Figure 9 is a possible structural schematic diagram of the foregoing terminal device. As Figure 9 shown, the terminal device 900 may include: a processor 901, a memory 902. The terminal device 900 may further include one or more of a multimedia component 903, an input / output (I / O) interface 904, and a communication component 905.

[0146] Among them, the processor 901 is used to control the overall operation of the terminal device 900 to complete the method steps executed by the terminal device in the interaction method provided in the above method embodiments. The memory 902 is used to store various types of data to support the operation of the terminal device 900. These data may include, for example, instructions for any application or method operating on the terminal device 900, as well as application-related data, such as contact data, sent and received messages, pictures, audio, video, and so on. The memory 902 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as Static Random Access Memory (SRAM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Erasable Programmable Read-Only Memory (EPROM), Programmable Read-Only Memory (PROM), Read-Only Memory (ROM), magnetic memory, flash memory, a magnetic disk, or an optical disc. The multimedia component 703 may include a screen and an audio component. Among them, the screen may be a touch screen, and the audio component is used to output and / or input audio signals. For example, the audio component may include a microphone for receiving external audio signals. The received audio signal may be further stored in the memory 902 or sent through the communication component 905. The audio component further includes at least one speaker for outputting audio signals. The I / O interface 904 provides an interface between the processor 901 and other interface modules, and the above other interface modules may be a keyboard, a mouse, buttons, etc. These buttons may be virtual buttons or physical buttons. The communication component 905 is used for wired or wireless communication between the terminal device 900 and other devices. Wireless communication, such as Wi-Fi, Bluetooth, Near Field Communication (NFC), 2G, 3G, or 4G, or a combination of one or more of them. Accordingly, the communication component 905 may include: a Wi-Fi module, a Bluetooth module, and an NFC module.

[0147] In an exemplary embodiment, the terminal device 900 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components, and is used to execute the method steps performed by the terminal device in the interaction method provided in the foregoing method embodiment.

[0148] In addition, a computer-readable storage medium provided in an embodiment of the present disclosure may be the foregoing memory 902 including program instructions, and the foregoing program instructions may be executed by the processor 901 of the terminal device 900 to complete the method steps performed by the terminal device in the interaction method provided in the foregoing method embodiment.

[0149] The preferred embodiments of the present disclosure have been described in detail above in conjunction with the accompanying drawings. However, the present disclosure is not limited to the specific details in the above embodiments. Within the scope of the technical concept of the present disclosure, various simple modifications can be made to the technical solutions of the present disclosure, and these simple modifications all fall within the protection scope of the present disclosure.

[0150] In addition, it should be noted that, among the various specific technical features described in the foregoing specific embodiments, they can be combined in any suitable manner without conflict. For example, in the process of online transactions, the currency validity and hardware legality of the physical carrier of digital currency can be verified. That is to say, combine Figure 2 and Figure 7 the methods into the Figure 3 method flow shown. To avoid unnecessary repetition, the present disclosure will not separately describe various possible combination methods.

[0151] In addition, any combination can be made between various different embodiments of the present disclosure, as long as it does not violate the idea of the present disclosure, it should also be regarded as the content disclosed by the present disclosure.

Claims

1. A method for interacting with digital currency, characterized in that, the method is applied to a physical carrier of digital currency, wherein a private key and a public key of a blockchain account are stored in a key chip of the physical carrier of digital currency, and the method includes: Receiving a signature request sent by a terminal device; Signing the information carried in the signature request according to the private key stored in the physical carrier of digital currency, wherein the public key stored in the physical carrier of digital currency is readable, and the stored private key is unreadable; Sending a signature response to the terminal device, the signature response including the information signed by the private key; The key chip records the usage status of the private key, and the signature response further includes the usage status information of the private key. The information signed by the private key and the usage status information are used by the terminal device to verify the currency validity of the physical carrier of digital currency in combination with the balance in the wallet of the blockchain account.

2. The method according to claim 1, characterized in that, the information carried in the signature request includes currency transaction information, and the method further includes: Changing the usage status of the private key to used, wherein the signature response is used for the terminal device to initiate a currency transaction to the blockchain network according to the currency transaction information signed by the private key.

3. The method according to claim 1 or 2, characterized in that, the method further includes: Generating a key pair; If a key pair is already stored in the physical carrier of digital currency, deleting the key pair and storing the public key and private key of the newly generated key pair; Sending the public key of the newly generated key pair to the terminal device so that the terminal device writes the public key to the blockchain.

4. The method according to claim 3, characterized in that, the generating of the key pair includes: Receiving a key pair generation instruction sent by the terminal device; Generating a corresponding public key and private key according to the key pair generation instruction.

5. The method according to claim 1, characterized in that, the method further includes: Creating currency transaction information; Signing the currency transaction information with the private key; Sending a transaction request to the terminal device, the transaction request including the signed currency transaction information, and the transaction request is used for the terminal device to initiate a currency transaction to the blockchain network according to the currency transaction information.

6. The method according to claim 1 or 2, characterized in that, the method further includes: Receiving a public key reading instruction initiated by the terminal device; Returning the public key stored in the physical carrier of digital currency to the terminal device according to the public key reading instruction, and the public key is used for the terminal device to recharge the wallet of the blockchain account or query the balance.

7. The method according to claim 1 or 2, characterized in that, a manufacturer's certificate is also stored in the physical carrier of digital currency, and the manufacturer's certificate is used to verify the hardware legality of the physical carrier of digital currency, wherein the manufacturer's certificate is obtained by signing the public key of the device key pair generated for the physical carrier of digital currency with the private key in the production batch key pair of the manufacturer.

8. An interaction method for digital currency, characterized in that, the method is applied to a terminal device, and the method includes: sending a signature request to a physical carrier of digital currency, wherein the physical carrier of digital currency stores a private key and a public key of a blockchain account, and the stored public key is readable while the private key is unreadable; receiving a signature response sent by the physical carrier of digital currency, the signature response including the information carried in the signature request signed by the private key; examining the currency validity of the physical carrier of digital currency according to the signature response; the signature response further includes the usage status of the private key recorded in the physical carrier of digital currency, and examining the currency validity of the physical carrier of digital currency according to the signature response includes: performing signature authentication on the information signed by the private key to obtain an authentication result; querying the balance in the wallet of the blockchain account in the blockchain network by using the public key; examining the currency validity of the physical carrier of digital currency according to the usage status of the private key, the authentication result, and the balance.

9. The method according to claim 8, characterized in that, the signature request includes currency transaction information, and the method further includes: initiating a currency transaction to the blockchain network according to the signature response.

10. The method according to claim 8 or 9, characterized in that, the physical carrier of digital currency further stores a manufacturer's certificate, the manufacturer's certificate is obtained by signing the public key of the device key pair generated for the physical carrier of digital currency by using the private key in the production batch key pair of the manufacturer, and the method further includes: sending a certificate reading instruction to the physical carrier of digital currency; receiving the manufacturer's certificate returned by the physical carrier of digital currency; obtaining the public key in the production batch key pair of the manufacturer from the blockchain network; performing signature authentication on the manufacturer's certificate according to the public key, and if the authentication is successful, it indicates that the hardware of the physical carrier of digital currency is legal.

11. The method according to claim 8 or 9, characterized in that, the method further includes: sending a key generation request to a server, the key generation request being used for the server to authenticate the terminal device; receiving a key generation response sent by the server, the key generation response including an authentication result; if the authentication result indicates that the terminal device has the permission to control the physical carrier of digital currency to generate a key pair, then sending a key pair generation instruction to the physical carrier of digital currency, the key pair generation instruction being used to trigger the physical carrier of digital currency to generate a public key and a private key.

12. The method according to claim 8 or 9, characterized in that, the method further includes: sending a public key reading instruction to the physical carrier of digital currency; receiving the public key returned by the physical carrier of digital currency; recharging or querying the balance of the wallet of the blockchain account according to the public key.

13. The method according to claim 8 or 9, characterized in that, the method further includes: Receive a transaction request sent by the physical carrier of the digital currency, where the transaction request includes currency transaction information signed with the private key; Initiate a currency transaction to the blockchain network according to the transaction request.

14. A physical carrier of digital currency, characterized in that, it includes: A key chip for storing the key pair of the blockchain account, where the private key in the key pair is unreadable in the key chip, and the public key in the key pair is readable in the key chip; The key chip is further configured to record the usage status of the private key, and when receiving a signature request sent by a terminal device, use the private key to sign the information carried in the signature request, and return the signed information and the usage status information of the private key to the terminal device; Among them, the information signed with the private key and the usage status information are used by the terminal device to verify the currency validity of the physical carrier of the digital currency in combination with the balance in the wallet of the blockchain account.

15. The physical carrier of digital currency according to claim 14, characterized in that, The physical carrier of digital currency is a contact or non-contact IC card for circulation as physical currency; or, the physical carrier of digital currency is provided with a currency denomination identifier.

16. The physical carrier of digital currency according to claim 14, characterized in that, It further includes: A communication module connected to the key chip; The communication module is used to establish connection communication with a terminal device, where the connection communication method includes at least one of the following: NFC communication, Bluetooth communication, infrared communication, contact communication.

17. The physical carrier of digital currency according to any one of claims 14 to 16, characterized in that, The key chip also stores a manufacturer's certificate, which is used to verify the hardware legality of the physical carrier of the digital currency, where the manufacturer's certificate is obtained by signing the public key of the device key pair generated for the physical carrier of the digital currency with the private key in the production batch key pair of the manufacturer.

18. A physical carrier of digital currency, characterized in that, it includes: A memory on which a computer program is stored; A processor for executing the computer program in the memory to implement the steps of the method according to any one of claims 1 to 7.

19. A computer-readable storage medium on which a computer program is stored, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 8 to 13.

20. A terminal device, characterized in that, it includes: A memory on which a computer program is stored; A processor for executing the computer program in the memory to implement the steps of the method according to any one of claims 8 to 13.

Citation Information

Patent Citations

  • Method for independently generating and storing encrypted digital currency private key and device for bearing encrypted digital currency private key

    CN104463001A