CN112352241A - Digital currency interaction method, digital currency physical carrier, terminal device and storage medium - Google Patents

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

Info

Publication number
CN112352241A
CN112352241A CN201880094551.5A CN201880094551A CN112352241A CN 112352241 A CN112352241 A CN 112352241A CN 201880094551 A CN201880094551 A CN 201880094551A CN 112352241 A CN112352241 A CN 112352241A
Authority
CN
China
Prior art keywords
key
digital currency
physical carrier
currency
private key
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201880094551.5A
Other languages
Chinese (zh)
Inventor
王健
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Individual
Original Assignee
Individual
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Individual filed Critical Individual
Publication of CN112352241A publication Critical patent/CN112352241A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

A digital currency interaction method, a digital currency physical carrier (10), a terminal device (20) and a storage medium. The physical carrier (10) of digital currency comprises: a key chip (100) for storing a key pair of a blockchain account, wherein a private key of the key pair is unreadable in the key chip (100) and a public key of the key pair is readable in the key chip (100); the key chip (100) is further configured to, when receiving a signing request sent by a terminal device (20), sign information carried in the signing request by using the private key, and return the signed information to the terminal device (20). The technical scheme can realize the off-line digital currency ownership transfer independent of the network.

Description

Digital currency interaction method, digital currency physical carrier, terminal device and storage medium Technical Field
The present disclosure relates to the field of digital currency, and in particular, to a digital currency interaction method, a digital currency physical carrier, a terminal device, and a storage medium.
Background
Digital money is an alternative money in the form of electronic money, and nowadays digital sub-money, such as bitcoin, letelt coin, and PPCoin, is electronic money that is created, issued, and circulated by means of checksum cryptographic techniques. It features that P2P peer-to-peer network technology is used for distribution, management and circulation.
However, the use of digital currency currently has the following problems:
for the average consumer, the learning cost of transactions using digital currency can be significantly higher than the cost of transactions using traditional currency. For example, transactions using blockchain based currencies require the user to have some knowledge of the blockchain basis and to recognize the transaction characteristics of that currency. And the installation and use of applications such as purses also form a natural access threshold when using these digital currencies. In addition, the online transaction process of digital currency is time-consuming, for example, bit currency, due to its special characteristics, the confirmation time of the transaction is at least one hour, and as the global transaction volume continues to increase, the congestion degree of the transaction is increasing, and both the buyer and the seller in normal transaction may not accept the transaction.
Disclosure of Invention
In order to solve the above problems in the prior art, the present disclosure provides a digital currency interaction method, a digital currency physical carrier, a terminal device and a storage medium, which can implement offline digital currency ownership transfer independent of a network.
In order to achieve the above object, a first aspect of the present disclosure provides an interactive method for digital currency, the method being applied to a digital currency physical carrier, wherein the digital currency physical carrier stores a private key and a public key of a block chain account, and the method includes:
receiving a signature request sent by terminal equipment;
signing the information carried by the signing request according to the private key stored in the digital currency physical carrier, wherein the public key stored in the digital currency physical carrier is readable, and the stored private key is not readable;
and sending a signature response to the terminal equipment, wherein the signature response comprises the information signed by the private key.
The second aspect of the present disclosure provides another interactive method for digital currency, which is applied to a terminal device, and the method includes:
sending a signature request to a digital currency physical carrier, wherein the digital currency physical carrier stores a private key and a public key of a blockchain account, and the stored public key is readable and the private key is not readable;
receiving a signature response sent by the physical carrier of the digital currency, wherein the signature response comprises information carried by the signature request signed by the private key;
and checking the currency validity of the digital currency physical carrier according to the signature response.
A third aspect of the present disclosure provides a physical carrier for digital currency, comprising:
the key chip is used for storing a key pair, wherein a private key of the key pair is unreadable in the key chip, and a public key of the key pair is readable in the key chip;
and the key chip is also used for signing the information carried in the signature request by using the private key when receiving the signature request sent by the terminal equipment, and returning the signed information to the terminal equipment.
A fourth aspect of the present disclosure provides a physical carrier for digital currency, comprising:
a memory having a computer program stored thereon;
a processor for executing the computer program in the memory to implement the steps of the method of the first aspect.
A fifth aspect of the disclosure provides a computer readable storage medium, which when executed by a processor implements the steps of the method of the second aspect.
A sixth aspect of the present disclosure provides a terminal device, including:
a memory having a computer program stored thereon;
a processor for executing the computer program in the memory to implement the steps of the method of the second aspect.
By adopting the technical scheme, the following technical effects can be at least achieved:
the private key of the digital currency is stored in physical hardware, and the physical hardware can be used as a physical carrier of the digital currency and used as entity currency for transaction circulation. The private key in the physical carrier is completely generated and used in hardware, and the private key never leaves the hardware, so that the private key has currency anti-counterfeiting and non-replicability. Therefore, the transfer of the digital currency physical carrier in the hands of the user is equivalent to the completion of currency transaction, the online operation of the user is not needed in the transaction field, the usability is strong, and the consumed time is short.
Further, after any user obtains ownership of the physical carrier of the digital currency, the digital currency in the physical carrier can be inquired and extracted online through the terminal device. For the physical carrier with the wallet balance of 0, the physical carrier can be charged through the terminal equipment.
Additional features and advantages of the disclosure will be set forth in the detailed description which follows.
Drawings
The accompanying drawings, which are included to provide a further understanding of the disclosure and are incorporated in and constitute a part of this specification, illustrate embodiments of the disclosure and together with the description serve to explain the disclosure without limiting the disclosure. In the drawings:
FIG. 1 is a schematic diagram of a physical carrier for digital currency provided by an embodiment of the present disclosure;
FIG. 2 is a schematic flow chart diagram of an interactive method for verifying the currency validity of a physical carrier of digital currency according to an embodiment of the present disclosure;
FIG. 3 is a flow chart illustrating a method for online trading of digital currency on a physical carrier of digital currency according to an embodiment of the present disclosure;
FIG. 4 is a flow chart of a method for generating a digital currency physical carrier key pair according to an embodiment of the disclosure;
FIG. 5 is a schematic flow chart diagram of another method for generating a digital currency physical carrier key pair provided by an embodiment of the present disclosure;
FIG. 6 is a flow chart illustrating a method for loading and balance inquiry of a physical carrier of digital currency according to an embodiment of the present disclosure;
FIG. 7 is a flow chart diagram of a method of verifying hardware legitimacy of a physical carrier of digital currency provided by an embodiment of the present disclosure;
FIG. 8 is a schematic illustration of an application scenario of the digital currency physical carrier 10 shown in FIG. 1;
fig. 9 is a schematic structural diagram of a terminal device according to an embodiment of the present disclosure.
Detailed Description
The following detailed description of specific embodiments of the present disclosure is provided in connection with the accompanying drawings. It should be understood that the detailed description and specific examples, while indicating the present disclosure, are given by way of illustration and explanation only, not limitation.
The disclosed embodiment provides a digital currency physical carrier, as shown in fig. 1, a digital currency physical carrier 10 includes:
the key chip 100 is used for storing a key pair of a blockchain account, wherein a private key of the key pair is not readable in the key chip, and a public key of the key pair is readable in the key chip.
The key chip 100 is further configured to, when receiving a signature request sent by a terminal device, sign information carried in the signature request by using the private key, and return the signed information to the terminal device.
The private key is unreadable in the key chip, namely, the private key is protected by hardware, if a high-security password chip is adopted, the generation of the private key, the encryption and decryption, signature verification and other calculation processes are all completed in the password chip, the private key is ensured not to leave the password chip, the backup and recovery of the private key are avoided, and the anti-counterfeiting and non-replicability of the currency are realized.
It should be noted that the wallet address in the blockchain account is generated according to the public key, and therefore, the public key in the key chip is readable to implement operations such as balance inquiry or recharging of the physical carrier of the digital currency by the terminal device.
The key chip utilizes the private key to sign the information carried by the signature request of the terminal equipment, so that the terminal equipment can check the currency validity of the digital currency physical carrier, and the terminal equipment can complete the account transfer operation on line. That is to say, after a certain user obtains the physical carrier of digital currency, the authenticity of the physical carrier of digital currency can be verified through the terminal device, and based on the private key signature of the physical carrier of digital currency, online currency transaction can be initiated in the block chain network, and the balance of the physical carrier of digital currency is transferred to other block chain accounts. The creation of the online transaction can be initiated by the terminal device or the physical carrier of the digital currency.
Optionally, the key chip 100 further stores a manufacturer certificate, where the manufacturer certificate is used to verify the hardware legitimacy of the digital currency physical carrier, and the manufacturer certificate is obtained by signing a public key of a device key pair generated by the digital currency physical carrier with a private key of a production batch key pair of a manufacturer.
In addition, fig. 1 is illustrated with a Card-type physical carrier, such as an IC Card (Integrated Circuit Card), so that the digital currency physical carrier does not require a power supply design and a battery module. In practical implementation, the physical carrier of the digital currency may be any programmable smart Card, such as Java Card, and the modeling may also be a currency type, which is not limited in this disclosure. Furthermore, all the interactions described above involving the physical carrier of digital currency with the terminal device may be either contact or contactless.
For example, the terminal device may be a Near Field Communication (NFC) device, so that the terminal device may be a smartphone with an NFC interface. By adopting NFC bidirectional identification and connection, the two communication parties do not have a fixed master-slave relationship, and the digital currency physical carrier can operate in a powerless environment.
Specifically, the disclosed embodiment may integrate a function for connection communication with a terminal device into the key chip 100. In a possible implementation, the communication function of the digital currency physical carrier may also be provided separately from the key chip, that is, the digital currency physical carrier further comprises a communication module connected to the key chip, wherein the communication module is configured to communicate with the terminal device in at least one of the following manners: NFC communication, bluetooth communication, infrared communication, radio communication, contact communication.
The physical carrier of the digital currency can be provided with a currency denomination mark on the appearance, so that an issuer can recharge according to the denomination size set on the appearance of the physical carrier of the digital currency before issuing the physical carrier of the digital currency, and the denomination size seen by a user is kept consistent with the actual amount in the block chain account of the physical carrier of the digital currency. The denomination mark can be made by printing, stamping, casting, etc. Optionally, the issuing mechanism may also set, according to actual requirements, issuing time, serial number, product information, and the like corresponding to the physical carrier of the digital currency, which is not limited in this disclosure.
By adopting the physical carrier of the digital currency, the physical carrier of the digital currency can be used as physical currency for transaction circulation. Therefore, the transfer of the digital currency physical carrier in the hands of the user is equivalent to the completion of currency transaction, the online operation of the user is not needed in the transaction field, the usability is strong, and the consumed time is short. Moreover, after any user obtains ownership of the physical carrier of the digital currency, the digital currency in the physical carrier can be inquired and extracted on line subsequently through the terminal device, and the digital currency can be charged through the terminal device.
Specifically, the method for interacting with the terminal device related to the physical carrier of digital currency may specifically refer to the technical solutions provided by the following method embodiments.
The disclosed embodiments provide a method of interaction between a digital currency physical carrier, which may be, for example, the digital currency physical carrier 10 shown in fig. 1, and a terminal device.
Specifically, the interactive method comprises an interactive method for verifying the currency validity of the physical carrier of the digital currency, as shown in fig. 2, and comprises the following steps:
s201, the terminal device sends an authentication challenge request to the digital currency physical carrier.
S202, the digital currency physical carrier receives the authentication challenge request.
And S203, the physical carrier of the digital currency signs the information carried by the authentication challenge request according to the stored private key of the block chain account.
For example, the information may be a challenge code.
And S204, the physical carrier of the digital currency sends an authentication challenge response to the terminal equipment, wherein the authentication challenge response comprises information signed by the private key.
And the information signed by the private key is used for verifying the validity of the private key of the physical carrier of the digital currency by the terminal equipment.
S205, the terminal device receives the authentication challenge response.
Additionally, the currency validity check on the physical carrier of digital currency may also include checking that the private key is used and the account balance is correct. Therefore, in a possible implementation manner of the embodiment of the present disclosure, the authentication challenge response may further include a public key stored in the physical carrier of the digital currency and usage state information of the private key.
In this way, after the terminal device receives the authentication challenge response, the following steps S206 to S208 may be further performed.
S206, the terminal equipment performs signature authentication on the information signed by the private key to obtain an authentication result.
Specifically, the terminal device performs signature authentication on the information signed by the private key, and if the authentication passes, the private key of the physical carrier of the digital currency is considered to be valid.
And S207, the terminal device queries the balance in the wallet of the blockchain account from the blockchain network by using the public key.
S208, judging whether the digital currency physical carrier is effective or not according to the using state of the private key, the authentication result and the balance.
Taking the digital currency physical carrier 10 shown in fig. 1 as an example, the key chip 100 records the use status of the private key, and specifically, the key chip 100 is used to change the use status of the private key to used after signing a currency transaction using the private key. Therefore, the terminal device can confirm whether the digital currency of the digital currency physical carrier is presented or not based on the use state information of the private key, and if the use state information of the private key indicates that the private key is used, the terminal device can determine that the digital currency of the digital currency physical carrier is being traded or has finished trading, and at the moment, the terminal device further inquires balance from the block chain network through the public key address.
The following table 1 provides the correspondence between the combination of the validity of the private key, the use status of the private key, and the balance of the account and the status of the physical carrier of the digital currency:
Figure PCTCN2018090893-APPB-000001
TABLE 1
Wherein, in a safe state, the digital currency physical carrier can be used as entity currency to carry out off-line transaction; in an issuing error state, the digital currency physical carrier is recovered by the issuing authority; in an unsecured state, the digital currency physical carrier may have signed the transaction with the private key, but the transaction has not yet been confirmed, wherein the transaction has not been broadcast to, or accepted by, the blockchain network may result in the transaction being in an unconfirmed state in which the digital currency physical carrier is not available for offline transactions; the physical carrier of the proposed digital currency can be charged by an issuing organization or a belonging user; counterfeit physical carriers of digital currency can be destroyed. In particular implementations, only the currency of the physical carrier of digital currency in a secure state may be considered valid, i.e. transactable.
Therefore, in a possible application scenario, a user who owns the physical carrier of digital currency consumes online, and when a payee collects the physical carrier of digital currency, the payee uses a smartphone carried by the payee to perform status detection on the collected physical carrier of digital currency, and the detection method is shown in fig. 2. When the digital currency physical carrier is confirmed to be in a safe state, the transaction is completed, and if the state of the digital currency physical carrier is in other states, the collection can be refused.
In the above exemplary application scenario, the transfer of the digital currency physical carrier in the hand of the user is equivalent to the completion of the currency transaction, and the transaction site does not need to be operated on line by the user. Furthermore, after the receiver obtains the physical carrier of the digital currency, the subsequent account transfer can be carried out on line. For example, the payee himself has an account in the blockchain network that, upon receipt of the physical carrier of digital currency, can transfer the digital currency to his own account wallet.
That is, the method of interaction between the physical carrier of digital currency and the terminal device may further include a method of online transaction of digital currency, as shown in fig. 3, including:
s301, the terminal device sends a transaction request to the digital currency physical carrier.
Wherein the transaction request includes monetary transaction information, such as a payee address. The money transaction information is created by the terminal device based on a user operation.
And S302, the digital currency physical carrier receives the transaction request.
And S303, the digital currency physical carrier signs the currency transaction information carried by the transaction request according to the stored private key of the block chain account.
S304, the digital currency physical carrier changes the use state of the private key into used.
The use state information of the private key recorded by the digital currency physical carrier is readable and is used for the terminal device to judge whether the currency of the digital currency physical carrier is safe and effective or not by combining the validity of the private key and the balance.
And S305, the physical carrier of the digital currency sends a transaction response to the terminal equipment.
The transaction response includes the private key signed currency transaction information.
And S306, the terminal equipment receives the transaction response.
And S307, the terminal equipment initiates a currency transaction to the blockchain network according to the transaction response.
Specifically, before initiating the money transaction, the terminal device may also verify the money validity of the digital money physical carrier, for example, the transaction response includes the use state information of the private key and the public key stored in the digital money physical carrier, and after receiving the transaction response, the terminal device performs step S206 to step S208 shown in fig. 2, which may specifically refer to the corresponding description in fig. 2 and is not described here again. After the digital currency physical carrier is determined to be safe and effective, the terminal equipment starts to execute a process of initiating a currency transaction to the blockchain network. It should be noted that the process of the terminal device initiating the currency transaction to the blockchain network is consistent with the transaction process on the existing blockchain network, and is not described herein again.
Moreover, for convenience of understanding, the above description is performed in a manner of using method steps, but it should be understood by those skilled in the art that the technical solution provided in the embodiment of the present disclosure is not limited by the step sequence, for example, the step of S304 may be performed after the step of S305. Also, the method shown in fig. 3 is only one possible implementation and other alternatives are possible. For example, the monetary transaction information may be created by a digital monetary physical carrier and a transaction request sent to the terminal device after private key signing of the created monetary transaction information.
Combining the method steps shown in fig. 2 and fig. 3, on the side of the physical carrier of the digital currency, the method for interacting with the terminal equipment comprises the following steps: receiving a signature request sent by terminal equipment; signing the information carried by the signing request according to the private key stored in the digital currency physical carrier; and sending a signature response to the terminal equipment, wherein the signature response comprises the information signed by the private key. The signing request may be, for example, the authentication challenge request described in fig. 2, or may also be a transaction request described in fig. 3, where information carried by the transaction request includes money transaction information, and in this case, after the digital money physical carrier signs the private key of the money transaction information, the usage state of the private key may also be changed to be used.
Optionally, the digital currency physical carrier may further create currency transaction information, sign the currency transaction information using the private key, and send a transaction request to the terminal device, where 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.
On the side of the terminal equipment, the interaction method with the physical carrier of the digital currency comprises the following steps: sending a signing request, such as the authentication challenge request described in fig. 2, or the transaction request described in fig. 3, to the digital currency physical carrier; receiving a signature response sent by the physical carrier of the digital currency, wherein the signature response comprises information carried by the signature request signed by the private key; and checking the currency validity of the digital currency physical carrier according to the signature response.
Specifically, in the case where the signed response includes the use status of the private key and the public key recorded in the digital currency physical carrier, the verifying the currency validity of the digital currency physical carrier by the terminal device includes: performing signature authentication on the information signed by the private key to obtain an authentication result; querying a blockchain network for a balance in a wallet of the blockchain account using the public key; and judging whether the digital currency physical carrier is effective or not according to the using state of the private key, the authentication result and the balance.
Optionally, when the terminal device receives a transaction request sent by the digital currency physical carrier, where the transaction request includes currency transaction information signed by the private key, it may also initiate a currency transaction to the blockchain network according to the transaction request.
The interaction method between the physical carrier of digital currency and the terminal device may further include a generation method of a key pair, as shown in fig. 4, including:
s401, the terminal device sends a key generation request to the server, and the key generation request is used for the server to authenticate the terminal device.
Wherein the server is specifically a service backend of the distribution structure. The server may authorize a given terminal device to have the right to control the generation of the key pair by the physical carrier of digital currency. Thus, when the server receives a key generation request sent by a certain terminal device, the server needs to authenticate the terminal device to determine whether the terminal device has a corresponding right.
S402, the server receives the key generation request and authenticates the terminal device according to the key generation request.
S403, the server sends a key generation response to the terminal device, where the key generation response includes an authentication result.
S404, the terminal equipment receives the key generation response sent by the server.
S405, if the authentication result shows that the terminal equipment has the authority of controlling the digital currency physical carrier to generate the key pair, the terminal equipment sends a key pair generation instruction to the digital currency physical carrier.
The key generation response also includes the related information of the account registered in the blockchain network, the related information is used for generating the key pair and the wallet address, for example, the related information may include the mnemonic words in the blockchain wallet AToken. And the key pair generation instruction sent by the terminal equipment to the digital currency physical carrier carries the relevant information and is used for triggering the digital currency physical carrier to generate a public key and a private key.
And S406, the digital currency physical carrier receives the key pair generation instruction sent by the terminal equipment.
And S407, the physical carrier of the digital currency generates a corresponding public key and a corresponding private key according to the key pair generation instruction.
It should be noted that the steps S401 to S407 may be steps in an initialization process of the physical carrier of the digital currency, where the key generation request is an initialization request, and a public key and a private key are generated and obtained in step S407, and the public key and the private key may be directly stored, where the private key is unreadable, undeliverable, and readable.
Additionally, to recycle the physical carrier of digital currency, embodiments of the present disclosure may, in one possible implementation, repeatedly generate a key pair in the physical carrier of digital currency. That is, the key generation request may be a reset request, and in this case, step S407 generates a new key pair and then executes step S408.
S408, if a key pair is stored in the physical carrier of the digital currency, deleting the key pair, and storing the newly generated public key and the private key.
That is, the key pair in the physical carrier of digital currency can be repeatedly generated, and the existing key pair is lost when the key pair is regenerated. In actual application, since the user can regenerate the key pair, but the regeneration of the key pair will cause the loss of the former key pair, only the physical carrier of the digital currency with the balance of 0 is recommended to carry out the resetting operation.
For the digital currency physical carrier that newly generated the key pair, the balance of its account wallet is 0. At this time, the public key address can be read by the terminal device by linking the data terminal, and then the corresponding address is recharged, which may specifically refer to the method steps shown in fig. 5 described below. For a physical carrier of digital currency that exhibits a currency denomination in appearance, the digital currency of the corresponding denomination should be recharged when recharged.
It is noted that for simplicity of description, the above method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present disclosure is not limited by the order of acts or combination of acts described.
Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required in order to implement the disclosure. For example, the method for generating the digital currency physical carrier key pair may also be as shown in fig. 5, and includes:
s501, generating a key pair by the digital currency physical carrier.
Wherein triggering the digital currency physical carrier to generate the key pair may be a user action on the digital currency physical carrier. For example, the digital currency physical carrier itself provides an initialization or reset function button that allows the user to trigger the digital currency physical carrier to generate a key pair by operating the button.
S502, if a key pair is stored in the physical carrier of the digital currency, deleting the key pair, and storing a public key and a private key in the newly generated key pair.
Wherein the public key is readable and the private key is not.
And S503, the physical carrier of the digital currency sends the newly generated public key of the key pair to the terminal equipment.
And S504, the terminal equipment receives the public key sent by the physical carrier of the digital currency and writes the public key into the block chain.
And the terminal equipment writes the public key of the key pair newly generated by the digital currency physical carrier into the block chain so as to complete the registration of the new account in the block chain network. In a specific implementation, the digital currency physical carrier may have a capability of communicating with the blockchain network, in this case, a new account registration of the blockchain network may also be initiated by the digital currency physical carrier itself, which is not limited by the present disclosure.
The interaction method between the digital currency physical carrier and the terminal device can further include a method for recharging and balance inquiry of the digital currency physical carrier, as shown in fig. 6, the method includes:
s601, the terminal device sends a public key reading instruction to the digital currency physical carrier.
And S602, the physical carrier of the digital currency receives a public key reading instruction initiated by the terminal device.
And S603, the physical carrier of the digital currency returns the stored public key to the terminal device according to the public key reading instruction.
It will be appreciated by those skilled in the art that the wallet address for the blockchain based digital currency is typically generated as a public key, and may be directly a public key. For convenience of description, the public key is directly used by the disclosed embodiment to represent the wallet address, and according to a specific application scenario, the digital currency physical carrier may simultaneously store the private key, the public key, and an address generated based on the public key, where the private key is unreadable and the public key and the address are readable.
And S604, the terminal equipment receives the public key returned by the physical carrier of the digital currency.
And S605, the terminal device charges or inquires the balance of the wallet of the block chain account corresponding to the digital currency physical carrier according to the public key.
The user can recharge the initialized digital currency physical carrier, or recharge the embodied digital currency physical carrier in advance when the user needs to perform offline transaction for the presented digital currency physical carrier.
Optionally, in order to prevent the issuing vendor of the digital currency physical carrier from being counterfeited, in a possible implementation manner of the embodiment of the present disclosure, a vendor certificate may be further stored in the digital currency physical carrier, and the vendor certificate is used for verifying the hardware legitimacy of the digital currency physical carrier, where the vendor certificate is obtained by signing a public key of a device key pair generated by the digital currency physical carrier with a private key of a production batch key pair of a vendor.
Specifically, the digital currency physical carrier can generate a key pair of the device before production, and the manufacturer device can generate a key pair for production for different production batches. In this way, the public key of the read digital currency physical carrier is signed by using the private key in the production batch key pair, and the manufacturer certificate can be obtained. Further, the vendor device may write the public key of the production batch key pair into the blockchain. Thus, after the digital currency physical carrier leaves the factory for circulation, the user terminal device can read the manufacturer certificate in the digital currency physical carrier and the public key of the manufacturer in the block chain, and perform signature authentication on the manufacturer certificate by using the public key, if the authentication is passed, the digital currency physical carrier is determined to be issued by the manufacturer, and if the authentication is failed, the digital currency physical carrier is determined to be counterfeit.
That is, the method of interaction between the digital currency physical carrier and the terminal device may further include a method of verifying the hardware legitimacy of the digital currency physical carrier, as shown in fig. 7, the method including:
and S701, the terminal equipment sends a certificate reading instruction to the digital currency physical carrier.
S702, the physical carrier of the digital currency receives the certificate reading instruction.
And S703, the physical carrier of the digital currency sends the manufacturer certificate to the terminal equipment according to the certificate reading instruction.
S704, the terminal equipment receives the manufacturer certificate.
S705, the terminal device obtains the public key of the vendor stored in the block chain.
The public key of the manufacturer can be of a production batch, and the key pairs of the manufacturers corresponding to the digital currency physical carriers produced in different batches are different.
And S706, the terminal equipment performs signature authentication on the manufacturer certificate by using the public key of the manufacturer to obtain a signature authentication result.
And S707, the terminal device shows whether the hardware of the digital currency physical carrier is legal or not to the user according to the signature authentication result.
Specifically, if the authentication is passed, the digital currency physical carrier is determined to be issued by the manufacturer, and if the authentication is failed, the digital currency physical carrier is determined to be counterfeit.
The interaction between the terminal device and the physical carrier of digital currency referred to in fig. 2 to 7 requires the establishment of a communication link between the terminal device and the physical carrier of digital currency, which may be wired or wireless, either contact or contactless.
Taking the physical carrier 10 of digital currency shown in fig. 1 as an example, as shown in fig. 8, NFC communication can be established between the key chip 100 and the terminal device 20 (illustrated as a smart phone), and the steps of the physical carrier of digital currency in the methods shown in fig. 2 to 7 are implemented based on the NFC communication key chip 100. The terminal device 20 is communicatively connected to the blockchain network 30 and to a server 40 at the back end.
The disclosed embodiments also provide another digital currency physical carrier, including:
a memory having a computer program stored thereon;
a processor for executing said computer program in said memory for carrying out the method steps performed by the physical carrier of digital currency in the interaction method provided by the above-described method embodiments.
That is, the execution body for implementing one digital currency interaction method described above may have different physical implementations, and the digital currency physical carrier 10 shown in fig. 1 is only one possible physical implementation. Based on the technical solutions provided by the embodiments of the present disclosure, other ways that can be conceived by a person having ordinary skill in the art also belong to the scope of the present invention.
The embodiments of the present disclosure also provide a computer-readable storage medium, where the program, when executed by a processor, implements the method steps performed by the terminal device in the interaction method provided in the foregoing method embodiments.
An embodiment of the present disclosure further provides a terminal device, including:
a memory having a computer program stored thereon;
a processor configured to execute the computer program in the memory to implement the method steps performed by the terminal device in the interaction method provided by the above method embodiment.
Illustratively, fig. 9 is a schematic diagram of a possible structure of the terminal device. As shown in fig. 9, the terminal apparatus 900 may include: a processor 901 and a memory 902. The terminal device 900 may also include one or more of a multimedia component 903, an input/output (I/O) interface 904, and a communications component 905.
The processor 901 is configured to control the overall operation of the terminal device 900, so as to complete the method steps executed by the terminal device in the interaction method provided by the foregoing method embodiment. The memory 902 is used to store various types of data to support operation at the terminal device 900, such as instructions for any application or method operating on the terminal device 900 and application-related data, such as contact data, messaging, pictures, audio, video, and so forth. The Memory 902 may be implemented by any type of volatile or non-volatile Memory device or 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, magnetic disk or optical disk. The multimedia components 703 may include screen and audio components. Wherein the screen may be, for example, a touch screen and the audio component is used for outputting and/or inputting audio signals. For example, the audio component may include a microphone for receiving external audio signals. The received audio signal may further be stored in the memory 902 or transmitted through the communication component 905. The audio assembly also 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, such as a keyboard, 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, so that the corresponding Communication component 905 may include: Wi-Fi module, bluetooth module, NFC module.
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 configured to perform the method steps performed by the terminal Device in the interaction method provided by the above method embodiments.
In addition, a computer-readable storage medium provided by the present disclosure may be the above-mentioned memory 902 including program instructions, where the program instructions may be executed by the processor 901 of the terminal device 900 to complete the method steps executed by the terminal device in the interaction method provided by the above-mentioned method embodiment.
The preferred embodiments of the present disclosure are described in detail with reference to the accompanying drawings, however, the present disclosure is not limited to the specific details of the above embodiments, and various simple modifications may be made to the technical solution of the present disclosure within the technical idea of the present disclosure, and these simple modifications all belong to the protection scope of the present disclosure.
It should be noted that the technical features described in the above embodiments can be combined in any suitable manner without contradiction, for example, the currency validity and hardware validity of the physical carrier of digital currency can be verified in the online transaction process, that is, the method of fig. 2 and 7 is combined into the method flow shown in fig. 3. In order to avoid unnecessary repetition, various possible combinations will not be separately described in this disclosure.
In addition, any combination of various embodiments of the present disclosure may be made, and the same should be considered as the disclosure of the present disclosure, as long as it does not depart from the spirit of the present disclosure.

