Identity authentication method, device and equipment, readable storage medium and program product

By using universal digital certificates for cross-platform identity authentication on the smart contract platform, the problems of high maintenance costs and unfriendly user operation caused by implementing identity authentication independently in different systems are solved, thereby reducing costs and improving security.

CN118981767APending Publication Date: 2024-11-19TENPAY PAID TECH +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411134677.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-19
Publication Date
2024-11-19

AI Technical Summary

Technical Problem

Existing identity authentication methods require separate implementation in different systems, resulting in high system maintenance costs and unfriendly user operation.

Method used

Cross-platform identity authentication can be achieved by applying for a universal digital certificate on a digital resource payment tool and registering and using the certificate's public key for signing on a smart contract platform.

Benefits of technology

It reduces the maintenance costs of different smart contract platforms, lowers the burden on users to remember account passwords for different platforms, improves user experience, and ensures the security of identity authentication.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118981767A_ABST
    Figure CN118981767A_ABST
Patent Text Reader

Abstract

The invention relates to an identity authentication method and device, computer equipment, a computer readable storage medium and a computer program product. The method comprises the following steps: in response to a digital certificate application operation triggered on a first payment tool according to identity information, sending a digital certificate request to a first intelligent contract platform; receiving a universal digital certificate which is returned by the first intelligent contract platform and corresponds to the identity information, and storing the universal digital certificate locally; in response to a digital certificate registration operation triggered on a second payment tool according to the identity information, registering a locally stored universal digital certificate to a second intelligent contract platform; and obtaining an interaction request generated by the second payment tool, signing the interaction request by using a certificate private key corresponding to a certificate public key in the general digital certificate, and sending the signed interaction request to the second smart contract platform, so as to perform identity authentication on the interaction request according to the general digital certificate, thereby reducing the maintenance cost of the system, and improving the user experience. And the operation experience of the user is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to an identity authentication method, apparatus, computer equipment, computer-readable storage medium, and computer program product. Background Art

[0002] Authentication, also known as identity verification or authorization, refers to verifying whether a user has the right to access the system. This process is designed to confirm the user's identity and ensure that they have the corresponding access rights, thereby protecting the security of the system and data and preventing unauthorized access.

[0003] There are currently many identity authentication methods, such as identity authentication based on username and password, identity authentication based on biometrics, identity authentication based on tokens, etc. However, these identity authentication methods require independent implementation of a set of identity authentication systems in different systems, resulting in high system maintenance costs and unfriendly user operations. Summary of the invention

[0004] Based on this, it is necessary to provide an identity authentication method, device, computer equipment, computer-readable storage medium and computer program product to address the above technical problems. The method can reduce the maintenance cost of the system and improve the user's operating experience.

[0005] In a first aspect, the present application provides an identity authentication method, comprising:

[0006] In response to a digital certificate application operation triggered according to identity information on a first payment tool based on digital resources, sending a digital certificate request to a first smart contract platform corresponding to the first payment tool;

[0007] Receiving a universal digital certificate corresponding to the identity information and issued by a digital certificate issuing authority and returned by the first smart contract platform in response to the digital certificate request, and storing the universal digital certificate locally;

[0008] In response to a digital certificate registration operation triggered according to identity information on a second payment instrument based on digital resources, registering the locally stored universal digital certificate to a second smart contract platform corresponding to the second payment instrument;

[0009] Obtain an interaction request generated by the second payment tool, sign the interaction request using the certificate private key corresponding to the certificate public key in the universal digital certificate, and send the signed interaction request to the second smart contract platform to instruct the second smart contract platform to perform identity authentication on the interaction request based on the universal digital certificate.

[0010] In a second aspect, the present application also provides an identity authentication device, comprising:

[0011] An application module, configured to send a digital certificate request to a first smart contract platform corresponding to a first payment tool in response to a digital certificate application operation triggered according to identity information on a first payment tool based on digital resources;

[0012] A storage module, configured to receive a universal digital certificate corresponding to the identity information and issued by a digital certificate issuing authority and returned by the first smart contract platform in response to the digital certificate request, and store the universal digital certificate locally;

[0013] A registration module, configured to register the locally stored universal digital certificate to a second smart contract platform corresponding to the second payment instrument in response to a digital certificate registration operation triggered according to identity information on a second payment instrument based on digital resources;

[0014] The interactive authentication module is used to obtain the interactive request generated by the second payment tool, sign the interactive request using the certificate private key corresponding to the certificate public key in the universal digital certificate, and send the signed interactive request to the second smart contract platform to instruct the second smart contract platform to perform identity authentication on the interactive request according to the universal digital certificate.

[0015] In a third aspect, the present application further provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:

[0016] In response to a digital certificate application operation triggered according to identity information on a first payment tool based on digital resources, sending a digital certificate request to a first smart contract platform corresponding to the first payment tool;

[0017] Receiving a universal digital certificate corresponding to the identity information and issued by a digital certificate issuing authority and returned by the first smart contract platform in response to the digital certificate request, and storing the universal digital certificate locally;

[0018] In response to a digital certificate registration operation triggered according to identity information on a second payment instrument based on digital resources, registering the locally stored universal digital certificate to a second smart contract platform corresponding to the second payment instrument;

[0019] Obtain an interaction request generated by the second payment tool, sign the interaction request using the certificate private key corresponding to the certificate public key in the universal digital certificate, and send the signed interaction request to the second smart contract platform to instruct the second smart contract platform to perform identity authentication on the interaction request based on the universal digital certificate.

[0020] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the following steps are implemented:

[0021] In response to a digital certificate application operation triggered according to identity information on a first payment tool based on digital resources, sending a digital certificate request to a first smart contract platform corresponding to the first payment tool;

[0022] Receiving a universal digital certificate corresponding to the identity information and issued by a digital certificate issuing authority and returned by the first smart contract platform in response to the digital certificate request, and storing the universal digital certificate locally;

[0023] In response to a digital certificate registration operation triggered according to identity information on a second payment instrument based on digital resources, registering the locally stored universal digital certificate to a second smart contract platform corresponding to the second payment instrument;

[0024] Obtain an interaction request generated by the second payment tool, sign the interaction request using the certificate private key corresponding to the certificate public key in the universal digital certificate, and send the signed interaction request to the second smart contract platform to instruct the second smart contract platform to perform identity authentication on the interaction request based on the universal digital certificate.

[0025] In a fifth aspect, the present application further provides a computer program product, including a computer program, which implements the following steps when executed by a processor:

[0026] In response to a digital certificate application operation triggered according to identity information on a first payment tool based on digital resources, sending a digital certificate request to a first smart contract platform corresponding to the first payment tool;

[0027] Receiving a universal digital certificate corresponding to the identity information and issued by a digital certificate issuing authority and returned by the first smart contract platform in response to the digital certificate request, and storing the universal digital certificate locally;

[0028] In response to a digital certificate registration operation triggered according to identity information on a second payment instrument based on digital resources, registering the locally stored universal digital certificate to a second smart contract platform corresponding to the second payment instrument;

[0029] Obtain an interaction request generated by the second payment tool, sign the interaction request using the certificate private key corresponding to the certificate public key in the universal digital certificate, and send the signed interaction request to the second smart contract platform to instruct the second smart contract platform to perform identity authentication on the interaction request based on the universal digital certificate.

[0030] The above-mentioned identity authentication method, apparatus, computer device, computer-readable storage medium and computer program product, in response to a digital certificate application operation triggered according to identity information on a first payment tool based on digital resources, sends a digital certificate request to a first smart contract platform corresponding to the first payment tool, receives a universal digital certificate corresponding to the identity information issued by a digital certificate issuing authority and returned by the first smart contract platform in response to the digital certificate request, and stores the universal digital certificate locally. In this way, in response to a digital certificate registration operation triggered according to identity information on a second payment tool based on digital resources, the locally stored universal digital certificate can be registered to a second smart contract corresponding to the second payment tool. The platform then, after obtaining the interaction request generated by the second payment tool, can use the certificate private key corresponding to the certificate public key in the universal digital certificate to sign the interaction request, and then send the signed interaction request to the second smart contract platform to instruct the second smart contract platform to perform identity authentication on the interaction request according to the universal digital certificate. This method can realize universal identity authentication on different smart contract platforms. Compared with implementing a set of identity authentication on each different smart contract platform, it can reduce the maintenance cost of each different smart contract platform. Users do not need to remember the account passwords of different platforms, which can reduce the user's operating burden, improve the user experience, and ensure the security of identity authentication.

[0031] In a sixth aspect, the present application provides an identity authentication method, comprising:

[0032] Receiving a digital certificate registration request sent by a second payment tool based on digital resources according to identity information and a locally stored universal digital certificate, wherein the universal digital certificate is applied for by a first payment tool based on digital resources from a digital certificate issuing authority according to identity information on a first smart contract platform and stored locally;

[0033] When the identity information is compared with the identity information contained in the universal digital certificate and the legitimacy of the universal digital certificate is verified to be consistent, registering the user identifier corresponding to the identity information with the universal digital certificate;

[0034] When receiving an interaction request sent by the second payment tool based on the universal digital certificate and the user identification, the interaction request is authenticated according to the universal digital certificate registered corresponding to the user identification.

[0035] In a seventh aspect, the present application also provides an identity authentication device, including:

[0036] A receiving module, used to receive a digital certificate registration request sent by a second payment tool based on digital resources according to identity information and a locally stored universal digital certificate, wherein the universal digital certificate is applied for by a first payment tool based on digital resources from a digital certificate issuing authority on a first smart contract platform according to identity information and stored locally;

[0037] A registration module, used for registering the user identification corresponding to the identity information with the universal digital certificate in correspondence with each other when the identity information is compared with the identity information contained in the universal digital certificate and the legitimacy of the universal digital certificate is verified;

[0038] The identity authentication module is used to, when receiving an interaction request sent by the second payment tool based on the universal digital certificate and the user identification, authenticate the interaction request according to the universal digital certificate registered corresponding to the user identification.

[0039] In an eighth aspect, the present application further provides a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:

[0040] Receiving a digital certificate registration request sent by a second payment tool based on digital resources according to identity information and a locally stored universal digital certificate, wherein the universal digital certificate is applied for by a first payment tool based on digital resources from a digital certificate issuing authority according to identity information on a first smart contract platform and stored locally;

[0041] When the identity information is compared with the identity information contained in the universal digital certificate and the legitimacy of the universal digital certificate is verified to be consistent, registering the user identifier corresponding to the identity information with the universal digital certificate;

[0042] When receiving an interaction request sent by the second payment tool based on the universal digital certificate and the user identification, the interaction request is authenticated according to the universal digital certificate registered corresponding to the user identification.

[0043] In a ninth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the following steps are implemented:

[0044] Receiving a digital certificate registration request sent by a second payment tool based on digital resources according to identity information and a locally stored universal digital certificate, wherein the universal digital certificate is applied for by a first payment tool based on digital resources from a digital certificate issuing authority according to identity information on a first smart contract platform and stored locally;

[0045] When the identity information is compared with the identity information contained in the universal digital certificate and the legitimacy of the universal digital certificate is verified to be consistent, registering the user identifier corresponding to the identity information with the universal digital certificate;

[0046] When receiving an interaction request sent by the second payment tool based on the universal digital certificate and the user identification, the interaction request is authenticated according to the universal digital certificate registered corresponding to the user identification.

[0047] In a tenth aspect, the present application further provides a computer program product, including a computer program, which implements the following steps when executed by a processor:

[0048] Receiving a digital certificate registration request sent by a second payment tool based on digital resources according to identity information and a locally stored universal digital certificate, wherein the universal digital certificate is applied for by a first payment tool based on digital resources from a digital certificate issuing authority according to identity information on a first smart contract platform and stored locally;

[0049] When the identity information is compared with the identity information contained in the universal digital certificate and the legitimacy of the universal digital certificate is verified to be consistent, registering the user identifier corresponding to the identity information with the universal digital certificate;

[0050] When receiving an interaction request sent by the second payment tool based on the universal digital certificate and the user identification, the interaction request is authenticated according to the universal digital certificate registered corresponding to the user identification.

[0051] In the above-mentioned identity authentication method, apparatus, computer device, computer-readable storage medium and computer program product, the universal digital certificate is applied for and stored locally by the first payment tool based on digital resources from the digital certificate issuing authority to the first smart contract platform according to the identity information, so that the second payment tool based on digital resources can register the universal digital certificate stored locally to the second smart contract platform, that is, by receiving the digital certificate registration request sent by the second payment tool based on digital resources according to the identity information and the universal digital certificate stored locally, when the identity information is compared with the identity information contained in the universal digital certificate and the legitimacy of the universal digital certificate is consistent, the user identifier corresponding to the identity information is registered with the universal digital certificate; in this way, when the interaction request sent by the second payment tool based on the universal digital certificate and the user identifier is received, the interaction request is authenticated according to the universal digital certificate registered corresponding to the user identifier, so that universal identity authentication can be realized on different smart contract platforms. Compared with realizing a set of identity authentication on each different smart contract platform, the maintenance cost of each different smart contract platform can be reduced, and the user does not need to remember the account password of different platforms, which can reduce the user's operation burden, improve the user experience, and ensure the security of identity authentication. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0053] Figure 1 A schematic diagram of implementing identity authentication in a smart contract platform in related technologies;

[0054] Figure 2 A schematic diagram of implementing identity authentication in various smart contract platforms in one embodiment;

[0055] Figure 3 It is a schematic diagram of implementing identity authentication in various smart contract platforms in another embodiment;

[0056] Figure 4 An application environment diagram of an identity authentication method in an embodiment;

[0057] Figure 5 A schematic diagram of a flow chart of an identity authentication method in an embodiment;

[0058] Figure 6is a schematic diagram of interaction of a smart prepaid card based on digital resources in one embodiment;

[0059] Figure 7 is a timing diagram of an identity authentication method in an embodiment;

[0060] Figure 8 is a flow chart of an identity authentication method in another embodiment;

[0061] Fig. 9 is a structural block diagram of an identity authentication device in one embodiment;

[0062] Fig.10 is a structural block diagram of an identity authentication device in one embodiment;

[0063] Fig.11 is an internal structure diagram of a computer device in one embodiment;

[0064] Fig.12 FIG. 4 is a diagram showing the internal structure of a computer device in another embodiment. DETAILED DESCRIPTION

[0065] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0066] In the related art, there are many identity authentication methods, such as identity authentication based on username and password, identity authentication based on biometrics, and identity authentication based on tokens.

[0067] Among them, the implementation process of identity authentication based on username and password includes: 1. User registration: When a user registers an account in the system, he needs to provide a unique username and a password. The system will encrypt the password provided by the user to ensure the security of the password. 2. User login: When a user logs in to the system, he needs to enter his username and password. The system will encrypt the password entered by the user and compare it with the password stored in the system. If the comparison is successful, it means that the user identity authentication is passed and can enter the system. 3. Password management: Users can modify their passwords in the system. When users modify their passwords, the system will encrypt the new password and update the password stored in the system. 4. Password reset: If the user forgets his password, he can reset the password through the password reset function provided by the system. During the password reset process, the system will provide the user with a temporary password. The user needs to use the temporary password to log in to the system and modify his password after logging in. 5. Password security: In order to improve the security of passwords, the system should use encryption algorithms to encrypt passwords. At the same time, complexity requirements should be set for user passwords, such as password length and password complexity. In addition, the system should regularly prompt users to change passwords to avoid the risk of password leakage.

[0068] Among them, the implementation process of identity authentication based on biometrics includes: 1. Biometric collection: The system needs to collect and enter the user's biometrics first. These biometrics can include fingerprints, facial recognition, iris recognition, voiceprint recognition, etc. The collection process requires the use of special biometric collection equipment, and the collected biometric information is stored in the system. 2. Biometric identification: When the user performs identity authentication, the system needs to use the biometric recognition algorithm to compare and identify the biometric information provided by the user. If the identification is successful, it means that the user's identity authentication has passed and can enter the system. 3. Biometric management: The system needs to manage the user's biometric information. For example, when the user's biometric changes, the system needs to update the user's biometric information in a timely manner to ensure the accuracy of identity authentication. 4. Biometric security: In order to protect the security of the user's biometric information, the system should use an encryption algorithm to encrypt the biometric information and limit the access to the information. In addition, the system should regularly check and update the biometric collection equipment to ensure the security and accuracy of the equipment.

[0069] Among them, the implementation process of identity authentication based on biometrics includes: 1. Token generation: The system needs to generate a token for the user. This token can be in the form of a hardware token, a software token or a mobile phone text message. When generating the token, the system needs to use an encryption algorithm to encrypt the token to ensure the security of the token. 2. Token transmission: When the user performs identity authentication, the system will send a random challenge code to the user. The user needs to use his own token to calculate a response code and pass the response code to the system. The system will compare the response code provided by the user with the response code calculated by itself to determine whether the user's identity is legal. 3. Token management: The system needs to manage the user's token information. For example, when the user's token is lost or stolen, the system needs to cancel the token in time and regenerate a new token for the user. 4. Token security: In order to protect the security of the user's token information, the system should use an encryption algorithm to encrypt the token and limit the authority to access the information. In addition, the system should also regularly check and update the token to ensure the security and accuracy of the token.

