Digital identity authentication method and system based on block chain
By using representative nodes and dsBFT consensus algorithms in the blockchain digital identity authentication system, the inconsistency and security of user identity information are solved, and the reliable storage and system security of user digital identity information are realized.
Patent Information
- Application Number
- CN202410995388.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-24
- Publication Date
- 2024-12-06
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
There are risks of personal privacy leakage and data security in the existing digital identity authentication system, and the digital identity information of users in a distributed environment is inconsistent, and an effective consensus mechanism is lacking to ensure that the user registration information on the node is synchronized and consistent.
Adopt a digital identity authentication system based on blockchain, and perform digital identity registration and authentication on behalf of nodes. Use dsBFT consensus algorithm to ensure that the user registration information of each node is consistent, and write user DID data to the blockchain to ensure that the information is not tampered with. and traceability.
It realizes the reliability and consistency of user digital identity information, ensures user privacy and system security, and ensures information synchronization and interoperability between different nodes.
Smart Images

Figure CN119094099A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of blockchain technology, and in particular to a blockchain-based digital identity authentication method and system. Background Art
[0002] The current digital identity authentication system has made significant progress based on the development of blockchain technology. However, the existing technology still has some limitations and drawbacks. In traditional digital identity authentication systems, user identity information is usually managed by a centralized identity provider, which leads to the risk of personal privacy leakage and data security. At the same time, in a distributed environment, different nodes may maintain different copies of registration information, resulting in inconsistency of the user's digital identity information in the network. Existing technologies have limitations in dealing with such consistency and reliability challenges because there is a lack of an effective consensus mechanism to ensure that user registration information on different nodes remains synchronized and consistent.
[0003] In the blockchain-based digital identity authentication system, although blockchain technology provides the characteristics of decentralization, immutability and transparency, there are also some problems. For example, there is currently a lack of widely accepted decentralized identity authentication standards, which leads to interoperability issues between different systems. Therefore, it is necessary to design a blockchain-based digital identity authentication method and system that improves the security and reliability of digital identity registration and management. Summary of the invention
[0004] The purpose of the present invention is to provide a blockchain-based digital identity authentication method and system to solve the problems raised in the above-mentioned background technology.
[0005] In order to solve the above technical problems, the present invention provides the following technical solutions: a digital identity authentication system based on blockchain, the operation method of the system comprises the following steps: Step 1: Register your digital identity through a representative node and start identity verification; Step 2: Through the operation of the dsBFT consensus algorithm, the user registration information of each node is made consistent; Step 3: The representative node writes the block containing the user's DID data into the blockchain; Step 4: Perform service node authentication and use digital identity.
[0006] According to the above technical solution, the step of registering a digital identity through a representative node and starting identity verification includes: The user sends a digital identity registration request to the representative node. After receiving the user registration request, the representative node requires the user to provide identity authentication information to verify whether the user has the authority to register a digital identity. When the user identity authentication is successful, the representative node will generate the user's digital identity through a standard-based DID generation algorithm. The generated DID will be associated with the user's public key information to form a complete digital identity.
[0007] According to the above technical solution, the steps of achieving consistency in user registration information of each node through the operation of the dsBFT consensus algorithm include: The representative node uses the dsBFT consensus algorithm to perform consensus operations on user registration information; Generate a block containing the user's DID data.
[0008] According to the above technical solution, the steps of the representative node using the dsBFT consensus algorithm to perform consensus operations on user registration information include: The representative node provides the prepared user registration information as input to the dsBFT consensus algorithm. This information includes the user's DID, public key, and other associated registration data. When the representative node starts the dsBFT algorithm, it first broadcasts the prepared user registration information to other nodes. After receiving the message, other nodes enter the proposal and pre-preparation phase of dsBFT. In this phase, all nodes can propose proposals containing user registration information and broadcast the proposal to other nodes. Subsequently, each node collects the pre-preparation messages from other nodes, which contain approval of the proposal. Then, the node verifies the received pre-preparation messages to ensure that these messages meet the conditions specified in the protocol. After the pre-preparation phase, the node enters the preparation phase of dsBFT. In this phase, the node proposes formal approval of the proposal and broadcasts the preparation message to other nodes. The node collects the preparation messages from other nodes, which contain formal approval of the proposal.
[0009] According to the above technical solution, the step of generating a block containing user DID data includes: After a certain number of rounds, nodes gradually reach a consensus on the proposal, including the recognition of user registration information, by exchanging messages and voting. Once a consensus is reached, the representative node generates a block containing the user's DID data. This block is consensus-verified and contains an exact copy of the registration information. Finally, the consensus result needs to be finally verified, including verifying the signature of each node, ensuring the correctness of the consensus, and ensuring that the data in the block has not been tampered with. The representative node broadcasts the consensus-verified block to the entire blockchain network, notifying other nodes of the consensus result to ensure that the status of the entire network is consistent.
[0010] According to the above technical solution, the step of the representative node writing the block containing the user DID data into the blockchain includes: First, after consensus is reached, the representative node submits the generated block to the blockchain network, including the user DID data in the block and other relevant transaction information. Secondly, the generated block is written into the blockchain using the blockchain protocol. After the block is written successfully, other nodes in the blockchain network begin to synchronize the new block, so that each node has the same transaction history and user DID data. Finally, when the block is successfully written and synchronized in the network, the user's digital identity information is permanently stored on the blockchain, which is tamper-proof and traceable.
[0011] According to the above technical solution, the steps of performing service node authentication and using digital identity include: First, other service providers synchronize the user's DID data from the representative node or directly from the blockchain network, including the user's DID and the registration data associated with it. The synchronization process can be performed through the API or other data synchronization mechanisms provided by the blockchain network. Secondly, before the service node performs user digital identity authentication, it quickly verifies the legitimacy of the block by obtaining the hash value of the block at different representative nodes. Next, the service node uses the DID data on the chain to authenticate the user's digital identity. By using the user's DID data stored on the blockchain, the service node can verify the user's identity information. Subsequently, by using digital signatures and hash functions to ensure that the user's identity is valid and has not been tampered with, the service node can compare the identity information provided by the user with the information stored on the blockchain to ensure its consistency. Finally, once the authentication is passed, the service node can use the user's digital identity information to provide personalized services, perform authorization operations, or complete other business logic that requires identity authentication. This helps ensure that service providers can rely on trusted user identity information when providing services, and protect the security of the system and the privacy of users.
[0012] According to the above technical solution, the system includes: The user digital identity registration module is used to receive user registration requests on behalf of the node, perform identity verification, and generate a digital identity associated with the user information, laying the foundation for the subsequent blockchain consensus process; The blockchain consensus process module is used to ensure that all nodes reach a consensus on user registration information through the dsBFT consensus algorithm, generate blocks containing user DID data, and maintain the consistency and security of the blockchain network; The service node authentication and digital identity usage module is used by the service node to authenticate the user's digital identity by synchronizing the user's DID data, verifying the legitimacy of the block, and using the on-chain DID data.
[0013] According to the above technical solution, the user digital identity registration module includes: The user registration request receiving module is used to receive the user's digital identity registration request on behalf of the node and start the entire registration process; The identity authentication and DID generation module is used to request the user to provide identity authentication information on behalf of the node. After successfully verifying the user's identity, the standard DID generation algorithm is used to generate the user's digital identity and associate it with the user's public key information. Complete the digital identity registration module, which is used to prepare the successfully generated DID and related registration information on behalf of the node.
[0014] According to the above technical solution, the blockchain consensus process module includes: User registration information preparation and dsBFT consensus module, used to represent the node to input the prepared user registration information into the dsBFT consensus algorithm; The block generation and consensus verification module is used to generate blocks containing user DID data on behalf of the node and perform consensus verification; The block writing and synchronization module is used to write blocks containing user DID data to the blockchain on behalf of the node.
[0015] Compared with the prior art, the beneficial effects achieved by the present invention are as follows: in the present invention, first, the user completes identity authentication by sending a digital identity registration request to the representative node. The representative node uses a standard DID generation algorithm to generate a digital identity identifier for the user and associates the user's public key and other information. Subsequently, the representative node uses a dsBFT consensus algorithm to ensure that the user registration information of each node in the blockchain network is consistent. Next, the representative node writes a block containing the user's DID data into the blockchain to achieve permanent recording of the user's digital identity information. Finally, other service providers synchronize the user's DID data and verify the user's digital identity on the service node. The service node verifies the legitimacy of the block by obtaining the hash value of the block, and authenticates the user's digital identity with the help of the DID data on the chain. After the authentication is passed, the service provider can use the user's digital identity information to provide personalized services, ensuring the security of the system and user privacy. This method ensures the reliability and consistency of user identity information. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] The accompanying drawings are used to provide a further understanding of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the present invention and do not constitute a limitation of the present invention. In the accompanying drawings: Figure 1 A flowchart of a blockchain-based digital identity authentication method provided in Example 1 of the present invention; Figure 2A schematic diagram of the module composition of a blockchain-based digital identity authentication system provided in Example 2 of the present invention. DETAILED DESCRIPTION
[0017] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0018] Embodiment 1: Figure 1 This is a flowchart of a digital identity authentication method based on blockchain provided in Embodiment 1 of the present invention. This embodiment can be applied to scenarios of digital identity authentication. This method can be executed by a digital identity authentication system based on blockchain provided in this embodiment. Figure 1 As shown, the method specifically comprises the following steps: Step 1: Register your digital identity through a representative node and start identity verification; In the embodiment of the present invention, the user registers the digital identity at the representative node. The representative node is a special node in the network and is responsible for processing the user's registration request. After receiving the user's registration request, the representative node starts the identity verification; Exemplarily, a user sends a digital identity registration request to a representative node. After receiving the user registration request, the representative node requires the user to provide identity authentication information to verify whether the user has the authority to register a digital identity. When the user's identity is successfully authenticated, the representative node will generate a digital identity for the user through a standard-based DID generation algorithm. The generated DID will be associated with the user's public key and other information to form a complete digital identity. Through this step, the user will successfully register a digital identity, laying the foundation for the subsequent blockchain consensus process.
[0019] Step 2: Through the operation of the dsBFT consensus algorithm, the user registration information of each node is made consistent; In the embodiment of the present invention, the representative node performs a consensus operation on the prepared user registration information by using the dsBFT consensus algorithm to ensure that the user registration information in the blockchain network is consistent; Exemplarily, the representative node provides the prepared user registration information as input to the dsBFT consensus algorithm. This information includes the user's DID, public key, and other associated registration data. When the representative node starts the dsBFT algorithm, it first broadcasts the prepared user registration information to other nodes. After receiving the message, other nodes enter the proposal and pre-preparation phase of dsBFT. In this phase, all nodes can propose proposals containing user registration information and broadcast the proposals to other nodes. Subsequently, each node collects pre-preparation messages from other nodes, which contain approval of the proposal. Then, the node verifies the received pre-preparation messages to ensure that these messages meet the conditions specified in the protocol. After the pre-preparation phase, the node enters the preparation phase of dsBFT. In this phase, the node proposes formal approval of the proposal and broadcasts the preparation message to other nodes. The node collects preparation messages from other nodes, which contain formal approval of the proposal. For example, after a certain number of rounds, nodes gradually reach a consensus on the proposal, including the recognition of user registration information, by exchanging messages and voting. Once a consensus is reached, the representative node generates a block containing the user's DID data. This block is consensus-verified and contains an exact copy of the registration information. Finally, the consensus result needs to be finally verified, including verifying the signature of each node, ensuring the correctness of the consensus, and ensuring that the data in the block has not been tampered with. The representative node broadcasts the consensus-verified block to the entire blockchain network, notifying other nodes of the consensus result, and ensuring that the state of the entire network is consistent; For example, when there are five nodes (A, B, C, D, E), one of which is a representative node, and is in the process of consensus on user identity registration, first, the representative node A starts the dsBFT algorithm and broadcasts the prepared user registration information to other nodes (B, C, D, E), including user DID, public key, etc. After nodes B, C, D, E receive the proposal, they each generate a pre-prepared message to indicate their approval of the proposal, and broadcast the message to other nodes. Node A receives the pre-prepared message from other nodes, verifies the validity of the message, and ensures that it comes from a legitimate node. Subsequently, node A generates a prepare message to formally approve the proposal and broadcasts the prepare message to other nodes. When nodes B, C, D, E receive the pre-prepared message, node A generates a prepare message to formally approve the proposal and broadcasts the prepare message to other nodes. After receiving the prepare message, verify the validity of the message to ensure recognition from legitimate nodes. After multiple rounds of collaboration and voting, node A and other nodes reach a consensus on the proposal. Node A generates a block containing the user's DID data and digitally signs the block. The final verification of the consensus result ensures the correctness and security of the block. Node A broadcasts the block that has passed the consensus verification to the entire network. After receiving it, other nodes verify the validity of the block and synchronize the status of the entire network. In this step, the dsBFT algorithm ensures that after a certain number of rounds, a consensus is reached on the user registration information through multiple rounds of distributed collaboration and voting between nodes, which helps maintain the consistency and reliability of the entire blockchain network.
[0020] Step 3: The representative node writes the block containing the user's DID data into the blockchain; In an embodiment of the present invention, after consensus is reached, the representative node writes the block containing the user's DID data into the blockchain to ensure that the registration information of the user's digital identity is permanently recorded on the blockchain; Exemplarily, first, after consensus is reached, the representative node submits the generated block to the blockchain network, including the user DID data in the block and other relevant transaction information. Secondly, the generated block is written into the blockchain using the blockchain protocol. After the block is successfully written, other nodes in the blockchain network begin to synchronize the new block, so that each node has the same transaction history and user DID data. Finally, when the block is successfully written and synchronized in the network, the user's digital identity information is permanently stored on the blockchain, which is tamper-proof and traceable. This step ensures the long-term preservation of user registration information, prevents data loss and tampering, and maintains the stability and consistency of the entire blockchain network.
[0021] Step 4: Perform service node authentication and use digital identity.
[0022] In the embodiment of the present invention, other service providers authenticate the user's digital identity by synchronizing the user's DID data and verifying it on the service node, ensuring that the user's identity is valid and credible; Exemplarily, first, other service providers synchronize the user's DID data from the representative node or directly from the blockchain network, including the user's DID and the registration data associated with it. The synchronization process can be performed through the API or other data synchronization mechanism provided by the blockchain network. Secondly, before performing user digital identity authentication, the service node quickly verifies the legitimacy of the block by obtaining the hash value of the block at different representative nodes. Next, the service node uses the DID data on the chain to authenticate the user's digital identity. By using the user's DID data stored on the blockchain, the service node can verify the user's identity information. Subsequently, by using encryption technologies such as digital signatures and hash functions to ensure that the user's identity is valid and has not been tampered with, the service node can compare the identity information provided by the user with the information stored on the blockchain to ensure its consistency. Finally, once the authentication is passed, the service node can use the user's digital identity information to provide personalized services, perform authorization operations or complete other business logic that requires identity authentication. This helps to ensure that service providers can rely on trusted user identity information when providing services, protect the security of the system and the privacy of users. Through this step, other service providers can effectively authenticate the user's digital identity in a distributed environment and ensure the reliability and consistency of user identity information in the entire system.
[0023] Embodiment 2: Embodiment 2 of the present invention provides a digital identity authentication system based on blockchain. Figure 2 A schematic diagram of the module composition of a blockchain-based digital identity authentication system provided in Embodiment 2 of the present invention is shown in FIG. Figure 2 As shown, the system includes: The user digital identity registration module is used to receive user registration requests on behalf of the node, perform identity verification, and generate a digital identity associated with the user information, laying the foundation for the subsequent blockchain consensus process; The blockchain consensus process module is used to ensure that all nodes reach a consensus on user registration information through the dsBFT consensus algorithm, generate blocks containing user DID data, and maintain the consistency and security of the blockchain network; The service node authentication and digital identity usage module is used by the service node to authenticate the user's digital identity by synchronizing the user's DID data, verifying the legitimacy of the block, and using the on-chain DID data; In some embodiments of the present invention, the user digital identity registration module includes: The user registration request receiving module is used to receive the user's digital identity registration request on behalf of the node and start the entire registration process; The identity authentication and DID generation module is used to request the user to provide identity authentication information on behalf of the node. After successfully verifying the user's identity, the standard DID generation algorithm is used to generate the user's digital identity and associate the user's public key and other information. Complete the digital identity registration module, which is used to prepare the successfully generated DID and related registration information on behalf of the node; In some embodiments of the present invention, the blockchain consensus process module includes: User registration information preparation and dsBFT consensus module, used to represent the node to input the prepared user registration information into the dsBFT consensus algorithm; The block generation and consensus verification module is used to generate blocks containing user DID data on behalf of the node and perform consensus verification; The block writing and synchronization module is used to write blocks containing user DID data to the blockchain on behalf of the node; In some embodiments of the present invention, the service node authentication and digital identity usage module includes: The user DID data synchronization module is used by other service providers to synchronize the user's DID data from the representative node or blockchain network; The block legitimacy verification module is used for the service node to obtain the hash value of the block from different representative nodes and quickly verify the legitimacy of the block; The user digital identity authentication module is used by the service node to authenticate the user's digital identity with the help of the DID data on the chain.
[0024] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device.
[0025] Finally, it should be noted that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art can still modify the technical solutions described in the aforementioned embodiments or replace some of the technical features therein by equivalents. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A digital identity authentication method based on blockchain, characterized in that: The method comprises the following steps: Step 1: Register your digital identity through a representative node and start identity verification; Step 2: Through the operation of the dsBFT consensus algorithm, the user registration information of each node is made consistent; Step 3: The representative node writes the block containing the user's DID data into the blockchain; Step 4: Perform service node authentication and use digital identity.
2. The blockchain-based digital identity authentication method according to claim 1, characterized in that: The steps of registering a digital identity through a representative node and starting identity authentication include: The user sends a digital identity registration request to the representative node. After receiving the user registration request, the representative node requires the user to provide identity authentication information to verify whether the user has the authority to register a digital identity. When the user identity authentication is successful, the representative node will generate the user's digital identity through a standard-based DID generation algorithm. The generated DID will be associated with the user's public key information to form a complete digital identity.
3. The blockchain-based digital identity authentication method according to claim 2, characterized in that: The steps of achieving consistency in user registration information of each node through the operation of the dsBFT consensus algorithm include: The representative node uses the dsBFT consensus algorithm to perform consensus operations on user registration information; Generate a block containing the user's DID data.
4. The blockchain-based digital identity authentication method according to claim 3, characterized in that: The steps of the representative node using the dsBFT consensus algorithm to perform consensus operations on user registration information include: The representative node provides the prepared user registration information as input to the dsBFT consensus algorithm. This information includes the user's DID, public key, and other associated registration data. When the representative node starts the dsBFT algorithm, it first broadcasts the prepared user registration information to other nodes. After receiving the message, other nodes enter the proposal and pre-preparation phase of dsBFT. In this phase, all nodes can propose proposals containing user registration information and broadcast the proposal to other nodes. Subsequently, each node collects the pre-preparation messages from other nodes, which contain approval of the proposal. Then, the node verifies the received pre-preparation messages to ensure that these messages meet the conditions specified in the protocol. After the pre-preparation phase, the node enters the preparation phase of dsBFT. In this phase, the node proposes formal approval of the proposal and broadcasts the preparation message to other nodes. The node collects the preparation messages from other nodes, which contain formal approval of the proposal.
5. The blockchain-based digital identity authentication method according to claim 4, characterized in that: The step of generating a block containing user DID data includes: After a certain number of rounds, nodes gradually reach a consensus on the proposal, including the recognition of user registration information, by exchanging messages and voting. Once a consensus is reached, the representative node generates a block containing the user's DID data. This block is consensus-verified and contains an exact copy of the registration information. Finally, the consensus result needs to be finally verified, including verifying the signature of each node, ensuring the correctness of the consensus, and ensuring that the data in the block has not been tampered with. The representative node broadcasts the consensus-verified block to the entire blockchain network, notifying other nodes of the consensus result to ensure that the status of the entire network is consistent.
6. The blockchain-based digital identity authentication method according to claim 5, characterized in that: The steps of the representative node writing a block containing the user's DID data into the blockchain include: First, after consensus is reached, the representative node submits the generated block to the blockchain network, including the user DID data in the block and other relevant transaction information. Secondly, the generated block is written into the blockchain using the blockchain protocol. After the block is written successfully, other nodes in the blockchain network begin to synchronize the new block, so that each node has the same transaction history and user DID data. Finally, when the block is successfully written and synchronized in the network, the user's digital identity information is permanently stored on the blockchain, which is tamper-proof and traceable.
7. The blockchain-based digital identity authentication method according to claim 6, characterized in that: The steps of performing service node authentication and using digital identity include: First, other service providers synchronize the user's DID data from the representative node or directly from the blockchain network, including the user's DID and the registration data associated with it. The synchronization process can be performed through the API or other data synchronization mechanisms provided by the blockchain network. Secondly, before the service node performs user digital identity authentication, it quickly verifies the legitimacy of the block by obtaining the hash value of the block at different representative nodes. Next, the service node uses the DID data on the chain to authenticate the user's digital identity. By using the user's DID data stored on the blockchain, the service node can verify the user's identity information. Subsequently, by using digital signatures and hash functions to ensure that the user's identity is valid and has not been tampered with, the service node can compare the identity information provided by the user with the information stored on the blockchain to ensure its consistency. Finally, once the authentication is passed, the service node can use the user's digital identity information to provide personalized services, perform authorization operations, or complete other business logic that requires identity authentication. This helps ensure that service providers can rely on trusted user identity information when providing services, and protect the security of the system and the privacy of users.
8. A digital identity authentication system based on blockchain, characterized by: The system comprises: The user digital identity registration module is used to receive user registration requests on behalf of the node, perform identity verification, and generate a digital identity associated with the user information, laying the foundation for the subsequent blockchain consensus process; The blockchain consensus process module is used to ensure that all nodes reach a consensus on user registration information through the dsBFT consensus algorithm, generate blocks containing user DID data, and maintain the consistency and security of the blockchain network; The service node authentication and digital identity usage module is used by the service node to authenticate the user's digital identity by synchronizing the user's DID data, verifying the legitimacy of the block, and using the on-chain DID data.
9. The blockchain-based digital identity authentication system according to claim 8, characterized in that: The user digital identity registration module includes: The user registration request receiving module is used to receive the user's digital identity registration request on behalf of the node and start the entire registration process; The identity authentication and DID generation module is used to request the user to provide identity authentication information on behalf of the node. After successfully verifying the user's identity, the standard DID generation algorithm is used to generate the user's digital identity and associate it with the user's public key information. Complete the digital identity registration module, which is used to prepare the successfully generated DID and related registration information on behalf of the node.
10. The blockchain-based digital identity authentication system according to claim 9, characterized in that: The blockchain consensus process module includes: User registration information preparation and dsBFT consensus module, used to represent the node to input the prepared user registration information into the dsBFT consensus algorithm; The block generation and consensus verification module is used to generate blocks containing user DID data on behalf of the node and perform consensus verification; The block writing and synchronization module is used to write blocks containing user DID data to the blockchain on behalf of the node.
Citation Information
Cited By
API data privacy analysis method and device based on trusted execution environment and medium
CN119483955A
