[go: up one dir, main page]

CN108305071B - A method and device for querying detailed information of digital currency - Google Patents

A method and device for querying detailed information of digital currency 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
wallet
query
request
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.)
Institute of Printing Science and Technology Peoples Bank of China
Original Assignee
Institute of Printing Science and Technology 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 Institute of Printing Science and Technology Peoples Bank of China filed Critical Institute of Printing Science and Technology 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 OR CALCULATING; 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 OR CALCULATING; 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 OR CALCULATING; 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 OR CALCULATING; 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 OR CALCULATING; 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)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Finance (AREA)
  • General Business, Economics & Management (AREA)
  • Health & Medical Sciences (AREA)
  • Strategic Management (AREA)
  • General Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Medical Informatics (AREA)
  • Databases & Information Systems (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

本发明公开了一种查询数字货币明细信息的方法和装置,涉及计算机技术领域。该方法的一具体实施方式包括:生成包括查询指令的查询请求;将所述查询请求发送至安全模块;由安全模块使用钱包私钥对所述查询请求进行签名;接收签名后的查询请求,在使用钱包公钥验证所述查询请求的签名信息有效后,根据所述查询指令显示数字货币明细列表。该实施方式能够保证用户查询数字货币明细信息时的安全性。

Figure 201711459260

The invention discloses a method and a device for querying detailed information of digital currency, and relates to the technical field of computers. A specific implementation of the method includes: generating a query request including a query instruction; sending the query request to a security module; signing the query request by the security module using the wallet private key; After verifying that the signature information of the query request is valid using the wallet public key, a detailed list of digital currencies is displayed according to the query instruction. This embodiment can ensure the security when the user queries the detailed information of the digital currency.

Figure 201711459260

Description

一种查询数字货币明细信息的方法和装置A method and device for querying detailed information of digital currency

技术领域technical field

本发明涉及计算机技术领域,尤其涉及一种查询数字货币明细信息的方法和装置。The invention relates to the field of computer technology, and in particular, to a method and device for querying detailed information of digital currency.

背景技术Background technique

现有的以比特币为代表的虚拟货币,其实现原理均基于数字化的账户体系,涉及此类虚拟货币的查询功能均依赖该账户系统完成,用户终端只是提供账户访问的入口。The existing virtual currency represented by Bitcoin is based on the digital account system, and the query function involving such virtual currency is completed by the account system, and the user terminal only provides the entrance to the account.

本发明技术方案中所指的数字货币,则是以加密货币字串的形式存在的真实数据,可以理解为数字化的纸币或硬币,数字货币的字串等信息存放于本地的数字货币钱包中。如何保证用户使用数字货币钱包查询数值货币明细信息时的安全,是本发明希望解决的问题。The digital currency referred to in the technical solution of the present invention refers to real data in the form of encrypted currency strings, which can be understood as digitized banknotes or coins, and information such as digital currency strings is stored in a local digital currency wallet. How to ensure the security of the user when using the digital currency wallet to query the detailed information of the numerical currency is the problem that the present invention hopes to solve.

发明内容SUMMARY OF THE INVENTION

有鉴于此,本发明实施例提供一种查询数字货币明细信息的方法和装置,能够保证用户查询数字货币明细信息时的安全性。In view of this, the embodiments of the present invention provide a method and device for querying detailed information of digital currency, which can ensure the security of a user when querying detailed information of digital currency.

为实现上述目的,根据本发明实施例的一个方面,提供了一种查询数字货币明细信息的方法,包括:In order to achieve the above purpose, according to an aspect of the embodiments of the present invention, a method for querying detailed information of digital currency is provided, including:

生成包括查询指令的查询请求;generating query requests including query instructions;

将所述查询请求发送至安全模块;由安全模块使用钱包私钥对所述查询请求进行签名;sending the query request to the security module; the security module signs the query request using the wallet private key;

接收签名后的查询请求,在使用钱包公钥验证所述查询请求的签名信息有效后,根据所述查询指令显示数字货币明细列表。After receiving the signed query request, after verifying that the signature information of the query request is valid using the wallet public key, a detailed list of digital currencies is displayed according to the query instruction.

可选的,在根据所述查询指令显示数字货币明细列表的步骤前,还包括:Optionally, before the step of displaying the detailed list of digital currencies according to the query instruction, the method further includes:

根据所述查询指令查询本地存放的数字货币,根据查询结果生成数字货币明细列表。The digital currency stored locally is inquired according to the query instruction, and a detailed list of the digital currency is generated according to the query 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, it also includes:

显示查询指令列表;Display a list of query instructions;

根据用户的选择确定查询指令;Determine the query instruction according to the user's choice;

获取与所述查询指令相匹配的钱包标识和钱包证书。Obtain the wallet ID and wallet certificate matching the query instruction.

可选的,在显示数字货币明细列表的步骤后,还包括:Optionally, after the step of displaying the detailed list of digital currencies, it also includes:

对所述数字货币明细列表中的数字货币的状态进行验证;其中,数字货币的状态包括其真伪、是否有效、金额、所有者公钥、发行机构名称、有效期限中的至少一种。Verify the status of the digital currency in the detailed list of digital currencies; wherein, the status of the digital currency includes at least one of its authenticity, whether it is valid, the amount, the owner's public key, the name of the issuer, and the validity period.

可选的,对所述数字货币明细列表中的数字货币的状态进行验证的步骤,包括:Optionally, the step of verifying the status of the digital currency in the detailed list of digital currencies includes:

根据用户的选择确定待验证数字货币;Determine the digital currency to be verified according to the user's choice;

生成包括所述待验证数字货币的数字货币字串的验证请求;generating a verification request including the digital currency string of the digital currency to be verified;

将所述验证请求发送至安全模块,由安全模块使用钱包私钥对所述验证请求进行签名;sending the verification request to the security module, and the security module signs the verification request using the wallet private key;

接收签名后的验证请求,在使用钱包公钥验证所述验证请求的签名信息有效后,将签名后的验证请求发送至数字货币验证机构;After receiving the signed verification request, after using the wallet public key to verify that the signature information of the verification request is valid, send the signed verification request to the digital currency verification agency;

接收并显示所述数字货币验证机构返回的验证结果。Receive and display the verification result returned by the digital currency verification agency.

可选的,所述验证请求还包括验证指令,在生成包括所述待验证数字货币的数字货币字串的验证请求的步骤前,还包括:Optionally, the verification request further includes a verification instruction, and before the step of generating the verification request including the digital currency string of the digital currency to be verified, further includes:

根据待验证数字货币的数字货币字串生成验证指令;所述验证指令用于补充数字货币字串的信息、实现符合查询规范的格式转换或补充所有者授权查询信息中的至少一种;所述验证指令包括验证请求选项,所述验证请求选项用于指定真伪、是否有效、金额、所有者公钥、发行机构名称、有效期限中的至少一种作为验证内容。A verification instruction is generated according to the digital currency string of the digital currency to be verified; the verification instruction is used for at least one of supplementing the information of the digital currency string, realizing format conversion conforming to the query specification, or supplementing the owner-authorized query information; the The verification instruction includes a verification request option, and the verification request option is used to specify at least one of authenticity, validity, amount, owner's public key, issuer name, and validity period as verification content.

数字货币验证机构使用机构私钥对验证结果进行签名;接收并显示所述数字货币验证机构返回的验证结果的步骤,包括:The digital currency verification institution signs the verification result with the private key of the institution; the steps of receiving and displaying the verification result returned by the digital currency verification institution include:

接收所述数字货币验证机构返回的验证结果;Receive the verification result returned by the digital currency verification institution;

将验证结果发送至安全模块;由安全模块使用机构公钥对所述验证结果的签名信息进行验证;Send the verification result to the security module; the signature information of the verification result is verified by the security module using the public key of the institution;

若签名信息有效,则显示所述验证结果。If the signature information is valid, the verification result is displayed.

为实现上述目的,根据本发明实施例的另一个方面,提供了一种查询数字货币明细信息的装置,包括:In order to achieve the above purpose, according to another aspect of the embodiments of the present invention, a device for querying detailed information of digital currency is provided, including:

查询请求生成模块,用于生成包括查询指令的查询请求;a query request generation module, used to generate a query request including query instructions;

查询请求签名模块,用于将所述查询请求发送至安全模块;由安全模块使用钱包私钥对所述查询请求进行签名;a query request signature module, configured to send the query request to the security module; the security module signs the query request using the wallet private key;

明细列表显示模块,用于接收签名后的查询请求,在使用钱包公钥验证所述查询请求的签名信息有效后,根据所述查询指令显示数字货币明细列表。The detailed list display module is used for receiving the signed query request, and after verifying that the signature information of the query request is valid by using the wallet public key, displays the detailed list of digital currencies according to the query instruction.

可选的,所述明细列表显示模块还用于:Optionally, the detailed list display module is further used for:

根据所述查询指令查询本地存放的数字货币,根据查询结果生成数字货币明细列表。The digital currency stored locally is inquired according to the query instruction, and a detailed list of the digital currency is generated according to the query result.

可选的,所述查询请求还包括钱包标识和钱包证书;所述装置还包括:Optionally, the query request further includes a wallet identification and a wallet certificate; the device further includes:

查询指令选择模块,用于显示查询指令列表;根据用户的选择确定查询指令;以及获取与所述查询指令相匹配的钱包标识和钱包证书。The query instruction selection module is used for displaying the query instruction list; determining the query instruction according to the user's selection; and acquiring the wallet identification and wallet certificate matching the query instruction.

可选的,所述装置还包括:Optionally, the device further includes:

状态验证模块,用于对所述数字货币明细列表中的数字货币的状态进行验证;其中,数字货币的状态包括其真伪、是否有效、金额、所有者公钥、发行机构名称、有效期限中的至少一种。A status verification module, used to verify the status of the digital currency in the detailed list of digital currencies; wherein, the status of the digital currency includes its authenticity, whether it is valid, the amount, the owner's public key, the name of the issuer, and the validity period. at least one of.

可选的,所述状态验证模块还用于:根据用户的选择确定待验证数字货币;生成包括所述待验证数字货币的数字货币字串的验证请求;将所述验证请求发送至安全模块,由安全模块使用钱包私钥对所述验证请求进行签名;接收签名后的验证请求,在使用钱包公钥验证所述验证请求的签名信息有效后,将签名后的验证请求发送至数字货币验证机构;以及接收并显示所述数字货币验证机构返回的验证结果。Optionally, the state verification module is further configured to: determine the digital currency to be verified according to the user's selection; generate a verification request including the digital currency string of the digital currency to be verified; send the verification request to the security module, The verification request is signed by the security module using the wallet private key; after receiving the signed verification request, after using the wallet public key to verify that the signature information of the verification request is valid, the signed verification request is sent to the digital currency verification agency ; and receive and display the verification result returned by the digital currency verification institution.

可选的,所述状态验证模块还用于:将签名后的验证请求发送至功能执行模块;功能执行模块使用钱包公钥验证所述验证请求中的签名信息是否有效;若确定所述签名信息有效,则由功能执行模块将签名后的验证请求发送至数字货币验证机构。Optionally, the state verification module is further configured to: send the signed verification request to the function execution module; the function execution module uses the wallet public key to verify whether the signature information in the verification request is valid; if the signature information is determined to be valid If it is valid, the function execution module will send the signed verification request to the digital currency verification agency.

可选的,所述验证请求还包括验证指令,所述状态验证模块还用于:Optionally, the verification request further includes a verification instruction, and the state verification module is further used for:

根据待验证数字货币的数字货币字串生成验证指令;所述验证指令用于补充数字货币字串的信息、实现符合查询规范的格式转换或补充所有者授权查询信息中的至少一种;所述验证指令包括验证请求选项,所述验证请求选项用于指定真伪、是否有效、金额、所有者公钥、发行机构名称、有效期限中的至少一种作为验证内容。A verification instruction is generated according to the digital currency string of the digital currency to be verified; the verification instruction is used for at least one of supplementing the information of the digital currency string, realizing format conversion conforming to the query specification, or supplementing the owner-authorized query information; the The verification instruction includes a verification request option, and the verification request option is used to specify at least one of authenticity, validity, amount, owner's public key, issuer name, and validity period as verification content.

可选的,数字货币验证机构使用机构私钥对验证结果进行签名;所述状态验证模块还用于:Optionally, the digital currency verification institution uses the institution's private key to sign the verification result; the state verification module is also used to:

接收所述数字货币验证机构返回的验证结果;Receive the verification result returned by the digital currency verification institution;

将验证结果发送至安全模块,由安全模块使用机构公钥对所述验证结果的签名信息进行验证;Sending the verification result to the security module, and the security module verifies the signature information of the verification result using the public key of the institution;

若签名信息有效,则显示所述验证结果。If the signature information is valid, the verification result is displayed.

为实现上述目的,根据本发明实施例的再一个方面,提供了一种查询数字货币明细信息的电子设备,包括:In order to achieve the above purpose, according to yet another aspect of the embodiments of the present invention, an electronic device for querying detailed information of digital currency is provided, including:

一个或多个处理器;one or more processors;

存储装置,用于存储一个或多个程序,storage means for storing one or more programs,

当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器至少实现:When executed by the one or more processors, the one or more programs cause the one or more processors to at least:

生成包括查询指令的查询请求;generating query requests including query instructions;

将所述查询请求发送至安全模块;由安全模块使用钱包私钥对所述查询请求进行签名;sending the query request to the security module; the security module signs the query request using the wallet private key;

接收签名后的查询请求,在使用钱包公钥验证所述查询请求的签名信息有效后,根据所述查询指令显示数字货币明细列表。After receiving the signed query request, after verifying that the signature information of the query request is valid using the wallet public key, a detailed list of digital currencies is displayed according to the query instruction.

为实现上述目的,根据本发明实施例的又一个方面,提供一种计算机可读介质,其上存储有计算机程序,所述程序被处理器执行时至少实现:To achieve the above object, according to yet another aspect of the embodiments of the present invention, a computer-readable medium is provided, on which a computer program is stored, and when the program is executed by a processor, at least:

生成包括查询指令的查询请求;generating query requests including query instructions;

将所述查询请求发送至安全模块;由安全模块使用钱包私钥对所述查询请求进行签名;sending the query request to the security module; the security module signs the query request using the wallet private key;

接收签名后的查询请求,在使用钱包公钥验证所述查询请求的签名信息有效后,根据所述查询指令显示数字货币明细列表。After receiving the signed query request, after verifying that the signature information of the query request is valid using the wallet public key, a detailed list of digital currencies is displayed according to the query instruction.

上述发明中的一个实施例具有如下优点或有益效果:因为采用了安全模块对查询请求进行签名,由功能执行模块验证签名后再显示数字货币明细列表的技术手段,确保查询请求来源可靠,从而避免用户的数字货币信息发生泄漏,达到了提高查询安全性的技术效果。An embodiment of the above invention has the following advantages or beneficial effects: because the security module is used to sign the query request, and the function execution module verifies the signature and then displays the technical means of the detailed list of digital currencies, so as to ensure that the source of the query request is reliable, thereby avoiding The user's digital currency information is leaked, which achieves the technical effect of improving query security.

上述的非惯用的可选方式所具有的进一步效果将在下文中结合具体实施方式加以说明。Further effects of the above non-conventional alternatives will be described below in conjunction with specific embodiments.

附图说明Description of drawings

附图用于更好地理解本发明,不构成对本发明的不当限定。其中:The accompanying drawings are used for better understanding of the present invention and do not constitute an improper limitation of the present invention. in:

图1是根据本发明实施例的查询数字货币明细信息的方法的主要步骤的示意图;1 is a schematic diagram of the main steps of a method for querying detailed information of digital currency according to an embodiment of the present invention;

图2是根据本发明实施例的查询数字货币明细信息的装置的主要模块的示意图;2 is a schematic diagram of main modules of an apparatus for querying detailed information of digital currency according to an embodiment of the present invention;

图3是基于本发明实施例中查询数字货币明细信息的方法所构建的查询系统的通信过程示意图;3 is a schematic diagram of a communication process of a query system constructed based on a method for querying detailed information of digital currency in an embodiment of the present invention;

图4是本发明实施例可以应用于其中的示例性系统架构图;4 is an exemplary system architecture diagram to which an embodiment of the present invention may be applied;

图5是适于用来实现本发明实施例的终端设备或服务器的计算机系统的结构示意图。FIG. 5 is a schematic structural diagram of a computer system suitable for implementing a terminal device or a server according to an embodiment of the present invention.

具体实施方式Detailed ways

以下结合附图对本发明的示范性实施例做出说明,其中包括本发明实施例的各种细节以助于理解,应当将它们认为仅仅是示范性的。因此,本领域普通技术人员应当认识到,可以对这里描述的实施例做出各种改变和修改,而不会背离本发明的范围和精神。同样,为了清楚和简明,以下的描述中省略了对公知功能和结构的描述。Exemplary embodiments of the present invention are described below with reference to the accompanying drawings, which include various details of the embodiments of the present invention to facilitate understanding and should be considered as exemplary only. 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 from the following description for clarity and conciseness.

图1是根据本发明实施例的查询数字货币明细信息的方法的主要步骤的示意图。FIG. 1 is a schematic diagram of main steps of a method for querying detailed information of digital currency according to an embodiment of the present invention.

如图1所示,根据本发明实施例提供的一种查询数字货币明细信息的方法,包括:As shown in FIG. 1, a method for querying detailed information of digital currency provided according to an embodiment of the present invention includes:

S10,功能执行模块生成包括查询指令的查询请求。本步骤中的查询指令是指用于查询数字货币明细信息的指令,该指令由用户选择或者输入。S10, the function execution module generates a query request including a query instruction. The query instruction in this step refers to an instruction for querying the detailed information of the digital currency, and the instruction is selected or input by the user.

S11,功能模块将所述查询请求发送至安全模块;由安全模块使用钱包私钥对所述查询请求进行签名。本步骤中出现的钱包私钥和后续步骤中出现的钱包公钥相互匹配,钱包私钥和钱包公钥在用户开通数字货币钱包的过程中、在安全模块内部生成,其中,钱包私钥在安全模块内部具有极高的保密性和安全性,钱包公钥可以在网络公开或伴随签名后的信息发送至接受者,接受者获取到钱包公钥后即可对签名信息进行验证。S11, the function module sends the query request to the security module; the security module signs the query request using the wallet private key. The wallet private key that appears in this step matches the wallet public key that appears in the subsequent steps. The wallet private key and the wallet public key are generated inside the security module during the process of opening the digital currency wallet by the user. The wallet private key is in the security module. The module has extremely high confidentiality and security. The wallet public key can be disclosed on the network or sent to the recipient with the signed information. The recipient can verify the signature information after obtaining the wallet public key.

S12,安全模块将签名后的查询请求发送至功能执行模块。功能执行模块用于实现钱包的主要业务功能,本实施例中提供的数字货币明细信息是其功能的一部分。S12, the security module sends the signed query request to the function execution module. The function execution module is used to realize the main business function of the wallet, and the detailed information of the digital currency provided in this embodiment is a part of its function.

S13,功能执行模块接收签名后的查询请求,在使用钱包公钥验证所述查询请求的签名信息有效后,根据所述查询指令显示数字货币明细列表。其中,数字货币明细列表保存在功能执行模块本地,由功能执行模块进行管理;在数字货币明细列表中,包含各数字货币的数字货币字串,还可以包括该数字货币发行机构的验证指令、金额、发行机构名称、生产日期等等。S13: The function execution module receives the signed query request, and after verifying that the signature information of the query request is valid using the wallet public key, displays a detailed list of digital currencies according to the query instruction. Among them, the detailed list of digital currency is stored locally in the function execution module and managed by the function execution module; the detailed list of digital currency includes the digital currency string of each digital currency, and may also include the verification instruction and amount of the digital currency issuer. , name of issuer, date of manufacture, etc.

本实施例的方案中,包括终端系统、安全模块和功能执行模块三侧;其中,终端系统用于提供显示界面和接收用户的指令,功能执行模块用于实现数字货币钱包的主要业务功能,安全模块为功能执行模块与终端系统或外部的通信过程提供签名以及签名验证的功能,提供安全保障。The solution of this embodiment includes three sides: a terminal system, a security module and a function execution module; wherein, the terminal system is used to provide a display interface and receive instructions from users, and the function execution module is used to implement the main business functions of the digital currency wallet. The module provides the function of signature and signature verification for the communication process between the function execution module and the terminal system or external, and provides security guarantee.

从上面所述可以看出,本实施例提供的查询数字货币明细信息的方法,因为采用了安全模块对查询请求进行签名,由功能执行模块验证签名后再显示数字货币明细列表的技术手段,确保查询请求来源可靠,从而避免用户的数字货币信息发生泄漏,达到了提高查询安全性的技术效果。It can be seen from the above that the method for querying the detailed information of digital currency provided by this embodiment adopts the technical means that the security module signs the query request, and the function execution module verifies the signature and then displays the detailed list of digital currency. The source of the query request is reliable, so as to avoid the leakage of the user's digital currency information, and achieve the technical effect of improving the security of the query.

步骤S13中,在根据所述查询指令显示数字货币明细列表的步骤前,还包括:In step S13, before the step of displaying the detailed list of digital currencies according to the query instruction, the method further includes:

功能执行模块根据所述查询指令查询本地存放的数字货币,根据查询结果生成数字货币明细列表。The function execution module queries the locally stored digital currency according to the query instruction, and generates a detailed list of the digital currency according to the query result.

本申请中所指的数字货币不同于现有的虚拟货币。现有的虚拟货币没有实体的数据,而是通过维护账本来记录用户所持货币额,用户实际并不持有任何资金或资产;而本申请中的数字货币则是以加密形式存在的字串,存放于用户终端的数字货币钱包(即本实施例中的功能执行模块)中。由于具备上述区别,因此在查询数字货币明细信息时,不需要联网查询账本,而只需查询并统计本地存放的数字货币即可。The digital currency referred to in this application is different from the existing virtual currency. The existing virtual currency has no physical data, but records the amount of currency held by the user by maintaining the ledger, and the user does not actually hold any funds or assets; while the digital currency in this application is a string in encrypted form, It is stored in the digital currency wallet of the user terminal (that is, the function execution module in this embodiment). Due to the above differences, when querying the detailed information of digital currency, you do not need to query the ledger online, but only need to query and count the digital currency stored locally.

在一些可选的实施例中,所述查询请求还包括钱包标识和钱包证书;步骤S10中,在生成包括查询指令的查询请求的步骤前,还包括:In some optional embodiments, the query request further includes a wallet identifier and a wallet certificate; in step S10, before the step of generating the query request including the query instruction, further includes:

功能执行模块显示查询指令列表;根据用户的选择确定查询指令;获取与所述查询指令相匹配的钱包标识和钱包证书。The function execution module displays the query instruction list; determines the query instruction according to the user's selection; obtains the wallet identification and wallet certificate matching the query instruction.

本实施例中,查询指令列表除包括数字货币明细查询指令之外,还可以包括例如交易明细查询指令、关联银行账户查询指令等。为了提供更加全面的信息,在显示查询指令列表的同时,还可以显示钱包概要信息,包括例如钱包所有者名称、钱包服务机构名称、钱包类型、当前存放有效币余额或者币总数等。钱包标识用于唯一确定一个数字货币钱包,钱包证书包含有前文提到的钱包公钥;即本实施例中的查询请求中包含有查询指令、钱包标识和钱包证书三部分信息,钱包标识便于准确地定位到特定钱包、钱包证书便于获取到钱包公钥,提高查询过程的可靠性。In this embodiment, the query instruction list may include, for example, transaction details query instructions, associated bank account query instructions, and the like, in addition to digital currency details query instructions. In order to provide more comprehensive information, while displaying the query command list, it can also display wallet summary information, including, for example, the wallet owner's name, wallet service organization name, wallet type, the current balance of valid coins stored or the total number of coins, etc. The wallet identifier is used to uniquely identify a digital currency wallet, and the wallet certificate contains the wallet public key mentioned above; that is, the query request in this embodiment contains three parts of information: the query command, the wallet identifier and the wallet certificate, and the wallet identifier is easy to be accurate. To locate a specific wallet and wallet certificate, it is convenient to obtain the wallet public key and improve the reliability of the query process.

在一些可选的实施例中,在步骤S13中,显示数字货币明细列表的步骤后,还包括:In some optional embodiments, in step S13, after the step of displaying the detailed list of digital currencies, it further includes:

对所述数字货币明细列表中的数字货币的状态进行验证。其中,数字货币的状态包括但不限于数字货币的真伪、是否有效、金额、所有者公钥、发行机构名称、有效期限中的至少一种。Verify the status of the digital currencies in the detailed list of digital currencies. The status of the digital currency includes, but is not limited to, at least one of the authenticity of the digital currency, whether it is valid, the amount, the owner's public key, the name of the issuer, and the validity period.

对所述数字货币明细列表中的数字货币的有效性进行验证的步骤,包括:The steps of verifying the validity of the digital currencies in the detailed list of digital currencies include:

根据用户的选择确定待验证数字货币;生成包括所述待验证数字货币的数字货币字串的验证请求;将所述验证请求发送至安全模块,由安全模块使用钱包私钥对所述验证请求进行签名;接收签名后的验证请求,在使用钱包公钥验证所述验证请求的签名信息有效后,将签名后的验证请求发送至数字货币验证机构;接收并显示所述数字货币验证机构返回的验证结果。Determine the digital currency to be verified according to the user's selection; generate a verification request including the digital currency string of the digital currency to be verified; send the verification request to the security module, and the security module uses the wallet private key to perform the verification request. Signature; receive the signed verification request, use the wallet public key to verify that the signature information of the verification request is valid, and send the signed verification request to the digital currency verification institution; receive and display the verification returned by the digital currency verification institution result.

数字货币验证机构是负责对数字货币的状态进行管理的机构,在接受到验证请求后,数字货币验证机构首先使用发送方的钱包公钥对该验证请求进行签名验证,若验证通过,则进一步对验证请求中所包含的数字货币字串的状态进行核查验证,并将验证结果以数字货币验证机构私钥签名后发送至用户终端;除验证数字货币的真伪或是否有效外,在验证数字货币的其他状态时,还需要验证是否已经取得所有者授权。The digital currency verification agency is the agency responsible for managing the status of the digital currency. After receiving the verification request, the digital currency verification agency first uses the sender's wallet public key to perform signature verification on the verification request. Verify the status of the digital currency string contained in the verification request, and send the verification result to the user terminal after signing with the private key of the digital currency verification agency; in addition to verifying the authenticity or validity of the digital currency, verify the digital currency In other states, you also need to verify whether the owner's authorization has been obtained.

由于用户是通过终端系统下达的验证请求,因此需要确保该请求的安全性。安全模块首先对该请求进行签名,由钱包的功能执行模块验证签名有效后,再将其发送至相关数字货币验证机构。Since the authentication request is issued by the user through the terminal system, the security of the request needs to be ensured. The security module first signs the request, and the function execution module of the wallet verifies that the signature is valid, and then sends it to the relevant digital currency verification agency.

所述验证请求还包括验证指令,在生成包括所述待验证数字货币的数字货币字串的验证请求的步骤前,还包括:The verification request further includes a verification instruction, and before the step of generating the verification request including the digital currency string of the digital currency to be verified, further includes:

根据待验证数字货币的数字货币字串生成验证指令;所述验证指令用于补充数字货币字串的信息、实现符合查询规范的格式转换或补充所有者授权查询信息中的至少一种。A verification instruction is generated according to the digital currency string of the digital currency to be verified; the verification instruction is used for at least one of supplementing the information of the digital currency string, realizing format conversion conforming to the query specification, or supplementing the owner's authorized query information.

图2是根据本发明实施例的查询数字货币明细信息的装置的主要模块的示意图。FIG. 2 is a schematic diagram of main modules of an apparatus for querying detailed information of digital currency according to an embodiment of the present invention.

如图2所示,根据本发明的另一实施例,提供一种查询数字货币明细信息的装置200,包括:As shown in FIG. 2, according to another embodiment of the present invention, an apparatus 200 for querying detailed information of digital currency is provided, including:

查询请求生成模块201,用于生成包括查询指令的查询请求;a query request generating module 201, configured to generate a query request including a query instruction;

查询请求签名模块202,用于将所述查询请求发送至安全模块203;由安全模块203使用钱包私钥对所述查询请求进行签名;The query request signature module 202 is configured to send the query request to the security module 203; the security module 203 uses the wallet private key to sign the query request;

明细列表显示模块204,用于接收签名后的查询请求,在使用钱包公钥验证所述查询请求的签名信息有效后,根据所述查询指令显示数字货币明细列表。The detailed list display module 204 is configured to receive a signed query request, and after verifying that the signature information of the query request is valid using the wallet public key, display a detailed list of digital currencies according to the query instruction.

在一些可选的实施例中,所述明细列表显示模块204还用于:In some optional embodiments, the detailed list display module 204 is further configured to:

根据所述查询指令查询本地存放的数字货币,根据查询结果生成数字货币明细列表。The digital currency stored locally is inquired according to the query instruction, and a detailed list of the digital currency is generated according to the query result.

在一些可选的实施例中,所述查询请求还包括钱包标识和钱包证书;所述装置200还包括:In some optional embodiments, the query request further includes a wallet identification and a wallet certificate; the apparatus 200 further includes:

查询指令选择模块205,用于显示查询指令列表;根据用户的选择确定查询指令;以及获取与所述查询指令相匹配的钱包标识和钱包证书。The query instruction selection module 205 is configured to display a query instruction list; determine the query instruction according to the user's selection; and obtain the wallet identifier and wallet certificate matching the query instruction.

在一些可选的实施例中,所述装置200还包括:In some optional embodiments, the apparatus 200 further includes:

状态验证模块206,用于对所述数字货币明细列表中的数字货币的有效性进行验证。其中,数字货币的状态包括其真伪、是否有效、金额、所有者公钥、发行机构名称、有效期限中的至少一种。The status verification module 206 is configured to verify the validity of the digital currency in the detailed list of digital currencies. Among them, the status of the digital currency includes at least one of its authenticity, whether it is valid, the amount, the owner's public key, the name of the issuer, and the validity period.

在一些可选的实施例中,所述状态验证模块206还用于:根据用户的选择确定待验证数字货币;生成包括所述待验证数字货币的数字货币字串的验证请求;使用钱包私钥对所述验证请求进行签名;将签名后的验证请求发送至数字货币验证机构;以及接收并显示所述数字货币验证机构返回的验证结果。In some optional embodiments, the state verification module 206 is further configured to: determine the digital currency to be verified according to the user's selection; generate a verification request including the digital currency string of the digital currency to be verified; use the wallet private key Sign the verification request; send the signed verification request to a digital currency verification institution; and receive and display the verification result returned by the digital currency verification institution.

在一些可选的实施例中,所述状态验证模块206还用于:将签名后的验证请求发送至功能执行模块203;功能执行模块203使用钱包公钥验证所述验证请求中的签名信息是否有效;若确定所述签名信息有效,则由功能执行模块203将签名后的验证请求发送至数字货币验证机构。In some optional embodiments, the state verification module 206 is further configured to: send the signed verification request to the function execution module 203; the function execution module 203 uses the wallet public key to verify whether the signature information in the verification request is Valid; if it is determined that the signature information is valid, the function execution module 203 sends the signed verification request to the digital currency verification institution.

在一些可选的实施例中,所述验证请求还包括验证指令,所述状态验证模块206还用于:In some optional embodiments, the verification request further includes a verification instruction, and the status verification module 206 is further configured to:

根据待验证数字货币的数字货币字串生成验证指令;所述验证指令用于补充数字货币字串的信息、实现符合查询规范的格式转换或补充所有者授权查询信息中的至少一种。A verification instruction is generated according to the digital currency string of the digital currency to be verified; the verification instruction is used for at least one of supplementing the information of the digital currency string, realizing format conversion conforming to the query specification, or supplementing the owner's authorized query information.

图3是基于本发明实施例中查询数字货币明细信息的方法所构建的查询系统的通信过程示意图。3 is a schematic diagram of a communication process of a query system constructed based on a method for querying detailed information of digital currency in an embodiment of the present invention.

如图3所示,本实施例提供的查询系统300包括终端钱包合约功能执行模块32、终端安全模块33和数字货币验证机构34;用户31为使用者。其中,终端钱包合约功能执行模块32对应于在前方法实施例中的功能执行模块,终端安全模块33对应于在前方法实施例中的安全模块;终端钱包合约功能执行模块32和终端安全模块33可以为软件模块,也可作为合一的硬件或各自独立的硬件,还可以是由软硬件结合构成的组件。终端钱包合约功能执行模块32主要用于实现数字货币钱包业务功能,终端安全模块33则用于维持数字货币钱包的安全性,例如对终端钱包合约功能执行模块32发送或接收的信息进行签名和签名验证。As shown in FIG. 3 , the query system 300 provided in this embodiment includes a terminal wallet contract function execution module 32 , a terminal security module 33 and a digital currency verification agency 34 ; the user 31 is the user. The terminal wallet contract function execution module 32 corresponds to the function execution module in the previous method embodiment, 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 It can be a software module, can also be an integrated hardware or independent hardware, or can be a component composed of a combination of software and hardware. The terminal wallet contract function execution module 32 is mainly used to implement the digital currency wallet business function, and the terminal security module 33 is used to maintain the security of the digital currency wallet, such as signing and signing the information sent or received by the terminal wallet contract function execution module 32 verify.

基于查询系统300,用户31实现的查询过程包括:Based on the query system 300, the query process implemented by the user 31 includes:

301.用户31登录本地数字货币钱包。301. User 31 logs in to the local digital currency wallet.

302.在用户31登录钱包后,选择并进入查询界面,由终端钱包合约功能执行模块32控制显示钱包概要信息和查询指令列表。钱包概要信息主要包括钱包所有者名称、钱包服务机构名称、钱包类型、当前存放有效币余额或者币总数。查询指令列表主要包括交易明细查询指令、关联银行账户查询指令、数字货币明细查询指令等。302. After the user 31 logs into the wallet, select and enter the query interface, and the terminal wallet contract function execution module 32 controls and displays the wallet summary information and the query instruction list. Wallet summary information mainly includes wallet owner name, wallet service organization name, wallet type, current balance of valid coins stored or total number of coins. The query instruction list mainly includes transaction details query instructions, linked bank account query instructions, digital currency details query instructions, etc.

303.用户31通过点击等方式选择数字货币明细查询指令,选择结果被发送至终端钱包合约功能执行模块32。303. The user 31 selects the digital currency details query instruction by clicking or other means, and the selection result is sent to the terminal wallet contract function execution module 32.

304.终端钱包合约功能执行模块32根据用户选择的数字货币明细查询指令,生成包括钱包标识、证书、数字货币明细查询指令的数字货币明细查询请求。304. The terminal wallet contract function execution module 32 generates a digital currency detailed query request including a wallet identification, a certificate, and a digital currency detailed query instruction according to the digital currency detailed query instruction selected by the user.

305.终端钱包合约功能执行模块32将数字货币明细查询指令发送给终端安全模块33。305. The terminal wallet contract function execution module 32 sends the digital currency details query instruction to the terminal security module 33.

306.终端安全模块33使用钱包私钥签名数字货币明细查询请求,并将签名后的数字货币明细查询请求发送至终端钱包合约功能执行模块32。306. The terminal security module 33 signs the digital currency details query request using the wallet private key, and sends the signed digital currency details query request to the terminal wallet contract function execution module 32.

307.终端钱包合约功能执行模块32使用钱包公钥验证数字货币明细查询请求的签名信息.307. The terminal wallet contract function execution module 32 uses the wallet public key to verify the signature information of the digital currency details query request.

308.终端钱包合约功能执行模块32在验证通过后,控制显示数字货币明细列表,数字货币明细查询列表包含数字货币字串以及发行机构验证指令、金额、发行机构名称、生产日期。其中,在显示数字货币明细列表之前,终端钱包合约功能执行模块32查询本地存放的全部数字货币,并根据查询结果生成该明细列表。308. After the verification is passed, the terminal wallet contract function execution module 32 controls to display the detailed list of digital currency, and the detailed query list of digital currency includes the digital currency string and the verification instruction of the issuing institution, the amount, the name of the issuing institution, and the production date. Wherein, before displaying the detailed list of digital currencies, the terminal wallet contract function execution module 32 queries all digital currencies stored locally, and generates the detailed list according to the query results.

309.用户31通过点击等方式选择数字货币明细列表中的特定数字货币,选择结果被发送至终端安全模块33。309. The user 31 selects a specific digital currency in the detailed list of digital currencies by clicking, etc., and the selection result is sent to the terminal security module 33.

310.终端钱包合约功能执行模块32根据该特定数字货币生成数字货币验证请求。数字货币验证请求中包括该特定数字货币的字串和验证指令;其中,验证指令由终端安全模块33和终端钱包合约功能执行模块32生成的,主要是对待验证数字货币子串的信息的补充或者符合查询规范的格式转换。310. The terminal wallet contract function execution module 32 generates a digital currency verification request according to the specific digital currency. The digital currency verification request includes the character string of the specific digital currency and the verification instruction; wherein, the verification instruction is generated by the terminal security module 33 and the terminal wallet contract function execution module 32, and is mainly to supplement the information of the digital currency substring to be verified or Format conversion that conforms to the query specification.

311.终端钱包合约功能执行模块32将数字货币验证请求发送至终端安全模块33。311. The terminal wallet contract function execution module 32 sends the digital currency verification request to the terminal security module 33.

312.终端安全模块33用钱包私钥签名数字货币验证请求,并将签名后的数字货币验证请求发送至终端钱包合约功能执行模块32。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.终端钱包合约功能执行模块32使用钱包公钥验证数字货币验证请求中的签名信息。313. The terminal wallet contract function execution module 32 uses the wallet public key to verify the signature information in the digital currency verification request.

314.验证通过后,终端钱包合约功能执行模块32将数字货币验证请求发送至数字货币验证机构34。314. After the verification is passed, the terminal wallet contract function execution module 32 sends the digital currency verification request to the digital currency verification agency 34.

315.数字货币验证机构34根据数字货币验证请求,验证该特定数字货币的有效性,主要为该数字货币的真伪、是否有效、金额、所有者公钥、发行机构名称、有效期限等;以及在验证完成后,使用数字货币验证机构的机构私钥对验证结果签名。315. The digital currency verification agency 34 verifies the validity of the specific digital currency according to the digital currency verification request, mainly including the authenticity of the digital currency, whether it is valid, the amount, the owner's public key, the name of the issuer, the validity period, etc.; and After the verification is completed, use the institutional private key of the digital currency verification institution to sign the verification result.

316.数字货币验证机构34将验证结果发送至终端钱包合约功能执行模块32。316. The digital currency verification agency 34 sends the verification result to the terminal wallet contract function execution module 32.

317.终端钱包合约功能执行模块32将验证结果发送至终端安全模块33。317. The terminal wallet contract function execution module 32 sends the verification result to the terminal security module 33.

318.终端安全模块33用机构公钥对验证结果的签名信息进行验证。验证私钥和验证公钥是数字货币验证机构34持有的、相互匹配的一对秘钥,在此不再赘述。318. The terminal security module 33 verifies the signature information of the verification result with the public key of the institution. The verification private key and the verification public key are a pair of secret keys held by the digital currency verification institution 34 and matched with each other, which will not be repeated here.

319.在验证通过后,终端钱包合约功能执行模块32向用户31显示验证结果。319. After the verification is passed, the terminal wallet contract function execution module 32 displays the verification result to the user 31.

图4示出了可以应用本发明实施例的查询数字货币明细信息的方法或查询数字货币明细信息的装置的示例性系统架构400。FIG. 4 shows an exemplary system architecture 400 of a method for querying detailed information of digital currency or an apparatus for querying detailed information of digital currency to which an embodiment of the present invention can be applied.

如图4所示,系统架构400可以包括终端设备401、402、403,网络404和服务器405。网络404用以在终端设备401、402、403和服务器405之间提供通信链路的介质。网络404可以包括各种连接类型,例如有线、无线通信链路或者光纤电缆等等。As shown in FIG. 4 , the system architecture 400 may include terminal devices 401 , 402 , and 403 , a network 404 and a server 405 . The network 404 is a medium used to provide a communication link between the terminal devices 401 , 402 , 403 and the server 405 . The network 404 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.

用户可以使用终端设备401、402、403通过网络404与服务器405交互,以接收或发送消息等。终端设备401、402、403上可以安装有各种数字货币钱包应用。The user can use the terminal devices 401, 402, 403 to interact with the server 405 through the network 404 to receive or send messages and the like. Various digital currency wallet applications can be installed on the terminal devices 401 , 402 and 403 .

终端设备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 computers, desktop computers, and the like.

服务器405可以是提供各种服务的服务器,例如对用户利用终端设备401、402、403所运行的数字货币钱包提供验证功能的后台管理服务器。The server 405 may be a server that provides various services, for example, a background management server that provides a verification function to the digital currency wallets run by the users using the terminal devices 401 , 402 and 403 .

需要说明的是,本发明实施例所提供的查询数字货币明细信息的方法一般由终端设备401、402、403,相应地,查询数字货币明细信息的装置一般终端设备401、402、403中。It should be noted that the method for querying detailed information of digital currency provided by the embodiment of the present invention is generally performed by terminal devices 401 , 402 and 403 .

应该理解,图4中的终端设备、网络和服务器的数目仅仅是示意性的。根据实现需要,可以具有任意数目的终端设备、网络和服务器。It should be understood that the numbers of terminal devices, networks and servers in FIG. 4 are merely illustrative. There can be any number of terminal devices, networks and servers according to implementation needs.

根据本发明的实施例,本发明还提供了一种电子设备和一种可读存储介质。According to an embodiment of the present invention, the present invention further provides an electronic device and a readable storage medium.

图5是适于用来实现本发明实施例的终端设备或服务器的计算机系统的结构示意图。FIG. 5 is a schematic structural diagram of a computer system suitable for implementing a terminal device or a server according to an embodiment of the present invention.

下面参考图5,其示出了适于用来实现本发明实施例的终端设备的计算机系统500的结构示意图。图5示出的终端设备仅仅是一个示例,不应对本发明实施例的功能和使用范围带来任何限制。Referring to FIG. 5 below, it shows a schematic structural diagram of a computer system 500 suitable for implementing a terminal device according to an embodiment of the present invention. The terminal device shown in FIG. 5 is only an example, and should not impose any limitations on the functions and scope of use of the embodiments of the present invention.

如图5所示,计算机系统500包括中央处理单元(CPU)501,其可以根据存储在只读存储器(ROM)502中的程序或者从存储部分508加载到随机访问存储器(RAM)503中的程序而执行各种适当的动作和处理。在RAM 503中,还存储有系统500操作所需的各种程序和数据。CPU 501、ROM 502以及RAM 503通过总线504彼此相连。输入/输出(I/O)接口505也连接至总线504。As shown in FIG. 5, a computer system 500 includes a central processing unit (CPU) 501 which can be loaded into a random access memory (RAM) 503 according to a program stored in a read only memory (ROM) 502 or a program from a storage section 508 Instead, various appropriate actions and processes are performed. In the RAM 503, various programs and data necessary for the operation of the system 500 are also stored. The CPU 501 , the ROM 502 , and the RAM 503 are connected to each other through a bus 504 . An input/output (I/O) interface 505 is also connected to bus 504 .

以下部件连接至I/O接口505:包括键盘、鼠标等的输入部分506;包括诸如阴极射线管(CRT)、液晶显示器(LCD)等以及扬声器等的输出部分507;包括硬盘等的存储部分508;以及包括诸如LAN卡、调制解调器等的网络接口卡的通信部分509。通信部分509经由诸如因特网的网络执行通信处理。驱动器510也根据需要连接至I/O接口505。可拆卸介质511,诸如磁盘、光盘、磁光盘、半导体存储器等等,根据需要安装在驱动器510上,以便于从其上读出的计算机程序根据需要被安装入存储部分508。The following components are connected to the I/O interface 505: an input section 506 including a keyboard, a mouse, etc.; an output section 507 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 508 including a hard disk, etc. ; and a communication section 509 including a network interface card such as a LAN card, a modem, and the like. The communication section 509 performs communication processing via a network such as the Internet. A drive 510 is also connected to the I/O interface 505 as needed. A removable medium 511, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is mounted on the drive 510 as needed so that a computer program read therefrom is installed into the storage section 508 as needed.

特别地,根据本发明的实施例,上文主要步骤的示意图描述的过程可以被实现为计算机软件程序。例如,本发明的实施例包括一种计算机程序产品,其包括承载在计算机可读介质上的计算机程序,该计算机程序包含用于执行主要步骤的示意图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信部分509从网络上被下载和安装,和/或从可拆卸介质511被安装。在该计算机程序被中央处理单元(CPU)501执行时,执行本发明的系统中限定的上述功能。In particular, according to embodiments of the present invention, the processes described by the schematic diagrams of the main steps above may be implemented as a computer software program. For example, embodiments of the present invention include a computer program product comprising a computer program carried on a computer readable medium, the computer program containing program code for performing the method shown in the schematic diagram of the main steps. In such an embodiment, the computer program may be downloaded and installed from the network via the communication portion 509 and/or installed from the removable medium 511 . When the computer program is executed by the central processing unit (CPU) 501, the above-described functions defined in the system of the present invention are performed.

需要说明的是,本发明所示的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本发明中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本发明中,计算机可读的信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读的信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:无线、电线、光缆、RF等等,或者上述的任意合适的组合。It should be noted that the computer-readable medium shown in the present invention may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the above two. The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus or device, or a combination of any of the above. More specific examples of computer readable storage media may include, but are not limited to, electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), erasable Programmable read only memory (EPROM or flash memory), fiber optics, portable compact disk read only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing. In the present invention, a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In the present invention, however, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code therein. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. A computer-readable signal medium can also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device . Program code embodied on a computer readable medium may be transmitted using any suitable medium including, but not limited to, wireless, wireline, optical fiber 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 that contains one or more logical functions for implementing the specified functions executable instructions. It should also be noted that, in some alternative implementations, the functions noted in the blocks 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 is also noted that each block of the block diagrams or flowchart illustrations, and combinations of blocks in the block diagrams or flowchart illustrations, can be implemented in special purpose hardware-based systems that perform the specified functions or operations, or can be implemented using A combination of dedicated hardware and computer instructions is implemented.

