Blockchain-based identity authentication method and apparatus

By introducing device public keys and private keys into decentralized digital identity authentication, the problem of identity conflicts between blockchains is solved and the effectiveness and efficiency of cross-chain authentication are achieved.

WO2024217351A1PCT designated stage expired Publication Date: 2024-10-24ALIPAY (HANGZHOU) INFORMATION TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/087508
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-04-18
Filing Date
2024-04-12
Publication Date
2024-10-24

AI Technical Summary

Technical Problem

Decentralized digital identities generated by different blockchains may conflict, making it impossible to achieve cross-chain authentication of decentralized digital identities.

Method used

By introducing the device public key and the device private key, conflicts in decentralized digital identities are avoided when cross-chain. The device private key is stored in a trusted execution environment, and the device private key is used for digital signature during the identity authentication process to ensure that the device Global uniqueness of the public key.

Benefits of technology

It realizes cross-chain authentication of decentralized digital identities, avoids confusion of identity public keys and incorrect signature verification, and improves the efficiency and accuracy of identity authentication in cross-chain scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024087508_24102024_PF_FP_ABST
    Figure CN2024087508_24102024_PF_FP_ABST
Patent Text Reader

Abstract

Disclosed in the present invention is a blockchain-based identity authentication method, comprising: receiving an original proof of identity issued by a proof-of-identity provider in any blockchain, the original proof of identity being digitally signed by an identity private key locally stored in the proof-of-identity provider; querying the blockchain where the proof-of-identity provider is located for an identity public key deposited by the proof-of-identity provider and, on the basis of the identity public key, performing signature verification on the original proof of identity; when the signature verification has passed, digitally signing the original proof of identity on the basis of a locally stored device private key, and issuing to a proof-of-identity verifier in any blockchain a digitally signed proof of identity to be verified, so that the proof-of-identity verifier queries any blockchain for a device public key deposited by a proof-of-identity user and, on the basis of the device public key, performs signature verification on the proof of identity to be verified; and, when the signature verification has passed, determining that identity authentication for the proof-of-identity user has passed.
Need to check novelty before this filing date? Find Prior Art

Description

A blockchain-based identity authentication method and device Technical Field

[0001] The present invention relates to a blockchain technology, and in particular to an identity authentication method and device based on a blockchain. Background Art

[0002] Blockchain technology, also known as distributed ledger technology, is an emerging technology that enables multiple computing devices to jointly maintain a complete distributed database. Due to its decentralized, transparent nature, the ability of each computing device to participate in database recording, and the rapid synchronization of data between computing devices, blockchain technology has been widely applied in numerous fields.

[0003] Decentralized Identity (DID) is a digital identity system based on blockchain technology, which has the characteristics of ensuring data authenticity, protecting user privacy and security, and strong portability.

[0004] Since decentralized digital identities generated by different blockchains may conflict, cross-chain authentication of decentralized digital identities cannot be achieved.

[0005] Summary of the Invention

[0006] One of the objectives of the present invention is to provide a blockchain-based identity authentication method that can achieve cross-chain authentication of decentralized digital identities.

[0007] Based on the above invention purpose, the present invention proposes a blockchain-based identity authentication method, which is applied to an identity proof user in an identity authentication system, wherein the identity authentication system is composed of at least two blockchains for realizing decentralized digital identity, wherein the blockchain stores identity public keys associated with decentralized digital identities uploaded by respective blockchain members; wherein the identity private keys corresponding to the identity public keys are stored locally by the blockchain members; the blockchain members include identity proof providers, identity proof users, and identity proof verifiers; the blockchain also stores device public keys based on trusted computing uploaded by identity proof users in each blockchain, and the device private keys corresponding to the device public keys are stored locally by the identity authentication users, wherein the method comprises: receiving the original identity proof issued by the identity proof provider in any blockchain; wherein , the original identity certificate includes proof of the identity of the identity user, and the original identity certificate is digitally signed by the identity private key stored locally by the identity provider; the identity public key stored by the identity provider is queried from the blockchain where the identity provider is located, and the original identity certificate is verified based on the identity public key; if the verification is successful, the original identity certificate is digitally signed based on the locally stored device private key, and the digitally signed identity certificate to be verified is issued to the identity verification party in any blockchain; so that the identity verification party queries the device public key stored by the identity user from any blockchain, and verifies the identity certificate to be verified based on the device public key; and if the verification is successful, it is determined that the identity authentication for the identity user is successful.

[0008] In the present invention, by introducing the device private key and the device public key, the problem of conflict of decentralized digital identity when crossing chains can be avoided.

[0009] Further, in some embodiments, the device private key is stored in a local trusted execution environment of the identity proof user; the trusted execution environment contains logic code for executing data signing and logic code for executing signature verification: the verification of the original identity proof based on the identity public key includes: calling the logic code for executing signature verification stored in the local trusted execution environment, and verifying the original identity proof based on the identity public key; the digital signing of the original identity proof based on the locally stored device private key includes: calling the logic code for executing digital signature stored in the local trusted execution environment, and digitally signing the original identity proof based on the device private key in the trusted execution environment.

[0010] Furthermore, in some embodiments, the method further includes: obtaining logic code for executing data signature and logic code for executing signature verification from any blockchain, and storing the obtained logic code for executing data signature and logic code for executing signature verification in a local trusted execution environment.

[0011] Furthermore, in some embodiments, the original identity certificate also includes the decentralized digital identity of the identity certificate provider; wherein, an identification bit is set in the decentralized digital identity, and the identification bit records the blockchain identifier of the blockchain that registers the decentralized digital identity; the querying of the identity public key stored by the identity certificate provider from the blockchain where the identity certificate provider is located includes: based on the decentralized digital identity corresponding to the identity certificate provider, obtaining the blockchain identifier of the identification bit record of the decentralized digital identity; querying the identity public key stored by the identity certificate provider from the target blockchain corresponding to the blockchain identifier.

