CN113474804A - Transaction and account verification method, device and storage medium of digital currency - Google Patents

Transaction and account verification method, device and storage medium of digital currency Download PDF

Info

Publication number
CN113474804A
CN113474804A CN201980092465.5A CN201980092465A CN113474804A CN 113474804 A CN113474804 A CN 113474804A CN 201980092465 A CN201980092465 A CN 201980092465A CN 113474804 A CN113474804 A CN 113474804A
Authority
CN
China
Prior art keywords
digital currency
account
signature
physical carrier
transaction
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
CN201980092465.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 CN113474804A publication Critical patent/CN113474804A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/40Authorisation, e.g. identification of payer or payee, verification of customer or shop credentials; Review and approval of payers, e.g. check credit lines or negative lists

Landscapes

  • Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Accounting & Taxation (AREA)
  • Computer Security & Cryptography (AREA)
  • Finance (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

A transaction and account verification method, device and storage medium for digital currency. The account verification method of the digital currency is applied to a terminal device (20), and comprises the following steps: sending an inquiry request to a digital currency physical carrier (10), wherein the digital currency physical carrier (10) stores account information of a block chain account and signature times of a private key (S501); receiving an inquiry response sent by a digital currency physical carrier (10), wherein the inquiry response comprises the account information and the signature times (S502); inquiring a block chain network (30) according to the account information to obtain the transaction times of the block chain account (S503); verifying (S504) the account legitimacy of the physical carrier (10) of digital currency according to the number of transactions and the number of signatures. The method can ensure that the verification result is reliable, is still applicable to the digital currency physical carrier (10) which needs to be used for multiple times, and does not prevent the continuous use and circulation of the digital currency physical carrier (10).

Description

Transaction and account verification method, device and storage medium of digital currency Technical Field
The present disclosure relates to the field of digital currency, and in particular, to a method, an apparatus, and a storage medium for transaction and account verification of digital currency.
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. In order to facilitate the circulation of digital money, a physical carrier of digital money is provided in the related art, and account information is built in the physical carrier, so that the physical carrier not only can realize the ownership transfer of the digital money, but also can be used as an identity certificate of a user and the like.
In order to ensure the safety of the use of the physical carrier of the digital currency, the account of the physical carrier of the digital currency is usually required to be legally verified. In the account verification method in the related art, it is generally determined whether a private key built in a physical carrier of digital currency is signed for use, and if the private key is signed for use, the account status of the physical carrier of digital currency is considered to be unsafe. However, this approach is not suitable for digital currency physical carriers that require multiple uses.
Disclosure of Invention
The present disclosure provides a transaction and account verification method, device and storage medium for digital money, which are used to solve the technical problem that the existing account verification method cannot be applied to a physical carrier of digital money which needs to be used for many times.
In order to achieve the above object, a first aspect of the present disclosure provides an account verification method for digital currency, the method being applied to a terminal device, the method including: sending a query request to a digital currency physical carrier, wherein the digital currency physical carrier stores account information of a block chain account and signature times of a private key; receiving an inquiry response sent by the digital currency physical carrier, wherein the inquiry response comprises the account information and the signature times; inquiring a block chain according to the account information to obtain the transaction times of the block chain account; and verifying the account validity of the digital currency physical carrier according to the transaction times and the signature times.
The second aspect of the present disclosure provides an account verification method for digital currency, which is applied to a physical carrier of digital currency, wherein the physical carrier of digital currency stores account information of a block chain account and signature times of a private key, and the method includes: receiving an inquiry request sent by terminal equipment; in response to the inquiry request, acquiring the account information and the signature times stored in the digital currency physical carrier; and sending an inquiry response to the terminal equipment, wherein the inquiry response comprises the account information and the signature times, and the inquiry response is used for verifying the account validity of the digital currency physical carrier by the terminal equipment according to the account information and the signature times.
A third aspect of the present disclosure provides a method for trading digital currency, the method being applied to a digital currency physical carrier storing a private key of a blockchain account, the method comprising: receiving a signature request sent by terminal equipment; signing the transaction information carried by the signature request by using the private key, and updating the signature times of the private key after the signature is successful; and sending a signature response to the terminal equipment, wherein the signature response comprises the signed transaction information, and the signature response is used for the terminal equipment to initiate a transaction to the blockchain network according to the transaction information.
A fourth aspect of the present disclosure provides a method for trading digital money, the method being applied to a terminal device, the method including: creating transaction information; sending a signature request to a digital currency physical carrier, wherein the signature request comprises the transaction information, and the digital currency physical carrier stores a private key of a block chain account; receiving a signed response sent by the physical carrier of digital currency, wherein the signed response comprises the transaction information signed by the private key; initiating a transaction to a blockchain network according to the transaction information signed by the private key.
A fifth aspect of the present disclosure provides an account verification apparatus for digital money, the apparatus being applied to a terminal device, the apparatus including: the system comprises a first sending module, a second sending module and a third sending module, wherein the first sending module is used for sending an inquiry request to a digital currency physical carrier, and the digital currency physical carrier stores account information of a block chain account and signature times of a private key; the first receiving module is used for receiving an inquiry response sent by the digital currency physical carrier, wherein the inquiry response comprises the account information and the signature times; the query module is used for querying the block chain according to the account information to obtain the transaction times of the block chain account; and the verification module is used for verifying the account validity of the digital currency physical carrier according to the transaction times and the signature times.
A sixth aspect of the present disclosure provides an account verification apparatus for digital currency, the apparatus being applied to a physical carrier of digital currency, wherein the physical carrier of digital currency stores account information of a block chain account and a signature number of a private key, the apparatus including: the second receiving module is used for receiving the query request sent by the terminal equipment; an obtaining module, configured to obtain, in response to the query request, the account information and the signature times stored in the physical digital currency carrier; and the second sending module is used for sending an inquiry response to the terminal equipment, wherein the inquiry response comprises the account information and the signature times, and the inquiry response is used for verifying the account validity of the digital currency physical carrier by the terminal equipment according to the account information and the signature times.
A seventh aspect of the present disclosure provides an apparatus for trading digital currency, the apparatus being applied to a physical carrier of digital currency, the physical carrier of digital currency storing a private key of a blockchain account, the apparatus comprising: the third receiving module is used for receiving a signature request sent by the terminal equipment; the signature module is used for signing the transaction information carried by the signature request by using the private key; the updating module is used for updating the signature times of the private key after the signature is successful; and a third sending module, configured to send a signature response to the terminal device, where the signature response includes the signed transaction information, and the signature response is used for the terminal device to initiate a transaction to a blockchain network according to the transaction information.
An eighth aspect of the present disclosure provides an apparatus for trading of digital money, the apparatus being applied to a terminal device, the apparatus comprising: the creating module is used for creating transaction information; a fourth sending module, configured to send a signature request to a digital currency physical carrier, where the signature request includes the transaction information, and the digital currency physical carrier stores a private key of a block chain account; a fourth receiving module, configured to receive a signed response sent by the physical carrier of digital currency, where the signed response includes the transaction information signed by the private key; and the initiating module is used for initiating a transaction to the blockchain network according to the transaction information signed by the private key.
A ninth 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 methods of the first and fourth aspects.
A tenth aspect of the present disclosure provides a computer readable storage medium, which when executed by a processor, performs the steps of the method of the first and fourth aspects.
An eleventh 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 methods of the second and third aspects.
A twelfth aspect of the disclosure provides a computer readable storage medium, which when executed by a processor implements the steps of the methods of the second and third aspects.
By adopting the technical scheme, the following technical effects can be at least achieved: when the account legality of the digital currency physical carrier needs to be verified, the terminal equipment sends an inquiry request to the digital currency physical carrier, receives an inquiry response which is sent by the digital currency physical carrier and carries account information and private key signature times, and can acquire the transaction times of the digital currency physical carrier according to an account information inquiry block chain. The decentralized and non-falsifiable characteristics of the block chain ensure that the transaction times acquired by the terminal device are real and reliable, so that the account legality of the digital currency physical carrier is verified based on the acquired transaction times and the signature times of the private key, the verification result can be ensured to be reliable, and compared with the prior art that the verification is performed only according to whether the private key is signed or not, the verification method is still suitable for the digital currency physical carrier needing to be used for multiple times, and the continuous use and circulation of the digital currency physical carrier cannot be hindered.
Additional features and advantages of the disclosure will be set forth in the detailed description which follows.
Drawings
Fig. 1 is a flow chart of a transaction method of digital currency provided by an embodiment of the present disclosure;
FIG. 2 is a flow chart of another method of trading digital currency provided by an embodiment of the present disclosure;
FIG. 3 is a schematic illustration of an implementation environment of an embodiment of the disclosure;
FIG. 4 is a schematic signaling interaction diagram of a transaction method of digital currency provided by an embodiment of the present disclosure;
FIG. 5 is a flow chart diagram of a method of account validation for digital currency that is also provided by an embodiment of the present disclosure;
FIG. 6 is a flow chart of another method of account verification of digital currency provided by an embodiment of the present disclosure;
FIG. 7 is a schematic signaling interaction diagram of an account verification method for digital currency according to an embodiment of the present disclosure;
fig. 8 is a block diagram of an account verification apparatus for digital currency, which is provided in an embodiment of the present disclosure and is applied to a terminal device;
fig. 9 is a block diagram of another account verification apparatus for digital currency according to an embodiment of the present disclosure, wherein the account verification apparatus is applied to a terminal device;
FIG. 10 is a block diagram of an account verification device for digital currency according to an embodiment of the present disclosure;
fig. 11 is a block diagram of a transaction apparatus for digital currency provided by an embodiment of the present disclosure;
fig. 12 is a block diagram of another transaction apparatus for digital currency provided by an embodiment of the present disclosure;
fig. 13 is a block diagram of another transaction apparatus for digital currency provided by an embodiment of the present disclosure;
fig. 14 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.
It is worth noting that the terms "first," "second," and the like in the description and claims of the present disclosure and in the above-described figures are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
The embodiment of the present disclosure provides a transaction method of digital currency, which is applied to a physical carrier of digital currency, wherein a private key of a blockchain account is stored in the physical carrier of digital currency, as shown in fig. 1, the transaction method includes:
in step S101, a signature request transmitted by a terminal device is received.
Wherein the signature request includes transaction information that requires signing by the physical carrier of digital currency. Illustratively, the transaction information may be monetary transaction information, such as a payee address or the like.
In step S102, the transaction information carried by the signature request is signed by using the private key, and after the signature is successful, the signature frequency of the private key is updated.
The digital currency physical carrier records the number of times it signs the transaction information with the private key. In one possible implementation, a count value for counting the number of signatures of the private key may be set, which is incremented by 1 each time the physical carrier of digital currency signs the transaction information in the signature request with said private key.
In one implementation, a logical counter may be set in the digital currency physical carrier and an initial value (e.g., set to 0) may be set for the logical counter, and the logical counter may be triggered to increment the count value by 1 each time the digital currency physical carrier signs the transaction information with the private key. Thus, by reading the count value in the logical counter, the number of times the private key of the physical carrier of the digital currency is signed can be obtained.
In step S103, a signature response is sent to the terminal device, where the signature response includes the signed transaction information, and the signature response is used for the terminal device to initiate a transaction to the blockchain network according to the transaction information.
The digital currency physical carrier sends a signature response carrying the signed transaction information to the terminal device, and the terminal device initiates a transaction to the blockchain, so that each transaction information of the digital currency physical carrier is recorded on the blockchain, and the blockchain is queried according to account information (such as a public key or a wallet address) of the digital currency physical carrier, so that all transaction information (such as transaction times) of the digital currency physical carrier can be acquired. The decentralized and non-falsifiable characteristics of the block chain can ensure the recorded transaction information to be real and reliable.
The embodiment of the present disclosure further provides another transaction method of digital currency, where the transaction method is applied to a terminal device, and as shown in fig. 2, the transaction method includes:
in step S201, transaction information is created.
For example, the transaction information may be money transaction information for conducting money transaction circulation. The transaction information is created by the terminal device based on a user operation.
In step S202, a signature request is sent to the digital currency physical carrier, the signature request including the transaction information.
The digital currency physical carrier stores a private key of the block chain account. The terminal equipment sends a signature request to the digital currency physical carrier, the digital currency physical carrier responds to the signature request, the private key is used for signing the transaction information, and a signature response carrying the transaction information signed by the private key is sent to the terminal equipment.
In step S203, a signed response sent by the physical carrier of digital currency is received, the signed response including the transaction information signed by the private key.
In step S204, a transaction is initiated to the blockchain network according to the transaction information signed by the private key.
It should be noted that the process of the terminal device initiating the transaction to the blockchain network is consistent with the existing blockchain transaction process, and is not described herein again.
After receiving the signature response sent by the digital currency physical carrier, the terminal device initiates a transaction to the blockchain according to the transaction information signed by the private key of the digital currency physical carrier carried by the signature response, so that each transaction information of the digital currency physical carrier is recorded on the blockchain, and further, the blockchain nodes including the terminal device can acquire the transaction information (such as transaction times) of the digital currency physical carrier by inquiring the blockchain. The decentralized and non-falsifiable characteristics of the block chain can ensure the recorded transaction information to be real and reliable.
Fig. 3 is a schematic diagram of an implementation environment of an embodiment of the present disclosure, as shown in fig. 3, the implementation environment includes a digital currency physical carrier 10, a terminal device 20, and a blockchain network 30.
The physical digital currency carrier 10 may be any programmable smart Card, such as Java Card, and the model may be a coin type, which is not limited in this disclosure, and fig. 3 is only illustrated as a coin type. A logical counter 11 may be arranged in the digital currency physical carrier 10 for recording the number of signatures of the private key of the digital currency physical carrier 10. The terminal device 20 is a blockchain node in the blockchain network 30, which may include, but is not limited to, a smartphone, a tablet, a smart wearable device, a computer, etc., and fig. 3 is merely illustrated as a smartphone.
In order to make the technical solution provided by the embodiment of the present disclosure easier to understand by those skilled in the art, a detailed description is made below with reference to fig. 3 on a transaction method of digital currency provided by the embodiment of the present disclosure, as shown in fig. 4, the transaction method includes:
in step S401, the terminal device 20 creates transaction information.
The transaction information may illustratively be currency transaction information, such as a payee address, for conducting currency transaction currency. The transaction information is created by the terminal device based on a user operation.
In step S402, the terminal device 20 sends a signature request to the digital currency physical carrier 10.
Wherein the signing request includes the transaction information.
In step S403, the physical carrier 10 of digital currency signs the transaction information carried by the signing request with the private key, and updates the signing times of the private key after the signing is successful.
The physical carrier 10 of digital currency stores therein the private key of the blockchain account.
The digital currency physical carrier 10 will record the number of times it signs the transaction information with the private key to characterize the number of transactions of the digital currency physical carrier.
In one possible implementation, the digital currency physical carrier 10 may set a count value for counting the number of signatures of the private key, which is incremented by 1 each time the transaction information in the signature request is signed with the private key.
In one implementation, a logical counter may be set in the digital currency physical carrier and an initial value (e.g., set to 0) may be set for the logical counter, and the logical counter may be triggered to increment the count value by 1 each time the digital currency physical carrier signs the transaction information with the private key. Thus, by reading the count value in the logical counter, the number of times the private key of the physical carrier of the digital currency is signed can be obtained.
In step S404, the digital currency physical carrier 10 sends a signature response to the terminal device 20.
Wherein the signed response includes the signed transaction information.
In step S405, the terminal device 20 initiates a transaction to the blockchain network according to the signed transaction information carried in the signature response.
It should be noted that the process of the terminal device initiating the transaction to the blockchain network is consistent with the existing blockchain transaction process, and is not described herein again.
In addition, for the sake of simplicity, the embodiments of the transaction method of digital currency are described as a series of action combinations, but it should be understood by those skilled in the art that the disclosure is not limited by the described sequence of actions. 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.
The embodiment of the present disclosure further provides an account verification method for digital currency, where the method is applied to a terminal device, and as shown in fig. 5, the method includes:
in step S501, an inquiry request is sent to a digital currency physical carrier, where the digital currency physical carrier stores account information of a blockchain account and a signature frequency of a private key.
When the terminal device needs to verify the account validity of the digital currency physical carrier, the terminal device can send an inquiry request to the digital currency physical carrier, and the digital currency physical carrier responds to the inquiry request and returns the stored account information and the signature times of the private key to the terminal device.
The account information may include, for example, a wallet address of the blockchain account, and may also include a key pair (public and private keys) of the blockchain account, where the wallet address is generated from the public key.
In step S502, an inquiry response sent by the physical carrier of digital currency is received, where the inquiry response includes the account information and the signature times of the private key.
In step S503, a blockchain network is queried according to the account information, and the transaction frequency of the blockchain account is obtained.
Illustratively, the account information may include a wallet address. Accordingly, the terminal device queries the blockchain according to the wallet address, and the transaction times of the blockchain account can be obtained.
In step S504, the account validity of the physical carrier of digital currency is verified according to the transaction number and the signature number.
In a possible implementation manner, since the information stored in the blockchain has a non-tamperable characteristic, the information stored in the blockchain can be trusted, and therefore, after the transaction times of the blockchain account are queried, the queried transaction times and the signature times can be compared in a consistent manner, and whether the account of the digital currency physical carrier is legal or not is determined according to a comparison result.
Specifically, if the signature frequency of the private key is consistent with the inquired transaction frequency, each transaction signed by the private key can be considered to be completed, and the account of the digital currency physical carrier can be determined to be legal; otherwise, the account of the physical carrier of the digital currency may be considered illegal. Further, if the signature times of the private key are greater than the inquired transaction times, the account of the digital currency physical carrier can be considered to have unfinished transactions; if the signature times of the private key are less than the inquired transaction times, the physical account of the digital currency is considered to have errors.
It is worth to say that in a legal state, the physical carrier of the digital currency can be used as the entity currency to carry out transactions and can also be used as an identity certificate; in an unsecure state, the digital currency physical carrier may have signed the transaction with the private key, but the transaction has not yet been confirmed, where the transaction has not been broadcast to, or accepted by, the blockchain network, which may result in the transaction being in an unconfirmed state where the digital currency physical carrier is neither available for the transaction nor is it available as an identity credential.
In another embodiment of the present disclosure, when determining that the account of the digital currency physical carrier is legal, the terminal device may also perform a recharge and/or a balance inquiry for the wallet of the blockchain account according to the account information. Illustratively, the account information includes a wallet address, which the terminal device can read, load, and/or balance inquiries.
It should be noted that, if the account of the physical carrier of digital money is legal, the balance inquired according to the account information is the actual balance of the block chain account of the physical carrier of digital money.
By the method, when the account legality of the digital currency physical carrier needs to be verified, the terminal equipment sends the inquiry request to the digital currency physical carrier, receives the inquiry response which is sent by the digital currency physical carrier and carries the account information and the private key signature times, and can acquire the transaction times of the digital currency physical carrier according to the account information inquiry block chain. The decentralized and non-falsifiable characteristics of the block chain ensure that the transaction times acquired by the terminal device are real and reliable, so that the account legality of the digital currency physical carrier is verified based on the acquired transaction times and the signature times of the private key, the verification result can be ensured to be reliable, and compared with the prior art that the verification is performed only according to whether the private key is signed or not, the verification method is still suitable for the digital currency physical carrier needing to be used for multiple times, and the continuous use and circulation of the digital currency physical carrier cannot be hindered.
The embodiment of the present disclosure further provides another account verification method for digital currency, where the account verification method is applied to a physical carrier of digital currency, as shown in fig. 6, and the account verification method includes:
in step S601, an inquiry request transmitted by the terminal device is received.
When the terminal equipment needs to verify the account validity of the digital currency physical carrier, the terminal equipment sends an inquiry request to the digital currency physical carrier.
In step S602, in response to the inquiry request, the account information and the number of signatures of the private key stored in the digital money physical carrier are acquired.
Illustratively, the physical carrier of digital currency stores therein account information of the blockchain account and the number of signatures of the private key. The account information may include, but is not limited to, a key pair (public and private), a wallet address, etc., the wallet address being generated from the public key.
In step S603, an inquiry response is sent to the terminal device, where the inquiry response includes account information and the signature frequency of the private key.
And the signature response is used for verifying the account validity of the digital currency physical carrier by the terminal equipment according to the account information and the signature times of the private key. The method for verifying the account validity of the physical carrier of digital currency by the terminal device can be referred to the related description of the embodiment of the method shown in fig. 5.
By the method, the digital currency physical carrier responds to the inquiry request sent by the terminal device, and sends the account information of the block chain account and the signature times of the private key stored in the digital currency physical carrier to the terminal device, so that the terminal device can inquire the block chain according to the account information to obtain the transaction times of the digital currency physical carrier. The decentralized and non-falsifiable characteristics of the block chain ensure that the transaction times acquired by the terminal device are true and reliable, so that the terminal device can verify the account legality of the digital currency physical carrier according to the true and reliable transaction times and the signature times of the private key, the verification result can be ensured to be reliable, and compared with the prior art that the verification is performed only according to whether the private key is signed or not, the verification method is still suitable for the digital currency physical carrier which needs to be used for multiple times, and the continuous use and circulation of the digital currency physical carrier cannot be hindered.
In order to make the technical solutions provided by the embodiments of the present disclosure easier to be understood by those skilled in the art, the following describes in detail an account verification method for digital currency provided by the embodiments of the present disclosure with reference to fig. 3, as shown in fig. 7, the account verification method includes:
in step S701, the terminal device 20 transmits an inquiry request to the digital money physical carrier 10.
The physical carrier of the digital currency stores account information of the block chain account and signature times of a private key. The account information may include, for example, a wallet address of the blockchain account, and may also include a key pair (public and private keys) of the blockchain account, where the wallet address is generated from the public key.
In step S702, the digital money physical carrier 10 acquires the account information of the blockchain account and the number of signatures of the private key stored in the digital money physical carrier in response to the inquiry request.
In step S703, the digital money physical carrier 10 transmits an inquiry response including the account information and the number of signatures of the private key to the terminal device 20.
In step S704, the terminal device 20 queries the blockchain according to the account information, and obtains the transaction times of the blockchain account.
In step S705, the terminal device 20 verifies the account validity of the digital money physical carrier 10 according to the inquired transaction number and the signature number of the private key.
In a possible implementation manner, since the information stored in the blockchain has a non-tamperable characteristic, the information stored in the blockchain can be trusted, and therefore, after the transaction times of the blockchain account are queried, the queried transaction times and the signature times can be compared in a consistent manner, and whether the account of the digital currency physical carrier is legal or not is determined according to a comparison result.
Specifically, as shown in table 1, if the signature frequency of the private key is consistent with the queried transaction frequency, it can be considered that each transaction signed by the private key is completed, and it can be determined that the account of the physical carrier of digital currency is legal; otherwise, the account of the physical carrier of the digital currency may be considered illegal. Further, if the signature times of the private key are greater than the inquired transaction times, the account of the digital currency physical carrier can be considered to have unfinished transactions; if the signature times of the private key are less than the inquired transaction times, the physical account of the digital currency is considered to have errors.
It is worth to say that in a legal state, the physical carrier of the digital currency can be used as the entity currency to carry out transactions and can also be used as an identity certificate; in an unsecure state, the digital currency physical carrier may have signed the transaction with the private key, but the transaction has not yet been confirmed, where the transaction has not been broadcast to, or accepted by, the blockchain network, which may result in the transaction being in an unconfirmed state where the digital currency physical carrier is neither available for the transaction nor is it available as an identity credential.
Therefore, in a possible application scenario, when a user who owns a physical carrier of digital money consumes the money and a payee collects the physical carrier of digital money, the account validity of the physical carrier of digital money is verified by using a smartphone (i.e., a terminal device) carried by the payee, and a verification method is shown in fig. 5. When the account of the digital currency physical carrier is confirmed to be legal, completing the transaction; if the account of the physical carrier of digital currency is illegal, collection may be denied.
In another possible application scenario, when a user possessing a physical carrier of digital currency performs identity authentication, an authenticator collects the physical carrier of digital currency and verifies the validity of the physical carrier of digital currency by using an authentication device (i.e. a terminal device), and a verification method is shown in fig. 5. When the account of the digital currency physical carrier is confirmed to be legal, the user is confirmed to pass the identity authentication; otherwise, determining that the user does not pass the identity authentication.
It should be added that the interaction between the terminal device and the physical carrier of digital currency referred to in fig. 1 to 7 requires a communication connection to be established between the terminal device and the physical carrier of digital currency, wherein the communication connection may be wired or wireless, or may be contact or non-contact. The contact type terminal device may be, for example, NFC (Near Field Communication), and thus the terminal device may be a smart phone with an NFC interface.
The embodiment of the present disclosure further provides an account verification apparatus for digital money, where the account verification apparatus is applied to a terminal device, and as shown in fig. 8, the account verification apparatus 800 includes: a first sending module 801, configured to send an inquiry request to a digital currency physical carrier, where the digital currency physical carrier stores account information of a block chain account and a signature frequency of a private key; a first receiving module 802, configured to receive an inquiry response sent by the physical carrier of digital currency, where the inquiry response includes the account information and the signature times; the query module 803 is configured to query a blockchain according to the account information to obtain the transaction times of the blockchain account; a verification module 804, configured to verify the account validity of the digital currency physical carrier according to the transaction times and the signature times.
Optionally, as shown in fig. 9, the verification module 804 includes: a comparison sub-module 841 for comparing the signature times with the transaction times in a consistent manner; the determining sub-module 842 is configured to determine the account legitimacy of the physical carrier of digital currency if the number of signatures matches the number of transactions.
Optionally, as shown in fig. 9, the account verification apparatus 800 further includes: and the query module 805 is configured to, when it is determined that the account of the digital currency physical carrier is legal, recharge and/or query a balance of the wallet of the blockchain account according to the account information.
The embodiment of the present disclosure further provides an account verification apparatus for digital currency, where the account verification apparatus is applied to a physical carrier of digital currency, as shown in fig. 10, the account verification apparatus 1000 includes: a second receiving module 1001, configured to receive an inquiry request sent by a terminal device; an obtaining module 1002, configured to obtain, in response to the query request, the account information and the signature times stored in the physical digital currency carrier; a second sending module 1003, configured to send an inquiry response to the terminal device, where the inquiry response includes the account information and the signature times, and the inquiry response is used for the terminal device to verify the account validity of the digital currency physical carrier according to the account information and the signature times.
The embodiment of the present disclosure further provides a transaction apparatus for digital currency, the transaction apparatus is applied to a physical carrier of digital currency, the physical carrier of digital currency stores a private key of a blockchain account, as shown in fig. 11, the transaction apparatus 1100 includes: a third receiving module 1101, configured to receive a signature request sent by a terminal device; the signature module 1102 is configured to sign the transaction information carried in the signature request by using the private key; an updating module 1103, configured to update the signature frequency of the private key after the signature is successful; a third sending module 1104, configured to send a signature response to the terminal device, where the signature response includes the signed transaction information, and the signature response is used for the terminal device to initiate a transaction to a blockchain network according to the transaction information.
Optionally, as shown in fig. 12, the updating module 1103 includes: a setting submodule 1131, configured to set a count value used for counting the number of signatures of the private key; the updating sub-module 1132 is configured to increment the count value by 1 every time the private key is used to sign the transaction information carried in the signature request.
The embodiment of the present disclosure further provides a transaction apparatus for digital currency, where the transaction apparatus is applied to a terminal device, and as shown in fig. 13, the transaction apparatus 1300 includes: a creation module 1301 for creating transaction information; a fourth sending module 1302, configured to send a signature request to a digital currency physical carrier, where the signature request includes the transaction information, and the digital currency physical carrier stores a private key of a block chain account; a fourth receiving module 1303, configured to receive a signed response sent by the physical carrier of digital currency, where the signed response includes the transaction information signed by the private key; an initiating module 1304 for initiating a transaction to a blockchain network according to the transaction information signed by the private key.
The disclosed embodiments also provide a physical carrier for digital currency, comprising: a memory having a computer program stored thereon; a processor for executing said computer program in said memory to carry out the method steps performed by the physical carrier of digital currency in the method of transaction and account verification of digital currency as provided by the above-described method embodiments.
The disclosed embodiments also provide a computer-readable storage medium, which when executed by a processor, implements the method steps performed by the physical carrier of digital currency in the transaction and account verification method of digital currency provided by the above-described method embodiments.
An embodiment of the present disclosure further 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 method steps performed by the terminal device in the method for transaction and account verification of digital currency provided by the above method embodiments.
Illustratively, fig. 14 is a schematic diagram of a possible structure of the terminal device. As shown in fig. 14, the terminal device 1400 may include: a processor 1401, and a memory 1402. The terminal device 1400 may also include one or more of a multimedia component 1403, an input/output (I/O) interface 1404, and a communication component 1405.
Wherein, the processor 1401 is used for controlling the overall operation of the terminal device 1400 to complete the method steps executed by the terminal device in the transaction and account verification method of digital currency provided by the above method embodiments. The memory 1402 is used to store various types of data to support operation at the terminal device 1400, such as instructions for any application or method operating on the terminal device 1400, and application-related data, such as contact data, messaging, pictures, audio, video, and so forth. The Memory 1402 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 1402 or transmitted through the communication component 1405. The audio assembly also includes at least one speaker for outputting audio signals. The I/O interface 1404 provides an interface between the processor 1401 and other interface modules, such as a keyboard, mouse, buttons, etc. These buttons may be virtual buttons or physical buttons. The communication component 1405 is used for wired or wireless communication between the terminal device 1400 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 1405 can include: Wi-Fi module, bluetooth module, NFC module.
In an exemplary embodiment, the terminal Device 1400 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, for performing the method steps performed by the terminal Device in the method for transaction and account verification of Digital currency provided by the above method embodiments.
Furthermore, a computer-readable storage medium provided by the embodiments of the present disclosure may be the above-mentioned memory 1402 including program instructions, which may be executed by the processor 1401 of the terminal device 1400 to perform the method steps performed by the terminal device in the method for transaction and account verification of digital currency provided by the above-mentioned method embodiments.
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 (18)

  1. An account verification method for digital currency, which is applied to a terminal device, and comprises the following steps:
    sending a query request to a digital currency physical carrier, wherein the digital currency physical carrier stores account information of a block chain account and signature times of a private key;
    receiving an inquiry response sent by the digital currency physical carrier, wherein the inquiry response comprises the account information and the signature times;
    inquiring a block chain according to the account information to obtain the transaction times of the block chain account;
    and verifying the account validity of the digital currency physical carrier according to the transaction times and the signature times.
  2. The method of claim 1, wherein said verifying the account validity of the physical carrier of digital currency based on the number of transactions and the number of signatures comprises:
    carrying out consistency comparison on the signature times and the transaction times;
    and if the signature times are consistent with the transaction times, determining that the account of the digital currency physical carrier is legal.
  3. The method according to claim 1 or 2, characterized in that the method further comprises:
    and if the account of the digital currency physical carrier is legal, recharging and/or inquiring balance of the wallet of the block chain account according to the account information.
  4. An account verification method for digital currency, which is applied to a digital currency physical carrier, wherein the digital currency physical carrier stores account information of a block chain account and signature times of a private key, and the method comprises the following steps:
    receiving an inquiry request sent by terminal equipment;
    in response to the inquiry request, acquiring the account information and the signature times stored in the digital currency physical carrier;
    and sending an inquiry response to the terminal equipment, wherein the inquiry response comprises the account information and the signature times, and the inquiry response is used for verifying the account validity of the digital currency physical carrier by the terminal equipment according to the account information and the signature times.
  5. A method of trading in digital currency, the method being applied to a physical carrier of digital currency, the physical carrier of digital currency storing a private key for a blockchain account, the method comprising:
    receiving a signature request sent by terminal equipment;
    signing the transaction information carried by the signature request by using the private key, and updating the signature times of the private key after the signature is successful;
    and sending a signature response to the terminal equipment, wherein the signature response comprises the signed transaction information, and the signature response is used for the terminal equipment to initiate a transaction to the blockchain network according to the transaction information.
  6. The method of claim 5, wherein updating the signature number of the private key comprises:
    setting a count value for counting the signature times of the private key;
    and increasing the count value by 1 every time the private key is used for signing the transaction information carried by the signature request.
  7. A method for trading digital currency, the method being applied to a terminal device, the method comprising:
    creating transaction information;
    sending a signature request to a digital currency physical carrier, wherein the signature request comprises the transaction information, and the digital currency physical carrier stores a private key of a block chain account;
    receiving a signed response sent by the physical carrier of digital currency, wherein the signed response comprises the transaction information signed by the private key;
    initiating a transaction to a blockchain network according to the transaction information signed by the private key.
  8. An account verification apparatus for digital money, the apparatus being applied to a terminal device, the apparatus comprising:
    the system comprises a first sending module, a second sending module and a third sending module, wherein the first sending module is used for sending an inquiry request to a digital currency physical carrier, and the digital currency physical carrier stores account information of a block chain account and signature times of a private key;
    the first receiving module is used for receiving an inquiry response sent by the digital currency physical carrier, wherein the inquiry response comprises the account information and the signature times;
    the query module is used for querying the block chain according to the account information to obtain the transaction times of the block chain account;
    and the verification module is used for verifying the account validity of the digital currency physical carrier according to the transaction times and the signature times.
  9. The apparatus of claim 8, wherein the verification module comprises:
    the comparison submodule is used for carrying out consistency comparison on the signature times and the transaction times;
    and the determining submodule is used for determining that the account of the digital currency physical carrier is legal if the signature times are consistent with the transaction times.
  10. The apparatus of claim 8 or 9, further comprising:
    and the query module is used for charging the wallet of the block chain account and/or querying the balance according to the account information when the account of the digital currency physical carrier is determined to be legal.
  11. An account verification device for digital currency, which is applied to a digital currency physical carrier, wherein the digital currency physical carrier stores account information of a block chain account and signature times of a private key, and the device comprises:
    the second receiving module is used for receiving the query request sent by the terminal equipment;
    an obtaining module, configured to obtain, in response to the query request, the account information and the signature times stored in the physical digital currency carrier;
    and the second sending module is used for sending an inquiry response to the terminal equipment, wherein the inquiry response comprises the account information and the signature times, and the inquiry response is used for verifying the account validity of the digital currency physical carrier by the terminal equipment according to the account information and the signature times.
  12. An apparatus for trading of digital currency, the apparatus being applied to a physical carrier of digital currency, the physical carrier of digital currency storing a private key of a blockchain account, the apparatus comprising:
    the third receiving module is used for receiving a signature request sent by the terminal equipment;
    the signature module is used for signing the transaction information carried by the signature request by using the private key;
    the updating module is used for updating the signature times of the private key after the signature is successful;
    and a third sending module, configured to send a signature response to the terminal device, where the signature response includes the signed transaction information, and the signature response is used for the terminal device to initiate a transaction to a blockchain network according to the transaction information.
  13. The apparatus of claim 12, wherein the update module comprises:
    the setting submodule is used for setting a count value used for counting the signature times of the private key;
    and the updating submodule is used for signing the transaction information carried by the signature request once by using the private key and increasing the count value by 1.
  14. An apparatus for trading of digital money, the apparatus being applied to a terminal device, the apparatus comprising:
    the creating module is used for creating transaction information;
    a fourth sending module, configured to send a signature request to a digital currency physical carrier, where the signature request includes the transaction information, and the digital currency physical carrier stores a private key of a block chain account;
    a fourth receiving module, configured to receive a signed response sent by the physical carrier of digital currency, where the signed response includes the transaction information signed by the private key;
    and the initiating module is used for initiating a transaction to the blockchain network according to the transaction information signed by the private key.
  15. A terminal device, 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 any one of claims 1 to 3 and claim 7.
  16. A computer-readable storage medium, characterized in that the program realizes the steps of the method of any one of claims 1 to 3 and 7 when executed by a processor.
  17. 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 4 to 6.
  18. A computer-readable storage medium, characterized in that the program realizes the steps of the method of any one of claims 4 to 6 when executed by a processor.
CN201980092465.5A 2019-02-22 2019-02-22 Transaction and account verification method, device and storage medium of digital currency Pending CN113474804A (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2019/075936 WO2020168564A1 (en) 2019-02-22 2019-02-22 Method and device for digital currency transaction and account authentication, and storage medium

Publications (1)

Publication Number Publication Date
CN113474804A true CN113474804A (en) 2021-10-01

Family

ID=72143992

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201980092465.5A Pending CN113474804A (en) 2019-02-22 2019-02-22 Transaction and account verification method, device and storage medium of digital currency

Country Status (2)

Country Link
CN (1) CN113474804A (en)
WO (1) WO2020168564A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115374421A (en) * 2022-10-24 2022-11-22 浙江省标准化研究院(金砖国家标准化(浙江)研究中心、浙江省物品编码中心) Electronic certificate management method and device for target object and electronic equipment

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112202564B (en) * 2020-09-14 2022-09-20 成都质数斯达克科技有限公司 Transaction transfer method and device, electronic equipment and readable storage medium
CN112419062B (en) * 2020-11-26 2024-05-24 深圳市朗科科技股份有限公司 NFC digital currency transaction method and system
CN113052599B (en) * 2021-03-31 2024-05-28 中国人民银行数字货币研究所 Method, device, equipment and system for generating, verifying and storing transaction certificates
CN114066451A (en) * 2021-11-16 2022-02-18 支付宝(杭州)信息技术有限公司 Method and system for managing fund transaction and electronic equipment
JP7517723B2 (en) 2022-07-06 2024-07-17 合同会社エルプラス Electronic signature system, electronic signature method, and electronic signature program

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10735197B2 (en) * 2016-07-29 2020-08-04 Workday, Inc. Blockchain-based secure credential and token management across multiple devices
CN106850200B (en) * 2017-01-25 2019-10-22 中钞信用卡产业发展有限公司杭州区块链技术研究院 A kind of safety method, system and the terminal of digital cash of the use based on block chain
CN107993066A (en) * 2017-12-20 2018-05-04 国民认证科技(北京)有限公司 A kind of resource transaction method and electronic purse system
CN108492183B (en) * 2018-03-29 2021-05-18 深圳前海微众银行股份有限公司 Block chain account transaction method, system and computer readable storage medium
CN108964924B (en) * 2018-07-24 2020-06-05 腾讯科技(深圳)有限公司 Digital certificate verification method and device, computer equipment and storage medium
CN108985100B (en) * 2018-08-15 2022-02-25 百度在线网络技术(北京)有限公司 Block chain-based element security certification method, device, equipment and medium
CN109118186A (en) * 2018-08-21 2019-01-01 甲骨文科技时代(深圳)有限公司 A kind of digital cash method of commerce based on hardware chip

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115374421A (en) * 2022-10-24 2022-11-22 浙江省标准化研究院(金砖国家标准化(浙江)研究中心、浙江省物品编码中心) Electronic certificate management method and device for target object and electronic equipment

Also Published As

Publication number Publication date
WO2020168564A1 (en) 2020-08-27

Similar Documents

Publication Publication Date Title
WO2020192743A1 (en) Permission management method, permission validation method and related apparatuses
CN108898389B (en) Content verification method and device based on block chain and electronic equipment
CN113474804A (en) Transaction and account verification method, device and storage medium of digital currency
CN110912707B (en) Block chain-based digital certificate processing method, device, equipment and storage medium
EP3247070B1 (en) Cryptocurrency-based event participation verification
JP2020518142A (en) Authentication method and block chain based authentication data processing method and apparatus
CN108769230B (en) Transaction data storage method, device, server and storage medium
CN110177124B (en) Identity authentication method based on block chain and related equipment
KR102227578B1 (en) Method for serving certificate based on zero knowledge proof by using blockchain network, and server and terminal for using them
JP2018093434A (en) Transaction management method, transaction management program and transaction management device
KR20210009791A (en) Electronic authentication apparatus using block chain and a method thereof
CN110908786A (en) Intelligent contract calling method, device and medium
CN112446039A (en) Block chain transaction processing method, device, equipment and storage medium
CN114971827A (en) Account checking method and device based on block chain, electronic equipment and storage medium
CN111314066B (en) Block chain-based data transfer method, terminal and computer-readable storage medium
KR102250430B1 (en) Method for using service with one time id based on pki, and user terminal using the same
KR20210058784A (en) Method for providing virtual asset service based on dicentralized identity and virtual asset service providing server using them
US11558179B2 (en) Distributed data storage
CN112053159A (en) Transaction data verification method and device, risk control server and business server
CN111899104B (en) Service execution method and device
CN111178896A (en) Bus taking payment method, device and storage medium
KR20200110118A (en) Method and server for managing user identity using blockchain network, and method and terminal for verifying user using user identity based on blockchain network
WO2019237258A1 (en) Digital currency interactive method, digital currency physical carrier, terminal device and storage medium
KR20230149201A (en) Certificate verification method using blockchain and system for the same
KR102412852B1 (en) Method for providing virtual asset service based on decentralized identity and virtual asset service providing server using them

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