Claims (22)

  1. An interactive method for digital currency, wherein the method is applied to a digital currency physical carrier, wherein the digital currency physical carrier stores a private key and a public key of a block chain account, and the method comprises:
    receiving a signature request sent by terminal equipment;
    signing the information carried by the signing request according to the private key stored in the digital currency physical carrier, wherein the public key stored in the digital currency physical carrier is readable, and the stored private key is not readable;
    and sending a signature response to the terminal equipment, wherein the signature response comprises the information signed by the private key.
  2. The method of claim 1, wherein the information carried by the signature request includes monetary transaction information, the method further comprising:
    and changing the use state of the private key into a used state, wherein the key chip records the use state of the private key, and the signature response is used for the terminal equipment 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, wherein the signature response further includes usage status information of the private key, the key chip records usage status of the private key, and the information signed by the private key and the usage status information are used for validity verification of the digital currency physical carrier by the terminal device.
  4. The method according to any one of claims 1 to 3, further comprising:
    generating a key pair;
    if a key pair is stored in the physical carrier of the digital currency, deleting the key pair, and storing a newly generated public key and a newly generated private key in the key pair;
    and sending the newly generated public key of the key pair to the terminal equipment so that the terminal equipment can write the public key into the block chain.
  5. The method of claim 4, wherein generating the key pair comprises:
    receiving a key pair generation instruction sent by the terminal equipment;
    and generating a corresponding public key and a private key according to the key pair generation instruction.
  6. The method according to any one of claims 1 to 3, further comprising:
    creating currency transaction information;
    signing the currency transaction information by using the private key;
    and sending a transaction request to the terminal equipment, wherein the transaction request comprises the signed currency transaction information, and the transaction request is used for the terminal equipment to initiate a currency transaction to the blockchain network according to the currency transaction information.
  7. The method according to any one of claims 1 to 3, further comprising:
    receiving a public key reading instruction initiated by the terminal equipment;
    and returning the public key stored in the digital currency physical carrier to the terminal equipment according to the public key reading instruction, wherein the public key is used for the terminal equipment to recharge or inquire balance of the wallet of the blockchain account.
  8. The method according to any one of claims 1 to 3, wherein a manufacturer certificate is further stored in the physical digital currency carrier, and the manufacturer certificate is used for verifying hardware legitimacy of the physical digital currency carrier, wherein the manufacturer certificate is obtained by signing a public key of a device key pair generated by the physical digital currency carrier by using a private key of a production batch key pair of a manufacturer.
  9. An interactive method for digital currency, which is applied to a terminal device, and comprises the following steps:
    sending a signature request to a digital currency physical carrier, wherein the digital currency physical carrier stores a private key and a public key of a blockchain account, and the stored public key is readable and the private key is not readable;
    receiving a signature response sent by the physical carrier of the digital currency, wherein the signature response comprises information carried by the signature request signed by the private key;
    and checking the currency validity of the digital currency physical carrier according to the signature response.
  10. The method according to claim 9, wherein the signed response further includes a usage status of the private key recorded in the physical carrier of digital currency, the verifying the validity of the physical carrier of digital currency according to the signed response comprising:
    performing signature authentication on the information signed by the private key to obtain an authentication result;
    querying a blockchain network for a balance in a wallet of the blockchain account using the public key;
    and checking the currency validity of the digital currency physical carrier according to the using state of the private key, the authentication result and the balance.
  11. The method of claim 9, wherein the signing request includes currency transaction information, the method further comprising:
    initiating a monetary transaction to the blockchain network in accordance with the signed response.
  12. The method according to any one of claims 9 to 11, wherein the physical digital currency carrier further stores a vendor certificate signed by a public key of a device key pair generated by the physical digital currency carrier using a private key of a production batch key pair of a vendor, the method further comprising:
    sending a certificate reading instruction to the digital currency physical carrier;
    receiving a manufacturer certificate returned by the digital currency physical carrier;
    obtaining a public key in a production batch key pair of the manufacturer from the blockchain network;
    and performing signature authentication on the manufacturer certificate according to the public key, and if the authentication is successful, indicating that the hardware of the digital currency physical carrier is legal.
  13. The method according to any one of claims 9 to 11, further comprising:
    sending a key generation request to a server, wherein the key generation request is used for the server to authenticate terminal equipment;
    receiving a key generation response sent by the server, wherein the key generation response comprises an authentication result;
    and if the authentication result shows that the terminal equipment has the authority of controlling the digital currency physical carrier to generate the key pair, sending a key pair generation instruction to the digital currency physical carrier, wherein the key pair generation instruction is used for triggering the digital currency physical carrier to generate a public key and a private key.
  14. The method according to any one of claims 9 to 11, further comprising:
    sending a public key reading instruction to the digital currency physical carrier;
    receiving a public key returned by the digital currency physical carrier;
    and recharging the wallet of the block chain account or inquiring balance according to the public key.
  15. The method according to any one of claims 9 to 11, further comprising:
    receiving a transaction request sent by the digital currency physical carrier, wherein the transaction request comprises currency transaction information signed by the private key;
    and initiating a currency transaction to the blockchain network according to the transaction request.
  16. A physical carrier for digital currency, comprising:
    the device comprises a key chip, a storage module and a processing module, wherein the key chip is used for storing a key pair of a block chain account, a private key of the key pair is unreadable in the key chip, and a public key of the key pair is readable in the key chip;
    and the key chip is also used for signing the information carried in the signature request by using the private key when receiving the signature request sent by the terminal equipment, and returning the signed information to the terminal equipment.
  17. The digital currency physical carrier according to claim 16, wherein the digital currency physical carrier is a contact or contactless IC card for circulation as physical currency; alternatively, the digital currency physical carrier is provided with a currency denomination identification.
  18. The digital currency physical carrier according to claim 16, further comprising: the communication module is connected with the key chip;
    the communication module is used for realizing connection communication with the terminal equipment, wherein the connection communication mode comprises at least one of the following modes: NFC communication, bluetooth communication, infrared communication, radio communication, contact communication.
  19. The physical carrier according to any one of claims 16 to 18, wherein a vendor certificate is further stored in the key chip, and the vendor certificate is used for verifying hardware legitimacy of the physical carrier, wherein the vendor certificate is obtained by signing a public key of a device key pair generated by the physical carrier with a private key of a manufacturer's production lot key pair.
  20. A physical carrier for digital currency, comprising:
    a memory having a computer program stored thereon;
    a processor for executing the computer program in the memory to carry out the steps of the method of any one of claims 1 to 8.
  21. A computer-readable storage medium, characterized in that the program realizes the steps of the method of any one of claims 9 to 15 when executed by a processor.
  22. A terminal device, comprising:
    a memory having a computer program stored thereon;
    a processor for executing the computer program in the memory to carry out the steps of the method of any one of claims 9 to 15.