[0012] Furthermore, in some embodiments, the method further includes: in response to a registration request initiated for the device public key of the identity proof user, storing the device public key in each blockchain in the identity authentication system.

[0013] Furthermore, in some embodiments, the logic code for executing the digital signature in the blockchain corresponds to a unique code identifier; the calling of the logic code for executing the digital signature stored in the local trusted execution environment, and digitally signing the original identity certificate based on the device private key in the trusted execution environment, includes: calling the logic code for executing the digital signature stored in the local trusted execution environment, taking the original identity certificate and the code identifier of the logic code for executing the digital signature as a whole, and digitally signing them using the device private key in the trusted execution environment.

[0014] For the same purpose as the aforementioned method, the present invention also provides another blockchain-based identity authentication method, which is applied to an identity verification party in an identity authentication system, wherein the identity authentication system is composed of at least two blockchains for realizing decentralized digital identities, wherein the blockchains store identity public keys associated with decentralized digital identities uploaded by respective blockchain members; wherein the identity private keys corresponding to the identity public keys are locally stored by the blockchain members; the blockchain members include identity proof providers, identity proof users, and identity proof verifiers; the blockchains also store device public keys based on trusted computing uploaded by identity proof users in each blockchain, and the device private keys corresponding to the device public keys are locally stored by the identity authentication users. The method comprises: receiving an identity proof to be verified sent by an identity proof user in any blockchain; wherein the identity proof to be verified is digitally signed by the device private key of the identity proof user; querying the device public key corresponding to the device private key stored by the identity proof user from any blockchain; verifying the signature of the identity proof to be verified based on the device public key, and determining that the identity authentication for the identity proof user is successful if the signature verification passes.

[0015] Furthermore, in some embodiments, the identity certificate to be verified includes the original identity certificate issued by the identity certificate provider to the identity certificate user; wherein, the original identity certificate is used to prove the identity of the identity certificate user, and the original identity certificate is digitally signed by the identity private key locally stored by the identity certificate provider.

[0016] Furthermore, in some embodiments, the identity certificate to be verified is generated in a local trusted execution environment of the identity certificate user, and the trusted execution environment contains logic code for executing digital signatures and the device private key of the identity certificate user; the identity certificate to be verified is further digitally signed by the logic code for executing digital signatures stored in the trusted execution environment, based on the device private key in the trusted execution environment, for the original identity certificate.

[0017] Furthermore, in some embodiments, the logic code for executing the signature verification is obtained from the blockchain and stored in the trusted execution environment, and the logic code for executing the digital signature in the blockchain corresponds to a unique code identifier; the identity certificate to be verified is further digitally signed by the trusted execution environment using the original identity certificate and the code identifier of the logic code for executing the digital signature as a whole, using the device private key in the trusted execution environment; in the case where the signature verification is passed, it also includes: in response to a query request for the code identifier in the identity certificate to be verified that has passed the verification, querying the logic code corresponding to the code identifier in the blockchain.

[0018] The present invention also provides an identity authentication device based on blockchain, which is applied to an identity proof user in an identity authentication system, wherein the identity authentication system is composed of at least two blockchains for realizing decentralized digital identity, wherein the blockchain stores identity public keys associated with decentralized digital identities uploaded by respective blockchain members; wherein the identity private keys corresponding to the identity public keys are stored locally by the blockchain members; the blockchain members include identity proof providers, identity proof users and identity proof verifiers; the blockchain also stores device public keys based on trusted computing uploaded by identity proof users in each blockchain, and the device private keys corresponding to the device public keys are stored locally by the identity authentication users, and the device comprises: a receiving module for receiving an original identity proof issued by an identity proof provider in any blockchain; wherein the original identity proof Used to prove the identity of the identity proof user, the original identity proof is digitally signed by the identity private key stored locally by the identity proof provider; a verification module is used to query the identity public key stored by the identity proof provider from the blockchain where the identity proof provider is located, and verify the original identity proof based on the identity public key; a signature module is used to digitally sign the original identity proof based on the locally stored device private key if the verification is passed, and send the digitally signed identity proof to be verified to the identity proof verifier in any blockchain; so that the identity proof verifier can query the device public key stored by the identity proof user from any blockchain, and verify the identity proof to be verified based on the device public key; and, if the verification is passed, determine that the identity authentication for the identity proof user is passed.

[0019] The present invention also provides a blockchain-based identity authentication device, which is applied to an identity verification party in an identity authentication system. The identity authentication system is composed of at least two blockchains for realizing decentralized digital identities, wherein the blockchains store identity public keys associated with decentralized digital identities uploaded by respective blockchain members; wherein identity private keys corresponding to the identity public keys are locally stored by the blockchain members; the blockchain members include identity proof providers, identity proof users, and identity proof verifiers; the blockchains also store device public keys based on trusted computing uploaded by identity proof users in each blockchain, and device private keys corresponding to the device public keys are locally stored by the identity authentication users. The device includes: a receiving module for receiving an identity proof to be verified sent by an identity proof user in any blockchain; wherein the identity proof to be verified is digitally signed by the device private key of the identity proof user; a query module for querying the device public key corresponding to the device private key stored by the identity proof user from any blockchain; a verification module for verifying the signature of the identity proof to be verified based on the device public key; and if the signature verification passes, determining that the identity authentication for the identity proof user has passed.

[0020] The blockchain-based identity authentication method and device described in the present invention have the following beneficial effects: in a cross-chain scenario, the present invention introduces the device public key and device private key of the identity proof user. On the one hand, the device public key used for signature verification is stored in all blockchains in the identity authentication system. On the other hand, when the identity proof user authorizes the original identity proof to the identity proof verifier, the identity private key is no longer used but the device private key is used to digitally sign the original identity proof. Since the device public key is globally unique, it will not be affected by the conflict of decentralized digital identities, thereby realizing cross-chain authentication of decentralized digital identities. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] FIG1 exemplarily shows a schematic diagram of an identity authentication system under the same blockchain;

