Authentication method and device, network equipment, medium and program product

Through distributed digital identity and blockchain technology, the user privacy and data consistency problems caused by data synchronization in joint rights and interests of different platforms are solved, and the security authentication and data consistency of user credentials are achieved.

CN119046929APending Publication Date: 2024-11-29MIGU CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411273837.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-11
Publication Date
2024-11-29

AI Technical Summary

Technical Problem

In the joint interests of different platforms, data synchronization methods cannot guarantee user privacy rights and user data consistency.

Method used

Using distributed digital identity (DID) and blockchain technology, users' verification credentials and digital credentials provided by multiple platform devices are uploaded to the blockchain. When users log in to the platform, they obtain credentials from the blockchain for authentication. Avoid data passing between different platforms.

Benefits of technology

Effectively protect user privacy, ensure the consistency of user data on different platforms, and avoid the problems of privacy rights and inconsistencies in data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119046929A_ABST
    Figure CN119046929A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides an authentication method and device, network equipment, a medium and a program product. The method comprises the following steps: receiving a first request sent by user equipment, wherein the first request is used for requesting authentication of a first user on first platform equipment; wherein the first request comprises first distributed digital identity (DID) information of the first user, and further comprises second DID information of a joint member digital certificate; the first DID information and the second DID information are verified; and under the condition that the verification is passed, performing authentication with the user equipment to obtain an authentication result of the first user. By adopting the method, data for authentication does not need to be transmitted among different platforms, so that the problems that privacy rights and interests of users are invaded and the data among the different platforms are inconsistent can be avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of Internet technology, and in particular to an authentication method, device, network equipment, medium and program product. Background Art

[0002] At present, in order to improve the competitiveness of their services, merchants often join forces with multiple merchants to jointly launch joint benefits, with multiple merchants making concessions at the same time. This approach is often very competitive and very attractive to consumers, achieving better marketing results.

[0003] However, for the above-mentioned joint rights and interests, the user's identity information and information on product purchases on the platform are usually synchronized on different platforms. This processing method has defects such as the inability to guarantee user privacy rights, data dispersion on different platforms, and the inability to guarantee the consistency of user information. Summary of the invention

[0004] The purpose of the technical solution of this application is to provide an authentication method, device, network equipment, medium and program product, which are used to solve the problem that the joint rights implemented in the prior art on different platforms use data synchronization and cannot guarantee the user privacy rights and user data consistency.

[0005] One embodiment of the present application provides an authentication method, which is executed by a first platform device and includes:

[0006] Receive a first request sent by a user device, where the first request is used to request authentication of a first user on the first platform device; wherein the first request includes first distributed digital identity DID information of the first user, and also includes second DID information of a joint member digital certificate;

[0007] Verifying the first DID information and the second DID information;

[0008] If the verification is successful, authentication is performed with the user equipment to obtain an authentication result of the first user.

[0009] One embodiment of the present application provides an authentication method, which is performed by a user equipment, and the method includes:

[0010] Acquire the first distributed digital identity DID information of the first user sent by the first service device, and acquire the second DID information of the digital certificate sent by the second platform device; wherein the digital certificate is the certificate of the joint member;

[0011] A first request is sent to a first platform device, where the first request is used to request authentication on the first platform device; wherein the first request includes the first DID information and the second DID information, so that the first platform device can verify the first DID information and the second DID information, and if the verification passes, perform authentication with the user device to obtain an authentication result of the first user.

[0012] One embodiment of the present application provides an authentication method, wherein the method is performed by a second platform device, and the method includes:

[0013] Obtaining second distributed digital identity DID information of the digital certificate sent by the first service device; wherein the digital certificate is the certificate of the joint member;

[0014] After obtaining a fourth request for requesting to obtain the digital certificate sent by a user device corresponding to the first user, the second DID information is sent to the user device.

[0015] One embodiment of the present application provides an authentication method, wherein the method is performed by a first service device and includes:

[0016] Sending first distributed digital identity DID information of a first user to a user device, and sending second DID information of a digital certificate to a second platform device; the digital certificate is a certificate of a joint member;

[0017] The second DID information is used to be provided by the second platform device to the user device, and the first DID information and the second DID information are used by the user device to obtain authentication of the joint service corresponding to the joint member from the first platform device.

[0018] One embodiment of the present application provides a network device, which includes a processor, a memory, and a program stored in the memory and executable on the processor, wherein the program implements the authentication method as described in any one of the above items when executed by the processor.

[0019] One embodiment of the present application provides a readable storage medium, wherein the readable storage medium stores a program, and when the program is executed by a processor, the steps in the authentication method as described in any one of the above items are implemented.

[0020] One embodiment of the present application provides a computer program product, which includes computer instructions, and when the computer instructions are executed by a processor, the steps in the authentication method as described in any one of the above items are implemented.

[0021] At least one of the above technical solutions of the present application has the following beneficial effects:

[0022] The authentication method described in the embodiment of the present application is adopted, which is based on the distributed digital identity DID method. By uploading the verification credentials corresponding to the user and the digital credentials of the joint services provided by multiple platform devices to the blockchain, when the user logs in to the first platform device and obtains the service provided by the first platform device, the user-related credentials can be obtained from the blockchain for authentication. There is no need to transfer the data used for authentication between different platforms, thereby avoiding infringement of user privacy rights and interests and data inconsistency between different platforms. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] Figure 1 This is a flowchart of the authentication method described in Example 1 of this application;

[0024] Figure 2 This is one of the system interaction diagrams using the authentication method described in the embodiment of the present application;

[0025] Figure 3 A flowchart of one implementation method of the authentication method described in the embodiment of the present application;

[0026] Figure 4 The second diagram of system interaction using the authentication method described in the embodiment of the present application;

[0027] Figure 5 The third diagram of system interaction using the authentication method described in the embodiment of the present application;

[0028] Figure 6 This is a flowchart of the authentication method described in Example 2 of this application;

[0029] Figure 7 This is a flowchart of the authentication method described in Example 3 of this application;

[0030] Figure 8 This is a flowchart of the authentication method described in Example 4 of the present application. DETAILED DESCRIPTION

[0031] In order to make the technical problems, technical solutions and advantages to be solved by the present application clearer, a detailed description will be given below with reference to the accompanying drawings and specific embodiments.

[0032] In order to solve the problem that the joint rights implemented by different platforms in the prior art adopt data synchronization and cannot guarantee the user privacy rights and user data consistency, the embodiment of the present application provides an authentication method based on a distributed digital identity (Decentralized Identity, DID) method. By uploading the verification credentials corresponding to the user and the digital credentials of the joint services provided by multiple platform devices to the blockchain, when the user logs in to the first platform device and obtains the service provided by the first platform device, the user-related credentials can be obtained from the blockchain for authentication, without the need to transfer the data used for authentication between different platforms, thereby avoiding the infringement of user privacy rights and the problem of data inconsistency between different platforms.

[0033] One embodiment of the present application provides an authentication method, which is executed by a first platform device, such as Figure 1 As shown, the method includes:

