Identity authentication method, device, equipment and storage medium
By using an authoritative and trusted third party to centrally save and compare biometric characteristics in the blockchain, the problem of easy leakage of private keys is solved, safe and reliable identity authentication is achieved, and the security of blockchain identity authentication is improved.
Patent Information
- Application Number
- CN202210700328.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-20
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2042-06-20
AI Technical Summary
User authentication in the blockchain relies on private keys, which are easily leaked or lost. Existing password and biometric authentication methods have low security issues.
An authoritative and trusted third party is used to centrally save and compare biometric features, and complete identity authentication through encryption and signature processing to avoid the use of private keys.
It improves the security of blockchain identity authentication, reduces the work burden of third-party institutions, and provides a safe and reliable authentication method.
Smart Images

Figure CN115396086B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to an identity authentication method, device, equipment and storage medium. Background Art
[0002] Blockchain is a string of data blocks generated using cryptographic methods. Each data block contains information about a network transaction and is used to verify the validity of the information and generate the next block.
[0003] User authentication in the current blockchain relies on the user's private key. Whoever has the private key corresponding to the public key claiming the user's identity is the correct user. The user must strictly protect the security of the private key. Once the private key is lost or leaked, all assets in the blockchain will be irrecoverable. Currently, the identity authentication method in the blockchain is usually to use the password as the private key for authentication, or to authenticate locally based on biometrics such as fingerprints / irises.
[0004] However, using passwords as private keys is prone to leakage or cracking, and biometrics are only suitable for local authentication. Once sent to the authenticator, it will also cause the private key to be leaked. The authentication method in the prior art has the technical problem of low security. Summary of the invention
[0005] The present application provides an identity authentication method, apparatus, device and storage medium to solve the technical problem in the prior art that passwords are used as private keys and are easily leaked or cracked, and biometrics are only suitable for local authentication. Once sent to the authenticator, it will also cause the private key to be leaked, and the authentication method has low security.
[0006] In a first aspect, the present application provides an identity authentication method, which is applied to a first blockchain participating node, comprising:
[0007] Receiving an authentication request sent by a second blockchain participating node, wherein the authentication request carries a time domain identity identification number of the session;
[0008] Acquire a first biometric feature of the first user according to the authentication request;
[0009] Encrypting the first biometric feature using a first key to obtain an encrypted feature;
[0010] The encrypted feature is sent to the second blockchain participating node, so that after receiving the encrypted feature, the second blockchain participating node performs a third-party public key encryption process and a second key signature process on the encrypted feature, the first blockchain participating node identifier, the second blockchain participating node identifier, the current authorization authentication identifier and the time domain identity identification number to obtain second authentication information, and sends the second authentication information to the third-party blockchain node;
[0011] The first key, the first blockchain participating node identifier, the second blockchain participating node identifier and the current authorization authentication identifier are encrypted with a third-party public key and signed with a first key to obtain first authentication information, and the first authentication information is sent to a third-party blockchain node, so that after receiving the first authentication information and the second authentication information, the third-party blockchain node associates the first key with the encrypted feature through the first blockchain participating node identifier, the second blockchain participating node identifier and the current authorization authentication identifier, decrypts the first biometric feature, compares the first biometric feature with a preset feature in a preset biometric feature library, and sends the comparison result to the second blockchain participating node.
[0012] Here, the present application provides an identity authentication method. For the nodes in the blockchain, an authoritative and trusted third party is used to participate in the authentication, which can provide safe and reliable authentication. Specifically, if the second blockchain participating node needs to authenticate the first blockchain participating node, the second blockchain participating node initiates an authentication request to the first blockchain participating node. After initiating the identity authentication, the present application can generate a random number as a session key distribution to both parties based on the identity document (ID) and the session identity document (Session ID) of the first blockchain participating node and the second blockchain participating node as input. The authoritative and trusted third-party blockchain node centrally stores the biometrics and provides biometric comparison services for all users. The user's identity can be compared based on the above information, thereby completing the method of completing identity authentication without the need to have a private key. The blockchain participants have long-term identity certificates, which also makes it more convenient for the use and authentication of the blockchain participants, reduces the work of the third-party authoritative and trusted institutions, and improves the security of the identity authentication of participants in the blockchain.
[0013] Optionally, before encrypting the first biometric feature by using the first key to obtain the encrypted feature, the method further includes:
[0014] A first key is randomly generated.
[0015] Here, the first blockchain participating node of the present application can randomly generate a first key, thereby encrypting the information sent to the third-party blockchain node through the first key, further improving the security of identity authentication.
[0016] Optionally, before receiving the authentication request sent by the second blockchain participating node, the method further includes:
[0017] Verification information is registered at a third-party blockchain node, wherein the verification information includes a correspondence between the biometric data and the identity information of the first user.
[0018] Among them, before each blockchain participant performs identity authentication, he or she can first register the correspondence between his or her biometric data (such as fingerprints, irises) and identity information (the identity information can be a virtual identity on the blockchain, such as a blockchain identifier and a public key to represent the blockchain participant) with an authoritative and trusted third party (third-party blockchain node) so that the third-party blockchain node can perform authentication based on the registered information.
[0019] Optionally, before the third-party public key encryption processing and the first key signature processing are performed on the first key, the first blockchain participating node identifier, the second blockchain participating node identifier and the current authorization authentication identifier, the process further includes:
[0020] Receive the third-party blockchain identifier and third-party public key sent by the third-party blockchain node.
[0021] In a second aspect, the present application provides an identity authentication method, which is applied to a second blockchain participating node, including:
[0022] Initiate an authentication request to the first blockchain participating node, so that the first blockchain participating node obtains the first biometric feature of the first user according to the authentication request, encrypts the first biometric feature by using the first key to obtain the encrypted feature, sends the encrypted feature to the second blockchain participating node, and performs third-party public key encryption and first key signature processing on the first key, the first blockchain participating node identifier, the second blockchain participating node identifier, and the current authorization authentication identifier to obtain first authentication information, and sends the first authentication information to the third-party blockchain node, wherein the authentication request carries the time domain identity identification number of the session;
[0023] Receiving the encrypted feature sent by the first blockchain participating node;
[0024] Perform third-party public key encryption processing and second key signature processing on the encrypted feature, the first blockchain participating node identifier, the second blockchain participating node identifier, the current authorization authentication identifier, and the time domain identity identification number to obtain second authentication information, and send the second authentication information to a third-party blockchain node, so that after receiving the first authentication information and the second authentication information, the third-party blockchain node associates the first key with the encrypted feature through the first blockchain participating node identifier, the second blockchain participating node identifier, and the current authorization authentication identifier, and decrypts to obtain the first biometric feature, compares the first biometric feature with a preset feature in a preset biometric feature library, and sends the comparison result to the second blockchain participating node;
[0025] Receive the comparison result sent by the third-party blockchain node.
[0026] Optionally, after receiving the comparison result sent by the third-party blockchain node, the method further includes:
[0027] Initiate a query fee payment request in the blockchain;
[0028] Obtain query fees in the blockchain and perform payment processing based on the query fees.
[0029] Among them, blockchain participants can initiate a query fee payment application in the blockchain during the authentication request process to achieve automatic payment of identity authentication, thereby improving user experience.
[0030] In a third aspect, the present application provides an identity authentication method, which is applied to a third-party blockchain node, including:
[0031] Receive first authentication information sent by a first blockchain participating node and second authentication information sent by a second blockchain participating node, wherein the first authentication information is obtained by the first blockchain participating node, after receiving an authentication request sent by the second blockchain participating node, obtaining the first biometric feature of the first user according to the authentication request, and performing third-party public key encryption processing and first key signature processing on the first key, the first blockchain participating node identifier, the second blockchain participating node identifier, and the current authorization authentication identifier, the authentication request carries the time domain identity identification number of the session, and the second authentication information is obtained by the second blockchain participating node, after initiating an authentication request to the first blockchain participating node and receiving the encrypted feature sent by the first blockchain participating node, performing third-party public key encryption processing and second key signature processing on the encrypted feature, the first blockchain participating node identifier, the second blockchain participating node identifier, the current authorization authentication identifier, and the time domain identity identification number;
[0032] By using the first blockchain participating node identifier, the second blockchain participating node identifier and the current authorization authentication identifier, the first key and the encrypted feature are associated, and the first biometric feature is decrypted;
[0033] The first biometric feature is compared with a preset feature in a preset biometric feature library, and the comparison result is sent to the second blockchain participating node.
[0034] Optionally, sending the comparison result to the second blockchain participating node includes:
[0035] Generate a session key according to the first blockchain participating node identifier, the second blockchain participating node identifier and the time domain identity identification number;
[0036] The comparison result and the session key are sent to the second blockchain participating node.
[0037] Optionally, before receiving the first authentication information sent by the first blockchain participating node and the second authentication information sent by the second blockchain participating node, the method further includes:
[0038] Broadcast the third-party blockchain identity and third-party public key.
[0039] In a fourth aspect, the present application provides an identity authentication system, including a first blockchain participating node, a second blockchain participating node, and a third-party blockchain node;
[0040] The second blockchain participating node is used to initiate an authentication request to the first blockchain participating node, wherein the authentication request carries a time domain identity identification number of the session;
[0041] The first blockchain participating node is used to obtain a first biometric feature of the first user according to the authentication request after receiving the authentication request sent by the second blockchain participating node;
[0042] The first blockchain participating node is used to encrypt the first biometric feature using a first key to obtain an encrypted feature;
[0043] The first blockchain participating node is used to send the encryption feature to the second blockchain participating node, and perform third-party public key encryption processing and first key signature processing on the first key, the first blockchain participating node identifier, the second blockchain participating node identifier and the current authorization authentication identifier to obtain first authentication information, and send the first authentication information to the third-party blockchain node;
[0044] The second blockchain participating node is used to perform third-party public key encryption processing and second key signature processing on the encryption feature, the first blockchain participating node identifier, the second blockchain participating node identifier, the current authorization authentication identifier and the time domain identity identification number after receiving the encryption feature, to obtain second authentication information, and send the second authentication information to the third-party blockchain node;
[0045] The third-party blockchain node is used to associate the first key with the encrypted feature through the first blockchain participating node identifier, the second blockchain participating node identifier and the current authorization authentication identifier after receiving the first authentication information sent by the first blockchain participating node and the second authentication information sent by the second blockchain participating node, and decrypt to obtain the first biometric feature;
[0046] The third-party blockchain node is used to compare the first biometric feature with a preset feature in a preset biometric feature library, and send the comparison result to the second blockchain participating node.
[0047] In a fifth aspect, the present application provides an identity authentication device, which is applied to a first blockchain participating node, including:
[0048] A first receiving module is used to receive an authentication request sent by a second blockchain participating node, wherein the authentication request carries a time domain identity identification number of a session;
[0049] An acquisition module, configured to acquire a first biometric feature of a first user according to the authentication request;
[0050] A first processing module, configured to encrypt the first biometric feature using a first key to obtain an encrypted feature;
[0051] A first sending module is used to send the encrypted feature to the second blockchain participating node, so that after receiving the encrypted feature, the second blockchain participating node performs a third-party public key encryption process and a second key signature process on the encrypted feature, the first blockchain participating node identifier, the second blockchain participating node identifier, the current authorization authentication identifier and the time domain identity identification number to obtain second authentication information, and send the second authentication information to the third-party blockchain node;
[0052] The second processing module is used to perform third-party public key encryption processing and first key signature processing on the first key, the first blockchain participating node identifier, the second blockchain participating node identifier and the current authorization authentication identifier to obtain first authentication information, and send the first authentication information to a third-party blockchain node, so that after receiving the first authentication information and the second authentication information, the third-party blockchain node associates the first key with the encrypted feature through the first blockchain participating node identifier, the second blockchain participating node identifier and the current authorization authentication identifier, decrypts and obtains the first biometric feature, compares the first biometric feature with a preset feature in a preset biometric feature library, and sends the comparison result to the second blockchain participating node.
[0053] Optionally, before the first processing module encrypts the first biometric feature using the first key to obtain the encrypted feature, the apparatus further includes:
[0054] The third processing module is used to randomly generate a first key.
[0055] Optionally, before the first receiving module receives the authentication request sent by the second blockchain participating node, the device further includes:
[0056] A registration module is used to register verification information in a third-party blockchain node, wherein the verification information includes a correspondence between the biometric data and the identity information of the first user.
[0057] Optionally, before the second processing module performs third-party public key encryption processing and first key signature processing on the first key, the first blockchain participating node identifier, the second blockchain participating node identifier and the current authorization authentication identifier, the above-mentioned device also includes:
[0058] The second receiving module is used to receive a third-party blockchain identifier and a third-party public key sent by a third-party blockchain node.
[0059] In a sixth aspect, the present application provides an identity authentication device, which is applied to a second blockchain participating node, including:
[0060] The fourth processing module is used to initiate an authentication request to the first blockchain participating node, so that the first blockchain participating node obtains the first biometric feature of the first user according to the authentication request, encrypts the first biometric feature by using the first key to obtain the encrypted feature, sends the encrypted feature to the second blockchain participating node, and performs third-party public key encryption and first key signature processing on the first key, the first blockchain participating node identifier, the second blockchain participating node identifier and the current authorization authentication identifier to obtain first authentication information, and sends the first authentication information to the third-party blockchain node, wherein the authentication request carries the time domain identity identification number of the session;
[0061] A third receiving module, used to receive the encryption feature sent by the first blockchain participating node;
[0062] a fifth processing module, configured to perform third-party public key encryption processing and second key signature processing on the encrypted feature, the first blockchain participating node identifier, the second blockchain participating node identifier, the current authorization authentication identifier, and the time domain identity identification number to obtain second authentication information, and send the second authentication information to a third-party blockchain node, so that after receiving the first authentication information and the second authentication information, the third-party blockchain node associates the first key with the encrypted feature through the first blockchain participating node identifier, the second blockchain participating node identifier, and the current authorization authentication identifier, and decrypts to obtain the first biometric feature, compares the first biometric feature with a preset feature in a preset biometric feature library, and sends the comparison result to the second blockchain participating node;
[0063] The fourth receiving module is used to receive the comparison result sent by the third-party blockchain node.
[0064] Optionally, after the fourth receiving module receives the comparison result sent by the third-party blockchain node, the device further includes:
[0065] The payment module is used to initiate a query fee payment application in the blockchain; obtain the query fee in the blockchain, and perform payment processing based on the query fee.
[0066] In a seventh aspect, the present application provides an identity authentication device, which is applied to a third-party blockchain node, including:
[0067] a fifth receiving module, configured to receive first authentication information sent by a first blockchain participating node and second authentication information sent by a second blockchain participating node, wherein the first authentication information is obtained by the first blockchain participating node, after receiving an authentication request sent by the second blockchain participating node and obtaining the first biometric feature of the first user according to the authentication request, performing third-party public key encryption processing and first key signature processing on the first key, the first blockchain participating node identifier, the second blockchain participating node identifier, and the current authorization authentication identifier, the authentication request carries a time domain identity identification number of the session, and the second authentication information is obtained by the second blockchain participating node, after initiating an authentication request to the first blockchain participating node and receiving the encrypted feature sent by the first blockchain participating node, performing third-party public key encryption processing and second key signature processing on the encrypted feature, the first blockchain participating node identifier, the second blockchain participating node identifier, the current authorization authentication identifier, and the time domain identity identification number;
[0068] a sixth processing module, configured to associate the first key with the encrypted feature through the first blockchain participating node identifier, the second blockchain participating node identifier, and the current authorization authentication identifier, and decrypt the first biometric feature;
[0069] The seventh processing module is used to compare the first biometric feature with a preset feature in a preset biometric feature library, and send the comparison result to the second blockchain participating node.
[0070] Optionally, the seventh processing module is specifically used to:
[0071] Generate a session key according to the first blockchain participating node identifier, the second blockchain participating node identifier and the time domain identity identification number; and send the comparison result and the session key to the second blockchain participating node.
[0072] Optionally, before the fifth receiving module receives the first authentication information sent by the first blockchain participating node and the second authentication information sent by the second blockchain participating node, the apparatus further includes:
[0073] The broadcast module is used to broadcast the third-party blockchain identifier and third-party public key.
[0074] In an eighth aspect, the present application provides an identity authentication device, comprising: at least one processor and a memory;
[0075] The memory stores computer-executable instructions;
[0076] The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor performs the identity authentication method described in the first aspect and various possible designs of the first aspect.
[0077] In a ninth aspect, the present application provides an identity authentication device, including: at least one processor and a memory;
[0078] The memory stores computer-executable instructions;
[0079] The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor performs the identity authentication method described in the second aspect and various possible designs of the second aspect.
[0080] In a tenth aspect, the present application provides an identity authentication device, including: at least one processor and a memory;
[0081] The memory stores computer-executable instructions;
[0082] The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor executes the identity authentication method described in the third aspect and various possible designs of the third aspect.
[0083] In the eleventh aspect, the present application provides a computer-readable storage medium, which stores computer execution instructions. When the processor executes the computer execution instructions, the identity authentication method described in the first aspect and various possible designs of the first aspect is implemented.
[0084] In a twelfth aspect, the present application provides a computer-readable storage medium, in which computer execution instructions are stored. When a processor executes the computer execution instructions, the identity authentication method described in the second aspect and various possible designs of the second aspect is implemented.
[0085] In the thirteenth aspect, the present application provides a computer-readable storage medium, which stores computer execution instructions. When the processor executes the computer execution instructions, the identity authentication method described in the third aspect and various possible designs of the third aspect is implemented.
[0086] In a fourteenth aspect, the present application provides a computer program product, including a computer program. When the computer program is executed by a processor, it implements the identity authentication method described in the first aspect and various possible designs of the first aspect.
[0087] In a fifteenth aspect, the present application provides a computer program product, including a computer program. When the computer program is executed by a processor, it implements the identity authentication method described in the second aspect and various possible designs of the second aspect.
[0088] In a sixteenth aspect, the present application provides a computer program product, including a computer program. When the computer program is executed by a processor, it implements the identity authentication method described in the third aspect and various possible designs of the third aspect.
[0089] The identity authentication method, device, server and storage medium provided by the present application, wherein the method is aimed at nodes in the blockchain, and adopts an authoritative and trusted third party to participate in the authentication, which can provide safe and reliable authentication. Specifically, if the second blockchain participating node needs to authenticate the first blockchain participating node, the second blockchain participating node initiates an authentication request to the first blockchain participating node. After initiating the identity authentication, the present application can generate a random number as a session key distribution to both parties based on the ID and SessionID of the first blockchain participating node and the second blockchain participating node as input. The authoritative and trusted third-party blockchain node centrally stores the biometrics and provides biometric comparison services for all users. The user's identity can be compared based on the above information, thereby completing the method of completing identity authentication without having a private key. The blockchain participants have long-term identity certificates, which also makes it more convenient for the use and authentication of the blockchain participants, reduces the work of the third-party authoritative and trusted institutions, and improves the security of the identity authentication of participants in the blockchain. BRIEF DESCRIPTION OF THE DRAWINGS
[0090] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0091] Figure 1 A schematic diagram of a blockchain architecture of an identity authentication system provided in an embodiment of the present application;
[0092] Figure 2 A flowchart of an identity authentication method provided in an embodiment of the present application;
[0093] Figure 3 A flowchart of another identity authentication method provided in an embodiment of the present application;
[0094] Figure 4 A flowchart of another identity authentication method provided in an embodiment of the present application;
[0095] Figure 5 A flowchart of another identity authentication method provided in an embodiment of the present application;
[0096] Figure 6 A schematic diagram of the structure of an identity authentication device provided in an embodiment of the present application;
[0097] Figure 7 A schematic diagram of the structure of an identity authentication device provided in an embodiment of the present application;
[0098] Figure 8 A schematic diagram of the structure of another identity authentication device provided in an embodiment of the present application;
[0099] Fig. 9 A schematic diagram of the structure of another identity authentication device provided in an embodiment of the present application.
[0100] The above drawings show clear embodiments of the present disclosure, which will be described in more detail below. These drawings and text descriptions are not intended to limit the scope of the present disclosure in any way, but to illustrate the concepts of the present disclosure to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0101] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0102] The terms "first", "second", "third", and "fourth", etc. (if any) in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product, or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products, or devices.
[0103] In the technical solution of this application, the collection, storage, use, processing, transmission, provision and disclosure of user data and other information involved are in compliance with the provisions of relevant laws and regulations and do not violate public order and good morals.
[0104] Blockchain is a special distributed database. Blockchain is a new application mode of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanism, encryption algorithm, etc. It is essentially a decentralized database. First of all, the main function of blockchain is to store information. Any information that needs to be saved can be written into the blockchain and read from it, so it is a database; secondly, anyone can set up a server, join the blockchain network, and become a node. In the world of blockchain, there is no central node. Each node is equal and stores the entire database. Data can be written / read to any node because all nodes will be synchronized in the end to ensure the consistency of the blockchain. Blockchain is a string of data blocks generated by cryptographic methods. Each data block contains information about a network transaction, which is used to verify the validity of its information (anti-counterfeiting) and generate the next block. In a narrow sense, blockchain is a chain data structure that combines data blocks in a sequential manner in chronological order, and a distributed ledger that is cryptographically guaranteed to be tamper-proof and unforgeable. In a broad sense, blockchain technology is a new distributed infrastructure and computing paradigm that uses block chain data structures to verify and store data, distributed node consensus algorithms to generate and update data, cryptography to ensure the security of data transmission and access, and smart contracts composed of automated script codes to program and operate data. The design of blockchain is a protection measure, such as (applied to) highly fault-tolerant distributed computing systems. Blockchain makes hybrid consistency possible. This makes blockchain suitable for recording events, titles, medical records and other activities that require data collection, identity management, transaction process management and provenance management.
[0105] User authentication in the current blockchain relies on the user's private key. Whoever has the private key corresponding to the public key claiming the user's identity is the correct user. However, users are required to strictly protect the security of their private keys. Once the private key is lost or leaked, all assets in the blockchain can no longer be recovered. The traditional commonly used password method is easy to remember but easy to crack. The method based on biometrics such as fingerprints / irises is highly anticipated, but biometrics are only suitable for local authentication. Once sent to the authenticator, it means that the biometric is in the hands of the other party, which can easily be used maliciously and cause biometric leakage.
[0106] In order to solve the above technical problems, the embodiments of the present application provide an identity authentication method, device, server and storage medium, which use an authoritative and trusted third party to centrally store biometrics and provide biometric comparison services for all users, which will notify both parties of the comparison results, thereby completing identity authentication without the need to possess a private key.
[0107] Optionally, Figure 1 A schematic diagram of the blockchain architecture of an identity authentication system provided in an embodiment of the present application. Figure 1 As shown, the above architecture includes a first blockchain participating node 101, a third-party blockchain node 102 and a second blockchain participating node 103.
[0108] It is understandable that the number of the first blockchain participating node 101, the third-party blockchain node 102, and the second blockchain participating node 103 can be determined according to actual conditions. Figure 1 This is for illustration only, and the embodiments of the present application do not impose any specific limitation on the number of the above nodes.
[0109] The first blockchain participating node 101, the third-party blockchain node 102, and the second blockchain participating node 103 are all nodes in the blockchain, and any two nodes can communicate with each other (in this application, communication connection is required between nodes of different properties, for example, the third-party blockchain node broadcasts information to the first blockchain participating node and the second blockchain participating node, Figure 1 Only connecting lines are used to indicate the communication connection between nodes of different properties).
[0110] Among them, users can interact with the first blockchain participating node, the third-party blockchain node or the second blockchain participating node through input\output devices.
[0111] It is understandable that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the blockchain architecture of the identity authentication system. In other feasible implementations of the present application, the above architecture may include more or fewer components than shown in the figure, or combine certain components, or split certain components, or arrange the components differently, which can be determined according to the actual application scenario and is not limited here. Figure 1 The components shown may be implemented in hardware, software, or a combination of software and hardware.
[0112] In addition, the network architecture and business scenarios described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Ordinary technicians in this field can know that with the evolution of network architecture and the emergence of new business scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.
[0113] The technical solution of the present application is described below by taking several embodiments as examples, and the same or similar concepts or processes may not be repeated in some embodiments.
[0114] Figure 2 A flowchart of an identity authentication method provided in an embodiment of the present application, which can be applied to Figure 1The first blockchain participating node 101 in the embodiment may be a server, and the specific execution subject may be determined according to the actual application scenario. Figure 2 As shown, the method comprises the following steps:
[0115] S201: Receive an authentication request sent by a second blockchain participating node.
[0116] The authentication request carries the session domain identity number.
[0117] Optionally, when the second blockchain participating node wants to authenticate the identity of the first blockchain participating node, it initiates an authentication request to the first blockchain participating node and indicates the SessionID of the next session.
[0118] In one possible implementation, the second blockchain participant node is blockchain participant B, and the first blockchain participant node is blockchain participant A. When blockchain participant B needs to authenticate the identity of blockchain participant A, blockchain participant B initiates an authentication request to blockchain participant A and indicates the SessionID of the next session.
[0119] Optionally, before receiving the authentication request sent by the second blockchain participating node, the method further includes:
[0120] Verification information is registered at a third-party blockchain node, wherein the verification information includes a correspondence between the biometric data and the identity information of the first user.
[0121] Among them, before each blockchain participant performs identity authentication, he or she can first register the correspondence between his or her biometric data (such as fingerprints, irises) and identity information (the identity information can be a virtual identity on the blockchain, such as a blockchain identifier and a public key to represent the blockchain participant) with an authoritative and trusted third party (third-party blockchain node) so that the third-party blockchain node can perform authentication based on the registered information.
[0122] The verification information includes the correspondence between the biometric data and the identity information of the first user.
[0123] In one possible implementation, each blockchain participant first registers the correspondence between his or her biometric data (such as fingerprints, irises) and identity information (the identity information can be a virtual identity on the blockchain, such as a blockchain identifier and a public key to represent the blockchain participant) with an authoritative and trusted third party.
[0124] Optionally, the registration method can be performed offline or online. To ensure security, it is best to collect biometric data (such as fingerprints and irises) offline.
[0125] After successful registration, the authoritative third party publishes its own blockchain identifier and public key (third-party blockchain identifier and third-party public key) in the form of a broadcast message signed by a private key on the blockchain. Anyone on the blockchain can use their public key to confirm the identity certificate issued by the third-party blockchain node. The authoritative third party in the embodiment of the present application is a third-party blockchain node.
[0126] Optionally, before performing third-party public key encryption processing and first key signature processing on the first key, the first blockchain participating node identifier, the second blockchain participating node identifier and the current authorization authentication identifier, the method further includes:
[0127] Receive the third-party blockchain identifier and third-party public key sent by the third-party blockchain node.
[0128] Here, before each blockchain participant performs identity authentication, he or she can first register the correspondence between his or her biometric data (such as fingerprints, irises) and identity information (the identity information can be a virtual identity on the blockchain, such as a blockchain identifier and a public key to represent the blockchain participant) with an authoritative and trusted third party (third-party blockchain node) so that the third-party blockchain node can perform authentication based on the registered information.
[0129] S202: Acquire a first biometric feature of the first user according to the authentication request.
[0130] Optionally, the first user here is a user belonging to the first blockchain participating node. For example, if the first blockchain participating node is a terminal, the first user is a user of the terminal. If the first blockchain node is a server, the first user is a server operator.
[0131] Optionally, the first biometric feature here may be a fingerprint feature or an iris feature, or a facial image or the like.
[0132] Optionally, the biometric features of the first user may be acquired through a terminal or a collection device. Specifically, the biometric features may be collected through devices such as a camera and a sensor.
[0133] In a possible implementation, if blockchain participant A is a first blockchain participating node, blockchain participant A collects its own biometrics such as FingerPrintA'.
[0134] S203: Encrypt the first biometric feature using the first key to obtain an encrypted feature.
[0135] Among them, the first key here is the private key of the first blockchain participating node.
[0136] Optionally, before encrypting the first biometric feature with the first key to obtain the encrypted feature, the method further includes: randomly generating the first key.
[0137] In a possible implementation, blockchain participant A randomly generates an encryption key Key (i.e., a first key), encrypts FingerPrintA' with Key to obtain E(FingerPrintA'), and then sends it to blockchain participant B. E(FingerPrintA') is an encryption feature.
[0138] Here, the first blockchain participating node of the embodiment of the present application can randomly generate a first key, thereby encrypting the information sent to the third-party blockchain node through the first key, further improving the security of identity authentication.
[0139] S204: Send the encrypted feature to the second blockchain participating node, so that after receiving the encrypted feature, the second blockchain participating node performs third-party public key encryption and second key signature processing on the encrypted feature, the first blockchain participating node identifier, the second blockchain participating node identifier, the current authorization authentication identifier and the time domain identity identification number to obtain second authentication information, and send the second authentication information to the third-party blockchain node.
[0140] In one possible implementation, blockchain participant A randomly generates an encryption key Key, uses Key to encrypt FingerPrintA', obtains E(FingerPrintA'), and then sends it to blockchain participant B. At the same time, blockchain participant A sends Key and IDa, IDb, and the authorization authentication identifier (Authorization, AuthN) to an authoritative third party (also called a third-party blockchain node in the embodiment of this application). When the above information is sent, it needs to be encrypted with the public key of the authoritative third party and then signed with the private key of blockchain participant A before being sent out. Among them, IDa and IDb are the identifiers in the blockchain corresponding to blockchain participant A and blockchain participant B, namely the first blockchain participating node identifier and the second blockchain participating node identifier.
[0141] Optionally, based on the encryption feature E(FingerPrintA'), after blockchain participant B receives E(FingerPrintA'), it sends it together with IDa, IDb, AuthN, and SessionID to the authoritative third party. When sending the above information, it needs to be encrypted with the public key of the authoritative third party and then signed with the private key of blockchain participant B before sending it out. Blockchain participant B also pays the corresponding authentication query fee to the authoritative third party in the blockchain.
[0142] S205: Perform third-party public key encryption processing and first key signature processing on the first key, the first blockchain participating node identifier, the second blockchain participating node identifier and the current authorization authentication identifier to obtain first authentication information, and send the first authentication information to the third-party blockchain node, so that after receiving the first authentication information and the second authentication information, the third-party blockchain node associates the first key and the encrypted feature through the first blockchain participating node identifier, the second blockchain participating node identifier and the current authorization authentication identifier, and decrypts it to obtain the first biometric feature, compares the first biometric feature with the preset feature in the preset biometric feature library, and sends the comparison result to the second blockchain participating node.
[0143] Optionally, when each blockchain participating node registers with a third-party blockchain node, it adds its own preset features to a preset biometric library, and the third-party blockchain node can perform feature comparison and identity authentication based on this feature when performing identity authentication.
[0144] Optionally, the authoritative third party receives the information from both parties, associates Key and E (FingerPrintA') through IDa, IDb, and AuthN, decrypts to obtain FingerPrintA', and then compares FingerPrintA' with the matching FingerPrintA in the biometric library. The authoritative third party then signs the comparison result with the private key and sends it to blockchain participant B to complete the authentication.
[0145] The present application provides an identity authentication method. For nodes in a blockchain, an authoritative and trusted third party is used to participate in authentication, which can provide secure and reliable authentication. Specifically, if the second blockchain participating node needs to authenticate the first blockchain participating node, the second blockchain participating node initiates an authentication request to the first blockchain participating node. After initiating identity authentication, the embodiment of the present application can generate a random number as a session key distribution to both parties based on the ID and SessionID of the first blockchain participating node and the second blockchain participating node as input. The authoritative and trusted third-party blockchain node centrally stores biometric features and provides biometric feature comparison services for all users. The user's identity can be compared based on the above information, thereby completing the method of completing identity authentication without having to own a private key. The blockchain participants have long-term identity certificates, which also makes it more convenient for the use and authentication of the blockchain participants, reduces the work of the third-party authoritative and trusted organization, and improves the security of the identity authentication of participants in the blockchain.
[0146] Optionally, Figure 3 A flowchart of another identity authentication method provided in an embodiment of the present application. Figure 1The specific execution subject of the second blockchain participating node 103 can be determined according to the actual application scenario. Figure 3 As shown, the method comprises the following steps:
[0147] S301: Initiate an authentication request to the first blockchain participating node, so that the first blockchain participating node obtains the first biometric feature of the first user according to the authentication request, encrypts the first biometric feature by using the first key to obtain the encrypted feature, sends the encrypted feature to the second blockchain participating node, and performs third-party public key encryption and first key signature processing on the first key, the first blockchain participating node identifier, the second blockchain participating node identifier and the current authorization authentication identifier to obtain first authentication information, and sends the first authentication information to the third-party blockchain node.
[0148] The authentication request carries the session domain identity number.
[0149] S302: Receive the encryption feature sent by the first blockchain participating node.
[0150] S303: Perform third-party public key encryption processing and second key signature processing on the encrypted feature, the first blockchain participating node identifier, the second blockchain participating node identifier, the current authorization authentication identifier and the time domain identity identification number to obtain second authentication information, and send the second authentication information to the third-party blockchain node, so that after receiving the first authentication information and the second authentication information, the third-party blockchain node associates the first key and the encrypted feature through the first blockchain participating node identifier, the second blockchain participating node identifier and the current authorization authentication identifier, and decrypts to obtain the first biometric feature, compares the first biometric feature with the preset feature in the preset biometric feature library, and sends the comparison result to the second blockchain participating node.
[0151] S304: Receive the comparison result sent by the third-party blockchain node.
[0152] Optionally, after receiving the comparison result sent by the third-party blockchain node, it also includes: initiating a query fee payment application in the blockchain; obtaining the query fee in the blockchain, and performing payment processing based on the query fee.
[0153] Among them, blockchain participants can initiate a query fee payment application in the blockchain during the authentication request process to achieve automatic payment of identity authentication, thereby improving user experience.
[0154] Optionally, Figure 4 A flowchart of another identity authentication method provided in the embodiment of the present application. Figure 1 The third-party blockchain node 102 in the example may be a server, and the specific execution entity may be determined according to the actual application scenario. Figure 4 As shown, the method comprises the following steps:
[0155] S401: Receive first authentication information sent by a first blockchain participating node and second authentication information sent by a second blockchain participating node.
[0156] Among them, the first authentication information is obtained by the first blockchain participating node after receiving the authentication request sent by the second blockchain participating node, obtaining the first biometric feature of the first user according to the authentication request, and performing third-party public key encryption processing and first key signature processing on the first key, the first blockchain participating node identifier, the second blockchain participating node identifier and the current authorization authentication identifier, and the authentication request carries the time domain identity identification number of the session. The second authentication information is obtained by the second blockchain participating node after initiating an authentication request to the first blockchain participating node and receiving the encrypted feature sent by the first blockchain participating node, and performing third-party public key encryption processing and second key signature processing on the encrypted feature, the first blockchain participating node identifier, the second blockchain participating node identifier, the current authorization authentication identifier and the time domain identity identification number.
[0157] Optionally, before receiving the first authentication information sent by the first blockchain participating node and the second authentication information sent by the second blockchain participating node, it also includes: broadcasting a third-party blockchain identifier and a third-party public key.
[0158] Here, the third-party blockchain node in the embodiment of the present application can broadcast the third-party blockchain identifier and the third-party public key so that other blockchain participating nodes can perform identity authentication based on the third-party blockchain identifier and the third-party public key, thereby improving the security and accuracy of identity authentication.
[0159] S402: The first key and the encrypted feature are associated through the first blockchain participating node identifier, the second blockchain participating node identifier and the current authorization authentication identifier, and the first biometric feature is decrypted.
[0160] Optionally, the first blockchain participating node identifier, the second blockchain participating node identifier and the current authorization authentication identifier can all be obtained through the first authentication information sent by the first blockchain participating node and the second authentication information sent by the second blockchain participating node.
[0161] S403: Compare the first biometric feature with a preset feature in a preset biometric feature library, and send the comparison result to the second blockchain participating node.
[0162] Optionally, sending the comparison result to the second blockchain participating node includes:
[0163] Generate a session key based on the first blockchain participating node identifier, the second blockchain participating node identifier and the time domain identity identification number; and send the comparison result and the session key to the second blockchain participating node.
[0164] In one possible implementation, before sending the comparison result to blockchain participant B, the authoritative third party generates a session key SessionKey based on IDa, IDb, and SessionID as input, and sends the comparison result and the session key SessionKey to blockchain participant B together.
[0165] Optionally, blockchain participant A can initiate an authentication request to blockchain participant B, and use the same SessionID, so that the authoritative third party will generate the same SessionKey, thereby distributing the same key for subsequent sessions and encrypting subsequent sessions.
[0166] Here, the third-party blockchain node of the embodiment of the present application can send the comparison result and the session key together to the second blockchain participating node. In the subsequent authentication process, identity authentication can be performed based on the session key. The authoritative third party can obtain the key for this session without waiting for the other party to complete the authentication, thereby ensuring the security of subsequent communications.
[0167] Optionally, Figure 5 A flowchart of another identity authentication method provided in an embodiment of the present application. The execution subject of the embodiment of the present application is a system including a first blockchain participating node, a second blockchain participating node and a third-party blockchain node, which can be a server. The specific execution subject can be determined according to the actual application scenario. Figure 5 As shown, the method comprises the following steps:
[0168] S501: The second blockchain participating node initiates an authentication request to the first blockchain participating node.
[0169] The authentication request carries the session domain identity number.
[0170] S502: After receiving the authentication request sent by the second blockchain participating node, the first blockchain participating node obtains the first biometric feature of the first user according to the authentication request.
[0171] S503: The first blockchain participating node encrypts the first biometric feature using the first key to obtain an encrypted feature.
[0172] S504: The first blockchain participating node sends the encrypted feature to the second blockchain participating node, and performs third-party public key encryption processing and first key signature processing on the first key, the first blockchain participating node identifier, the second blockchain participating node identifier and the current authorization authentication identifier to obtain first authentication information, and send the first authentication information to the third-party blockchain node.
[0173] S505: After receiving the encrypted feature, the second blockchain participating node performs third-party public key encryption and second key signature processing on the encrypted feature, the first blockchain participating node identifier, the second blockchain participating node identifier, the current authorization authentication identifier and the time domain identity identification number to obtain second authentication information, and sends the second authentication information to the third-party blockchain node.
[0174] S506: After receiving the first authentication information sent by the first blockchain participating node and the second authentication information sent by the second blockchain participating node, the third-party blockchain node associates the first key and the encrypted feature through the first blockchain participating node identifier, the second blockchain participating node identifier and the current authorization authentication identifier, and decrypts to obtain the first biometric feature.
[0175] S507: The third-party blockchain node compares the first biometric feature with a preset feature in a preset biometric feature library, and sends the comparison result to the second blockchain participating node.
[0176] The embodiment of the present application proposes a method of using an authoritative and trusted third party to centrally store biometrics and provide biometric comparison services for all users, which notifies both parties of the comparison results, thereby completing identity authentication without the need for a private key. In order to improve security, this patent directly generates a random number as a session key based on IDa, IDb and SessionID as input to distribute to both parties. In this way, the authoritative third party can obtain the key for this session without waiting for the other party to complete the authentication, thereby ensuring the security of subsequent communications.
[0177] The embodiment of the present application also provides an identity authentication system, including a first blockchain participating node, a second blockchain participating node, and a third-party blockchain node;
[0178] The second blockchain participating node is used to initiate an authentication request to the first blockchain participating node, wherein the authentication request carries the time domain identity identification number of the session;
[0179] The first blockchain participating node is used to obtain a first biometric feature of the first user according to the authentication request after receiving the authentication request sent by the second blockchain participating node;
[0180] The first blockchain participating node is used to encrypt the first biometric feature using the first key to obtain an encrypted feature;
[0181] The first blockchain participating node is used to send the encryption feature to the second blockchain participating node, and perform third-party public key encryption processing and first key signature processing on the first key, the first blockchain participating node identifier, the second blockchain participating node identifier and the current authorization authentication identifier to obtain first authentication information, and send the first authentication information to the third-party blockchain node;
[0182] After receiving the encrypted feature, the second blockchain participating node is used to perform third-party public key encryption processing and second key signature processing on the encrypted feature, the first blockchain participating node identifier, the second blockchain participating node identifier, the current authorization authentication identifier and the time domain identity identification number to obtain second authentication information, and send the second authentication information to the third-party blockchain node;
[0183] The third-party blockchain node is used to associate the first key and the encrypted feature through the first blockchain participating node identifier, the second blockchain participating node identifier and the current authorization authentication identifier after receiving the first authentication information sent by the first blockchain participating node and the second authentication information sent by the second blockchain participating node, and decrypt to obtain the first biometric feature;
[0184] The third-party blockchain node is used to compare the first biometric feature with the preset features in the preset biometric feature library, and send the comparison result to the second blockchain participating node.
[0185] Figure 6 A structural diagram of an identity authentication device provided in an embodiment of the present application, applied to a first blockchain participating node, such as Figure 6 As shown, the device of the embodiment of the present application includes: a first receiving module 601, an acquisition module 602, a first processing module 603, a first sending module 604 and a second processing module 605. The identity authentication device here can be a blockchain server, or a chip or integrated circuit that implements the function of the server. It should be noted here that the division of the first receiving module 601, the acquisition module 602, the first processing module 603, the first sending module 604 and the second processing module 605 is only a division of logical functions. Physically, the two can be integrated or independent.
[0186] The first receiving module is used to receive an authentication request sent by the second blockchain participating node, wherein the authentication request carries a time domain identity identification number of the session;
[0187] An acquisition module, configured to acquire a first biometric feature of a first user according to an authentication request;
[0188] A first processing module, configured to encrypt the first biometric feature using a first key to obtain an encrypted feature;
[0189] A first sending module is used to send the encrypted feature to the second blockchain participating node, so that after receiving the encrypted feature, the second blockchain participating node performs a third-party public key encryption process and a second key signature process on the encrypted feature, the first blockchain participating node identifier, the second blockchain participating node identifier, the current authorization authentication identifier and the time domain identity identification number to obtain second authentication information, and send the second authentication information to the third-party blockchain node;
[0190] The second processing module is used to perform third-party public key encryption processing and first key signature processing on the first key, the first blockchain participating node identifier, the second blockchain participating node identifier and the current authorization authentication identifier to obtain first authentication information, and send the first authentication information to the third-party blockchain node, so that after receiving the first authentication information and the second authentication information, the third-party blockchain node associates the first key and the encrypted feature through the first blockchain participating node identifier, the second blockchain participating node identifier and the current authorization authentication identifier, decrypts it to obtain the first biometric feature, compares the first biometric feature with the preset feature in the preset biometric feature library, and sends the comparison result to the second blockchain participating node.
[0191] Optionally, before the first processing module encrypts the first biometric feature using the first key to obtain the encrypted feature, the apparatus further includes:
[0192] The third processing module is used to randomly generate a first key.
[0193] Optionally, before the first receiving module receives the authentication request sent by the second blockchain participating node, the apparatus further includes:
[0194] A registration module is used to register verification information in a third-party blockchain node, wherein the verification information includes a correspondence between the first user's biometric data and identity information.
[0195] Optionally, before the second processing module performs third-party public key encryption processing and first key signature processing on the first key, the first blockchain participating node identifier, the second blockchain participating node identifier and the current authorization authentication identifier, the above-mentioned device further includes:
[0196] The second receiving module is used to receive a third-party blockchain identifier and a third-party public key sent by a third-party blockchain node.
[0197] Figure 7A schematic diagram of the structure of an identity authentication device provided in an embodiment of the present application. The device may be a server, applied to a first blockchain participating node, and the components, their connections and relationships, and their functions shown herein are merely examples and do not limit the implementation of the present application described and / or required herein.
[0198] like Figure 7 As shown, the identity authentication device includes: a processor 701 and a memory 702, each of which is connected to each other using different buses and can be installed on a common motherboard or installed in other ways as needed. The processor 701 can process instructions executed in the terminal, including instructions for graphic information stored in or on the memory to be displayed on an external input / output device (such as a display device coupled to the interface). In other embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Figure 7 A processor 701 is taken as an example.
[0199] The memory 702 is a non-transient computer-readable storage medium that can be used to store non-transient software programs, non-transient computer executable programs and modules, such as program instructions / modules corresponding to the method of the identity authentication device in the embodiment of the present application (for example, the attached Figure 6 The processor 701 executes various functional applications and data processing of the identity authentication device by running the non-transient software programs, instructions and modules stored in the memory 702, that is, the identity authentication device method in the above method embodiment is implemented.
[0200] The identity authentication device may further include: an input device 703 and an output device 704. The processor 701, the memory 702, the input device 703 and the output device 704 may be connected via a bus or other means. Figure 7 The example of connecting through bus is taken in the following.
[0201] The input device 703 can receive input digital or character information, and generate key signal input related to user settings and function control of the identity authentication device, such as a touch screen, a keypad, a mouse, or multiple mouse buttons, a trackball, a joystick and other input devices. The output device 704 can be an output device such as a display device of the identity authentication device. The display device can include, but is not limited to, a liquid crystal display (LCD), a light emitting diode (LED) display and a plasma display. In some embodiments, the display device can be a touch screen.
[0202] The identity authentication device of the embodiment of the present application can be used to execute the technical solutions in the above-mentioned method embodiments of the present application. Its implementation principles and technical effects are similar and will not be repeated here.
[0203] An embodiment of the present application also provides a computer-readable storage medium, which stores computer-executable instructions. When the computer-executable instructions are executed by a processor, they are used to implement any of the above-mentioned identity authentication methods.
[0204] An embodiment of the present application also provides a computer program product, including a computer program, which is used to implement any of the above-mentioned identity authentication methods when executed by a processor.
[0205] Figure 8 A schematic diagram of the structure of another identity authentication device provided in an embodiment of the present application, which is applied to a second blockchain participating node, such as Figure 8 As shown, the device of the embodiment of the present application includes: a fourth processing module 801, a third receiving module 802, a fifth processing module 803 and a fourth receiving module 804. The identity authentication device here can be a blockchain server, or a chip or integrated circuit that implements the function of the server. It should be noted here that the division of the fourth processing module 801, the third receiving module 802, the fifth processing module 803 and the fourth receiving module 804 is only a division of logical functions. Physically, the two can be integrated or independent.
[0206] Among them, the fourth processing module is used to initiate an authentication request to the first blockchain participating node, so that the first blockchain participating node obtains the first biometric feature of the first user according to the authentication request, encrypts the first biometric feature by using the first key to obtain the encrypted feature, sends the encrypted feature to the second blockchain participating node, and performs third-party public key encryption and first key signature processing on the first key, the first blockchain participating node identifier, the second blockchain participating node identifier and the current authorization authentication identifier to obtain the first authentication information, and sends the first authentication information to the third-party blockchain node, wherein the authentication request carries the time domain identity identification number of the session;
[0207] A third receiving module, used to receive the encryption feature sent by the first blockchain participating node;
[0208] The fifth processing module is used to perform third-party public key encryption processing and second key signature processing on the encrypted feature, the first blockchain participating node identifier, the second blockchain participating node identifier, the current authorization authentication identifier and the time domain identity identification number to obtain second authentication information, and send the second authentication information to the third-party blockchain node, so that after receiving the first authentication information and the second authentication information, the third-party blockchain node associates the first key and the encrypted feature through the first blockchain participating node identifier, the second blockchain participating node identifier and the current authorization authentication identifier, decrypts and obtains the first biometric feature, compares the first biometric feature with a preset feature in a preset biometric feature library, and sends the comparison result to the second blockchain participating node;
[0209] The fourth receiving module is used to receive the comparison result sent by the third-party blockchain node.
[0210] Optionally, after the fourth receiving module receives the comparison result sent by the third-party blockchain node, the device further includes:
[0211] The payment module is used to initiate a query fee payment application in the blockchain; obtain the query fee in the blockchain, and perform payment processing based on the query fee.
[0212] The embodiment of the present application also provides an identity authentication device, which is applied to the second blockchain participating node, and the identity authentication device can be a server. The components shown in this article, their connections and relationships, and their functions are only examples and do not limit the implementation of the present application described and / or required in this article.
[0213] The identity authentication device includes: a processor and a memory, each of which is interconnected by different buses and can be installed on a common motherboard or installed in other ways as needed. The processor can process instructions executed in the identity authentication device, including instructions for graphical information stored in or on the memory for display on an external input / output device (such as a display device coupled to the interface). In other embodiments, if necessary, multiple processors and / or multiple buses can be used with multiple memories and multiple memories.
[0214] The memory is a non-transient computer-readable storage medium that can be used to store non-transient software programs, non-transient computer executable programs and modules, such as the program instructions / modules corresponding to the method of the identity authentication device in the embodiment of the present application (for example, the attached Figure 8As shown, the fourth processing module 801, the third receiving module 802, the fifth processing module 803 and the fourth receiving module 804). The processor executes various functional applications and identity authentication methods by running non-transient software programs, instructions and modules stored in the memory, that is, the method of implementing the identity authentication device in the above method embodiment.
[0215] The identity authentication device may further include: an input device and an output device. The processor, the memory, the input device and the output device may be connected via a bus or other means.
[0216] The input device can receive input digital or character information, and generate key signal input related to user settings and function control of the identity authentication device, such as a touch screen, a keypad, a mouse, or multiple mouse buttons, a trackball, a joystick and other input devices. The output device can be an output device such as a display device of the identity authentication device. The display device can include, but is not limited to, a liquid crystal display (LCD), a light emitting diode (LED) display and a plasma display. In some embodiments, the display device can be a touch screen.
[0217] The identity authentication device of the embodiment of the present application can be used to execute the technical solutions in the above-mentioned method embodiments of the present application. Its implementation principles and technical effects are similar and will not be repeated here.
[0218] An embodiment of the present application also provides a computer-readable storage medium, which stores computer-executable instructions. When the computer-executable instructions are executed by a processor, they are used to implement any of the above-mentioned identity authentication methods.
[0219] An embodiment of the present application also provides a computer program product, including a computer program, which is used to implement any of the above-mentioned identity authentication methods when executed by a processor.
[0220] Fig. 9 A schematic diagram of the structure of another identity authentication device provided in an embodiment of the present application, which is applied to a third-party blockchain node, such as Fig. 9 As shown, the device of the embodiment of the present application includes: a fifth receiving module 901, a sixth processing module 902 and a seventh processing module 903. The identity authentication device here can be a blockchain server, or a chip or integrated circuit that implements the function of the server. It should be noted here that the division of the fifth receiving module 901, the sixth processing module 902 and the seventh processing module 903 is only a division of logical functions. Physically, the two can be integrated or independent.
[0221] Among them, the fifth receiving module is used to receive the first authentication information sent by the first blockchain participating node and the second authentication information sent by the second blockchain participating node, wherein the first authentication information is obtained by the first blockchain participating node after receiving the authentication request sent by the second blockchain participating node, and obtaining the first biometric feature of the first user according to the authentication request, and performing third-party public key encryption processing and first key signature processing on the first key, the first blockchain participating node identifier, the second blockchain participating node identifier, and the current authorization authentication identifier, and the authentication request carries the time domain identity identification number of the session, and the second authentication information is obtained by the second blockchain participating node after initiating an authentication request to the first blockchain participating node and receiving the encrypted feature sent by the first blockchain participating node, and performing third-party public key encryption processing and second key signature processing on the encrypted feature, the first blockchain participating node identifier, the second blockchain participating node identifier, the current authorization authentication identifier, and the time domain identity identification number;
[0222] A sixth processing module, configured to associate the first key with the encrypted feature through the first blockchain participating node identifier, the second blockchain participating node identifier, and the current authorization authentication identifier, and decrypt the first key to obtain the first biometric feature;
[0223] The seventh processing module is used to compare the first biometric feature with a preset feature in a preset biometric feature library, and send the comparison result to the second blockchain participating node.
[0224] Optionally, the seventh processing module is specifically used for:
[0225] Generate a session key based on the first blockchain participating node identifier, the second blockchain participating node identifier and the time domain identity identification number; and send the comparison result and the session key to the second blockchain participating node.
[0226] Optionally, before the fifth receiving module receives the first authentication information sent by the first blockchain participating node and the second authentication information sent by the second blockchain participating node, the above-mentioned device further includes:
[0227] The broadcast module is used to broadcast the third-party blockchain identifier and third-party public key.
[0228] The embodiment of the present application also provides an identity authentication device, which is applied to a third-party blockchain node, and the identity authentication device can be a server. The components shown in this article, their connections and relationships, and their functions are only examples and do not limit the implementation of the present application described and / or required in this article.
[0229] The identity authentication device includes: a processor and a memory, each of which is interconnected by different buses and can be installed on a common motherboard or installed in other ways as needed. The processor can process instructions executed in the identity authentication device, including instructions for graphical information stored in or on the memory for display on an external input / output device (such as a display device coupled to the interface). In other embodiments, if necessary, multiple processors and / or multiple buses can be used with multiple memories and multiple memories.
[0230] The memory is a non-transient computer-readable storage medium that can be used to store non-transient software programs, non-transient computer executable programs and modules, such as the program instructions / modules corresponding to the method of the identity authentication device in the embodiment of the present application (for example, the attached Fig. 9 As shown, the fifth receiving module 901, the sixth processing module 902 and the seventh processing module 903). The processor executes various functional applications and identity authentication methods by running non-transient software programs, instructions and modules stored in the memory, that is, the method of implementing the identity authentication device in the above method embodiment.
[0231] The identity authentication device may further include: an input device and an output device. The processor, the memory, the input device and the output device may be connected via a bus or other means.
[0232] The input device can receive input digital or character information, and generate key signal input related to user settings and function control of the identity authentication device, such as a touch screen, a keypad, a mouse, or multiple mouse buttons, a trackball, a joystick and other input devices. The output device can be an output device such as a display device of the identity authentication device. The display device can include, but is not limited to, a liquid crystal display (LCD), a light emitting diode (LED) display and a plasma display. In some embodiments, the display device can be a touch screen.
[0233] The identity authentication device of the embodiment of the present application can be used to execute the technical solutions in the above-mentioned method embodiments of the present application. Its implementation principles and technical effects are similar and will not be repeated here.
[0234] An embodiment of the present application also provides a computer-readable storage medium, which stores computer-executable instructions. When the computer-executable instructions are executed by a processor, they are used to implement any of the above-mentioned identity authentication methods.
[0235] An embodiment of the present application also provides a computer program product, including a computer program, which is used to implement any of the above-mentioned identity authentication methods when executed by a processor.
[0236] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0237] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0238] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the application disclosed herein. This application is intended to cover any variations, uses or adaptations of the present disclosure, which follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.
[0239] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. An identity authentication method, characterized in that: Applied to the first blockchain participating nodes, including: Receiving an authentication request sent by a second blockchain participating node, wherein the authentication request carries a time domain identity identification number of the session; Acquire a first biometric feature of the first user according to the authentication request; Encrypting the first biometric feature using a first key to obtain an encrypted feature; The encrypted feature is sent to the second blockchain participating node, so that after receiving the encrypted feature, the second blockchain participating node performs third-party public key encryption processing and second key signature processing on the encrypted feature, the first blockchain participating node identifier, the second blockchain participating node identifier, the current authorization authentication identifier and the time domain identity identification number to obtain second authentication information, and sends the second authentication information to the third-party blockchain node; the third-party public key is sent by the third-party blockchain node; the third-party blockchain node is an authoritative and trusted third party; The first key, the first blockchain participating node identifier, the second blockchain participating node identifier and the current authorization authentication identifier are encrypted with a third-party public key and signed with a first key to obtain first authentication information, and the first authentication information is sent to a third-party blockchain node, so that after receiving the first authentication information and the second authentication information, the third-party blockchain node associates the first key with the encrypted feature through the first blockchain participating node identifier, the second blockchain participating node identifier and the current authorization authentication identifier, and decrypts to obtain the first biometric feature, compares the first biometric feature with a preset feature in a preset biometric feature library, and sends the comparison result and a session key to the second blockchain participating node; the session key is generated based on the first blockchain participating node identifier, the second blockchain participating node identifier and the time domain identity identification number.
2. The method according to claim 1, characterized in that Before encrypting the first biometric feature by using the first key to obtain the encrypted feature, the method further includes: A first key is randomly generated.
3. The method according to claim 1 or 2, characterized in that: Before receiving the authentication request sent by the second blockchain participating node, the method further includes: Verification information is registered at a third-party blockchain node, wherein the verification information includes a correspondence between the biometric data and the identity information of the first user.
4. The method according to claim 3, characterized in that: Before the third-party public key encryption processing and the first key signature processing are performed on the first key, the first blockchain participating node identifier, the second blockchain participating node identifier and the current authorization authentication identifier, the process further includes: Receive the third-party blockchain identifier and third-party public key sent by the third-party blockchain node.
5. An identity authentication method, characterized in that: Applied to the second blockchain participating nodes, including: Initiate an authentication request to the first blockchain participating node, so that the first blockchain participating node obtains the first biometric feature of the first user according to the authentication request, encrypts the first biometric feature by using the first key to obtain the encrypted feature, sends the encrypted feature to the second blockchain participating node, and performs third-party public key encryption and first key signature processing on the first key, the first blockchain participating node identifier, the second blockchain participating node identifier, and the current authorization authentication identifier to obtain first authentication information, and sends the first authentication information to the third-party blockchain node, wherein the authentication request carries the time domain identity identification number of the session; the third-party public key is sent by the third-party blockchain node; Receiving the encrypted feature sent by the first blockchain participating node; The encrypted feature, the first blockchain participating node identifier, the second blockchain participating node identifier, the current authorization authentication identifier, and the time domain identity identification number are subjected to third-party public key encryption processing and second key signature processing to obtain second authentication information, and the second authentication information is sent to a third-party blockchain node, so that after receiving the first authentication information and the second authentication information, the third-party blockchain node associates the first key with the encrypted feature through the first blockchain participating node identifier, the second blockchain participating node identifier, and the current authorization authentication identifier, and decrypts to obtain the first biometric feature, compares the first biometric feature with a preset feature in a preset biometric feature library, and sends the comparison result and a session key to the second blockchain participating node; the session key is generated according to the first blockchain participating node identifier, the second blockchain participating node identifier, and the time domain identity identification number; Receive the comparison result sent by the third-party blockchain node.
6. The method according to claim 5, characterized in that After receiving the comparison result sent by the third-party blockchain node, the method further includes: Initiate a query fee payment request in the blockchain; Obtain query fees in the blockchain and perform payment processing based on the query fees.
7. An identity authentication method, characterized in that: Applied to third-party blockchain nodes, including: Broadcast the third-party blockchain identity and third-party public key; Receive first authentication information sent by a first blockchain participating node and second authentication information sent by a second blockchain participating node, wherein the first authentication information is obtained by the first blockchain participating node, after receiving an authentication request sent by the second blockchain participating node, obtaining the first biometric feature of the first user according to the authentication request, and performing third-party public key encryption processing and first key signature processing on the first key, the first blockchain participating node identifier, the second blockchain participating node identifier, and the current authorization authentication identifier, the authentication request carries the time domain identity identification number of the session, and the second authentication information is obtained by the second blockchain participating node, after initiating an authentication request to the first blockchain participating node and receiving the encrypted feature sent by the first blockchain participating node, performing third-party public key encryption processing and second key signature processing on the encrypted feature, the first blockchain participating node identifier, the second blockchain participating node identifier, the current authorization authentication identifier, and the time domain identity identification number; By using the first blockchain participating node identifier, the second blockchain participating node identifier and the current authorization authentication identifier, the first key and the encrypted feature are associated, and the first biometric feature is decrypted; Compare the first biometric feature with a preset feature in a preset biometric feature library, and send the comparison result to the second blockchain participating node; The sending the comparison result to the second blockchain participating node includes: Generate a session key according to the first blockchain participating node identifier, the second blockchain participating node identifier and the time domain identity identification number; The comparison result and the session key are sent to the second blockchain participating node.
8. An identity authentication system, characterized in that: Including the first blockchain participating node, the second blockchain participating node and the third-party blockchain node; The second blockchain participating node is used to initiate an authentication request to the first blockchain participating node, wherein the authentication request carries a time domain identity identification number of the session; The third-party blockchain node is used to broadcast the third-party blockchain identifier and the third-party public key; The first blockchain participating node is used to obtain a first biometric feature of the first user according to the authentication request after receiving the authentication request sent by the second blockchain participating node; The first blockchain participating node is used to encrypt the first biometric feature using a first key to obtain an encrypted feature; The first blockchain participating node is used to send the encryption feature to the second blockchain participating node, receive the third-party blockchain identifier and the third-party public key sent by the third-party blockchain node, and perform third-party public key encryption processing and first key signature processing on the first key, the first blockchain participating node identifier, the second blockchain participating node identifier and the current authorization authentication identifier to obtain first authentication information, and send the first authentication information to the third-party blockchain node; The second blockchain participating node is used to perform third-party public key encryption processing and second key signature processing on the encryption feature, the first blockchain participating node identifier, the second blockchain participating node identifier, the current authorization authentication identifier and the time domain identity identification number after receiving the encryption feature, to obtain second authentication information, and send the second authentication information to the third-party blockchain node; The third-party blockchain node is used to associate the first key with the encrypted feature through the first blockchain participating node identifier, the second blockchain participating node identifier and the current authorization authentication identifier after receiving the first authentication information sent by the first blockchain participating node and the second authentication information sent by the second blockchain participating node, and decrypt to obtain the first biometric feature; The third-party blockchain node is used to compare the first biometric feature with a preset feature in a preset biometric feature library, and send the comparison result to the second blockchain participating node; When the third-party blockchain node sends the comparison result to the second blockchain participating node, it is specifically used to generate a session key according to the first blockchain participating node identifier, the second blockchain participating node identifier and the time domain identity identification number; and send the comparison result and the session key to the second blockchain participating node.
9. An identity authentication device, characterized in that: include: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute any one of claims 1 to 4, any one of claims 5 or 6, or the method of claim 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement any one of claims 1 to 4, to execute any one of claims 5 or 6, or to execute the identity authentication method as claimed in claim 7.
11. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, it implements any one of claims 1 to 4, performs any one of claims 5 or 6, or performs the method according to claim 7.