[0022] FIG2 exemplarily shows a schematic diagram of an identity authentication system in a cross-chain scenario;

[0023] FIG3 exemplarily shows a flowchart of a blockchain-based identity authentication method according to the present invention, in which the identity proof user is the execution subject;

[0024] FIG4 exemplarily shows a schematic diagram of an improved identity authentication system in a cross-chain scenario according to the present invention;

[0025] FIG5 exemplarily shows a flowchart of a blockchain-based identity authentication method according to the present invention, in which the identity verification party is the execution subject;

[0026] FIG6 exemplarily shows a module diagram of a blockchain-based identity authentication device according to the present invention;

[0027] FIG7 exemplarily shows a module diagram of the blockchain-based identity authentication device according to the present invention. DETAILED DESCRIPTION

[0028] The blockchain-based identity authentication method and device, computer-readable storage medium, and electronic device described in the present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments of the specification, but this detailed description does not constitute a limitation of the present invention.

[0029] First, some technical concepts involved in the present invention are introduced.

[0030] Decentralized Identity (DID) is a digital identity system based on blockchain technology, which has the characteristics of ensuring data authenticity, protecting user privacy and security, and strong portability.

[0031] When implementing DID, it also requires the use of a decentralized public key infrastructure (DPKI). DPKI-based blockchains can provide a cryptographically secure infrastructure. Specifically, this infrastructure generates a public-private key pair associated with the DID and digitally signs and verifies the data being transmitted based on the public-private key pair, ensuring the authenticity and trustworthiness of the data being transmitted.

[0032] Generally, in most existing DID solutions, DPKI is implemented within the same blockchain. See Figure 1 for a schematic diagram of an identity authentication system within the same blockchain.

[0033] According to different roles, blockchain members in the blockchain can be divided into identity providers, identity users and identity verifiers.

[0034] First, the identity provider, identity user, and identity verifier all need to store the public key associated with their own DID in the blockchain, while the private key corresponding to the public key is stored locally by the blockchain members.

[0035] As shown in Figure 1, the identity provider's public key pubkey1, the identity user's public key pubkey2, and the identity verifier's public key pubkey3 all need to be stored in the blockchain, while the identity provider's private key prikey1, the identity user's private key prikey2, and the identity verifier's private key prikey3 are each stored locally.

[0036] The identity proof provider can provide an identity proof to the identity proof user, which can be an endorsement of the identity authenticity of the identity proof user. Specifically, the identity proof provider can use the local identity private key prikey1 to digitally sign the identity proof data to obtain the signed identity proof prikey1(data).

[0037] The identity user can authorize the identity to the identity verifier. Specifically, the identity user uses the local identity private key prikey2 to digitally sign the identity prikey1(data) signed by the identity provider again, and obtains the second signed identity prikey2(prikey1(data)).

[0038] After receiving the identity certificate prikey2(prikey1(data)), the identity verifier needs to verify the authenticity of this identity certificate. Specifically, the identity verifier can query the blockchain for the identity provider's public key pubkey1 and the identity user's public key pubkey2. More specifically, based on the identity provider's DID, the identity public key pubkey1 associated with that DID is retrieved from the blockchain; based on the identity user's DID, the identity public key pubkey2 associated with that DID is retrieved from the blockchain.

[0039] Furthermore, the identity proof prikey2(prikey1(data)) is signed using the identity public key pubkey2 (to verify that the identity proof is indeed used by the identity proof user). If the verification is successful, the identity proof prikey1(data) can be obtained. Furthermore, the identity proof prikey1(data) is signed using the identity public key pubkey1 (to verify that the identity proof is indeed provided by the identity proof provider). If the verification is successful, the identity proof data can be obtained, and it is determined that the identity authentication for the identity proof user is successful.

[0040] It should be noted that the public and private keys of the identity verifier are not used in the above example because they are not required when acting as the identity verifier. In practice, the roles of identity provider, identity user, and identity verifier can change. When the blockchain member corresponding to the private key prikey3 in Figure 1 acts as the identity provider or identity user, the private key prikey3 and public key pubkey3 are used.

[0041] DPKI within the same blockchain can implement DID. However, if multiple blockchains are involved, since the public keys of different blockchain members are only stored in their respective blockchains, the identity verification party will face the question of which blockchain to query when querying the public key.

[0042] Please refer to Figure 2 below for a schematic diagram of DPKI in a cross-chain scenario. In a cross-chain scenario, multiple different blockchains may be involved. Figure 1 shows two blockchains, Blockchain 1 and Blockchain 2, which use the same DPKI.

[0043] First, the identity provider, identity user, and identity verifier need to store the public key associated with their DID in their respective blockchains, while the private key corresponding to the public key is stored locally by the blockchain members.

[0044] As shown in Figure 2, the identity provider's public key pubkey1 is stored in blockchain 1, the identity user's public key pubkey2 is stored in blockchain 2, and the identity verifier's public key pubkey3 is stored in blockchain 1; while the identity provider's private key prikey1, the identity user's private key prikey2, and the identity verifier's private key prikey3 are each stored locally.

[0045] The identity provider provides an identity certificate to the identity user, and the identity user authorizes the identity certificate to the identity verifier, which is the same as in the same blockchain mentioned above and will not be repeated here.

[0046] Furthermore, after receiving the identity certificate prikey2(prikey1(data)) provided by the identity user, the identity verifier also needs to verify the authenticity of this identity certificate. To do this, the identity verifier needs to query the identity public keys pubkey1 and pubkey2 from the blockchain. Since there are multiple blockchains, the question arises as to which blockchain to query from.

[0047] The example in Figure 2 only shows two blockchains, which may not be intuitive enough to understand this problem. Assume that there are 100 blockchains. If a traversal query is performed, up to 100 blockchains need to be accessed to find the identity public keys pubkey1 and pubkey2, which means the query efficiency is low.