[0034] S101, receiving a first request sent by a user device, wherein the first request is used to request authentication of a first user on the first platform device; wherein the first request includes first distributed digital identity DID information of the first user, and also includes second DID information of a joint member digital certificate;

[0035] S102, verifying the first DID information and the second DID information;

[0036] S103: If the verification is successful, authentication is performed with the user equipment to obtain an authentication result of the first user.

[0037] The authentication method described in the embodiment of the present application is based on the distributed digital identity DID method. The user device can obtain the first DID information of the first user and the second DID information of the digital certificate of the joint service provided by multiple platform devices. In this way, when the first user requests to log in to the first platform device to obtain the service provided by the first platform device, the first platform device can send a first request based on the first DID information and the second DID information to verify the first user. If the verification is successful, the authentication is performed between the user device of the first user. In this way, there is no need to transfer the data used for authentication between different platforms, thereby avoiding the infringement of user privacy rights and interests and the problem of inconsistent data between different platforms.

[0038] Optionally, when verifying the first DID information and the second DID information, the first platform device verifies the first DID information and the second DID information according to the verification credential corresponding to the first DID information and the digital credential corresponding to the second DID information stored in the blockchain; if the verification passes, authentication is performed with the user device based on the digital credential stored in the blockchain.

[0039] By adopting this method, since the verification credentials corresponding to the user and the digital credentials of the joint services provided by multiple first platform devices are uploaded to the blockchain, when the user logs in to the first platform device and obtains the service provided by the first platform device, the user-related credentials can be obtained from the blockchain for authentication, without the need to transfer the data used for authentication between different platforms, thereby avoiding infringement of user privacy rights and interests and data inconsistency between different platforms.

[0040] In an embodiment of the present application, optionally, the first platform device is any one of multiple platform devices that provide joint services, wherein the first user can log in to the first platform device through a user device, and after the first platform device authenticates the first user, the first user can obtain the rights and interests of the services provided by the first platform device.

[0041] Optionally, the joint member digital certificate, or the joint member's digital certificate, may also be described as a digital certificate for a joint service provided by multiple platform devices.

[0042] In one embodiment, the first user sends a request to the first platform device, and when the request is authenticated by the first platform device, the first platform device corresponds to the digital certificate verifier module; in another embodiment, the first platform device can also be a digital certificate issuer module, and the first platform device sends the second DID information of the digital certificate of the joint service provided to the user device corresponding to the first user. In another embodiment, optionally, the platform device that provides the second DID information of the digital certificate to the first user can also be a second platform device different from the first platform device.

[0043] In an embodiment of the present application, a system adopting the authentication method of this embodiment also includes a first service device, through which a user device can apply for first DID information, a platform device can apply for third DID information through the first service device, and a second platform device as a digital certificate issuer can apply for second DID information of the digital certificate through the first service device, etc., and the first service device can upload the above-mentioned first DID information, second DID information and third DID information to the blockchain, and provide public information query.

[0044] By adopting the authentication method described in this embodiment, the user's identity information, platform device information, and digital certificates for obtaining service rights can be standardized through the first service device and uploaded to the blockchain. In this way, when the user logs in to each platform device and obtains services in the platform device, the platform device can obtain the user's relevant credentials from the blockchain and perform authentication without having to transmit data between platforms, thereby avoiding problems such as user privacy abuse and data conflicts and inconsistencies.

[0045] like Figure 2 The figure is a schematic diagram of the system structure using the authentication method described in the embodiment of the present application. In the embodiment of the present application, the system using the authentication method includes the following devices:

[0046] The first service device: It can also be called a dictionary server, which is a registration and query platform. The user's identity DID (first DID), the platform device's identity DID (third DID), and some public distributed rights and interests DID (second DID) and other information can all be applied to the first service device. In addition, the first service device binds the user / platform identity DID and public key, establishes a management relationship, and makes it public, providing queries for use during identity verification.

[0047] On the one hand, the first service device receives the registration application request of the first user, generates the first DID information of the first user, and synchronizes the verification certificate corresponding to the first user's registration application to the blockchain; on the one hand, the first service device receives the registration application of each platform device, generates the third DID information corresponding to the platform device, and synchronizes the verification certificate corresponding to the platform device to the blockchain; on the one hand, the first service device generates the second DID information corresponding to the digital certificate based on the digital certificate generated by the second platform device as the issuer of the digital certificate, and synchronizes the second DID information to the blockchain.

[0048] In addition, in one implementation mode, optionally, the first service device may also provide a query of public information such as public information of the platform device and public key information of the first user.

[0049] In one implementation mode, optionally, the first service device may also record the adjusted (added, deleted) digital certificate, and synchronize the adjusted digital certificate to the blockchain for storage.

[0050] Optionally, the first service device may also record the block identifier, block height and / or block range after the first DID information, the second DID information and the third DID information are synchronized to the blockchain.

[0051] Second platform equipment:

[0052] In the embodiment of the present application, the second platform device mentioned is a digital certificate issuing module, that is, a platform unit that issues rights, or a cooperative unit authorized by the platform unit that issues rights.

[0053] The second platform device issues digital certificates to users who apply for certificates or purchase certificates, and signs the certificates.

[0054] First platform equipment:

[0055] In the embodiment of the present application, the first platform device mentioned is an authentication and verification module for a digital certificate. When the first user presents the digital certificate to the first platform device, the first platform device can identify the authenticity of the digital certificate and perform authenticity verification.

[0056] User equipment:

[0057] In an embodiment of the present application, optionally, the user device may also be referred to as a DID client module, which is responsible for generating the user's public-private key pair, managing the DID data credentials held, and interacting with other devices and verifying DID credential-related information.

[0058] Among them, the first user uses the identity DID (first DID) as the identity information to access each platform, the second platform device sends the credential information to the user through the identifier, and the first platform device verifies various credentials through the identifier. DID is independent of each platform, but does not affect the verification of its identity and rights on each platform.

[0059] Blockchain:

[0060] As a distributed storage carrier of user DID (first DID) and its related rights and interests information, blockchain ensures the independence and non-tamperability of information, and provides query services for verifiers to query DID's authentication information.

[0061] Combination Figure 3 As shown, the authentication method described in the embodiment of the present application includes the following steps:

[0062] S301, the first user and each platform device apply for DID information from the first service device;

[0063] The user device corresponding to the first user generates a public key and a private key pair, and sends a third request to the first service device, where the third request is used to request to obtain the first DID;

[0064] Optionally, the third request includes the public key and identity information of the first user.

[0065] Optionally, the identity information is the identity information required to register with the platform device, including but not limited to one or more of an ID number, a mobile phone number, a name, a nickname, and an email address.

[0066] The first service device receives the third request sent by the user device, and generates a verification credential corresponding to the first user according to the public key and identity information of the first user. Optionally, the verification credential Verifiable Credentials includes DID document information, and the DID document information is stored in the form of a verifiable credential to form a corresponding verification credential. The verification credential is a descriptive statement that endorses at least part of the attributes of the DID, and is attached with the digital signature of the organization, and can be used as a digital certificate.

