Blockchain-based identity authentication method, client, and server

Through the blockchain-based identity verification method, the VC certificate list is used to interact between the DID client and the application server, which solves the identity island, privacy leakage and authoritative problems in the identity management authority system, and realizes the privacy of identity verification. and authority.

CN113204752BActive Publication Date: 2024-09-20JINGDONG TECH HLDG CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110610855.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-06-01
Publication Date
2024-09-20
Estimated Expiration
2041-06-01

AI Technical Summary

Technical Problem

The existing identity management authority system has problems with identity islands, privacy leaks, autonomy and authority. Especially in terms of B-side data, it cannot effectively verify identity and ensure privacy.

Method used

A blockchain-based authentication method is used to interact between the DID client and the application server through the VC certificate list to determine whether the user meets the preset relationship to obtain permissions and ensure the privacy and authority of the identity data.

Benefits of technology

It achieves convenient and authoritative identity verification while maintaining the privacy of identity data, solving the problems of identity islands, privacy leaks and authority, and improving the efficiency of cross-domain authentication and the authority of identity management.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113204752B
    Figure CN113204752B
Patent Text Reader

Abstract

The present invention provides an identity authentication method, a client, and a server based on blockchain, the method comprising: in response to a user's login operation on a target application server, sending an access request to the target application server; receiving a required VC certificate list sent by the target application server, and determining whether the required VC certificate list and a local VC certificate list satisfy a preset relationship; if the required VC certificate list and the local VC certificate list satisfy the preset relationship, providing the local VC certificate list to the target application server to obtain the use authority of the target application server; wherein the required VC certificate list includes a form of currently required VC certificates, the local VC certificate list includes a form of VC certificates held locally by the user of the DID client, and different VC certificates are used to describe different characteristic attributes of the user, so that the privacy of the identity data is maintained while the identity is verified conveniently and authoritatively.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to an identity authentication method based on blockchain, a client, and a server. Background Art

[0002] Traditional identity management permission systems are mostly implemented using single sign-on, which collects most of the user's private information such as name, ID number, phone number, email address, etc., which may cause privacy leakage. However, DID (Distributed Identifiers) distributed identity management does not need to collect much user privacy information to achieve authorization management.

[0003] The identity management authority system in the existing technology has its defects: Identity island problem: ① Identity information is only stored in the corresponding competent authority, and the connection between them is weak. ② User identity data in different identity systems is stored separately by each system, and cross-domain authentication efficiency is low. Identity privacy and autonomy issues: ① Identity service means providing identity information to third parties, and current technical means cannot guarantee that the provided information will not be leaked. ② Data holders cannot truly control their own data. Identity information authority problem: Accurate data is held by various competent authorities. Especially in terms of B-side data, there is no case of open systems directly connected to government systems. Therefore, most of the enterprise identity verification service data on the market are lagging and cannot guarantee authority.

[0004] Therefore, how to provide an identity authentication scheme that can maintain the privacy of identity data while conveniently and authoritatively verifying the identity is a technical problem that needs to be urgently solved by technical personnel in this field. Summary of the invention

[0005] The present invention provides a blockchain-based identity authentication method, a client, and a server, which can maintain the privacy of identity data while conveniently and authoritatively verifying the identity.

[0006] In a first aspect, the present invention provides a blockchain-based identity authentication method, which is applied to a DID client, and the method comprises:

[0007] In response to a user's login operation on a target application server, sending an access request to the target application server;

[0008] Receive a required VC certificate (Verifiable Claim) list sent by the target application server, and determine whether the required VC certificate list and the local VC certificate list satisfy a preset relationship;

[0009] In the case where the required VC certificate list and the local VC certificate list satisfy a preset relationship, providing the local VC certificate list to the target application server to obtain the use authority of the target application server;

[0010] The required VC certificate list includes a form of currently required VC certificates, and the local VC certificate list includes a form of VC certificates held locally by the user of the DID client. Different VC certificates are used to describe different characteristic attributes of the user.

[0011] Furthermore, it also includes:

[0012] In the case that the required VC certificate list and the local VC certificate list do not satisfy a preset relationship, determining a target required certificate based on the required VC certificate list and the local VC certificate list;

[0013] A certificate issuance request including the target required certificate is sent to a target issuing server to obtain the target required certificate.

[0014] Further, in response to a user's login operation on the target application server, sending an access request to the target application server includes:

[0015] Receive a login input from a user on the DID client, the login input including: an account number and a password;

[0016] In response to the login input, obtaining a list of local VC certificates associated with the user from a blockchain network;

[0017] Receive a user's login operation to a target application server;

[0018] In response to the login operation, an access request is sent to the target application server.

[0019] Furthermore, the VC certificate includes: a native place certificate, a gender certificate, an age range certificate, an identity validity certificate, an issuing authority certificate, and a preset age value certificate.

[0020] Further, the determining whether the required VC certificate list and the local VC certificate list satisfy a preset relationship includes:

[0021] Determine a target VC certificate that exists in both the required VC certificate list and the local VC certificate list;

[0022] Obtaining a weight value corresponding to the target VC certificate, and weighting the target VC certificate to obtain a weighted value;

[0023] When the weighted value is not less than a preset threshold, it is determined that the required VC certificate list and the local VC certificate list satisfy a preset relationship.

[0024] In a second aspect, the present invention provides a blockchain-based identity authentication method, which is applied to an application server, and the method comprises:

[0025] Receive access requests sent by DID clients;

[0026] Determine a required VC certificate list corresponding to the access request;

[0027] Sending the required VC certificate list to the DID client so that the DID client determines whether the required VC certificate list and the local VC certificate list satisfy a preset relationship;

