[go: up one dir, main page]

CN108764869A - A kind of encrypted method and apparatus of realization Transaction Information - Google Patents

A kind of encrypted method and apparatus of realization Transaction Information Download PDF

Info

Publication number
CN108764869A
CN108764869A CN201810521416.6A CN201810521416A CN108764869A CN 108764869 A CN108764869 A CN 108764869A CN 201810521416 A CN201810521416 A CN 201810521416A CN 108764869 A CN108764869 A CN 108764869A
Authority
CN
China
Prior art keywords
key
digital currency
encryption
transaction information
encryption algorithm
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201810521416.6A
Other languages
Chinese (zh)
Inventor
张理
付红勋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Bitmain Technology Co Ltd
Original Assignee
Beijing Bitmain Technology Co Ltd
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 Beijing Bitmain Technology Co Ltd filed Critical Beijing Bitmain Technology Co Ltd
Priority to CN201810521416.6A priority Critical patent/CN108764869A/en
Priority to PCT/CN2018/111435 priority patent/WO2019227832A1/en
Publication of CN108764869A publication Critical patent/CN108764869A/en
Pending legal-status Critical Current

Links

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/04Payment circuits
    • G06Q20/06Private payment circuits, e.g. involving electronic currency used among participants of a common payment scheme
    • G06Q20/065Private payment circuits, e.g. involving electronic currency used among participants of a common payment scheme using e-cash
    • 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

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

Abstract

本申请提供了一种实现数字货币交易信息加密的方法和装置,以利用加密机实现数字货币交易信息的加密。本申请还提供了一种电子设备,包括:至少一个处理器;以及与所述至少一个处理器通信连接的存储器;其中,所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行时,使所述至少一个处理器执行上述的实现数字货币交易信息加密的方法。

The present application provides a method and device for realizing encryption of digital currency transaction information, so as to realize encryption of digital currency transaction information by using an encryption machine. The present application also provides an electronic device, including: at least one processor; and a memory communicatively connected to the at least one processor; wherein, the memory stores instructions executable by the at least one processor, so When the instructions are executed by the at least one processor, the at least one processor is made to execute the above-mentioned method for encrypting digital currency transaction information.

Description

一种实现交易信息加密的方法和装置A method and device for realizing transaction information encryption

技术领域technical field

本申请涉及数据处理技术领域,例如涉及一种实现数字货币交易信息加密的方法和装置。The present application relates to the technical field of data processing, for example, to a method and device for encrypting digital currency transaction information.

背景技术Background technique

目前,在使用数字货币(例如加密货币)进行交易时,为了保证交易安全性,可以通过交易所完成交易,或使用冷热钱包方案。At present, when using digital currency (such as cryptocurrency) for transactions, in order to ensure transaction security, transactions can be completed through exchanges, or hot and cold wallet solutions can be used.

发明内容Contents of the invention

本公开实施例提供了一种实现数字货币交易信息加密的方法,包括:利用加密机实现数字货币交易信息的加密。An embodiment of the present disclosure provides a method for implementing encryption of digital currency transaction information, including: using an encryption machine to implement encryption of digital currency transaction information.

本公开实施例还提供了一种实现数字货币交易信息加密的装置,用于:利用加密机实现数字货币交易信息的加密。The embodiment of the present disclosure also provides a device for implementing encryption of digital currency transaction information, which is used for: using an encryption machine to implement encryption of digital currency transaction information.

本公开实施例还提供了一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令设置为执行上述的实现数字货币交易信息加密的方法。An embodiment of the present disclosure also provides a computer-readable storage medium storing computer-executable instructions, the computer-executable instructions being configured to execute the above-mentioned method for implementing encryption of digital currency transaction information.

本公开实施例还提供了一种计算机程序产品,所述计算机程序产品包括存储在计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,使所述计算机执行上述的实现数字货币交易信息加密的方法。An embodiment of the present disclosure also provides a computer program product, the computer program product includes a computer program stored on a computer-readable storage medium, the computer program includes program instructions, and when the program instructions are executed by a computer, the The computer executes the above-mentioned method for realizing encryption of digital currency transaction information.

本公开实施例还提供了一种电子设备,包括:An embodiment of the present disclosure also provides an electronic device, including:

至少一个处理器;以及at least one processor; and

与所述至少一个处理器通信连接的存储器;其中,a memory communicatively coupled to the at least one processor; wherein,

所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行时,使所述至少一个处理器执行上述的实现数字货币交易信息加密的方法。The memory stores instructions executable by the at least one processor, and when the instructions are executed by the at least one processor, the at least one processor is made to execute the above-mentioned method for implementing encryption of digital currency transaction information.

附图说明Description of drawings

一个或多个实施例通过与之对应的附图进行示例性说明,这些示例性说明和附图并不构成对实施例的限定,附图中具有相同参考数字标号的元件表示为类似的元件,附图不构成比例限制,并且其中:One or more embodiments are exemplified by corresponding drawings, and these exemplifications and drawings do not constitute a limitation to the embodiments, and elements with the same reference numerals in the drawings represent similar elements, The drawings are not limited to scale and in which:

图1为本公开实施例的实现数字货币交易信息加密的方法示意图;FIG. 1 is a schematic diagram of a method for implementing encryption of digital currency transaction information according to an embodiment of the present disclosure;