[0048] In related technologies, it is possible to synchronize the public keys of identities across various blockchains, allowing all public keys to be retrieved from any blockchain. However, because these different blockchains utilize the same DID technology, DID conflicts are inevitable. DID conflicts prevent cross-chain authentication of decentralized digital identities. Specifically, once a DID conflict occurs, the public keys associated with the DID are no longer unique, leading to confusion between public keys stored in the blockchain. More specifically, when an identity verification party queries the blockchain based on a specific DID, multiple public keys associated with that DID may be retrieved. Verifying with the wrong public key may result in an incorrect identity verification. Therefore, DID conflicts prevent cross-chain authentication of decentralized digital identities.

[0049] In one embodiment of the present invention, a blockchain-based identity authentication method is proposed. FIG3 exemplarily illustrates a flow chart of the blockchain-based identity authentication method of the present invention under one embodiment, which can be applied to an identity proof user in an identity authentication system.

[0050] The above-mentioned identity authentication system will be described below with reference to the schematic diagram of the improved identity authentication system in the cross-chain scenario shown in FIG4 .

[0051] As shown in Figure 4, the identity authentication system consists of at least two blockchains that can be used to implement decentralized digital identities (DIDs), and the blockchains store identity public keys associated with decentralized digital identities uploaded by each blockchain member; wherein, the identity private keys corresponding to the identity public keys are stored locally by the blockchain members; the blockchain members include identity proof providers, identity proof users, and identity proof verifiers; the blockchains also store device public keys based on trusted computing uploaded by identity proof users in each blockchain, and the device private keys corresponding to the device public keys are stored locally by the identity authentication users.

[0052] Among them, the device public key may include the device public key of the Internal Internet Finance Authentication Alliance (IIFAA) shown in Figure 4, or the device public key of the Internet Finance Authentication Alliance (IFAA) not shown in Figure 4.

[0053] Returning to FIG. 3 , the above-mentioned blockchain-based identity authentication method may include the following steps 310 to 330 .

[0054] 310: Receive an original identity certificate issued by an identity certificate provider in any blockchain; wherein the original identity certificate includes proof of the identity of the identity certificate user, and the original identity certificate is digitally signed by the identity private key locally stored by the identity certificate provider.

[0055] Taking Figure 4 as an example, the identity provider in blockchain 1 can provide an identity certificate to the identity user in blockchain 2. This identity certificate can serve as an endorsement of the identity authenticity of the identity user. Specifically, the identity provider can use its local private key prikey1 to digitally sign the identity certificate data, obtaining the signed original identity certificate prikey1(data).

[0056] 320: Query the public key of the identity provider stored in the blockchain where the identity provider is located, and verify the signature of the original identity certificate based on the public key.

[0057] After receiving the original identity certificate, the identity user can verify its authenticity. For example, in Figure 4, the identity user can query the identity provider's public key pubkey1 stored in the blockchain and use it to verify the signature of the original identity certificate prikey1(data) (to verify that the original identity certificate was indeed provided by the identity provider). If the verification is successful, the original identity certificate data is obtained.

[0058] 330: If the signature verification is successful, the original identity certificate is digitally signed based on the locally stored device private key, and the digitally signed identity certificate to be verified is sent to the identity certificate verifier in any blockchain; so that the identity certificate verifier can query the device public key stored by the identity certificate user from any blockchain, and verify the identity certificate to be verified based on the device public key; and, if the signature verification is successful, it is determined that the identity authentication for the identity certificate user is successful.

[0059] In a cross-chain scenario, the present invention introduces the device public key and device private key of the identity proof user. On the one hand, the device public key used for signature verification is stored in all blockchains in the identity authentication system. On the other hand, when the identity proof user authorizes the original identity proof to the identity proof verifier, the identity private key is no longer used but the device private key is used to digitally sign the original identity proof. Since the device public key is globally unique, it will not be affected by the conflict of decentralized digital identities, thereby realizing cross-chain authentication of decentralized digital identities.

[0060] In some embodiments, the device private key can be stored in a local trusted execution environment (TEE) of the identity proof user; the trusted execution environment can include logic code for executing data signing and logic code for executing signature verification: accordingly, the above-mentioned step 320 of verifying the original identity proof based on the identity public key can include: calling the logic code for executing signature verification stored in the local trusted execution environment, and verifying the original identity proof based on the identity public key; and the above-mentioned step 330 of digitally signing the original identity proof based on the locally stored device private key can include: calling the logic code for executing digital signature stored in the local trusted execution environment, and digitally signing the original identity proof based on the device private key in the trusted execution environment.

[0061] It should be noted that the logic code for executing signature verification and the logic code for executing digital signature are both run in TEE, thereby ensuring data security in the signature verification and digital signature processes.

[0062] As shown in Figure 4 below, the identity proof user calls the local TEE and runs the logic code for executing signature verification stored in the TEE. It uses the identity provider's public key pubkey1 queried from the blockchain to verify the original identity proof prikey1(data). If the verification passes, data can be obtained; then, the logic code for executing digital signature stored in the TEE is continued to run, and the device private key stored in the TEE is used to re-digitally sign the data to obtain the identity proof to be verified newdata = device private key(data).

[0063] Digital signing and signature verification are performed through TEE, thus ensuring data security during the signature verification and digital signing process.

[0064] Furthermore, in some embodiments, the method further includes: obtaining logic code for executing data signature and logic code for executing signature verification from any blockchain, and storing the obtained logic code for executing data signature and logic code for executing signature verification in a local trusted execution environment.

[0065] In the present invention, the logic code for executing data signature and the logic code for executing signature verification can be made public on the blockchain to ensure the openness and transparency of the logic code. On the one hand, it is convenient for the identity proof user to obtain accurate logic code; on the other hand, even if the logic code transmitted outside the blockchain is tampered with, the tampered logic code can be quickly identified by querying the logic code stored in the blockchain.