[0070] In identity authentication based on username and password, in order to improve the security of passwords, the system usually requires users to set complex passwords, such as password length and password complexity, which will increase the user's memory burden and is not user-friendly. It may also cause users to choose simple passwords, thereby reducing the security of passwords. In addition, identity authentication based on username and password requires users to manually enter usernames and passwords, which increases the user's operating burden and the system's maintenance cost. In identity authentication based on biometrics, biometric information may be affected by factors such as environment, age, and disease, resulting in reduced recognition accuracy. Biometric information may also be simulated or forged, resulting in limited security of identity authentication. In identity authentication based on tokens, tokens may be lost or stolen, resulting in threats to the security of identity authentication.

[0071] like Figure 1 As shown in FIG, it is a schematic diagram of implementing identity authentication in a smart contract platform in the related technology. Figure 1 Each smart contract instance in the smart contract platform needs to collect and store user information for identity authentication, which can easily lead to sensitive information leakage. The security of identity authentication cannot be guaranteed, and the same user needs to upload user information for identity authentication for different smart contract instances, thereby increasing the user's operating burden and the system maintenance cost.

[0072] To this end, the embodiment of the present application provides an identity authentication method, which is based on a universal digital certificate and can realize universal identity authentication on different smart contract platforms of digital resources. Specifically, a universal digital certificate is issued to the user by an authoritative digital certificate issuing agency, and the user-side terminal saves the certificate private key. Each smart contract platform stores the user's certificate public key. When the user interacts with each smart contract platform, the certificate private key is used for signing, and each smart contract platform uses the corresponding certificate public key for signature verification, thereby realizing identity authentication. This method uses a unified universal digital certificate for identity authentication, avoiding the need for each smart contract platform to implement a password system, which can reduce the maintenance cost of each different smart contract platform. Users do not need to remember the account passwords of different platforms, which can reduce the user's operating burden, improve the user experience, and ensure the security of identity authentication.

[0073] like Figure 2 FIG. 1 is a schematic diagram of implementing identity authentication in various smart contract platforms in one embodiment. Figure 2 When users need to interact on multiple different smart contract platforms, they only need to register the universal digital certificate to the corresponding smart contract platform, and the corresponding smart contract platform can complete the user's identity authentication and provide users with the corresponding instance service of the smart contract. Figure 2 It can be seen that only the smart contract platform needs to store the user's universal digital certificate. Each smart contract instance does not need to collect and store user information for identity authentication. When identity authentication is required, it only needs to obtain the certificate public key in the universal digital certificate. In this way, the security of identity authentication can be guaranteed.

[0074] like Figure 3 FIG. 1 is a schematic diagram of implementing identity authentication in various smart contract platforms in another embodiment. Figure 3 When users with the same identity information need to call different smart contract instances in the smart contract platform to provide related services about digital resources, they do not need to upload the universal digital certificate separately. They only need to register once on the smart contract platform. When identity authentication is required, each smart contract instance only needs to obtain the certificate public key in the universal digital certificate from the platform, thereby reducing the user's operating burden and the maintenance cost of each smart contract platform.

[0075] The identity authentication method provided in the embodiment of the present application can be applied to Figure 4In the application environment shown. Among them, the terminal 102 communicates with each smart contract platform 104 through the network. The data storage system can store data that the smart contract platform 104 needs to process, such as a universal digital certificate registered by a user. The data storage system can be integrated on the smart contract platform 104, or it can be placed on the cloud or other network servers. In some embodiments, a payment tool is running on the terminal 102, such as a first payment tool based on digital resources, a second payment tool based on digital resources, and so on. Different payment tools are provided by different operators of digital resources. Computation services for digital resources, for example, the smart contract platform 104 can be divided into a first smart contract platform 1042 corresponding to the first payment tool, a second smart contract platform 1044 corresponding to the second payment tool, and so on according to the computing services provided for different payment tools. The first payment tool and the second payment tool can be provided by independent clients, or by the same client, for example, a plurality of payment tools for digital resources provided by different operating agencies are integrated on the same client.

[0076] In one embodiment, applied to Figure 4 The identity authentication method in the application environment shown includes the following processes: 1. Application for a universal digital certificate, 2. Issuance of a universal digital certificate, 3. Registration of the universal digital certificate to the smart contract platforms of different digital resource operating organizations, and 4. Interaction with different smart contract platforms based on the universal digital certificate. Specifically, the terminal 102 sends a digital certificate request to the first smart contract platform 1042 corresponding to the first payment tool in response to a digital certificate application operation triggered according to identity information on a first payment tool based on digital resources; receives a universal digital certificate corresponding to the identity information issued by the digital certificate issuing authority 106 and returned by the first smart contract platform 1042 in response to the digital certificate request, and stores the universal digital certificate locally; the terminal 102 registers the locally stored universal digital certificate to the second smart contract platform 1044 corresponding to the second payment tool in response to a digital certificate registration operation triggered according to identity information on a second payment tool based on digital resources; the terminal 102 obtains an interaction request generated by the second payment tool, signs the interaction request using the certificate private key corresponding to the certificate public key in the universal digital certificate, and sends the signed interaction request to the second smart contract platform 1044 to instruct the second smart contract platform 1044 to perform identity authentication on the interaction request based on the universal digital certificate.

[0077] In one embodiment, the second smart contract platform 1044 receives a digital certificate registration request sent by a second payment tool based on digital resources on the terminal 102 according to identity information and a universal digital certificate stored locally, wherein the universal digital certificate is applied for and stored locally by the first payment tool based on digital resources on the terminal 102 from the digital certificate issuing authority 106 to the first smart contract platform 1042 according to the identity information; the second smart contract platform 1044 registers the user identifier corresponding to the identity information with the universal digital certificate when the identity information is compared with the identity information contained in the universal digital certificate and the legitimacy of the universal digital certificate is verified to be consistent; the second smart contract platform 1044 performs identity authentication on the interaction request based on the universal digital certificate and user identifier sent by the second payment tool on the terminal 102. The universal digital certificate registered corresponding to the user identifier.

[0078] The terminal 102 may be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, IoT devices, and portable wearable devices. IoT devices may be smart speakers, smart TVs, smart air conditioners, smart car devices, projection devices, etc. Portable wearable devices may be smart watches, smart bracelets, head-mounted devices, etc. Head-mounted devices may be virtual reality (VR) devices, augmented reality (AR) devices, smart glasses, etc. The smart contract platform 104 may be an independent physical server, a server cluster or distributed system consisting of multiple physical servers, or a cloud server that provides cloud computing services.

[0079] In an exemplary embodiment, Figure 5 As shown, an identity authentication method is provided, which is applied to Figure 1 The terminal 102 in the example is used as an example to illustrate, including the following steps 502 to 508. Among them:

[0080] Step 502, in response to a digital certificate application operation triggered according to identity information on a first payment tool based on digital resources, a digital certificate request is sent to a first smart contract platform corresponding to the first payment tool.

[0081] A digital certificate is information that marks the identity of a communication party in network communication and is used to identify the identity of the communication party. A digital certificate provides a way to verify the identity of a communication entity on the Internet, so a digital certificate is generally issued by an authoritative CA (Certificate Authority). The digital certificate application operation is used to apply for a digital certificate based on identity information. In the embodiment of the present application, the application is for a universal digital certificate that is commonly used in multiple smart contract platforms. A user can use a terminal to trigger a digital certificate application operation based on identity information on any payment tool, thereby sending a digital certificate application. Here, the payment tool that triggers the digital certificate application operation is called the first payment tool, which can be any payment tool.

[0082] In a specific embodiment, the digital resource account on the first payment tool is associated with the identity information. When the first payment tool is logged in with the identity information, the user can trigger the digital certificate application operation according to the identity information. The terminal responds to the digital certificate application operation, generates a digital certificate application operation, and sends a digital certificate request to the first smart contract platform corresponding to the first payment tool. The identity information can be user ID information, user face information, user mobile phone number, etc. In a specific application scenario, when a user needs to use the smart contract service provided by the smart contract platform (such as the prepaid card verification service), he needs to first fill in his identity information on the payment tool provided by the smart contract platform, and then initiate a certificate application based on the identity information. The smart contract platform applies for a digital certificate for the user from the certificate authority, and based on the digital certificate, the verification of the prepaid card can be initiated.