图2为本公开实施例的对数字货币交易信息进行加密的方法示意图;FIG. 2 is a schematic diagram of a method for encrypting digital currency transaction information according to an embodiment of the present disclosure;

图3为本公开实施例的对数字货币交易信息进行加密的又一方法示意图;FIG. 3 is a schematic diagram of another method for encrypting digital currency transaction information according to an embodiment of the present disclosure;

图4为本公开实施例的生成密钥的方法示意图;FIG. 4 is a schematic diagram of a method for generating a key according to an embodiment of the present disclosure;

图5为本公开实施例的预设数字货币加密算法的方法示意图;FIG. 5 is a schematic diagram of a method of preset digital currency encryption algorithm according to an embodiment of the present disclosure;

图6为本公开实施例的执行密钥管理的方法示意图;FIG. 6 is a schematic diagram of a method for performing key management according to an embodiment of the present disclosure;

图7为本公开实施例的收发数字货币交易信息的方法示意图;FIG. 7 is a schematic diagram of a method for sending and receiving digital currency transaction information according to an embodiment of the present disclosure;

图8为本公开实施例的实现数字货币交易信息加密的装置示意图;FIG. 8 is a schematic diagram of a device for encrypting digital currency transaction information according to an embodiment of the present disclosure;

图9为本公开实施例的对数字货币交易信息进行加密的装置示意图;FIG. 9 is a schematic diagram of an apparatus for encrypting digital currency transaction information according to an embodiment of the present disclosure;

图10为本公开实施例的对数字货币交易信息进行加密的又一装置示意图;FIG. 10 is a schematic diagram of another device for encrypting digital currency transaction information according to an embodiment of the present disclosure;

图11为本公开实施例的生成密钥的装置示意图;FIG. 11 is a schematic diagram of an apparatus for generating a key according to an embodiment of the present disclosure;

图12为本公开实施例的预设数字货币加密算法的装置示意图;FIG. 12 is a schematic diagram of a device for a preset digital currency encryption algorithm according to an embodiment of the present disclosure;

图13为本公开实施例的执行密钥管理的装置示意图;FIG. 13 is a schematic diagram of an apparatus for performing key management according to an embodiment of the present disclosure;

图14为本公开实施例的收发数字货币交易信息的装置示意图;以及FIG. 14 is a schematic diagram of a device for sending and receiving digital currency transaction information according to an embodiment of the present disclosure; and

图15为本公开实施例提供的电子设备的结构示意图。FIG. 15 is a schematic structural diagram of an electronic device provided by an embodiment of the present disclosure.

附图标记:Reference signs:

1:加密机;10:实现数字货币交易信息加密的装置;20:加密模块;30:密钥生成模块;40:加密算法库;50:密钥管理模块;60:接收模块;70:发送模块;80:交易生成系统;90:交易发布系统。1: encryption machine; 10: device for encrypting digital currency transaction information; 20: encryption module; 30: key generation module; 40: encryption algorithm library; 50: key management module; 60: receiving module; 70: sending module ; 80: transaction generation system; 90: transaction release system.

具体实施方式Detailed ways

为了能够更加详尽地了解本公开实施例的特点与技术内容,下面结合附图对本公开实施例的实现进行详细阐述,所附附图仅供参考说明之用,并非用来限定本公开实施例。在以下的技术描述中,为方便解释起见,通过多个细节以提供对所披露实施例的充分理解。然而,在没有这些细节的情况下,一个或多个实施例仍然可以实施。在其它情况下,为简化附图,熟知的结构和装置可以简化展示。In order to understand the characteristics and technical content of the embodiments of the present disclosure in more detail, the implementation of the embodiments of the present disclosure will be described in detail below in conjunction with the accompanying drawings. The attached drawings are only for reference and description, and are not intended to limit the embodiments of the present disclosure. In the following technical description, for purposes of explanation, numerous details are set forth in order to provide a thorough understanding of the disclosed embodiments. However, one or more embodiments may be practiced without these details. In other instances, well-known structures and devices may be shown simplified in order to simplify the drawings.

参见图1,本公开实施例提供了一种实现数字货币交易信息加密的方法,包括:利用加密机实现数字货币交易信息的加密。Referring to FIG. 1 , an embodiment of the present disclosure provides a method for implementing encryption of digital currency transaction information, including: using an encryption machine to implement encryption of digital currency transaction information.

参见图2,所述利用加密机实现数字货币交易信息的加密,可以包括:利用在所述加密机中生成的用于数字货币的密钥对所述数字货币交易信息进行加密。Referring to FIG. 2 , the encryption of digital currency transaction information by using an encryption machine may include: encrypting the digital currency transaction information by using a key for digital currency generated in the encryption machine.

参见图3,所述密钥可以包括私钥;所述加密的方式可以包括:利用所述私钥对所述数字货币交易信息进行加密。Referring to FIG. 3 , the key may include a private key; the encryption method may include: using the private key to encrypt the digital currency transaction information.

参见图4,可以根据数字货币加密算法生成所述密钥。Referring to Fig. 4, the key may be generated according to a digital currency encryption algorithm.

作为一个实施例,在所述密钥包括私钥的情况下,生成所述密钥的方式可以包括:根据所述数字货币加密算法生成所述私钥。As an embodiment, when the key includes a private key, the method for generating the key may include: generating the private key according to the digital currency encryption algorithm.