[0066] Furthermore, in some embodiments, the logic code for executing the digital signature in the blockchain corresponds to a unique code identifier; accordingly, calling the logic code for executing the digital signature stored in the local trusted execution environment and digitally signing the original identity certificate based on the device private key in the trusted execution environment may include: calling the logic code for executing the digital signature stored in the local trusted execution environment, taking the original identity certificate and the code identifier of the logic code for executing the digital signature as a whole, and digitally signing them using the device private key in the trusted execution environment.

[0067] In the present invention, the code identifier of the logic code that executes the digital signature is passed to the identity verification party, so that the identity verification party verifies the identity to be verified and after the verification is passed, the corresponding logic code can be traced from the blockchain based on the code identifier obtained by the verification.

[0068] Furthermore, in some embodiments, the original identity certificate also includes the decentralized digital identity of the identity certificate provider; wherein, an identification bit is set in the decentralized digital identity, and the identification bit records the blockchain identifier of the blockchain that registers the decentralized digital identity; the querying of the identity public key stored by the identity certificate provider from the blockchain where the identity certificate provider is located includes: based on the decentralized digital identity corresponding to the identity certificate provider, obtaining the blockchain identifier of the identification bit record of the decentralized digital identity; querying the identity public key stored by the identity certificate provider from the target blockchain corresponding to the blockchain identifier.

[0069] In the present invention, in order to solve the problem that the blockchain where the identity public key to be queried is located cannot be quickly determined in cross-chain scenarios, an identification bit is specifically set in the decentralized digital identity, and the blockchain identifier of the blockchain where the decentralized digital identity is registered is recorded through the identification bit.

[0070] During implementation, since DID is actually a string, the identity authentication system can agree on the rules of DID strings for all blockchains; for example, it can add a new identifier based on the original string, or it can use characters at a specific position in the original string as an identifier.

[0071] For example, the DID string generated by blockchain 01 is DID:ION:dfaefaejflin098fanfeixxxfeafe9. Taking the addition of a new identifier as an example, assuming the identity authentication system stipulates adding an identifier after the character "ION," the DID string generated by blockchain 01 based on this convention will become DID:ION01:dfaefaejflin098fanfeixxxfeafe9.

[0072] In this way, through the identification bit set after the character "ION", it can be determined that the DID is generated by blockchain 01, and therefore the identity public key associated with the DID is also stored in blockchain 01.

[0073] Furthermore, in some embodiments, the method further includes: in response to a registration request initiated for the device public key of the identity proof user, storing the device public key in each blockchain in the identity authentication system.

[0074] As mentioned above, the identity proof user needs to synchronize his or her device public key to all blockchains in the identity authentication system so that the identity proof verifier can obtain the device public key used to verify the identity proof from any blockchain.

[0075] It should be noted that as a blockchain member of the blockchain where it is located, the identity verification party can query the device public key from the blockchain where it is located relatively efficiently; of course, it can also query the device public key from other blockchains through the cross-chain technology of the blockchain.

[0076] In step 330 shown in Figure 3, the identity verification party queries the public key of the device stored by the identity user from any blockchain and verifies the signature of the identity to be verified based on the device public key. If the signature verification is successful, the identity authentication of the identity user is determined to be successful. Please refer to another blockchain-based identity authentication method shown below.

[0077] In addition to Figure 3 , Figure 5 illustrates a flowchart of another blockchain-based identity authentication method according to one embodiment of the present invention. This method can be applied to the identity verification part of an identity authentication system. The identity authentication system can also be described with reference to Figure 4 , and will not be further described here.

[0078] As shown in FIG5 , the above-mentioned blockchain-based identity authentication method may include the following steps 510 to 530 .

[0079] 510. Receive an identity certificate to be verified sent by an identity certificate user in any blockchain; wherein the identity certificate to be verified is digitally signed by a device private key of the identity certificate user.

[0080] As shown in the previous Figure 3, the identity certificate to be verified may include the original identity certificate issued by the identity certificate provider to the identity certificate user; wherein, the original identity certificate is used to prove the identity of the identity certificate user, and the original identity certificate is digitally signed by the identity private key locally stored by the identity certificate provider.

[0081] Furthermore, in some embodiments, the identity certificate to be verified is generated in a local trusted execution environment of the identity certificate user, and the trusted execution environment contains logic code for executing digital signatures and the device private key of the identity certificate user; the identity certificate to be verified is further digitally signed by the logic code for executing digital signatures stored in the trusted execution environment, based on the device private key in the trusted execution environment, for the original identity certificate.

[0082] As shown in the embodiment of Figure 3, executing digital signatures through the TEE can ensure data security during the digital signature process. More specifically, executing digital signatures in the local TEE of the identity proof user can ensure the secure generation of the identity proof to be verified.

[0083] 520. Query the device public key corresponding to the device private key stored by the identity proof user from any blockchain.

[0084] Taking Figure 4 as an example, after receiving the identity proof (newdata) sent by the identity proof user, the identity proof verifier needs to verify the authenticity of this newdata. Specifically, since this newdata is signed by the identity proof user's device private key, and the device public key (IIFAA) used to verify the signature is pre-stored on all blockchains, the identity proof verifier can query the identity proof user's device public key (IIFAA) corresponding to the device private key on any blockchain.

[0085] It should be noted that as a blockchain member of the blockchain where it is located, the identity verification party can query the device public key from the blockchain where it is located relatively efficiently; of course, it can also query the device public key from other blockchains through the cross-chain technology of the blockchain.

[0086] 530 , verify the signature of the identity certificate to be verified based on the device public key, and if the signature verification passes, determine that the identity authentication of the identity certificate user is passed.

[0087] Taking Figure 4 as an example, the identity verification party can use the device public key IIFAA to verify the identity newdata = device private key (data). If the signature verification is successful, the original identity data can be obtained, and it is determined that the identity authentication for the identity user is successful.

[0088] In a cross-chain scenario, the present invention introduces the device public key and device private key of the identity proof user. On the one hand, the device public key used for signature verification is stored in all blockchains in the identity authentication system. On the other hand, when the identity proof user authorizes the original identity proof to the identity proof verifier, the identity private key is no longer used but the device private key is used to digitally sign the original identity proof. Since the device public key is globally unique, it will not be affected by the conflict of decentralized digital identities, thereby realizing cross-chain authentication of decentralized digital identities.