[0067] Optionally, the credentialSubject attribute in the DID document structure can be set with credential-related content, and the attribute structure is an object structure.

[0068] The first service device uploads the verification credential of the first user to the blockchain to obtain the corresponding first DID information. Optionally, the first DID information includes an identifier of the stored verification credential.

[0069] After obtaining the first DID information, the first service device sends the first DID information to the user equipment, and optionally returns application result information to the user equipment, where the application result information is used to indicate whether the request for the first DID information is successful or failed.

[0070] In another implementation manner, optionally, each platform device (target platform device) sends a second request to the first service device to request third DID information of the target platform device; wherein the third request includes a public key of the target platform device, and the target platform device includes the first platform device and / or the second platform device;

[0071] The first service device generates a verification credential corresponding to the target platform device according to the second request, stores the verification credential corresponding to the target platform device in the blockchain, and obtains third DID information corresponding to the target platform device;

[0072] The first service device sends the third DID information corresponding to the verification information to the target platform device.

[0073] Using this implementation, each platform device can also apply for corresponding third DID information from the first service device, wherein the first DID serves as a user identity identifier for the first user, and the third DID serves as an identifier for the platform device identity, which is used for subsequent identity information query and verification.

[0074] Optionally, the verification credentials of the first user and the target platform device can be stored in the blockchain, and the first service device retains the address information, block height and / or block range and other information of the corresponding verification credentials in the blockchain to achieve subsequent rapid retrieval.

[0075] In the embodiment of the present application, the data structure of the first DID and the second DID is expressed in three sections: did:chainId:addressId, where:

[0076] did: Follows the DID specification and uses a fixed value "did" to indicate that the data is DID information;

[0077] chainId: blockchain identifier, used to indicate the blockchain where the information is stored;

[0078] addressId: used to indicate the address on the blockchain.

[0079] S302, the second platform device (credential issuer module) sends credential registration information to the first service device for registering a certificate template.

[0080] Among them, the second platform device registers the relevant information of the credential issuer with the first service device, and uploads the protocol structure of its credential content, that is, the certificate template, which is the structure of the verifiable information of the digital credential. The verifiable information structure is a DID document structure and contains information fields set by the credential issuing role, such as the additional joint product ID required by the joint membership platform, the membership validity period and other conditions.

[0081] In one embodiment, the certificate template optionally includes multiple credential information that can be disassembled, and the multiple credential information is marked, and each credential information corresponds to a code for subsequent smart contract decryption of private information in the digital certificate. Specifically, the second platform device numbers the multiple credential information included according to the data structure of the certificate template.

[0082] By adopting this implementation mode, the second platform device (credential issuer module) and at least one first platform device (credential verifier module) mutually recognize and communicate with each other for the services or products jointly issued and launched. The mutual recognition and communication process is for the services or products jointly launched by the second platform device and the first platform device. The corresponding logos, names and rights and interests are the authentication methods recognized and agreed upon by both platforms.

[0083] In another implementation, optionally, the first service device uploads registration synchronization information to the blockchain, the registration synchronization information including the credential registration information, the signature of the second platform device, and the third DID information of the second platform device. After uploading the registration synchronization information to the blockchain, the first service device saves the address information, block height and / or block range of the registration synchronization information stored in the blockchain for subsequent rapid retrieval.

[0084] Optionally, when the credential registration information is updated, the first service device may update the corresponding credential registration information stored on the blockchain according to the signature of the second platform device and the third DID information of the second platform device in the registration synchronization information.

[0085] S303, the first user applies for a digital certificate from the second platform device.

[0086] Among them, combined Figure 2 and Figure 4 As shown, the user device corresponding to the first user sends a fourth request to the second platform device, requesting to obtain the digital certificate of the joint service provided by multiple first platform devices; wherein the fourth request includes the first DID information of the first user.

[0087] Among them, the second platform device authenticates the identity of the first user, that is, verifies the first DID information. According to step S301, during the registration process of the first user, the first DID information and the public key of the first user are registered in the first service device and stored in the blockchain. Therefore, the first DID information and the public key of the first user have established an association relationship. The second platform device can determine the public key of the first user through the first DID information stored in the blockchain, and can verify the identity of the first user through the public key of the first user.

[0088] The process of the second platform device performing identity authentication with the first user includes the following steps:

[0089] The second platform device sends fourth encrypted information to the user device corresponding to the first user; wherein the fourth encrypted information is obtained by encrypting the first DID information using the public key of the first user;

[0090] The user equipment decrypts the fourth encrypted information according to the public key of the first user to obtain second decrypted information;

[0091] The user equipment sends the second decrypted information to the second platform equipment, so that the second platform equipment authenticates the first DID information;

[0092] The second platform device obtains second decrypted information obtained by the user device decrypting the fourth encrypted information according to the public key of the first user;

[0093] When the first DID information corresponding to the first user stored in the blockchain matches the second decrypted information, it is determined that the authentication of the first DID information is successful.

[0094] By adopting the above method, after the identity authentication of the first user is passed, the second platform device generates a digital certificate according to the certificate template registered with the first service device; wherein the certificate template includes a plurality of certificate information, and each of the certificate information corresponds to a code.

[0095] Among them, the digital certificate is a verifiable digital certificate, which is a digital text pointed to by the digital certificate and authorized to be issued by the second platform device (certificate issuer) and can be used to verify its holder and specific content information.

[0096] Optionally, the method further comprises:

[0097] The second platform device uses the public key of the first user to encrypt the plurality of credential information in the digital certificate respectively to obtain an encrypted digital certificate;

[0098] Upload the encrypted digital certificate to the blockchain.

[0099] Optionally, the second platform device is also used to record information such as address information, block height and / or block range of the encrypted digital certificate in the blockchain.

[0100] Optionally, in the encrypted digital certificate, the part encrypted using the public key of the first user is the value of one of the credential information in the digital certificate. For example, the second platform device (credential issuer module) issues a certificate to the first user, and the credential information of the digital certificate contains a certificate number, such as certId:xxx, then the public key encrypted part is the certificate number of the certificate.

[0101] In the embodiment of the present application, optionally, after generating the digital certificate, the second platform device sends a fifth request to the first service device for requesting the second DID information of the digital certificate. After obtaining the second DID information of the digital certificate sent by the first service device and obtaining the fourth request for requesting the digital certificate sent by the user device corresponding to the first user, the second DID information is sent to the user terminal.

[0102] With this implementation, the first user applies to the second platform device for multiple digital certificates (or certificate information) for the joint services provided by the first platform device, wherein the first user purchases the joint membership information on the second platform device, and the second platform device grants the first user a membership certificate of the joint member, which can be authenticated on both the first platform device and the second platform device, and the user can enjoy the rights and interests of the platform. The second platform device establishes an association relationship between the first DID information and the membership rights and interests information based on the first DID information of the first user, and generates a digital certificate for the first user. The structure of the digital certificate is consistent with the structure of the second platform device applying for registration with the first service device, and the information item encoding of the certificate information of the digital certificate is also consistent. For the authorized membership certificate, the second platform device needs to apply to the first service device for the DID (second DID information) of the digital certificate.