[0028] Receiving the local VC certificate list sent by the DID client, and providing the DID client with usage rights if the required VC certificate list and the local VC certificate list satisfy a preset relationship;

[0029] The required VC certificate list includes a form of currently required VC certificates, and the local VC certificate list includes a form of VC certificates held locally by the user of the DID client. Different VC certificates are used to describe different characteristic attributes of the user.

[0030] Furthermore, it also includes:

[0031] Receive user management input for the application server;

[0032] In response to the management input, an application party account on the application server is added, modified or queried.

[0033] In a third aspect, the present invention provides a blockchain-based identity authentication method, which is applied to a certification server, and the method comprises:

[0034] Receive a certificate issuance request sent by a DID client, wherein the certificate issuance request includes a target required certificate and application conditions;

[0035] In response to the certificate issuance request, review the target demand certificate and application conditions;

[0036] If the review is passed, a target requirement certificate is generated and sent to the DID client.

[0037] Furthermore, it also includes:

[0038] Receive data viewing input from the user;

[0039] In response to the data viewing input, at least one of the following data is displayed: total number of users, total number of certificates, total number of application servers, total number of issuing servers, total number of historical authorizations, number of certificate applications, historical transactions, block height, total running time, normal or total number of nodes, total number of transactions, space occupancy, and historical peak value.

[0040] Furthermore, it also includes:

[0041] Receive user management input to the issuing server;

[0042] In response to the management input, an operation of adding, modifying or querying the issuing party account of the issuing server is performed.

[0043] Furthermore, it also includes:

[0044] Receive user input for VC certificate management;

[0045] In response to the management input, the VC certificate is added, modified or queried.

[0046] In a fourth aspect, the present invention provides a DID client, comprising:

[0047] An access request module, configured to send an access request to a target application server in response to a user's login operation on the target application server;

[0048] A relationship determination module, configured to receive the required VC certificate list sent by the target application server, and determine whether the required VC certificate list and the local VC certificate list satisfy a preset relationship;

[0049] a permission obtaining module, configured to provide the local VC certificate list to the target application server to obtain the use permission of the target application server when the required VC certificate list and the local VC certificate list satisfy a preset relationship;

[0050] The required VC certificate list includes a form of currently required VC certificates, and the local VC certificate list includes a form of VC certificates held locally by the user of the DID client. Different VC certificates are used to describe different characteristic attributes of the user.

[0051] In a fifth aspect, the present invention provides an application server, comprising:

[0052] An access receiving module, used to receive access requests sent by a DID client;

[0053] A certificate determination module, used to determine a required VC certificate list corresponding to the access request;

[0054] A list sending module, used to send the required VC certificate list to the DID client, so that the DID client determines whether the required VC certificate list and the local VC certificate list meet a preset relationship;

[0055] A list receiving module, configured to receive a local VC certificate list sent by the DID client, and provide the DID client with usage rights when the required VC certificate list and the local VC certificate list meet a preset relationship;

[0056] The required VC certificate list includes a form of currently required VC certificates, and the local VC certificate list includes a form of VC certificates held locally by the user of the DID client. Different VC certificates are used to describe different characteristic attributes of the user.

[0057] In a sixth aspect, the present invention provides a certificate issuing server, comprising:

[0058] The certificate request module is used to receive the certificate request sent by the DID client, wherein the certificate request includes the target required certificate and the application conditions;

[0059] A condition review module, used to review the target requirement certificate and application conditions in response to the certificate issuance request;

[0060] The generation and sending module is used to generate and send the target requirement certificate to the DID client when the review is passed.

[0061] In a seventh aspect, the present invention also provides an electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps of the blockchain-based identity authentication method as described above are implemented.

[0062] In an eighth aspect, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of any of the blockchain-based identity authentication methods described above.

[0063] The present invention provides an identity authentication method, a client, and a server based on blockchain. When a user uses a target application server, a VC certificate list is used to determine whether the user can obtain permission. When the required VC certificate list and the local VC certificate list satisfy a preset relationship, the user's permission to use the target application server is obtained, so that the VC certificate can be used for identity authentication, and the privacy of identity data can be maintained while conveniently and authoritatively verifying the identity. BRIEF DESCRIPTION OF THE DRAWINGS

[0064] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0065] Figure 1 One of the flowcharts of a blockchain-based identity authentication method provided by an embodiment of the present invention;

[0066] Figure 2 A second flowchart of a blockchain-based identity authentication method provided in an embodiment of the present invention;

[0067] Figure 3 A flowchart of a blockchain-based identity authentication method provided in accordance with an embodiment of the present invention;

[0068] Figure 4 A three-party interaction diagram of a blockchain-based identity authentication method provided by an embodiment of the present invention;

[0069] Figure 5 A hardware implementation diagram of a blockchain-based identity authentication method provided by an embodiment of the present invention;

[0070] Figure 6 A schematic diagram of an interface of a data dashboard of a blockchain-based identity authentication method provided in an embodiment of the present invention;

[0071] Figure 7 A schematic diagram of the account management process of the issuing party of the blockchain-based identity authentication method provided in an embodiment of the present invention;

[0072] Figure 8 A schematic diagram of an application account management process of a blockchain-based identity authentication method provided in an embodiment of the present invention;

[0073] Fig. 9 One of the interface schematic diagrams of the certificate management of the issuing party of the blockchain-based identity authentication method provided in the embodiment of the present invention;

[0074] Fig.10 A second schematic diagram of an interface for managing the issuing party's certificate of the blockchain-based identity authentication method provided in an embodiment of the present invention;

[0075] Fig.11 A schematic diagram of an interface for application scenario management of a blockchain-based identity authentication method provided in an embodiment of the present invention;

[0076] Fig.12A schematic diagram of the composition of a VC certificate for a blockchain-based identity authentication method provided in an embodiment of the present invention;

