A privacy computing verification method and system based on zero-knowledge proof
Through a method based on zero-knowledge proof, using encrypted data stream and image-block-node mapping relationship for cross-validation, the problem of low reliability and security of user identity verification in the existing technology is solved, and higher identity verification is achieved. Reliability and security.
Patent Information
- Application Number
- CN202410643172.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-23
- Publication Date
- 2024-08-16
- Estimated Expiration
- 2044-05-23
AI Technical Summary
Existing privacy computing verification methods have low reliability and security of user identity verification due to single verification data.
Using a method based on zero-knowledge proof, by obtaining user identity information for encryption, generating an identity encrypted data stream and establishing an image-block-node mapping relationship, it combines non-interactive zero-knowledge protocol and single analysis principle for cross-validation and outputs user identity Verify the results.
It improves the reliability and security of user identity verification, implements multi-data cross-validation based on zero-knowledge proof, and enhances the accuracy of identity verification and the security of the system.
Smart Images

Figure CN118228317B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing technology, and in particular to a privacy computing verification method and system based on zero-knowledge proof. Background Art
[0002] Privacy computing verification involves multiple disciplines, including cryptography, statistics, computer architecture, and artificial intelligence. Its core is to ensure that the data provider can perform secure analysis and calculation on the data without leaking the original data. Privacy computing has a wide range of application backgrounds, including data query and analysis, machine learning, and other tasks. It aims to realize the value mining and application of data while protecting personal privacy. However, the current verification methods are mostly based on single data verification, and the reliability and security of the verification results are low. Summary of the invention
[0003] The present application provides a privacy computing verification method and system based on zero-knowledge proof, which is used to solve the technical problem in the prior art that the reliability and security of user identity authentication are low due to the single verification data.
[0004] The first aspect of the present application provides a privacy computing verification method based on zero-knowledge proof, the method comprising: obtaining user identity information, encrypting the user identity information based on a hash function, and generating an identity encrypted data stream; uploading the identity encrypted data stream to the identity information tree of the on-chain block for associated storage, determining the encrypted data mapping relationship, and completing user identity registration; inputting the identity encrypted data stream into the image conversion channel for conversion, generating an image data stream and adding it to the image comparison resource library, establishing the image data stream and the image-block-node mapping relationship of the on-chain block, wherein each identity encrypted data has a unique image data identifier; reading the user's verification information, performing zero-knowledge conversion on the verification information based on a non-interactive zero-knowledge protocol, encrypting the zero-knowledge conversion result through a hash function, and generating a verification encrypted data stream; converting the verification encrypted data stream through the image conversion channel to generate a verification image data stream; based on a single analysis principle, using the verification image data stream, the image comparison resource library, the image-block-node mapping relationship, and the encrypted data mapping relationship for cross-verification, and outputting the user identity authentication result.
[0005] The second aspect of the present application provides a privacy computing verification system based on zero-knowledge proof, the system comprising: an identity encrypted data stream generation module, the identity encrypted data stream generation module is used to obtain user identity information, encrypt the user identity information based on a hash function, and generate an identity encrypted data stream; a user identity registration module, the user identity registration module is used to upload the identity encrypted data stream to the identity information tree of the on-chain block for associated storage, determine the encrypted data mapping relationship, and complete user identity registration; a mapping relationship establishment module, the mapping relationship establishment module is used to input the identity encrypted data stream into the image conversion channel for conversion, generate an image data stream and add it to the image comparison resource library, and establish the image data stream and the image-block-node mapping relationship of the on-chain block, wherein , each identity encrypted data has a unique image data identifier; a verification encrypted data stream generation module, the verification encrypted data stream generation module is used to read the user's verification information, perform zero-knowledge conversion on the verification information based on a non-interactive zero-knowledge protocol, encrypt the zero-knowledge conversion result through a hash function, and generate a verification encrypted data stream; a verification image data stream generation module, the verification image data stream generation module is used to convert the verification encrypted data stream through the image conversion channel to generate a verification image data stream; a user identity authentication module, the user identity authentication module is used to perform cross-validation based on a single analysis principle using the verification image data stream, the image comparison resource library, the image-block-node mapping relationship and the encrypted data mapping relationship, and output a user identity authentication result.
[0006] One or more technical solutions provided in this application have at least the following technical effects or advantages:
[0007] The present application provides a privacy computing verification method based on zero-knowledge proof, which relates to the field of data processing technology. It generates identity encrypted data streams and image data streams through user identity information, and establishes an image-block-node mapping relationship between the image data stream and the on-chain block. It reads the user's verification information for zero-knowledge conversion and encryption, generates a verification encrypted data stream and a verification image data stream, combines a single analysis principle for cross-verification, and outputs the user identity verification result. It solves the technical problem in the prior art that the reliability and security of user identity verification are low due to the single verification data, and realizes the technical effect of performing multi-data cross-verification based on zero-knowledge proof to improve the reliability and security of user identity verification. BRIEF DESCRIPTION OF THE DRAWINGS
[0008] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0009] Figure 1 A flowchart of a privacy computing verification method based on zero-knowledge proof provided in an embodiment of the present application;
[0010] Figure 2 A schematic diagram of a process for performing zero-knowledge conversion of verification information in a privacy computing verification method based on zero-knowledge proof provided in an embodiment of the present application;
[0011] Figure 3 A schematic diagram of a process for obtaining a user identity authentication result in a privacy computing verification method based on zero-knowledge proof provided in an embodiment of the present application;
[0012] Figure 4 A schematic diagram of the structure of a privacy computing verification system based on zero-knowledge proof provided in an embodiment of the present application.
[0013] Explanation of reference numerals: identity encryption data stream generating module 11 , user identity registration module 12 , mapping relationship establishing module 13 , verification encryption data stream generating module 14 , verification image data stream generating module 15 , user identity verification module 16 . DETAILED DESCRIPTION
[0014] The present application provides a privacy computing verification method based on zero-knowledge proof, which is used to solve the technical problem in the prior art that the reliability and security of user identity authentication are low due to the single verification data.
[0015] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.
[0016] It should be noted that the terms "first", "second", etc. in the specification of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product, or server that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or modules that are not clearly listed or inherent to these processes, methods, products, or devices.
[0017] Embodiment 1, as Figure 1 As shown, the present application provides a privacy computing verification method based on zero-knowledge proof, the method comprising:
[0018] P10: Obtain user identity information, encrypt the user identity information based on a hash function, and generate an identity encrypted data stream;
[0019] The user identity information includes at least the ID number, ID account number and login password;
[0020] Specifically, the user identity information is obtained, including the user's ID number, ID account number, and login password, and the user identity information is encrypted based on a hash function. The hash function can be used to map user identity data of any length, such as the ID number, ID account number, and login password, to a hash value of fixed length to obtain an identity encrypted data stream. This process is irreversible, that is, the original data cannot be restored from the hash value. Therefore, even if the encrypted identity encrypted data stream is leaked, the attacker cannot obtain the user's real identity information. The generated identity encrypted data stream can be used as the user's unique identifier in the system for subsequent verification and authorization processes.
[0021] P20: Upload the identity encrypted data stream to the identity information tree of the on-chain block for associated storage, determine the encrypted data mapping relationship, and complete the user identity registration;
[0022] Furthermore, step P20 of the embodiment of the present application further includes:
[0023] P21: construct an identity information tree based on the incremental Merkle tree, and randomly store the identity encrypted data stream as a data block in the leaf node of the identity information tree to generate multiple data blocks;
[0024] P22: Establishing a pairwise mapping relationship between the plurality of data blocks, wherein the pairwise mapping relationship includes an inter-block distance and a relative direction;
[0025] P23: Generate the encrypted data mapping relationship based on the pairwise mapping relationship.
[0026] It should be understood that the identity information tree is constructed based on the incremental Merkle tree, which is a binary tree structure in which each leaf node stores the hash value of a data block and the non-leaf node stores the hash value of its child node hash value. This structure allows any change in the data block to affect the root hash value, thereby ensuring the integrity of the data. The identity encrypted data stream is randomly stored as a data block in the leaf node of the identity information tree, and multiple data blocks can be generated, and each data block is associated with a unique hash value.
[0027] Furthermore, a pairwise mapping relationship between the multiple data blocks is established, including the distance and relative direction between blocks, which can be used to quickly locate and retrieve specific data blocks when needed, and by recording the relative position relationship between data blocks, the efficiency of data retrieval is improved and the risk of data loss or damage is reduced.
[0028] Furthermore, an encrypted data mapping relationship is generated based on the pairwise mapping relationship, which associates the user's identity information with the specific location in the on-chain block, so that the user's identity information can be quickly located and verified when needed. It also helps to ensure the integrity and consistency of the data and prevent the data from being tampered with or forged.
[0029] P30: Input the identity encrypted data stream into the image conversion channel for conversion, generate an image data stream and add it to the image comparison resource library, establish an image-block-node mapping relationship between the image data stream and the on-chain block, wherein each identity encrypted data has a unique image data identifier;
[0030] Optionally, the identity encrypted data stream is input into the image conversion channel for conversion. The image conversion channel is responsible for converting the encrypted identity data stream into an image data stream. It can complete the unique image conversion based on the hash pointer and map the encrypted data into a visual image form. The hash pointer is a data structure that stores the hash value of the data and points to the data through this hash value. During the image conversion process, the hash pointer ensures that each identity encrypted data corresponds to a unique image conversion result. In other words, even if the same identity encrypted data is input into the conversion channel again, the image that is exactly the same as before will be generated due to the existence of the hash pointer, ensuring the consistency and uniqueness of the conversion. In addition, the image conversion channel can generate images of any type or style to better adapt to different application scenarios and user needs.
[0031] Furthermore, the generated image data stream is added to the image comparison resource library for subsequent retrieval, comparison or other operations. Based on the principle of blockchain, the image data stream and the image-block-node mapping relationship of the block on the chain are established to ensure that each image data stream is associated with a specific block and node, thereby ensuring the traceability and non-tamperability of the data. Among them, each identity encrypted data has a unique image data identifier, which ensures that each image data stream is unique in the system, which is easy to manage and query.
[0032] P40: Read the user's verification information, perform zero-knowledge conversion on the verification information based on a non-interactive zero-knowledge protocol, encrypt the zero-knowledge conversion result through a hash function, and generate a verification encrypted data stream;
[0033] Specifically, the user's verification information is read, that is, the identity authentication data provided by the current accessing user, and the verification information is converted to zero knowledge based on a non-interactive zero-knowledge protocol, such as the zk-SNARK protocol, etc. The non-interactive zero-knowledge protocol is a cryptographic protocol used to prove a fact or possess a secret without interaction while maintaining the privacy of relevant information. Zero-knowledge conversion of verification information based on a non-interactive zero-knowledge protocol means proving a fact or attribute to the verifier without revealing the specific content of the user's verification information. The needs of the verifier can be met while ensuring the privacy of user information. After the zero-knowledge conversion is completed, the conversion result is encrypted by a hash function to ensure the security of the zero-knowledge conversion result.
[0034] Further, such as Figure 2 As shown, step P40 of the embodiment of the present application also includes:
[0035] P41: Obtain multiple sample verification information, multiple sample zero-knowledge protocols, and multiple sample zero-knowledge conversion results;
[0036] P42: The cryptography expert group sequentially evaluates the conversion effects of the multiple sample zero-knowledge conversion results to generate multiple zero-knowledge conversion coefficients;
[0037] P43: Eliminate sample verification information and sample zero-knowledge protocols whose zero-knowledge conversion coefficients do not meet a preset coefficient threshold, and obtain multiple standard verification information and multiple standard zero-knowledge protocols;
[0038] P44: clustering the plurality of standard verification information, mapping and obtaining a mapping association between the clustering results and the sample zero-knowledge protocol set, and constructing a protocol matching database based on the decision classification tree principle;
[0039] P45: Input the verification information into the protocol matching database for matching, and obtain a matching zero-knowledge protocol set;
[0040] P46: Based on the matching zero-knowledge protocol set, the verification information is sequentially converted into zero knowledge, and any conversion result that meets the preset conversion index is selected as the zero-knowledge conversion result, wherein the preset conversion index includes completeness constraint, rationality constraint and zero-knowledge constraint.
[0041] Optionally, multiple sample verification information, multiple sample zero-knowledge protocols, and multiple sample zero-knowledge conversion results are first collected as basic data for subsequent evaluation and optimization processes. Furthermore, the cryptography expert group uses professional knowledge and experience to evaluate the effect of each sample zero-knowledge conversion result, including evaluation of conversion accuracy, efficiency, security, etc., and generates a zero-knowledge conversion coefficient for each conversion result to reflect the quality of the conversion effect.
[0042] Furthermore, a preset coefficient threshold, that is, a threshold of the zero-knowledge conversion coefficient, can be set by an expert group. Sample verification information and sample zero-knowledge protocols whose zero-knowledge conversion coefficients do not meet the preset coefficient threshold, that is, sample verification information and sample zero-knowledge protocols with poor conversion effects are eliminated, and the remaining sample verification information and sample zero-knowledge protocols are used as multiple standard verification information and multiple standard zero-knowledge protocols.
[0043] Furthermore, the multiple standard verification information are clustered, similar verification information is classified into one category, and a mapping association is established between the clustering results and the sample zero-knowledge protocol set, that is, the most suitable zero-knowledge protocol for each type of verification information is determined, and then, based on the decision classification tree principle, a protocol matching database is constructed for quickly finding and matching the most suitable zero-knowledge protocol.
[0044] In practical applications, when the user provides verification information, it is input into the protocol matching database for matching, and the matching zero-knowledge protocol set can be quickly found according to the characteristics of the verification information. Based on the matching zero-knowledge protocol set, the verification information is converted into zero knowledge in sequence, and any conversion result that meets the preset conversion index is selected as the zero-knowledge conversion result, wherein the preset conversion index includes completeness constraint, rationality constraint and zero-knowledge constraint, the completeness constraint means that the conversion result can fully reflect the original verification information, the rationality constraint means that the conversion process conforms to logic and rules, and the zero-knowledge constraint conversion process does not disclose any specific content of the original verification information.
[0045] P50: converting the verification encrypted data stream through the image conversion channel to generate a verification image data stream;
[0046] Exemplarily, referring to the above method, the verification encrypted data stream is converted through the image conversion channel, the unique image conversion is completed based on the hash pointer, the verification encrypted data is mapped into a visual image form, and a verification image data stream is generated to provide necessary image data for subsequent cross-validation.
[0047] P60: Based on a single analysis principle, the verification image data stream, the image comparison resource library, the image-block-node mapping relationship and the encrypted data mapping relationship are used for cross-verification to output the user identity authentication result.
[0048] Further, such as Figure 3 As shown, step P60 of the embodiment of the present application also includes:
[0049] P61: randomly selecting first verification image data from the verification image data stream, inputting the first verification image data into an image comparison unit for similarity comparison, and outputting first comparison image data with the greatest similarity, wherein the image comparison unit is constructed based on a convolutional neural network and is embedded with the image comparison resource library;
[0050] P62: Based on the image-block-node mapping relationship, obtain a first mapping block of the first comparison image data, and sequentially obtain multiple mapping blocks of multiple verification image data in the verification image data stream;
[0051] P63: If the multiple mapping blocks are consistent, the identity information tree of the mapping block is called, and based on a single analysis principle and the image-block-node mapping relationship, iterative verification is performed to output the user identity authentication result.
[0052] It should be understood that based on the single analysis principle, the user identity is cross-verified using the verification image data stream, the image comparison resource library, the image-block-node mapping relationship and the encrypted data mapping relationship to obtain the user identity verification result to ensure the accuracy and reliability of the identity verification. The single analysis principle means that the reaction generated under the stimulus is only for a specific object and has no effect on other objects.
[0053] Specifically, any verification image data is randomly selected from the verification image data stream as the first verification image data, and the first verification image data is input into an image comparison unit for similarity comparison, wherein the image comparison unit is constructed based on a convolutional neural network and is embedded with the image comparison resource library, and can perform image recognition and matching. During the comparison process, the image comparison unit searches for images similar to the first verification image data in the image comparison resource library, and outputs the first comparison image data with the greatest similarity.
[0054] Furthermore, based on the image-block-node mapping relationship, a first mapping block of the first comparison image data is obtained. The first mapping block is a specific block associated with the first comparison image data, which may contain information related to identity authentication. Similarly, multiple mapping blocks of multiple verification image data in the verification image data stream are obtained in sequence.
[0055] Further, check whether the multiple mapping blocks are consistent. If the multiple mapping blocks are consistent, it means that each part of the verification image data stream is consistent with the expected information, so that further identity authentication can be performed. Then, the identity information tree of the mapping block is called, and based on the single analysis principle and the image-block-node mapping relationship, the identity information tree is iteratively verified, including checking the integrity, consistency and other related verification rules of the identity information tree, and outputting the user identity authentication result. The cross-validation method not only improves the accuracy of identity authentication, but also enhances the security and reliability of the system.
[0056] Furthermore, step P63 of the embodiment of the present application also includes:
[0057] P63-1: Based on the image-block-node mapping relationship, locate the first comparison image data in the identity information tree, identify the first comparison image data, and determine a first pairwise mapping relationship of the first comparison image data;
[0058] P63-2: Identify second comparison image data, and determine a second pairwise mapping relationship of the second comparison image data;
[0059] P63-3: Identify the Nth comparison image data, and determine the Nth pairwise mapping relationship of the Nth comparison image data, where N is the number of verification image data in the verification image data stream;
[0060] P63-4: Based on the inter-block distance and relative direction, cross-validate the first two-to-two mapping relationship, the second two-to-two mapping relationship, and finally the Nth two-to-two mapping relationship in sequence, and generate a user identity authentication result based on the cross-validation result.
[0061] Furthermore, step P63-4 of the embodiment of the present application also includes:
[0062] P63-41: If the distances between blocks and the relative directions of the two data blocks in the cross-validation result satisfy the encrypted data mapping relationship, the user identity verification result is passed;
[0063] P63-42: If the distance between each pair of data blocks and the relative direction in the cross-validation result do not satisfy the encrypted data mapping relationship, the user identity authentication result is failed.
[0064] In a possible embodiment of the present application, based on the image-block-node mapping relationship, the first comparison image data is located in the identity information tree, and the first comparison image data is identified, and a first pairwise mapping relationship of the first comparison image data is determined, that is, the association between the image data and a specific node in the identity information tree is verified.
[0065] Further, the second comparison image data is identified and the second pairwise mapping relationship of the second comparison image data is determined. Similarly, the Nth comparison image data is identified and the Nth pairwise mapping relationship of the Nth comparison image data is determined, wherein N represents the number of verification image data in the verification image data stream, that is, it is necessary to identify and determine the mapping relationship of each comparison image data in the verification data stream.
[0066] Furthermore, based on the inter-block distance and relative direction, the first pairwise mapping relationship, the second pairwise mapping relationship, and finally the Nth pairwise mapping relationship are cross-validated in turn. Through cross-validation, it is checked whether the associations between different comparison image data are consistent and whether they meet the expected verification conditions.
[0067] Furthermore, based on the cross-validation result, a user identity verification result is generated. If in the cross-validation result, the inter-block distances and relative directions of all pairs of data blocks satisfy the conditions or thresholds preset in the encrypted data mapping relationship, the match between the data blocks is considered to be successful, and the user identity verification result is passed. If in the cross-validation result, the inter-block distances and relative directions of any pair of data blocks do not satisfy the encrypted data mapping relationship, the match between the data blocks is considered to have failed, and there may be data corruption, tampering or forgery, etc., and the user identity verification result is not passed, indicating that the verification has failed.
[0068] In summary, the embodiments of the present application have at least the following technical effects:
[0069] This application obtains user identity information and encrypts it to generate an identity encrypted data stream, and converts it to generate an image data stream, establishes an image data stream and an image-block-node mapping relationship between the image data stream and the on-chain block, reads the user's verification information, performs zero-knowledge conversion and encryption, generates a verification encrypted data stream, and converts it to generate a verification image data stream, combines a single analysis principle for cross-verification, and outputs the user identity authentication result.
[0070] The technical effect of performing multi-data cross-verification based on zero-knowledge proof and improving the reliability and security of user identity authentication has been achieved.
[0071] Embodiment 2 is based on the same inventive concept as the privacy computing verification method based on zero-knowledge proof in the above embodiment. Figure 4As shown, the present application provides a privacy computing verification system based on zero-knowledge proof, and the system and method embodiments in the present application are based on the same inventive concept. The system includes:
[0072] An identity encrypted data stream generation module 11, the identity encrypted data stream generation module 11 is used to obtain user identity information, encrypt the user identity information based on a hash function, and generate an identity encrypted data stream;
[0073] User identity registration module 12, the user identity registration module 12 is used to upload the identity encrypted data stream to the identity information tree of the chain block for associated storage, determine the encrypted data mapping relationship, and complete the user identity registration;
[0074] A mapping relationship establishment module 13, which is used to input the identity encrypted data stream into the image conversion channel for conversion, generate an image data stream and add it to the image comparison resource library, and establish an image-block-node mapping relationship between the image data stream and the on-chain block, wherein each identity encrypted data has a unique image data identifier;
[0075] A verification encrypted data stream generation module 14, the verification encrypted data stream generation module 14 is used to read the user's verification information, perform zero-knowledge conversion on the verification information based on a non-interactive zero-knowledge protocol, encrypt the zero-knowledge conversion result through a hash function, and generate a verification encrypted data stream;
[0076] A verification image data stream generation module 15, the verification image data stream generation module 15 is used to convert the verification encrypted data stream through the image conversion channel to generate a verification image data stream;
[0077] The user identity authentication module 16 is used to perform cross-verification based on a single analysis principle using the verification image data stream, the image comparison resource library, the image-block-node mapping relationship and the encrypted data mapping relationship to output a user identity authentication result.
[0078] Furthermore, the user identity registration module 12 is also used to perform the following steps:
[0079] Building an identity information tree based on the incremental Merkle tree, and randomly storing the identity encrypted data stream as a data block in a leaf node of the identity information tree to generate a plurality of data blocks;
[0080] Establishing a pairwise mapping relationship between the plurality of data blocks, wherein the pairwise mapping relationship includes an inter-block distance and a relative direction;
[0081] The encrypted data mapping relationship is generated based on the pairwise mapping relationship.
[0082] Furthermore, the verification encrypted data stream generation module 14 is further configured to perform the following steps:
[0083] Obtain multiple sample verification information, multiple sample zero-knowledge protocols, and multiple sample zero-knowledge conversion results;
[0084] The cryptography expert group sequentially evaluates the conversion effects of the multiple sample zero-knowledge conversion results to generate multiple zero-knowledge conversion coefficients;
[0085] Eliminating the sample verification information and sample zero-knowledge protocols whose zero-knowledge conversion coefficients do not meet a preset coefficient threshold, to obtain a plurality of standard verification information and a plurality of standard zero-knowledge protocols;
[0086] Clustering the plurality of standard verification information, mapping and obtaining a mapping association between the clustering results and the sample zero-knowledge protocol set, and constructing a protocol matching database based on a decision classification tree principle;
[0087] Inputting the verification information into the protocol matching database for matching to obtain a matching zero-knowledge protocol set;
[0088] Based on the matching zero-knowledge protocol set, the verification information is sequentially converted into zero knowledge, and any conversion result that meets the preset conversion index is selected as the zero-knowledge conversion result, wherein the preset conversion index includes completeness constraint, rationality constraint and zero-knowledge constraint.
[0089] Furthermore, the user identity verification module 16 is further configured to perform the following steps:
[0090] Randomly selecting first verification image data from the verification image data stream, inputting the first verification image data into an image comparison unit for similarity comparison, and outputting first comparison image data with the greatest similarity, wherein the image comparison unit is constructed based on a convolutional neural network and is embedded with the image comparison resource library;
[0091] Based on the image-block-node mapping relationship, obtain a first mapping block of the first comparison image data, and sequentially obtain multiple mapping blocks of multiple verification image data in the verification image data stream;
[0092] If the multiple mapping blocks are consistent, the identity information tree of the mapping block is called, and based on a single analysis principle and the image-block-node mapping relationship, iterative verification is performed to output a user identity authentication result.
[0093] Furthermore, the user identity verification module 16 is further configured to perform the following steps:
[0094] Based on the image-block-node mapping relationship, locate the first comparison image data in the identity information tree, identify the first comparison image data, and determine a first pairwise mapping relationship of the first comparison image data;
[0095] Identifying second comparison image data, and determining a second pairwise mapping relationship of the second comparison image data;
[0096] Identify the Nth comparison image data, and determine the Nth pairwise mapping relationship of the Nth comparison image data, where N is the number of verification image data in the verification image data stream;
[0097] Based on the inter-block distance and the relative direction, the first two-to-two mapping relationship, the second two-to-two mapping relationship, and finally the Nth two-to-two mapping relationship are cross-validated in sequence, and a user identity authentication result is generated based on the cross-validation result.
[0098] Furthermore, the user identity verification module 16 is further configured to perform the following steps:
[0099] If the distances between blocks and the relative directions of the two data blocks in the cross-validation result satisfy the encrypted data mapping relationship, the user identity verification result is passed;
[0100] If the distances between and the relative directions of the two data blocks in the cross-validation result do not satisfy the encrypted data mapping relationship, the user identity authentication result is considered as failed.
[0101] It should be noted that the above-mentioned sequence of the embodiments of the present application is only for description and does not represent the advantages and disadvantages of the embodiments. And the above-mentioned specific embodiments of this specification are described. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0102] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the protection scope of the present application.
[0103] This specification and the drawings are merely exemplary illustrations of the present application and are deemed to cover any and all modifications, variations, combinations or equivalents within the scope of the present application. Obviously, a person skilled in the art may make various modifications and variations to the present application without departing from the scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the present application and its equivalents, the present application intends to include these modifications and variations.
Claims
1. A privacy computing verification method based on zero-knowledge proof, characterized in that: The method comprises: Obtaining user identity information, encrypting the user identity information based on a hash function, and generating an identity encrypted data stream; Upload the identity encrypted data stream to the identity information tree of the on-chain block for associated storage, determine the encrypted data mapping relationship, and complete the user identity registration; Input the identity encrypted data stream into the image conversion channel for conversion, generate an image data stream and add it to the image comparison resource library, establish an image-block-node mapping relationship between the image data stream and the on-chain block, wherein each identity encrypted data has a unique image data identifier; Reading the user's verification information, performing zero-knowledge conversion on the verification information based on a non-interactive zero-knowledge protocol, encrypting the zero-knowledge conversion result through a hash function, and generating a verification encrypted data stream; Convert the verification encrypted data stream through the image conversion channel to generate a verification image data stream; Based on a single analysis principle, the verification image data stream, the image comparison resource library, the image-block-node mapping relationship and the encrypted data mapping relationship are used to perform cross-verification and output a user identity verification result; The performing zero-knowledge conversion on the verification information based on a non-interactive zero-knowledge protocol includes: Obtain multiple sample verification information, multiple sample zero-knowledge protocols, and multiple sample zero-knowledge conversion results; The cryptography expert group sequentially evaluates the conversion effects of the multiple sample zero-knowledge conversion results to generate multiple zero-knowledge conversion coefficients; Eliminating the sample verification information and sample zero-knowledge protocols whose zero-knowledge conversion coefficients do not meet a preset coefficient threshold, to obtain a plurality of standard verification information and a plurality of standard zero-knowledge protocols; Clustering the plurality of standard verification information, mapping and obtaining a mapping association between the clustering results and the sample zero-knowledge protocol set, and constructing a protocol matching database based on a decision classification tree principle; Inputting the verification information into the protocol matching database for matching to obtain a matching zero-knowledge protocol set; Based on the matching zero-knowledge protocol set, the verification information is sequentially converted into zero knowledge, and any conversion result that satisfies a preset conversion index is selected as a zero-knowledge conversion result, wherein the preset conversion index includes a completeness constraint, a rationality constraint, and a zero-knowledge constraint; Based on the single analysis principle, the verification image data stream, the image comparison resource library, the image-block-node mapping relationship and the encrypted data mapping relationship are used for cross-verification, and the user identity verification result is output, including: Randomly selecting first verification image data from the verification image data stream, inputting the first verification image data into an image comparison unit for similarity comparison, and outputting first comparison image data with the greatest similarity, wherein the image comparison unit is constructed based on a convolutional neural network and is embedded with the image comparison resource library; Based on the image-block-node mapping relationship, obtain a first mapping block of the first comparison image data, and sequentially obtain multiple mapping blocks of multiple verification image data in the verification image data stream; If the multiple mapping blocks are consistent, the identity information tree of the mapping block is called, and based on a single analysis principle and the image-block-node mapping relationship, iterative verification is performed to output a user identity authentication result.
2. The method according to claim 1, characterized in that: The user identity information includes at least an ID number, an ID account number, and a login password.
3. The method according to claim 2, characterized in that The step of uploading the identity encrypted data stream to the identity information tree of the on-chain block for associated storage and determining the encrypted data mapping relationship includes: Building an identity information tree based on the incremental Merkle tree, and randomly storing the identity encrypted data stream as a data block in a leaf node of the identity information tree to generate a plurality of data blocks; Establishing a pairwise mapping relationship between the plurality of data blocks, wherein the pairwise mapping relationship includes an inter-block distance and a relative direction; The encrypted data mapping relationship is generated based on the pairwise mapping relationship.
4. The method according to claim 1, characterized in that: The iterative verification is performed based on the single analysis principle and the image-block-node mapping relationship, and the user identity authentication result is output, including: Based on the image-block-node mapping relationship, locate the first comparison image data in the identity information tree, identify the first comparison image data, and determine a first pairwise mapping relationship of the first comparison image data; Identifying second comparison image data, and determining a second pairwise mapping relationship of the second comparison image data; Identify the Nth comparison image data, and determine the Nth pairwise mapping relationship of the Nth comparison image data, where N is the number of verification image data in the verification image data stream; Based on the inter-block distance and the relative direction, the first two-to-two mapping relationship, the second two-to-two mapping relationship, and finally the Nth two-to-two mapping relationship are cross-validated in sequence, and a user identity authentication result is generated based on the cross-validation result.
5. The method according to claim 4, characterized in that Generating a user identity verification result based on the cross-verification result includes: If the distances between blocks and the relative directions of the two data blocks in the cross-validation result satisfy the encrypted data mapping relationship, the user identity verification result is passed; If the distances between and the relative directions of the two data blocks in the cross-validation result do not satisfy the encrypted data mapping relationship, the user identity authentication result is considered as failed.
6. A privacy computing verification system based on zero-knowledge proof, characterized in that: The system comprises: An identity encrypted data stream generation module, the identity encrypted data stream generation module is used to obtain user identity information, encrypt the user identity information based on a hash function, and generate an identity encrypted data stream; A user identity registration module, which is used to upload the identity encrypted data stream to the identity information tree of the on-chain block for associated storage, determine the encrypted data mapping relationship, and complete the user identity registration; A mapping relationship establishment module, the mapping relationship establishment module is used to input the identity encrypted data stream into the image conversion channel for conversion, generate an image data stream and add it to the image comparison resource library, and establish an image-block-node mapping relationship between the image data stream and the on-chain block, wherein each identity encrypted data has a unique image data identifier; A verification encrypted data stream generation module, the verification encrypted data stream generation module is used to read the user's verification information, perform zero-knowledge conversion on the verification information based on a non-interactive zero-knowledge protocol, encrypt the zero-knowledge conversion result through a hash function, and generate a verification encrypted data stream; A verification image data stream generation module, the verification image data stream generation module is used to convert the verification encrypted data stream through the image conversion channel to generate a verification image data stream; A user identity authentication module, the user identity authentication module is used to perform cross-verification based on a single analysis principle using the verification image data stream, the image comparison resource library, the image-block-node mapping relationship and the encrypted data mapping relationship, and output a user identity authentication result; The verification encrypted data stream generation module is further used to perform the following steps: Obtain multiple sample verification information, multiple sample zero-knowledge protocols, and multiple sample zero-knowledge conversion results; The cryptography expert group sequentially evaluates the conversion effects of the multiple sample zero-knowledge conversion results to generate multiple zero-knowledge conversion coefficients; Eliminating the sample verification information and sample zero-knowledge protocols whose zero-knowledge conversion coefficients do not meet a preset coefficient threshold, to obtain a plurality of standard verification information and a plurality of standard zero-knowledge protocols; Clustering the plurality of standard verification information, mapping and obtaining a mapping association between the clustering results and the sample zero-knowledge protocol set, and constructing a protocol matching database based on a decision classification tree principle; Inputting the verification information into the protocol matching database for matching to obtain a matching zero-knowledge protocol set; Based on the matching zero-knowledge protocol set, the verification information is sequentially converted into zero knowledge, and any conversion result that satisfies a preset conversion index is selected as a zero-knowledge conversion result, wherein the preset conversion index includes a completeness constraint, a rationality constraint, and a zero-knowledge constraint; The user authentication module is also used to perform the following steps: Randomly selecting first verification image data from the verification image data stream, inputting the first verification image data into an image comparison unit for similarity comparison, and outputting first comparison image data with the greatest similarity, wherein the image comparison unit is constructed based on a convolutional neural network and is embedded with the image comparison resource library; Based on the image-block-node mapping relationship, obtain a first mapping block of the first comparison image data, and sequentially obtain multiple mapping blocks of multiple verification image data in the verification image data stream; If the multiple mapping blocks are consistent, the identity information tree of the mapping block is called, and based on a single analysis principle and the image-block-node mapping relationship, iterative verification is performed to output a user identity authentication result.
Citation Information
Patent Citations
Zero-knowledge identity recognition method and system based on biological characteristics
CN115664766A
Block chain privacy protection system based on zero-knowledge proof algorithm
CN115941201A
Zero-knowledge identity authentication method and device based on block chain and biological characteristics
CN117254912A
Multi-node identity verification method and device based on block chain
CN117370952A
Blockchain identity authentication and privacy protection core technology such as zero-knowledge proof
WO2023050557A1