作为一个实施例,所述密钥还可以包括公钥;生成所述密钥的方式还可以包括:根据所述数字货币加密算法生成与所述私钥配对的所述公钥。As an embodiment, the key may further include a public key; the method for generating the key may further include: generating the public key paired with the private key according to the digital currency encryption algorithm.

参见图5,可以预设所述数字货币加密算法。Referring to Fig. 5, the digital currency encryption algorithm can be preset.

作为一个实施例,预设所述数字货币加密算法,可以包括:在所述加密机的加密算法库中添加用于加密数字货币的加密算法。例如:在所述加密机的加密算法库中添加用于执行所述数字货币加密算法的代码。As an embodiment, the preset of the digital currency encryption algorithm may include: adding an encryption algorithm for encrypting digital currency in the encryption algorithm library of the encryption machine. For example: adding codes for executing the digital currency encryption algorithm in the encryption algorithm library of the encryption machine.

作为一个实施例,也可以在其它位置预设所述数字货币加密算法,只要能够成功获取、使用所述数字货币加密算法即可。As an example, the digital currency encryption algorithm can also be preset in other locations, as long as the digital currency encryption algorithm can be successfully obtained and used.

作为一个实施例,所述数字货币加密算法可以包括椭圆曲线数字签名算法(Elliptic Curve Digital Signature Algorithm,ECDSA)。As an embodiment, the digital currency encryption algorithm may include an elliptic curve digital signature algorithm (Elliptic Curve Digital Signature Algorithm, ECDSA).

作为一个实施例,所述ECDSA可以基于椭圆曲线密码学(Elliptic curvecryptography,ECC)曲线实现;所述ECC曲线可以包括Secp256k1曲线等。As an embodiment, the ECDSA may be implemented based on an elliptic curve cryptography (Elliptic curvecryptography, ECC) curve; the ECC curve may include a Secp256k1 curve or the like.

参见图6,可以执行对所述密钥的管理。Referring to Fig. 6, management of the keys may be performed.

作为一个实施例,对所述密钥的管理可以包括以下至少之一:As an embodiment, the management of the key may include at least one of the following:

对所述密钥的存储;storage of said keys;

对所述密钥的分发;distribution of said keys;

对所述密钥的销毁。Destruction of said key.

其中,可以将所述密钥保存在加密机中;还可以将所述密钥备份到存储服务器中。可以在受到非法入侵或其它预设条件满足时主动或被动地删除所述密钥。Wherein, the key can be stored in the encryption machine; the key can also be backed up to the storage server. The key can be actively or passively deleted when illegal intrusion or other preset conditions are met.

作为一个实施例,上述的实现数字货币交易信息加密的方法可以在加密机中执行。As an embodiment, the above-mentioned method for implementing encryption of digital currency transaction information can be executed in an encryption machine.

参见图7,可以执行如下操作中至少之一:Referring to Figure 7, at least one of the following operations may be performed:

接收所述数字货币交易信息;例如:接收来自交易生成系统的所述数字货币交易信息;receiving the digital currency transaction information; for example: receiving the digital currency transaction information from the transaction generating system;

发送加密后的所述数字货币交易信息;例如:将加密后的所述数字货币交易信息发送到交易发布系统,由交易发布系统将加密后的所述数字货币交易信息发布到点对点(P2P)网络中。Send the encrypted digital currency transaction information; for example: send the encrypted digital currency transaction information to the transaction publishing system, and the encrypted digital currency transaction information will be released to the peer-to-peer (P2P) network by the transaction publishing system middle.

参见图8,本公开实施例还提供了一种实现数字货币交易信息加密的装置10,用于:利用加密机1实现数字货币交易信息的加密。Referring to FIG. 8 , the embodiment of the present disclosure also provides an apparatus 10 for encrypting digital currency transaction information, which is used for: using an encryption machine 1 to realize encryption of digital currency transaction information.

参见图9,所述装置10可以包括加密模块20,用于:利用在所述加密机1中生成的用于数字货币的密钥对所述数字货币交易信息进行加密。Referring to FIG. 9 , the device 10 may include an encryption module 20 configured to encrypt the digital currency transaction information using the key for digital currency generated in the encryption machine 1 .

参见图10,所述密钥可以包括私钥;所述加密模块20可以用于:利用所述私钥对所述数字货币交易信息进行加密。Referring to FIG. 10 , the key may include a private key; the encryption module 20 may be configured to: use the private key to encrypt the digital currency transaction information.

参见图11,所述装置10还可以包括密钥生成模块30,用于:根据数字货币加密算法生成所述密钥。Referring to FIG. 11 , the device 10 may further include a key generating module 30 configured to: generate the key according to a digital currency encryption algorithm.

作为一个实施例,在所述密钥包括私钥的情况下,所述密钥生成模块30可以用于:根据所述数字货币加密算法生成所述私钥。As an embodiment, when the key includes a private key, the key generating module 30 may be configured to: generate the private key according to the digital currency encryption algorithm.

作为一个实施例,所述密钥还可以包括公钥;所述密钥生成模块30还可以用于:根据所述数字货币加密算法生成与所述私钥配对的所述公钥。As an embodiment, the key may also include a public key; the key generation module 30 may also be configured to: generate the public key paired with the private key according to the digital currency encryption algorithm.

参见图12,所述密钥生成模块30还可以用于:预设所述数字货币加密算法。Referring to FIG. 12 , the key generation module 30 can also be used to: preset the digital currency encryption algorithm.