[0077] Fig.13 A schematic diagram of the composition of a DID client provided in an embodiment of the present invention;

[0078] Fig.14 A schematic diagram of the composition of an application server provided in an embodiment of the present invention;

[0079] Fig.15 A schematic diagram of the composition of a certificate issuing server is provided for an embodiment of the present invention;

[0080] Fig.16 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0081] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0082] Combine the following Figure 1-Figure 3 Describe a blockchain-based identity authentication method of the present invention

[0083] Figure 1 One of the flowcharts of a blockchain-based identity authentication method provided by an embodiment of the present invention; Figure 2 A second flowchart of a blockchain-based identity authentication method provided in an embodiment of the present invention; Figure 3 A third flow chart of a blockchain-based identity authentication method provided in an embodiment of the present invention.

[0084] In a specific implementation of the present invention, an embodiment of the present invention provides a blockchain-based identity authentication method, which is applied to a DID client, and the method includes:

[0085] Step 110: In response to a user's login operation on a target application server, an access request is sent to the target application server.

[0086] In an embodiment of the present invention, when a user needs to access services from a target application server, the user may first enter his or her password and account number in the DID client. Of course, other information that can prove the user's identity may also be used, such as fingerprints, irises, and other biometric information. The DID client receives the user's login input in the DID client, and the login input includes: account number and password; in response to the login input, obtains a list of local VC certificates associated with the user from the blockchain network; receives the user's login operation to the target application server; and in response to the login operation, sends an access request to the target application server.

[0087] Step 120: Receive the required verifiable declaration VC certificate list sent by the target application server, and determine whether the required VC certificate list and the local VC certificate list meet a preset relationship.

[0088] In one embodiment, a weighted approach may be used to determine whether the required VC certificate list and the local VC certificate list satisfy a preset relationship. Specifically, a target VC certificate that exists in both the required VC certificate list and the local VC certificate list may be first determined; a weight value corresponding to the target VC certificate is obtained, and the target VC certificate is weighted to obtain a weighted value; and when the weighted value is not less than a preset threshold, it is determined that the required VC certificate list and the local VC certificate list satisfy the preset relationship.

[0089] For example, in practice, both the application scenario and the certificate under the scenario can be set with weights. As long as the sum of the weights of the certificates required by the application party owned by the user is greater than or equal to the weight of the application scenario, the authentication conditions of the application scenario can be met. For example, the weight of an application scenario is 3, and the weight of the certificate A it requires is 2, the weight of certificate B is 2, the weight of certificate C is 1, and the weight of certificate D is 1. A user only has three certificates, B, C, and D. After scanning the code with DID, as long as B+C or B+C+D is authorized, the authentication conditions of the application scenario can be met.

[0090] In step 130, when the required VC certificate list and the local VC certificate list satisfy a preset relationship, the local VC certificate list is provided to the target application server to obtain the use permission of the target application server; wherein the required VC certificate list includes a form of the currently required VC certificates, and the local VC certificate list includes a form of the VC certificates held locally by the user of the DID client, and different VC certificates are used to describe different characteristic attributes of the user.

[0091] Of course, in practice, there may be a situation where the required VC certificate list and the local VC certificate list do not satisfy the preset relationship. At this time, the DID client can determine the target required certificate based on the required VC certificate list and the local VC certificate list, that is, determine the target VC certificate currently missing from the DID client; and send a certification request including the target required certificate to the target certification server to obtain the target required certificate.

[0092] In another embodiment of the present invention, the embodiment of the present invention provides a blockchain-based identity authentication method, which is applied to an application server, and the method includes:

[0093] Step 210: Receive an access request sent by a DID client;

[0094] When the DID client needs a service from the application server, when it needs the service of the target application server, the user can first enter his or her password and account in the DID client, of course, it can also be other content that can prove the user's identity, such as fingerprint, iris and other biometric information. The DID client receives the user's login input in the DID client, and the login input includes: account number and password; in response to the login input, obtains the local VC certificate list associated with the user from the blockchain network; receives the user's login operation to the target application server; in response to the login operation, sends an access request to the target application server, and the application server receives the access request.

[0095] Step 220: Determine a required VC certificate list corresponding to the access request;

[0096] Since the application server can provide a large number of different types of services, and the VC certificates required for different services are not the same, the application server can pre-set a corresponding table of VC certificates required for different types of services, and the required VC certificate list corresponding to the access request can be determined by querying the corresponding table.

[0097] Step 230: Send the required VC certificate list to the DID client so that the DID client determines whether the required VC certificate list and the local VC certificate list satisfy a preset relationship;

[0098] The application server sends the required VC certificate list to the DID client, and the DID client itself can determine whether it meets the conditions. For example, if each VC certificate in the required VC certificate list is in the local VC certificate list, it means that the user of the DID client has the authority to use the server of the application server. At this time, the DID client can send the required VC certificate to the application server for verification.

[0099] Step 240: Receive the local VC certificate list sent by the DID client, and provide the DID client with usage rights when the required VC certificate list and the local VC certificate list satisfy a preset relationship; wherein the required VC certificate list includes a form of currently required VC certificates, and the local VC certificate list includes a form of VC certificates held locally by the user of the DID client, and different VC certificates are used to describe different characteristic attributes of the user.

[0100] When receiving the local VC certificate list sent by the DID client, the application server provides the DID client with usage rights if the required VC certificate list and the local VC certificate list satisfy a preset relationship. If the required VC certificate list and the local VC certificate list do not satisfy the preset relationship, the DID client is prohibited from accessing the target service of the application server.