[0103] S304, the second platform device sets a smart contract for obtaining a digital certificate;

[0104] Among them, the input conditions of the smart contract include the first DID information of the first user, the third DID information of the first platform device requested for authentication by the first user, the identification ID information of the digital certificate, one or more of the authentication information type and the authentication information item encoding; the output conditions of the smart contract include at least one credential information in the digital certificate.

[0105] By setting up a smart contract, optional contract settings can be made for the credential information that the verifier (first platform device) needs to verify and query, so that part of the information in the digital credential can be optionally displayed to the verifier, thereby protecting user privacy.

[0106] In one embodiment, optionally, the credential information obtained by the verifier (first platform device) may include all the credential information in the digital certificate. With this embodiment, during verification, the smart contract of the blockchain outputs or returns all the credential information in the digital certificate. In another embodiment, the credential information obtained by the verifier (first platform device) may include part of the credential information in the digital certificate. Optionally, during verification, the smart contract of the blockchain outputs or returns the credential information with a specified code in the digital certificate.

[0107] For the setting output information of the smart contract, at least one credential information outputted has been encrypted using the public key of the first user.

[0108] For the way that the blockchain smart contract outputs or returns all the credential information in the digital certificate, although more information can be obtained, it is all ciphertext encrypted by the user's public key, and the user needs to decrypt it. However, if too much information needs to be decrypted, exceeding the part of the information that the user wants to authorize, there is a risk of being rejected. For the way that the blockchain smart contract outputs or returns part of the credential information in the digital certificate, the encoding list of the obtained credential information needs to be passed into the smart contract. The smart contract obtains the corresponding credential information according to the passed encoding list and returns it. The obtained credential information is still ciphertext encrypted by the user's public key.

[0109] S305, the first user requests login and authentication of the first platform device;

[0110] Combination Figure 2 and Figure 5 As shown, a first user sends a first request to a first platform device through a user device, and the first request is used to request the first user to be authenticated on the first platform device; wherein the first request includes the first distributed digital identity DID information of the first user, and the second DID information of the digital certificate of the joint service provided by the plurality of the first platform devices;

[0111] The first platform device verifies the first DID information and the second DID information according to the verification credential corresponding to the first DID information and the digital credential corresponding to the second DID information stored in the blockchain;

[0112] If the verification is successful, authentication is performed with the user device based on the digital certificate stored in the blockchain to obtain an authentication result of the first user.

[0113] Optionally, the first platform device verifies the first DID information and the second DID information according to the verification credential corresponding to the first DID information and the digital credential corresponding to the second DID information stored in the blockchain, including:

[0114] Verifying the legitimacy of the first DID information and the second DID information;

[0115] When the legitimacy verification passes, the association relationship between the first DID information and the second DID information is verified based on the verification certificate corresponding to the first DID information and the digital certificate corresponding to the second DID information.

[0116] Using this implementation, the first platform device (verifier) ​​verifies the association between the first DID information and the second DID information by querying the first DID information of the first user and the second DID information of the digital certificate in the blockchain.

[0117] In the embodiment of the present application, the first platform device performs authentication with the user device according to the digital certificate stored in the blockchain, including:

[0118] Obtaining an encrypted authentication item in the digital certificate according to the smart contract of the blockchain;

[0119] An authentication process is performed with the user equipment according to the encrypted authentication item.

[0120] Optionally, the method further comprises:

[0121] The first platform device obtains the first information sent by the first service device; wherein the first information includes the structural information of the digital certificate and the encoding of multiple certificate information in the digital certificate; the digital certificate in the blockchain is stored in the blockchain by the first service device;

[0122] The first platform device determines the encrypted authentication item according to the first information, the encrypted information item in the smart contract of the blockchain, and the authentication information item required by the first platform device.

[0123] Using this implementation mode, the first platform device queries the structure of the digital certificate registered by the first platform device and the encoding of multiple credential information in the digital certificate through the first service device, and determines the encrypted authentication items that need to be authenticated with the first user based on the credential information that the first platform device itself needs to authenticate and the encrypted information items in the smart contract of the blockchain, and sends the encrypted authentication items to the first user for decryption to authenticate the first user.

[0124] Among them, combined Figure 5 As shown, the first platform device performs authentication with the user device according to the encrypted authentication item, including:

[0125] Sending the first encrypted information to the user equipment, where the first encrypted information includes the encrypted authentication item;

[0126] Acquire second encrypted information sent by the user equipment according to the first encrypted information;

[0127] Decrypting the second encrypted information using the private key of the first platform device to obtain first decrypted information;

[0128] Encrypting the first decrypted information using the public key of the first user to obtain third encrypted information;

[0129] In a case where the third encrypted information matches the encrypted authentication item, it is determined that the authentication result of the first user is authentication passed.

[0130] After obtaining the first encrypted information sent by the first platform device, the user device uses the public key of the first user to decrypt the first encrypted information, and encrypts the decrypted information using the public key of the first platform device to obtain second encrypted information.

[0131] With this implementation, the first platform device obtains the encrypted information item of the digital certificate through the smart contract of the blockchain according to the information item that needs to be authenticated by its own platform, determines the encrypted authentication item that needs to be authenticated with the first user, and sends the encrypted authentication item to the user device for decryption. The encrypted information is the first encrypted information. The user device displays the information item that needs to be decrypted to the first user and requests authorization. The first user confirms whether the encrypted authentication item that needs to be decrypted is reasonable and makes a decision. It can refuse or authorize decryption. After decrypting the encrypted authentication item, the decrypted information is encrypted with an asymmetric encryption algorithm using the public key of the first platform device. This part of the encrypted information is the second encrypted information. After that, the first user signs the second encrypted information and sends it back to the first platform device. After that, the first platform device verifies the second encrypted information returned by the user device.

[0132] Specifically, the first platform device receives the second encrypted information of the first user, and first verifies the signature of the first user. After the signature verification is passed, the private key of the first platform device is used to decrypt the received second encrypted information, and the decrypted plain text is the credential information item to be verified.

[0133] Afterwards, the credential information obtained after the above decryption is encrypted using the public key of the first user through an asymmetric encryption algorithm, and the encrypted third encrypted information is compared with the encrypted authentication item (first encrypted information). When the two are consistent or match, the authentication result of the first user is determined to be authentication passed.

[0134] Optionally, when the authentication result of the first user is authentication passed, the first platform device verifies the content value of the encrypted authentication item to determine whether it meets the authentication requirements of the first platform device. If the authentication requirements are met, it is determined that the authentication is passed and the interaction process ends; if it is determined that the authentication requirements of the first platform device are not met, it is determined that the authentication has failed.

[0135] The authentication method described in the embodiment of the present application is illustrated by taking the example of user U who purchased a joint membership of platform A and platform B on platform A, and platform B needs to verify the membership credentials of user U.