作为一个实施例,所述密钥生成模块30可以用于:在所述加密机1的加密算法库40中添加用于加密数字货币的加密算法。例如:在所述加密机1的加密算法库40中添加用于执行所述数字货币加密算法的代码。As an embodiment, the key generation module 30 may be configured to: add an encryption algorithm for encrypting digital currency in the encryption algorithm library 40 of the encryption machine 1 . For example: add codes for executing the digital currency encryption algorithm in the encryption algorithm library 40 of the encryption machine 1 .

作为一个实施例,也可以在其它位置预设所述数字货币加密算法,只要能够成功获取、使用所述数字货币加密算法即可。As an example, the digital currency encryption algorithm can also be preset in other locations, as long as the digital currency encryption algorithm can be successfully obtained and used.

作为一个实施例,所述数字货币加密算法可以包括ECDSA。As an embodiment, the digital currency encryption algorithm may include ECDSA.

作为一个实施例,所述ECDSA可以基于ECC曲线实现;所述ECC曲线可以包括Secp256k1曲线等。As an embodiment, the ECDSA may be implemented based on an ECC curve; the ECC curve may include a Secp256k1 curve or the like.

参见图13,所述装置10还可以包括密钥管理模块50,用于:执行对所述密钥的管理。Referring to FIG. 13 , the device 10 may further include a key management module 50 configured to: manage the key.

作为一个实施例,所述密钥管理模块50可以用于执行以下至少之一:As an embodiment, the key management module 50 may be configured to perform at least one of the following:

对所述密钥的存储;storage of said keys;

对所述密钥的分发;distribution of said keys;

对所述密钥的销毁。Destruction of said key.

其中,可以将所述密钥保存在加密机1中;还可以将所述密钥备份到存储服务器中。可以在受到非法入侵或其它预设条件满足时主动或被动地删除所述密钥。Wherein, the key can be stored in the encryption machine 1; the key can also be backed up to a storage server. The key can be actively or passively deleted when illegal intrusion or other preset conditions are met.

作为一个实施例,所述装置10可以设置于加密机1中。As an embodiment, the device 10 can be set in the encryption machine 1 .

作为一个实施例,所述加密机1可以为硬件安全模块(Hardware SecurityModule,HSM)。As an embodiment, the encryption machine 1 may be a hardware security module (Hardware Security Module, HSM).

参见图14,所述装置10还可以包括接收模块60和发送模块70中至少之一;Referring to FIG. 14, the device 10 may further include at least one of a receiving module 60 and a sending module 70;

其中,所述接收模块60可以用于:接收所述数字货币交易信息;例如:接收来自交易生成系统80的所述数字货币交易信息;Wherein, the receiving module 60 can be used to: receive the digital currency transaction information; for example: receive the digital currency transaction information from the transaction generating system 80;

所述发送模块70可以用于:发送加密后的所述数字货币交易信息;例如:将加密后的所述数字货币交易信息发送到交易发布系统90,由交易发布系统90发布加密后的所述数字货币交易信息(例如,发布到P2P网络中)。The sending module 70 can be used to: send the encrypted digital currency transaction information; for example: send the encrypted digital currency transaction information to the transaction publishing system 90, and the transaction publishing system 90 will publish the encrypted digital currency transaction information. Digital currency transaction information (for example, published to the P2P network).

本公开实施例还提供了一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令设置为执行上述实施例的实现数字货币交易信息加密的方法。An embodiment of the present disclosure also provides a computer-readable storage medium storing computer-executable instructions, the computer-executable instructions being configured to implement the method for implementing encryption of digital currency transaction information in the above-mentioned embodiments.

本公开实施例还提供了一种计算机程序产品,所述计算机程序产品包括存储在计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,使所述计算机执行上述实施例的实现数字货币交易信息加密的方法。An embodiment of the present disclosure also provides a computer program product, the computer program product includes a computer program stored on a computer-readable storage medium, the computer program includes program instructions, and when the program instructions are executed by a computer, the The computer executes the method for encrypting digital currency transaction information in the above embodiments.

上述的计算机可读存储介质可以是暂态计算机可读存储介质,也可以是非暂态计算机可读存储介质。The above-mentioned computer-readable storage medium may be a transitory computer-readable storage medium, or a non-transitory computer-readable storage medium.

本公开实施例还提供了一种电子设备,其结构如图15所示,电子设备150包括:An embodiment of the present disclosure also provides an electronic device, the structure of which is shown in FIG. 15 , and the electronic device 150 includes:

至少一个处理器(processor)151,图15中以一个处理器151为例;和存储器(memory)152,还可以包括通信接口(Communication Interface)153和总线154。其中,处理器151、通信接口153、存储器152可以通过总线154完成相互间的通信。通信接口153可以用于信息传输。处理器151可以调用存储器152中的逻辑指令,以执行上述实施例的实现数字货币交易信息加密的方法。At least one processor (processor) 151, one processor 151 is taken as an example in FIG. Wherein, the processor 151 , the communication interface 153 , and the memory 152 can communicate with each other through the bus 154 . The communication interface 153 can be used for information transmission. The processor 151 can call the logic instructions in the memory 152 to execute the method for encrypting digital currency transaction information in the above-mentioned embodiments.