[0089] Furthermore, in some embodiments, the logic code for executing the digital signature is obtained from the blockchain and stored in the trusted execution environment, and the logic code for executing the digital signature in the blockchain corresponds to a unique code identifier; the identity certificate to be verified is further digitally signed by the trusted execution environment using the original identity certificate and the code identifier of the logic code for executing the digital signature as a whole, using the device private key in the trusted execution environment; accordingly, when the signature verification is passed, the method may also include: responding to a query request for the code identifier in the identity certificate to be verified that has passed the signature verification, querying the logic code corresponding to the code identifier in the blockchain.

[0090] In the present invention, by storing the logic code that executes the digital signature in the blockchain and setting a code identifier corresponding to the logic code, the identity verification party verifies the identity to be verified and after the verification is passed, the corresponding logic code can be traced back from the blockchain based on the code identifier obtained by the verification.

[0091] Corresponding to the aforementioned blockchain-based identity authentication method embodiment, the present invention also provides an embodiment of a blockchain-based identity authentication device.

[0092] Please refer to Figure 6, which is a module diagram of a blockchain-based identity authentication device shown in the present invention. The device corresponds to the embodiment shown in Figure 3. The device can be applied to an identity proof user in an identity authentication system. The identity authentication system is composed of at least two blockchains for realizing decentralized digital identity authentication. The blockchain stores the identity public key associated with the decentralized digital identity uploaded by each blockchain member; wherein the identity private key corresponding to the identity public key is stored locally by the blockchain member; the blockchain members include identity proof providers, identity proof users and identity proof verifiers; the blockchain also stores the device public key based on trusted computing uploaded by the identity proof users in each blockchain, and the device private key corresponding to the device public key is stored locally by the identity authentication user; the device includes: a receiving module 610 for receiving the original identity issued by the identity proof provider in any blockchain Proof; wherein the original identity certificate is used to prove the identity of the identity certificate user, and the original identity certificate is digitally signed by the identity private key stored locally by the identity certificate provider; the verification module 620 is used to query the identity public key stored by the identity certificate provider from the blockchain where the identity certificate provider is located, and verify the original identity certificate based on the identity public key; the signature module 630 is used to digitally sign the original identity certificate based on the locally stored device private key when the verification is passed, and send the digitally signed identity certificate to be verified to the identity certificate verification party in any blockchain; so that the identity certificate verification party can query the device public key stored by the identity certificate user from any blockchain, and verify the identity certificate to be verified based on the device public key; and, when the verification is passed, it is determined that the identity authentication for the identity certificate user is passed.

[0093] Further, in some embodiments, the device private key is stored in a local trusted execution environment of the identity proof user; the trusted execution environment contains logic code for executing data signatures and logic code for executing signature verification: the verification module 620 verifies the original identity proof based on the identity public key, which may specifically include: calling the logic code for executing signature verification stored in the local trusted execution environment, and verifying the original identity proof based on the identity public key; the signature module 630 digitally signs the original identity proof based on the locally stored device private key, which may specifically include: calling the logic code for executing digital signature stored in the local trusted execution environment, and digitally signing the original identity proof based on the device private key in the trusted execution environment.

[0094] Furthermore, in some embodiments, the device may also include: a storage module, configured to obtain logic code for executing data signatures and logic code for executing signature verification from any blockchain, and store the obtained logic code for executing data signatures and logic code for executing signature verification in a local trusted execution environment.

[0095] Furthermore, in some embodiments, the original identity certificate also includes the decentralized digital identity of the identity certificate provider; wherein, an identification bit is set in the decentralized digital identity, and the identification bit records the blockchain identifier of the blockchain that registers the decentralized digital identity; the verification module 620 queries the identity public key stored by the identity certificate provider from the blockchain where the identity certificate provider is located, which can specifically include: based on the decentralized digital identity corresponding to the identity certificate provider, obtaining the blockchain identifier of the identification bit record of the decentralized digital identity; and querying the identity public key stored by the identity certificate provider from the target blockchain corresponding to the blockchain identifier.

[0096] Furthermore, in some embodiments, the apparatus may further include: a registration module for, in response to a registration request initiated for the device public key of the identity proof user, storing the device public key in each blockchain in the identity authentication system.

[0097] Furthermore, in some embodiments, the logic code for executing digital signature in the blockchain corresponds to a unique code identifier; the signature module 630 calls the logic code for executing digital signature stored in the local trusted execution environment, and digitally signs the original identity certificate based on the device private key in the trusted execution environment. Specifically, it may include: calling the logic code for executing digital signature stored in the local trusted execution environment, taking the original identity certificate and the code identifier of the logic code for executing digital signature as a whole, and digitally signing it using the device private key in the trusted execution environment.

[0098] Please refer to Figure 7, which is a module diagram of a blockchain-based identity authentication device according to the present invention. The device corresponds to the embodiment shown in Figure 5. The device can be applied to the identity verification party in the identity authentication system. The identity authentication system is composed of at least two blockchains for realizing decentralized digital identity authentication. The blockchain stores the identity public key associated with the decentralized digital identity uploaded by each blockchain member; wherein the identity private key corresponding to the identity public key is stored locally by the blockchain member; the blockchain members include the identity proof provider, the identity proof user and the identity proof verifier; the blockchain also stores the identity proof uploaded by the identity proof user in each blockchain. A device public key based on trusted computing, and a device private key corresponding to the device public key are locally stored by the identity authentication user; the apparatus comprises: a receiving module 710, for receiving an identity certificate to be verified sent by an identity authentication user in any blockchain; wherein the identity authentication to be verified is digitally signed by the device private key of the identity authentication user; a query module 720, for querying the device public key corresponding to the device private key stored by the identity authentication user from any blockchain; a verification module 730, for verifying the signature of the identity authentication to be verified based on the device public key; and if the signature verification passes, determining that the identity authentication for the identity authentication user is passed.

