WO2020147384A1 - 基于区块链的安全交易方法、装置、设备及存储介质 - Google Patents

基于区块链的安全交易方法、装置、设备及存储介质 Download PDF

Info

Publication number
WO2020147384A1
WO2020147384A1 PCT/CN2019/116717 CN2019116717W WO2020147384A1 WO 2020147384 A1 WO2020147384 A1 WO 2020147384A1 CN 2019116717 W CN2019116717 W CN 2019116717W WO 2020147384 A1 WO2020147384 A1 WO 2020147384A1
Authority
WO
WIPO (PCT)
Prior art keywords
digital certificate
user
mapping relationship
transaction
private key
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Ceased
Application number
PCT/CN2019/116717
Other languages
English (en)
French (fr)
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.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen 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 Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Publication of WO2020147384A1 publication Critical patent/WO2020147384A1/zh
Anticipated expiration legal-status Critical
Ceased 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/38Payment protocols; Details thereof
    • 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/40Authorisation, e.g. identification of payer or payee, verification of customer or shop credentials; Review and approval of payers, e.g. check credit lines or negative lists
    • 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
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange

Definitions

  • This application relates to the field of blockchain technology, and in particular to a secure transaction method, device, equipment and storage medium based on blockchain.
  • Blockchain originated from Bitcoin and is an underlying technology of digital currency.
  • Public keys, private keys, and addresses are needed in the process of digital currency transactions.
  • the private key is used to sign the transaction
  • the public key is used to verify the transaction signed by the private key
  • the address is used to collect payments. The cooperation of the three ensures the security of the transaction.
  • the private key is a symbol of the ownership and control of digital assets, that is, in the process of digital currency transactions, whoever has the private key can use the digital assets protected by the private key.
  • the private key is randomly generated using a one-way encryption algorithm, and the private key cannot be derived using the public key, so that the private key itself has sufficient security.
  • the private key is managed by the user himself, and because of the anonymity of the blockchain, once the user forgets the private key, or accidentally leaks or loses the private key, he will lose everything under the protection of the private key. Digital assets have disastrous consequences.
  • the main purpose of this application is to provide a blockchain-based secure transaction method, device, equipment, and storage medium, which are designed to facilitate users to conduct blockchain-based transactions while ensuring the security of transactions.
  • this application provides a blockchain-based secure transaction method, which includes the following steps:
  • the first mapping relationship table is the first digital certificate installed in each user terminal and each user holding Correspondence between the private keys of blockchain transactions;
  • this application also proposes a block chain-based secure transaction device, which includes:
  • the obtaining module is configured to receive a transaction request triggered by a user, and obtain the object to be signed and the first digital certificate installed locally according to the transaction request;
  • the determining module is configured to determine the blockchain transaction private key corresponding to the first digital certificate according to a preset first mapping relationship table, and the first mapping relationship table is the first digital certificate installed in each user terminal Correspondence with the private key of the blockchain transaction held by each user;
  • the signature module is used to sign the object to be signed according to the private key of the blockchain transaction.
  • this application also proposes a blockchain-based secure transaction device, the device includes: a memory, a processor, and a computer that is stored on the memory and can run on the processor. Read instructions, when the computer-readable instructions are executed by the processor, the steps of the blockchain-based secure transaction method as described above are realized.
  • the present application also proposes a computer-readable storage medium having computer-readable instructions stored on the computer-readable storage medium, and when the computer-readable instructions are executed by a processor, The steps of a secure transaction method based on blockchain.
  • the blockchain-based secure transaction method, device, equipment, and storage medium of this embodiment establish a correspondence between the blockchain transaction private key used in the blockchain transaction and the first digital certificate applied for by the user in advance. Relationship, the first mapping relationship table is obtained, so that the object to be signed and the first digital certificate installed locally are directly extracted from the transaction request triggered by the user when the blockchain transaction is performed, and then the first digital certificate is determined according to the first mapping relationship table.
  • the blockchain transaction private key corresponding to the first digital certificate the entire transaction process does not require the user to personally input the blockchain transaction private key, nor does it need to enter the first digital certificate, you can use your own blockchain transaction private key
  • the key signs the object to be signed and realizes blockchain transactions. While ensuring the security of blockchain transactions, it greatly facilitates user operations.
  • FIG. 1 is a schematic structural diagram of a block chain-based secure transaction device in a hardware operating environment involved in a solution of an embodiment of the present application;
  • FIG. 2 is a schematic flowchart of a first embodiment of a secure transaction method based on blockchain in this application;
  • FIG. 3 is a schematic flowchart of a second embodiment of a secure transaction method based on blockchain according to this application;
  • Fig. 4 is a structural block diagram of a first embodiment of a secure transaction device based on blockchain in this application.
  • FIG. 1 is a schematic structural diagram of a block chain-based secure transaction device in a hardware operating environment involved in a solution of an embodiment of the application.
  • the blockchain-based secure transaction device may include a processor 1001, such as a central processing unit (Central Processing Unit, CPU), communication bus 1002, user interface 1003, network interface 1004, memory 1005.
  • the communication bus 1002 is used to implement connection communication between these components.
  • the user interface 1003 may include a display screen (Display) and an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface.
  • the network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a wireless fidelity (WIreless-FIdelity, WI-FI) interface).
  • WIreless-FIdelity WI-FI
  • the memory 1005 may be a high-speed random access memory (Random Access Memory (RAM) memory can also be a stable non-volatile memory (Non-Volatile Memory, NVM), such as disk storage.
  • RAM Random Access Memory
  • NVM Non-Volatile Memory
  • the memory 1005 may optionally be a storage device independent of the foregoing processor 1001.
  • FIG. 1 does not constitute a limitation on the blockchain-based secure transaction equipment, and may include more or less components than shown in the figure, or combine certain components, or different The layout of the components.
  • the memory 1005 as a computer-readable storage medium may include an operating system, a data storage module, a network communication module, a user interface module, and a secure transaction program based on the blockchain.
  • the network interface 1004 is mainly used for data communication with the digital certificate management center and the block chain; the user interface 1003 is mainly used for data interaction with users; this application is based on
  • the processor 1001 and the memory 1005 in the secure transaction equipment of the blockchain can be set in the secure transaction equipment based on the blockchain.
  • the secure transaction equipment based on the blockchain uses the processor 1001 to call the zone-based storage in the memory 1005.
  • FIG. 2 is a schematic flowchart of a first embodiment of a secure transaction method based on a blockchain in this application.
  • the blockchain-based secure transaction method includes the following steps:
  • Step S10 Receive a transaction request triggered by the user, and obtain the object to be signed and the first digital certificate installed locally according to the transaction request.
  • the execution subject in this embodiment is any terminal device that the user can operate, such as a personal computer, a tablet computer, a smart phone, etc., which will not be listed here, and there will be no restriction on this.
  • the above-mentioned digital certificate installed locally may be issued by an e-commerce certification authority (Certificate Authority (CA certification body) provides a digital certificate, which is commonly referred to as a CA certificate, or a digital certificate issued by some well-known commercial certification authority installed by default in the terminal device.
  • CA certification body e-commerce certification authority
  • CA certificate e-commerce certification authority
  • CA certificate a digital certificate issued by some well-known commercial certification authority installed by default in the terminal device.
  • the object of user transactions can be digital currency, so the object to be signed is the digital currency to be traded.
  • the object of user transactions may be prescription information issued by a physician for a patient, so the object of the signature on behalf of the patient is the electronic prescription.
  • the terminal device when a user needs to conduct a blockchain transaction, he can use an application (app) installed in the terminal device to conduct a blockchain transaction or visit a website that conducts a blockchain transaction through any browser installed in the terminal device. . Then, by selecting the object to be signed that needs to be signed, and operating a certain function button of the user interface or terminal device, the transaction request is submitted. After the user submits, that is, after triggering the transaction request, the preset monitoring task will be triggered to execute a certain preset program. In this embodiment, the object to be signed selected by the user is extracted, and the pre-installed object is obtained locally from the terminal device. The first digital certificate.
  • Step S20 Determine the blockchain transaction private key corresponding to the first digital certificate according to the preset first mapping relationship table.
  • the first mapping relationship table is the correspondence between the first digital certificate installed in each user terminal and the blockchain transaction private key held by each user.
  • the private key of the blockchain transaction corresponding to the first digital certificate signs the object to be signed. In this way, the purpose of not only ensuring the security of the blockchain transaction, but also facilitating the user's transaction is achieved.
  • CA certificate As an example, since the CA organization will verify the identity of the applicant when applying for the CA certificate, even if the user accidentally damages the CA certificate, he can still apply to the CA organization to find the CA certificate.
  • all CA certificates managed by CA organizations are stored on the basis of blockchain, which can effectively ensure the consistency and security of CA certificates and user information, and avoid Has been tampered with.
  • the above process of establishing the mapping relationship table may specifically be that after the user applies for the blockchain transaction private key for the first time, the first digital certificate installed locally is automatically obtained, and then the correspondence between the two is established. And, for security, after determining the correspondence between the two, it can be sent to the server that specializes in the management of the mapping table in the form of key-value pairs (the storage principle of the server can be based on the blockchain), so that even the locally saved mapping If the relationship table is lost, the corresponding blockchain transaction private key can also be queried from the server according to the acquired digital certificate.
  • the first digital certificate in order to ensure the smooth progress of subsequent operations, it is possible to determine the first digital certificate before determining the blockchain transaction private key corresponding to the first digital certificate according to the preset first mapping relationship table. 1. Whether the digital certificate is valid.
  • the identity information of the applicant corresponding to the first digital certificate is obtained from the digital certificate management center; then, based on the identity information and a preset digital certificate application template, generate Digital certificate application file; then, the digital certificate application file is sent to the digital certificate management center, so that the digital certificate management center allocates a second digital certificate to the applicant based on the identity information, and finally, receives The second digital certificate issued by the digital certificate management center establishes the corresponding relationship between the first digital certificate and the second digital certificate to obtain a second mapping relationship table.
  • the specific operation can be to input the identity information into the specified in the preset digital certificate application template in accordance with preset rules. Location to obtain the digital certificate application file.
  • the blockchain transaction private key corresponding to the first digital certificate is determined directly according to the first mapping relationship table; if the first digital certificate is If the certificate is invalid, the blockchain transaction private key corresponding to the second digital certificate is determined according to the second mapping relationship table and the first mapping relationship table.
  • the first digital certificate corresponding to the second digital certificate is determined.
  • the blockchain transaction private key corresponding to the first digital certificate is determined.
  • the newly created second mapping relationship table can also be updated to the server for managing the first mapping relationship table for storage management.
  • the digital certificate management center can extend the use period of the first digital certificate, and after determining that the first digital certificate is invalid, According to the user identity information, the first digital certificate, and a preset digital certificate extension application template, generate a digital certificate extension application file, and then send the digital certificate extension application file to the digital certificate management center for digital certificate management
  • the center extends the use period of the first digital certificate according to the user identity. In this way, there is no need to perform the operation of creating the second mapping table locally on the terminal device.
  • Step S30 Sign the object to be signed according to the private key of the blockchain transaction.
  • Zhang San wants to transfer 5 million to Li Si
  • first Zhang San needs to obtain Li Si’s public key, then use his public key to encrypt the money once
  • Zhang San uses his own blockchain to trade The private key encrypts the money twice and transfers the money out.
  • Li Si received the money, for the first encryption, he would use his own blockchain transaction private key to decrypt the transaction details and confirm that the amount was 5 million; then he used Zhang San’s public key to perform the second encryption Decrypt it and confirm that Zhang San transferred the money to him.
  • the blockchain-based secure transaction method establishes a relationship between the blockchain transaction private key used in the blockchain transaction and the first digital certificate applied for by the user in advance.
  • the first mapping relationship table is obtained, so that the object to be signed and the first digital certificate installed locally are directly extracted from the transaction request triggered by the user when the blockchain transaction is performed, and then the first digital certificate is installed according to the first mapping table , Determine the blockchain transaction private key corresponding to the first digital certificate, the entire transaction process does not require the user to personally enter the blockchain transaction private key, nor does it need to enter the first digital certificate, you can use your own blockchain
  • the transaction private key signs the object to be signed to realize blockchain transactions, which greatly facilitates user operations while ensuring the security of blockchain transactions.
  • FIG. 3 is a schematic flowchart of a second embodiment of a blockchain-based secure transaction method according to this application.
  • the blockchain-based secure transaction method of this embodiment further includes:
  • Step S00 verify whether the user who triggered the transaction request has the right to use the first digital certificate.
  • the first biometric information of the applicant corresponding to the first digital certificate is obtained from the digital certificate management center.
  • the first biometric information may be the applicant’s facial feature information, iris feature information, and voice reserved by the digital certificate management center (such as a CA institution) when the applicant applies for the first digital certificate.
  • the digital certificate management center such as a CA institution
  • Any one or more of the fingerprint feature information and fingerprint feature information can be specifically set according to actual needs, and there is no limitation here.
  • the second biometric information of the user who triggered the transaction request is collected.
  • the collected second biometric information needs to be of the same type as the first biometric information, namely:
  • the first biological feature information is facial feature information or iris feature information
  • the first biological feature information is voiceprint feature information
  • a random action instruction may be generated first to prompt the person who triggered the transaction request. The user makes the action specified by the random action instruction, or speaks the specified content; and then determines whether the action or the content spoken by the user meets the action specified by the random action instruction or the content required to be spoken If the user who triggers the transaction request makes an action that meets the requirements of the random action instruction, or speaks specified content, the second biometric information of the user who triggers the transaction request is collected.
  • the first biometric information is compared with the second biometric information.
  • the second biometric information matches the first biometric information, it is determined that the user who triggered the transaction request has the right to use the first digital certificate; if the second biometric information matches the If the first biometric information does not match, it is determined that the user who triggered the transaction request has no right to use the first digital certificate.
  • step S30 when it is determined that the user who triggered the transaction request has the right to use the first digital certificate, step S30 can be executed; otherwise, step S40 is entered to execute acquiring the face of the user who triggered the transaction request The image and the contact information reserved by the applicant corresponding to the first digital certificate, using the contact method to send the face image to the applicant.
  • the contact information reserved by the applicant corresponding to the first digital certificate in step S40 may be the applicant's mobile phone number, email address, etc.
  • the operation of using the contact information to send the face image to the applicant may specifically be sending the face image to the application in the form of MMS or email. people.
  • the applicant who has the right to use the first digital certificate can be reminded in time to know that someone uses the terminal device installed with the first digital certificate to conduct blockchain transactions without authorization at the current moment, so as to respond in time.
  • the computer-readable instructions can be stored In a computer-readable storage medium, the aforementioned computer-readable storage medium may be a read-only memory, a magnetic disk, or an optical disk.
  • the embodiment of the present invention also provides a computer-readable storage medium having computer-readable instructions stored on the computer-readable storage medium, and when the computer-readable instructions are executed by a processor, the region-based Steps of the blockchain's secure transaction method.
  • the computer-readable storage medium may be a non-volatile computer-readable storage medium.
  • FIG. 4 is a structural block diagram of a first embodiment of a secure transaction device based on blockchain in this application.
  • the blockchain-based secure transaction device proposed in the embodiment of the present application includes: an acquisition module 4001, a determination module 4002, and a signature module 4003.
  • the obtaining module 4001 is configured to receive a transaction request triggered by a user, and obtain the object to be signed and the first digital certificate installed locally according to the transaction request; the determining module 4002 is configured to obtain the first digital certificate according to the preset first mapping relationship Table, which determines the blockchain transaction private key corresponding to the first digital certificate; the signature module 4003, is used to sign the object to be signed according to the blockchain transaction private key.
  • the aforementioned first mapping relationship table is essentially the corresponding relationship between the first digital certificate installed in each user terminal and the blockchain transaction private key held by each user.
  • the blockchain-based secure transaction device may also include: a digital certificate validity judgment module, an applicant identity information acquisition module, and a digital A certificate application file generating module, a digital certificate application file sending module, a digital certificate receiving module, and a second mapping relationship table creating module.
  • the digital certificate validity judgment module is used to judge whether the first digital certificate is valid.
  • the applicant identity information obtaining module is configured to obtain the identity information of the applicant corresponding to the first digital certificate from the digital certificate management center when the first digital certificate becomes invalid.
  • the digital certificate application file generation module is configured to generate a digital certificate application file according to the identity information and a preset digital certificate application template.
  • the digital certificate application file sending module is configured to send the digital certificate application file to a digital certificate management center, so that the digital certificate management center allocates a second digital certificate to the applicant according to the identity information.
  • the digital certificate receiving module is configured to receive the second digital certificate issued by the digital certificate management center.
  • the second mapping relationship table creation module is configured to establish a corresponding relationship between the first digital certificate and the second digital certificate to obtain a second mapping relationship table.
  • the specific operation adaptively becomes:
  • first digital certificate If the first digital certificate is valid, determine the blockchain transaction private key corresponding to the first digital certificate according to the first mapping relationship table; if the first digital certificate is invalid, first according to the The second mapping relationship table determines the first digital certificate corresponding to the second digital certificate, and then determines the blockchain transaction private key corresponding to the first digital certificate according to the first mapping relationship table .
  • modules involved in this embodiment are all logical modules.
  • a logical unit can be a physical unit, a part of a physical unit, or multiple The combination of physical units is realized.
  • this embodiment does not introduce units that are not closely related to solving the technical problems proposed by the present application, but this does not indicate that there are no other units in this embodiment.
  • the blockchain-based secure transaction device establishes a relationship between the private key of the blockchain transaction used in the blockchain transaction and the first digital certificate applied for by the user.
  • the first mapping relationship table is obtained, so that the object to be signed and the first digital certificate installed locally are directly extracted from the transaction request triggered by the user when the blockchain transaction is performed, and then the first digital certificate is installed according to the first mapping table , Determine the blockchain transaction private key corresponding to the first digital certificate, the entire transaction process does not require the user to personally enter the blockchain transaction private key, nor does it need to enter the first digital certificate, you can use your own blockchain
  • the transaction private key signs the object to be signed to realize blockchain transactions, which greatly facilitates user operations while ensuring the security of blockchain transactions.
  • modules involved in this embodiment are all logical modules.
  • a logical unit can be a physical unit, a part of a physical unit, or multiple The combination of physical units is realized.
  • this embodiment does not introduce units that are not closely related to solving the technical problems proposed by the present application, but this does not indicate that there are no other units in this embodiment.
  • the blockchain-based secure transaction device further includes: a user authority verification module and an early warning module.
  • the user authority verification module is used to verify whether the user who triggered the transaction request has the right to use the first digital certificate.
  • the first biometric information of the applicant corresponding to the first digital certificate is obtained from the digital certificate management center.
  • the second biometric information of the user who triggered the transaction request is collected.
  • the first biometric information is compared with the second biometric information. If the second biometric information matches the first biometric information, it is determined that the user who triggered the transaction request has the right to use the first digital certificate; if the second biometric information matches the If the first biometric information does not match, it is determined that the user who triggered the transaction request has no right to use the first digital certificate.
  • a random action instruction may be generated first to prompt the trigger
  • the user of the transaction request takes the action specified by the random action instruction, or speaks the specified content; and then determines whether the action or the content spoken by the user meets the action specified by the random action instruction, or The content requested to be spoken, if the user who triggers the transaction request makes an action that meets the requirements of the random action instruction, or speaks the specified content, then collect the second user’s Biometric information.
  • the early warning module is configured to obtain the face image and the first digital certificate of the user who triggered the transaction request after determining that the user who triggered the transaction request is not authorized to use the first digital certificate Corresponding to the contact information reserved by the applicant, and using the contact method to send the face image to the applicant.
  • the determination module can be triggered to determine the relationship with the first digital certificate according to the preset first mapping relationship table.
  • the corresponding private key of the blockchain transaction is the same.
  • the method of the embodiment can be implemented by means of software plus a necessary general hardware platform, of course, it can also be implemented by hardware, but the former is a better implementation in many cases.
  • the application s The essence of the technical solution or the part that contributes to the existing technology can be embodied in the form of a software product.
  • the computer software product is stored in a computer-readable storage medium (such as a read-only memory).
  • Memory, ROM)/RAM, disk, optical Disk includes several instructions to make a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) execute the method described in each embodiment of the present application.