此外,上述的存储器152中的逻辑指令可以通过软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。In addition, the above-mentioned logic instructions in the memory 152 can be implemented in the form of software function units and can be stored in a computer-readable storage medium when sold or used as an independent product.

存储器152作为一种计算机可读存储介质,可用于存储软件程序、计算机可执行程序,如本公开实施例中的方法对应的程序指令/模块。处理器151通过运行存储在存储器152中的软件程序、指令以及模块,从而执行功能应用以及数据处理,即实现上述方法实施例中的实现数字货币交易信息加密的方法。The memory 152, as a computer-readable storage medium, can be used to store software programs and computer-executable programs, such as program instructions/modules corresponding to the methods in the embodiments of the present disclosure. The processor 151 runs the software programs, instructions and modules stored in the memory 152 to execute functional applications and data processing, that is, to implement the method for encrypting digital currency transaction information in the above method embodiments.

存储器152可包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序;存储数据区可存储根据终端设备的使用所创建的数据等。此外,存储器152可以包括高速随机存取存储器,还可以包括非易失性存储器。The memory 152 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application program required by at least one function; the data storage area may store data created according to the use of the terminal device, and the like. In addition, the memory 152 may include a high-speed random access memory, and may also include a non-volatile memory.

本公开实施例的实现数字货币交易信息加密的方案,提高了涉及数字货币的交易的安全性。The solution for realizing encryption of digital currency transaction information in the embodiments of the present disclosure improves the security of transactions involving digital currency.

本公开实施例的技术方案可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括一个或多个指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本公开实施例所述方法的全部或部分步骤。而前述的存储介质可以是非暂态存储介质,包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等多种可以存储程序代码的介质,也可以是暂态存储介质。The technical solutions of the embodiments of the present disclosure can be embodied in the form of software products, which are stored in a storage medium and include one or more instructions to make a computer device (which can be a personal computer, a server, or a network equipment, etc.) to perform all or part of the steps of the method described in the embodiments of the present disclosure. The aforementioned storage medium can be a non-transitory storage medium, including: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk, etc. A medium that can store program code, or a transitory storage medium.

当用于本申请中时,虽然术语“第一”、“第二”等可能会在本申请中使用以描述各元件,但这些元件不应受到这些术语的限制。这些术语仅用于将一个元件与另一个元件区别开。比如,在不改变描述的含义的情况下,第一元件可以叫做第二元件,并且同样第,第二元件可以叫做第一元件,只要所有出现的“第一元件”一致重命名并且所有出现的“第二元件”一致重命名即可。第一元件和第二元件都是元件,但可以不是相同的元件。When used in the present application, although the terms 'first', 'second', etc. may be used in the present application to describe various elements, these elements should not be limited by these terms. These terms are only used to distinguish one element from another. For example, without changing the meaning of the description, a first element could be called a second element, and likewise, a second element could be called a first element, as long as all occurrences of "first element" are renamed consistently and all occurrences of "Second component" can be renamed consistently. The first element and the second element are both elements, but may not be the same element.

本申请中使用的用词仅用于描述实施例并且不用于限制权利要求。如在实施例以及权利要求的描述中使用的,除非上下文清楚地表明,否则单数形式的“一个”(a)、“一个”(an)和“所述”(the)旨在同样包括复数形式。类似地,如在本申请中所使用的术语“和/或”是指包含一个或一个以上相关联的列出的任何以及所有可能的组合。另外,当用于本申请中时,术语“包括”(comprise)及其变型“包括”(comprises)和/或包括(comprising)等指陈述的特征、整体、步骤、操作、元素,和/或组件的存在,但不排除一个或一个以上其它特征、整体、步骤、操作、元素、组件和/或这些的分组的存在或添加。The terms used in the present application are used to describe the embodiments only and are not used to limit the claims. As used in the examples and description of the claims, the singular forms "a", "an" and "the" are intended to include the plural forms as well unless the context clearly indicates otherwise . Similarly, the term "and/or" as used in this application is meant to include any and all possible combinations of one or more of the associated listed ones. Additionally, when used in this application, the term "comprise" and its variants "comprises" and/or comprising (comprising) etc. refer to stated features, integers, steps, operations, elements, and/or The presence of a component does not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components and/or groupings of these.

所描述的实施例中的各方面、实施方式、实现或特征能够单独使用或以任意组合的方式使用。所描述的实施例中的各方面可由软件、硬件或软硬件的结合实现。所描述的实施例也可以由存储有计算机可读代码的计算机可读介质体现,该计算机可读代码包括可由至少一个计算装置执行的指令。所述计算机可读介质可与任何能够存储数据的数据存储装置相关联,该数据可由计算机系统读取。用于举例的计算机可读介质可以包括只读存储器、随机存取存储器、CD-ROM、HDD、DVD、磁带以及光数据存储装置等。所述计算机可读介质还可以分布于通过网络联接的计算机系统中,这样计算机可读代码就可以分布式存储并执行。The aspects, implementations, implementations or features of the described embodiments can be used alone or in any combination. Aspects of the described embodiments can be implemented by software, hardware or a combination of hardware and software. The described embodiments may also be embodied by a computer-readable medium storing computer-readable code comprising instructions executable by at least one computing device. The computer readable medium can be associated with any data storage device that can store data that can be read by a computer system. By way of example, computer readable media may include read only memory, random access memory, CD-ROM, HDD, DVD, magnetic tape, optical data storage devices, and the like. The computer readable medium can also be distributed over network coupled computer systems so that the computer readable code is stored and executed in a distributed fashion.