[0083] In one embodiment, the digital certificate generation request may also carry the certificate public key generated by the terminal. That is, in response to the digital certificate application operation triggered by the identity information on the first payment tool based on the digital resource, a digital certificate request is sent to the first smart contract platform corresponding to the first payment tool, including: in response to the digital certificate application operation triggered by the identity information on the first payment tool based on the digital resource, a key pair is generated, the key pair includes a certificate public key and a certificate private key, and the certificate private key is encrypted and stored locally; a digital certificate request is generated according to the identity information and the certificate public key in the key pair; and the digital certificate request is sent to the first smart contract platform corresponding to the first payment tool.

[0084] The public key and private key are a key pair obtained through an algorithm. The public key is the public key in the key pair, and the private key is the non-public key. The public key is usually used to encrypt session keys or verify digital signatures. The terminal can generate a key pair through an algorithm, and the key pair is used to apply for a universal digital certificate. Therefore, the key pair is also called a certificate public key and a certificate private key. When a universal digital certificate needs to be applied for, the terminal generates a key pair, stores the certificate private key locally (can be encrypted storage), and generates a digital certificate request based on the certificate public key and identity information, so that the digital certificate issuing authority can write the certificate public key into the universal digital certificate when issuing a universal digital certificate for the identity information. In this way, the subsequent terminal can use the certificate private key to sign the interaction request sent, and the recipient of the interaction request can authenticate the interaction request through the certificate public key in the universal digital certificate to determine that the interaction request is sent by the user corresponding to the identity information, thereby achieving identity authentication.

[0085] Smart contracts are computer protocols designed to disseminate, verify or execute contracts in an information-based manner. They allow trusted transactions to be conducted without a third party, and these transactions are traceable and irreversible. In the embodiments of the present application, smart contracts can be understood as a program that can be automatically executed when the set conditions are met, which has the characteristics of anti-repudiation and anti-tampering.

[0086] Smart contracts for digital resources, with their unique technical features such as mandatory performance, automatic execution, and traceability, can support payment modes such as targeted payment, targeted account splitting, and prepayment. For example, a smart contract can be a prepaid card smart contract that provides prepaid card related services. In a specific application scenario, such as Figure 6 FIG. 1 is a product introduction diagram of a smart prepaid card based on digital resources in one embodiment. Figure 6 , users purchase prepaid cards from merchants that issue prepaid cards. The user's prepaid funds are managed by the smart contract platform of the digital resource operator in the form of digital resources and transferred to the merchant after the actual consumption is completed. In other words, when a user purchases a prepaid card service through a payment tool, his prepaid funds enter the digital resource account of the smart contract platform corresponding to the payment tool (used to load the prepaid card smart contract). Before actual consumption, the prepaid funds still belong to the user, and the user can view the fund balance and consumption records through the payment tool. When consuming, the prepaid card smart contract will automatically transfer funds to the merchant's digital resource account based on preset conditions. When consumers apply for card return or cancellation of service according to the card purchase agreement, the prepaid card smart contract will ensure that the prepaid funds are accurately and efficiently returned to the user's digital resource account.

[0087] Step 504: Receive a universal digital certificate corresponding to the identity information issued by a digital certificate issuing authority and returned by the first smart contract platform in response to the digital certificate request, and store the universal digital certificate locally.

[0088] After receiving the digital certificate request sent by the terminal, the first smart contract platform corresponding to the first payment tool forwards the digital certificate request to the digital certificate issuing authority, where the digital certificate issuing authority is a computer device that provides authentication services for the authentication center. The digital certificate issuing authority will issue the corresponding universal digital certificate based on the identity information and return it to the first smart contract platform, which will then forward it to the terminal.

[0089] In the embodiment of the present application, the universal digital certificate is a file digitally signed by a digital certificate issuing authority, which is used to prove the identity of the user. The universal digital certificate may contain the user's identity information and certificate public key, and may also be accompanied by the signature information of the digital certificate issuing authority, and may also include information such as the validity date of the certificate. The universal digital certificate can be generated by the digital certificate issuing authority after identity authentication based on the identity information.

[0090] In one embodiment, the step of issuing a universal digital certificate by a digital certificate issuing authority includes: receiving a digital certificate request forwarded by a first smart contract platform; authenticating the identity information carried in the digital certificate request; after the identity authentication is passed, generating a to-be-signed universal digital certificate corresponding to the identity information, wherein the universal digital certificate includes the identity information and the certificate public key in the key pair; digitally signing the universal digital certificate using the private key of the digital certificate issuing authority, and returning the digitally signed universal digital certificate to the first smart contract platform.

[0091] In one embodiment, the digital certificate issuing authority authenticates the identity information carried in the digital certificate request, which may be to send the identity information to each consensus node for identity authentication (for example, broadcast the identity information in the blockchain), and each consensus node authenticates the identity according to the identity information to obtain its own verification result. After each consensus node receives the identity information, it can compare the received identity information with the pre-stored identity information of the terminal to confirm whether the received identity information is consistent with the stored identity information. When they are consistent, it is confirmed that the received identity information is true, and the verification result corresponding to the consensus node is that the identity authentication is passed, otherwise, the verification result is that the identity authentication is not passed. Finally, the final identity authentication result is determined according to the verification results corresponding to each consensus node. For example, when determining the final identity authentication result, at least one of the first number corresponding to the consensus nodes whose verification results are passed and the second number corresponding to the consensus nodes whose verification results are not passed can be obtained, and the final identity authentication result is determined according to at least one of the first number and the second number. When it is finally determined that the identity authentication is passed, the digital certificate issuing authority generates a universal digital certificate to be signed corresponding to the identity information, and the generated universal digital certificate contains the identity information and the certificate public key in the key pair. In order to ensure the validity and authenticity of the universal digital certificate, the digital certificate issuing authority uses its own private key to digitally sign the universal digital certificate and returns the digitally signed universal digital certificate to the first smart contract platform.

[0092] In one embodiment, after the first smart contract platform receives the digitally signed universal digital certificate sent by the digital certificate issuing authority, before the first smart contract platform returns the universal digital certificate corresponding to the identity information in response to the digital certificate request, the first smart contract platform uses the public key of the digital certificate issuing authority to verify the legitimacy of the universal digital certificate, and after the verification is passed, returns the universal digital certificate corresponding to the identity information in response to the digital certificate request. To this end, it can be confirmed that the received universal digital certificate is generated by the digital certificate issuing authority, and the authenticity, validity and integrity of the universal digital certificate can be ensured.

[0093] In one of the embodiments, the step of the first smart contract platform using the public key of the digital certificate issuing authority to verify the legitimacy of the universal digital certificate includes: the first smart contract platform obtains the public key of the digital certificate issuing authority, uses the public key of the digital certificate issuing authority to decrypt the digital signature in the universal digital certificate to obtain decrypted data, and uses a hash function (also called a hash function) to perform a hash operation on the identity information and the certificate public key contained in the universal digital certificate to obtain a hash value; when the decrypted data is the same as the calculated hash value, it is determined that the legitimacy verification of the universal digital certificate has passed; when the decrypted data is different from the calculated hash value, it is determined that the legitimacy verification of the universal digital certificate has failed.

[0094] After the terminal obtains the universal digital certificate, the universal digital certificate may be stored locally. Optionally, the certificate private key used to generate the universal digital certificate may be encrypted and stored locally.

[0095] Of course, the first smart contract platform can also directly return the received universal digital certificate to the terminal, and after receiving the universal digital certificate, the terminal verifies the legitimacy of the universal digital certificate, and after passing the verification, stores the universal digital certificate locally. That is, in one embodiment, after receiving the universal digital certificate, the terminal uses the public key of the digital certificate issuing authority to decrypt the digital signature in the universal digital certificate to obtain decrypted data, and uses a hash function to perform a hash operation on the identity information and the certificate public key contained in the universal digital certificate to obtain a hash value; if the decrypted data is the same as the calculated hash value, the step of storing the universal digital certificate locally is performed, and if the decrypted data is different from the calculated hash value, it is prompted that the application for the universal digital certificate has failed.

[0096] Step 506, in response to a digital certificate registration operation triggered according to identity information on a second payment tool based on digital resources, register the locally stored universal digital certificate to a second smart contract platform corresponding to the second payment tool.

[0097] In order to avoid implementing a set of identity authentication on each different smart contract platform and reduce the maintenance cost of each different smart contract platform, when the terminal needs to use the smart contract service provided by other smart contract platforms, it can register the applied universal digital certificate to other smart contract platforms. The user can trigger the digital certificate registration operation according to the identity information on the second payment tool based on the digital resource, and the terminal can respond to the digital certificate registration operation and register the locally stored universal digital certificate to the second smart contract platform corresponding to the second payment tool.

[0098] In one embodiment, in response to a digital certificate registration operation triggered according to identity information on a second payment instrument based on a digital resource, registering a locally stored universal digital certificate to a second smart contract platform corresponding to the second payment instrument includes:

[0099] In response to a digital certificate registration operation triggered by identity information on a second payment instrument based on digital resources, a digital certificate registration request is generated based on the identity information and the locally stored universal digital certificate, and the digital certificate registration request is sent to a second smart contract platform corresponding to the second payment instrument, so that the second smart contract platform registers the user identifier corresponding to the identity information with the universal digital certificate when the identity information is compared with the identity information contained in the universal digital certificate and the legitimacy of the universal digital certificate is verified to be consistent.

[0100] The user identification corresponding to the identity information is registered in correspondence with the universal digital certificate, so that when an interaction request initiated based on the identity information is received, the corresponding universal digital certificate can be queried, and the interaction request is authenticated based on the queried universal digital certificate.

[0101] Before registering the user identifier corresponding to the identity information with the universal digital certificate, the second smart contract platform needs to compare whether the identity information is consistent with the identity information contained in the universal digital certificate, and verify the legitimacy of the universal digital certificate, so as to ensure the authenticity and validity of the universal digital certificate. Specifically, in one embodiment, the step of the second smart contract platform verifying the legitimacy of the universal digital certificate includes: the second smart contract platform obtains the public key of the digital certificate issuing authority, uses the public key of the digital certificate issuing authority to decrypt the digital signature in the universal digital certificate to obtain decrypted data, and uses the hash function to perform a hash operation on the identity information and the certificate public key contained in the universal digital certificate to obtain a hash value; when the decrypted data is the same as the calculated hash value, it is determined that the legitimacy verification of the universal digital certificate has passed, and when the decrypted data is different from the calculated hash value, it is determined that the legitimacy verification of the universal digital certificate has not passed.

[0102] Step 508, obtain the interaction request generated by the second payment tool, sign the interaction request using the certificate private key corresponding to the certificate public key in the universal digital certificate, and send the signed interaction request to the second smart contract platform to instruct the second smart contract platform to authenticate the interaction request based on the universal digital certificate.

[0103] like Figure 7 FIG. 1 is a timing diagram of an identity authentication method in an embodiment. Figure 7The method involves the terminal used by the user, various smart contract platforms and an authoritatively certified digital certificate issuing agency. The detailed principle involves the following steps: 1. The user uses the terminal to generate a key pair for applying for a digital certificate, which includes a certificate private key and a certificate public key. 2. The user uses any payment tool on the terminal (such as the first payment tool) to apply for a digital certificate from the corresponding smart contract platform according to the identity information. 3. The terminal generates a digital certificate request and sends the digital certificate request to the first smart contract platform corresponding to the first payment tool. 4. The first smart contract platform forwards the digital certificate request to the digital certificate issuing agency. 5. The digital certificate issuing agency issues a universal digital certificate for the identity information. 6. The universal digital certificate is returned to the first smart contract platform. Contract platform, 7. The first smart contract platform returns the universal digital certificate to the terminal, 8. The user uses the second payment tool on the terminal to apply for registration of the universal digital certificate to the second smart contract platform, 9. After the second smart contract platform verifies the legitimacy of the universal digital certificate, it registers the user identifier corresponding to the identity information with the universal digital certificate, 10. The user uses the second payment tool on the terminal to initiate an interaction request, signs the interaction request with the certificate private key corresponding to the certificate public key in the universal digital certificate, and sends the signed interaction request to the second smart contract platform, 11. The second smart contract platform authenticates the interaction request based on the universal digital certificate. After the identity authentication is passed, the smart contract is called to process the interaction request and the processing result is returned.

[0104] The above-mentioned identity authentication method, by responding to the digital certificate application operation triggered according to the identity information on the first payment tool based on the digital resource, sends a digital certificate request to the first smart contract platform corresponding to the first payment tool, receives the universal digital certificate corresponding to the identity information issued by the digital certificate issuing authority returned by the first smart contract platform in response to the digital certificate request, and stores the universal digital certificate locally. In this way, in response to the digital certificate registration operation triggered according to the identity information on the second payment tool based on the digital resource, the locally stored universal digital certificate is registered to the second smart contract platform corresponding to the second payment tool, and then, when obtaining the second payment tool, the universal digital certificate can be used as a digital certificate. After the tool generates an interaction request, the interaction request can be signed using the certificate private key corresponding to the certificate public key in the universal digital certificate, and the signed interaction request can be sent to the second smart contract platform to instruct the second smart contract platform to perform identity authentication on the interaction request based on the universal digital certificate. This method can realize universal identity authentication on different smart contract platforms. Compared with implementing a set of identity authentication on each different smart contract platform, it can reduce the maintenance cost of each different smart contract platform. Users do not need to remember the account passwords of different platforms, which can reduce the user's operating burden, improve the user experience, and ensure the security of identity authentication.

[0105] In an exemplary embodiment, an interaction request is initiated based on a user identifier corresponding to the identity information, and the step of the second smart contract platform authenticating the interaction request based on the universal digital certificate includes: querying the stored universal digital certificate corresponding to the user identifier, decrypting the signed interaction request using the certificate public key in the queried universal digital certificate to obtain decrypted data, performing a hash operation on the interaction request using a hash function to obtain a hash value, and determining that the identity authentication of the interaction request is passed when the decrypted data is the same as the calculated hash value; and determining that the identity authentication of the interaction request is passed when the decrypted data is different from the calculated hash value.

[0106] In this embodiment, since the universal digital certificate is universal and unique in each smart contract platform, by registering the universal digital certificate of the same user in each smart contract platform, when an interaction request based on the certificate private key signature is received, the universal digital certificate of the other party can be used to authenticate the interaction request, which has strong scalability, high security, good compatibility, and very convenient management.

[0107] In an exemplary embodiment, the method also includes: receiving, through a second payment tool, a change processing result obtained by the second smart contract platform for processing the amount change of a digital resource account corresponding to the identity information, and updating the latest amount corresponding to the digital resource account according to the change processing result; wherein the change processing result is obtained by the second smart contract platform performing identity authentication on the interaction request according to the universal digital certificate, and then calling the smart contract based on the interaction request to perform amount change processing on the digital resource account corresponding to the identity information.

[0108] Specifically, after the second smart contract platform authenticates the interaction request based on the universal digital certificate, the smart contract is called based on the interaction request to change the amount of the digital resource account corresponding to the identity information, and the change processing result is obtained, and the change processing result is returned to the terminal, and the terminal receives the change processing result through the second payment tool. After receiving the change processing result, the terminal can update the account balance of the digital resource account corresponding to the identity information according to the change processing result.

[0109] In this embodiment, after identity authentication is passed through a universal digital certificate, the smart contract within the platform can be called to respond to the interaction request, thereby realizing secure interaction based on digital certificates and smart contracts.

[0110] In an exemplary embodiment, the interaction request is a request for redemption of a prepaid card, the prepaid card is purchased from the first smart contract platform based on a digital resource account associated with the identity information, and the first smart contract platform provides a redemption service for the prepaid card, and the method further includes:

[0111] The verification result of the prepaid card returned by the first smart contract platform is received through the first payment tool based on digital resources, and the balance of the prepaid card is updated according to the verification result; wherein, the step of generating the verification result includes: after the second smart contract platform authenticates the verification request according to the universal digital certificate, the verification request is forwarded to the first smart contract platform that provides the verification service for the prepaid card, and the first smart contract platform performs the current verification processing on the prepaid card corresponding to the identity information based on the verification request and the smart contract to obtain the verification result.

[0112] In this embodiment, since the universal digital certificate is universal and unique in each smart contract platform, it can realize joint identity authentication across smart contract platforms, and can expand the application scenarios of identity authentication.

[0113] In an exemplary embodiment, Figure 8 As shown, an identity authentication method is provided, which is applied to Figure 1 The second smart contract platform 1044 in the example is used for explanation, including the following steps 802 to 806. Among them:

[0114] Step 802, receiving a digital certificate registration request sent by a second payment tool based on digital resources according to identity information and a locally stored universal digital certificate, wherein the universal digital certificate is applied for by a first payment tool based on digital resources from a digital certificate issuing authority according to identity information and stored locally on the first smart contract platform;

[0115] Step 804, when the identity information is compared with the identity information contained in the universal digital certificate and the universal digital certificate is verified to be consistent, the user identifier corresponding to the identity information is registered with the universal digital certificate;

[0116] Step 806: upon receiving an interaction request sent by the second payment tool based on the universal digital certificate and the user identification, identity authentication is performed on the interaction request according to the universal digital certificate registered corresponding to the user identification.

[0117] For the implementation of each step in the identity authentication method, please refer to the corresponding description above.

[0118] In the above-mentioned identity authentication method, the universal digital certificate is applied for and stored locally by the first payment tool based on digital resources from the digital certificate issuing authority to the first smart contract platform according to the identity information, so that the second payment tool based on digital resources can register the universal digital certificate stored locally to the second smart contract platform, that is, by receiving the digital certificate registration request sent by the second payment tool based on digital resources according to the identity information and the universal digital certificate stored locally, when the identity information is compared with the identity information contained in the universal digital certificate and the legitimacy of the universal digital certificate is consistent, the user identifier corresponding to the identity information is registered with the universal digital certificate; in this way, when the interaction request sent by the second payment tool based on the universal digital certificate and the user identifier is received, the interaction request is authenticated according to the universal digital certificate registered corresponding to the user identifier, so that universal identity authentication can be realized on different smart contract platforms. Compared with realizing a set of identity authentication on each different smart contract platform, the maintenance cost of each different smart contract platform can be reduced, and the user does not need to remember the account password of different platforms, which can reduce the user's operation burden, improve the user experience, and ensure the security of identity authentication.

[0119] In a detailed embodiment, the identity authentication method includes the following steps:

[0120] 1. In response to a digital certificate application operation triggered by identity information on a first payment tool based on digital resources, the terminal generates a key pair, the key pair including a certificate public key and a certificate private key, and encrypts and stores the certificate private key locally;

[0121] 2. The terminal generates a digital certificate request based on the identity information and the certificate public key in the key pair; and sends the digital certificate request to the first smart contract platform corresponding to the first payment tool;

[0122] 3. The first smart contract platform forwards the digital certificate request to the digital certificate authority;

[0123] 4. The digital certificate issuing authority receives the digital certificate request and authenticates the identity information carried in the digital certificate request; after the identity authentication is passed, a universal digital certificate to be signed corresponding to the identity information is generated, wherein the universal digital certificate contains the identity information and the certificate public key in the key pair; the universal digital certificate is digitally signed using the private key of the digital certificate issuing authority, and the digitally signed universal digital certificate is returned to the first smart contract platform;

[0124] 5. The first smart contract platform uses the public key of the digital certificate issuing authority to verify the legitimacy of the universal digital certificate. After the verification is passed, the first smart contract platform responds to the digital certificate request and returns the universal digital certificate to the terminal;

[0125] 6. The terminal receives the universal digital certificate and stores it locally;

[0126] 7. In response to the digital certificate registration operation triggered according to the identity information on the second payment tool based on the digital resource, the terminal generates a digital certificate registration request according to the identity information and the locally stored universal digital certificate, and sends the digital certificate registration request to the second smart contract platform corresponding to the second payment tool;

[0127] 8. The second smart contract platform receives the digital certificate registration request, and when the identity information is compared with the identity information contained in the universal digital certificate and the legitimacy of the universal digital certificate is verified, the user identifier corresponding to the identity information is registered with the universal digital certificate;

[0128] 9. The terminal obtains an interaction request generated by the second payment tool based on the user identifier corresponding to the identity information, signs the interaction request using the certificate private key corresponding to the certificate public key in the universal digital certificate, and sends the signed interaction request to the second smart contract platform;

[0129] 10. The second smart contract platform queries the stored universal digital certificate corresponding to the user identifier, uses the certificate public key in the queried universal digital certificate to decrypt the signed interaction request to obtain decrypted data, and uses the hash function to perform a hash operation on the interaction request to obtain a hash value. When the decrypted data is the same as the calculated hash value, it is determined that the identity authentication of the interaction request has passed; when the decrypted data is different from the calculated hash value, it is determined that the identity authentication of the interaction request has failed.

[0130] 11. After the second smart contract platform authenticates the interaction request based on the universal digital certificate, it calls the smart contract based on the interaction request to change the amount of the digital resource account corresponding to the identity information, obtains the change processing result, and returns the change processing result to the terminal;

[0131] 12. The terminal receives the change processing result and updates the latest amount corresponding to the digital resource account according to the change processing result.

[0132] The identity authentication method provided in the embodiment of the present application has the following advantages: First, high security: the certificate-based identity authentication uses technologies such as encryption algorithms and digital signature algorithms to ensure the security and credibility of the user's identity. At the same time, the issuance and management of certificates by the certificate issuing authority can further improve the security of identity authentication. Second, strong scalability: the certificate-based identity authentication can support a variety of encryption algorithms and digital signature algorithms, and can also support a variety of certificate formats and certificate issuing authorities. This makes the certificate-based identity authentication have strong scalability and flexibility. Third, convenient management: the certificate-based identity authentication can centrally manage the user's certificate information, including operations such as the issuance, cancellation and update of certificates. This can greatly simplify the management and maintenance of identity authentication. Fourth, good compatibility: the certificate-based identity authentication can be used in conjunction with other identity authentication methods (such as identity authentication based on username and password, identity authentication based on biometrics, identity authentication based on tokens, etc.), thereby improving the security and reliability of identity authentication.

[0133] It should be understood that, although the steps in the flowcharts involved in the above embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0134] Based on the same inventive concept, the embodiment of the present application also provides an identity authentication device for implementing the identity authentication method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more identity authentication device embodiments provided below can refer to the limitations on the identity authentication method above, and will not be repeated here.

[0135] In an exemplary embodiment, Fig. 9 As shown, an identity authentication device 900 is provided, including: an application module 902, a storage module 904, a registration module 906 and an interactive authentication module 908, wherein:

[0136] An application module 902, configured to send a digital certificate request to a first smart contract platform corresponding to the first payment tool in response to a digital certificate application operation triggered according to identity information on the first payment tool based on the digital resource;

[0137] The storage module 904 is used to receive the universal digital certificate corresponding to the identity information issued by the digital certificate issuing authority and returned by the first smart contract platform in response to the digital certificate request, and store the universal digital certificate locally;

[0138] A registration module 906, configured to register the locally stored universal digital certificate to a second smart contract platform corresponding to the second payment instrument in response to a digital certificate registration operation triggered according to identity information on the second payment instrument based on the digital resource;

[0139] The interactive authentication module 908 is used to obtain the interactive request generated by the second payment tool, sign the interactive request using the certificate private key corresponding to the certificate public key in the universal digital certificate, and send the signed interactive request to the second smart contract platform to instruct the second smart contract platform to perform identity authentication on the interactive request based on the universal digital certificate.

[0140] In one embodiment, the application module 902 is also used to generate a key pair in response to a digital certificate application operation triggered by identity information on a first payment tool based on digital resources, the key pair including a certificate public key and a certificate private key, and encrypt and store the certificate private key locally; generate a digital certificate request based on the identity information and the certificate public key in the key pair; and send the digital certificate request to the first smart contract platform corresponding to the first payment tool.

[0141] In one of the embodiments, the universal digital certificate is issued by a digital certificate issuing authority according to the following steps: receiving a digital certificate request forwarded by the first smart contract platform; authenticating the identity information carried in the digital certificate request; after the identity authentication is passed, generating a universal digital certificate to be signed corresponding to the identity information, wherein the universal digital certificate contains the identity information and the certificate public key in the key pair; digitally signing the universal digital certificate using the private key of the digital certificate issuing authority, and returning the digitally signed universal digital certificate to the first smart contract platform.

[0142] In one of the embodiments, before the first smart contract platform returns the universal digital certificate corresponding to the identity information in response to the digital certificate request, the first smart contract platform uses the public key of the digital certificate issuing authority to verify the legitimacy of the universal digital certificate. After the verification is passed, the first smart contract platform returns the universal digital certificate corresponding to the identity information in response to the digital certificate request.

[0143] In one of the embodiments, the step of the first smart contract platform using the public key of the digital certificate issuing authority to verify the legitimacy of the universal digital certificate includes: the first smart contract platform obtains the public key of the digital certificate issuing authority, uses the public key of the digital certificate issuing authority to decrypt the digital signature in the universal digital certificate to obtain decrypted data, and uses a hash function to perform a hash operation on the identity information and the certificate public key contained in the universal digital certificate to obtain a hash value; when the decrypted data is the same as the calculated hash value, it is determined that the legitimacy verification of the universal digital certificate has passed; when the decrypted data is different from the calculated hash value, it is determined that the legitimacy verification of the universal digital certificate has failed.

[0144] In one of the embodiments, the storage module 904 is also used to decrypt the digital signature in the universal digital certificate using the public key of the digital certificate issuing authority to obtain decrypted data, and use a hash function to perform a hash operation on the identity information and the certificate public key contained in the universal digital certificate to obtain a hash value; when the decrypted data is the same as the calculated hash value, the step of storing the universal digital certificate locally is executed, and when the decrypted data is different from the calculated hash value, a prompt is given that the universal digital certificate application has failed.

[0145] In one embodiment, the registration module 906 is also used to respond to a digital certificate registration operation triggered by identity information on a second payment tool based on digital resources, generate a digital certificate registration request based on the identity information and the locally stored universal digital certificate, and send the digital certificate registration request to the second smart contract platform corresponding to the second payment tool, so that the second smart contract platform will register the user identifier corresponding to the identity information with the universal digital certificate when the identity information is compared with the identity information contained in the universal digital certificate and the legitimacy of the universal digital certificate is verified.

[0146] In one of the embodiments, the step of the second smart contract platform verifying the legitimacy of the universal digital certificate includes: the second smart contract platform obtains the public key of the digital certificate issuing authority, uses the public key of the digital certificate issuing authority to decrypt the digital signature in the universal digital certificate to obtain decrypted data, and uses a hash function to perform a hash operation on the identity information and the certificate public key contained in the universal digital certificate to obtain a hash value; when the decrypted data is the same as the calculated hash value, it is determined that the legitimacy verification of the universal digital certificate has passed; when the decrypted data is different from the calculated hash value, it is determined that the legitimacy verification of the universal digital certificate has failed.

[0147] In one of the embodiments, an interaction request is initiated based on a user identifier corresponding to the identity information, and the step of the second smart contract platform authenticating the interaction request based on the universal digital certificate includes: querying the stored universal digital certificate corresponding to the user identifier, decrypting the signed interaction request using the certificate public key in the queried universal digital certificate to obtain decrypted data, performing a hash operation on the interaction request using a hash function to obtain a hash value, and determining that the identity authentication of the interaction request is passed when the decrypted data is the same as the calculated hash value; and determining that the identity authentication of the interaction request is passed when the decrypted data is different from the calculated hash value.

[0148] In one embodiment, the identity authentication device 900 further includes:

[0149] The interaction result receiving module is used to receive, through the second payment tool, the change processing result obtained by the second smart contract platform for the amount change processing of the digital resource account corresponding to the identity information, and update the latest amount corresponding to the digital resource account according to the change processing result; wherein, the change processing result is obtained by calling the smart contract based on the interaction request to perform amount change processing on the digital resource account corresponding to the identity information after the second smart contract platform authenticates the interaction request according to the universal digital certificate.

[0150] In one embodiment, the interaction request is a request for cancellation of a prepaid card. The prepaid card is purchased from a first smart contract platform based on a digital resource account associated with the identity information. The first smart contract platform provides cancellation services for the prepaid card. The identity authentication device 900 also includes: an interaction result receiving module, which is used to receive the cancellation result of the prepaid card returned by the first smart contract platform through a first payment tool based on digital resources, and update the balance of the prepaid card according to the cancellation result; wherein, the step of generating the cancellation result includes: after the second smart contract platform performs identity authentication on the cancellation request according to the universal digital certificate, forwarding the cancellation request to the first smart contract platform that provides cancellation services for the prepaid card, and the first smart contract platform performs the current cancellation processing on the prepaid card corresponding to the identity information based on the cancellation request and the smart contract to obtain the cancellation result.

[0151] The above-mentioned identity authentication device 900, in response to the digital certificate application operation triggered according to the identity information on the first payment tool based on the digital resource, sends a digital certificate request to the first smart contract platform corresponding to the first payment tool, receives the universal digital certificate corresponding to the identity information issued by the digital certificate issuing authority returned by the first smart contract platform in response to the digital certificate request, and stores the universal digital certificate locally. In this way, in response to the digital certificate registration operation triggered according to the identity information on the second payment tool based on the digital resource, the locally stored universal digital certificate is registered to the second smart contract platform corresponding to the second payment tool, and then, when obtaining the second payment tool, After receiving the interaction request generated by the payment tool, the interaction request can be signed by using the certificate private key corresponding to the certificate public key in the universal digital certificate, and the signed interaction request can be sent to the second smart contract platform to instruct the second smart contract platform to perform identity authentication on the interaction request according to the universal digital certificate. This method can realize universal identity authentication on different smart contract platforms. Compared with implementing a set of identity authentication on each different smart contract platform, it can reduce the maintenance cost of each different smart contract platform. Users do not need to remember the account passwords of different platforms, which can reduce the user's operating burden, improve the user experience, and ensure the security of identity authentication.

[0152] In an exemplary embodiment, Fig.10 As shown, an identity authentication device 1000 is provided, comprising: a receiving module 1002, a registration module 1004 and an identity authentication module 1006, wherein:

[0153] The receiving module 1002 is used to receive a digital certificate registration request sent by the second payment tool based on digital resources according to identity information and a locally stored universal digital certificate, wherein the universal digital certificate is applied for and stored locally by the first payment tool based on digital resources from the digital certificate issuing authority on the first smart contract platform according to the identity information;

[0154] The registration module 1004 is used to register the user identifier corresponding to the identity information with the universal digital certificate when the identity information is compared with the identity information contained in the universal digital certificate and the validity verification of the universal digital certificate is passed;

[0155] The identity authentication module 1006 is used to authenticate the interaction request according to the universal digital certificate registered corresponding to the user identification when receiving the interaction request sent by the second payment tool based on the universal digital certificate and the user identification.

[0156] In the above-mentioned identity authentication device 1000, the universal digital certificate is applied for and stored locally by the first payment tool based on digital resources from the digital certificate issuing authority according to the identity information to the first smart contract platform, so that the second payment tool based on digital resources can register the universal digital certificate stored locally to the second smart contract platform, that is, by receiving the digital certificate registration request sent by the second payment tool based on digital resources according to the identity information and the universal digital certificate stored locally, when the identity information is compared with the identity information contained in the universal digital certificate and the legitimacy of the universal digital certificate is consistent, the user identifier corresponding to the identity information is registered with the universal digital certificate; in this way, when the interaction request sent by the second payment tool based on the universal digital certificate and the user identifier is received, the interaction request is authenticated according to the universal digital certificate registered corresponding to the user identifier, so that universal identity authentication can be realized on different smart contract platforms. Compared with realizing a set of identity authentication on each different smart contract platform, the maintenance cost of each different smart contract platform can be reduced, and the user does not need to remember the account password of different platforms, which can reduce the user's operation burden, improve the user experience, and ensure the security of identity authentication.

[0157] Each module in the above-mentioned identity authentication device can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute the operations corresponding to each module above.

[0158] In an exemplary embodiment, a computer device is provided. The computer device may be a smart contract platform, and its internal structure diagram may be as follows: Fig.11 As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, an identity authentication method is implemented.

[0159] In an exemplary embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as shown in FIG. Fig.12 As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected via a system bus, and the communication interface, the display unit and the input device are connected to the system bus via the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, near field communication (NFC) or other technologies. When the computer program is executed by the processor, an identity authentication method is implemented.

[0160] Those skilled in the art will understand that Fig.11 , Fig.12 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0161] In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps of the identity authentication method when executing the computer program.

[0162] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the identity authentication method are implemented.

[0163] In one embodiment, a computer program product is provided, comprising a computer program, which implements the steps of the identity authentication method when executed by a processor.

[0164] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.

[0165] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.

[0166] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.

[0167] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be construed as limiting the scope of the present application. It should be noted that, for a person of ordinary skill in the art, several modifications and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. An identity authentication method, It is characterized in that The method comprises: In response to a digital certificate application operation triggered according to identity information on a first payment tool based on digital resources, sending a digital certificate request to a first smart contract platform corresponding to the first payment tool; Receiving a universal digital certificate corresponding to the identity information and issued by a digital certificate issuing authority and returned by the first smart contract platform in response to the digital certificate request, and storing the universal digital certificate locally; In response to a digital certificate registration operation triggered according to identity information on a second payment instrument based on digital resources, registering the locally stored universal digital certificate to a second smart contract platform corresponding to the second payment instrument; Obtain an interaction request generated by the second payment tool, sign the interaction request using the certificate private key corresponding to the certificate public key in the universal digital certificate, and send the signed interaction request to the second smart contract platform to instruct the second smart contract platform to perform identity authentication on the interaction request based on the universal digital certificate.

2. The method according to claim 1, It is characterized in that The step of sending a digital certificate request to a first smart contract platform corresponding to the first payment tool in response to a digital certificate application operation triggered according to identity information on the first payment tool based on the digital resource includes: In response to a digital certificate application operation triggered according to identity information on a first payment instrument based on digital resources, a key pair is generated, the key pair comprising a certificate public key and a certificate private key, and the certificate private key is encrypted and stored locally; Generate a digital certificate request based on the identity information and the certificate public key in the key pair; The digital certificate request is sent to the first smart contract platform corresponding to the first payment tool.

3. The method according to claim 2, It is characterized in that The step of the digital certificate issuing authority issuing the universal digital certificate comprises: Receiving a digital certificate request forwarded by the first smart contract platform; authenticating the identity information carried in the digital certificate request; After the identity authentication is passed, a universal digital certificate to be signed corresponding to the identity information is generated, wherein the universal digital certificate contains the identity information and the certificate public key in the key pair; The universal digital certificate is digitally signed using the private key of the digital certificate issuing authority, and the digitally signed universal digital certificate is returned to the first smart contract platform.

4. The method according to claim 1, It is characterized in that Before the first smart contract platform returns the universal digital certificate corresponding to the identity information in response to the digital certificate request, the first smart contract platform uses the public key of the digital certificate issuing authority to verify the legitimacy of the universal digital certificate. After the verification is passed, the first smart contract platform returns the universal digital certificate corresponding to the identity information in response to the digital certificate request.

5. The method according to claim 4, It is characterized in that The step of the first smart contract platform using the public key of the digital certificate issuing authority to verify the legitimacy of the universal digital certificate includes: The first smart contract platform obtains the public key of the digital certificate issuing authority, uses the public key of the digital certificate issuing authority to decrypt the digital signature in the universal digital certificate to obtain decrypted data, and uses a hash function to perform a hash operation on the identity information and the certificate public key contained in the universal digital certificate to obtain a hash value; When the decrypted data is identical to the calculated hash value, it is determined that the legitimacy verification of the universal digital certificate has passed. When the decrypted data is different from the calculated hash value, it is determined that the legitimacy verification of the universal digital certificate has failed.

6. The method according to claim 1, It is characterized in that Before storing the universal digital certificate locally, the method further includes: Decrypting the digital signature in the universal digital certificate using the public key of the digital certificate issuing authority to obtain decrypted data, and performing a hash operation on the identity information and the certificate public key contained in the universal digital certificate using a hash function to obtain a hash value; In the case where the decrypted data is identical to the calculated hash value, the step of storing the universal digital certificate locally is performed; in the case where the decrypted data is different from the calculated hash value, a prompt is given that the universal digital certificate application has failed.

7. The method according to claim 1, It is characterized in that The step of registering the locally stored universal digital certificate to a second smart contract platform corresponding to the second payment tool in response to a digital certificate registration operation triggered according to identity information on the second payment tool based on the digital resource comprises: In response to a digital certificate registration operation triggered by identity information on a second payment tool based on digital resources, a digital certificate registration request is generated based on the identity information and the universal digital certificate stored locally, and the digital certificate registration request is sent to a second smart contract platform corresponding to the second payment tool, so that the second smart contract platform registers the user identifier corresponding to the identity information with the universal digital certificate when the identity information is compared with the identity information contained in the universal digital certificate and the legitimacy of the universal digital certificate is verified to be consistent and the second smart contract platform passes the legitimacy verification of the universal digital certificate.

8. The method according to claim 7, It is characterized in that The step of the second smart contract platform verifying the legitimacy of the universal digital certificate includes: The second smart contract platform obtains the public key of the digital certificate issuing authority, uses the public key of the digital certificate issuing authority to decrypt the digital signature in the universal digital certificate to obtain decrypted data, and uses a hash function to perform a hash operation on the identity information and the certificate public key contained in the universal digital certificate to obtain a hash value; When the decrypted data is identical to the calculated hash value, it is determined that the legitimacy verification of the universal digital certificate has passed. When the decrypted data is different from the calculated hash value, it is determined that the legitimacy verification of the universal digital certificate has failed.

9. The method according to claim 1, It is characterized in that The interaction request is initiated based on the user identifier corresponding to the identity information, and the second smart contract platform performs identity authentication on the interaction request according to the universal digital certificate, including: Query the stored universal digital certificate corresponding to the user identifier, use the certificate public key in the queried universal digital certificate to decrypt the signed interaction request to obtain decrypted data, use a hash function to perform a hash operation on the interaction request to obtain a hash value, and when the decrypted data is the same as the calculated hash value, determine that the identity authentication of the interaction request is passed; when the decrypted data is different from the calculated hash value, determine that the identity authentication of the interaction request is failed.

10. The method according to any one of claims 1 to 9, It is characterized in that The method further comprises: Receiving, through a second payment tool, a change processing result obtained by the second smart contract platform performing amount change processing on the digital resource account corresponding to the identity information, and updating the latest amount corresponding to the digital resource account according to the change processing result; Among them, the change processing result is obtained by calling the smart contract based on the interaction request to change the amount of the digital resource account corresponding to the identity information after the second smart contract platform authenticates the interaction request according to the universal digital certificate.

11. The method according to any one of claims 1 to 9, It is characterized in that The interaction request is a request for writing off a prepaid card, the prepaid card is purchased from a first smart contract platform based on a digital resource account associated with the identity information, the first smart contract platform provides a writing off service for the prepaid card, and the method further includes: Receiving, via a first payment tool based on digital resources, a verification result regarding the prepaid card returned by the first smart contract platform, and updating the balance of the prepaid card according to the verification result; Among them, the step of generating the verification result includes: after the second smart contract platform passes the identity authentication of the verification request according to the universal digital certificate, forwarding the verification request to the first smart contract platform that provides verification services for the prepaid card, and the first smart contract platform performs the current verification processing on the prepaid card corresponding to the identity information based on the verification request and the smart contract to obtain the verification result.

12. An identity authentication method, It is characterized in that The method comprises: Receiving a digital certificate registration request sent by a second payment tool based on digital resources according to identity information and a locally stored universal digital certificate, wherein the universal digital certificate is applied for by a first payment tool based on digital resources from a digital certificate issuing authority according to identity information on a first smart contract platform and stored locally; When the identity information is compared with the identity information contained in the universal digital certificate and the legitimacy of the universal digital certificate is verified to be consistent, registering the user identifier corresponding to the identity information with the universal digital certificate; When receiving an interaction request sent by the second payment tool based on the universal digital certificate and the user identification, the interaction request is authenticated according to the universal digital certificate registered corresponding to the user identification.

13. An identity authentication device, It is characterized in that The device comprises: An application module, configured to send a digital certificate request to a first smart contract platform corresponding to a first payment tool in response to a digital certificate application operation triggered according to identity information on a first payment tool based on digital resources; A storage module, configured to receive a universal digital certificate corresponding to the identity information and issued by a digital certificate issuing authority and returned by the first smart contract platform in response to the digital certificate request, and store the universal digital certificate locally; A registration module, configured to register the locally stored universal digital certificate to a second smart contract platform corresponding to the second payment instrument in response to a digital certificate registration operation triggered according to identity information on a second payment instrument based on digital resources; The interactive authentication module is used to obtain the interactive request generated by the second payment tool, sign the interactive request using the certificate private key corresponding to the certificate public key in the universal digital certificate, and send the signed interactive request to the second smart contract platform to instruct the second smart contract platform to perform identity authentication on the interactive request according to the universal digital certificate.

14. An identity authentication device, It is characterized in that The device comprises: A receiving module, configured to receive a digital certificate registration request sent by a second payment tool based on digital resources according to identity information and a locally stored universal digital certificate, wherein the universal digital certificate is applied for by a first payment tool based on digital resources from a digital certificate issuing authority on a first smart contract platform according to identity information and stored locally; A registration module, used for registering the user identification corresponding to the identity information with the universal digital certificate in correspondence with the identity information contained in the universal digital certificate when the identity information is compared and the legitimacy of the universal digital certificate is verified; The identity authentication module is used to, when receiving an interaction request sent by the second payment tool based on the universal digital certificate and the user identification, authenticate the interaction request according to the universal digital certificate registered corresponding to the user identification.

15. A computer device comprising a memory and a processor, wherein the memory stores a computer program. It is characterized in that When the processor executes the computer program, the steps of the method according to any one of claims 1 to 12 are implemented.

16. A 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 method according to any one of claims 1 to 12 are implemented.

17. A computer program product comprising a computer program, It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 12 are implemented.