[0136] User U logs in to platform B, presents his own DID and the DID of the joint membership credential. DID platform B (verifier) ​​verifies the association between user U's DID information and the joint membership credential DID by checking the blockchain, and queries the structure of the digital credential information registered by platform A, as well as the encoding of each information item. Platform B obtains the encrypted information items of the digital credential through the smart contract of the blockchain according to the information items that need to be authenticated by its own platform, and sends the encrypted information items to the DID client module for decryption. This part of the encrypted information is the first encrypted information. The DID client module displays the information items that need to be decrypted to user U and requests authorization. User U confirms whether the information items that need to be decrypted are reasonable and makes a decision. He can refuse or authorize decryption. After decryption, the decrypted plaintext is encrypted using the public key of platform B with an asymmetric encryption algorithm. This part of the encrypted information is the second encrypted information. User U signs the second encrypted information and sends it back to platform B.

[0137] When platform B receives the information sent back by user U, it first verifies the signature of user U. After the verification, it decrypts the received second encrypted information using the private key of this platform. The decrypted plain text is the credential information item to be verified. These digital credential information items are encrypted using an asymmetric encryption algorithm. The encryption key uses the public key of user U. The encrypted ciphertext is compared with the first encrypted information. If they are consistent, the returned credential information item is considered correct. The content value of the credential information item is then verified to confirm whether it meets the authentication requirements of this platform. If it does, the authentication is passed and the interaction process ends. If it does not meet the requirements, it will prompt that the authentication has failed and the interaction process ends.

[0138] It should be noted that in the embodiments of the present application, the specific form of the asymmetric algorithm mentioned is not limited, but the algorithm selected by each device remains consistent.

[0139] The authentication method described in the embodiment of the present application uses DID (distributed digital identity) to assign unique digital identities to users, platforms, and digital certificates, and decentralizes the digital identity on the chain, solving the problems of user privacy, data islands, and data inconsistency. In addition, by structurally splitting the digital certificate information and using smart contracts to assemble the digital certificate information in a combined manner, users can selectively disclose the certificate information. Users and platforms use the result information of the digital certificate to conduct partial and optional viewing and authorization of the digital certificate information, which not only ensures that the functions are met, but also further achieves the problem of protecting user privacy.

[0140] One embodiment of the present application also provides an authentication method, which is executed by a user device, such as Figure 6 As shown, the method includes:

[0141] S601, obtaining first distributed digital identity DID information of a first user sent by a first service device, and obtaining second DID information of a digital certificate sent by a second platform device; wherein the digital certificate is a certificate of a joint member;

[0142] S602, sending a first request to a first platform device, where the first request is used to request authentication on the first platform device; wherein the first request includes the first DID information and the second DID information, so that the first platform device can verify the first DID information and the second DID information, and if the verification is successful, perform authentication with the user device to obtain an authentication result of the first user.

[0143] The authentication method described in the embodiment of the present application is adopted, and the method based on the distributed digital identity DID is adopted. By uploading the verification credentials corresponding to the user and the digital credentials of the joint services provided by multiple first platform devices to the blockchain, when the user logs in to the first platform device and obtains the service provided by the first platform device, the user can send a first request based on the first DID information and the second DID information, so that the first platform device can verify the first user according to the verification credentials corresponding to the first DID information stored in the blockchain and the digital credentials corresponding to the second DID information. If the verification is successful, the user device of the first user can be authenticated according to the digital credentials stored in the blockchain. In this way, there is no need to transfer the data used for authentication between different platforms, thereby avoiding the infringement of user privacy rights and interests and the problem of inconsistent data between different platforms.

[0144] Optionally, the authentication method further comprises:

[0145] When the first platform device verifies the first DID information and the second DID information according to the verification credential corresponding to the first DID information and the digital credential corresponding to the second DID information stored in the blockchain, and the result is that the verification is passed, the user device and the first platform device perform an authentication process;

[0146] Obtain an authentication result of the first platform device on the first user.

[0147] Optionally, in the authentication method, the authentication process performed between the user device and the first platform device includes:

[0148] Acquire first encrypted information sent by the first platform device, where the first encrypted information includes an encrypted authentication item, and the encrypted authentication item includes at least part of the credential information in the digital credential;

[0149] Decrypting the first encrypted information using the public key of the first user, and encrypting the decrypted information using the public key of the first platform device to obtain second encrypted information;

[0150] The second encrypted information is sent to the first platform device.

[0151] Optionally, the authentication method further comprises:

[0152] A third request is sent to the first service device, where the third request is used to request to obtain the first DID; wherein the third request includes the public key and identity information of the first user.

[0153] Optionally, the authentication method further comprises:

[0154] A fourth request is sent to the second platform device, where the fourth request is used to request to obtain the digital certificate, wherein the fourth request includes the first DID information.

[0155] Optionally, the authentication method further comprises:

[0156] Obtaining fourth encrypted information sent by the second platform device; wherein the fourth encrypted information is obtained by encrypting the first DID information using the public key of the first user;

[0157] Decrypting the fourth encrypted information according to the public key of the first user to obtain second decrypted information;

[0158] The second decrypted information is sent to the second platform device so that the second platform device can authenticate the first DID information.

[0159] The specific implementation of the authentication method described in the embodiment of the present application applied to the user device can refer to the detailed description of the specific implementation applied to the first platform device, and will not be repeated here.

[0160] One embodiment of the present application also provides an authentication method, which is executed by the second platform device, such as Figure 7 As shown, the method includes:

[0161] S701, obtaining second distributed digital identity DID information of a digital certificate sent by a first service device, wherein the digital certificate is a certificate of a joint member;

[0162] S702: After obtaining a fourth request for obtaining the digital certificate sent by a user device corresponding to the first user, send the second DID information to the user device.

[0163] The authentication method described in the embodiment of the present application is based on a distributed digital identity DID method. The second platform device can obtain the second DID information of the digital certificate of the joint service provided by at least one first platform device and the second platform device through the first service device, and after obtaining the fourth request sent by the user device corresponding to the first user to request to obtain the digital certificate, send the second DID information to the user device. In this way, when the first user requests to log in to the first platform device to obtain the service provided by the first platform device, a first request can be sent based on the first DID information and the second DID information of the first user, so that the first platform device can verify the first user according to the verification certificate corresponding to the first DID information stored in the blockchain and the digital certificate corresponding to the second DID information. If the verification is successful, authentication can be performed between the user device of the first user based on the digital certificate stored in the blockchain.

[0164] Optionally, the authentication method further comprises:

[0165] Generate the digital certificate according to the certificate template of the provided joint service; wherein the certificate template includes a plurality of certificate information, each of which corresponds to a code;

[0166] A fifth request is sent to the first service device, where the fifth request is used to request the second DID information of the digital certificate.

[0167] Optionally, the authentication method further comprises:

[0168] Sending credential registration information to the first service device for registering the certificate template.

[0169] Optionally, the authentication method further comprises:

[0170] Using the public key of the first user to encrypt the plurality of credential information in the digital certificate respectively, to obtain an encrypted digital certificate;

[0171] Upload the encrypted digital certificate to the blockchain.

[0172] Optionally, the authentication method further comprises:

[0173] Obtaining the fourth request sent by the user equipment, where the fourth request includes the first DID information;

[0174] authenticating the first DID information;

[0175] The sending the second DID information to the user equipment includes:

[0176] When the authentication of the first DID information is successful, the second DID information is sent to the user equipment.

[0177] Optionally, in the authentication method, authenticating the first DID information includes:

[0178] Sending fourth encrypted information to the user equipment; wherein the fourth encrypted information is obtained by encrypting the first DID information using the public key of the first user;

[0179] Obtaining second decrypted information obtained by decrypting the fourth encrypted information by the user equipment according to the public key of the first user;

[0180] When the first DID information corresponding to the first user stored in the blockchain matches the second decrypted information, it is determined that the authentication of the first DID information is successful.

[0181] Optionally, the authentication method further comprises:

[0182] The public key of the first user is obtained according to the correspondence between the first DID information stored in the blockchain and the corresponding public key of the first user.

[0183] Optionally, the authentication method further comprises:

[0184] A smart contract for obtaining the digital certificate is set up on the blockchain; wherein the input conditions of the smart contract include the first DID information of the first user, the third DID information of the first platform device requested for authentication by the first user, the identification ID information of the digital certificate, one or more of the authentication information type and the authentication information item encoding; the output conditions of the smart contract include at least one credential information in the digital certificate.

[0185] The specific implementation of the authentication method described in the embodiment of the present application applied to the second platform device can refer to the detailed description of the specific implementation applied to the first platform device, and will not be repeated here.

[0186] One embodiment of the present application further provides an authentication method, which is executed by a first service device, such as Figure 8 As shown, the method includes:

[0187] S801, sending first distributed digital identity DID information of a first user to a user device, and sending second DID information of a digital certificate to a second platform device; the digital certificate is a certificate of a joint member;

[0188] The second DID information is used to be provided by the second platform device to the user device, and the first DID information and the second DID information are used by the user device to obtain authentication of the joint service corresponding to the joint member from the first platform device.

[0189] By adopting the authentication method described in the embodiment of the present application, the user device can apply for the first DID information through the first service device, and the second platform device as the issuer of the digital certificate can apply for the second DID information of the digital certificate through the first service device, etc. In this way, the user's identity information, platform device information and digital certificates for obtaining service rights can be standardized through the first service device and uploaded to the blockchain. When the user logs in to each platform device and obtains services in the platform device, the platform device can obtain the user's relevant credentials from the blockchain and perform authentication without having to transmit data between platforms, thereby avoiding problems such as user privacy abuse and data conflicts and inconsistencies.

[0190] Optionally, the authentication method further comprises:

[0191] Obtain a third request sent by the user device, where the third request is used to request to obtain the first DID; wherein the third request includes the public key and identity information of the first user.

[0192] Optionally, the authentication method further comprises:

[0193] Generate a verification credential corresponding to the first user according to the public key and identity information of the first user;

[0194] Upload the verification certificate to the blockchain to obtain the corresponding first DID information.

[0195] Optionally, the authentication method further comprises:

[0196] Obtain a fifth request sent by the second platform device, where the fifth request is used to request the second DID information of the digital certificate.

[0197] Optionally, the authentication method further comprises:

[0198] Acquire the credential registration information sent by the second platform device, where the credential registration information is used to register a certificate template for generating the digital credential; wherein the certificate template includes a plurality of credential information, and each credential information corresponds to a code;

[0199] The certificate template is stored.

[0200] Optionally, the authentication method further comprises:

[0201] Obtaining a second request sent by a target platform device, where the second request is used to request third DID information of the target platform device; wherein the third request includes a public key of the target platform device, and the target platform device includes the first platform device and / or the second platform device;

[0202] Generate a verification credential corresponding to the target platform device according to the second request, store the verification credential corresponding to the target platform device in the blockchain, and obtain third DID information corresponding to the target platform device;

[0203] The third DID information corresponding to the verification information is sent to the target platform device.

[0204] The specific implementation of the authentication method described in the embodiment of the present application applied to the first service device can refer to the detailed description of the specific implementation applied to the first platform device, and will not be repeated here.

[0205] One embodiment of the present application further provides a network device, wherein the network device is a first platform device, the first platform device includes a transceiver and a processor, wherein:

[0206] The transceiver is used to receive a first request sent by a user device, wherein the first request is used to request the first user to be authenticated on the first platform device; wherein the first request includes the first distributed digital identity DID information of the first user, and also includes the second DID information of the joint member digital certificate;

[0207] The processor 920 is used to verify the first DID information and the second DID information; and, if the verification is successful, perform authentication with the user equipment to obtain an authentication result of the first user.

[0208] Optionally, in the network device, the authentication between the processor and the user equipment includes:

[0209] Obtaining an encrypted authentication item in a digital certificate corresponding to the second DID information stored in the blockchain;

[0210] An authentication process is performed with the user equipment according to the encrypted authentication item.

[0211] Optionally, in the network device, the processor is further configured to:

[0212] Obtaining first information sent by a first service device; wherein the first information includes structural information of the digital certificate and encoding of multiple certificate information in the digital certificate; the digital certificate in the blockchain is stored in the blockchain by the first service device;

[0213] The encrypted authentication item is determined according to the first information, the encrypted information item in the smart contract of the blockchain, and the authentication information item required by the first platform device.

[0214] Optionally, in the network device, the processor performs authentication with the user device according to the encryption authentication item, including:

[0215] Sending the first encrypted information to the user equipment, where the first encrypted information includes the encrypted authentication item;

[0216] Acquire second encrypted information sent by the user equipment according to the first encrypted information;

[0217] Decrypting the second encrypted information using the private key of the first platform device to obtain first decrypted information;

[0218] Encrypting the first decrypted information using the public key of the first user to obtain third encrypted information;

[0219] The third encrypted information is compared with the encrypted authentication item to obtain an authentication result of the first user.

[0220] Optionally, in the network device, the processor is further configured to:

[0221] Obtain the public key of the first user according to the verification credential corresponding to the first DID information stored in the blockchain.

[0222] Optionally, in the network device, the processor verifies the first DID information and the second DID information, including:

[0223] Verify the legitimacy of the first DID information and the second DID information according to the verification credential corresponding to the first DID information and the digital credential corresponding to the second DID information stored in the blockchain;

[0224] When the legitimacy verification passes, the association relationship between the first DID information and the second DID information is verified based on the verification certificate corresponding to the first DID information and the digital certificate corresponding to the second DID information.

[0225] Optionally, in the network device, the transceiver is further used for:

[0226] Sending a second request to the first service device to request the third DID information of the first platform device; wherein the second request includes the public key of the first platform device;

[0227] Obtain the third DID information sent after the first service device generates the verification credential corresponding to the first platform device according to the second request and stores the verification credential corresponding to the first platform device in the blockchain.