上述技术描述可参照附图,这些附图形成了本申请的一部分,并且通过描述在附图中示出了依照所描述的实施例的实施方式。虽然这些实施例描述的足够详细以使本领域技术人员能够实现这些实施例,但这些实施例是非限制性的;这样就可以使用其它的实施例,并且在不脱离所描述的实施例的范围的情况下还可以做出变化。比如,流程图中所描述的操作顺序是非限制性的,因此在流程图中阐释并且根据流程图描述的两个或两个以上操作的顺序可以根据若干实施例进行改变。作为另一个例子,在若干实施例中,在流程图中阐释并且根据流程图描述的一个或一个以上操作是可选的,或是可删除的。另外,某些步骤或功能可以添加到所公开的实施例中,或两个以上的步骤顺序被置换。所有这些变化被认为包含在所公开的实施例以及权利要求中。The above technical description may refer to the accompanying drawings, which form a part hereof, and in which are shown by way of description implementations in accordance with the described embodiments. While these embodiments are described in sufficient detail to enable those skilled in the art to practice the embodiments, these embodiments are not limiting; as such, other embodiments can be used and without departing from the scope of the described embodiments Circumstances can also be changed. For example, the order of operations described in the flow diagrams is non-limiting, and thus the order of two or more operations illustrated in and described with respect to the flow diagrams may be changed according to several embodiments. As another example, in several embodiments, one or more operations illustrated in and described with respect to the flowcharts are optional, or may be deleted. Additionally, certain steps or functionality may be added to the disclosed embodiments, or the order of two or more steps permuted. All such variations are considered to be encompassed by the disclosed embodiments as well as the claims.

另外,上述技术描述中使用术语以提供所描述的实施例的透彻理解。然而,并不需要过于详细的细节以实现所描述的实施例。因此,实施例的上述描述是为了阐释和描述而呈现的。上述描述中所呈现的实施例以及根据这些实施例所公开的例子是单独提供的,以添加上下文并有助于理解所描述的实施例。上述说明书不用于做到无遗漏或将所描述的实施例限制到本公开的精确形式。根据上述教导,若干修改、选择适用以及变化是可行的。在某些情况下,没有详细描述为人所熟知的处理步骤以避免不必要地影响所描述的实施例。Additionally, terminology was used in the above technical description to provide a thorough understanding of the described embodiments. However, undue detail is not required to implement the described embodiments. Thus, the foregoing description of the embodiments has been presented for purposes of illustration and description. The embodiments presented in the foregoing description, and examples disclosed according to these embodiments, are provided individually to add context and to facilitate understanding of the described embodiments. The above description is not intended to be exhaustive or to limit the described embodiments to the precise form of the disclosure. Several modifications, alternatives, and variations are possible in light of the above teachings. In some instances, well known process steps have not been described in detail in order not to unnecessarily obscure the described embodiments.

Claims (28)