[0101] In a specific embodiment of the present invention, in order to implement the management of the application party account on the application server, the user's management input to the application server can also be received; in response to the management input, the application party account on the application server is added, modified or queried. For example, the application party account management page displays the application party's number, organization name, public key, and creation date, sorted by creation date, and each page displays ten records. Application party accounts can be added, modified, and queried. Among them, the public key is used to uniquely identify each application party and cannot be repeated. The organization name can be modified, and the certificate required by the application party is displayed on the modification page, and the certificate cannot be edited. After the new application party account is successfully created, a chain account and the corresponding public and private key pair will be generated.

[0102] In another specific embodiment of the present invention, an embodiment of the present invention provides a blockchain-based identity authentication method, which is applied to a certification server, and the method includes:

[0103] Step 310: Receive a certificate issuance request sent by a DID client, wherein the certificate issuance request includes a target required certificate and application conditions;

[0104] Step 320: In response to the certificate issuance request, review the target demand certificate and application conditions;

[0105] Step 330: If the review is passed, generate and send the target requirement certificate to the DID client.

[0106] If the DID client has a situation where the required VC certificate list and the local VC certificate list do not meet the preset relationship, the DID client can determine the target required certificate based on the required VC certificate list and the local VC certificate list, that is, determine the target required VC certificate that the DID client currently lacks; and send a certificate issuance request including the target required certificate to the target issuing server to obtain the target required certificate. At this time, the DID client sends a certificate issuance request to the issuing server and sends the required application conditions together, so that the issuing server can review and issue the certificate.

[0107] In one embodiment of the present invention, in order to facilitate data viewing, a data dashboard can also be set up. The first part of the data dashboard includes the total number of registered users, the total number of certificates (referring to the sum of the number of certificates provided by the issuing party in the system), the total number of application parties, the total number of issuing parties, the total number of historical authorizations, and the number of certificate applications. The second part of the data dashboard includes historical transactions, block height, total running time, normal / total number of nodes, total number of transactions, space occupancy, and historical peak TPS. Specifically, when the user is in use, the user's data viewing input can be received; in response to the data viewing input, at least one of the following data is displayed: the total number of users, the total number of certificates, the total number of application servers, the total number of issuing servers, the total number of historical authorizations, the number of certificate applications, historical transactions, block height, total running time, normal or total number of nodes, total number of transactions, space occupancy, and historical peak.

[0108] In one embodiment of the present invention, in order to facilitate the management of the issuer's account, an issuer account management page can also be set up. The issuer account management page displays the issuer's number, organization ID, organization name, public key, and creation date, and displays them from recent to distant according to the creation date. Each page displays ten records. Issuer accounts can be added, modified, and queried. Among them, the organization ID is used to uniquely identify each issuer and cannot be repeated. The organization name can be modified. After the new issuer account is successfully created, a chain account and a corresponding public-private key pair will be generated. Specifically, the user's management input to the issuing server can be received; in response to the management input, the issuer account of the issuing server is added, modified, or queried.

[0109] In another embodiment of the present invention, the issued VC certificates may be managed, such as modified, added, etc. Specifically, the management input of the VC certificate from the user may be received; in response to the management input, the VC certificate may be added, modified or queried.

[0110] Please refer to Figure 4 , Figure 4 A three-party interaction diagram of a blockchain-based identity authentication method provided in an embodiment of the present invention.

[0111] Specifically, the holder is the user, who operates on the DID client, the user is the application server, and the issuer is the issuing server. The specific interaction steps are as follows:

[0112] 1. The user requests permission to access the system from the user;

[0113] 2. The user provides the list of VC certificates required for the application service;

[0114] 3. The identity holder checks his own VC list. If the conditions are met, go directly to step 7; if the conditions are not met, go to step 4;

[0115] 4. Select the issuer, provide relevant information, and apply for more VC. The issuer may charge a fee for this process;

[0116] 5. The issuer determines whether to provide relevant VC certificates based on the information provided by the holder;

[0117] 6. Issue the VC certificate to the holder, and add the DID signature of the issuer before sending;

[0118] 7. The identity holder provides the relevant VC list to the user;

[0119] 8. Verify the signature of the VC list and allow the identity holder to enter the system or provide services to him / her if it meets the requirements.

[0120] Note: VC stands for the holder's identity certificate. A holder can hold multiple VCs. Each VC represents a different meaning, and multiple VCs can only describe the holder's characteristics, but cannot determine the holder's true identity.

[0121] Please refer to Figure 5 , Figure 5 A hardware implementation diagram of the blockchain-based identity authentication method provided in an embodiment of the present invention.

[0122] The hardware system of the blockchain-based identity authentication method is divided into three main layers: the basic layer, the service layer, and the application layer. After the function expansion, the identity chain will not only help BaaS networking, but can also provide a series of functions and services to the outside world as an independent system. The three layers have their own responsibilities, and the main functions of each layer are as follows:

[0123] For the basic layer, the basic layer is responsible for the basic resources of the entire identity chain platform, including the links to various cloud resources. Since the identity chain may be deployed anywhere, it needs to have multi-cloud deployment capabilities, consistent with the BaaS platform. Currently, the identity chain uses Fabric at the bottom layer, and in the future it will consider switching to JD Chain or forming a cross-chain with JD Chain. At the same time, there will be some basic functions of identity and certificates in the basic layer, including the addition, query and modification of identities, and the issuance, query and update of certificates.

[0124] For the service layer, the service layer mainly provides various service components of the identity chain system, including verification services, interface services, and identity chain middle platform. The verification service mainly provides identity verification, certificate display, and login functions to facilitate the connection and use of external systems. The interface service mainly connects to the existing external identity authentication data so that it can quickly enter the identity chain environment. The identity chain middle platform is used to configure various functions of the application layer, including the configuration of the identity authentication page and data fields.

[0125] For the application layer, the application layer directly provides services to users. In addition to basic identity authentication, ID display, and unified login, the identity chain itself can be connected to different government applications to provide identity connection services for scenarios such as e-government, compliance audits, and emergency supplies. At the same time, the identity chain provides a login page to provide users with the company's credit report, and after adding the hardware identity management function, the identity of the IOT device can also be verified through this page.

[0126] Please refer to Figure 6 , Figure 6 A schematic diagram of the interface of a data dashboard of a blockchain-based identity authentication method provided in an embodiment of the present invention.

[0127] The blockchain-based identity authentication method specifically includes three modules: data monitoring dashboard, account management, and certificate management. Among them, account management includes account management of the issuer and the application party; certificate management also includes the certificates of the issuer and the application party.

[0128] The first part of the data dashboard includes the total number of registered users, the total number of certificates (the sum of the number of certificates provided by the issuers in the system), the total number of applicants, the total number of issuers, the total number of historical authorizations, and the number of certificate applications. The second part includes historical transactions, block height, total running time, normal / total number of nodes, total number of transactions, space usage, and historical peak TPS.

[0129] Please refer to Figure 7 , Figure 7 A schematic diagram of the issuer account management process of the blockchain-based identity authentication method provided in an embodiment of the present invention.

[0130] In an embodiment of the present invention, the issuer account management page displays the issuer's number, organization ID, organization name, public key, and creation date, and displays them from recent to ancient creation dates, with ten records displayed on each page. Issuer accounts can be added, modified, and queried. Among them, the organization ID is used to uniquely identify each issuer and cannot be repeated. The organization name can be modified. After the new issuer account is successfully created, a chain account and the corresponding public and private key pair will be generated.

[0131] Please refer to Figure 8 , Figure 8 A schematic diagram of the application account management process of the blockchain-based identity authentication method provided in an embodiment of the present invention.

[0132] In an embodiment of the present invention, the application party account management page displays the application party's number, organization name, public key, and creation date, sorted by creation date, and ten records are displayed on each page. Application party accounts can be added, modified, and queried. Among them, the public key is used to uniquely identify each application party and cannot be repeated. The organization name can be modified, and the certificate required by the application party is displayed on the modification page, and the certificate cannot be edited. After the new application party account is successfully created, a chain account and the corresponding public and private key pair will be generated.

[0133] Please refer to Fig. 9 , Fig. 9 One of the interface schematic diagrams of the certificate management of the issuing party of the blockchain-based identity authentication method provided in the embodiment of the present invention; Fig.10 The second interface diagram of the issuing party certificate management of the blockchain-based identity authentication method provided in an embodiment of the present invention.

[0134] In the embodiment of the present invention, the certificate management page of the issuing party displays the number, issuing party, certificate name, creation date and validity period of the issuing party's certificate. It displays from recent to ancient creation date, and each page displays ten records. It can be added, modified and queried.

[0135] Specifically, when you click "Add a new issuing party certificate", you need to specify the issuing party, certificate name, certificate ID and validity period, and upload a picture that will be displayed as the certificate avatar in the mini program. The optional items are "Description" and "Whether to hide" (default is no). Among them, the certificate ID is the unique identifier of the certificate and cannot be repeated. The "Whether to hide" field determines that the certificate is only visible to the specified user. If you select "Yes" to hide, you must specify the DID of the visible user. After filling in the form and clicking Confirm, you need to confirm again through a pop-up window to remind the user to check whether the information is filled in correctly. Click "Certificate Name" to view the certificate details. The fields on the <Details> page are the same as those on the <Add a new issuing party certificate> page. Click "Modify" to modify the relevant information of the certificate. The issuing party name and certificate ID cannot be modified.

[0136] Please refer to Fig.11 , Fig.11 A schematic diagram of an interface for application scenario management of a blockchain-based identity authentication method provided in an embodiment of the present invention.

[0137] In the embodiment of the present invention, the application certificate is managed according to the application scenario. The page displays the application scenario number, the number of certificates involved, the creation date and the validity period. It is displayed from recent to ancient creation date, and each page displays ten records. It can be added, modified and queried.

[0138] When you click "Create Application Scenario", you need to specify the application scenario name and validity period, and then you can select the required certificate from the certificates provided by the issuer in the system. After filling in the form and clicking Confirm, you will need to confirm again through a pop-up window to remind the user to check whether the information is correct.

[0139] In addition, the weight of the VC certificate can be set. The specific weight setting logic is as follows: "Weight" is optional. If not specified, the default is 1. Each application scenario and the certificate under that scenario have a weight. As long as the sum of the weights of the certificates required by the application party owned by the user is greater than or equal to the weight of the application scenario, the authentication conditions of the application scenario can be met. For example, the weight of an application scenario is 3, and the weight of the certificate A it requires is 2, the weight of certificate B is 2, the weight of certificate C is 1, and the weight of certificate D is 1. A user only has three certificates, B, C, and D. After he scans the code with DID, he only needs to authorize B+C or B+C+D to meet the authentication conditions of the application scenario. In addition, the expiration date of the application scenario cannot be later than the expiration date of the certificate it requires.

[0140] Please refer to Fig.12 , Fig.12 A schematic diagram of the composition of a VC certificate for a blockchain-based identity authentication method provided in an embodiment of the present invention.

[0141] In one embodiment, the VC certificate includes: a place of origin certificate, a gender certificate, an age range certificate, an identity validity certificate, an issuing authority certificate, and a preset age certificate. Of course, other VC certificates that can prove the user's characteristic attributes may also be included.