[0228] One embodiment of the present application further provides a network device, wherein the network device is a user device. As shown in the figure, the user device includes a transceiver and a processor, and the transceiver is used to:

[0229] Acquire the first distributed digital identity DID information of the first user sent by the first service device, and acquire the second DID information of the digital certificate sent by the second platform device; wherein the digital certificate is the certificate of the joint member;

[0230] A first request is sent to the first platform device, where the first request is used to request authentication on the first platform device; wherein the first request includes the first DID information and the second DID information, so that the first platform device can verify the first DID information and the second DID information, and if the verification passes, perform authentication with the user device to obtain an authentication result of the first user.

[0231] Optionally, in the network device, the processor is configured to:

[0232] When the first platform device verifies the first DID information and the second DID information according to the verification credential corresponding to the first DID information and the digital credential corresponding to the second DID information stored in the blockchain, and the result is that the verification is passed, the first platform device performs an authentication process with the first platform device;

[0233] Obtain an authentication result of the first platform device on the first user.

[0234] Optionally, in the network device, the processor and the first platform device perform an authentication process, including:

[0235] Acquire first encrypted information sent by the first platform device, where the first encrypted information includes an encrypted authentication item, and the encrypted authentication item includes at least part of the credential information in the digital credential;

[0236] Decrypting the first encrypted information using the public key of the first user, and encrypting the decrypted information using the public key of the first platform device to obtain second encrypted information;

[0237] The second encrypted information is sent to the first platform device.

[0238] Optionally, in the network device, the transceiver is further used for:

[0239] A third request is sent to the first service device, where the third request is used to request to obtain the first DID; wherein the third request includes the public key and identity information of the first user.

[0240] Optionally, in the network device, the transceiver is further used for:

[0241] A fourth request is sent to the second platform device, where the fourth request is used to request to obtain the digital certificate, wherein the fourth request includes the first DID information.

[0242] Optionally, in the network device, the processor is further configured to:

[0243] Obtaining fourth encrypted information sent by the second platform device; wherein the fourth encrypted information is obtained by encrypting the first DID information using the public key of the first user;

[0244] Decrypting the fourth encrypted information according to the public key of the first user to obtain second decrypted information;

[0245] The second decrypted information is sent to the second platform device so that the second platform device can authenticate the first DID information.

[0246] One embodiment of the present application further provides a network device, wherein the network device is a second platform device, and the second platform device includes a transceiver and a processor, and is used to:

[0247] Obtaining second distributed digital identity DID information of a digital certificate sent by the first service device, wherein the digital certificate is a certificate of a joint member;

[0248] After obtaining a fourth request for requesting to obtain the digital certificate sent by a user device corresponding to the first user, the second DID information is sent to the user device.

[0249] Optionally, in the network device, the processor is configured to:

[0250] Generate the digital certificate according to the certificate template of the provided joint service; wherein the certificate template includes a plurality of certificate information, each of which corresponds to a code;

[0251] A fifth request is sent to the first service device, where the fifth request is used to request the second DID information of the digital certificate.

[0252] Optionally, in the network device, the transceiver is used for:

[0253] Sending credential registration information to the first service device for registering the certificate template.

[0254] Optionally, in the network device, the processor is used to:

[0255] Using the public key of the first user to encrypt the plurality of credential information in the digital certificate respectively, to obtain an encrypted digital certificate;

[0256] Upload the encrypted digital certificate to the blockchain.

[0257] Optionally, in the network device, the processor is used to:

[0258] Obtaining the fourth request sent by the user equipment, where the fourth request includes the first DID information;

[0259] authenticating the first DID information;

[0260] The transceiver sending the second DID information to the user equipment includes:

[0261] When the authentication of the first DID information is successful, the second DID information is sent to the user equipment.

[0262] Optionally, in the network device, the processor authenticates the first DID information, comprising:

[0263] Sending fourth encrypted information to the user equipment; wherein the fourth encrypted information is obtained by encrypting the first DID information using the public key of the first user;

[0264] Obtaining second decrypted information obtained by decrypting the fourth encrypted information by the user equipment according to the public key of the first user;

[0265] When the first DID information corresponding to the first user stored in the blockchain matches the second decrypted information, it is determined that the authentication of the first DID information is successful.

[0266] Optionally, in the network device, the transceiver is further used for:

[0267] The public key of the first user is obtained according to the correspondence between the first DID information stored in the blockchain and the corresponding public key of the first user.

[0268] Optionally, in the network device, the transceiver is further used for:

[0269] A smart contract for obtaining the digital certificate is set up on the blockchain; wherein the input conditions of the smart contract include the first DID information of the first user, the third DID information of the first platform device requested for authentication by the first user, the identification ID information of the digital certificate, one or more of the authentication information type and the authentication information item encoding; the output conditions of the smart contract include at least one credential information in the digital certificate.

[0270] One embodiment of the present application further provides a network device, wherein the network device is a first service device, the first service device includes a transceiver and a processor, and is configured to:

[0271] Sending first distributed digital identity DID information of a first user to a user device, and sending second DID information of a digital certificate to a second platform device; the digital certificate is a certificate of a joint member;

[0272] The second DID information is used to be provided by the second platform device to the user device, and the first DID information and the second DID information are used by the user device to obtain authentication of the joint service from the first platform device.

[0273] Optionally, in the network device, the transceiver is further used for:

[0274] Obtain a third request sent by the user device, where the third request is used to request to obtain the first DID; wherein the third request includes the public key and identity information of the first user.

[0275] Optionally, in the network device, the processor is configured to:

[0276] Generate a verification credential corresponding to the first user according to the public key and identity information of the first user;

[0277] Upload the verification certificate to the blockchain to obtain the corresponding first DID information.

[0278] Optionally, in the network device, the transceiver is further used for:

[0279] Obtain a fifth request sent by the second platform device, where the fifth request is used to request the second DID information of the digital certificate.

[0280] Optionally, in the network device, the transceiver is further used for:

[0281] Acquire the credential registration information sent by the second platform device, where the credential registration information is used to register a certificate template for generating the digital credential; wherein the certificate template includes a plurality of credential information, and each credential information corresponds to a code;

[0282] The certificate template is stored.

[0283] Optionally, in the network device, the processor is further configured to:

[0284] Obtaining a second request sent by a target platform device, where the second request is used to request third DID information of the target platform device; wherein the third request includes a public key of the target platform device, and the target platform device includes the first platform device and / or the second platform device;

[0285] Generate a verification credential corresponding to the target platform device according to the second request, store the verification credential corresponding to the target platform device in the blockchain, and obtain third DID information corresponding to the target platform device;

[0286] The third DID information corresponding to the verification information is sent to the target platform device.

[0287] One embodiment of the present application further provides an authentication device, which is applied to a first platform device, and the device includes:

[0288] A first receiving module is configured to receive a first request sent by a user device, wherein the first request is used to request the first user to be authenticated on the first platform device; wherein the first request includes the first distributed digital identity DID information of the first user, and also includes the second DID information of the joint member digital certificate;