CN201880094551.5A 2018-06-12 2018-06-12 Digital currency interaction method, digital currency physical carrier, terminal device and storage medium Pending CN112352241A (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/090893 WO2019237258A1 (en) 2018-06-12 2018-06-12 Digital currency interactive method, digital currency physical carrier, terminal device and storage medium

Publications (1)

Publication Number Publication Date
CN112352241A true CN112352241A (en) 2021-02-09

Family

ID=68842329

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201880094551.5A Pending CN112352241A (en) 2018-06-12 2018-06-12 Digital currency interaction method, digital currency physical carrier, terminal device and storage medium

Country Status (2)

Country Link
CN (1) CN112352241A (en)
WO (1) WO2019237258A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112862488A (en) * 2021-03-29 2021-05-28 中信银行股份有限公司 Data signature method and device, electronic equipment and computer readable storage medium
CN113450093A (en) * 2021-07-06 2021-09-28 山西特信环宇信息技术有限公司 Real-time consensus authentication method and system for digital change wallet based on cone block chain

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104463001A (en) * 2014-12-19 2015-03-25 比特卡国际有限公司 Method for independently generating and storing encrypted digital currency private key and device for bearing encrypted digital currency private key
US20150254640A1 (en) * 2014-03-05 2015-09-10 Cryptographi, Inc. Method and apparatus for digital currency paper wallet
CN107230051A (en) * 2016-03-25 2017-10-03 中国人民银行印制科学技术研究所 The method of payment and payment system of digital cash

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107240010B (en) * 2016-03-25 2022-01-28 中国人民银行数字货币研究所 Method and system for transferring digital currency to digital currency chip card
CN107220824A (en) * 2017-05-02 2017-09-29 北京云知科技有限公司 A kind of commercial articles vending system and method based on digital cash
CN107240056A (en) * 2017-05-08 2017-10-10 暨南大学 A kind of love and marriage register method based on block chain technology

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150254640A1 (en) * 2014-03-05 2015-09-10 Cryptographi, Inc. Method and apparatus for digital currency paper wallet
CN104463001A (en) * 2014-12-19 2015-03-25 比特卡国际有限公司 Method for independently generating and storing encrypted digital currency private key and device for bearing encrypted digital currency private key
CN107230051A (en) * 2016-03-25 2017-10-03 中国人民银行印制科学技术研究所 The method of payment and payment system of digital cash

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
魏尚北;牛超;: "密码学的区块链技术在电子货币交易中的应用研究", 科技创新与生产力, no. 09, 10 September 2016 (2016-09-10), pages 095 - 099 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112862488A (en) * 2021-03-29 2021-05-28 中信银行股份有限公司 Data signature method and device, electronic equipment and computer readable storage medium
CN113450093A (en) * 2021-07-06 2021-09-28 山西特信环宇信息技术有限公司 Real-time consensus authentication method and system for digital change wallet based on cone block chain
CN113450093B (en) * 2021-07-06 2023-02-24 山西特信环宇信息技术有限公司 Real-time consensus authentication method and system for digital change wallet based on cone block chain

Also Published As

Publication number Publication date
WO2019237258A1 (en) 2019-12-19

Similar Documents

Publication Publication Date Title
JP7442552B2 (en) Dynamic off-chain digital currency transaction processing
RU2580809C2 (en) Mutual mobile authentication using key management centre
CN107820238B (en) SIM card, blockchain application security module, client and security operation method thereof
KR20180100158A (en) Verify online access to secure device features
JP7332087B2 (en) Systems and methods for signing transactions using air-gapped private keys
CN104301110A (en) Authentication method, authentication device and system applied to intelligent terminal
US20210073795A1 (en) Device for storing digital keys for signing transactions on a blockchain
JP2017537421A (en) How to secure payment tokens
US20230281289A1 (en) Credential management for mobile devices
CN102867366A (en) Portable bank card data processing device, system and method
ES2436426T3 (en) SIM card based method for performing services with high security features
Van Damme et al. Offline NFC payments with electronic vouchers
CN112352410A (en) Smart card for use as a security token
CN112352241A (en) Digital currency interaction method, digital currency physical carrier, terminal device and storage medium
JP2022054439A (en) Payment method and system for central bank digital currency
WO2016059546A1 (en) Secure authentication token
KR101103189B1 (en) System and Method for Issueing Public Certificate of Attestation using USIM Information and Recording Medium
KR101505847B1 (en) Method for Validating Alliance Application for Payment
US11915234B2 (en) System and method for securing a private key transaction within blockchain
US11392941B2 (en) System and method for securing a private key transaction within blockchain
KR102671054B1 (en) Method and system for payment for central bank digital currency
KR102195711B1 (en) Device for transacting cryptocurrency and method thereof
KR20130008124A (en) Payment by using payment identification number dynamic mapped individual financial institution
CN114581082A (en) Public transport intelligent card recharging method, system and composite wallet
CN105991538B (en) Data interaction method and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination