Identity authentication method, system and product based on block chain and zero-knowledge proof

By using blockchain and zero-knowledge proof technology in identity authentication, it solves the problems of user privacy leakage and data storage security in traditional identity authentication, achieves higher privacy protection and security, simplifies the verification process, and improves the system. transparency and credibility.

CN118764211AActive Publication Date: 2024-10-11WUHAN UNIV

Patent Information

Application Number
CN202410917337.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-10
Publication Date
2024-10-11
Estimated Expiration
2044-07-10

AI Technical Summary

Technical Problem

Traditional identity authentication technology has problems with user privacy leakage and data storage security, especially when centralized storage systems are vulnerable to attacks and tampering.

Method used

Adopt an anonymous identity authentication method based on blockchain and zero-knowledge proof, store verification information through the decentralization and non-tamperability of blockchain, and use zero-knowledge proof technology to verify user identity without revealing specific identity information or property.

Benefits of technology

It effectively reduces the risk of leaking personal sensitive information, improves the security of data storage and the system's anti-attack capabilities, while simplifying the verification process, improving verification efficiency and the workload of management nodes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118764211A_ABST
    Figure CN118764211A_ABST
Patent Text Reader

Abstract

The invention discloses an anonymous identity authentication method, system and product based on a block chain and zero-knowledge proof, and the method comprises the steps: firstly, a system administrator generates system public parameters, and maintains an authentication information list; the certifier registers with the management node, and the management node verifies and issues the private key according to the authentication information list. Next, the certifier generates a verification request according to the public and private keys of the group members and sends the verification request to the verifier, the interactive certifier needs to obtain a challenge value from the verifier, and the non-interactive certifier generates a challenge value according to a hash function. And the prover calculates a knowledge signature according to the challenge value and sends the knowledge signature to the verifier. And the verifier performs identity verification according to the verification request and the knowledge signature. In addition, the verifier can record corresponding verification information and submit the verification information to the block chain. And finally, the management node queries verification information to supervise and track the certifier. According to the method, a zero-knowledge certification technology is adopted, anonymity is achieved, and powerful evidence is provided for the management node to track and supervise the certifier through the non-tampering property of the block chain.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of network security technology, and relates to an identity authentication method, system and product, and specifically to an anonymous identity authentication method, system and product based on blockchain and zero-knowledge proof. Background Art

[0002] Identity authentication is a key foundation for building trust in modern online activities. Traditionally, identity authentication is performed by trusted third parties (such as banks and government agencies), which verify the identity and attributes of users and issue corresponding credentials. When users access online services, they need to show these credentials to the service provider, and the service provider decides whether to provide services based on their trustworthiness and the content of the credentials. This technology has been widely used in fields such as electronic ID cards, electronic medical care, and electronic voting.

[0003] However, these credentials usually contain a large amount of personal identity information, which poses a risk of privacy leakage. Verifiers can directly access users' sensitive data during the verification process, and are vulnerable to attacks during transmission and storage. In addition, since centralized storage systems are easy targets for attack, once they are breached or fail, the stored verification records and other data are easily tampered with or inaccessible, which will hinder the administrator's supervision and tracking of user verification.

[0004] To solve the problem of user privacy protection, encryption algorithms and secure transmission protocols (such as TLS / SSL, etc.) can be used to prevent user privacy from being leaked. However, the introduction of secure transmission protocols will also increase the communication overhead of user verification, and traditional encryption algorithms are not specifically designed for the anonymity of signers, which may have limitations in some application scenarios that require identity anonymity.

[0005] In order to solve the security problem of verification information storage, a distributed database can be used to store verification information, which can greatly improve the security of data storage and prevent attacks against a single point. However, a general distributed database is usually managed by a centralized management node. Once an attacker obtains sufficient permissions, it is still possible to tamper with the data without being detected. Summary of the invention

[0006] In order to solve the user privacy protection problem and data storage security problem in the prior art identity authentication technology, the present invention proposes an anonymous identity authentication method and system based on blockchain and zero-knowledge proof.

[0007] The technical solution adopted by the method of the present invention is: an anonymous identity authentication method based on blockchain and zero-knowledge proof, comprising the following steps:

[0008] Step 1: The administrator sets the system public parameters and authentication information list, generates the group public key, administrator private key and group member private key;

[0009] Step 2: Determine whether the prover is registered;

[0010] If the prover is not registered, the prover verifies with the management node and applies to register as a group member;

[0011] If the certifier has been registered, execute step 4 below;

[0012] Step 3: The management node verifies the prover based on the authentication information list and issues private keys to group members;

[0013] Step 4: The prover generates a verification request based on the group member's public key and the obtained group member's private key, and sends the verification request to the verifier;

[0014] Step 5: The verifier records the request content and sends the challenge value c to the prover;

[0015] Step 6: The prover calculates the corresponding knowledge signature σ based on the challenge value c and sends the knowledge signature σ to the verifier;

[0016] Step 7: The verifier performs verification based on the verification request and the knowledge signature σ;

[0017] Step 8: The verifier submits the verification information including time, verifier information, and knowledge signature σ to the blockchain;

[0018] Step 9: After reaching consensus on the verification information, the blockchain will send the transaction number and block number of the verification information to the verifier;

[0019] Step 10: The verifier sends the transaction number to the management node for the management node to supervise and track the prover's verification.

[0020] Preferably, the specific implementation of step 1 includes the following sub-steps:

[0021] Step 1.1: The administrator sets the system common parameters G1, G2, ψ, g1, g2, and e; where G1 and G2 are multiplicative cyclic groups of prime order P; ψ is a computable isomorphism from G2 to G1, and ψ(g2) = g1; g1 and g2 are generators of G1 and G2 respectively; e is a computable mapping, e: G1×G2→G T , and satisfies bilinearity and non-degenerate properties, → indicates that the function maps the input of the left domain to the output of the right domain;

[0022] Wherein, the bilinearity satisfies for all u∈G1, v∈G2 and a, b∈Z, e(u a ,v b)=e(u,v) ab , Z is an integer; the non-degeneracy satisfies e(g1,g2)≠1;

[0023] Step 1.2: Enter the number of group members n and generate a key based on the system public parameters;

[0024] Randomly select h, ξ1, ξ2, u and v to satisfy u, v∈G1, and satisfy in represents a set of integers in the range 1 to p. Represents the identity element 1 of group G1, ← represents assignment; random selection And set Get the group public key gpk = (g1, g2, h, u, v, w) and the group administrator private key gmsk = (ξ1, ξ2);

[0025] Step 1.3: Generate group member private key pairs based on system public parameters;

[0026] Through γ, a private key pair gsk[i]=(A i ,x i ), where x i Randomly select and satisfy

[0027] Step 1.4: The administrator sets up the authentication information list.

[0028] Preferably, the specific implementation of step 3 includes the following sub-steps:

[0029] Step 3.1: The management node compares the authentication information submitted by the prover with the authentication information list provided by the administrator;

[0030] Step 3.2: After the management node performs the comparison, if the comparison result is consistent, the prover will issue the private key gsk[i]=(A i ,x i ) and establishes an association between number i and the prover in the database.

[0031] Preferably, the specific implementation of step 4 includes the following sub-steps:

[0032] Step 4.1: Random Selection Calculate T1←u α 、T2←v β 、T3←Ah α+β ;in, Represents a set of integers ranging from 0 to p;

[0033] Step 4.2: Calculate two auxiliary values ​​δ1←xα, δ2←xβ; where x represents the private key of group member i obtained by the prover gsk[i]=(A i ,x i ) i ;

[0034] Step 4.3: Select blind value And calculate

[0036] Step 4.4: The prover generates M∈{0,1} * ; where {0,1} * Represents a binary sequence;

[0037] Step 4.5: The prover sends (M, T1, T2, T3, R1, R2, R3, R4, R5) as a verification request to the verifier.

[0038] Preferably, in step 5, the verifier records the received verification request and generates a challenge value The challenge value c is associated with the verification request, and the challenge value c is returned to the prover; wherein, represents a set of integers ranging from 0 to p. Indicates from is randomly selected and assigned to c.

[0039] Preferably, in step 6, the prover calculates s α =r α +cα,s β =r β +cβ,s x =r x +cx, The prover thus obtains the knowledge signature

[0040] Preferably, the specific implementation of step 7 includes the following sub-steps:

[0041] Step 7.1: Calculate based on the knowledge signature σ, the verification request and the system public parameters

[0042] Step 7.2: Verification If the calculated value is equal to c, the verification passes, otherwise it fails.

[0043] The technical solution adopted by the system of the present invention is: an anonymous identity authentication system based on blockchain and zero-knowledge proof, comprising:

[0044] one or more processors;

[0045] A storage device is used to store one or more programs. When the one or more programs are executed by the one or more processors, the one or more processors implement the anonymous identity authentication method based on blockchain and zero-knowledge proof.

[0046] The technical solution adopted by the product of the present invention is: a computer program product, including a computer program, which implements the anonymous identity authentication method based on blockchain and zero-knowledge proof when executed by a processor.

[0047] Compared with the prior art, the beneficial effects of the present invention include:

[0048] (1) When users of the present invention prove their identities and attributes, they will not disclose relevant information. The verifier only knows that the attribute value meets certain conditions. This design helps to reduce the risk of leakage of personal sensitive information and improve user privacy protection.

[0049] (2) The administrator of the present invention only needs to query the blockchain system when supervising and tracking user verification information, which avoids the situation where the data is unsafe and inaccessible due to the failure of the verifier, and improves the security of data storage.

[0050] (3) In the process of proving to the verifier, the user of the present invention only needs to calculate the knowledge signature without the assistance of the administrator. Through this design, the system can reduce the workload of the management node and improve the verification efficiency while ensuring security and user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] The technical solution of the present invention is further described below using embodiments and specific implementation methods. In addition, in the process of describing the technical solution, some drawings are also used. For those skilled in the art, other drawings and the intention of the present invention can also be obtained based on these drawings without paying creative work.

[0052] Figure 1 is a flow chart of a method according to an embodiment of the present invention;

[0053] Figure 2 Schematic diagram of the method according to an embodiment of the present invention. DETAILED DESCRIPTION

[0054] In order to facilitate ordinary technicians in the field to understand and implement the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the implementation examples described herein are only used to illustrate and explain the present invention, and are not used to limit the present invention.

[0055] There are problems with user privacy protection and data storage security in identity authentication technology. The anonymous identity authentication method based on blockchain and zero-knowledge proof can solve the above problems. Blockchain technology ensures data security and transparency with its decentralization and immutability. Every record of identity authentication is encrypted and stored on the blockchain, and no one can tamper with it without authorization. This not only greatly reduces the risk of data tampering, but also improves the system's anti-attack ability, because attackers cannot obtain or tamper with data by breaking into a single node. Zero-knowledge proof technology further enhances privacy protection. In an identity authentication system using zero-knowledge proof, users can prove their identity or attributes without revealing specific identity information. The verifier only needs to confirm that the user has the required attributes or permissions without obtaining the user's detailed information. This method effectively avoids the risk of sensitive data leakage during transmission and storage.

[0056] Please see Figure 1 and Figure 2 , this embodiment provides an anonymous identity authentication method based on blockchain and zero-knowledge proof, comprising the following steps:

[0057] Step 1: The administrator sets the system public parameters and authentication information list, generates the group public key, administrator private key and group member private key;

[0058] In one embodiment, the specific implementation of step 1 includes the following sub-steps:

[0059] Step 1.1: The administrator sets the system common parameters G1 and G2 in advance, where G1 and G2 meet the following conditions:

[0060] 1. G1 and G2 are multiplicative cyclic groups of prime order P.

[0061] 2. g1 and g2 are the generators of G1 and G2 respectively.

[0062] 3. ψ is a computable isomorphism from G2 to G1, and ψ(g2)=g1.

[0063] 4. e is a computable mapping, e: G1×G2→G T , and satisfy the following properties:

[0064] Bilinear: For all u∈G1,v∈G2 and a,b∈Z,e(u a ,v b )=e(u,v) ab .

[0065] Non-degeneracy: e(g1,g2)≠1.

[0066] → indicates that the function maps the input of the left domain to the output of the right domain.

[0067] Step 1.2: Enter the number of group members n and generate a key based on the system public parameters. The key generation algorithm will randomly select h, ξ1, ξ2, u and v to satisfy u, v∈G1, and satisfy in represents a set of integers in the range 1 to p. Represents the identity element 1 of group G1, ← represents assignment; random selection And set Get the group public key gpk = (g1, g2, h, u, v, w) and the group administrator private key gmsk = (ξ1, ξ2);

[0068] Step 1.3: Generate group member private key pairs based on system public parameters.

[0069] Through γ, a private key pair gsk[i]=(A i ,x i ), where x i Randomly select and satisfy

[0070] Step 1.4: The administrator sets up the authentication information list.

[0071] Step 2: If the prover is not registered, he needs to provide authentication information to the management node, and the management node will verify the registration; otherwise, go to step 4;

[0072] In one implementation, the prover submits (account, password) to the management node as authentication information.

[0073] Step 3: The management node verifies the prover based on the authentication information list and issues private keys to group members;

[0074] In one implementation, the specific implementation of step 3 includes the following sub-steps:

[0075] Step 3.1: The management node compares the authentication information submitted by the prover with the authentication information list provided by the administrator;

[0076] Step 3.2: After the management node performs the comparison, if the comparison result is consistent, the prover will issue the group member private key gsk[i]=(A i ,x i ) and establishes an association between number i and the prover in the database.

[0077] Step 4: The prover generates a verification request based on the group member's public key and the obtained group member's private key;

[0078] In one implementation, the specific implementation of step 4 includes the following sub-steps:

[0079] Step 4.1: Random Selection Calculate T1←u α 、T2←v β 、T3←Ah α+β ;in, Represents a set of integers ranging from 0 to p;

[0080] Step 4.2: Calculate two auxiliary values ​​δ1←xα, δ2←xβ; where x represents the private key of group member i obtained by the prover gsk[i]=(A i ,x i ) i ;

[0081] Step 4.3: Select blind value And calculate

[0082] Step 4.4: The prover generates M∈{0,1} * ; where {0,1} * Represents a binary sequence;

[0083] Step 5: The prover sends the verification request to the verifier;

[0084] In one implementation, the prover sends the result of step 4 (M, T1, T2, T3, R1, R2, R3, R4, R5) to the verifier as a verification request.

[0085] Step 6: The verifier records the request content and sends the challenge value to the prover;

[0086] In one implementation, the verifier records the received (M, T1, T2, T3, R1, R2, R3, R4, R5) and generates Associate c with (M, T1, T2, T3, R1, R2, R3, R4, R5) and return c to the prover; where, represents a set of integers ranging from 0 to p. Indicates from is randomly selected and assigned to c.

[0087] Step 7: The prover calculates the corresponding knowledge signature based on the challenge value;

[0088] In one embodiment, the prover computes s α =r α +cα,s β =r β+cβ,s x =r x +cx, The prover thus obtains the knowledge signature

[0089] Step 8: The prover sends the knowledge signature to the verifier;

[0090] In one implementation, the prover needs to send the knowledge signature σ calculated in step 7 to the verifier.

[0091] Step 9: The verifier performs verification based on the verification request and knowledge signature;

[0092] In one implementation, the specific implementation of step 9 includes the following sub-steps:

[0093] Step 9.1: Based on the knowledge signature σ received in step 8, the verification request received in step 5, and the public parameters of the system, calculate

[0094] Step 9.2: Verification If the calculated value is equal to c, the verification passes, otherwise it fails.

[0095] Step 10: The verifier submits the verification information including time, verifier information, and knowledge signature to the blockchain;

[0096] In one implementation, the verifier needs to send information such as the verification time Time, verifier information VerifierID, and knowledge signature σ to the node on the blockchain system.

[0097] Step 11: The blockchain returns the transaction number recording the corresponding information to the verifier;

[0098] In one embodiment, after reaching consensus on the information, the blockchain system sends information such as the transaction number TransactionID, block number BlockID, etc. that records the information to the verifier.

[0099] Step 12: The verifier sends the transaction number to the management node for the management node to supervise and track the prover's verification;

[0100] In one embodiment, the verifier receives information such as the transaction number TransactionID, block number BlockID, etc. from the blockchain system and sends it to the management node for the management node to supervise and track the verification of the industrial equipment.

[0101] This embodiment also provides an anonymous identity authentication system based on blockchain and zero-knowledge proof, including:

[0102] one or more processors;

[0103] A storage device is used to store one or more programs. When the one or more programs are executed by the one or more processors, the one or more processors implement the anonymous identity authentication method based on blockchain and zero-knowledge proof.

[0104] This embodiment also provides a computer program product, including a computer program, which, when executed by a processor, implements the anonymous identity authentication method based on blockchain and zero-knowledge proof.

[0105] By combining blockchain and zero-knowledge proof technology, the identity authentication system can provide higher security and privacy protection. Users only need to provide zero-knowledge proof to complete identity authentication, which simplifies the verification process and improves verification efficiency. At the same time, all verification information recorded on the blockchain can be tracked and audited safely and efficiently, ensuring the transparency and credibility of the system.

[0106] It should be understood that the embodiments described above are part of the embodiments of the present invention, rather than all of the embodiments. In addition, the technical features in the various embodiments or single embodiments provided by the present invention can be combined with each other arbitrarily to form a feasible technical solution. Such combination is not restricted by the sequence of steps and / or the structural composition mode, but must be based on the ability of ordinary technicians in the field to implement. When the combination of technical solutions is contradictory or cannot be implemented, it should be considered that such combination of technical solutions does not exist and is not within the protection scope required by the present invention.

[0107] It should be understood that the above description of the preferred embodiment is relatively detailed and cannot be regarded as limiting the scope of patent protection of the present invention. Under the enlightenment of the present invention, ordinary technicians in this field can also make substitutions or modifications without departing from the scope of protection of the claims of the present invention, which all fall within the scope of protection of the present invention. The scope of protection requested for the present invention shall be based on the attached claims.

Claims

1. An anonymous identity authentication method based on blockchain and zero-knowledge proof, characterized in that: The following steps are involved: Step 1: The administrator sets the system public parameters and authentication information list, generates the group public key, administrator private key and group member private key; Step 2: Determine whether the prover is registered; If the prover is not registered, the prover verifies with the management node and applies to register as a group member; If the certifier has been registered, execute step 4 below; Step 3: The management node verifies the prover based on the authentication information list and issues private keys to group members; Step 4: The prover generates a verification request based on the group member's public key and the obtained group member's private key, and sends the verification request to the verifier; Step 5: The verifier records the request content and sends the challenge value c to the prover; Step 6: The prover calculates the corresponding knowledge signature σ based on the challenge value c and sends the knowledge signature σ to the verifier; Step 7: The verifier performs verification based on the verification request and the knowledge signature σ; Step 8: The verifier submits the verification information including time, verifier information, and knowledge signature σ to the blockchain; Step 9: After reaching consensus on the verification information, the blockchain will send the transaction number and block number of the verification information to the verifier; Step 10: The verifier sends the transaction number to the management node for the management node to supervise and track the prover's verification.

2. The anonymous identity authentication method based on blockchain and zero-knowledge proof according to claim 1 is characterized in that: The specific implementation of step 1 includes the following sub-steps: Step 1.1: The administrator sets the system common parameters G1, G2, ψ, g1, g2, and e; where G1 and G2 are multiplicative cyclic groups of prime order P; ψ is a computable isomorphism from G2 to G1, and ψ(g2) = g1; g1 and g2 are generators of G1 and G2 respectively; e is a computable mapping, e: G1×G2→G T , and satisfies bilinearity and non-degenerate properties, → indicates that the function maps the input of the left domain to the output of the right domain; Wherein, the bilinearity satisfies for all u∈G1, v∈G2 and a, b∈Z, e(u a ,v b )=e(u,v) ab , Z is an integer; the non-degeneracy satisfies e(g1,g2)≠1; Step 1.2: Enter the number of group members n and generate a key based on the system public parameters; Randomly select h, ξ1, ξ2, u and v to satisfy And meet in represents a set of integers in the range 1 to p. Represents the identity element 1 of group G1, ← represents assignment; random selection And set Get the group public key gpk = (g1, g2, h, u, v, w) and the group administrator private key gmsk = (ξ1, ξ2); Step 1.3: Generate group member private key pairs based on system public parameters; Through γ, a private key pair gsk[i]=(A i ,x i ), where x i Randomly select and satisfy Step 1.4: The administrator sets up the authentication information list.

3. The anonymous identity authentication method based on blockchain and zero-knowledge proof according to claim 2 is characterized in that: The specific implementation of step 3 includes the following sub-steps: Step 3.1: The management node compares the authentication information submitted by the prover with the authentication information list provided by the administrator; Step 3.2: After the management node performs the comparison, if the comparison result is consistent, the prover will issue the private key gsk[i]=(A i ,x i ) and establishes an association between number i and the prover in the database.

4. The anonymous identity authentication method based on blockchain and zero-knowledge proof according to claim 2 is characterized in that: The specific implementation of step 4 includes the following sub-steps: Step 4.1: Random Selection Calculate T1←u α 、T2←v β 、T3←Ah α+β ;in, Represents a set of integers ranging from 0 to p; Step 4.2: Calculate two auxiliary values ​​δ1←xα, δ2←xβ; where x represents the private key of group member i obtained by the prover gsk[i]=(A i ,x i ) i ; Step 4.3: Select blind value And calculate Step 4.4: The prover generates M∈{0,1} * ; where {0,1} * Represents a binary sequence; Step 4.5: The prover sends (M, T1, T2, T3, R1, R2, R3, R4, R5) as a verification request to the verifier.

5. The anonymous identity authentication method based on blockchain and zero-knowledge proof according to claim 2, characterized in that: In step 5, the verifier records the verification request received and generates a challenge value The challenge value c is associated with the verification request, and the challenge value c is returned to the prover; wherein, represents a set of integers ranging from 0 to p. Indicates from is randomly selected and assigned to c.

6. The anonymous identity authentication method based on blockchain and zero-knowledge proof according to claim 4, characterized in that: In step 6, the prover calculates s α =r α +cα,s β =r β +cβ,s x =r x +cx, The prover thus obtains the knowledge signature 7. The anonymous identity authentication method based on blockchain and zero-knowledge proof according to claim 6 is characterized in that: The specific implementation of step 7 includes the following sub-steps: Step 7.1: Based on the knowledge signature σ, the verification request and the system public parameters, calculate Step 7.2: Verification If the calculated value is equal to c, the verification passes, otherwise it fails.

8. An anonymous identity authentication system based on blockchain and zero-knowledge proof, characterized in that: include: one or more processors; A storage device for storing one or more programs, which, when executed by the one or more processors, enables the one or more processors to implement the anonymous identity authentication method based on blockchain and zero-knowledge proof as described in any one of claims 1 to 7.

9. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, an anonymous identity authentication method based on blockchain and zero-knowledge proof is implemented as described in any one of claims 1 to 7.

Citation Information

Patent Citations

  • Information privacy protection and supervision method and system for logistics block chain

    CN111211907A

  • Certificateless multi-factor zero-knowledge certification authentication method based on elliptic curve

    CN116170145A

  • Anonymous identity authentication method, system and product based on group signature and block chain

    CN118764212A

  • Trusted identity solution using blockchain

    US20200076602A1

Cited By

  • Anonymous consensus archive data entry method and device, equipment and medium

    CN120030595A

  • Mobile network test method and device under user anonymity and medium

    CN121310120A