[0099] Furthermore, in some embodiments, the identity certificate to be verified includes the original identity certificate issued by the identity certificate provider to the identity certificate user; wherein, the original identity certificate is used to prove the identity of the identity certificate user, and the original identity certificate is digitally signed by the identity private key locally stored by the identity certificate provider.

[0100] Furthermore, in some embodiments, the identity certificate to be verified is generated in a local trusted execution environment of the identity certificate user, and the trusted execution environment contains logic code for executing digital signatures and the device private key of the identity certificate user; the identity certificate to be verified is further digitally signed by the logic code for executing digital signatures stored in the trusted execution environment, based on the device private key in the trusted execution environment, for the original identity certificate.

[0101] Furthermore, in some embodiments, the logic code for executing the digital signature is obtained from the blockchain and stored in the trusted execution environment, and the logic code for executing the digital signature in the blockchain corresponds to a unique code identifier; the identity certificate to be verified is further digitally signed by the trusted execution environment using the original identity certificate and the code identifier of the logic code for executing the digital signature as a whole, using the device private key in the trusted execution environment; the verification module 730 is also used to, when the verification is passed, respond to a query request for the code identifier in the identity certificate to be verified that has passed the verification, and query the logic code corresponding to the code identifier in the blockchain.

[0102] The implementation process of the functions and effects of each module in the above-mentioned device is specifically described in the implementation process of the corresponding steps in the above-mentioned method, and will not be repeated here.

[0103] For the device embodiments, since they basically correspond to the method embodiments, the relevant parts can be referred to the partial description of the method embodiments. The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the present invention. A person of ordinary skill in the art can understand and implement the present invention without inventive work.

[0104] The internal functional modules and structure of the blockchain-based identity authentication device described above are schematically shown. Its actual execution subject can be an electronic device, including: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to execute any of the above-mentioned blockchain-based identity authentication method embodiments.

[0105] In the embodiment of the above-mentioned electronic device, it should be understood that the processor can be a processing unit (Central Processing Unit, abbreviated as: CPU), or can be other general-purpose processors, digital signal processors (Digital Signal Processor, abbreviated as: DSP), application-specific integrated circuits (Application Specific Integrated Circuit, abbreviated as: ASIC), etc. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc., and the aforementioned memory can be a read-only memory (ROM), a random access memory (RAM), a flash memory, a hard disk, or a solid-state drive. The steps of the method disclosed in conjunction with the embodiment of the present invention can be directly embodied as being executed by a hardware processor, or can be executed by a combination of hardware and software modules in the processor.

[0106] In addition, the present invention also provides a computer-readable storage medium. When the instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device can execute any of the above-mentioned embodiments of the blockchain-based identity authentication method.

[0107] It should be noted that the above examples are merely specific embodiments of the present invention. Obviously, the present invention is not limited to the above examples, and many similar variations are possible. All variations directly derived from or associating with the present invention by those skilled in the art are intended to fall within the scope of protection of the present invention.

Claims

1. A blockchain-based identity authentication method, applied to an identity certification user in an identity authentication system, wherein the identity authentication system is composed of at least two blockchains for realizing decentralized digital identity authentication, and the blockchains store identity public keys associated with decentralized digital identities uploaded by respective blockchain members; wherein: The identity private key corresponding to the identity public key is stored locally by a blockchain member; the blockchain members include an identity proof provider, an identity proof user, and an identity proof verifier; the blockchain also stores a device public key based on trusted computing uploaded by the identity proof user in each blockchain, and the device private key corresponding to the device public key is stored locally by the identity authentication user, and the method includes: Receive an original identity certificate issued by an identity certificate provider in any blockchain; wherein the original identity certificate includes proof of the identity of the identity certificate user, and the original identity certificate is digitally signed by the identity private key locally stored by the identity certificate provider; Query the identity public key stored by the identity proof provider from the blockchain where the identity proof provider is located, and verify the signature of the original identity proof based on the identity public key; If the signature verification is successful, the original identity certificate is digitally signed based on the locally stored device private key, and the digitally signed identity certificate to be verified is sent to the identity certificate verification party in any blockchain; so that the identity certificate verification party can query the device public key stored by the identity certificate user from any blockchain, and verify the identity certificate to be verified based on the device public key; and, if the signature verification is successful, it is determined that the identity authentication for the identity certificate user is successful.

2. In the blockchain-based identity authentication method according to claim 1, the device private key is stored in a local trusted execution environment of the identity proof user; the trusted execution environment contains logic code for executing data signature and logic code for executing signature verification: The verifying the signature of the original identity certificate based on the identity public key includes: Calling the logic code for executing signature verification stored in the local trusted execution environment to verify the signature of the original identity certificate based on the identity public key; The digitally signing the original identity certificate based on the locally stored device private key includes: The logic code for executing digital signature stored in the local trusted execution environment is called, and the original identity certificate is digitally signed based on the device private key in the trusted execution environment.

3. The blockchain-based identity authentication method according to claim 2, further comprising: Obtain the logic code for executing data signature and the logic code for executing signature verification from any blockchain, and store the obtained logic code for executing data signature and the logic code for executing signature verification in a local trusted execution environment.

4. The blockchain-based identity authentication method according to claim 2, wherein the original identity certificate also includes the decentralized digital identity of the identity certificate provider; wherein: The decentralized digital identity is provided with an identification bit, and the identification bit records the blockchain identification of the blockchain on which the decentralized digital identity is registered; The querying the identity public key stored by the identity proof provider from the blockchain where the identity proof provider is located includes: Based on the decentralized digital identity corresponding to the identity proof provider, obtain the decentralized digital identity The blockchain identifier of the identification bit record; The public key stored by the identity proof provider is queried from the target blockchain corresponding to the blockchain identifier.