[0142] The blockchain-based identity authentication method provided by the embodiment of the present invention ensures the independence of the on-chain identities of the participants; cross-chain identity authorization management, the issuer, the application party, and the holder mutually recognize each other to form an identity management closed loop; the on-chain identity information cannot be tampered with, and the audit node can perform on-chain audit supervision and authorization, which has the following advantages: (1) Certificate segmentation, reducing the certificate issuance process, saving evidence collection time: users can authorize multiple certificates at the same time in a targeted manner according to scenario requirements without revealing other information; an identity can have a variety of different certificates, but the collection of these certificates cannot determine the specific person. (2) Mutual authentication between issuers improves the authority of identity authentication and management; (3) The issuer and the application party authenticate each other to form an autonomous management closed loop for the identity chain.

[0143] The present invention provides a DID client, an application server, and a certificate issuing server for description below. The DID client, application server, and certificate issuing server described below can correspond to the blockchain-based identity authentication method described above.

[0144] Please refer to Fig.13 , Fig.13 A schematic diagram of the composition of a DID client provided in an embodiment of the present invention.

[0145] In another specific implementation of the present invention, an embodiment of the present invention provides a DID client 1300, including:

[0146] The access request module 1310 is used to send an access request to the target application server in response to a user's login operation on the target application server;

[0147] The relationship determination module 1320 is used to receive the required VC certificate list sent by the target application server, and determine whether the required VC certificate list and the local VC certificate list meet a preset relationship;

[0148] The permission obtaining module 1330 is used to provide the local VC certificate list to the target application server to obtain the use permission of the target application server when the required VC certificate list and the local VC certificate list meet a preset relationship;

[0149] The required VC certificate list includes a form of currently required VC certificates, and the local VC certificate list includes a form of VC certificates held locally by the user of the DID client. Different VC certificates are used to describe different characteristic attributes of the user.

[0150] Please refer to Fig.14 , Fig.14 A schematic diagram of the composition of an application server provided in an embodiment of the present invention.

[0151] In another specific implementation manner of the present invention, the embodiment of the present invention provides an application server 1400, including:

[0152] The access receiving module 1410 is used to receive an access request sent by a DID client;

[0153] The certificate determination module 1420 is used to determine a required VC certificate list corresponding to the access request;

[0154] A list sending module 1430, configured to send the required VC certificate list to the DID client so that the DID client determines whether the required VC certificate list and the local VC certificate list satisfy a preset relationship;

[0155] The list receiving module 1440 is used to receive the local VC certificate list sent by the DID client, and provide the DID client with usage rights when the required VC certificate list and the local VC certificate list meet a preset relationship;

[0156] The required VC certificate list includes a form of currently required VC certificates, and the local VC certificate list includes a form of VC certificates held locally by the user of the DID client. Different VC certificates are used to describe different characteristic attributes of the user.

[0157] Please refer to Fig.15 , Fig.15 A schematic diagram of the composition of a certificate issuing server is provided for an embodiment of the present invention.

[0158] In another specific implementation of the present invention, the present invention provides a certificate issuing server 1500, including:

[0159] The certificate request module 1510 is used to receive a certificate request sent by a DID client, wherein the certificate request includes a target required certificate and application conditions;

[0160] The condition review module 1520 is used to review the target requirement certificate and application conditions in response to the certificate issuance request;

[0161] The generation and sending module 1530 is used to generate and send the target requirement certificate to the DID client when the review is passed.

[0162] The embodiment of the present invention provides a DID distributed identity authentication DID client, application server, and certificate issuing server based on blockchain. When a user uses a target application server, a VC certificate list is used to determine whether the user can obtain permission. When the required VC certificate list and the local VC certificate list satisfy a preset relationship, the user's permission to use the target application server is obtained, so that the VC certificate can be used for identity authentication, and the privacy of identity data can be maintained while conveniently and authoritatively verifying the identity.

[0163] Fig.16 An example of a physical structure diagram of an electronic device is shown in FIG. Fig.16 As shown, the electronic device may include: a processor 1610, a communication interface 1620, a memory 1630 and a communication bus 1640, wherein the processor 1610, the communication interface 1620 and the memory 1630 communicate with each other through the communication bus 1640. The processor 1610 may call the logic instructions in the memory 1630 to execute the blockchain-based identity authentication method, which includes:

[0164] In response to a user's login operation on a target application server, an access request is sent to the target application server; a required VC certificate list sent by the target application server is received, and it is determined whether the required VC certificate list and the local VC certificate list satisfy a preset relationship; if the required VC certificate list and the local VC certificate list satisfy the preset relationship, the local VC certificate list is provided to the target application server to obtain the use permission of the target application server; wherein the required VC certificate list includes a form of currently required VC certificates, the local VC certificate list includes a form of VC certificates held locally by the user of the DID client, and different VC certificates are used to describe different characteristic attributes of the user.

[0165] Or receiving an access request sent by a DID client; determining a required VC certificate list corresponding to the access request; sending the required VC certificate list to the DID client so that the DID client determines whether the required VC certificate list and the local VC certificate list satisfy a preset relationship; receiving a local VC certificate list sent by the DID client, and providing the DID client with usage rights if the required VC certificate list and the local VC certificate list satisfy a preset relationship; wherein the required VC certificate list includes a form of currently required VC certificates, and the local VC certificate list includes a form of VC certificates held locally by a user of the DID client, and different VC certificates are used to describe different characteristic attributes of the user.

[0166] Or receive a certificate issuance request sent by a DID client, the certificate issuance request including a target requirement certificate and application conditions; in response to the certificate issuance request, review the target requirement certificate and application conditions; if the review is passed, generate and send the target requirement certificate to the DID client.

[0167] In addition, the logic instructions in the above-mentioned memory 1630 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