1.一种实现数字货币交易信息加密的方法,其特征在于,包括:利用加密机实现数字货币交易信息的加密。1. A method for encrypting digital currency transaction information, comprising: using an encryption machine to encrypt digital currency transaction information. 2.根据权利要求1所述的方法,其特征在于,所述利用加密机实现数字货币交易信息的加密包括:利用在所述加密机中生成的用于数字货币的密钥对所述数字货币交易信息进行加密。2. The method according to claim 1, wherein said using an encryption machine to encrypt digital currency transaction information comprises: using a key for digital currency generated in said encryption machine to encrypt said digital currency Transaction information is encrypted. 3.根据权利要求2所述的方法,其特征在于,3. The method of claim 2, wherein, 所述密钥包括私钥;said key comprises a private key; 所述加密的方式包括:利用所述私钥对所述数字货币交易信息进行加密。The encryption method includes: using the private key to encrypt the digital currency transaction information. 4.根据权利要求2所述的方法,其特征在于,还包括:根据数字货币加密算法生成所述密钥。4. The method according to claim 2, further comprising: generating the key according to a digital currency encryption algorithm. 5.根据权利要求4所述的方法,其特征在于,5. The method of claim 4, wherein, 所述密钥包括私钥;said key comprises a private key; 生成所述密钥的方式包括:根据所述数字货币加密算法生成所述私钥。The method of generating the key includes: generating the private key according to the digital currency encryption algorithm. 6.根据权利要求5所述的方法,其特征在于,6. The method of claim 5, wherein, 所述密钥还包括公钥;The key also includes a public key; 生成所述密钥的方式还包括:根据所述数字货币加密算法生成与所述私钥配对的所述公钥。The method of generating the key further includes: generating the public key paired with the private key according to the digital currency encryption algorithm. 7.根据权利要求4至6任一项所述的方法,其特征在于,还包括:预设所述数字货币加密算法。7. The method according to any one of claims 4 to 6, further comprising: preset the digital currency encryption algorithm. 8.根据权利要求7所述的方法,其特征在于,预设所述数字货币加密算法包括:在所述加密机的加密算法库中添加用于加密数字货币的加密算法。8. The method according to claim 7, wherein the preset digital currency encryption algorithm comprises: adding an encryption algorithm for encrypting digital currency in the encryption algorithm library of the encryption machine. 9.根据权利要求4所述的方法,其特征在于,所述数字货币加密算法包括椭圆曲线数字签名算法ECDSA。9. The method according to claim 4, wherein the digital currency encryption algorithm comprises an Elliptic Curve Digital Signature Algorithm (ECDSA). 10.根据权利要求2至9任一项所述的方法,其特征在于,还包括:执行对所述密钥的管理。10. The method according to any one of claims 2 to 9, further comprising: performing management on the key. 11.根据权利要求10所述的方法,其特征在于,所述管理包括以下至少之一:11. The method according to claim 10, wherein the management includes at least one of the following: 对所述密钥的存储;storage of said keys; 对所述密钥的分发;distribution of said keys; 对所述密钥的销毁。Destruction of said key. 12.根据权利要求1至11任一项所述的方法,其特征在于,所述方法在所述加密机中执行。12. The method according to any one of claims 1 to 11, characterized in that the method is executed in the encryption machine. 13.根据权利要求1所述的方法,其特征在于,还包括以下至少之一:13. The method according to claim 1, further comprising at least one of the following: 接收所述数字货币交易信息;receiving said digital currency transaction information; 发送加密后的所述数字货币交易信息。Send the encrypted digital currency transaction information. 14.一种实现数字货币交易信息加密的装置,其特征在于,用于:利用加密机实现数字货币交易信息的加密。14. A device for encrypting digital currency transaction information, characterized in that it is used for: using an encryption machine to realize encryption of digital currency transaction information. 15.根据权利要求14所述的装置,其特征在于,包括加密模块,用于:利用在所述加密机中生成的用于数字货币的密钥对所述数字货币交易信息进行加密。15. The device according to claim 14, characterized in that it comprises an encryption module, configured to encrypt the digital currency transaction information by using a key for digital currency generated in the encryption machine. 16.根据权利要求15所述的装置,其特征在于,16. The apparatus of claim 15, wherein: 所述密钥包括私钥;said key comprises a private key; 所述加密模块用于:利用所述私钥对所述数字货币交易信息进行加密。The encryption module is used for: using the private key to encrypt the digital currency transaction information. 17.根据权利要求15所述的装置,其特征在于,还包括密钥生成模块,用于:根据数字货币加密算法生成所述密钥。17. The device according to claim 15, further comprising a key generating module, configured to: generate the key according to a digital currency encryption algorithm. 18.根据权利要求17所述的装置,其特征在于,18. The apparatus of claim 17, wherein: 所述密钥包括私钥;said key comprises a private key; 所述密钥生成模块用于:根据所述数字货币加密算法生成所述私钥。The key generating module is used for: generating the private key according to the digital currency encryption algorithm. 19.根据权利要求18所述的装置,其特征在于,19. The apparatus of claim 18, wherein: 所述密钥还包括公钥;The key also includes a public key; 所述密钥生成模块还用于:根据所述数字货币加密算法生成与所述私钥配对的所述公钥。The key generating module is further configured to: generate the public key paired with the private key according to the digital currency encryption algorithm. 20.根据权利要求17至19任一项所述的装置,其特征在于,所述密钥生成模块还用于:预设所述数字货币加密算法。20. The device according to any one of claims 17 to 19, wherein the key generation module is further configured to: preset the digital currency encryption algorithm. 21.根据权利要求20所述的装置,其特征在于,所述密钥生成模块用于:在所述加密机的加密算法库中添加用于加密数字货币的加密算法。21. The device according to claim 20, wherein the key generation module is configured to: add an encryption algorithm for encrypting digital currency to the encryption algorithm library of the encryption machine. 22.根据权利要求21所述的装置,其特征在于,所述数字货币加密算法包括ECDSA。22. The device according to claim 21, wherein the digital currency encryption algorithm comprises ECDSA. 23.根据权利要求15至22任一项所述的装置,其特征在于,还包括密钥管理模块,用于:执行对所述密钥的管理。23. The device according to any one of claims 15 to 22, further comprising a key management module, configured to: perform management on the key. 24.根据权利要求23所述的装置,其特征在于,所述密钥管理模块用于执行以下至少之一:24. The device according to claim 23, wherein the key management module is configured to perform at least one of the following: 对所述密钥的存储;storage of said keys; 对所述密钥的分发;distribution of said keys; 对所述密钥的销毁。Destruction of said key. 25.根据权利要求14至24任一项所述的装置,其特征在于,所述装置设置于所述加密机中。25. The device according to any one of claims 14 to 24, characterized in that the device is set in the encryption machine. 26.根据权利要求25所述的装置,其特征在于,所述加密机为硬件安全模块HSM。26. The device according to claim 25, wherein the encryption machine is a hardware security module (HSM). 27.根据权利要求14至26任一项所述的装置,其特征在于,还包括接收模块和发送模块中至少之一;27. The device according to any one of claims 14 to 26, further comprising at least one of a receiving module and a sending module; 其中,所述接收模块用于:接收所述数字货币交易信息;Wherein, the receiving module is used for: receiving the digital currency transaction information; 所述发送模块用于:发送加密后的所述数字货币交易信息。The sending module is used for: sending the encrypted digital currency transaction information. 28.一种电子设备,其特征在于,包括:28. An electronic device, comprising: 至少一个处理器;以及at least one processor; and 与所述至少一个处理器通信连接的存储器;其中,a memory communicatively coupled to the at least one processor; wherein, 所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行时,使所述至少一个处理器执行权利要求1-13任一项所述的方法。The memory stores instructions executable by the at least one processor, and when the instructions are executed by the at least one processor, the at least one processor executes the method according to any one of claims 1-13 .
CN201810521416.6A 2018-05-28 2018-05-28 A kind of encrypted method and apparatus of realization Transaction Information Pending CN108764869A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201810521416.6A CN108764869A (en) 2018-05-28 2018-05-28 A kind of encrypted method and apparatus of realization Transaction Information
PCT/CN2018/111435 WO2019227832A1 (en) 2018-05-28 2018-10-23 Method and device for realizing encryption of transaction information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810521416.6A CN108764869A (en) 2018-05-28 2018-05-28 A kind of encrypted method and apparatus of realization Transaction Information