[0289] A verification module, verifying the first DID information and the second DID information;

[0290] The authentication module is used to perform authentication with the user equipment when the verification is passed, and obtain the authentication result of the first user.

[0291] One embodiment of the present application further provides an authentication device, applied to a user equipment, the device comprising:

[0292] A first acquisition module is used to acquire the first distributed digital identity DID information of the first user sent by the first service device, and acquire the second DID information of the digital certificate sent by the second platform device; wherein the digital certificate is the certificate of the joint member;

[0293] The first sending module is used to send a first request to the first platform device, where the first request is used to request authentication on the first platform device; wherein the first request includes the first DID information and the second DID information, so that the first platform device can verify the first DID information and the second DID information, and if the verification is successful, perform authentication with the user device to obtain the authentication result of the first user.

[0294] One embodiment of the present application further provides an authentication device, which is applied to a second platform device, and the device includes:

[0295] A second acquisition module, configured to obtain second distributed digital identity DID information of a digital certificate sent by the first service device, wherein the digital certificate is a certificate of a joint member;

[0296] The second sending module is used to send the second DID information to the user equipment after obtaining the fourth request for requesting to obtain the digital certificate sent by the user equipment corresponding to the first user.

[0297] One embodiment of the present application further provides an authentication device, which is applied to a first service device, and includes:

[0298] A third sending module is used to send the first distributed digital identity DID information of the first user to the user device, and send the second DID information of the digital certificate to the second platform device; the digital certificate is the certificate of the joint member;

[0299] The second DID information is used to be provided by the second platform device to the user device, and the first DID information and the second DID information are used by the user device to obtain authentication of the joint service from the first platform device.

[0300] When the authentication device described in the embodiment of the present application is applied to the first platform device, the user device, the second platform device and the first service device, the specific implementation function of each module can be combined with the detailed description when each device executes the authentication method described in the embodiment of the present application, and will not be repeated here.

[0301] One embodiment of the present application further provides a network device, which includes a processor, a memory, and a program stored in the memory and executable on the processor, wherein the program implements the authentication method as described in any one of the above items when executed by the processor.

[0302] The specific implementation of the switching method executed by the program running on the processor of the network device can refer to the detailed description of the authentication method applied to the network device, which will not be repeated here.

[0303] In addition, a specific embodiment of the present application further provides a readable storage medium on which a computer program is stored, wherein when the program is executed by a processor, the steps in the authentication method described in any one of the above items are implemented.

[0304] Specifically, the readable storage medium is applied to the above-mentioned network device. When applied to any network device, the execution steps in the corresponding authentication method are described in detail above and will not be repeated here.

[0305] Another embodiment of the present application further provides a computer program product, which includes computer instructions, and when the computer instructions are executed by a processor, the steps in any of the authentication methods described above are implemented.

[0306] Optionally, the embodiments of the present application may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

[0307] The computer program product described in the embodiment of the present application includes computer instructions that implement the various processes of the authentication method embodiment shown above when executed by a processor, and can achieve the same technical effect. To avoid repetition, they are not repeated here.

[0308] The above is a preferred embodiment of the present application. It should be pointed out that for ordinary personnel in this technical field, several improvements and modifications can be made without departing from the principles described in the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

Claims

1. An authentication method, characterized in that: Executed by a first platform device, the method includes: Receive a first request sent by a user device, where the first request is used to request authentication of a first user on the first platform device; wherein the first request includes first distributed digital identity DID information of the first user, and also includes second DID information of a joint member digital certificate; Verifying the first DID information and the second DID information; If the verification is successful, authentication is performed with the user equipment to obtain an authentication result of the first user.

2. The authentication method according to claim 1, characterized in that: Performing authentication with the user equipment, including: Obtaining an encrypted authentication item in a digital certificate corresponding to the second DID information stored in the blockchain; An authentication process is performed with the user equipment according to the encrypted authentication item.

3. The authentication method according to claim 2, characterized in that: Performing authentication with the user equipment according to the encryption authentication item includes: Sending first encrypted information to the user equipment, where the first encrypted information includes the encrypted authentication item; Acquire second encrypted information sent by the user equipment according to the first encrypted information; Decrypting the second encrypted information using the private key of the first platform device to obtain first decrypted information; Encrypting the first decrypted information using the public key of the first user to obtain third encrypted information; The third encrypted information is compared with the encrypted authentication item to obtain an authentication result of the first user.

4. An authentication method, characterized in that: The method is performed by a user device and includes: Acquire the first distributed digital identity DID information of the first user sent by the first service device, and acquire the second DID information of the digital certificate sent by the second platform device; wherein the digital certificate is the certificate of the joint member; A first request is sent to a first platform device, where the first request is used to request authentication on the first platform device; wherein the first request includes the first DID information and the second DID information, so that the first platform device can verify the first DID information and the second DID information, and if the verification passes, perform authentication with the user device to obtain an authentication result of the first user.

5. An authentication method, characterized in that: Executed by a second platform device, the method includes: Obtaining second distributed digital identity DID information of the digital certificate sent by the first service device; wherein the digital certificate is the certificate of the joint member; After obtaining a fourth request for requesting to obtain the digital certificate sent by a user device corresponding to the first user, the second DID information is sent to the user device.

6. The authentication method according to claim 5, characterized in that: The method further comprises: Generate the digital certificate according to the certificate template of the provided joint service; wherein the certificate template includes a plurality of certificate information, each of which corresponds to a code; A fifth request is sent to the first service device, where the fifth request is used to request the second DID information of the digital certificate.

7. An authentication method, characterized in that: Executed by a first service device, the method includes: Sending first distributed digital identity DID information of a first user to a user device, and sending second DID information of a digital certificate to a second platform device; the digital certificate is a certificate of a joint member; The second DID information is used to be provided by the second platform device to the user device, and the first DID information and the second DID information are used by the user device to obtain authentication of the joint service corresponding to the joint member from the first platform device.

8. A network device, characterized in that: The invention comprises a processor, a memory, and a program stored in the memory and executable on the processor, wherein when the program is executed by the processor, the authentication method according to any one of claims 1 to 3 is implemented, or the authentication method according to claim 4 is implemented, or the authentication method according to any one of claims 5 to 6 is implemented, or the authentication method according to claim 7 is implemented.

9. A readable storage medium, characterized in that: The readable storage medium stores a program, and when the program is executed by the processor, it implements the steps in the authentication method as described in any one of claims 1 to 3, or implements the steps in the authentication method as described in claim 4, or implements the steps in the authentication method as described in any one of claims 5 to 6, or implements the steps in the authentication method as described in claim 7.

10. A computer program product, characterized in that The method comprises computer instructions, which, when executed by a processor, implement the steps in the authentication method as described in any one of claims 1 to 3, or implement the steps in the authentication method as described in claim 4, or implement the steps in the authentication method as described in any one of claims 5 to 6, or implement the steps in the authentication method as described in claim 7.