[0168] On the other hand, the present invention further provides a computer program product, the computer program product comprising a computer program stored on a non-transitory computer-readable storage medium, the computer program comprising program instructions, and when the program instructions are executed by a computer, the computer can execute the blockchain-based identity authentication method provided by the above methods, the method comprising:

[0169] In response to a user's login operation on a target application server, an access request is sent to the target application server; a required VC certificate list sent by the target application server is received, and it is determined whether the required VC certificate list and the local VC certificate list satisfy a preset relationship; if the required VC certificate list and the local VC certificate list satisfy the preset relationship, the local VC certificate list is provided to the target application server to obtain the use permission of the target application server; wherein the required VC certificate list includes a form of currently required VC certificates, the local VC certificate list includes a form of VC certificates held locally by the user of the DID client, and different VC certificates are used to describe different characteristic attributes of the user.

[0170] Or receiving an access request sent by a DID client; determining a required VC certificate list corresponding to the access request; sending the required VC certificate list to the DID client so that the DID client determines whether the required VC certificate list and the local VC certificate list satisfy a preset relationship; receiving a local VC certificate list sent by the DID client, and providing the DID client with usage rights if the required VC certificate list and the local VC certificate list satisfy a preset relationship; wherein the required VC certificate list includes a form of currently required VC certificates, and the local VC certificate list includes a form of VC certificates held locally by a user of the DID client, and different VC certificates are used to describe different characteristic attributes of the user.

[0171] Or receive a certificate issuance request sent by a DID client, the certificate issuance request including a target requirement certificate and application conditions; in response to the certificate issuance request, review the target requirement certificate and application conditions; if the review is passed, generate and send the target requirement certificate to the DID client.

[0172] In another aspect, the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, which is implemented when the computer program is executed by a processor to perform the above-mentioned blockchain-based identity authentication method, the method comprising:

[0173] In response to a user's login operation on a target application server, an access request is sent to the target application server; a required VC certificate list sent by the target application server is received, and it is determined whether the required VC certificate list and the local VC certificate list satisfy a preset relationship; if the required VC certificate list and the local VC certificate list satisfy the preset relationship, the local VC certificate list is provided to the target application server to obtain the use permission of the target application server; wherein the required VC certificate list includes a form of currently required VC certificates, the local VC certificate list includes a form of VC certificates held locally by the user of the DID client, and different VC certificates are used to describe different characteristic attributes of the user.

[0174] Or receiving an access request sent by a DID client; determining a required VC certificate list corresponding to the access request; sending the required VC certificate list to the DID client so that the DID client determines whether the required VC certificate list and the local VC certificate list satisfy a preset relationship; receiving a local VC certificate list sent by the DID client, and providing the DID client with usage rights if the required VC certificate list and the local VC certificate list satisfy a preset relationship; wherein the required VC certificate list includes a form of currently required VC certificates, and the local VC certificate list includes a form of VC certificates held locally by a user of the DID client, and different VC certificates are used to describe different characteristic attributes of the user.

[0175] Or receive a certificate issuance request sent by a DID client, the certificate issuance request including a target requirement certificate and application conditions; in response to the certificate issuance request, review the target requirement certificate and application conditions; if the review is passed, generate and send the target requirement certificate to the DID client.

[0176] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0177] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0178] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A blockchain-based identity authentication method, It is characterized in that Applied to a distributed identity DID client, the method includes: In response to a user's login operation on a target application server, sending an access request to the target application server; receiving the required VC certificate list sent by the target application server, and determining whether the required VC certificate list and the local VC certificate list satisfy a preset relationship; In the case where the required VC certificate list and the local VC certificate list satisfy a preset relationship, providing the local VC certificate list to the target application server to obtain the use authority of the target application server; The required VC certificate list includes a form of currently required VC certificates, the local VC certificate list includes a form of VC certificates held locally by the user of the DID client, and different VC certificates are used to describe different characteristic attributes of the user; The determining whether the required VC certificate list and the local VC certificate list satisfy a preset relationship includes: Determine a target VC certificate that exists in both the required VC certificate list and the local VC certificate list; Obtaining a weight value corresponding to the target VC certificate, and weighting the target VC certificate to obtain a weighted value; In the case where the weighted value is not less than a preset threshold, determining that the required VC certificate list and the local VC certificate list satisfy a preset relationship; In the case that the required VC certificate list and the local VC certificate list do not satisfy a preset relationship, determining a target required certificate based on the required VC certificate list and the local VC certificate list; A certificate issuance request including the target required certificate is sent to a target issuing server to obtain the target required certificate.

2. The blockchain-based identity authentication method according to claim 1, It is characterized in that In response to a user's login operation on the target application server, sending an access request to the target application server includes: Receive a login input from a user on the DID client, the login input including: an account number and a password; In response to the login input, obtaining a list of local VC certificates associated with the user from a blockchain network; Receive a user's login operation to a target application server; In response to the login operation, an access request is sent to the target application server.

3. The blockchain-based identity authentication method according to claim 1, It is characterized in that The VC certificates include: a native place certificate, a gender certificate, an age range certificate, an identity validity certificate, an issuing authority certificate, and a preset age value certificate.

4. A blockchain-based identity authentication method, It is characterized in that Applied to an application server, the method comprises: Receive access requests sent by DID clients; Determine a required VC certificate list corresponding to the access request; Sending the required VC certificate list to the DID client so that the DID client determines whether the required VC certificate list and the local VC certificate list satisfy a preset relationship; Receiving the local VC certificate list sent by the DID client, and providing the DID client with usage rights if the required VC certificate list and the local VC certificate list satisfy a preset relationship; The required VC certificate list includes a form of currently required VC certificates, the local VC certificate list includes a form of VC certificates held locally by the user of the DID client, and different VC certificates are used to describe different characteristic attributes of the user; The determining whether the required VC certificate list and the local VC certificate list satisfy a preset relationship includes: Determine a target VC certificate that exists in both the required VC certificate list and the local VC certificate list; Obtaining a weight value corresponding to the target VC certificate, and weighting the target VC certificate to obtain a weighted value; When the weighted value is not less than a preset threshold, it is determined that the required VC certificate list and the local VC certificate list satisfy a preset relationship.