描述于本发明实施例中所涉及到的模块可以通过软件的方式实现,也可以通过硬件的方式来实现。所描述的模块也可以设置在处理器中,例如,可以描述为:一种处理器包括查询请求生成模块201、查询请求签名模块202、功能执行模块203、查询指令选择模块204和状态验证模块205。其中,这些模块的名称在某种情况下并不构成对该模块本身的限定,例如,功能执行模块还可以被描述为“用于在使用钱包公钥验证所述查询请求的签名信息有效后,根据所述查询指令显示数字货币明细列表的模块”。The modules involved in the embodiments of the present invention may be implemented in a software manner, and may also be implemented in a hardware manner. The described module can also be set in the processor, for example, it can be described as: a processor includes a query request generation module 201, a query request signature module 202, a function execution module 203, a query instruction selection module 204 and a state verification module 205. . Among them, the names of these modules do not constitute a limitation of the module itself under certain circumstances. For example, the function execution module can also be described as "used to verify the validity of the signature information of the query request by using the wallet public key, A module that displays a detailed list of digital currencies according to the query instruction".

作为另一方面,本发明还提供了一种计算机可读介质,该计算机可读介质可以是上述实施例中描述的设备中所包含的;也可以是单独存在,而未装配入该设备中。上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被一个该设备执行时,使得该设备包括:As another aspect, the present invention also provides a computer-readable medium, which may be included in the device described in the above embodiments; or may exist alone without being assembled into the device. The above-mentioned computer-readable medium carries one or more programs, and when the above-mentioned one or more programs are executed by a device, the device includes:

生成包括查询指令的查询请求;generating a query request including query instructions;

使用钱包私钥对所述查询请求进行签名;Sign the query request with the wallet private key;

将签名后的查询请求发送至功能执行模块;Send the signed query request to the function execution module;

功能执行模块在使用钱包公钥验证所述查询请求的签名信息有效后,根据所述查询指令显示数字货币明细列表。After verifying that the signature information of the query request is valid using the wallet public key, the function execution module displays a detailed list of digital currencies according to the query instruction.

根据本发明实施例的技术方案,因为采用了安全模块对查询请求进行签名,由功能执行模块验证签名后再显示数字货币明细列表的技术手段,确保查询请求来源可靠,从而避免用户的数字货币信息发生泄漏,达到了提高查询安全性的技术效果。According to the technical solution of the embodiment of the present invention, because the security module is used to sign the query request, and the function execution module verifies the signature and then displays the technical means of the detailed list of digital currency, the source of the query request is guaranteed to be reliable, thereby avoiding the user's digital currency information. A leak occurs, and the technical effect of improving query security is achieved.

上述具体实施方式,并不构成对本发明保护范围的限制。本领域技术人员应该明白的是,取决于设计要求和其他因素,可以发生各种各样的修改、组合、子组合和替代。任何在本发明的精神和原则之内所作的修改、等同替换和改进等,均应包含在本发明保护范围之内。The above-mentioned specific embodiments do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modifications, equivalent replacements and improvements made within the spirit and principle of the present invention shall be included within 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 A method and device for querying detailed information of digital currency Active CN108305071B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711459260.5A CN108305071B (en) 2017-12-28 2017-12-28 A method and device for querying detailed information of digital currency

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711459260.5A CN108305071B (en) 2017-12-28 2017-12-28 A method and device for querying detailed information of digital currency

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 A method and device for querying detailed information of digital currency

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
CN112712361B (en) * 2019-11-25 2024-08-13 深圳市文鼎创数据科技有限公司 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 中国人民银行数字货币研究所 Query method and query system of digital currency wallet
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
US10977632B2 (en) Electronic bill management method, apparatus, and storage medium
US11715099B2 (en) Method and system for trust-based payments via blockchain
JP6691420B2 (en) User computer authentication
JP6615297B2 (en) System and method used to authenticate a user in the context of a network transaction
CN110599140B (en) Digital currency verification method and system
CN110383317A (en) For recording the method and system of point-to-point trading processing
CN108305071B (en) A method and device for querying detailed information of digital currency
CN114462989A (en) Method, device and system for starting digital currency hardware wallet application
CN119604881A (en) Method and system for payment processing using distributed digital alternatives
CN110751467B (en) Digital currency generation method and system
US20200242573A1 (en) Cryptographic transactions supporting real world requirements
US20240193594A1 (en) Method, Terminal and System for Splitting and Managing Digital Currency in Transaction
CN111275506A (en) Bill issuing method and block link point equipment
CN114037446B (en) A digital currency transaction method, transaction management method, device and system
CN112465498B (en) A data processing method and device using blockchain enterprise wallet
CN114462991A (en) Method and apparatus for conditional transactions based on digital currency
US20240193557A1 (en) Digital Currency Management Method and System
CN110634062B (en) A method and system for placing a quota of digital currency
CN119067659B (en) Method and device for processing account information
US20240202677A1 (en) Digital Currency Payment Method, Apparatus, and System
CN115222528B (en) A method, terminal and system for splitting digital currency during a transaction
CN115222400A (en) A digital currency payment method, device and system
CN115222528A (en) A method, terminal and system for splitting digital currency during transaction
CN115222399A (en) A digital currency payment method, device and system
CN115222404A (en) A digital currency payment method, device and system

Legal Events

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