5. The blockchain-based identity authentication method according to claim 1, further comprising: In response to a registration request initiated for the device public key of the identity proof user, the device public key is stored in each blockchain in the identity authentication system.

6. The blockchain-based identity authentication method according to claim 3, wherein the logic code for executing the data signature in the blockchain corresponds to a unique code identifier; The calling of the logic code for executing the digital signature stored in the local trusted execution environment, and digitally signing the original identity certificate based on the device private key in the trusted execution environment, includes: The logic code for executing the digital signature stored in the local trusted execution environment is called, the original identity certificate and the code identifier of the logic code for executing the digital signature are taken as a whole, and the device private key in the trusted execution environment is used to perform digital signing.

7. A blockchain-based identity authentication method, applied to an identity verification party in an identity authentication system, wherein the identity authentication system is composed of at least two blockchains for realizing decentralized digital identities, and the blockchains store identity public keys associated with decentralized digital identities uploaded by respective blockchain members; wherein: The identity private key corresponding to the identity public key is stored locally by a blockchain member; the blockchain members include an identity proof provider, an identity proof user, and an identity proof verifier; the blockchain also stores a device public key based on trusted computing uploaded by the identity proof user in each blockchain, and the device private key corresponding to the device public key is stored locally by the identity authentication user, and the method includes: Receiving an identity certificate to be verified sent by an identity certificate user in any blockchain; wherein the identity certificate to be verified is digitally signed by a device private key of the identity certificate user; Querying the device public key corresponding to the device private key stored by the identity proof user from any blockchain; The identity certificate to be verified is signed based on the device public key, and if the signature verification passes, it is determined that the identity authentication for the user of the identity certificate is passed.

8. The blockchain-based identity authentication method according to claim 7, wherein the identity certificate to be verified includes the original identity certificate issued by the identity certificate provider to the identity certificate user; wherein: The original identity certificate is used to prove the identity of the identity certificate user, and the original identity certificate is digitally signed by the identity private key locally stored by the identity certificate provider.

9. The blockchain-based identity authentication method according to claim 8, wherein the identity certificate to be verified is generated in a local trusted execution environment of the identity certificate user, and the trusted execution environment contains logic code for executing data signature and a device private key of the identity certificate user; The identity certificate to be verified is further digitally signed by a logic code for executing digital signature stored in the trusted execution environment, based on a device private key in the trusted execution environment, on the original identity certificate.

10. The blockchain-based identity authentication method according to claim 9, wherein the logic code for executing the digital signature is obtained from the blockchain and stored in the trusted execution environment, and the logic code for executing the digital signature in the blockchain corresponds to a unique code identifier; The identity certificate to be verified is further digitally signed by the trusted execution environment using the device private key in the trusted execution environment by taking the original identity certificate and the code identifier of the logic code for executing the digital signature as a whole; If the signature verification is passed, it also includes: In response to a query request for a code identifier in the identity certificate to be verified that has passed the signature verification, query the blockchain for a logic code corresponding to the code identifier.

11. A blockchain-based identity authentication device, applied to an identity certification user in an identity authentication system, wherein the identity authentication system is composed of at least two blockchains for realizing decentralized digital identities, and the blockchains store identity public keys associated with decentralized digital identities uploaded by respective blockchain members; wherein: The identity private key corresponding to the identity public key is stored locally by the blockchain member; the blockchain members include an identity proof provider, an identity proof user and an identity proof verifier; the blockchain also stores a device public key based on trusted computing uploaded by the identity proof user in each blockchain, and the device private key corresponding to the device public key is stored locally by the identity authentication user, and the device includes: A receiving module, used to receive an original identity certificate issued by an identity certificate provider in any blockchain; wherein the original identity certificate is used to prove the identity of the identity certificate user, and the original identity certificate is digitally signed by the identity private key locally stored by the identity certificate provider; A verification module, used to query the identity public key stored by the identity proof provider from the blockchain where the identity proof provider is located, and verify the signature of the original identity proof based on the identity public key; The signature module is used to digitally sign the original identity certificate based on the locally stored device private key when the signature verification passes, and send the digitally signed identity certificate to be verified to the identity certificate verification party in any blockchain; so that the identity certificate verification party can query the device public key stored by the identity certificate user from any blockchain, and verify the identity certificate to be verified based on the device public key; and, when the signature verification passes, determine that the identity authentication for the identity certificate user has passed.

12. A blockchain-based identity authentication device, applied to an identity verification party in an identity authentication system, wherein the identity authentication system is composed of at least two blockchains for realizing decentralized digital identities, and the blockchains store identity public keys associated with decentralized digital identities uploaded by respective blockchain members; wherein: The identity private key corresponding to the identity public key is stored locally by the blockchain member; the blockchain members include an identity proof provider, an identity proof user and an identity proof verifier; the blockchain also stores a device public key based on trusted computing uploaded by the identity proof user in each blockchain, and the device private key corresponding to the device public key is stored locally by the identity authentication user, and the device includes: A receiving module, used to receive an identity certificate to be verified sent by an identity certificate user in any blockchain; wherein the identity certificate to be verified is digitally signed by a device private key of the identity certificate user; A query module, used to query the device public key corresponding to the device private key stored by the identity proof user from any blockchain; The verification module verifies the signature of the identity certificate to be verified based on the device public key; and if the signature verification passes, determines that the identity authentication of the user of the identity certificate is passed.

13. A computer-readable storage medium, wherein the storage medium stores a computer program, wherein the computer program, when executed by a processor, implements the method according to any one of claims 1 to 10.

14. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method according to any one of claims 1 to 10 when executing the program.

Citation Information

Patent Citations

  • Block chain cross-chain authentication method, system, server, and readable storage medium

    CN109257342A

  • Cross-chain block chain communication method and device

    CN112491846A

  • Repeater-cross-chain-based decentralized identity method for mortgage loan

    CN113360861A

  • Identity authentication method and device based on block chain

    CN116566615A

  • Cross-chain access control method and apparatus

    WO2022205965A1