CN108305071B - Method and device for inquiring digital currency detail information - Google Patents

Method and device for inquiring digital currency detail information Download PDF

Info

Publication number
CN108305071B
CN108305071B CN201711459260.5A CN201711459260A CN108305071B CN 108305071 B CN108305071 B CN 108305071B CN 201711459260 A CN201711459260 A CN 201711459260A CN 108305071 B CN108305071 B CN 108305071B
Authority
CN
China
Prior art keywords
digital currency
verification
request
wallet
query
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.)
Active
Application number
CN201711459260.5A
Other languages
Chinese (zh)
Other versions
CN108305071A (en
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.)
Digital Currency Institute of the Peoples Bank of China
Original Assignee
Digital Currency Institute of the Peoples Bank of China
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 Digital Currency Institute of the Peoples Bank of China filed Critical Digital Currency Institute of the Peoples Bank of China
Priority to CN201711459260.5A priority Critical patent/CN108305071B/en
Publication of CN108305071A publication Critical patent/CN108305071A/en
Application granted granted Critical
Publication of CN108305071B publication Critical patent/CN108305071B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3825Use of electronic signatures
    • 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
    • G06F21/602Providing cryptographic facilities or services
    • 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
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • G06F21/6245Protecting personal data, e.g. for financial or medical purposes
    • 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/30Payment architectures, schemes or protocols characterised by the use of specific devices or networks
    • G06Q20/36Payment architectures, schemes or protocols characterised by the use of specific devices or networks using electronic wallets or electronic money safes
    • 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/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3829Payment protocols; Details thereof insuring higher security of transaction involving key management

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Accounting & Taxation (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • General Health & Medical Sciences (AREA)
  • Finance (AREA)
  • Strategic Management (AREA)
  • Health & Medical Sciences (AREA)
  • General Business, Economics & Management (AREA)
  • Bioethics (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Computer Hardware Design (AREA)
  • Databases & Information Systems (AREA)
  • Medical Informatics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The invention discloses a method and a device for inquiring digital currency detail information, and relates to the technical field of computers. One embodiment of the method comprises: generating a query request comprising a query instruction; sending the query request to a security module; signing, by a security module, the query request using a wallet private key; and receiving the signed inquiry request, and displaying a digital currency list according to the inquiry instruction after verifying that the signature information of the inquiry request is valid by using a wallet public key. The implementation mode can ensure the safety when the user inquires the digital currency detail information.

Description

Method and device for inquiring digital currency detail information
Technical Field
The invention relates to the technical field of computers, in particular to a method and a device for inquiring digital currency detail information.
Background
The existing virtual currency represented by the bitcoin is implemented based on a digital account system, the query function related to the virtual currency is completed by the account system, and the user terminal is only an entrance for providing account access.
The digital currency in the technical scheme of the invention is real data in the form of encrypted currency strings, and can be understood as information such as digitized paper money or coins, digital currency strings and the like stored in a local digital currency wallet. How to ensure the safety when the user uses the digital currency wallet to inquire the information of the numerical currency is the problem that the invention hopes to solve.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method and an apparatus for querying digital currency detail information, which can ensure security when a user queries the digital currency detail information.
To achieve the above object, according to an aspect of an embodiment of the present invention, there is provided a method of inquiring digital money detail information, including:
generating a query request comprising a query instruction;
sending the query request to a security module; signing, by a security module, the query request using a wallet private key;
and receiving the signed inquiry request, and displaying a digital currency list according to the inquiry instruction after verifying that the signature information of the inquiry request is valid by using a wallet public key.
Optionally, before the step of displaying the digital currency list according to the query instruction, the method further includes:
and inquiring the locally stored digital currency according to the inquiry instruction, and generating a digital currency list according to an inquiry result.
Optionally, the query request further includes a wallet identifier and a wallet certificate; before the step of generating the query request including the query instruction, the method further comprises the following steps:
displaying a query instruction list;
determining a query instruction according to the selection of a user;
and acquiring the wallet identification and the wallet certificate which are matched with the inquiry instruction.
Optionally, after the step of displaying the digital currency list, the method further includes:
verifying the status of the digital currency in the digital currency list; the state of the digital currency includes at least one of authenticity, validity, amount, owner's public key, issuer name, and validity period.
Optionally, the step of verifying the status of the digital currency in the digital currency list comprises:
determining digital currency to be verified according to the selection of the user;
generating a verification request of a digital currency string comprising the digital currency to be verified;
sending the verification request to a security module, the verification request being signed by the security module using a wallet private key;
receiving a signed verification request, and sending the signed verification request to a digital currency verification mechanism after verifying that signature information of the verification request is valid by using a wallet public key;
and receiving and displaying the verification result returned by the digital currency verification mechanism.
Optionally, the verification request further includes a verification instruction, and before the step of generating the verification request for the digital currency string including the digital currency to be verified, the method further includes:
generating a verification instruction according to a digital currency string of digital currency to be verified; the verification instruction is used for supplementing at least one of information of the digital currency string, realizing format conversion meeting the query specification or supplementing owner authorization query information; the verification instruction includes a verification request option for specifying at least one of authenticity, validity or not, amount of money, owner's public key, issuer name, and expiration date as verification content.
The digital currency verification mechanism uses a mechanism private key to sign a verification result; the step of receiving and displaying the verification results returned by the digital currency verification mechanism includes:
receiving a verification result returned by the digital currency verification mechanism;
sending the verification result to the security module; verifying signature information of the verification result by using an organization public key by the security module;
and if the signature information is valid, displaying the verification result.
To achieve the above object, according to another aspect of embodiments of the present invention, there is provided an apparatus for inquiring digital money detail information, including:
the query request generating module is used for generating a query request comprising a query instruction;
the query request signature module is used for sending the query request to the security module; signing, by a security module, the query request using a wallet private key;
and the detail list display module is used for receiving the signed inquiry request, and displaying the digital currency detail list according to the inquiry instruction after verifying that the signature information of the inquiry request is valid by using the wallet public key.
Optionally, the detailed list display module is further configured to:
and inquiring the locally stored digital currency according to the inquiry instruction, and generating a digital currency list according to an inquiry result.
Optionally, the query request further includes a wallet identifier and a wallet certificate; the device further comprises:
the query instruction selection module is used for displaying a query instruction list; determining a query instruction according to the selection of a user; and acquiring the wallet identification and the wallet certificate which are matched with the inquiry instruction.
Optionally, the apparatus further comprises:
the state verification module is used for verifying the state of the digital currency in the digital currency list; the state of the digital currency includes at least one of authenticity, validity, amount, owner's public key, issuer name, and validity period.
Optionally, the status verification module is further configured to: determining digital currency to be verified according to the selection of the user; generating a verification request of a digital currency string comprising the digital currency to be verified; sending the verification request to a security module, the verification request being signed by the security module using a wallet private key; receiving a signed verification request, and sending the signed verification request to a digital currency verification mechanism after verifying that signature information of the verification request is valid by using a wallet public key; and receiving and displaying the verification result returned by the digital currency verification mechanism.
Optionally, the status verification module is further configured to: sending the signed verification request to a function execution module; the function execution module uses a wallet public key to verify whether the signature information in the verification request is valid; and if the signature information is determined to be valid, the function execution module sends the signed verification request to the digital currency verification mechanism.
Optionally, the verification request further includes a verification instruction, and the state verification module is further configured to:
generating a verification instruction according to a digital currency string of digital currency to be verified; the verification instruction is used for supplementing at least one of information of the digital currency string, realizing format conversion meeting the query specification or supplementing owner authorization query information; the verification instruction includes a verification request option for specifying at least one of authenticity, validity or not, amount of money, owner's public key, issuer name, and expiration date as verification content.
Optionally, the digital currency verifying authority signs the verification result by using an authority private key; the status verification module is further to:
receiving a verification result returned by the digital currency verification mechanism;
sending the verification result to a security module, and verifying the signature information of the verification result by using an organization public key by the security module;
and if the signature information is valid, displaying the verification result.
To achieve the above object, according to still another aspect of embodiments of the present invention, there is provided an electronic device for inquiring digital money specification information, including:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to perform at least the following:
generating a query request comprising a query instruction;
sending the query request to a security module; signing, by a security module, the query request using a wallet private key;
and receiving the signed inquiry request, and displaying a digital currency list according to the inquiry instruction after verifying that the signature information of the inquiry request is valid by using a wallet public key.
To achieve the above object, according to still another aspect of embodiments of the present invention, there is provided a computer-readable medium on which a computer program is stored, the program, when executed by a processor, at least realizing:
generating a query request comprising a query instruction;
sending the query request to a security module; signing, by a security module, the query request using a wallet private key;
and receiving the signed inquiry request, and displaying a digital currency list according to the inquiry instruction after verifying that the signature information of the inquiry request is valid by using a wallet public key.
One embodiment of the above invention has the following advantages or benefits: because the technical means that the security module signs the query request and the function execution module verifies the signature and then displays the digital currency detailed list is adopted, the source of the query request is ensured to be reliable, the digital currency information of the user is prevented from being leaked, and the technical effect of improving the query security is achieved.
Further effects of the above-mentioned non-conventional alternatives will be described below in connection with the embodiments.
Drawings
The drawings are included to provide a better understanding of the invention and are not to be construed as unduly limiting the invention. Wherein:
FIG. 1 is a schematic diagram of the main steps of a method of querying digital currency detail information, according to an embodiment of the invention;
FIG. 2 is a schematic diagram of the main modules of an apparatus for querying digital currency detail information according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a communication process of a query system constructed based on the method for querying digital currency detail information in the embodiment of the invention;
FIG. 4 is an exemplary system architecture diagram in which embodiments of the present invention may be employed;
fig. 5 is a schematic block diagram of a computer system suitable for use in implementing a terminal device or server of an embodiment of the invention.
Detailed Description
Exemplary embodiments of the present invention are described below with reference to the accompanying drawings, in which various details of embodiments of the invention are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
Fig. 1 is a schematic diagram of main steps of a method of inquiring digital money specification information according to an embodiment of the present invention.
As shown in fig. 1, a method for querying digital currency detail information according to an embodiment of the present invention includes:
s10, the function execution module generates a query request including the query instruction. The inquiry instruction in this step means an instruction for inquiring the digital money specification information, which is selected or input by the user.
S11, the function module sends the query request to the security module; the query request is signed by the security module using a wallet private key. The wallet private key appearing in the step is matched with the wallet public key appearing in the subsequent step, the wallet private key and the wallet public key are generated in the security module in the process that a user opens the digital currency wallet, the wallet private key has high confidentiality and security in the security module, the wallet public key can be sent to a receiver after being disclosed in a network or accompanied with a signature, and the receiver can verify the signature information after obtaining the wallet public key.
And S12, the security module sends the signed inquiry request to the function execution module. The function execution module is used for realizing the main business function of the wallet, and the digital currency detail information provided in the embodiment is part of the function.
And S13, the function execution module receives the signed inquiry request, and displays a digital currency list according to the inquiry instruction after verifying the signature information of the inquiry request to be valid by using the wallet public key. The digital currency list is stored in the local of the function execution module and is managed by the function execution module; in the digital currency list, the digital currency string of each digital currency is included, and the verification instruction, the amount, the name of the issuer, the date of manufacture, and the like of the digital currency issuer may be included.
In the scheme of the embodiment, the system comprises a terminal system, a security module and a function execution module; the terminal system is used for providing a display interface and receiving instructions of a user, the function execution module is used for realizing main business functions of the digital currency wallet, and the safety module provides the functions of signature and signature verification for the communication process between the function execution module and the terminal system or the outside and provides safety guarantee.
As can be seen from the above, in the method for querying digital currency detail information provided in this embodiment, because the technical means that the security module signs the query request, and the function execution module verifies the signature and then displays the digital currency detail list is adopted, the source of the query request is ensured to be reliable, thereby preventing the digital currency information of the user from being leaked, and achieving the technical effect of improving the query security.
In step S13, before the step of displaying the digital currency list according to the query instruction, the method further includes:
and the function execution module inquires the locally stored digital currency according to the inquiry instruction and generates a digital currency detail list according to an inquiry result.
The digital currency referred to in this application is different from existing virtual currency. The existing virtual currency has no physical data, but records the amount of money held by a user by maintaining an account book, and the user does not actually hold any fund or asset; the digital money in the present application is a string stored in encrypted form in a digital money wallet (i.e., the function execution module in this embodiment) of the user terminal. Due to the difference, when the digital currency detail information is inquired, the account book does not need to be inquired in a networking mode, and only the locally stored digital currency needs to be inquired and counted.
In some optional embodiments, the query request further comprises a wallet identity and a wallet certificate; in step S10, before the step of generating the query request including the query instruction, the method further includes:
the function execution module displays a query instruction list; determining a query instruction according to the selection of a user; and acquiring the wallet identification and the wallet certificate which are matched with the inquiry instruction.
In this embodiment, the query instruction list may include, for example, a transaction statement query instruction, an associated bank account query instruction, and the like, in addition to the digital currency statement query instruction. In order to provide more comprehensive information, the purse summary information including, for example, the purse owner name, the purse service agency name, the purse type, the current deposited valid coin balance or total number of coins, etc. may be displayed at the same time as the inquiry command list is displayed. The wallet mark is used for uniquely determining a digital currency wallet, and the wallet certificate contains the wallet public key mentioned above; that is, the query request in this embodiment includes three pieces of information, namely, a query instruction, a wallet identifier, and a wallet certificate, the wallet identifier is convenient for accurately locating a specific wallet, and the wallet certificate is convenient for obtaining a wallet public key, thereby improving the reliability of the query process.
In some optional embodiments, after the step of displaying the digital currency list in step S13, the method further includes:
verifying a status of the digital currency in the digital currency list. The status of the digital currency includes, but is not limited to, at least one of authenticity, validity, amount, owner's public key, issuer name, and expiration date of the digital currency.
The step of verifying the validity of the digital currency in the list of digital currency details comprises:
determining digital currency to be verified according to the selection of the user; generating a verification request of a digital currency string comprising the digital currency to be verified; sending the verification request to a security module, the verification request being signed by the security module using a wallet private key; receiving a signed verification request, and sending the signed verification request to a digital currency verification mechanism after verifying that signature information of the verification request is valid by using a wallet public key; and receiving and displaying the verification result returned by the digital currency verification mechanism.
The digital currency verifying mechanism is a mechanism responsible for managing the state of the digital currency, and after receiving the verification request, the digital currency verifying mechanism firstly uses the wallet public key of the sender to sign and verify the verification request, if the verification is passed, the digital currency verifying mechanism further checks and verifies the state of the digital currency string contained in the verification request, and the verification result is signed by the private key of the digital currency verifying mechanism and then is sent to the user terminal; in addition to verifying the authenticity or validity of digital currency, it is also necessary to verify that owner authorization has been obtained when verifying other states of digital currency.
Since the user is an authentication request issued through the terminal system, it is necessary to ensure the security of the request. The security module signs the request first, and after the function execution module of the wallet verifies that the signature is valid, the security module sends the signature to a relevant digital currency verification authority.
The verification request further includes a verification instruction, and before the step of generating the verification request of the digital currency string including the digital currency to be verified, the method further includes:
generating a verification instruction according to a digital currency string of digital currency to be verified; the verification instruction is used for supplementing at least one of information of the digital currency string, realizing format conversion meeting the query specification or supplementing owner authorization query information.
Fig. 2 is a schematic diagram of main blocks of an apparatus for inquiring digital money specification information according to an embodiment of the present invention.
As shown in fig. 2, according to another embodiment of the present invention, there is provided an apparatus 200 for inquiring digital money detail information, including:
a query request generating module 201, configured to generate a query request including a query instruction;
a query request signing module 202, configured to send the query request to a security module 203; signing the query request by the security module 203 using a wallet private key;
and the detail list display module 204 is configured to receive the signed query request, and display a digital currency detail list according to the query instruction after verifying that signature information of the query request is valid by using the wallet public key.
In some optional embodiments, the list display module 204 is further configured to:
and inquiring the locally stored digital currency according to the inquiry instruction, and generating a digital currency list according to an inquiry result.
In some optional embodiments, the query request further comprises a wallet identity and a wallet certificate; the apparatus 200 further comprises:
a query instruction selection module 205, configured to display a query instruction list; determining a query instruction according to the selection of a user; and acquiring the wallet identification and the wallet certificate which are matched with the inquiry instruction.
In some optional embodiments, the apparatus 200 further comprises:
a status verification module 206, configured to verify validity of the digital currency in the digital currency list. The state of the digital currency includes at least one of authenticity, validity, amount, owner's public key, issuer name, and validity period.
In some optional embodiments, the status verification module 206 is further configured to: determining digital currency to be verified according to the selection of the user; generating a verification request of a digital currency string comprising the digital currency to be verified; signing the verification request using a wallet private key; sending the signed verification request to a digital currency verification authority; and receiving and displaying the verification result returned by the digital currency verification mechanism.
In some optional embodiments, the status verification module 206 is further configured to: sending the signed verification request to the function execution module 203; the function execution module 203 verifies whether the signature information in the verification request is valid using the wallet public key; if the signature information is determined to be valid, the signed verification request is sent to the digital currency verification authority by the function execution module 203.
In some optional embodiments, the verification request further includes a verification instruction, and the state verification module 206 is further configured to:
generating a verification instruction according to a digital currency string of digital currency to be verified; the verification instruction is used for supplementing at least one of information of the digital currency string, realizing format conversion meeting the query specification or supplementing owner authorization query information.
Fig. 3 is a communication process diagram of a query system constructed based on the method for querying digital currency detail information in the embodiment of the invention.
As shown in fig. 3, the inquiry system 300 provided by the present embodiment includes a terminal wallet contract function execution module 32, a terminal security module 33, and a digital money verification mechanism 34; the user 31 is a user. Wherein the terminal wallet contract function execution module 32 corresponds to the function execution module in the previous method embodiment, and the terminal security module 33 corresponds to the security module in the previous method embodiment; the terminal wallet contract function execution module 32 and the terminal security module 33 may be software modules, may also be integrated hardware or independent hardware, or may also be a component formed by combining software and hardware. The terminal wallet contract function execution module 32 is mainly used to implement a digital money wallet service function, and the terminal security module 33 is used to maintain the security of the digital money wallet, for example, to sign and verify the signature of information transmitted or received by the terminal wallet contract function execution module 32.
Based on the query system 300, the query process implemented by the user 31 includes:
301. the user 31 logs in to the local digital money wallet.
302. After the user 31 logs in the wallet, selects and enters the inquiry interface, and the wallet summary information and the inquiry instruction list are controlled to be displayed by the terminal wallet contract function execution module 32. The purse profile information includes, among other things, the purse owner name, the purse service entity name, the purse type, the current deposited valid currency balance, or the total number of currency. The inquiry instruction list mainly comprises a transaction detail inquiry instruction, an associated bank account inquiry instruction, a digital currency detail inquiry instruction and the like.
303. The user 31 selects the digital money specification inquiry instruction by clicking or the like, and the selection result is sent to the terminal wallet contract function execution module 32.
304. The terminal wallet contract function execution module 32 generates a digital money detail inquiry request including a wallet id, a certificate, and a digital money detail inquiry instruction according to a digital money detail inquiry instruction selected by a user.
305. The terminal wallet contract function execution module 32 sends a digital money detail inquiry instruction to the terminal security module 33.
306. The terminal security module 33 signs the digital currency detail query request using the wallet private key, and sends the signed digital currency detail query request to the terminal wallet contract function execution module 32.
307. The terminal wallet contract function execution module 32 verifies the signature information of the digital currency detail inquiry request using the wallet public key.
308. After the verification is passed, the terminal wallet contract function execution module 32 controls and displays a digital currency detail list, and the digital currency detail inquiry list includes a digital currency string and an issuer verification instruction, an amount, an issuer name, and a production date. Before displaying the digital money list, the terminal wallet contract function execution module 32 inquires all the locally stored digital money and generates the list according to the inquiry result.
309. The user 31 selects a specific digital currency in the digital currency list by clicking or the like, and the selection result is sent to the terminal security module 33.
310. The terminal wallet contract function execution module 32 generates a digital money verification request based on the specific digital money. The digital currency verification request comprises a string of the specific digital currency and a verification instruction; the verification instruction is generated by the terminal security module 33 and the terminal wallet contract function execution module 32, and is mainly used for supplementing information of a digital currency substring to be verified or converting a format conforming to a query specification.
311. The terminal wallet contract function execution module 32 sends a digital money verification request to the terminal security module 33.
312. The terminal security module 33 signs the digital currency verification request with the wallet private key and sends the signed digital currency verification request to the terminal wallet contract function execution module 32.
313. The terminal wallet contract function execution module 32 verifies the signature information in the digital currency verification request using the wallet public key.
314. After the verification is passed, the terminal wallet contract function execution module 32 sends a digital money verification request to the digital money verification mechanism 34.
315. The digital currency verification mechanism 34 verifies the validity of the specific digital currency according to the digital currency verification request, mainly the authenticity, validity, amount, owner public key, issuer name, validity period, etc. of the digital currency; and after the verification is completed, signing the verification result by using an institution private key of the digital currency verification institution.
316. The digital money validator 34 sends the validation result to the terminal wallet contract function executing module 32.
317. The terminal wallet contract function execution module 32 transmits the verification result to the terminal security module 33.
318. The terminal security module 33 verifies the signature information of the verification result with the agency public key. The verification private key and the verification public key are a pair of keys held by the digital currency verification mechanism 34 and matched with each other, and will not be described in detail herein.
319. After the authentication is passed, the terminal wallet contract function execution module 32 displays the authentication result to the user 31.
Fig. 4 illustrates an exemplary system architecture 400 of a method of querying digital currency specification information or an apparatus for querying digital currency specification information to which embodiments of the present invention may be applied.
As shown in fig. 4, the system architecture 400 may include terminal devices 401, 402, 403, a network 404, and a server 405. The network 404 serves as a medium for providing communication links between the terminal devices 401, 402, 403 and the server 405. Network 404 may include various types of connections, such as wire, wireless communication links, or fiber optic cables, to name a few.
A user may use terminal devices 401, 402, 403 to interact with a server 405 over a network 404 to receive or send messages or the like. Various digital money wallet applications may be installed on the terminal devices 401, 402, 403.
The terminal devices 401, 402, 403 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop portable computers, desktop computers, and the like.
The server 405 may be a server that provides various services, such as a background management server that provides authentication functions for users using digital money wallets run by the terminal devices 401, 402, 403.
It should be noted that the method for querying digital currency detail information provided by the embodiment of the present invention is generally implemented by the terminal devices 401, 402, and 403, and accordingly, the device for querying digital currency detail information is generally implemented in the terminal devices 401, 402, and 403.
It should be understood that the number of terminal devices, networks, and servers in fig. 4 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
The invention also provides an electronic device and a readable storage medium according to the embodiment of the invention.
Fig. 5 is a schematic block diagram of a computer system suitable for use in implementing a terminal device or server of an embodiment of the invention.
Referring now to FIG. 5, shown is a block diagram of a computer system 500 suitable for use with a terminal device implementing an embodiment of the present invention. The terminal device shown in fig. 5 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present invention.
As shown in fig. 5, the computer system 500 includes a Central Processing Unit (CPU)501 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)502 or a program loaded from a storage section 508 into a Random Access Memory (RAM) 503. In the RAM 503, various programs and data necessary for the operation of the system 500 are also stored. The CPU 501, ROM 502, and RAM 503 are connected to each other via a bus 504. An input/output (I/O) interface 505 is also connected to bus 504.
The following components are connected to the I/O interface 505: an input portion 506 including a keyboard, a mouse, and the like; an output portion 507 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage portion 508 including a hard disk and the like; and a communication section 509 including a network interface card such as a LAN card, a modem, or the like. The communication section 509 performs communication processing via a network such as the internet. The driver 510 is also connected to the I/O interface 505 as necessary. A removable medium 511 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 510 as necessary, so that a computer program read out therefrom is mounted into the storage section 508 as necessary.
In particular, the processes described above in the schematic representation of the main steps may be implemented as computer software programs according to embodiments of the present invention. For example, an embodiment of the invention comprises a computer program product comprising a computer program carried on a computer readable medium, the computer program comprising program code for performing the method illustrated in the schematic diagram of the main steps. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 509, and/or installed from the removable medium 511. The computer program performs the above-described functions defined in the system of the present invention when executed by the Central Processing Unit (CPU) 501.
It should be noted that the computer readable medium shown in the present invention can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present invention, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present invention, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules described in the embodiments of the present invention may be implemented by software or hardware. The described modules may also be provided in a processor, which may be described as: a processor includes a query request generation module 201, a query request signing module 202, a function execution module 203, a query instruction selection module 204, and a state verification module 205. The names of these modules do not constitute a limitation to the modules themselves in some cases, and for example, the function execution module may be further described as "a module for displaying a digital money list according to the inquiry instruction after verifying that signature information of the inquiry request is valid using a wallet public key".
As another aspect, the present invention also provides a computer-readable medium that may be contained in the apparatus described in the above embodiments; or may be separate and not incorporated into the device. The computer readable medium carries one or more programs which, when executed by a device, cause the device to comprise:
generating a query request comprising a query instruction;
signing the query request using a wallet private key;
sending the signed query request to a function execution module;
and the function execution module displays a digital currency list according to the query instruction after verifying that the signature information of the query request is valid by using the wallet public key.
According to the technical scheme of the embodiment of the invention, because the technical means that the security module signs the query request and the function execution module verifies the signature and then displays the digital currency detail list is adopted, the source of the query request is ensured to be reliable, thereby avoiding the leakage of the digital currency information of the user and achieving the technical effect of improving the query security.
The above-described embodiments should not be construed as limiting the scope of the invention. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions can occur, depending on design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (16)

1. A method for inquiring digital currency detail information is applied to a terminal and comprises the following steps:
the terminal wallet contract function execution module generates a query request comprising a query instruction;
the terminal wallet contract function execution module sends the query request to a terminal security module; signing, by the terminal security module, the query request using a wallet private key;
the terminal wallet contract function execution module receives the signed inquiry request, and displays a digital currency detail list according to the inquiry instruction after verifying that signature information of the inquiry request is valid by using a wallet public key;
wherein the list of digital currency details is stored locally in the terminal wallet contract function execution module and managed by the terminal wallet contract function execution module.
2. The method of claim 1, further comprising, prior to the step of displaying a list of digital currency details in accordance with the query instruction:
and inquiring the locally stored digital currency according to the inquiry instruction, and generating a digital currency list according to an inquiry result.
3. The method of claim 1, wherein the query request further comprises a wallet identification and a wallet certificate; before the step of generating the query request including the query instruction, the method further comprises the following steps:
displaying a query instruction list;
determining a query instruction according to the selection of a user;
and acquiring the wallet identification and the wallet certificate which are matched with the inquiry instruction.
4. The method of claim 1, further comprising, after the step of displaying the list of digital currency items:
verifying the status of the digital currency in the digital currency list; the state of the digital currency includes at least one of authenticity, validity, amount, owner's public key, issuer name, and validity period.
5. The method of claim 4, wherein the step of verifying the status of the digital currency in the list of digital currency details comprises:
determining digital currency to be verified according to the selection of the user;
generating a verification request of a digital currency string comprising the digital currency to be verified;
sending the verification request to a security module, the verification request being signed by the security module using a wallet private key;
receiving a signed verification request, and sending the signed verification request to a digital currency verification mechanism after verifying that signature information of the verification request is valid by using a wallet public key;
and receiving and displaying the verification result returned by the digital currency verification mechanism.
6. The method of claim 5, wherein the validation request further comprises validation instructions, and prior to the step of generating the validation request comprising the string of digital currencies for the digital currency to be validated, further comprising:
generating a verification instruction according to a digital currency string of digital currency to be verified; the verification instruction is used for supplementing at least one of information of the digital currency string, realizing format conversion meeting the query specification or supplementing owner authorization query information; the verification instruction includes a verification request option for specifying at least one of authenticity, validity or not, amount of money, owner's public key, issuer name, and expiration date as verification content.
7. The method of claim 5, wherein the digital currency validator signs the validation result using an institution private key; the step of receiving and displaying the verification results returned by the digital currency verification mechanism includes:
receiving a verification result returned by the digital currency verification mechanism;
sending the verification result to the security module; verifying signature information of the verification result by using an organization public key by the security module;
and if the signature information is valid, displaying the verification result.
8. An apparatus for inquiring digital currency detail information, which is applied to a terminal, comprises:
the query request generating module is used for generating a query request comprising a query instruction;
the query request signature module is used for sending the query request to the terminal security module; signing, by the terminal security module, the query request using a wallet private key;
the detail list display module is used for receiving the signed inquiry request, and displaying a digital currency detail list according to the inquiry instruction after verifying that the signature information of the inquiry request is valid by using a wallet public key;
the digital currency list is stored locally in the terminal wallet contract function execution module and is managed by the terminal wallet contract function execution module.
9. The apparatus of claim 8, wherein the list display module is further configured to:
and inquiring the locally stored digital currency according to the inquiry instruction, and generating a digital currency list according to an inquiry result.
10. The apparatus of claim 8, wherein the query request further comprises a wallet identification and a wallet certificate; the device further comprises:
the query instruction selection module is used for displaying a query instruction list; determining a query instruction according to the selection of a user; and acquiring the wallet identification and the wallet certificate which are matched with the inquiry instruction.
11. The apparatus of claim 8, further comprising:
the state verification module is used for verifying the state of the digital currency in the digital currency list; the state of the digital currency includes at least one of authenticity, validity, amount, owner's public key, issuer name, and validity period.
12. The apparatus of claim 11, wherein the status verification module is further configured to: determining digital currency to be verified according to the selection of the user; generating a verification request of a digital currency string comprising the digital currency to be verified; sending the verification request to a security module, the verification request being signed by the security module using a wallet private key; receiving a signed verification request, and sending the signed verification request to a digital currency verification mechanism after verifying that signature information of the verification request is valid by using a wallet public key; and receiving and displaying the verification result returned by the digital currency verification mechanism.
13. The apparatus of claim 12, wherein the validation request further comprises validation instructions, and wherein the state validation module is further configured to:
generating a verification instruction according to a digital currency string of digital currency to be verified; the verification instruction is used for supplementing at least one of information of the digital currency string, realizing format conversion meeting the query specification or supplementing owner authorization query information; the verification instruction includes a verification request option for specifying at least one of authenticity, validity or not, amount of money, owner's public key, issuer name, and expiration date as verification content.
14. The apparatus according to claim 12, wherein the digital currency validator signs the validation result using an institution private key; the status verification module is further to:
receiving a verification result returned by the digital currency verification mechanism;
sending the verification result to a security module, and verifying the signature information of the verification result by using an organization public key by the security module;
and if the signature information is valid, displaying the verification result.
15. An electronic device for querying digital currency detail information, comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-7.
16. A computer-readable medium, on which a computer program is stored, which, when being executed by a processor, carries out the method according to any one of claims 1-7.
CN201711459260.5A 2017-12-28 2017-12-28 Method and device for inquiring digital currency detail information Active CN108305071B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711459260.5A CN108305071B (en) 2017-12-28 2017-12-28 Method and device for inquiring digital currency detail information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711459260.5A CN108305071B (en) 2017-12-28 2017-12-28 Method and device for inquiring digital currency detail information

Publications (2)

Publication Number Publication Date
CN108305071A CN108305071A (en) 2018-07-20
CN108305071B true CN108305071B (en) 2020-11-24

Family

ID=62868079

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711459260.5A Active CN108305071B (en) 2017-12-28 2017-12-28 Method and device for inquiring digital currency detail information

Country Status (1)

Country Link
CN (1) CN108305071B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109191122B (en) * 2018-08-10 2023-06-20 中国银行股份有限公司 Method and device for acquiring transaction information certificate
CN112712361A (en) * 2019-11-25 2021-04-27 深圳市文鼎创数据科技有限公司 Transaction method and device based on digital currency and terminal equipment
CN113837762B (en) * 2020-06-24 2024-01-05 中国人民银行数字货币研究所 Digital currency payment method and device
CN111966277B (en) * 2020-08-17 2022-03-01 陶丽萍 Digital currency display method, device and equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101159054A (en) * 2007-11-14 2008-04-09 范传东 Method for realizing currency money payment through mobile communication appliance channel
CN107330690A (en) * 2017-06-26 2017-11-07 中国人民银行数字货币研究所 The method and system that the application wallet of digital cash is bound with bank's wallet

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6916247B2 (en) * 2001-11-23 2005-07-12 Cyberscan Technology, Inc. Modular entertainment and gaming systems
US7761384B2 (en) * 2006-03-16 2010-07-20 Sushil Madhogarhia Strategy-driven methodology for reducing identity theft
CN106910072A (en) * 2017-02-15 2017-06-30 捷德(中国)信息科技有限公司 Digital cash management method and system
CN107392752B (en) * 2017-06-26 2020-12-22 中国人民银行数字货币研究所 Digital currency wallet query method and query system
CN107480986B (en) * 2017-08-14 2019-08-09 飞天诚信科技股份有限公司 A kind of method and hardware wallet using hardware realization digital cash wallet

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101159054A (en) * 2007-11-14 2008-04-09 范传东 Method for realizing currency money payment through mobile communication appliance channel
CN107330690A (en) * 2017-06-26 2017-11-07 中国人民银行数字货币研究所 The method and system that the application wallet of digital cash is bound with bank's wallet

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
央行数字货币实现模式;周永林;《中国金融》;20170331(第5期);第59-60页 *

Also Published As

Publication number Publication date
CN108305071A (en) 2018-07-20

Similar Documents

Publication Publication Date Title
JP6691420B2 (en) User computer authentication
KR101780636B1 (en) Method for issuing certificate information and blockchain-based server using the same
KR101877345B1 (en) Method for approving the use of credit card by using token id based on blockchain and merkle tree structure related thereto, and server using the same
CN108305071B (en) Method and device for inquiring digital currency detail information
CN108092778B (en) Method and system for inquiring related account based on digital currency wallet
CN101739624A (en) Trusted payment network system
US20180158052A1 (en) Asynchronous cryptogram-based authentication processes
WO2010109271A1 (en) Systems, methods, apparatuses, and computer program products for generation and exchange of digital currency
CN110599290A (en) Data processing method and system for cross-border transaction
CN110599140B (en) Digital currency verification method and system
KR102333811B1 (en) System and method for processing card payment based on block-chain
CN114462989A (en) Method, device and system for starting digital currency hardware wallet application
CN108022104B (en) Login method, terminal and system for digital currency wallet
CN110751467B (en) Digital currency generation method and system
CN108197937B (en) Synchronization method, terminal and system for digital currency wallet
CN114186994A (en) Method, terminal and system for using digital currency wallet application
CN114037446A (en) Transaction method, transaction management method, device and system for digital currency
CN112465498A (en) Data processing method and device for application blockchain enterprise wallet
CN114462991A (en) Method and apparatus for conditional transactions based on digital currency
CN111127006A (en) Transaction processing method and system based on block chain
KR20160140219A (en) Authentication apparatus and method for connectivity of fintech services, and computer program for the same
US12020248B2 (en) Payment redemption using non-fungible tokens
CN110634062B (en) Digital currency quota putting method and system
CN115222400A (en) Payment method, device and system of digital currency
CN115222529A (en) Security chip, terminal, currency management device and application method thereof

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
GR01 Patent grant
GR01 Patent grant