Publications (1)

Publication Number Publication Date
CN108764869A true CN108764869A (en) 2018-11-06

Family

ID=64006173

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810521416.6A Pending CN108764869A (en) 2018-05-28 2018-05-28 A kind of encrypted method and apparatus of realization Transaction Information

Country Status (2)

Country Link
CN (1) CN108764869A (en)
WO (1) WO2019227832A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103220270A (en) * 2013-03-15 2013-07-24 福建联迪商用设备有限公司 Downloading method, management method, downloading management method, downloading management device and downloading management system for secret key
US20150193772A1 (en) * 2010-04-02 2015-07-09 Isignthis Ltd Methods and systems for verifying transactions
CN106651331A (en) * 2016-12-22 2017-05-10 飞天诚信科技股份有限公司 Digital currency-based electronic transaction method and system
CN107911222A (en) * 2017-11-21 2018-04-13 沃通电子认证服务有限公司 Digital signature generation, verification method and its equipment and storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103927656A (en) * 2014-05-05 2014-07-16 宋骊平 Bitcoin terminal wallet with embedded fixed collecting address and Bitcoin payment method of Bitcoin terminal wallet
CN104463001A (en) * 2014-12-19 2015-03-25 比特卡国际有限公司 A method for independently generating and storing encrypted digital currency private keys and a device for carrying encrypted digital currency private keys
CN107239939A (en) * 2016-03-28 2017-10-10 蓝树荣 A kind of Chinese coin terminal wallet and its Chinese coin method of payment
CN106533661B (en) * 2016-10-25 2019-07-19 北京大学 Online generation method of cryptographic currency address based on combined public key

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150193772A1 (en) * 2010-04-02 2015-07-09 Isignthis Ltd Methods and systems for verifying transactions
CN103220270A (en) * 2013-03-15 2013-07-24 福建联迪商用设备有限公司 Downloading method, management method, downloading management method, downloading management device and downloading management system for secret key
CN106651331A (en) * 2016-12-22 2017-05-10 飞天诚信科技股份有限公司 Digital currency-based electronic transaction method and system
CN107911222A (en) * 2017-11-21 2018-04-13 沃通电子认证服务有限公司 Digital signature generation, verification method and its equipment and storage medium

Also Published As

Publication number Publication date
WO2019227832A1 (en) 2019-12-05

Similar Documents

Publication Publication Date Title
KR101999188B1 (en) Secure personal devices using elliptic curve cryptography for secret sharing
CN106779636B (en) Block chain digital currency wallet based on mobile phone earphone interface
US9735962B1 (en) Three layer key wrapping for securing encryption keys in a data storage system
KR20210066867A (en) An encrypted asset encryption key portion that allows assembly of an asset encryption key using a subset of the encrypted asset encryption key portion.
TW201733302A (en) Secure multiparty loss resistant storage and transfer of cryptographic keys for blockchain based systems in conjunction with a wallet management system
US20160294794A1 (en) Security System For Data Communications Including Key Management And Privacy
CN110881063A (en) Storage method, device, equipment and medium of private data
CN111245597A (en) Key management method, system and equipment
CN113329030A (en) Block chain all-in-one machine, password acceleration card thereof, and key management method and device
CN101005357A (en) Method and system for updating certification key
CN111385084A (en) Key management method and device for digital assets and computer readable storage medium
CN111914291A (en) Message processing method, device, equipment and storage medium
CN112400299A (en) Data interaction method and related equipment
CN109272314B (en) A secure communication method and system based on two-party collaborative signature calculation
CN106960343B (en) A kind of electronic cash safe payment method and device
US12217251B2 (en) System and method for the protection of consumer financial data utilizing dynamic content shredding
BE1024812A9 (en) A SECURITY APPROACH FOR THE STORAGE OF CREDENTIALS FOR OFFLINE USE AND AGAINST COPY PROTECTED CLEAN CONTENT IN DEVICES
JP6718175B2 (en) Confidential information recoverable value distribution system and method
CN114503506A (en) A blockchain system that supports changes to plaintext data contained in transactions
CN115022057A (en) Security authentication method, device and device, and storage medium
WO2019223232A1 (en) Method and device for realizing authentication of transaction information
CN108764867A (en) A kind of method and apparatus for realizing Transaction Information verification
CN108764869A (en) A kind of encrypted method and apparatus of realization Transaction Information
CN110572256B (en) Anti-quantum computing asymmetric key management method and system based on asymmetric key pool and implicit certificate
CN115834053A (en) A key distribution method, device, electronic equipment and storage medium

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
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20181106

WD01 Invention patent application deemed withdrawn after publication