5. The blockchain-based identity authentication method according to claim 4, It is characterized in that Also includes: Receive user management input for the application server; In response to the management input, an application party account on the application server is added, modified or queried.

6. A blockchain-based identity authentication method, It is characterized in that Applied to a certificate issuing server, the method comprises: Receive a certificate issuance request sent by a DID client, the certificate issuance request including a target required certificate and an application condition; the target required certificate is determined by the DID client based on the required VC certificate list and the local VC certificate list when it is determined that the required VC certificate list and the local VC certificate list do not satisfy a preset relationship; The step of determining that the required VC certificate list and the local VC certificate list do not satisfy a preset relationship includes: Determine a target VC certificate that exists in both the required VC certificate list and the local VC certificate list; Obtaining a weight value corresponding to the target VC certificate, and weighting the target VC certificate to obtain a weighted value; When the weighted value is less than a preset threshold, determining that the required VC certificate list and the local VC certificate list do not satisfy a preset relationship; In response to the certificate issuance request, review the target demand certificate and application conditions; If the review is passed, a target requirement certificate is generated and sent to the DID client.

7. The blockchain-based identity authentication method according to claim 6, It is characterized in that Also includes: Receive data viewing input from the user; In response to the data viewing input, at least one of the following data is displayed: total number of users, total number of certificates, total number of application servers, total number of issuing servers, total number of historical authorizations, number of certificate applications, historical transactions, block height, total running time, normal or total number of nodes, total number of transactions, space occupancy, and historical peak value.

8. The blockchain-based identity authentication method according to claim 6, It is characterized in that Also includes: Receive user management input to the issuing server; In response to the management input, an operation of adding, modifying or querying the issuing party account of the issuing server is performed.

9. The blockchain-based identity authentication method according to claim 6, It is characterized in that Also includes: Receive user input for VC certificate management; In response to the management input, the VC certificate is added, modified or queried.

10. A DID client, It is characterized in that include: An access request module, configured to send an access request to a target application server in response to a user's login operation on the target application server; A relationship determination module, configured to receive the required VC certificate list sent by the target application server, and determine whether the required VC certificate list and the local VC certificate list satisfy a preset relationship; a permission obtaining module, configured to provide the local VC certificate list to the target application server to obtain the use permission of the target application server when the required VC certificate list and the local VC certificate list satisfy a preset relationship; The required VC certificate list includes a form of currently required VC certificates, the local VC certificate list includes a form of VC certificates held locally by the user of the DID client, and different VC certificates are used to describe different characteristic attributes of the user; The relationship judgment module is specifically used for: Determine a target VC certificate that exists in both the required VC certificate list and the local VC certificate list; Obtaining a weight value corresponding to the target VC certificate, and weighting the target VC certificate to obtain a weighted value; In the case where the weighted value is not less than a preset threshold, determining that the required VC certificate list and the local VC certificate list satisfy a preset relationship; In the case that the required VC certificate list and the local VC certificate list do not satisfy a preset relationship, determining a target required certificate based on the required VC certificate list and the local VC certificate list; A certificate issuance request including the target required certificate is sent to a target issuing server to obtain the target required certificate.

11. An application server, It is characterized in that include: An access receiving module, used to receive access requests sent by a DID client; A certificate determination module, used to determine a required VC certificate list corresponding to the access request; A list sending module, used to send the required VC certificate list to the DID client, so that the DID client determines whether the required VC certificate list and the local VC certificate list meet a preset relationship; A list receiving module, configured to receive a local VC certificate list sent by the DID client, and provide the DID client with usage rights when the required VC certificate list and the local VC certificate list meet a preset relationship; The required VC certificate list includes a form of currently required VC certificates, the local VC certificate list includes a form of VC certificates held locally by the user of the DID client, and different VC certificates are used to describe different characteristic attributes of the user; The list sending module is specifically used for: Determine a target VC certificate that exists in both the required VC certificate list and the local VC certificate list; Obtaining a weight value corresponding to the target VC certificate, and weighting the target VC certificate to obtain a weighted value; When the weighted value is not less than a preset threshold, it is determined that the required VC certificate list and the local VC certificate list satisfy a preset relationship.

12. A certificate issuing server, It is characterized in that include: The certificate request module is used to receive the certificate request sent by the DID client, wherein the certificate request includes the target required certificate and the application conditions; The target required certificate is determined by the DID client based on the required VC certificate list and the local VC certificate list when it is determined that the required VC certificate list and the local VC certificate list do not satisfy a preset relationship; The determining that the required VC certificate list and the local VC certificate list do not satisfy the preset relationship includes: determining a target VC certificate that exists in both the required VC certificate list and the local VC certificate list; obtaining a weight value corresponding to the target VC certificate, and weighting the target VC certificate to obtain a weighted value; when the weighted value is less than a preset threshold, determining that the required VC certificate list and the local VC certificate list do not satisfy the preset relationship; A condition review module, used to review the target requirement certificate and application conditions in response to the certificate issuance request; The generation and sending module is used to generate and send the target requirement certificate to the DID client when the review is passed.

13. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the program, the steps of the blockchain-based identity authentication method as described in any one of claims 1 to 9 are implemented.

14. A non-transitory computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the steps of the blockchain-based identity authentication method as described in any one of claims 1 to 9 are implemented.