Distributed identity authentication method and system based on block chain
By obtaining and processing identity data blocks and linkage path data in the blockchain network, generating representation vectors and state feature spaces, the problem of neglecting propagation paths and context information is solved, and more accurate and secure identity authentication is achieved, ensuring that The secure operation of blockchain network.
Patent Information
- Application Number
- CN202411071154.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-06
- Publication Date
- 2024-11-01
- Estimated Expiration
- 2044-08-06
AI Technical Summary
The existing blockchain-based identity authentication method ignores the propagation path and context information of data blocks in the blockchain network, resulting in the limitation of the accuracy and comprehensiveness of identity authentication.
By obtaining the data blocks of identity to be verified by the target user in the blockchain network and their distributed linkage path data, embedding representations to generate linkage path representation vectors and target authentication vectors, and combining the state estimation of multiple verification nodes to generate state feature spaces , perform distributed identity authentication and dynamically allocate permission levels.
It improves the accuracy and efficiency of identity authentication, ensures the authenticity of user identity and data security, prevents identity forgery and data tampering, and the dynamic permission allocation mechanism protects the security and data privacy of the blockchain network.
Smart Images

Figure CN118890194A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and more specifically, to a distributed identity authentication method and system based on blockchain. Background Art
[0002] With the rapid development of information technology and the widespread application of the Internet, network security and user identity authentication have become increasingly important issues. Although traditional identity authentication methods, such as username and password verification and dynamic tokens, can protect user security to a certain extent, they have many shortcomings such as easy forgetting and easy theft, and can no longer meet the growing security needs. Therefore, it is particularly important to seek a safer and more reliable identity authentication method.
[0003] Among related technologies, the rise of blockchain technology has brought new opportunities to the field of identity authentication. Blockchain technology has the characteristics of decentralization, immutability, and anonymity, which give blockchain a natural advantage in the field of identity authentication. In a blockchain network, each node can participate in data storage and verification. Once the data is on the chain, it cannot be tampered with, which greatly improves the authenticity and credibility of the data.
[0004] However, existing blockchain-based identity authentication methods often only focus on the verification of the data block itself, while ignoring the propagation path and contextual information of the data block in the blockchain network, which to some extent limits the accuracy and comprehensiveness of identity authentication. Summary of the invention
[0005] In view of this, the purpose of this application is to provide a distributed identity authentication method and system based on blockchain.
[0006] According to the first aspect of the present application, a distributed identity authentication method based on blockchain is provided, the method comprising: Obtaining a target identity data block to be verified by a target user in a blockchain network and distributed linkage path data corresponding to the target identity data block; Embedding the distributed linkage path data to generate a linkage path representation vector, and embedding the target identity data block to generate a target identity authentication vector; Performing distributed identity authentication according to the linkage path representation vector and the target identity authentication vector to generate a distributed identity authentication state of the target user; Performing state estimation according to multiple verification nodes of the target identity data block to generate a state feature space under the distributed identity authentication state; According to the distributed identity authentication state and the state feature space, a corresponding permission level is assigned to the target user in the blockchain network.
[0007] In a possible implementation of the first aspect, the multiple verification nodes of the target identity data block include: data complexity, verification frequency, and hash map; The performing state estimation based on the multiple verification nodes of the target identity data block to generate the state feature space under the distributed identity authentication state includes: State estimation is performed based on the data complexity of the target identity data block, the verification frequency and the hash map to generate a state feature space under the distributed identity authentication state.
[0008] In a possible implementation of the first aspect, performing state estimation according to the data complexity of the target identity data block, the verification frequency, and the hash graph to generate a state feature space in the distributed identity authentication state includes: Determine the data complexity feature space, verification frequency feature space and hash map feature space of the target identity data block; The data complexity feature space, the verification frequency feature space and the hash map feature space are fused, and the fusion result is standardized and transformed to generate a state feature space in the distributed identity authentication state.
[0009] In a possible implementation, determining the data complexity feature space of the target identity data block includes: Decomposing the target identity data block to generate multiple identity data segments; For each of the identity data segments, determining the information entropy of the identity data segment; Integrate and output the plurality of information entropies corresponding to the plurality of identity data segments as a data complexity feature space of the target identity data block; Determining the verification frequency feature space of the target identity data block includes: Decomposing the target identity data block to generate multiple identity data segments; Collecting statistics on historical verification records of each of the identity data segments to determine the verification frequency of the identity data segments; Integrate and output the multiple verification frequencies corresponding to the multiple identity data segments as a verification frequency feature space of the target identity data block; Determining the hash map feature space of the target identity data block includes: Decomposing the target identity data block to generate multiple identity data segments; Performing a hash operation on each of the identity data segments to generate a corresponding hash value sequence, and converting the hash value sequence into a hash map; The multiple hash maps corresponding to the multiple identity data segments are integrated and output as a hash map feature space of the target identity data block.
[0010] In a possible implementation of the first aspect, allocating a corresponding permission level to the target user in the blockchain network according to the distributed identity authentication state and the state feature space includes: Obtaining operation permissions corresponding to the distributed identity authentication state; By mapping the feature value bitmap in the state feature space, the target user is regulated to perform operation behaviors of different authority levels in the blockchain network.
[0011] In a possible implementation manner of the first aspect, the target identity data block includes a plurality of identity data segments; The step of regulating the target user to perform operations of different authority levels in the blockchain network by mapping the feature value bitmap in the state feature space includes: When regulating the target user to perform an operation corresponding to each of the identity data segments, obtaining a feature value mapping bitmap corresponding to the identity data segment on the state feature space; The authority level of the operation behavior is determined based on the feature value mapping bitmap, and the target user is regulated to perform the corresponding operation behavior according to the authority level.
[0012] In a possible implementation of the first aspect, performing distributed identity authentication according to the linkage path representation vector and the target identity authentication vector to generate a distributed identity authentication state of the target user includes: Verifying the propagation path of the target identity data block in the blockchain network based on the linkage path representation vector, detecting the authorization status data of each node on the propagation path, and generating a first verification result; using the target identity verification vector to verify whether the hash value of the target identity data block matches the hash value of the forward record, and verifying the cryptographic signature on the target identity data block to generate a second verification result; A distributed identity authentication state of the target user is generated according to the first verification result and the second verification result.
[0013] In a possible implementation of the first aspect, the steps of embedding the distributed linkage path data to generate a linkage path representation vector, and embedding the target identity data block to generate a target identity verification vector include: Extracting node information of each node in the distributed linkage path data, wherein the node information includes the type, attributes, and relationship with other nodes of the node; Extracting global path structure data of the distributed linkage path data, wherein the global path structure data includes path length, connection relationship between nodes, and time series pattern; Mapping node information of each node in the distributed linkage path data and global path structure data of the distributed linkage path data to a low-dimensional vector space, converting the distributed linkage path data into a vector form through an embedding model, and generating the linkage path representation vector; and, extracting key data from the target identity data block, the key data including at least a user ID, a public key, and a signature; Constructing first characteristic data based on the data block content according to the extracted key data, wherein the first characteristic data includes a data hash value and an encrypted signature verification parameter; Based on the context information of the target identity data block in the blockchain network, construct second feature data based on the context content, wherein the second feature data includes a location and a timestamp of the target identity data block; The first feature data and the second feature data are mapped to a low-dimensional vector space, and the target identity data block is converted into a vector form through an embedding model to generate the target identity authentication vector.
[0014] According to the second aspect of the present application, a blockchain service system is provided, which includes a machine-readable storage medium and a processor, wherein the machine-readable storage medium stores machine-executable instructions, and when the processor executes the machine-executable instructions, the blockchain service system implements the aforementioned distributed identity authentication method based on blockchain.
[0015] According to the third aspect of the present application, a computer-readable storage medium is provided, in which computer-executable instructions are stored. When the computer-executable instructions are executed, the aforementioned blockchain-based distributed identity authentication method is implemented.
[0016] According to any one of the above aspects, the technical effect of the present application is: By embedding the distributed linkage path data and the target identity data block, generating the linkage path representation vector and the target identity verification vector, not only the complexity of the data is reduced, but also the efficiency of data processing is improved, making the identity verification process faster and more accurate. Secondly, distributed identity verification based on the linkage path representation vector and the target identity verification vector can ensure the authenticity of the user's identity and the security of the data, greatly enhance the reliability of identity verification, and effectively prevent the risk of identity forgery and data tampering. Furthermore, by performing state estimation based on multiple verification nodes of the target identity data block, the state feature space under the distributed identity verification state is generated, and the corresponding permission level is assigned to the target user in the blockchain network according to the distributed identity verification state and the state feature space. This dynamic permission allocation mechanism can ensure that users can only access their authorized resources, thereby effectively protecting the security of the blockchain network and the privacy of data. As a result, not only the accuracy and efficiency of identity authentication are improved, but also a scientific permission allocation mechanism is provided to provide a strong guarantee for the safe operation of the blockchain network. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other corresponding drawings can be obtained based on these drawings without paying creative work.
[0018] Figure 1 A schematic diagram of the process of a distributed identity authentication method based on blockchain provided in an embodiment of the present application is shown; Figure 2 A schematic diagram of the component structure of a blockchain service system for implementing the above-mentioned blockchain-based distributed identity authentication method provided in an embodiment of the present application is shown. DETAILED DESCRIPTION
[0019] The embodiments of the present application are described below in conjunction with the drawings in the present application. It should be understood that the implementation methods described below in conjunction with the drawings are exemplary descriptions for explaining the technical solutions of the embodiments of the present application and do not constitute a limitation on the technical solutions of the embodiments of the present application.
[0020] It will be understood by those skilled in the art that, unless specifically stated, the singular forms "one", "said", and "the" used herein may also include plural forms. It should be further understood that the terms "including" and "comprising" used in the embodiments of the present application refer to that the corresponding features can be implemented as the presented features, information, data, steps, operations, elements and / or components, but do not exclude the implementation as other features, information, data, steps, operations, elements, components and / or combinations thereof supported by the technical field. It should be understood that when an element is "connected" or "coupled" to another element, the element may be directly connected or coupled to the other element, or may refer to the element and the other element establishing a connection relationship through an intermediate element. In addition, the "connection" or "coupling" used herein may include wireless connection or wireless coupling, and the term "and / or" used herein indicates at least one of the items defined by the term, such as "A and / or B" may be implemented as "A", or as "B", or as "A and B".
[0021] In order to make the purpose, technical solution and advantages of the present application clearer, the implementation mode of the present application will be further described in detail with reference to the accompanying drawings. The technical solution of the embodiment of the present application and the technical effect produced by the technical solution of the present application are explained below by describing several exemplary implementation modes. It should be pointed out that the following implementation modes can refer to, draw lessons from or combine with each other, and the same terms, similar features and similar implementation steps in different implementation modes are not described repeatedly.
[0022] Figure 1 The flowchart of the distributed identity authentication method and system based on blockchain provided by the embodiment of the present application is shown. It should be understood that in other embodiments, the order of some steps of the distributed identity authentication method based on blockchain of this embodiment can be shared with each other according to actual needs, or some steps can be omitted or maintained. The detailed steps of the distributed identity authentication method based on blockchain include: Step S110, obtaining the target identity data block to be verified by the target user in the blockchain network and the distributed linkage path data corresponding to the target identity data block.
[0023] In this embodiment, the blockchain service system retrieves from the blockchain network that a target user named "Admin" has submitted a transaction in a smart contract, and the transaction is accompanied by a target identity data block to be verified. This target identity data block contains Admin's public key, digital signature, and other identity authentication information. At the same time, the blockchain service system also obtains the propagation path of this target identity data block in the blockchain network, that is, the distributed linkage path data, which records in detail every node and propagation step of the data block from generation to reception by the blockchain service system.
[0024] Step S120, embedding the distributed linkage path data to generate a linkage path representation vector, and embedding the target identity data block to generate a target identity authentication vector.
[0025] In this embodiment, the blockchain service system starts to process the obtained distributed linkage path data and target identity data block. First, an embedding model is used to embed the distributed linkage path data. The embedding model can capture the characteristics of each node in the distributed linkage path data and the relationship between nodes, and finally generate a linkage path representation vector. Similarly, the blockchain service system also embeds the target identity data block, extracts key information in the target identity data block, such as user ID, public key and signature, and combines the context information of the target identity data block in the blockchain, such as location and timestamp, to generate a target identity authentication vector.
[0026] Step S130: Perform distributed identity authentication according to the linkage path representation vector and the target identity authentication vector to generate a distributed identity authentication state of the target user.
[0027] In this embodiment, the blockchain service system now has a linkage path representation vector and a target identity authentication vector. First, the linkage path representation vector is used to verify the propagation path of the target identity data block in the blockchain network. The blockchain service system checks whether each node on the propagation path has a legal authorization status to ensure that the target identity data block has not been tampered with or illegally propagated. Next, the blockchain service system uses the target identity authentication vector to verify whether the hash value of the data block matches the hash value of the previous target identity data block, and to verify whether the encrypted signature on the data block is valid. Combining these two verification results, the blockchain service system generates a distributed identity authentication status for Admin, indicating whether her identity is valid and whether the target identity data block is credible.
[0028] Step S140 , performing state estimation based on multiple verification nodes of the target identity data block to generate a state feature space in the distributed identity authentication state.
[0029] In this embodiment, after confirming the identity authentication status of Admin, the blockchain service system further performs state estimation based on multiple verification nodes of the target identity data block (such as data complexity, verification frequency, and hash map). The blockchain service system first analyzes the complexity of the target identity data block to understand the richness of its structure and content. Then, check the frequency with which the target identity data block has been verified in the past to evaluate its reliability and stability. Finally, the blockchain service system generates a hash map of the target identity data block to check its data integrity and consistency. Combining the information of these nodes, the blockchain service system generates a state feature space under a distributed identity authentication state, which fully reflects the state and characteristics of the Admin identity data block.
[0030] Step S150, assigning a corresponding permission level to the target user in the blockchain network according to the distributed identity authentication state and the state feature space.
[0031] In this embodiment, based on the Admin's distributed authentication status and state feature space, the blockchain service system now determines her permission level in the blockchain network. If her authentication status is good and the state feature space shows high complexity, high verification frequency, and consistent hash graph, then the blockchain service system can grant her a higher permission level, allowing her to perform more sensitive or more important operations. Conversely, if her authentication status is questionable or the state feature space shows low complexity, low verification frequency, or inconsistent hash graph, then her permission level can be reduced to limit the potential risk it may cause to the network.
[0032] Based on the above steps, by embedding the distributed linkage path data and the target identity data block, generating the linkage path representation vector and the target identity verification vector, not only the complexity of the data is reduced, but also the efficiency of data processing is improved, making the identity authentication process faster and more accurate. Secondly, distributed identity authentication based on the linkage path representation vector and the target identity verification vector can ensure the authenticity of the user's identity and the security of the data, greatly enhance the reliability of identity authentication, and effectively prevent the risk of identity forgery and data tampering. Furthermore, by performing state estimation based on multiple verification nodes of the target identity data block, the state feature space under the distributed identity authentication state is generated, and the corresponding permission level is allocated to the target user in the blockchain network according to the distributed identity authentication state and the state feature space. This dynamic permission allocation mechanism can ensure that users can only access their authorized resources, thereby effectively protecting the security of the blockchain network and the privacy of data. As a result, not only the accuracy and efficiency of identity authentication are improved, but also a scientific permission allocation mechanism is provided to provide a strong guarantee for the safe operation of the blockchain network.
[0033] In a possible implementation, the multiple verification nodes of the target identity data block include: data complexity, verification frequency, and hash map.
[0034] Step S140 may include: State estimation is performed based on the data complexity of the target identity data block, the verification frequency and the hash map to generate a state feature space under the distributed identity authentication state.
[0035] In this embodiment, the blockchain service system first focuses on the data complexity of the target identity data block. The data complexity reflects the richness and structural diversity of the internal information of the target identity data block. The blockchain service system disassembles the target identity data block and analyzes in detail the various information elements contained in it, such as user profile, transaction records, digital signatures, etc. The blockchain service system evaluates the quantity, type and complexity of the associations between these information, so as to have a comprehensive understanding of the data complexity of the target identity data block.
[0036] Next, the blockchain service system checks the verification frequency of the target identity data block. The verification frequency refers to the number of times the target identity data block has been verified in the blockchain network. The blockchain service system queries the records of the blockchain to understand how many nodes have verified the target identity data block, as well as the time distribution and frequency of the verification. A high verification frequency means that the target identity data block has been widely recognized in the network, increasing its credibility and stability.
[0037] Finally, the blockchain service system generates and analyzes the hash map of the target identity data block. The hash map is a graphical representation generated based on the hash value of the data block content, which can intuitively show the structure and association of the data inside the data block. The blockchain service system performs a hash operation on the target identity data block, generates a corresponding hash value sequence, and displays these hash values in the form of a map. By analyzing the hash map, the blockchain service system can detect the integrity and consistency of the data block to ensure that the data block has not been tampered with during transmission.
[0038] After analyzing the data complexity, verification frequency and hash map of the target identity data block, the blockchain service system begins to generate the state feature space under the distributed identity authentication state based on this information. It integrates and merges the feature values of data complexity, verification frequency and hash map to form a multi-dimensional feature vector space. This feature vector space not only contains the characteristics of the data block itself, but also reflects the propagation and verification of the data block in the blockchain network.
[0039] Specifically, the blockchain service system can quantify the characteristic values such as the complexity of data, the frequency of verification, and the consistency of the hash map, and then perform weighted summation according to certain weights or perform feature fusion through machine learning algorithms, and finally generate a feature space that can fully describe the state of the target identity data block. This feature space will provide an important basis for subsequent permission allocation and risk management.
[0040] In a possible implementation, performing state estimation based on the data complexity of the target identity data block, the verification frequency, and the hash map to generate a state feature space in the distributed identity authentication state includes: Step S141, determining the data complexity feature space, verification frequency feature space and hash map feature space of the target identity data block.
[0041] Step S142, fusing the data complexity feature space, the verification frequency feature space and the hash map feature space, and performing a standardized transformation on the fusion result to generate a state feature space under the distributed identity authentication state.
[0042] In a possible implementation, determining the data complexity feature space of the target identity data block includes: disassembling the target identity data block to generate multiple identity data segments. For each of the identity data segments, determining the information entropy of the identity data segment. Integrating and outputting the multiple information entropies corresponding to each of the multiple identity data segments as the data complexity feature space of the target identity data block.
[0043] In this embodiment, the blockchain service system first obtains the target identity data block, and then disassembles it and divides it into multiple identity data segments. These identity data segments may include the user's personal information, transaction data, login records, etc.
[0044] For each identity data segment, the blockchain service system can calculate its information entropy. Information entropy is an indicator of data complexity and uncertainty. For example, if an identity data segment contains a large number of different information elements, and the probability of occurrence of these elements is relatively uniform, then the information entropy of the identity data segment will be relatively high, indicating that its data complexity is high.
[0045] The blockchain service system can integrate the information entropy of all identity data segments to form a multi-dimensional feature space, which represents the data complexity characteristics of the target identity data block.
[0046] Determining the verification frequency feature space of the target identity data block includes: disassembling the target identity data block to generate multiple identity data segments. Counting the historical verification records of each identity data segment to determine the verification frequency of the identity data segment. Integrating and outputting the multiple verification frequencies corresponding to each of the multiple identity data segments as the verification frequency feature space of the target identity data block.
[0047] Similar to the above steps, the blockchain service system first disassembles the target identity data block to generate multiple identity data segments. The blockchain service system can query the historical verification records of each identity data segment on the blockchain and count the number of times each data segment has been verified. These verification records may be scattered on multiple blockchain nodes, and the blockchain service system needs to collect data by communicating with these nodes. Based on the collected verification frequency data, the blockchain service system can integrate these data to form a verification frequency feature space. This space can reflect the degree of trust of different data segments in the network.
[0048] Determining the hash map feature space of the target identity data block includes: disassembling the target identity data block to generate multiple identity data segments. Performing a hash operation on each of the identity data segments to generate a corresponding hash value sequence, and converting the hash value sequence into a hash map. Integrating and outputting the multiple hash maps corresponding to each of the multiple identity data segments as the hash map feature space of the target identity data block.
[0049] Similarly, the blockchain service system can disassemble the target identity data block to obtain multiple identity data segments. For each identity data segment, the blockchain service system can perform a hash operation to generate a unique hash value sequence, which is then converted into a graphical hash map. Each node in the map represents a hash value, and the connection between nodes represents the association between hash values. The blockchain service system can integrate the hash maps of all identity data segments to form a hash map feature space. This space not only contains the hash value information of the data segment, but also displays the structure and association between the data segments in the form of a map.
[0050] After determining the data complexity feature space, verification frequency feature space, and hash map feature space, the blockchain service system can fuse the feature spaces. This process may involve weighted summation, feature concatenation, or other more complex machine learning algorithms to ensure that information from different feature spaces can be effectively integrated.
[0051] Finally, the blockchain service system can perform standardized transformation on the fused feature space to eliminate the dimensional differences and value range differences between different features, making the feature space more regular and convenient for subsequent machine learning models or algorithms to process and analyze. The state feature space generated in this way will fully reflect the comprehensive characteristics of the target identity data block in the distributed identity authentication state.
[0052] In a possible implementation, step S150 may include: Step S151, obtaining the operation authority corresponding to the distributed identity authentication state.
[0053] In this embodiment, the blockchain service system first queries a preset corresponding relationship table or database, which stores different distributed identity authentication states and corresponding operation permissions. For example, a high-level authentication state may correspond to a higher operation permission, such as initiating a transaction, creating a smart contract, etc., while a low-level authentication state may only allow the user to view public information on the blockchain.
[0054] On this basis, the blockchain service system can determine the current status of the target user based on the previously generated distributed identity authentication status. The status can be determined based on multiple factors such as the user's identity data block verification results, historical behavior records, credit scores, etc.
[0055] According to the distributed identity authentication status of the target user, the blockchain service system can retrieve the corresponding operation permissions from the corresponding relationship table or database and prepare to assign these permissions to the target user.
[0056] Step S152, regulating the target user to perform operations of different authority levels in the blockchain network through a feature value mapping bitmap in the state feature space.
[0057] In this embodiment, the blockchain service system can first parse the previously generated state feature space, which contains multiple feature values of the target identity data block, such as data complexity, verification frequency, and hash map. The blockchain service system can map these feature values to a feature value mapping bitmap, which can intuitively display the distribution of different feature values. For example, feature values with high data complexity may occupy a larger area on the bitmap, indicating that the feature has a greater impact on user permissions.
[0058] Based on this feature value mapping bitmap, the blockchain service system can formulate a set of rules to regulate the target user's operation behavior in the blockchain network. For example, if a certain feature value (such as verification frequency) is low, the blockchain service system may restrict the user from performing certain high-risk operations, such as large transactions or smart contract deployment. On the contrary, if the feature value is high, the blockchain service system may give the user more freedom of operation.
[0059] During the user's operation of the blockchain network, the blockchain service system can monitor the user's operation behavior in real time and dynamically adjust the user's permission level according to the changes in the state feature space. For example, if the frequency of the user's identity data block verification suddenly increases, the blockchain service system may increase the user's permission level accordingly.
[0060] In this way, the blockchain service system can accurately assign corresponding permission levels to users based on their distributed identity authentication status and status feature space, and perform real-time monitoring and dynamic adjustments during user operations, thereby ensuring the security and efficiency of the blockchain network.
[0061] In a possible implementation manner, the target identity data block includes multiple identity data segments.
[0062] Step S152 includes: Step S1521 : when regulating the target user to perform an operation corresponding to each of the identity data segments, obtaining a feature value mapping bitmap corresponding to the identity data segment on the state feature space.
[0063] Step S1522: determining the permission level of the operation behavior based on the feature value mapping bitmap, and regulating the target user to perform the corresponding operation behavior according to the permission level.
[0064] In this embodiment, the target identity data block processed by the blockchain service system is a complex data structure, which includes multiple identity data segments of the user, which may represent different identity information or attributes of the user, such as basic personal information, transaction records, asset status, credit score, etc. Each data segment is clearly located and identified in the identity data block, which facilitates the blockchain service system to perform precise management and operation.
[0065] In detail, when the blockchain service system needs to control the target user to operate on a specific identity data segment, it will first access the previously generated state feature space. In this space, each identity data segment corresponds to a set of feature values, which reflect the characteristics of the data segment, such as data complexity, verification frequency, etc.
[0066] The blockchain service system can extract the corresponding feature values from the state feature space according to the identity data segment that the target user wants to operate, and map these feature values to a bitmap. The bitmap can intuitively display the feature distribution of the data segment, helping the blockchain service system to quickly and accurately evaluate the permission level of the operation.
[0067] Once the blockchain service system obtains the feature value mapping bitmap corresponding to the identity data segment, it can start to analyze the feature value mapping bitmap to determine the target user's operation permission level for the data segment. The determination process can be based on a series of preset rules and algorithms, such as the range, distribution, and combination of feature values.
[0068] For example, if the characteristic value of a certain identity data segment shows that its data complexity is very high and the verification frequency is also high, then the blockchain service system may determine that the information contained in this data segment is very important and credible, and therefore grant the target user a higher level of operation permission. Conversely, if the characteristic value shows that the data complexity is low and the verification frequency is also low, then the operation permission level may be reduced accordingly.
[0069] After determining the permission level, the blockchain service system will regulate the target user to perform corresponding operations according to this permission level, including allowing or restricting the user to read, modify, delete, etc. the identity data segment. The blockchain service system can monitor the user's operation behavior in real time to ensure that they strictly comply with the determined permission level.
[0070] In this way, the blockchain service system can finely control the target user's operating permissions for each identity data segment, thereby ensuring the security and integrity of the data in the blockchain network.
[0071] In a possible implementation, step S130 includes: Step S131, based on the linkage path representation vector, verify the propagation path of the target identity data block in the blockchain network, detect the authorization status data of each node on the propagation path, and generate a first verification result.
[0072] Step S132, using the target identity verification vector to verify whether the hash value of the target identity data block matches the hash value of the forward record, and verifying the encrypted signature on the target identity verification data block to generate a second verification result.
[0073] Step S133: Generate a distributed identity authentication state of the target user according to the first verification result and the second verification result.
[0074] In this embodiment, the linkage path representation vector records in detail the propagation path of the data block in the network, including every node passed through. Using the linkage path representation vector, the blockchain service system begins to track the propagation path of the target identity data block in the blockchain network. For example, each node on the path is accessed one by one in the order indicated by the linkage path representation. When accessing each node, the blockchain service system can check the authorization status data of the node, which indicates whether the node has the right to process and propagate the target identity data block. For example, the blockchain service system can verify the node's identity authentication information, authority certificate, etc. After checking the authorization status of all nodes on the entire propagation path, the blockchain service system can generate a first verification result. The first verification result reflects whether the propagation of the target identity data block in the blockchain network is legal and whether it has passed through the correctly authorized node.
[0075] At the same time, the target identity authentication vector contains key information used to verify the integrity and authenticity of the target identity data block. The blockchain service system uses the target identity authentication vector to verify whether the hash value of the target identity data block matches the hash value of the forward record, which is to ensure that the data block has not been tampered with during transmission. If the hash values are consistent, it means that the integrity of the data block is guaranteed. Next, the blockchain service system can verify the encrypted signature on the target identity data block. This signature is usually generated by the original sender of the data block using its private key to prove the authenticity and source of the data block. The blockchain service system can use the sender's public key to verify this signature. After completing the verification of the hash value and encrypted signature, the blockchain service system can generate a second verification result. The second verification result reflects whether the integrity and authenticity of the target identity data block are guaranteed.
[0076] The blockchain service system conducts a comprehensive analysis of the first verification result and the second verification result, and these two results together form the basis for a comprehensive evaluation of the target identity data block. Based on the above two verification results, the blockchain service system can generate a distributed identity authentication status for the target user. If both verification results indicate that the data block is legal, complete, and authentic, then the user's identity authentication status will be judged as valid. Conversely, if there is a problem with any of the verification results, the user's identity authentication status may be judged as invalid or require further verification.
[0077] As a result, the blockchain service system can ensure the accuracy and security of distributed identity authentication in the blockchain network.
[0078] In a possible implementation, step S120 includes: Step S121 , extracting node information of each node in the distributed linkage path data, wherein the node information includes the type, attributes, and relationship with other nodes of the node.
[0079] In this embodiment, the blockchain service system first obtains distributed linkage path data from the blockchain network. These distributed linkage path data record in detail the propagation path of the data block in the network, including how the data block is propagated from one node to another.
[0080] The blockchain service system begins to analyze these distributed linkage path data and extract detailed information about each node. For example, for a specific node, the blockchain service system can record its type (such as verification node, etc.), attributes (such as node computing power, reputation, etc.), and its relationship with other nodes (such as directly connected nodes, indirectly connected nodes, etc.).
[0081] Step S122, extracting global path structure data of the distributed linkage path data, wherein the global path structure data includes path length, connection relationship between nodes, and time series pattern.
[0082] In this embodiment, in addition to node-level information, the blockchain service system can also extract global structural data of the entire distributed linkage path data, such as the total length of the path (i.e., how many nodes the data block needs to pass through to propagate from the starting node to the target node), the specific connection relationship between the nodes (which nodes are directly connected and which are indirectly connected through other nodes), and the time series pattern of the propagation of data blocks between nodes (i.e., when the data block arrives at a certain node).
[0083] Step S123, mapping the node information of each node in the distributed linkage path data and the global path structure data of the distributed linkage path data into a low-dimensional vector space, converting the distributed linkage path data into a vector form through an embedding model, and generating the linkage path representation vector.
[0084] The blockchain service system will then map the extracted node information and global path structure data into a low-dimensional vector space. This process is completed through a pre-trained embedding model that can convert complex network structure data into a concise vector form. Ultimately, the blockchain service system can obtain a linkage path representation vector that greatly reduces the dimension and complexity of the data while retaining the main features of the original data.
[0085] And, step S124, extracting key data in the target identity data block, the key data at least including user ID, public key, and signature.
[0086] Step S125: constructing first characteristic data based on the content of the data block according to the extracted key data, wherein the first characteristic data includes a data hash value and an encrypted signature verification parameter.
[0087] Step S126: Based on the context information of the target identity data block in the blockchain network, construct second feature data based on the context content, wherein the second feature data includes the location and timestamp of the target identity data block.
[0088] Step S127, mapping the first feature data and the second feature data to a low-dimensional vector space, converting the target identity data block into a vector form through an embedding model, and generating the target identity authentication vector.
[0089] In this embodiment, when the blockchain service system processes the target identity data block, it first extracts the key data in the target identity data block, including at least the user's ID (a number used to uniquely identify the user), the public key (used to encrypt information and verify the signature), and the signature (used to confirm the sender identity of the data block and the data integrity).
[0090] Based on the extracted key data, the blockchain service system can further construct the first feature data, which may include calculating the hash value of the data block (a method of converting the content of the data block into a string of digital fingerprints of a fixed length through a specific algorithm to ensure the integrity of the data) and generating encrypted signature verification parameters (used to verify whether the signature on the data block is valid).
[0091] In addition to the first characteristic data based on the content of the data block, the blockchain service system can also construct the second characteristic data based on the contextual information of the data block in the blockchain network, such as the location of the data block in the network (i.e., in which block it is recorded) and the timestamp (i.e., the specific time when the data block is created or recorded).
[0092] Finally, the blockchain service system can map the first feature data and the second feature data into a low-dimensional vector space, and convert these feature data into vector form through another embedding model. This vector is the target identity authentication vector, which concisely and comprehensively represents the key information and contextual features of the target identity data block. This vector will be used in the subsequent distributed identity authentication process.
[0093] Figure 2 A blockchain service system 100 provided in an embodiment of the present application is shown, including a processor 1001, a memory 1003 and a program code stored in the memory 1003, and the processor 1001 executes the above program code to implement the steps of a distributed identity authentication method based on blockchain.
[0094] Figure 2 The blockchain service system 100 shown includes: a processor 1001 and a memory 1003. The processor 1001 and the memory 1003 are connected, such as through a bus 1002. Optionally, the blockchain service system 100 may also include a transceiver 1004, which may be used for data interaction between the blockchain service system and other blockchain service systems, such as data transmission and / or data reception. It should be noted that the transceiver 1004 is not limited to one in actual scheduling, and the structure of the blockchain service system 100 does not constitute a limitation on the embodiments of the present application.
[0095] Processor 1001 may be a CPU (Central Processing Unit), a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array) or other programmable logic devices, transistor logic devices, hardware data structures or any combination thereof. It may implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the transaction records disclosed in this application. Processor 1001 may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc.
[0096] The bus 1002 may include a path to transmit information between the above components. The bus 1002 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The bus 1002 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 2 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0097] The memory 1003 may be a ROM (Read Only Memory) or other types of static storage devices that can store static information and instructions, a RAM (Random Access Memory) or other types of dynamic storage devices that can store information and instructions, or an EEPROM (Electrically Erasable Programmable Read Only Memory), a CD-ROM (Compact Disc Read Only Memory) or other optical disk storage, optical disk storage (including compressed optical disk, laser disk, optical disk, digital versatile disk, Blu-ray disk, etc.), magnetic disk storage medium, other magnetic storage devices, or any other medium that can be used to have or store program code and can be read by a computer, without limitation herein.
[0098] The memory 1003 is used to store program codes for executing the embodiments of the present application, and the execution is controlled by the processor 1001. The processor 1001 is used to execute the program codes stored in the memory 1003 to implement the steps shown in the above method embodiments.
[0099] An embodiment of the present application provides a computer-readable storage medium having program code stored thereon. When the program code is executed by a processor, the steps of the aforementioned method embodiment and the corresponding transaction records can be implemented.
[0100] It should be understood that, although each operation step is indicated by arrows in the flowchart of the embodiment of the present application, the implementation order of these steps is not limited to the order indicated by the arrows. Unless there is clear explanation in this article, in some implementation scenarios of the embodiment of the present application, the implementation steps in each flowchart can be performed in other orders based on demand. In addition, some or all of the steps in each flowchart may include multiple sub-steps or multiple stages according to the actual implementation scenario, and some or all of these sub-steps or stages may be executed at the same time, and each sub-step or stage in these sub-steps or stages may also be executed at different times respectively. In different scenarios at the execution time, the execution order of these sub-steps or stages can be flexibly configured based on demand, and the embodiment of the present application does not limit this.
[0101] The above is only an optional implementation method for some implementation scenarios of the present application. It should be pointed out that for ordinary technicians in this technical field, without departing from the technical concept of the scheme of the present application, other similar implementation methods based on the technical ideas of the present application are also within the protection scope of the embodiments of the present application.
Claims
1. A distributed identity authentication method based on blockchain, characterized in that: The method comprises: Obtaining a target identity data block to be verified by a target user in a blockchain network and distributed linkage path data corresponding to the target identity data block; Embedding the distributed linkage path data to generate a linkage path representation vector, and embedding the target identity data block to generate a target identity authentication vector; Performing distributed identity authentication according to the linkage path representation vector and the target identity authentication vector to generate a distributed identity authentication state of the target user; Performing state estimation according to multiple verification nodes of the target identity data block to generate a state feature space under the distributed identity authentication state; According to the distributed identity authentication state and the state feature space, a corresponding permission level is assigned to the target user in the blockchain network.
2. The distributed identity authentication method based on blockchain according to claim 1 is characterized in that: The multiple verification nodes of the target identity data block include: data complexity, verification frequency, and hash map; The performing state estimation based on the multiple verification nodes of the target identity data block to generate the state feature space under the distributed identity authentication state includes: State estimation is performed based on the data complexity of the target identity data block, the verification frequency and the hash map to generate a state feature space under the distributed identity authentication state.
3. The distributed identity authentication method based on blockchain according to claim 2 is characterized in that: The state estimation is performed based on the data complexity of the target identity data block, the verification frequency and the hash map to generate the state feature space under the distributed identity authentication state, including: Determine the data complexity feature space, verification frequency feature space and hash map feature space of the target identity data block; The data complexity feature space, the verification frequency feature space and the hash map feature space are fused, and the fusion result is standardized and transformed to generate a state feature space in the distributed identity authentication state.
4. The distributed identity authentication method based on blockchain according to claim 3 is characterized in that: Determining a data complexity feature space of the target identity data block includes: Decomposing the target identity data block to generate multiple identity data segments; For each of the identity data segments, determining the information entropy of the identity data segment; Integrate and output the plurality of information entropies corresponding to the plurality of identity data segments as a data complexity feature space of the target identity data block; Determining the verification frequency feature space of the target identity data block includes: Decomposing the target identity data block to generate multiple identity data segments; Collecting statistics on historical verification records of each of the identity data segments to determine the verification frequency of the identity data segments; Integrate and output the multiple verification frequencies corresponding to the multiple identity data segments as a verification frequency feature space of the target identity data block; Determining the hash map feature space of the target identity data block includes: Decomposing the target identity data block to generate multiple identity data segments; Performing a hash operation on each of the identity data segments to generate a corresponding hash value sequence, and converting the hash value sequence into a hash map; The multiple hash maps corresponding to the multiple identity data segments are integrated and output as a hash map feature space of the target identity data block.
5. The distributed identity authentication method based on blockchain according to claim 1, characterized in that: The allocating a corresponding permission level to the target user in the blockchain network according to the distributed identity authentication state and the state feature space includes: Obtaining operation permissions corresponding to the distributed identity authentication state; By mapping the feature value bitmap in the state feature space, the target user is regulated to perform operation behaviors of different authority levels in the blockchain network.
6. The distributed identity authentication method based on blockchain according to claim 5 is characterized in that: The target identity data block includes a plurality of identity data segments; The step of regulating the target user to perform operations of different authority levels in the blockchain network by mapping the feature value bitmap in the state feature space includes: When regulating the target user to perform an operation corresponding to each of the identity data segments, obtaining a feature value mapping bitmap corresponding to the identity data segment on the state feature space; The authority level of the operation behavior is determined based on the feature value mapping bitmap, and the target user is regulated to perform the corresponding operation behavior according to the authority level.
7. The distributed identity authentication method based on blockchain according to claim 1, characterized in that: The performing distributed identity authentication according to the linkage path representation vector and the target identity authentication vector to generate the distributed identity authentication state of the target user includes: Verifying the propagation path of the target identity data block in the blockchain network based on the linkage path representation vector, detecting the authorization status data of each node on the propagation path, and generating a first verification result; using the target identity verification vector to verify whether the hash value of the target identity data block matches the hash value of the forward record, and verifying the cryptographic signature on the target identity data block to generate a second verification result; A distributed identity authentication state of the target user is generated according to the first verification result and the second verification result.
8. The distributed identity authentication method based on blockchain according to claim 1, characterized in that: The steps of embedding the distributed linkage path data to generate a linkage path representation vector, and embedding the target identity data block to generate a target identity verification vector include: Extracting node information of each node in the distributed linkage path data, wherein the node information includes the type, attributes, and relationship with other nodes of the node; Extracting global path structure data of the distributed linkage path data, wherein the global path structure data includes path length, connection relationship between nodes, and time series pattern; Mapping node information of each node in the distributed linkage path data and global path structure data of the distributed linkage path data to a low-dimensional vector space, converting the distributed linkage path data into a vector form through an embedding model, and generating the linkage path representation vector; and, extracting key data from the target identity data block, the key data including at least a user ID, a public key, and a signature; Constructing first characteristic data based on the data block content according to the extracted key data, wherein the first characteristic data includes a data hash value and an encrypted signature verification parameter; Based on the context information of the target identity data block in the blockchain network, construct second feature data based on the context content, wherein the second feature data includes a location and a timestamp of the target identity data block; The first feature data and the second feature data are mapped to a low-dimensional vector space, and the target identity data block is converted into a vector form through an embedding model to generate the target identity authentication vector.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores machine-executable instructions, which, when executed by a processor, implement the blockchain-based distributed identity authentication method described in any one of claims 1 to 8.
10. A blockchain service system, characterized in that: It includes a processor and a computer-readable storage medium, wherein the computer-readable storage medium stores machine-executable instructions, and when the machine-executable instructions are executed by the processor, the distributed identity authentication method based on blockchain as described in any one of claims 1 to 8 is implemented.
Citation Information
Patent Citations
Identity authentication method and device, equipment and storage medium
CN115021939A
Mobile platform distributed digital identity authentication method and device and medium
CN116886357A
Block chain-based power grid data processing method, apparatus and device, and storage medium
CN116932638A
Digital identity authentication method based on block chain technology
CN117216740A
Blockchain identity safe and authentication system
US20200026834A1
Cited By
Mobile informatization security protection method and system using digital certificate
CN119788294A