Landscapes

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

Abstract

一种基于区块链的安全交易方法、装置、设备及存储介质,属于区块链技术领域。该方法包括:接收用户触发的交易请求,根据交易请求获取待签名对象和安装在本地的第一数字证书(S10);根据预设的第一映射关系表,确定与第一数字证书对应的区块链交易私钥(S20),第一映射关系表为各用户终端中安装的第一数字证书与各用户持有的区块链交易私钥之间的对应关系;根据区块链交易私钥,对待签名对象进行签名(S30)。

Description

基于区块链的安全交易方法、装置、设备及存储介质
本申请要求于2019年1月17日提交中国专利局、申请号为201910051091.4、发明名称为“基于区块链的安全交易方法、装置、设备及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在申请中。
技术领域
本申请涉及区块链技术领域,尤其涉及一种基于区块链的安全交易方法、装置、设备及存储介质。
背景技术
区块链起源于比特币,是一种数字货币底层技术。在数字货币交易过程中需要用到公钥、私钥和地址。其中,私钥用来签名交易,公钥用来验证私钥签名的交易,地址用来收款,通过三者的配合保证了交易的安全性。
通过上述描述不难发现,私钥是数字资产所有权和控制权的象征,即在数字货币交易过程中,无论是谁,只要拥有私钥就能使用该私钥保护下的数字资产。虽然,在实际应用中,私钥是采用单向加密算法随机生成的,并且使用公钥无法推导出私钥,使得私钥本身具有足够的安全性。但是,由于私钥是用户自己来管理的,并且由于区块链所具有的匿名特性,因而用户一旦遗忘了私钥,或者不小心泄露、丢失了私钥,就会丧失私钥保护下的所有数字资产,后果不堪设想。
所以,亟需提供一种既能保证基于区块链的交易的安全性,又可以方便用户进行交易的方法。
发明内容
本申请的主要目的在于提供一种基于区块链的安全交易方法、装置、设备及存储介质,旨在方便用户进行基于区块链的交易,同时又保证交易的安全性。
为实现上述目的,本申请提供了一种基于区块链的安全交易方法,所述方法包括以下步骤:
接收用户触发的交易请求,根据所述交易请求获取待签名对象和安装在本地的第一数字证书;
根据预设的第一映射关系表,确定与所述第一数字证书对应的区块链交易私钥,所述第一映射关系表为各用户终端中安装的第一数字证书与各用户持有的区块链交易私钥之间的对应关系;
根据所述区块链交易私钥,对所述待签名对象进行签名。
此外,为实现上述目的,本申请还提出一种基于区块链的安全交易装置,所述装置包括:
获取模块,用于接收用户触发的交易请求,根据所述交易请求获取待签名对象和安装在本地的第一数字证书;
确定模块,用于根据预设的第一映射关系表,确定与所述第一数字证书对应的区块链交易私钥,所述第一映射关系表为各用户终端中安装的第一数字证书与各用户持有的区块链交易私钥之间的对应关系;
签名模块,用于根据所述区块链交易私钥,对所述待签名对象进行签名。
此外,为实现上述目的,本申请还提出一种基于区块链的安全交易设备,所述设备包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机可读指令,所述计算机可读指令被处理器执行时实现如上文所述的基于区块链的安全交易方法的步骤。
此外,为实现上述目的,本申请还提出一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机可读指令,所述计算机可读指令被处理器执行时实现如上文所述的基于区块链的安全交易方法的步骤。
本实施例的基于区块链的安全交易方法、装置、设备及存储介质,通过预先建立区块链交易中用到的区块链交易私钥与用户申请到的第一数字证书之间的对应关系,得到第一映射关系表,从而在进行区块链交易时直接从用户触发的交易请求中提取待签名对象和安装在本地的第一数字证书,然后根据所述第一映射关系表,确定与所述第一数字证书对应的区块链交易私钥,整个交易过程无需用户亲自输入区块链交易私钥,也无需输入第一数字证书,便可以利用自己持有的区块链交易私钥对待签名对象进行签名,实现区块链交易,在保障区块链交易安全性的同时,大大方便了用户操作。
附图说明
图1是本申请实施例方案涉及的硬件运行环境的基于区块链的安全交易设备的结构示意图;
图2为本申请基于区块链的安全交易方法第一实施例的流程示意图;
图3为本申请基于区块链的安全交易方法第二实施例的流程示意图;
图4为本申请基于区块链的安全交易装置第一实施例的结构框图。
本申请目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。
具体实施方式
应当理解,此处所描述的具体实施例仅用以解释本申请,并不用于限定本申请。
参照图1,图1为本申请实施例方案涉及的硬件运行环境的基于区块链的安全交易设备结构示意图。
如图1所示,该基于区块链的安全交易设备可以包括:处理器1001,例如中央处理器(Central Processing Unit,CPU),通信总线1002、用户接口1003,网络接口1004,存储器1005。其中,通信总线1002用于实现这些组件之间的连接通信。用户接口1003可以包括显示屏(Display)、输入单元比如键盘(Keyboard),可选用户接口1003还可以包括标准的有线接口、无线接口。网络接口1004可选的可以包括标准的有线接口、无线接口(如无线保真(WIreless-FIdelity,WI-FI)接口)。存储器1005可以是高速的随机存取存储器(Random Access Memory,RAM)存储器,也可以是稳定的非易失性存储器(Non-Volatile Memory,NVM),例如磁盘存储器。存储器1005可选的还可以是独立于前述处理器1001的存储装置。
本领域技术人员可以理解,图1中示出的结构并不构成对基于区块链的安全交易设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。
如图1所示,作为一种计算机可读存储介质的存储器1005中可以包括操作系统、数据存储模块、网络通信模块、用户接口模块以及基于区块链的安全交易程序。
在图1所示的基于区块链的安全交易设备中,网络接口1004主要用于与数字证书管理中心、区块链进行数据通信;用户接口1003主要用于与用户进行数据交互;本申请基于区块链的安全交易设备中的处理器1001、存储器1005可以设置在基于区块链的安全交易设备中,所述基于区块链的安全交易设备通过处理器1001调用存储器1005中存储的基于区块链的安全交易程序,并执行本申请实施例提供的基于区块链的安全交易方法。
本申请实施例提供了一种基于区块链的安全交易方法,参照图2,图2为本申请一种基于区块链的安全交易方法第一实施例的流程示意图。
本实施例中,所述基于区块链的安全交易方法包括以下步骤:
步骤S10,接收用户触发的交易请求,根据所述交易请求获取待签名对象和安装在本地的第一数字证书。
具体的说,本实施例中的执行主体为用户可以操作的任意终端设备,比如个人计算机、平板电脑、智能手机等,此处不再一一列举,对此也不做任何限制。
此外,在本实施例中,上述所说的安装在本地的数字证书,可以是由电子商务认证授权机构(Certificate Authority,CA认证机构)提供的数字证书,即通常所说的CA证书,也可以是终端设备中默认安装的某些知名的商业证书颁发机构颁发的数字证书。
关于第一数字证书的选择,本领域的技术人员可以根据需要设置,此处不做限制。
此外,应当理解的是,由于区块链具有去中心化、匿名、可追溯、不可篡改等性质,目前已被广泛的应用于金融服务、共享经济、医疗健康、社会管理等众多场景。因而,所说待签名对象也会根据实际应用的场合,而有所不同。
比如说,在金融服务场景,用户交易的对象可以是数字货币,因而待签名对象即为要交易的数字货币。
还比如说,在医疗健康场景,用户交易的对象可以是医师为病患开具的处方信息,因而代签名对象即为该电子处方。
需要说明的是,以上仅为举例说明,对本申请的技术方案并不构成任何限定。
为了便于理解此步骤,以下进行举例说明,但下面所说的内容,并不构成对本申请的技术方案的任何限定:
比如,用户在需要进行区块链交易时,利用终端设备中安装的专门进行区块链交易的应用程序(application,app)或者通过终端设备中安装的任意浏览器访问进行区块链交易的网站。然后,通过选中需要进行签名的待签名对象,并操作用户界面或终端设备的某一功能按键,实现对交易请求的提交。在用户提交,即触发交易请求后,预先设置的监控任务会被触发,从而执行预设的某段程序,本实施例中即为提取用户选择的待签名对象,以及从终端设备本地获取预先安装的第一数字证书。
步骤S20,根据预设的第一映射关系表,确定与所述第一数字证书对应的区块链交易私钥。
具体的说,在本实施例中,所述第一映射关系表即为各用户终端中安装的第一数字证书与各用户持有的区块链交易私钥之间的对应关系。
通过建立区块链交易私钥与第一数字证书之间的对应关系,使得用户在进行交易、查询、读写等操作时,只需使用本地安装的第一数字证书即可。对应用户而言,由于交易过程中无需手动输入区块链交易私钥,因而可以有效避免手动输入造成的错误;而对于区块链的交易而言,又可以根据第一映射关系表查找到与第一数字证书对应的区块链交易私钥对待签名对象进行签名,通过这种方式真正做到了既保证区块链交易安全性,又方便用户进行交易的目的。
以第一数字证书为CA证书为例,由于CA证书在申请的时候,CA机构会对申请人进行身份验证,因而即便用户不小心将CA证书损坏,也可以到CA机构申请找出CA证书。并且,目前CA机构为了保障CA证书的安全性,由CA机构管理的所有CA证书均是基于区块链来进行存储的,因而可以有效的保证CA证书与用户信息的一致性和安全性,避免被篡改。
此外,值得一提的是,上述建立映射关系表的过程,具体可以是在用户首次申请到区块链交易私钥后,自动获取本地安装的第一数字证书,然后建立两者的对应关系。并且,为了安全,确定两者之间的对应关系之后,可以采用键值对的形式发送到专门管理映射关系表的服务器(该服务器的存储原理可以基于区块链),这样即便本地保存的映射关系表丢失,也可以根据获取到的数字证书从服务器中查询到对应的区块链交易私钥。
此外,在实际应用中,为了保证后续操作的顺利进行,可以在根据预设的第一映射关系表,确定与所述第一数字证书对应的区块链交易私钥之前,先判断所述第一数字证书是否有效。
相应地,若所述第一数字证书失效,则从数字证书管理中心获取所述第一数字证书对应的申请人的身份信息;然后,根据所述身份信息和预设的数字证书申请模板,生成数字证书申请文件;接着,将所述数字证书申请文件发送至数字证书管理中心,以使所述数字证书管理中心根据所述身份信息,为所述申请人分配第二数字证书,最后,接收所述数字证书管理中心下发的所述第二数字证书,建立所述第一数字证书与所述第二数字证书之间的对应关系,得到第二映射关系表。
关于“根据所述身份信息和预设的数字证书申请模板,生成数字证书申请文件”的操作,具体可以是按照预设规则,将所述身份信息输入到预设的数字证书申请模板中的指定位置,从而得到数字证书申请文件。
此外,应当理解的是,若所述第一数字证书有效,则直接根据所述第一映射关系表,确定与所述第一数字证书对应的区块链交易私钥;若所述第一数字证书失效,则根据所述第二映射关系表和所述第一映射关系表,确定与所述第二数字证书对应的区块链交易私钥。
关于“根据所述第二映射关系表和所述第一映射关系表,确定与所述第二数字证书对应的区块链交易私钥”的操作,具体可以通过如下所示的两个子步骤实现:
首先,根据第二映射关系表,确定与所述第二数字证书对应的所述第一数字证书。
然后,根据所述第一映射关系表,确定与所述第一数字证书对应的区块链交易私钥。
此外,为了方便后续使用,新建的第二映射关系表同样可以更新到用于管理第一映射关系表的服务器中进行存储管理。
此外,值得一提的是,如果在具体实现中,第一数字证书在失效后,数字证书管理中心可以为第一数字证书进行延长使用期限的操作,则在判定第一数字证书失效后,可以根据所述用户身份信息、第一数字证书以及预设的数字证书延长使用申请模板,生成数字证书延长使用申请文件,然后将该数字证书延长使用申请文件发送至数字证书管理中心,以便数字证书管理中心根据用户身份为所述第一数字证书延长使用期限。这样,在终端设备本地便无需执行创建第二映射关系表的操作。
需要说明的是,以上仅为举例说明,对本申请的技术方案并不构成任何限定,在具体实现中,本领域的技术人员可以根据需要进行设置,此处不做限制。
步骤S30,根据所述区块链交易私钥,对所述待签名对象进行签名。
为了便于理解对待签名对象的签名(即加密操作),以下进行举例说明:
比如,张三有500万想转给李四,那么首先张三要获得李四的公钥,然后使用他的公钥对这笔钱进行一次加密,接着张三再用自己的区块链交易私钥对这笔钱进行二次加密,将钱转出去。
李四在收到这笔钱后,针对一次加密,他会先用自己的区块链交易私钥进行解密查看交易明细,确定金额是500万;接着使用张三的公钥对二次加密进行解密,确认这笔钱是张三转给他的。
需要说明的是,不论是加密还是解密,交易过程中使用到的区块链交易私钥都是利用上述方式获取到的。
通过上述描述不难发现,本实施例中提供的基于区块链的安全交易方法,通过预先建立区块链交易中用到的区块链交易私钥与用户申请到的第一数字证书之间的对应关系,得到第一映射关系表,从而在进行区块链交易时直接从用户触发的交易请求中提取待签名对象和安装在本地的第一数字证书,然后根据所述第一映射关系表,确定与所述第一数字证书对应的区块链交易私钥,整个交易过程无需用户亲自输入区块链交易私钥,也无需输入第一数字证书,便可以利用自己持有的区块链交易私钥对待签名对象进行签名,实现区块链交易,在保障区块链交易安全性的同时,大大方便了用户操作。
参考图3,图3为本申请一种基于区块链的安全交易方法第二实施例的流程示意图。
基于上述第一实施例,本实施例基于区块链的安全交易方法在所述步骤S30之前,还包括:
步骤S00,验证触发所述交易请求的所述用户是否有权使用所述第一数字证书。
为了便于理解此步骤,以下给出一种具体的验证方式,但下面所说的内容,并不构成对本申请的技术方案的任何限定:
首先,根据所述第一数字证书,从数字证书管理中心获取所述第一数字证书对应的申请人的第一生物特征信息。
需要说明的是,所述第一生物特征信息可以是申请人在申请第一数字证书时,数字证书管理中心(如CA机构)预留的该申请人的人脸特征信息、虹膜特征信息、声纹特征信息、指纹特征信息中的任意一种或几种,具体可以根据实际需要设置,此处不做限制。
然后,采集触发所述交易请求的所述用户的第二生物特征信息。
应当理解的是,采集的第二生物特征信息需要与所述第一生物特征信息的类型相同,即:
如果第一生物特征信息为人脸特征信息或虹膜特征信息,则需要启动终端设备的摄像头,拍摄包含所述用户人脸的人脸图像,然后基于人脸识别技术,提取所述用户的人脸特征信息;基于虹膜识别技术,提取所述用户的虹膜信息。
如果第一生物特征信息为声纹特征信息,则需要启动终端设备的语音采集单元,采集所述用户的声音,然后基于声纹识别技术,提取所述用户的声纹特征信息。
需要说明的是,以上仅为举例说明,对本申请的技术方案并不构成任何限定,在实际应用中,本领域的技术人员可以根据需要进行设置,此处不做限制。
此外,为了防止他人采用照片或者预先录制的语音消息来蒙混过关,在采集触发所述交易请求的所述用户的第二生物特征信息时,可以先生成随机动作指令,提示触发所述交易请求的所述用户做出所述随机动作指令规定的动作,或者说出指定的内容;然后判断所述用户做出的动作或说出的内容是否符合随机动作指令规定的动作,或要求说出的内容,若触发所述交易请求的所述用户做出了符合所述随机动作指令规定的动作,或者说出指定的内容,则采集触发所述交易请求的所述用户的第二生物特征信息。
最后,将第一生物特征信息与第二生物特征信息进行对比。
若所述第二生物特征信息与所述第一生物特征信息匹配,则确定触发所述交易请求的所述用户有权使用所述第一数字证书;若所述第二生物特征信息与所述第一生物特征信息不匹配,则确定触发所述交易请求的所述用户无权使用所述第一数字证书。
相应地,在确定触发所述交易请求的所述用户有权使用所述第一数字证书时,便可以执行步骤S30;否则进入步骤S40,执行获取触发所述交易请求的所述用户的人脸图像和所述第一数字证书对应的申请人预留的联系方式,采用所述联系方式,将所述人脸图像发送给所所述申请人的操作。
需要说明的是,步骤S40中所说的第一数字证书对应的申请人预留的联系方式可以是申请人的手机号、邮箱等。
相应地,所述采用所述联系方式,将所述人脸图像发送给所所述申请人的操作,具体可以是将所述人脸图像以彩信的方式,或者邮件的方式发送给所述申请人。这样便可以及时提醒拥有所述第一数字证书使用权的申请人及时获知当前时刻有人擅自使用自己安装有第一数字证书的终端设备进行区块链交易,从而及时作出应对。
通过上述描述不难发现,本实施例中提供的基于区块链的安全交易方法,在根据预设的第一映射关系表,确定与所述第一数字证书对应的区块链交易私钥之前,通过利用生物识别技术对触发交易请求的用户进行身份验证,验证触发交易请求的用户是否有权使用所述第一数字证书,在确定触发交易请求的用户有权使用所述第一数字证书时,才进行后续区块链交易操作,从而可以避免出现他人冒名操作的现象,进一步保证了交易过程的安全性。
需要说明的是,本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过计算机可读指令来指令相关的硬件完成,所述的计算机可读指令可以存储于一种计算机可读存储介质中,上述提到的计算机可读存储介质可以是只读存储器,磁盘或光盘等。此外,本发明实施例还提出一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机可读指令,所述计算机可读指令被处理器执行时实现如上文所述的基于区块链的安全交易方法的步骤。所述计算机可读存储介质可以是非易失性计算机可读存储介质。
参照图4,图4为本申请基于区块链的安全交易装置第一实施例的结构框图。
如图4所示,本申请实施例提出的基于区块链的安全交易装置包括:获取模块4001、确定模块4002和签名模块4003。
具体的说,获取模块4001,用于接收用户触发的交易请求,根据所述交易请求获取待签名对象和安装在本地的第一数字证书;确定模块4002,用于根据预设的第一映射关系表,确定与所述第一数字证书对应的区块链交易私钥;签名模块4003,用于根据所述区块链交易私钥,对所述待签名对象进行签名。
需要说明的是,上述所说的第一映射关系表实质为各用户终端中安装的第一数字证书与各用户持有的区块链交易私钥之间的对应关系。
此外,值得一提的是,在实际应用中,为了保证交易操作的顺利进行,所述基于区块链的安全交易装置还可以包括:数字证书有效性判断模块、申请人身份信息获取模块、数字证书申请文件生成模块、数字证书申请文件发送模块、数字证书接收模块和第二映射关系表创建模块。
其中,所述数字证书有效性判断模块,用于判断所述第一数字证书是否有效。
所述申请人身份信息获取模块,用于在所述第一数字证书失效时,从数字证书管理中心获取所述第一数字证书对应的申请人的身份信息。
所述数字证书申请文件生成模块,用于根据所述身份信息和预设的数字证书申请模板,生成数字证书申请文件。
所述数字证书申请文件发送模块,用于将所述数字证书申请文件发送至数字证书管理中心,以使所述数字证书管理中心根据所述身份信息,为所述申请人分配第二数字证书。
所述数字证书接收模块,用于接收所述数字证书管理中心下发的所述第二数字证书。
所述第二映射关系表创建模块,用于建立所述第一数字证书与所述第二数字证书之间的对应关系,得到第二映射关系表。
相应地,所述确定模块4002在根据预设的第一映射关系表,确定与所述第一数字证书对应的区块链交易私钥时,具体操作适应性的变为:
若所述第一数字证书有效,则根据所述第一映射关系表,确定与所述第一数字证书对应的区块链交易私钥;若所述第一数字证书失效,则先根据所述第二映射关系表,确定与所述第二数字证书对应的所述第一数字证书,然后再根据所述第一映射关系表,确定与所述第一数字证书对应的区块链交易私钥。
应当理解的是,以上仅为举例说明,对本申请的技术方案并不构成任何限定,在具体应用中,本领域的技术人员可以根据需要进行设置,本申请对此不做限制。
此外,应当理解的是,本实施例中所涉及到的各模块均为逻辑模块,在实际应用中,一个逻辑单元可以是一个物理单元,也可以是一个物理单元的一部分,还可以以多个物理单元的组合实现。此外,为了突出本申请的创新部分,本实施例中并没有将与解决本申请所提出的技术问题关系不太密切的单元引入,但这并不表明本实施方式中不存在其它的单元。
通过上述描述不难发现,本实施例中提供的基于区块链的安全交易装置,通过预先建立区块链交易中用到的区块链交易私钥与用户申请到的第一数字证书之间的对应关系,得到第一映射关系表,从而在进行区块链交易时直接从用户触发的交易请求中提取待签名对象和安装在本地的第一数字证书,然后根据所述第一映射关系表,确定与所述第一数字证书对应的区块链交易私钥,整个交易过程无需用户亲自输入区块链交易私钥,也无需输入第一数字证书,便可以利用自己持有的区块链交易私钥对待签名对象进行签名,实现区块链交易,在保障区块链交易安全性的同时,大大方便了用户操作。
应当理解的是,以上仅为举例说明,对本申请的技术方案并不构成任何限定,在具体应用中,本领域的技术人员可以根据需要进行设置,本申请对此不做限制。
此外,应当理解的是,本实施例中所涉及到的各模块均为逻辑模块,在实际应用中,一个逻辑单元可以是一个物理单元,也可以是一个物理单元的一部分,还可以以多个物理单元的组合实现。此外,为了突出本申请的创新部分,本实施例中并没有将与解决本申请所提出的技术问题关系不太密切的单元引入,但这并不表明本实施方式中不存在其它的单元。
需要说明的是,以上所描述的工作流程仅仅是示意性的,并不对本申请的保护范围构成限定,在实际应用中,本领域的技术人员可以根据实际的需要选择其中的部分或者全部来实现本实施例方案的目的,此处不做限制。
另外,未在本实施例中详尽描述的技术细节,可参见本申请任意实施例所提供的基于区块链的安全交易方法,此处不再赘述。
基于上述基于区块链的安全交易装置的第一实施例,提出本申请基于区块链的安全交易装置第二实施例。
在本实施例中,所述基于区块链的安全交易装置还包括:使用者权限验证模块和预警模块。
其中,所述使用者权限验证模块,用于验证触发所述交易请求的所述用户是否有权使用所述第一数字证书。
关于所述使用者权限验证模块进行验证操作,在实际应用中,具体可以通如下几个步骤实现:
首先,根据所述第一数字证书,从数字证书管理中心获取所述第一数字证书对应的申请人的第一生物特征信息。
然后,采集触发所述交易请求的所述用户的第二生物特征信息。
最后,将第一生物特征信息与第二生物特征信息进行对比。若所述第二生物特征信息与所述第一生物特征信息匹配,则确定触发所述交易请求的所述用户有权使用所述第一数字证书;若所述第二生物特征信息与所述第一生物特征信息不匹配,则确定触发所述交易请求的所述用户无权使用所述第一数字证书。
此外,在具体实现中,为了防止他人采用照片或者预先录制的语音消息来蒙混过关,在采集触发所述交易请求的所述用户的第二生物特征信息时,可以先生成随机动作指令,提示触发所述交易请求的所述用户做出所述随机动作指令规定的动作,或者说出指定的内容;然后判断所述用户做出的动作或说出的内容是否符合随机动作指令规定的动作,或要求说出的内容,若触发所述交易请求的所述用户做出了符合所述随机动作指令规定的动作,或者说出指定的内容,则采集触发所述交易请求的所述用户的第二生物特征信息。
所述预警模块,用于在确定触发所述交易请求的所述用户无权使用所述第一数字证书之后,获取触发所述交易请求的所述用户的人脸图像和所述第一数字证书对应的申请人预留的联系方式,并采用所述联系方式,将所述人脸图像发送给所所述申请人。
相应地,在确定触发所述交易请求的所述用户有权使用所述第一数字证书时,便可以触发所述确定模块根据预设的第一映射关系表,确定与所述第一数字证书对应的区块链交易私钥。
通过上述描述不难发现,本实施例中提供的基于区块链的安全交易装置,在根据预设的第一映射关系表,确定与所述第一数字证书对应的区块链交易私钥之前,通过利用生物识别技术对触发交易请求的用户进行身份验证,验证触发交易请求的用户是否有权使用所述第一数字证书,在确定触发交易请求的用户有权使用所述第一数字证书时,才进行后续区块链交易操作,从而可以避免出现他人冒名操作的现象,进一步保证了交易过程的安全性。
需要说明的是,以上所描述的工作流程仅仅是示意性的,并不对本申请的保护范围构成限定,在实际应用中,本领域的技术人员可以根据实际的需要选择其中的部分或者全部来实现本实施例方案的目的,此处不做限制。
另外,未在本实施例中详尽描述的技术细节,可参见本申请任意实施例所提供的基于区块链的安全交易方法,此处不再赘述。
此外,需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者系统不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者系统所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者系统中还存在另外的相同要素。
上述本申请实施例序号仅仅为了描述,不代表实施例的优劣。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述 实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通 过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的 技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体 现出来,该计算机软件产品存储在一个计算机可读存储介质(如只读存储器(Read Only Memory,ROM)/RAM、磁碟、光 盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本申请各个实施例所述的方法。
以上仅为本申请的优选实施例,并非因此限制本申请的专利范围,凡是利用本申请说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本申请的专利保护范围内。

Claims (20)

  1. 一种基于区块链的安全交易方法,其特征在于,所述方法包括以下步骤:
    接收用户触发的交易请求,根据所述交易请求获取待签名对象和安装在本地的第一数字证书;
    根据预设的第一映射关系表,确定与所述第一数字证书对应的区块链交易私钥,所述第一映射关系表为各用户终端中安装的第一数字证书与各用户持有的区块链交易私钥之间的对应关系;
    根据所述区块链交易私钥,对所述待签名对象进行签名。
  2. 如权利要求1所述的方法,其特征在于,所述根据预设的第一映射关系表,确定与所述第一数字证书对应的区块链交易私钥的步骤之前,所述方法还包括以下步骤:
    判断所述第一数字证书是否有效;
    其中,所述根据预设的第一映射关系表,确定与所述第一数字证书对应的区块链交易私钥,包括:
    若所述第一数字证书有效,则根据所述第一映射关系表,确定与所述第一数字证书对应的区块链交易私钥。
  3. 如权利要求2所述的方法,其特征在于,所述判断所述第一数字证书是否有效的步骤之后,所述方法还包括以下步骤:
    若所述第一数字证书失效,则从数字证书管理中心获取所述第一数字证书对应的申请人的身份信息;
    根据所述身份信息和预设的数字证书申请模板,生成数字证书申请文件;
    将所述数字证书申请文件发送至数字证书管理中心,以使所述数字证书管理中心根据所述身份信息,为所述申请人分配第二数字证书;
    接收所述数字证书管理中心下发的所述第二数字证书,建立所述第一数字证书与所述第二数字证书之间的对应关系,得到第二映射关系表;
    其中,所述根据预设的第一映射关系表,确定与所述第一数字证书对应的区块链交易私钥,包括:
    根据所述第二映射关系表,确定与所述第二数字证书对应的所述第一数字证书;
    根据所述第一映射关系表,确定与所述第一数字证书对应的区块链交易私钥。
  4. 如权利要求1至3任一项所述的方法,其特征在于,所述根据预设的第一映射关系表,确定与所述第一数字证书对应的区块链交易私钥的步骤之前,所述方法还包括以下步骤:
    验证触发所述交易请求的所述用户是否有权使用所述第一数字证书;
    其中,所述根据预设的第一映射关系表,确定与所述第一数字证书对应的区块链交易私钥,包括:
    若触发所述交易请求的所述用户有权使用所述第一数字证书,则根据预设的第一映射关系表,确定与所述第一数字证书对应的区块链交易私钥。
  5. 如权利要求4所述的方法,其特征在于,所述验证触发所述交易请求的所述用户是否有权使用所述第一数字证书的步骤,包括:
    根据所述第一数字证书,从数字证书管理中心获取所述第一数字证书对应的申请人的第一生物特征信息;
    采集触发所述交易请求的所述用户的第二生物特征信息;
    将第一生物特征信息与第二生物特征信息进行对比;
    若所述第二生物特征信息与所述第一生物特征信息匹配,则确定触发所述交易请求的所述用户有权使用所述第一数字证书;
    若所述第二生物特征信息与所述第一生物特征信息不匹配,则确定触发所述交易请求的所述用户无权使用所述第一数字证书。
  6. 如权利要求5所述的方法,其特征在于,所述采集触发所述交易请求的所述用户的第二生物特征信息的步骤,包括:
    生成随机动作指令,提示触发所述交易请求的所述用户做出所述随机动作指令规定的动作;
    若触发所述交易请求的所述用户做出了符合所述随机动作指令规定的动作,则采集触发所述交易请求的所述用户的第二生物特征信息。
  7. 如权利要求5所述的方法,其特征在于,所述确定触发所述交易请求的所述用户无权使用所述第一数字证书的步骤之后,所述方法还包括步骤:
    获取触发所述交易请求的所述用户的人脸图像和所述第一数字证书对应的申请人预留的联系方式;
    采用所述联系方式,将所述人脸图像发送给所所述申请人。
  8. 一种基于区块链的安全交易装置,其特征在于,所述装置包括:
    获取模块,用于接收用户触发的交易请求,根据所述交易请求获取待签名对象和安装在本地的第一数字证书;
    确定模块,用于根据预设的第一映射关系表,确定与所述第一数字证书对应的区块链交易私钥,所述第一映射关系表为各用户终端中安装的第一数字证书与各用户持有的区块链交易私钥之间的对应关系;
    签名模块,用于根据所述区块链交易私钥,对所述待签名对象进行签名。
  9. 一种基于区块链的安全交易设备,其特征在于,所述设备包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机可读指令,所述计算机可读指令被处理器执行时,使得所述处理器执行以下步骤:
    接收用户触发的交易请求,根据所述交易请求获取待签名对象和安装在本地的第一数字证书;
    根据预设的第一映射关系表,确定与所述第一数字证书对应的区块链交易私钥,所述第一映射关系表为各用户终端中安装的第一数字证书与各用户持有的区块链交易私钥之间的对应关系;
    根据所述区块链交易私钥,对所述待签名对象进行签名。
  10. 如权利要求9所述的基于区块链的安全交易设备,其特征在于,所述根据预设的第一映射关系表,确定与所述第一数字证书对应的区块链交易私钥的步骤之前,所述处理器还用于执行以下步骤:
    判断所述第一数字证书是否有效;
    其中,所述根据预设的第一映射关系表,确定与所述第一数字证书对应的区块链交易私钥,包括:
    若所述第一数字证书有效,则根据所述第一映射关系表,确定与所述第一数字证书对应的区块链交易私钥。
  11. 如权利要求10所述的基于区块链的安全交易设备,其特征在于,所述判断所述第一数字证书是否有效的步骤之后,所述处理器还用于执行以下步骤:
    若所述第一数字证书失效,则从数字证书管理中心获取所述第一数字证书对应的申请人的身份信息;
    根据所述身份信息和预设的数字证书申请模板,生成数字证书申请文件;
    将所述数字证书申请文件发送至数字证书管理中心,以使所述数字证书管理中心根据所述身份信息,为所述申请人分配第二数字证书;
    接收所述数字证书管理中心下发的所述第二数字证书,建立所述第一数字证书与所述第二数字证书之间的对应关系,得到第二映射关系表;
    其中,所述根据预设的第一映射关系表,确定与所述第一数字证书对应的区块链交易私钥,包括:
    根据所述第二映射关系表,确定与所述第二数字证书对应的所述第一数字证书;
    根据所述第一映射关系表,确定与所述第一数字证书对应的区块链交易私钥。
  12. 如权利要求9至11任一项所述的基于区块链的安全交易设备,其特征在于,所述根据预设的第一映射关系表,确定与所述第一数字证书对应的区块链交易私钥的步骤之前,所述处理器还用于执行以下步骤:
    验证触发所述交易请求的所述用户是否有权使用所述第一数字证书;
    其中,所述根据预设的第一映射关系表,确定与所述第一数字证书对应的区块链交易私钥,包括:
    若触发所述交易请求的所述用户有权使用所述第一数字证书,则根据预设的第一映射关系表,确定与所述第一数字证书对应的区块链交易私钥。
  13. 如权利要求12所述的基于区块链的安全交易设备,其特征在于,所述验证触发所述交易请求的所述用户是否有权使用所述第一数字证书的步骤,包括:
    根据所述第一数字证书,从数字证书管理中心获取所述第一数字证书对应的申请人的第一生物特征信息;
    采集触发所述交易请求的所述用户的第二生物特征信息;
    将第一生物特征信息与第二生物特征信息进行对比;
    若所述第二生物特征信息与所述第一生物特征信息匹配,则确定触发所述交易请求的所述用户有权使用所述第一数字证书;
    若所述第二生物特征信息与所述第一生物特征信息不匹配,则确定触发所述交易请求的所述用户无权使用所述第一数字证书。
  14. 如权利要求13所述的基于区块链的安全交易设备,其特征在于,所述采集触发所述交易请求的所述用户的第二生物特征信息的步骤,包括:
    生成随机动作指令,提示触发所述交易请求的所述用户做出所述随机动作指令规定的动作;
    若触发所述交易请求的所述用户做出了符合所述随机动作指令规定的动作,则采集触发所述交易请求的所述用户的第二生物特征信息。
  15. 如权利要求13所述的基于区块链的安全交易设备,其特征在于,所述确定触发所述交易请求的所述用户无权使用所述第一数字证书的步骤之后,所述处理器还用于执行以下步骤:
    获取触发所述交易请求的所述用户的人脸图像和所述第一数字证书对应的申请人预留的联系方式;
    采用所述联系方式,将所述人脸图像发送给所所述申请人。
  16. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储有计算机可读指令,所述计算机可读指令被处理器执行时,使得所述处理器执行以下步骤:
    接收用户触发的交易请求,根据所述交易请求获取待签名对象和安装在本地的第一数字证书;
    根据预设的第一映射关系表,确定与所述第一数字证书对应的区块链交易私钥,所述第一映射关系表为各用户终端中安装的第一数字证书与各用户持有的区块链交易私钥之间的对应关系;
    根据所述区块链交易私钥,对所述待签名对象进行签名。
  17. 如权利要求16所述的计算机可读存储介质,其特征在于,所述根据预设的第一映射关系表,确定与所述第一数字证书对应的区块链交易私钥的步骤之前,所述处理器还用于执行以下步骤:
    判断所述第一数字证书是否有效;
    其中,所述根据预设的第一映射关系表,确定与所述第一数字证书对应的区块链交易私钥,包括:
    若所述第一数字证书有效,则根据所述第一映射关系表,确定与所述第一数字证书对应的区块链交易私钥。
  18. 如权利要求17所述的计算机可读存储介质,其特征在于,所述判断所述第一数字证书是否有效的步骤之后,所述处理器还用于执行以下步骤:
    若所述第一数字证书失效,则从数字证书管理中心获取所述第一数字证书对应的申请人的身份信息;
    根据所述身份信息和预设的数字证书申请模板,生成数字证书申请文件;
    将所述数字证书申请文件发送至数字证书管理中心,以使所述数字证书管理中心根据所述身份信息,为所述申请人分配第二数字证书;
    接收所述数字证书管理中心下发的所述第二数字证书,建立所述第一数字证书与所述第二数字证书之间的对应关系,得到第二映射关系表;
    其中,所述根据预设的第一映射关系表,确定与所述第一数字证书对应的区块链交易私钥,包括:
    根据所述第二映射关系表,确定与所述第二数字证书对应的所述第一数字证书;
    根据所述第一映射关系表,确定与所述第一数字证书对应的区块链交易私钥。
  19. 如权利要求16至18任一项所述的计算机可读存储介质,其特征在于,所述根据预设的第一映射关系表,确定与所述第一数字证书对应的区块链交易私钥的步骤之前,所述处理器还用于执行以下步骤:
    验证触发所述交易请求的所述用户是否有权使用所述第一数字证书;
    其中,所述根据预设的第一映射关系表,确定与所述第一数字证书对应的区块链交易私钥,包括:
    若触发所述交易请求的所述用户有权使用所述第一数字证书,则根据预设的第一映射关系表,确定与所述第一数字证书对应的区块链交易私钥。
  20. 如权利要求19所述的计算机可读存储介质,其特征在于,所述验证触发所述交易请求的所述用户是否有权使用所述第一数字证书的步骤,包括:
    根据所述第一数字证书,从数字证书管理中心获取所述第一数字证书对应的申请人的第一生物特征信息;
    采集触发所述交易请求的所述用户的第二生物特征信息;
    将第一生物特征信息与第二生物特征信息进行对比;
    若所述第二生物特征信息与所述第一生物特征信息匹配,则确定触发所述交易请求的所述用户有权使用所述第一数字证书;
    若所述第二生物特征信息与所述第一生物特征信息不匹配,则确定触发所述交易请求的所述用户无权使用所述第一数字证书。
PCT/CN2019/116717 2019-01-17 2019-11-08 基于区块链的安全交易方法、装置、设备及存储介质 Ceased WO2020147384A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910051091.4 2019-01-17
CN201910051091.4A CN109903043B (zh) 2019-01-17 2019-01-17 基于区块链的安全交易方法、装置、设备及存储介质

Publications (1)

Publication Number Publication Date
WO2020147384A1 true WO2020147384A1 (zh) 2020-07-23

Family

ID=66943875

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/116717 Ceased WO2020147384A1 (zh) 2019-01-17 2019-11-08 基于区块链的安全交易方法、装置、设备及存储介质

Country Status (2)

Country Link
CN (1) CN109903043B (zh)
WO (1) WO2020147384A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111985923A (zh) * 2020-09-03 2020-11-24 深圳壹账通智能科技有限公司 一种数据处理方法、装置、设备以及存储介质
CN114154606A (zh) * 2021-12-02 2022-03-08 杭州复杂美科技有限公司 标识码生成方法、计算机设备和存储介质

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109903043B (zh) * 2019-01-17 2023-01-10 平安科技(深圳)有限公司 基于区块链的安全交易方法、装置、设备及存储介质
CN110519297B (zh) * 2019-09-17 2021-06-15 腾讯科技(深圳)有限公司 一种基于区块链私钥的数据处理方法以及设备
CN111628871B (zh) * 2020-05-28 2021-09-03 广东工业大学 一种区块链交易处理方法、装置及电子设备和存储介质
CN113191902A (zh) * 2021-05-24 2021-07-30 中国工商银行股份有限公司 基于区块链的交易处理方法、装置、电子设备和介质
CN113055190B (zh) * 2021-06-02 2021-07-30 支付宝(杭州)信息技术有限公司 针对客户端的访问控制方法
CN114826609B (zh) * 2022-04-06 2024-03-26 蚂蚁区块链科技(上海)有限公司 基于区块链的电子证书管理方法、装置、系统及存储介质

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106097073A (zh) * 2016-06-20 2016-11-09 深圳市淘淘谷信息技术有限公司 一种用区块链来赋予数字账户交易过程独有id的方法
CN106548345A (zh) * 2016-12-07 2017-03-29 北京信任度科技有限公司 基于密钥分割实现区块链私钥保护的方法及系统
WO2017065389A1 (ko) * 2015-10-16 2017-04-20 (주)코인플러그 블록체인을 기반으로 하는 공인인증서 발급시스템과 이를 이용한 블록체인을 기반으로 하는 공인인증서 발급방법 및 블록체인을 기반으로 하는 공인인증서 인증시스템과 이를 이용한 블록체인을 기반으로 하는 공인인증서 인증방법
CN108564353A (zh) * 2018-04-27 2018-09-21 数字乾元科技有限公司 基于区块链的支付系统及方法
CN108846662A (zh) * 2018-05-29 2018-11-20 数字乾元科技有限公司 无线支付方法及可穿戴设备
CN109903043A (zh) * 2019-01-17 2019-06-18 平安科技(深圳)有限公司 基于区块链的安全交易方法、装置、设备及存储介质

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7039805B1 (en) * 1998-05-20 2006-05-02 Messing John H Electronic signature method
CN102904865B (zh) * 2011-07-29 2016-05-25 中国移动通信集团公司 一种基于移动终端的多个数字证书的管理方法、系统和设备
CN103051453B (zh) * 2012-12-17 2016-03-23 连连银通电子支付有限公司 一种基于数字证书的移动终端网络安全交易系统与方法
CN105429760B (zh) * 2015-12-01 2018-12-14 神州融安科技(北京)有限公司 一种基于tee的数字证书的身份验证方法及系统
CN105681340B (zh) * 2016-03-07 2019-05-14 吴晓军 一种数字证书的使用方法及装置
CN106850200B (zh) * 2017-01-25 2019-10-22 中钞信用卡产业发展有限公司杭州区块链技术研究院 一种使用基于区块链的数字货币的安全方法、系统及终端
CN108876332B (zh) * 2018-06-04 2020-09-22 清华大学 一种基于生物特征标记认证的区块链安全交易方法及装置

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017065389A1 (ko) * 2015-10-16 2017-04-20 (주)코인플러그 블록체인을 기반으로 하는 공인인증서 발급시스템과 이를 이용한 블록체인을 기반으로 하는 공인인증서 발급방법 및 블록체인을 기반으로 하는 공인인증서 인증시스템과 이를 이용한 블록체인을 기반으로 하는 공인인증서 인증방법
CN106097073A (zh) * 2016-06-20 2016-11-09 深圳市淘淘谷信息技术有限公司 一种用区块链来赋予数字账户交易过程独有id的方法
CN106548345A (zh) * 2016-12-07 2017-03-29 北京信任度科技有限公司 基于密钥分割实现区块链私钥保护的方法及系统
CN108564353A (zh) * 2018-04-27 2018-09-21 数字乾元科技有限公司 基于区块链的支付系统及方法
CN108846662A (zh) * 2018-05-29 2018-11-20 数字乾元科技有限公司 无线支付方法及可穿戴设备
CN109903043A (zh) * 2019-01-17 2019-06-18 平安科技(深圳)有限公司 基于区块链的安全交易方法、装置、设备及存储介质

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111985923A (zh) * 2020-09-03 2020-11-24 深圳壹账通智能科技有限公司 一种数据处理方法、装置、设备以及存储介质
CN114154606A (zh) * 2021-12-02 2022-03-08 杭州复杂美科技有限公司 标识码生成方法、计算机设备和存储介质
CN114154606B (zh) * 2021-12-02 2024-03-15 杭州复杂美科技有限公司 标识码生成方法、计算机设备和存储介质

Also Published As

Publication number Publication date
CN109903043A (zh) 2019-06-18
CN109903043B (zh) 2023-01-10

Similar Documents

Publication Publication Date Title
WO2020147384A1 (zh) 基于区块链的安全交易方法、装置、设备及存储介质
WO2019144738A1 (zh) 金融业务的验证方法、装置、设备和计算机存储介质
WO2020062642A1 (zh) 基于区块链的电子合同签署方法、装置、设备及存储介质
WO2018194379A1 (ko) 블록체인 및 이와 연동되는 머클 트리 구조 기반의 토큰 아이디를 이용하여 카드 사용을 승인하는 방법 및 이를 이용한 서버
CN101512540B (zh) 信息处理装置及其方法
WO2017094998A1 (ko) 이동통신단말기에 저장된 금융카드정보를 이용한 생체정보 본인 인증 시스템 및 방법
WO2019093573A1 (ko) 생체정보 기반의 전자서명 인증 시스템 및 그의 전자서명 인증 방법
WO2020206899A1 (zh) 基于时间戳的身份验证方法、装置、设备及存储介质
WO2018012747A1 (ko) 앱 위변조 탐지 가능한 2채널 인증 대행 시스템 및 그 방법
JP5135509B2 (ja) コンピュータ装置の安全な動作方法
CN116723027A (zh) 提供和获取安全身份信息的方法及装置
JP7364057B2 (ja) 情報処理装置、システム、顔画像の更新方法及びプログラム
WO2014026443A1 (zh) 身份认证管理装置及其方法
WO2020034527A1 (zh) 用户个人信息加密授权方法、装置、设备及可读存储介质
JP7124988B2 (ja) 認証サーバ、認証システム、認証サーバの制御方法及びプログラム
WO2020235733A1 (ko) 유저 바이오 데이터를 이용한 유저 인증 및 서명 장치와 방법
KR101043306B1 (ko) 정보 처리 장치, 정보 관리 방법, 및 정보 관리 프로그램을 기억한 컴퓨터 판독 가능한 기억 매체
WO2020032351A1 (ko) 익명 디지털 아이덴티티 수립 방법
WO2018151392A1 (ko) 메신저서비스를 이용한 스마트 로그인 방법 및 그 장치
WO2021071295A1 (ko) 동일성 인증 시스템 및 그 방법
WO2022196852A1 (ko) 블록체인 기술 기반의 개인대 개인간 사적 정보 인증 방법
WO2024177329A1 (ko) 일회성 코드를 활용한 디지털 치료제 app 인증/연동 시스템 및 방법
US20200145418A1 (en) Authentication method, an authentication device and a system comprising the authentication device
WO2015026183A1 (ko) Sw 토큰을 이용한 오프라인 로그인 방법 및 이를 적용한 모바일 기기
JP2020013288A (ja) 認証プログラム、認証方法及び認証装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19910098

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19910098

Country of ref document: EP

Kind code of ref document: A1