A blockchain-based identity privacy protection and traceable distributed supervision method, system and readable storage medium
By jointly computing the blockchain committee nodes and proxy nodes, a public-private key pair for the blockchain committee is generated. Combined with the time-sensitive group private key and revocation auxiliary information, the anonymity issues of blockchain user identity privacy protection and supervision are solved, thereby improving decentralization, security and flexibility.
Patent Information
- Application Number
- CN202311835033.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-28
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2043-12-28
AI Technical Summary
Existing blockchain technologies suffer from problems in user identity privacy protection and supervision, such as the proliferation of private data due to anonymity and the inability to identify malicious users. Furthermore, existing solutions rely on trusted centers or have low verification efficiency.
By employing joint computation by blockchain committee nodes and proxy nodes, a public-private key pair for the blockchain committee is generated. Anonymous signing and supervision of user identity are achieved through time-sensitive group private keys and revocation auxiliary information. Basic parameters are generated by combining bilinear pairs and hash parameters to perform identity binding and revocation, thereby reducing communication complexity.
It achieves decentralized identity management, improves user identity security and system flexibility, reduces communication complexity, and addresses network dynamics and malicious attacks by periodically updating private key fragments.
Smart Images

Figure CN117792607B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of blockchain user identity monitoring technology, specifically to a distributed monitoring method, system, and readable storage medium for identity privacy protection and traceability on a blockchain. Background Technology
[0002] In recent years, blockchain technology has been widely used in fields such as digital currency, finance, evidence storage, and traceability. If we want to build an efficient, stable, and iterative foundation for the underlying order of the digital world, blockchain technology will be a good solution, and it will become the "new infrastructure" urgently needed to build the digital world.
[0003] However, blockchain technology also faces some problems and challenges. Because blockchain uses a public ledger and a multi-party confirmation transaction model, it poses a significant challenge to user privacy. To protect the privacy of user transaction data on the blockchain, existing blockchain technologies offer various privacy protection schemes, mainly including the following two aspects: 1. Completely confidential user identity: Only the sender and receiver of the transaction can know each other's identity and specific transaction information. However, complete anonymity can lead to a proliferation of private data, resulting in too much malicious data on the chain, and the system cannot identify malicious users and hold them accountable; 2. Schemes that manage user identity: Only regulators can know the user's identity and their on-chain data, while for other ordinary users, the on-chain transaction data remains anonymous.
[0004] Existing research focuses on user authentication and privacy protection in blockchain technology. To achieve better anonymity, Zerocoin (Sasson EB, Chiesa A, Garman C, et al. Zerocash: Decentralized anonymous payments from bitcoin[C] / / 2014 IEEE symposium on security and privacy. IEEE, 2014: 459-474.) provides stronger privacy protection by introducing commitment Merkle trees, zero-knowledge proofs, and cryptographic techniques. However, while its zk-SNARKs algorithm is relatively efficient for verification, the proof generation process is slow, resulting in low efficiency during transaction operations. Furthermore, this scheme cannot effectively monitor user identity. CryptoNote employs linkable ring signatures to conceal the sender's identity (Ruffing T, Moreno-Sanchez P, Kate A. P2P mixing and unlinkable bitcoin transactions[J]. Cryptology ePrint Archive, 2016.). Because ring signatures offer unconditional anonymity, even if an attacker obtains a member's private key, they cannot verify which member in the ring signed the transaction, thus hindering oversight. Building upon this, Monero (Ruffing T, Moreno-Sanchez P. Valueshuffle: Mixing confidential transactions for comprehensive transaction privacy in bitcoin[C] / / International Conference on Financial Cryptography and Data Security. Springer, Cham, 2017: 133-154.) also conceals the transaction amount. While this ring signature-based privacy scheme effectively hides the signer's identity, it still fails to address the issue of user identity oversight. Tian Haibo et al. (Tian Haibo, Lin Huizhi, Luo Peiran, et al. A regulatory scheme for user privacy protection of digital currency [J]. Journal of Xi'an University of Electronic Science and Technology, 2020, 47(5): 40-47.) improved CryptoNote using group signature and zero-knowledge proof technology to achieve regulation of Monero. However, this scheme relies on a trusted third party and cannot prevent malicious behavior by regulators.Keita et al. (Group Signatures with Time-bound Keys Revisited: A New Model and an Efficient Construction) departed from the blockchain environment and achieved distributed joint issuance and disclosure of identities by performing group signatures on users' public keys and calculating the results of erroneous signatures. They also bound users to tree nodes, decoupling user identities from signature data. Furthermore, this scheme introduced a novel feature—identity expiration settings. In existing scenarios, each user's identity has a time limit; therefore, adding an identity expiration setting can effectively reduce redundant storage in system identity management. However, this scheme relies on a trusted center, with administrator nodes issuing user identities. If the administrator acts maliciously, it could leak users' private data and increase the risk of the administrator node being compromised. Summary of the Invention
[0005] To overcome the shortcomings of the prior art, the present invention aims to provide a distributed supervision method, system, and readable storage medium for identity privacy protection and traceability on a blockchain. Based on a blockchain-based structure of blockchain committee nodes, proxy nodes, and users, the blockchain committee nodes are selected from the normal blockchain nodes and represent all blockchain nodes in exercising the responsibilities of issuing, revealing, and revoking user identities. The proxy nodes are single nodes, which can be selected from all blockchain nodes or designated as such; their main responsibility is to receive messages from other nodes, verify and aggregate the messages, and finally forward the aggregated messages. Users are entities independent of the blockchain. The blockchain committee nodes and proxy nodes jointly calculate and generate a public-private key pair for the blockchain committee, enabling the issuance, revocation, signing, verification, and disclosure of user identities. This approach balances privacy protection and supervision, while also possessing backward non-linkability.
[0006] To achieve the above objectives, the technical solution adopted by the present invention is as follows: A distributed oversight method for protecting identity privacy and ensuring traceability on a blockchain includes the following steps: Step 1: Parameter initialization, generating the basic parameters needed in subsequent protocols: bilinear pairing parameters, hash parameters, binary tree parameters, and adding them to the chain; Step 2: Using the basic parameters generated in Step 1, generate a public-private key pair for the blockchain committee through joint calculation by the blockchain committee nodes and the proxy nodes. Then, upload the public key of the blockchain committee to the blockchain, and store the private key of the blockchain committee in a distributed manner by each blockchain committee node. Step 3: The user submits an application to the blockchain committee node, requesting an identity key. The blockchain committee node responds to the user's application. When a preset number of blockchain committee nodes agree to the user's joining, the blockchain committee node uses the blockchain committee private key stored in step 2 to calculate and generate a group private key with a time limit for the user, and binds the identity. At the same time, the blockchain committee node keeps a ciphertext of the user's private key locally. Step 4: The blockchain committee nodes and the proxy nodes jointly use the blockchain committee private key generated in Step 2 to jointly calculate the time and generate revocation assistance information bound to the time. Step 5: Use the group private key generated in Step 3 and the revocation assistance information bound in Step 4 to complete the anonymous signature; Step 6: Verify the validity of the anonymous signature completed in Step 5 through the blockchain committee nodes and proxy nodes. If the anonymous signature is valid, upload it to the blockchain. If the anonymous signature is invalid, proceed to Step 7. Step 7: The predetermined number of blockchain committee nodes in Step 3 jointly use the blockchain committee private key generated in Step 2 to calculate and reveal the identity of the user who verified the invalid anonymous signature in Step 6, and add this user identity to the revocation list, so that the anonymous signature of this user will no longer be valid.
[0007] Step 1 specifically includes the following steps: Step 1.1: Select bilinear pairing parameters for the proxy node. ,in, They are respectively The generator, e is arrive The mapping, for Random group elements in; Step 1.2: The proxy node selects a hash algorithm and generates hash parameters. ; Step 1.3: The proxy node generates a full binary tree, generates binary tree parameters BT, binds each leaf node to time in ascending order from left to right, and binds each node to a random number. Step 1.4: The proxy node will use the basic parameters generated in steps 1.1 to 1.3: Send to all blockchain committee nodes; Step 1.5: The blockchain committee node receives the data sent in step 1.4. Then, the CL encryption / decryption public / private key pair is obtained using the CL.KeyGen algorithm. It also provides a zero-knowledge proof of the correctness of the CL encryption / decryption public / private key pair. Send the public key for CL encryption and decryption, and the zero-knowledge proof. To the proxy node; Step 1.6: The proxy node receives the CL encryption / decryption public key and zero-knowledge proof sent in Step 1.5. Next, the public keys and zero-knowledge proofs encrypted and decrypted by the CL of the blockchain committee nodes are compiled. and add to the list of key pairs for blockchain committee nodes. Complete the publication of node information and node sorting, and broadcast the list of blockchain committee node key pairs to all blockchain committee nodes. ; Step 1.7: The blockchain committee node receives the list of blockchain committee node key pairs broadcast in Step 1.6. Then, verify the public key for CL encryption and decryption and the corresponding zero-knowledge proof for each node. And send verification information to all blockchain committee nodes; Step 1.8: When more than half of the verification messages sent in Step 1.7 are incorrect, the blockchain committee node corresponding to that incorrect message is removed from the blockchain node network; when all blockchain committee nodes receive correct verification messages sent in Step 1.7, the list of key pairs of this blockchain committee node is updated. Go to the blockchain.
[0008] Step 2 specifically includes the following steps: Step 2.1: All blockchain committee nodes are running. Generate polynomial values for n corresponding nodes. and the commitment of polynomial coefficients Simultaneously, the n polynomial values are encrypted using the CL encryption algorithm: And perform zero-knowledge proofs on polynomial-valued ciphertext and polynomial-valued commitments: Finally, for use Make a commitment and receive ,right and Perform zero-knowledge proofs: and send The promise of the polynomial constant term coefficients and its zero-knowledge proof are broadcast to the proxy node, simultaneously to all blockchain committee nodes and proxy nodes. ; Step 2.2: The proxy node receives the message sent in Step 2.1. and Then, the correctness of the polynomial coefficient commitment and the polynomial value encrypted ciphertext, as well as the correctness of the encryption format, are verified: , ,confirm and After verifying the correctness, the proxy node aggregates the polynomial-valued encrypted ciphertext. Then aggregate the commitments of the polynomial coefficients: And send the aggregated polynomial value encrypted ciphertext. To the corresponding node Finally, the broadcast polynomial coefficients are committed. To all blockchain committee nodes; Step 2.3: All blockchain committee nodes receive the commitments to the coefficients of the polynomial constant term and their zero-knowledge proofs from Step 2.1. And the polynomial value encryption ciphertext sent by the proxy node in step 2.2 and polynomial coefficient commitment Then, the commitments for the polynomial constant terms broadcast in step 2.1 are aggregated: And verify whether the promise of the polynomial constant term is correct: When correct, after successful verification, the proxy node decrypts the polynomial value encrypted ciphertext. And verify whether the polynomial value is correct: , Once it is determined that the polynomial value of the current blockchain committee node is correct, the data sent in step 2.1 will be processed. Perform aggregation: ,set up The private key for the blockchain committee is obtained by assembling the private key fragments of each blockchain committee node and setting them. Obtain the blockchain committee's public-private key pair by matching the committee's private key with the committee's public key, and store it locally. If the verification fails, the blockchain committee node sends the verification information to other blockchain committee nodes. Step 2.4: Execute steps 2.1-2.3 at regular intervals to complete the timed update of the private key fragments of the blockchain committee nodes.
[0009] Step 3 specifically includes the following steps: Step 3.1: Use the joint exponent inversion algorithm to perform pre-calculation to provide exponent information for generating the user's group private key; Step 3.1.1: All blockchain committee nodes select a random number. And using the blockchain committee public key generated in step 2.3 The random number is encrypted to obtain the first encrypted ciphertext, and then a zero-knowledge proof is performed on it: , Finally, all blockchain committee nodes will transmit the first encrypted ciphertext and its zero-knowledge proof. Send to all blockchain committee nodes; Step 3.1.2: Each blockchain committee node receives the random number encrypted ciphertext and zero-knowledge proof from the other blockchain committee nodes in Step 3.1.1. Then, the content of each blockchain committee node is verified. If the verification of the random number encrypted ciphertext and the zero-knowledge proof passes, the random number encrypted ciphertext is aggregated. , Each blockchain committee node selects a random number and performs a homomorphic operation on the encrypted ciphertext of this random number and the random number from step 3.1.1: , And provide a zero-knowledge proof: Finally, each blockchain committee node sends the aggregated ciphertext, a random number, and a zero-knowledge proof. To other blockchain committee nodes; Step 3.1.3: Each blockchain committee node receives the aggregated ciphertext information, random number, and zero-knowledge proof from step 3.1.2. Then, the messages from other blockchain committee nodes are verified: After each blockchain committee node verifies the aggregated ciphertext from all nodes, it performs a second aggregation on the aggregated ciphertext to obtain the second aggregated ciphertext: Each blockchain committee node uses the key from step 2 to decrypt the second aggregated ciphertext and provides a zero-knowledge proof of the decrypted message to ensure its correctness. , Finally, this decryption message and zero-knowledge proof are sent to other blockchain committee nodes; Step 3.1.4: Each blockchain committee node receives the decrypted ciphertext and its zero-knowledge proof from Step 3.1.3. Then, the decrypted ciphertext information of each node is verified: 0 / 1 Once verification is successful, all decrypted ciphertext information is aggregated to obtain the fully decrypted exponent information with a mask: And store temp[i]= If the verification fails, the blockchain committee node sends the verification information to other blockchain committee nodes. Step 3.2: Based on the index information obtained in Step 3.1, jointly issue user identities, generate group private keys with time limits, bind identities, and simultaneously retain the encrypted user private keys locally; Step 3.2.1: Current user i generates the public / private key pair CL for user CL and provides the corresponding zero-knowledge proof for the key pair: , Then the current user i selects a random number. ,set up And make a commitment to this random number and provide a zero-knowledge proof: Choose a random number ,calculate , , , Finally, the current user i sends a commitment of the user's private key, the CL public key, and the zero-knowledge proof corresponding to each user's private key and CL public key. Give it to the proxy node; Step 3.2.2: Upon receiving the commitment of the user's private key, the CL public key, and the zero-knowledge proof corresponding to each user's private key and CL public key sent by the current user i in step 3.2.1, the proxy node... Next, the correctness of the user's data is verified: , After successful verification, the proxy node assigns a leaf node to the current user i. The leaf node There is a corresponding time, which corresponds to the user's identity expiration date. Based on the expiration time of the proxy node The proxy node uses the CS-TBK scheme to provide the path nodes for the current user i. The proxy node selects a random number for the current user i and calculates the base part of the current user i's group private key: Calculate the base part of the key Finally, the proxy node sends the base part of the current user's group private key and a random number. The commitment to the user's private key, the CL public key, and the zero-knowledge proof corresponding to each user's private key and CL public key generated in step 3.2.1. If the verification fails, the blockchain committee node sends the verification information to other blockchain committee nodes. Step 3.2.3: Each blockchain committee node receives the base part and random number of the current user i group private key sent by the proxy node in step 3.2.2. The commitment to the user's private key, the CL public key, and the zero-knowledge proof corresponding to each user's private key and CL public key generated in step 3.2.1. Next, the user's data is verified for correctness: , After verification, based on plaintext information Query the temp and plaintext information in step 3.1.4. Other bound values and through Calculate the group private key fragment for the current user i, and simultaneously... The group private key fragment is encrypted, and finally each blockchain committee node sends the ciphertext fragment of the user group private key. If the verification fails at the proxy node and other blockchain committee nodes, the blockchain committee node will send the verification information to other blockchain committee nodes. Step 3.2.4: The proxy node receives the ciphertext fragment of the user group's private key sent by the blockchain committee in step 3.2.3. Then, send the user group private key information. To the current user i; Step 3.2.5: The current user i receives the user group private key information sent by the proxy node. Then, the current user i decrypts the encrypted ciphertext of the user group private key fragment by the blockchain committee node, and aggregates the user's group private key fragment private key: , Finally, the user's private key is calculated: ; Step 3.2.6: Each blockchain committee node receives the ciphertext fragment of the user group's private key sent by other blockchain committee nodes in Step 3.2.3. Then, use the key fragments generated in step 2.3. pass The user's private key is calculated to obtain the encrypted information of the encrypted fragment of the user group's private key, and the encrypted information of this encrypted fragment of the user group's private key is sent to the proxy node. Step 3.2.7: After receiving the encrypted information of the ciphertext fragments of the user group private key sent by each blockchain committee node in Step 3.2.6, the proxy node aggregates the encrypted information of the ciphertext fragments of the user group private key to obtain the encrypted information of the ciphertext of the user group private key: And encrypt the private key ciphertext of the user group. Send to the blockchain committee node; Step 3.2.8: Each blockchain committee node receives the encrypted information of the user group private key ciphertext sent by the proxy node in Step 3.2.7. Afterwards, through Encrypted information of the private key ciphertext of this user group Perform partial masking calculations to obtain the half-mask encrypted information of the user group's private key, and finally send the half-mask encrypted information of the user group's private key. To the proxy node; Step 3.2.9: The proxy node receives the user group private key half-mask encrypted information sent by the blockchain committee node in Step 3.2.8. Then, the data is aggregated to completely remove the masking information of the user group's private key, yielding the encrypted information of the user group's private key: And send encrypted information of the aggregated user group private keys. To the blockchain committee node; Step 3.2.10: Each blockchain committee node receives the encrypted information of the user group private key sent by the proxy node in step 3.2.9. Then, store it locally: , .
[0010] Step 4 specifically includes the following steps: Step 4.1: The proxy node obtains the current time t and matches it with the time-bound full binary tree BT obtained in Step 1.3, and runs the CS-TBK algorithm to obtain information about multiple nodes: Select a random number: Finally, send the current time, the obtained node information, and the random number: To the blockchain committee node; Step 4.2: Each blockchain committee node receives the current time sent in Step 4.1, the information from multiple nodes, and the random number: Next, select the number of binary tree nodes and the masked exponent information stored in step 3.1.4: and Perform joint calculations to obtain undo assistance information with a mask. Finally, send a cancellation assist message with a mask. Give it to the proxy node; Step 4.3: The proxy node receives the masked revocation assistance information sent by the blockchain committee node in Step 4.2. Then, select a random number and perform a commitment calculation on the random number: , After completing the commitment calculation, the aggregated revocation assistance information with masks is obtained to get the complete revocation assistance information: Finally passed The revocation assistance information is compiled and sent to the blockchain committee node.
[0011] Step 5 specifically includes the following steps: Step 5.1: User selects a random number: ; Step 5.2: The user uses the basic parameters from Step 1.1, the user group private key obtained in Step 3, and Step 4... Cancellation auxiliary information obtained in and the random number selected in step 5.1 Obtain the following relational parameters: , , , , , , , , ; Step 5.3: The user selects a random number again: ; Step 5.4: The user uses the random number selected in Step 5.3 and the various relational parameters calculated in Step 5.2 to calculate the proof parameters: , , , , , ; Step 5.5: The user uses the relation parameters from Step 5.2 and the proof parameters from Step 5.4 to generate a hash value for a random challenge in a non-interactive zero-knowledge proof: ; Step 5.6: The user computes a non-interactive zero-knowledge proof using the random challenge from Step 5.5: , , , , , , , , , ; Step 5.7: The user organizes the relation parameters from Step 5.2, the random challenge from Step 5.5, and the non-interactive zero-knowledge proof from Step 5.6 to obtain the signature information. And send it to the proxy node.
[0012] Step 6 specifically includes the following steps: Step 6.1: The proxy node receives the signature information sent by the user in step 5.7. Afterwards, through The signature information undergoes format validation. Once the format validation passes, the proxy node performs zero-knowledge proof validation on the user's signature information. After the zero-knowledge proof validation passes, the user's signature information is sent. The proxy node sends verification information (0 / 1) to other blockchain committee nodes. If format verification or zero-knowledge proof verification fails, the proxy node sends verification information to other blockchain committee nodes. The zero-knowledge proof verification includes the following steps: Step 6.1.1: Calculate:
[0013]
[0014] , , , ; Step 6.1.2: Verification: ; Step 6.1.3: Verification: ; Step 6.2: Each blockchain committee node receives the user signature information sent by the proxy node in Step 6.1. After verifying the result as 0 / 1, repeat the verification operation in step 6.1. If the verification passes and is consistent with the verification result of the proxy node, the message is uploaded to the blockchain. If the verification fails and is consistent with the verification result of the proxy node, the message is discarded. If the verification information is inconsistent with the verification information sent by the proxy node in step 6.1, the blockchain committee node sends the verification information to other blockchain committee nodes. If the number of blockchain committee nodes preset in step 3 confirms that the verification information is inconsistent with the verification information of the proxy node in step 6.1, the proxy node is switched.
[0015] Step 7 specifically includes the following steps: Step 7.1: Each blockchain committee node verifies the user's signature information as in Step 6.2. If the verification fails, it calculates the decryption fragment of the group private key in the user's signature information and performs zero-knowledge proof calculations on the decryption fragment. , Finally, the decryption fragments of the user group key and their zero-knowledge proofs are sent. To the proxy node; Step 7.2: The proxy node receives the user group key decryption fragment and its zero-knowledge proof sent by the blockchain committee node in Step 7.1. Next, the correctness of the decryption operation is verified: 0 / 1 After the proxy node is verified, the decryption fragments from each node are aggregated, and the user's private key is calculated: , Finally, the user's group private key is sent to each blockchain committee node; Step 7.3: After receiving the user group private key sent by the proxy node in Step 7.2, each blockchain committee node then... The user's private key is encrypted to obtain encrypted fragments of the user's private key, and simultaneously... A zero-knowledge proof is calculated using the encrypted user's private key to obtain a zero-knowledge proof of the correctness of the encryption operation. Finally, send this encrypted fragment and the zero-knowledge proof of the encryption operation. To the proxy node; Step 7.4: The proxy node receives the cryptographic fragments and zero-knowledge proofs of the cryptographic operations sent by the blockchain committee node in Step 7.3. Then, zero-knowledge proof verification is performed on the encrypted fragments of the user group's private key: 0 / 1 If the verification passes, the received encrypted fragments are aggregated to complete the encryption of the user group's private key: Finally, the encrypted form of the user group's private key. Send to the blockchain committee node; Step 7.5: The blockchain committee node receives the encrypted form of the user group private key sent by the proxy node in step 7.4. Then, query reg[k] in the user's registry to ensure that reg[k] contains C'', and finally obtain the user's specific information k.
[0016] A distributed monitoring system for identity privacy protection and traceability on a blockchain includes the following modules: The system initialization module initializes parameters and generates basic parameters. The blockchain committee key module generates public and private key pairs for the blockchain committee based on the basic parameters generated by the system initialization module, and uploads and stores the public and private key pairs for the blockchain committee on the blockchain. The user identity issuance module generates a group private key for the user based on the blockchain committee private key stored in the blockchain committee key module, and binds the user's identity. At the same time, it saves the encrypted text of the user's private key locally. The revocation module generates time-bound revocation assistance information based on the blockchain committee private key generated by the blockchain committee key module. The signature module uses the group private key generated by the user identity issuance module and the revocation auxiliary information bound to the revocation module to complete the anonymous signature; The verification module checks whether the anonymous signature completed by the signature module is valid. The identity reveal module uses the blockchain committee private key generated by the blockchain committee key module to reveal the identity of the miming signature that is verified as invalid by the verification module, and adds it to the revocation list.
[0017] A readable storage medium storing instructions that, when executed on a computer, cause the computer to perform the aforementioned distributed monitoring method for identity privacy protection and traceability on a blockchain.
[0018] Compared with the prior art, the beneficial effects of the present invention are as follows: 1. This invention achieves decentralized identity management and improves the security of user identity by employing joint computation of all blockchain committee nodes and proxy nodes.
[0019] 2. This invention reveals user identity by using a preset number of blockchain committee nodes. Only a preset number of blockchain committee nodes need to be online, which reduces the number of online blockchain committee nodes and improves the flexibility of the system.
[0020] 3. This invention uses proxy nodes to receive, verify, aggregate, and forward messages, reducing the system's communication complexity from O(n³) to O(n²).
[0021] 4. This invention updates the private key fragments of blockchain committee nodes at regular intervals. While ensuring that the committee key remains unchanged, it updates the private key fragments of each blockchain committee node. This can not only cope with the dynamic nature of the network and complete the node updates, but also cope with the attack behavior caused by malicious attackers breaking through a preset number of blockchain committee nodes due to the long-term immutability of keys, thus increasing the security of the system.
[0022] In summary, this invention improves user identity security, enhances system flexibility and security, and reduces system complexity by employing joint computation of all blockchain committee nodes, revealing user identity through a preset number of blockchain committee nodes, periodically updating private key fragments of blockchain committee nodes, and proxy nodes receiving, verifying, aggregating, and forwarding messages. Attached Figure Description
[0023] Figure 1 This is a flowchart of the method of the present invention. Detailed Implementation
[0024] The present invention will now be described in detail with reference to the accompanying drawings.
[0025] See Figure 1 A distributed regulatory method for identity privacy protection and traceability on a blockchain includes the following steps: Step 1: Parameter initialization. Generate the basic parameters needed in the subsequent protocol: bilinear pairing parameters, hash parameters, and binary tree parameters, and put them on the blockchain. These parameters do not include any privacy information. In practical applications, they can be generated by proxy nodes and put directly on the blockchain. Step 2: Using the basic parameters generated in Step 1, generate a public-private key pair for the blockchain committee through joint calculation by the blockchain committee nodes and the proxy nodes. Then, upload the public key of the blockchain committee to the blockchain, and store the private key of the blockchain committee in a distributed manner by each blockchain committee node. Step 3: The user submits an application to the blockchain committee node, requesting an identity key. The blockchain committee node responds to the user's application. When a preset number of blockchain committee nodes agree to the user's joining, the blockchain committee node uses the blockchain committee private key stored in step 2 to calculate and generate a group private key with a time limit for the user, and binds the identity. At the same time, the blockchain committee node keeps a ciphertext of the user's private key locally for identity tracking. Step 4: The blockchain committee nodes and the proxy nodes jointly use the blockchain committee private key generated in Step 2 to jointly calculate the time and generate revocation assistance information bound to the time. Step 5: Use the group private key generated in Step 3 and the revocation assistance information bound in Step 4 to complete the anonymous signature and protect the user's identity and privacy; Step 6: Verify the validity of the anonymous signature completed in Step 5 through the blockchain committee nodes and proxy nodes. If the anonymous signature is valid, upload it to the blockchain. If the anonymous signature is invalid, proceed to Step 7. Step 7: The predetermined number of blockchain committee nodes in Step 3 jointly use the blockchain committee private key generated in Step 2 to calculate and reveal the identity of the user who verified the invalid anonymous signature in Step 6, and add this user identity to the revocation list, so that the anonymous signature of this user will no longer be valid.
[0026] Step 1 specifically includes the following steps: Step 1.1: Select bilinear pairing parameters for the proxy node. ,in, They are respectively The generator, e is arrive The mapping, for Random group elements in; Step 1.2: The proxy node selects a hash algorithm and generates hash parameters. ; Step 1.3: The proxy node generates a full binary tree, generates binary tree parameters BT, binds each leaf node to time in ascending order from left to right, and binds each node to a random number. Step 1.4: The proxy node will generate the data from steps 1.1 to 1.3. Send to all blockchain committee nodes; Step 1.5: The blockchain committee node receives the data sent in step 1.4. Then, the CL encryption / decryption public / private key pair is obtained using the CL.KeyGen algorithm. It also provides a zero-knowledge proof of the correctness of the CL encryption / decryption public / private key pair. Send the public key for CL encryption and decryption, and the zero-knowledge proof. To the proxy node; Step 1.6: The proxy node receives the CL encryption / decryption public key and zero-knowledge proof sent in Step 1.5. Next, the public keys and zero-knowledge proofs encrypted and decrypted by the CL of the blockchain committee nodes are compiled. and add to the list of key pairs for blockchain committee nodes. Complete the publication of node information and node sorting, and broadcast the list of blockchain committee node key pairs to all blockchain committee nodes. ; Step 1.7: The blockchain committee node receives the list of blockchain committee node key pairs broadcast in Step 1.6. Then, verify the public key for CL encryption and decryption and the corresponding zero-knowledge proof for each node. And send verification information to all blockchain committee nodes; Step 1.8: When more than half of the verification messages sent in Step 1.7 are incorrect, the blockchain committee node corresponding to that incorrect message is removed from the blockchain node network; when all blockchain committee nodes receive correct verification messages sent in Step 1.7, the list of key pairs of this blockchain committee node is updated. Go to the blockchain.
[0027] Step 2 is the key generation stage (KeyGen). The key generation protocol specifies the number of blockchain committee nodes. The malicious node threshold t is reduced from the nn threshold to the tn threshold during the key generation phase, specifically including the following steps: Step 2.1: All blockchain committee nodes are running. Generate polynomial values for n corresponding nodes. and the commitment of polynomial coefficients Simultaneously, the n polynomial values are encrypted using the CL encryption algorithm: And perform zero-knowledge proofs on polynomial-valued ciphertext and polynomial-valued commitments: Finally, for use Make a commitment and receive ,right and Perform zero-knowledge proofs: and send The promise of the polynomial constant term coefficients and its zero-knowledge proof are broadcast to the proxy node, simultaneously to all blockchain committee nodes and proxy nodes. All blockchain committee nodes run verifiable secret sharing, generate n polynomial values for the number of full committee nodes, encrypt the polynomial values using CL, and provide corresponding zero-knowledge proofs to ensure that the polynomial values are correct. The CL ciphertext of the polynomial values is then sent to the proxy nodes, and after making a commitment to the secret value, the commitment to this secret value is broadcast to each committee node. The subsequent aggregated polynomial values received can be verified through the commitment to this secret value. Step 2.2: The proxy node receives the message sent in Step 2.1. and Then, the correctness of the polynomial coefficient commitment and the polynomial value encrypted ciphertext, as well as the correctness of the encryption format, are verified: , ,confirm and After verifying the correctness, the proxy node aggregates the polynomial-valued encrypted ciphertext. Then aggregate the commitments of the polynomial coefficients: And send the aggregated polynomial value encrypted ciphertext. To the corresponding node Finally, the broadcast polynomial coefficients are committed. Upon reaching all blockchain committee nodes, the proxy node performs zero-knowledge proof verification on the CL ciphertext of the polynomial value from each node to ensure that the ciphertext from the same node is encrypted from the corresponding polynomial value. Furthermore, it aggregates the polynomial values and polynomial coefficient commitments sent to the same node, aggregating n polynomial values into 1 to reduce communication volume. The aggregated polynomial value is then sent to the corresponding node, and the aggregated polynomial coefficient commitment is broadcast. Step 2.3: All blockchain committee nodes receive the commitments to the coefficients of the polynomial constant term and their zero-knowledge proofs from Step 2.1. And the polynomial value encryption ciphertext sent by the proxy node in step 2.2 and polynomial coefficient commitment Then, the commitments for the polynomial constant terms broadcast in step 2.1 are aggregated: And verify whether the promise of the polynomial constant term is correct: When correct, it proves that the proxy node did not perform a deletion operation on the polynomial. After successful verification, the proxy node decrypts the encrypted ciphertext of the polynomial value. And verify whether the polynomial value is correct: , Once it is determined that the polynomial value of the current blockchain committee node is correct, the data sent in step 2.1 will be processed. Perform aggregation: ,set up The private key for the blockchain committee is obtained by assembling the private key fragments of each blockchain committee node and setting them. Obtain the blockchain committee's public-private key pair by matching the committee's private key with the committee's public key, and store it locally. If the result is incorrect, the verification fails. The blockchain committee node sends the verification information to other blockchain committee nodes. After receiving the aggregated polynomial value and polynomial commitment, all blockchain committee nodes first compare the polynomial commitment with the polynomial commitment broadcast in the first step. If they are correct, it ensures that the proxy node has not arbitrarily deleted or forged the polynomial. Then, the polynomial value is decrypted, and the decrypted polynomial value is committed and compared with the value calculated by the polynomial coefficient commitment. If they are correct, it ensures that the proxy has not forged malicious information throughout the process. Step 2.4: Execute steps 2.1-2.3 periodically to update the private key fragments of the blockchain committee nodes. During the blockchain key generation phase, this operation needs to be performed four times in parallel to generate the corresponding four sets of keys. ) and corresponding commitments It is jointly held by all committee nodes, with each node holding a sub-secret ( ) and secret promise .
[0028] Step 3, which is used to issue a key to the user, mainly consists of two parts: First, pre-computation is performed: the exponent fragment of the user key is calculated by joint exponent inversion, and the complete exponent fragment is stored on the chain using the CL encryption scheme. Then, the user key is calculated using the pre-computed exponent ciphertext, specifically including the following steps: Step 3.1: Pre-computation is performed using the exponential joint inversion algorithm to provide exponential information for generating the user's group private key. This algorithm is used to generate components of the user key and expiration information. It is performed automatically after system initialization and can perform extensive pre-computation to prepare for the issuance of each user's private key and the generation of expiration information. This algorithm mainly generates... , where r is the key The mask, using a one-time pad method, ensures the security of the key, and this fragment information is subsequently used for user key issuance. Step 3.1.1: All blockchain committee nodes select a random number. And using the blockchain committee public key generated in step 2.3 The random number is encrypted to obtain the first encrypted ciphertext, and then a zero-knowledge proof is performed on it: , Finally, all blockchain committee nodes will transmit the first encrypted ciphertext and its zero-knowledge proof. The message is sent to all blockchain committee nodes. All blockchain committee nodes select a random number and encrypt the random number using the system key generated in the KeyGen phase. In this way, each node has a specific encryption public key, and the plaintext corresponding to the ciphertext can be decrypted by a threshold number of nodes. In order to ensure the correctness of the message, each node needs to perform zero-knowledge proof calculation on the ciphertext to ensure that the sender of the message is the holder of the message, and that the encryption of the random number conforms to the encryption method, that is, encryption using the same parameters and encryption using the same public key. Finally, this ciphertext of the random number is sent to other nodes. Step 3.1.2: Each blockchain committee node receives the random number encrypted ciphertext and zero-knowledge proof from the other blockchain committee nodes in Step 3.1.1. Then, the content of each blockchain committee node is verified. If the verification of the random number encrypted ciphertext and the zero-knowledge proof passes, the random number encrypted ciphertext is aggregated. , Each blockchain committee node selects a random number and performs a homomorphic operation on the encrypted ciphertext of this random number and the random number from step 3.1.1: , And provide a zero-knowledge proof: Finally, each blockchain committee node sends the aggregated ciphertext, a random number, and a zero-knowledge proof. The process proceeds to other blockchain committee nodes. Each blockchain committee node performs zero-knowledge proof verification on the random number ciphertext from other nodes. After successful verification, all random number ciphertexts are aggregated using homomorphic computation of the CL encryption scheme to obtain a joint random number r. Each node then selects a random number and adds it to its own key fragment to obtain the final random number r. This plaintext data is then homomorphically multiplied with the ciphertext data of r, and each node obtains the final output. A ciphertext fragment To ensure that each node performs the correct operation, the zero-knowledge proof needs to be calculated again to ensure the correctness of the fragment after calculation. Finally, the fragment information and the zero-knowledge proof are sent to all nodes. Step 3.1.3: Each blockchain committee node receives the aggregated ciphertext information, random number, and zero-knowledge proof from step 3.1.2. Then, the messages from other blockchain committee nodes are verified: After each blockchain committee node verifies the aggregated ciphertext from all nodes, it performs a second aggregation on the aggregated ciphertext to obtain the second aggregated ciphertext: Each blockchain committee node uses the key from step 2 to decrypt the second aggregated ciphertext and provides a zero-knowledge proof of the decrypted message to ensure its correctness. , Finally, this decryption message and zero-knowledge proof are sent to other blockchain committee nodes. Each blockchain committee node verifies the fragmented information from other nodes using a zero-knowledge proof and aggregates the messages to obtain the decryption result. Each node needs to decrypt the encrypted information using its own key fragment. To ensure the correctness of each node's decryption operation, each node needs to provide a zero-knowledge proof of the decryption and send this decryption fragment to other committee nodes. Through aggregation, the final message decryption is completed, yielding the encrypted message. Plaintext information; Step 3.1.4: Each blockchain committee node receives the decrypted ciphertext and its zero-knowledge proof from Step 3.1.3. Then, the decrypted ciphertext information of each node is verified: 0 / 1 Once verification is successful, all decrypted ciphertext information is aggregated to obtain the fully decrypted exponent information with a mask: And store temp[i]= If the verification fails, the blockchain committee node sends verification information to other blockchain committee nodes. Each blockchain committee node verifies the decryption fragment of each node. If there are no error messages, all decryption fragments are aggregated to obtain the final index information. ; Step 3.2: Based on the index information obtained in Step 3.1, jointly issue user identities, generate group private keys with time limits, bind identities, and simultaneously retain the encrypted user private keys locally; Step 3.2.1: Current user i generates the public / private key pair CL for user CL and provides the corresponding zero-knowledge proof for the key pair: , Then the current user i selects a random number. ,set up And it commits to this random number and provides a zero-knowledge proof to guarantee the correctness of the current user i's key: Choose a random number ,calculate , , , Finally, the current user i sends a commitment of the user's private key, the CL public key, and the zero-knowledge proof corresponding to each user's private key and CL public key. For the proxy node, the current user i selects a random number or a specified number as its user key. In order to ensure that the user's key information is correct and not forged, a zero-knowledge proof is required for this key. In order to prevent the user's group private key from being leaked in subsequent algorithms, a CL encryption key pair needs to be generated to encrypt the user's private key fragments and provide the corresponding zero-knowledge proof. Finally, the user's basic information and the zero-knowledge proof of the user key are packaged and sent to the proxy node. Step 3.2.2: Upon receiving the commitment of the user's private key, the CL public key, and the zero-knowledge proof corresponding to each user's private key and CL public key sent by the current user i in step 3.2.1, the proxy node... Next, the correctness of the user's data is verified: , After successful verification, the proxy node assigns a leaf node to the current user i. The leaf node There is a corresponding time, which corresponds to the user's identity expiration date. Based on the expiration time of the proxy node The proxy node uses the CS-TBK scheme to provide the path nodes for the current user i. The proxy node selects a random number for the current user i and calculates the base part of the current user i's group private key: Calculate the base part of the key Finally, the proxy node sends the base part of the current user's group private key and a random number. The commitment to the user's private key, the CL public key, and the zero-knowledge proof corresponding to each user's private key and CL public key generated in step 3.2.1. If the verification fails, the blockchain committee node sends the verification information to other blockchain committee nodes. After receiving the message from the user, the proxy node verifies the user's data. If the verification fails, the user's erroneous behavior is broadcast and the user is blacklisted on the chain. If the verification passes, an expiration time is assigned to the user. This expiration time is bound to the binary tree leaf node. Once the user is assigned to a binary tree leaf node, all blockchain nodes calculate the user's group key (the number of path lengths) for each path node in the binary tree. They select a random number for the length of the binary tree leaf node to the root node, calculate the base part of the key, and specify the generation of the key exponent part in the exponent inverse operation algorithm. The exponent part and base part of the user's group key, along with the user's specific information, are sent to the committee node. Step 3.2.3: Each blockchain committee node receives the base part and random number of the current user i group private key sent by the proxy node in step 3.2.2. The commitment to the user's private key, the CL public key, and the zero-knowledge proof corresponding to each user's private key and CL public key generated in step 3.2.1. Next, the user's data is verified for correctness: , After verification, based on plaintext information Query the temp and plaintext information in step 3.1.4. Other bound values and through Calculate the group private key fragment for the current user i, and simultaneously... The group private key fragment is encrypted, and finally each blockchain committee node sends the ciphertext fragment of the user group private key. If the verification fails at the proxy node and other blockchain committee nodes, the blockchain committee node sends verification information to other blockchain committee nodes. After receiving the user group key information and the user's basic information from the proxy node, each blockchain committee node verifies the user's basic information, queries the exponent part of the user group key to find the fragment stored in its own database, calculates the user's key to obtain the user's group key fragment, and then encrypts the group key fragment using the user's CL public key to obtain the group key fragment ciphertext. Each node sends this group key fragment ciphertext to the proxy node. Step 3.2.4: The proxy node receives the ciphertext fragment of the user group's private key sent by the blockchain committee in step 3.2.3. Then, send the user group private key information. Upon reaching the current user i, the agent node organizes the key fragments to obtain a list of key fragments and sends this list to the user; Step 3.2.5: The current user i receives the user group private key information sent by the proxy node. Then, the current user i decrypts the encrypted ciphertext of the user group private key fragment by the blockchain committee node, and aggregates the user's group private key fragment private key: , Finally, the user's private key is calculated: The current user i uses the CL private key to decrypt the key fragments, then aggregates the key fragments issued to the user by each node, removes the mask of the node key, and thus obtains the final user group private key; Step 3.2.6: Each blockchain committee node receives the ciphertext fragment of the user group's private key sent by other blockchain committee nodes in Step 3.2.3. Then, use the key fragments generated in step 2.3. pass The user's private key is calculated to obtain the encrypted information of the encrypted fragment of the user group's private key. This encrypted information is then sent to the proxy node. Each blockchain committee node needs to store its key locally so that users with incorrect signatures can be traced later. However, if it is stored directly in plaintext, it will lead to the leakage of the user's key, which is unacceptable to the user. Therefore, the user's private key needs to be stored in encrypted form. Currently, it is stored as fragments on each node. Therefore, the user's key needs to be encrypted first using a threshold key, and then the node's private key mask needs to be removed to complete the final encrypted storage of the key fragments. Step 3.2.7: After receiving the encrypted information of the ciphertext fragments of the user group private key sent by each blockchain committee node in Step 3.2.6, the proxy node aggregates the encrypted information of the ciphertext fragments of the user group private key to obtain the encrypted information of the ciphertext of the user group private key: And encrypt the private key ciphertext of the user group. The encrypted fragments are sent to the blockchain committee nodes. The proxy nodes aggregate the encrypted fragments from all nodes, complete the calculation of the encrypted ciphertext with the user's masked key, and send this ciphertext to all committee nodes to facilitate the committee nodes in the next step of mask removal. Step 3.2.8: Each blockchain committee node receives the encrypted information of the user group private key ciphertext sent by the proxy node in Step 3.2.7. Afterwards, through Encrypted information of the private key ciphertext of this user group Perform partial masking calculations to obtain the half-mask encrypted information of the user group's private key, and finally send the half-mask encrypted information of the user group's private key. To the proxy node, each blockchain committee node removes the mask fragments from the aggregated ciphertext to obtain the encrypted fragment of the user group key, and then sends this fragment to the proxy node; Step 3.2.9: The proxy node receives the user group private key half-mask encrypted information sent by the blockchain committee node in Step 3.2.8. Then, the data is aggregated to completely remove the masking information of the user group's private key, yielding the encrypted information of the user group's private key: And send encrypted information of the aggregated user group private keys. After the blockchain committee node and the proxy node aggregate, the masking of the user group key fragments is completed. This state is also the result of the user group private key being encrypted using the node threshold public key. Each node will store the ciphertext of this key locally. If it is necessary to reveal the user's identity later, a specific key fragment can be used for encryption calculation and compared with the locally stored key ciphertext to track user information. Step 3.2.10: Each blockchain committee node receives the encrypted information of the user group private key sent by the proxy node in step 3.2.9. Then, store it locally: , .
[0029] Step 4 is the Revoke phase, used to generate the user's expiration auxiliary information. This phase allows access to information used for subsequent signatures by the user. As long as the user possesses the signature key from the same binary tree node as in the Revoke and Registration phases, it ensures the user's information has not expired. Furthermore, this information effectively reduces the user's need for storing time precision and eliminates the connection between the user and the expiration time, thus achieving an irreversible traceability effect (i.e., even if the user's private key information is revealed, it will not reveal that the user's previous signature was valid). Specifically, it includes the following steps: Step 4.1: The proxy node obtains the current time t and matches it with the time-bound full binary tree BT obtained in Step 1.3, and runs the CS-TBK algorithm to obtain information about multiple nodes: Select a random number: Finally, send the current time, the obtained node information, and the random number: Upon reaching the blockchain committee node, the proxy node uses the CS-TBK algorithm to select the highest root of all nodes after the current time in the binary tree. That is, as long as it is a leaf node of the root, its time must be greater than the current time. Therefore, possessing this root node indicates that the user information has not expired. Thus, it is necessary to sign the root node selected in the CS-TBK algorithm and send the selected root node and a random number to the committee node. Step 4.2: Each blockchain committee node receives the current time sent in Step 4.1, the information from multiple nodes, and the random number: Next, select the number of binary tree nodes and the masked exponent information stored in step 3.1.4: and Perform joint calculations to obtain undo assistance information with a mask. Finally, send a cancellation assist message with a mask. After receiving the random number and the root node of the binary tree from the proxy node, each blockchain committee node extracts the number of joint triples obtained from the joint exponent inversion algorithm pre-computed in step 3.1. And each node gets its own The signature fragment is calculated and sent to the proxy node. Since this expired auxiliary information is public information, it does not need to be encrypted like in the user identity issuance stage. Step 4.3: The proxy node receives the masked revocation assistance information sent by the blockchain committee node in Step 4.2. Then, select a random number and perform a commitment calculation on the random number: , After completing the commitment calculation, the aggregated revocation assistance information with masks is obtained to get the complete revocation assistance information: Finally passed The revocation auxiliary information is organized and sent to the blockchain committee node. The proxy node aggregates the node key fragments to obtain the final root node signature, which is the expired auxiliary information. This expired auxiliary information is then made public to the entire network.
[0030] Step 5 specifically includes the following steps: Step 5.1: User selects a random number: ; Step 5.2: The user uses the basic parameters from Step 1.1, the user group private key obtained in Step 3, and Step 4... Cancellation auxiliary information obtained in and the random number selected in step 5.1 Obtain the following relational parameters: , , , , , , , , ; Step 5.3: The user selects a random number again: ; Step 5.4: The user uses the random number selected in Step 5.3 and the various relational parameters calculated in Step 5.2 to calculate the proof parameters: , , , , , ; Step 5.5: The user uses the relation parameters from Step 5.2 and the proof parameters from Step 5.4 to generate a hash value for a random challenge in a non-interactive zero-knowledge proof: ; Step 5.6: The user computes a non-interactive zero-knowledge proof using the random challenge from Step 5.5: , , , , , , , , , ; Step 5.7: The user organizes the relation parameters from Step 5.2, the random challenge from Step 5.5, and the non-interactive zero-knowledge proof from Step 5.6 to obtain the signature information. And send it to the proxy node; The main guarantees are that the key used in the signature is the key issued to the user during the identity issuance phase, the node signature information used is the signature of several root nodes generated during the revocation phase, the root node is one of the results of running the CS-TBK algorithm at the current time, the user's identity group key and the signature of the root node are signed by the same node, the user has the user's private key, and all signature steps are performed according to the designed steps without any violations.
[0031] Step 6 specifically includes the following steps: Step 6.1: The proxy node receives the signature information sent by the user in step 5.7. Afterwards, through The signature information undergoes format validation. Once the format validation passes, the proxy node performs zero-knowledge proof validation on the user's signature information. After the zero-knowledge proof validation passes, the user's signature information is sent. The proxy node sends verification information (0 / 1) to other blockchain committee nodes. If format verification or zero-knowledge proof verification fails, the proxy node sends verification information to other blockchain committee nodes. The zero-knowledge proof verification includes the following steps: Step 6.1.1: Calculate:
[0032]
[0033] , , , ; Step 6.1.2: Verification: ; Step 6.1.3: Verification: ; Step 6.2: Each blockchain committee node receives the user signature information sent by the proxy node in Step 6.1. After verifying the result as 0 / 1, repeat the verification operation in step 6.1. If the verification passes and is consistent with the verification result of the proxy node, the message is uploaded to the blockchain. If the verification fails and is consistent with the verification result of the proxy node, the message is discarded. If the verification information is inconsistent with the verification information sent by the proxy node in step 6.1, the blockchain committee node sends the verification information to other blockchain committee nodes. If the number of blockchain committee nodes preset in step 3 confirms that the verification information is inconsistent with the verification information of the proxy node in step 6.1, the proxy node is switched.
[0034] Step 7 is the Joint Tracing (Open) phase. When a committee node discovers erroneous data on the blockchain, it needs to jointly trace the user identity of the uploaded data. This specifically includes the following steps: Step 7.1: Each blockchain committee node verifies the user's signature information as in Step 6.2. If the verification fails, it calculates the decryption fragment of the group private key in the user's signature information and performs zero-knowledge proof calculations on the decryption fragment. , Finally, the decryption fragments of the user group key and their zero-knowledge proofs are sent. Upon reaching the proxy node, each blockchain committee node first uses the user's signature... Decryption is performed to obtain a decryption fragment of the user's private key, and a corresponding zero-knowledge proof is provided to ensure the correctness of the decryption. Step 7.2: The proxy node receives the user group key decryption fragment and its zero-knowledge proof sent by the blockchain committee node in Step 7.1. Next, the correctness of the decryption operation is verified: 0 / 1 After the proxy node is verified, the decryption fragments from each node are aggregated, and the user's private key is calculated: , Finally, the user's group private key is sent to each blockchain committee node. The proxy node verifies the user's decryption zero-knowledge proof to ensure the correctness of the content and the consistency of the format. Then, the decryption fragments are aggregated to obtain the complete user private key. Step 7.3: After receiving the user group private key sent by the proxy node in Step 7.2, each blockchain committee node then... The user's private key is encrypted to obtain encrypted fragments of the user's private key, and simultaneously... A zero-knowledge proof is calculated using the encrypted user's private key to obtain a zero-knowledge proof of the correctness of the encryption operation. Finally, send this encrypted fragment and the zero-knowledge proof of the encryption operation. At the proxy nodes, each blockchain committee node cannot disclose the user's private key information at the initial issuance of the user's identity. Therefore, all nodes store the encrypted form of the user's private key. Further encryption of the user's private key is necessary for identity verification; thus, all nodes use their own private keys. The user's private key is encrypted to obtain an encrypted fragment, and a zero-knowledge proof of the encrypted fragment is provided. This encrypted fragment and the zero-knowledge proof are then sent to the proxy node for aggregation. Step 7.4: The proxy node receives the cryptographic fragments and zero-knowledge proofs of the cryptographic operations sent by the blockchain committee node in Step 7.3. Then, zero-knowledge proof verification is performed on the encrypted fragments of the user group's private key: 0 / 1 If the verification passes, the received encrypted fragments are aggregated to complete the encryption of the user group's private key: Finally, the encrypted form of the user group's private key. The data is sent to the blockchain committee nodes. The proxy nodes first verify whether the encrypted fragments of each node are correct and whether the node's private key is being used. The user's private key is encrypted, and then the encrypted fragments of the user's private key are aggregated to obtain the complete ciphertext of the user's private key. This ciphertext is then sent to all committee nodes, so that each node can compare this key with its local key to find the specific information of the wrong user. Step 7.5: The blockchain committee node receives the encrypted form of the user group private key sent by the proxy node in step 7.4. Then, query reg[k] in the user registry to ensure that reg[k] contains C'', and finally obtain the user's specific information k. Check whether the blockchain committee node has the user's information in the registry and output the user's specific information.
[0035] A distributed monitoring system for identity privacy protection and traceability on a blockchain includes the following modules: The system initialization module initializes parameters and generates basic parameters to implement step 1 of the blockchain-based distributed supervision method for identity privacy protection and traceability described in this invention. The blockchain committee key module generates a blockchain committee public-private key pair based on the basic parameters generated by the system initialization module, and uploads and stores the blockchain committee public-private key pair on the blockchain to implement step 2 of the blockchain-based identity privacy protection and traceable distributed supervision method described in this invention. The user identity issuance module generates a group private key for the user based on the blockchain committee private key stored in the blockchain committee key module, and binds the user's identity. At the same time, it saves the encrypted text of the user's private key locally, which is used to implement step 3 of the blockchain-based identity privacy protection and traceable distributed supervision method described in this invention. The revocation module generates time-bound revocation assistance information based on the blockchain committee private key generated by the blockchain committee key module, which is used to implement step 4 of the blockchain-based identity privacy protection and traceable distributed supervision method described in this invention. The signature module uses the group private key generated by the user identity issuance module and the revocation auxiliary information bound to the revocation module to complete the anonymous signature, which is used to implement step 5 of the blockchain-based identity privacy protection and traceable distributed supervision method described in this invention. The verification module verifies whether the anonymous signature completed by the signature module is valid, and is used to implement step 6 of the blockchain-based distributed supervision method for identity privacy protection and traceability described in this invention. The identity disclosure module discloses the identity of a non-valid signature verified by the verification module using the blockchain committee private key generated by the blockchain committee key module, and adds it to the revocation list. This is used to implement step 7 of the blockchain-based distributed supervision method for identity privacy protection and traceability described in this invention.
[0036] The present invention also provides a readable storage medium storing instructions that, when executed on a computer, cause the computer to perform the aforementioned distributed supervision method for identity privacy protection and traceability on a blockchain.
[0037] In summary, this invention employs a predetermined number of blockchain committee nodes for joint computation, reveals user identity, periodically updates blockchain committee node private key fragments, and proxy nodes for receiving, verifying, aggregating, and forwarding messages, thereby improving user identity security, enhancing system flexibility and security, and reducing system complexity.
Claims
1. A distributed supervision method for identity privacy protection and traceability on a blockchain, characterized in that, Includes the following steps: Step 1: Parameter initialization, generating the basic parameters needed in subsequent protocols: bilinear pairing parameters, hash parameters, binary tree parameters, and adding them to the chain; Step 2: Using the basic parameters generated in Step 1, a public-private key pair for the blockchain committee is generated through joint calculation by the blockchain committee nodes and proxy nodes. The public key is then uploaded to the blockchain, while the private key is distributed and stored across the blockchain committee nodes. The specific implementation steps are as follows: Step 2.1: All blockchain committee nodes are running. Generate polynomial values for n corresponding nodes. and the commitment of polynomial coefficients Simultaneously, the n polynomial values are encrypted using the CL encryption algorithm: And perform zero-knowledge proofs on polynomial-valued ciphertexts and polynomial-valued commitments: Finally, for use Make a commitment and receive ,right and Perform zero-knowledge proofs: and send The promise of the polynomial constant term coefficients and its zero-knowledge proof are broadcast to the proxy node, simultaneously to all blockchain committee nodes and proxy nodes. ; Step 2.2: The proxy node receives the message sent in Step 2.
1. and Then, the correctness of the polynomial coefficient commitment and the polynomial value encrypted ciphertext, as well as the correctness of the encryption format, are verified: , ,confirm and After verifying the correctness, the proxy node aggregates the polynomial-valued encrypted ciphertext. Then aggregate the commitments of the polynomial coefficients: And send the aggregated polynomial value encrypted ciphertext. To the corresponding node Finally, the broadcast polynomial coefficients are committed. To all blockchain committee nodes; Step 2.3: All blockchain committee nodes receive the commitments to the coefficients of the polynomial constant term from Step 2.1 and their zero-knowledge proofs. And the polynomial value encryption ciphertext sent by the proxy node in step 2.2 and polynomial coefficient commitment Then, the commitments for the polynomial constant terms broadcast in step 2.1 are aggregated: And verify whether the promise of the polynomial constant term is correct: When correct, after successful verification, the proxy node decrypts the polynomial value encrypted ciphertext. And verify whether the polynomial value is correct: , Once it is determined that the polynomial value of the current blockchain committee node is correct, the data sent in step 2.1 will be processed. Perform aggregation: ,set up The private key for the blockchain committee is obtained by assembling the private key fragments of each blockchain committee node and setting them. Obtain the blockchain committee's public-private key pair by matching the private key of the committee with the committee's public key, and store it locally. If the verification is incorrect, the verification fails, and the blockchain committee node sends the verification information to other blockchain committee nodes. Step 2.4: Execute steps 2.1-2.3 periodically to complete the periodic update of the private key fragments of the blockchain committee nodes; Step 3: The user submits an application to the blockchain committee node, requesting an identity key. The blockchain committee node responds to the user's application. When a preset number of blockchain committee nodes agree to the user's joining, the blockchain committee node uses the blockchain committee private key stored in step 2 to calculate and generate a group private key with a time limit for the user, and binds the identity. At the same time, the blockchain committee node keeps a ciphertext of the user's private key locally. Step 4: The blockchain committee nodes and the proxy nodes jointly use the blockchain committee private key generated in Step 2 to jointly calculate the time and generate revocation assistance information bound to the time. Step 5: Use the group private key generated in Step 3 and the revocation assistance information bound in Step 4 to complete the anonymous signature; Step 6: Verify the validity of the anonymous signature completed in Step 5 through the blockchain committee nodes and proxy nodes. If the anonymous signature is valid, upload it to the blockchain. If the anonymous signature is invalid, proceed to Step 7. Step 7: The predetermined number of blockchain committee nodes in Step 3 jointly use the blockchain committee private key generated in Step 2 to calculate and reveal the identity of the user who verified the invalid anonymous signature in Step 6, and add this user identity to the revocation list, so that the anonymous signature of this user will no longer be valid.
2. The distributed supervision method for identity privacy protection and traceability on a blockchain according to claim 1, characterized in that, Step 1 specifically includes the following steps: Step 1.1: Select bilinear pairing parameters for the proxy node. ,in, They are respectively The generator, e is arrive The mapping, for Random group elements in; Step 1.2: The proxy node selects a hash algorithm and generates hash parameters. ; Step 1.3: The proxy node generates a full binary tree, generates binary tree parameters BT, binds each leaf node to time in ascending order from left to right, and binds each node to a random number. Step 1.4: The proxy node will use the basic parameters generated in steps 1.1 to 1.3: Send to all blockchain committee nodes; Step 1.5: The blockchain committee node receives the data sent in step 1.
4. Then, the CL encryption / decryption public / private key pair is obtained using the CL.KeyGen algorithm. It also provides a zero-knowledge proof of the correctness of the CL encryption / decryption public / private key pair. Send the public key for CL encryption and decryption, and the zero-knowledge proof. To the proxy node; Step 1.6: The proxy node receives the CL encryption / decryption public key and zero-knowledge proof sent in Step 1.
5. Next, the public keys and zero-knowledge proofs encrypted and decrypted by the CL of the blockchain committee nodes are compiled. and add to the list of key pairs for blockchain committee nodes. Complete the publication of node information and node sorting, and broadcast the list of blockchain committee node key pairs to all blockchain committee nodes. ; Step 1.7: The blockchain committee node receives the list of blockchain committee node key pairs broadcast in Step 1.
6. Then, verify the public key for CL encryption and decryption and the corresponding zero-knowledge proof for each node. And send verification information to all blockchain committee nodes; Step 1.8: When more than half of the verification messages sent in Step 1.7 are incorrect, the blockchain committee node corresponding to that incorrect message is removed from the blockchain node network; when all blockchain committee nodes receive correct verification messages sent in Step 1.7, the list of key pairs of this blockchain committee node is updated. Go to the blockchain.
3. The distributed supervision method for identity privacy protection and traceability on a blockchain according to claim 1, characterized in that, Step 3 specifically includes the following steps: Step 3.1: Use the joint exponent inversion algorithm to perform pre-calculation to provide exponent information for generating the user's group private key; Step 3.1.1: All blockchain committee nodes select a random number. And using the blockchain committee public key generated in step 2.3 The random number is encrypted to obtain the first encrypted ciphertext, and then a zero-knowledge proof is performed on it: , Finally, all blockchain committee nodes will transmit the first encrypted ciphertext and its zero-knowledge proof. Send to all blockchain committee nodes; Step 3.1.2: Each blockchain committee node receives the random number encrypted ciphertext and zero-knowledge proof from the other blockchain committee nodes in Step 3.1.
1. Then, the content of each blockchain committee node is verified. If the verification of the random number encrypted ciphertext and the zero-knowledge proof passes, the random number encrypted ciphertext is aggregated. , Each blockchain committee node selects a random number and performs a homomorphic operation on the encrypted ciphertext of this random number and the random number from step 3.1.1: , And provide a zero-knowledge proof: Finally, each blockchain committee node sends the aggregated ciphertext, a random number, and a zero-knowledge proof. To other blockchain committee nodes; Step 3.1.3: Each blockchain committee node receives the aggregated ciphertext information, random number, and zero-knowledge proof from step 3.1.
2. Then, the messages from other blockchain committee nodes are verified: After each blockchain committee node verifies the aggregated ciphertext from all nodes, it performs a second aggregation on the aggregated ciphertext to obtain the second aggregated ciphertext: Each blockchain committee node uses the key from step 2 to decrypt the second aggregated ciphertext and provides a zero-knowledge proof of the decrypted message to ensure its correctness. , Finally, this decryption message and zero-knowledge proof are sent to other blockchain committee nodes; Step 3.1.4: Each blockchain committee node receives the decrypted ciphertext information and its zero-knowledge proof from Step 3.1.
3. Then, the decrypted ciphertext information of each node is verified: 0 / 1 Once verification is successful, all decrypted ciphertext information is aggregated to obtain the fully decrypted exponent information with a mask: And store temp[i]= If the verification fails, the blockchain committee node sends the verification information to other blockchain committee nodes. Step 3.2: Based on the index information obtained in Step 3.1, jointly issue user identities, generate group private keys with time limits, bind identities, and simultaneously retain the encrypted user private keys locally; Step 3.2.1: Current user i generates the public / private key pair CL for user CL and provides the corresponding zero-knowledge proof for the key pair: , Then the current user i selects a random number. ,set up And make a commitment to this random number and provide a zero-knowledge proof: Select random number ,calculate , , , Finally, the current user i sends a commitment of the user's private key, the CL public key, and the zero-knowledge proof corresponding to each user's private key and CL public key. Give it to the proxy node; Step 3.2.2: Upon receiving the commitment of the user's private key, the CL public key, and the zero-knowledge proof corresponding to each user's private key and CL public key sent by the current user i in step 3.2.1, the proxy node... Next, the correctness of the user's data is verified: , After successful verification, the proxy node assigns a leaf node to the current user i. The leaf node There is a corresponding time, which corresponds to the user's identity expiration date. Based on the expiration time of the proxy node The proxy node uses the CS-TBK scheme to provide the path nodes for the current user i. The proxy node selects a random number for the current user i and calculates the base part of the current user i's group private key: Calculate the base part of the key Finally, the proxy node sends the base part of the current user's group private key and a random number. The commitment to the user's private key, the CL public key, and the zero-knowledge proof corresponding to each user's private key and CL public key generated in step 3.2.
1. If the verification fails, the blockchain committee node sends the verification information to other blockchain committee nodes. Step 3.2.3: Each blockchain committee node receives the base part and random number of the current user i group private key sent by the proxy node in step 3.2.
2. The commitment to the user's private key, the CL public key, and the zero-knowledge proof corresponding to each user's private key and CL public key generated in step 3.2.
1. Next, the user's data is verified for correctness: , After verification, based on plaintext information Query the temp and plaintext information in step 3.1.
4. Other bound values and through Calculate the group private key fragment for the current user i, and simultaneously... This group private key fragment is encrypted, and finally each blockchain committee node sends the ciphertext fragment of the user group private key. If the verification fails at the proxy node and other blockchain committee nodes, the blockchain committee node will send the verification information to other blockchain committee nodes. Step 3.2.4: The proxy node receives the ciphertext fragment of the user group's private key sent by the blockchain committee in step 3.2.
3. Then, send the user group private key information. To the current user i; Step 3.2.5: The current user i receives the user group private key information sent by the proxy node. Then, the current user i decrypts the encrypted ciphertext of the user group private key fragment by the blockchain committee node, and aggregates the user's group private key fragment private key: , Finally, the user's private key is calculated: ; Step 3.2.6: Each blockchain committee node receives the ciphertext fragment of the user group's private key sent by other blockchain committee nodes in Step 3.2.
3. Then, use the key fragments generated in step 2.
3. pass The user's private key is calculated to obtain the encrypted information of the encrypted fragment of the user group's private key, and the encrypted information of this encrypted fragment of the user group's private key is sent to the proxy node. Step 3.2.7: After receiving the encrypted information of the ciphertext fragments of the user group private key sent by each blockchain committee node in Step 3.2.6, the proxy node aggregates the encrypted information of the ciphertext fragments of the user group private key to obtain the encrypted information of the ciphertext of the user group private key: and encrypted information of the user group's private key ciphertext. Send to the blockchain committee node; Step 3.2.8: Each blockchain committee node receives the encrypted information of the user group private key ciphertext sent by the proxy node in Step 3.2.
7. Afterwards, through Encrypted information of the private key ciphertext of this user group Perform partial masking calculations to obtain the half-mask encrypted information of the user group's private key, and finally send the half-mask encrypted information of the user group's private key. To the proxy node; Step 3.2.9: The proxy node receives the user group private key half-mask encrypted information sent by the blockchain committee node in Step 3.2.
8. Then, the data is aggregated to completely remove the mask information of the user group's private key, yielding the encrypted information of the user group's private key: And send encrypted information of the aggregated user group private keys. To the blockchain committee node; Step 3.2.10: Each blockchain committee node receives the encrypted information of the user group private key sent by the proxy node in step 3.2.
9. Then, store it locally: , .
4. The distributed monitoring method for identity privacy protection and traceability on a blockchain according to claim 1, characterized in that, Step 4 specifically includes the following steps: Step 4.1: The proxy node obtains the current time t and matches it with the time-bound full binary tree BT obtained in Step 1.3, running the CS-TBK algorithm to obtain information about multiple nodes: Select a random number: Finally, send the current time, the obtained node information, and the random number: To the blockchain committee node; Step 4.2: Each blockchain committee node receives the current time sent in Step 4.1, the information from multiple nodes, and the random number: Next, select the number of binary tree nodes and the masked exponent information stored in step 3.1.4: and Perform joint calculations to obtain undo assistance information with a mask. Finally, send a cancellation assist message with a mask. Give it to the proxy node; Step 4.3: The proxy node receives the masked revocation assistance information sent by the blockchain committee node in Step 4.
2. Then, select a random number and perform a commitment calculation on the random number: , After completing the commitment calculation, the aggregated revocation assistance information with masks is obtained to get the complete revocation assistance information: Finally passed The revocation assistance information is compiled and sent to the blockchain committee node.
5. A distributed monitoring method for identity privacy protection and traceability on a blockchain according to claim 1, characterized in that, Step 5 specifically includes the following steps: Step 5.1: User selects a random number: ; Step 5.2: The user uses the basic parameters from Step 1.1, the user group private key obtained in Step 3, and the revocation assistance information obtained in Step 4.
3. and the random number selected in step 5.1 Obtain the following relational parameters: , , , , , , , , ; Step 5.3: The user selects a random number again: ; Step 5.4: The user uses the random number selected in Step 5.3 and the various relational parameters calculated in Step 5.2 to calculate the proof parameters: , , , , , ; Step 5.5: The user uses the relation parameters from Step 5.2 and the proof parameters from Step 5.4 to generate a hash value for a random challenge in a non-interactive zero-knowledge proof: ; Step 5.6: The user computes a non-interactive zero-knowledge proof using the random challenge from Step 5.5: , , , , , , , , , ; Step 5.7: The user organizes the relation parameters from Step 5.2, the random challenge from Step 5.5, and the non-interactive zero-knowledge proof from Step 5.6 to obtain the signature information. And send it to the proxy node.
6. The distributed supervision method for identity privacy protection and traceability on a blockchain according to claim 1, characterized in that, Step 6 specifically includes the following steps: Step 6.1: The proxy node receives the signature information sent by the user in step 5.
7. Afterwards, through The signature information undergoes format validation. Once the format validation passes, the proxy node performs zero-knowledge proof validation on the user's signature information. After the zero-knowledge proof validation passes, the user's signature information is sent. The proxy node sends verification information (0 / 1) to other blockchain committee nodes. If format verification or zero-knowledge proof verification fails, the proxy node sends verification information to other blockchain committee nodes. The zero-knowledge proof verification includes the following steps: Step 6.1.1: Calculate: , , , ; Step 6.1.2: Verification: ; Step 6.1.3: Verification: ; Step 6.2: Each blockchain committee node receives the user signature information sent by the proxy node in Step 6.
1. After verifying the result as 0 / 1, repeat the verification operation in step 6.
1. If the verification passes and is consistent with the verification result of the proxy node, the message is uploaded to the blockchain. If the verification fails and is consistent with the verification result of the proxy node, the message is discarded. If the verification information is inconsistent with the verification information sent by the proxy node in step 6.1, the blockchain committee node sends the verification information to other blockchain committee nodes. If the number of blockchain committee nodes preset in step 3 confirms that the verification information is inconsistent with the verification information of the proxy node in step 6.1, the proxy node is switched.
7. A distributed monitoring method for identity privacy protection and traceability on a blockchain according to claim 1, characterized in that, Step 7 specifically includes the following steps: Step 7.1: Each blockchain committee node verifies the user's signature information as in Step 6.
2. If the verification fails, it calculates the decryption fragment of the group private key in the user's signature information and performs zero-knowledge proof calculations on the decryption fragment. , Finally, the decryption fragments of the user group key and their zero-knowledge proofs are sent. To the proxy node; Step 7.2: The proxy node receives the user group key decryption fragment and its zero-knowledge proof sent by the blockchain committee node in Step 7.
1. Next, the correctness of the decryption operation is verified: 0 / 1 After the proxy node is verified, the decryption fragments from each node are aggregated, and the user's private key is calculated: , Finally, the user's group private key is sent to each blockchain committee node; Step 7.3: After receiving the user group private key sent by the proxy node in Step 7.2, each blockchain committee node then... The user's private key is encrypted to obtain encrypted fragments of the user's private key, and simultaneously... A zero-knowledge proof is calculated using the encrypted user's private key to obtain a zero-knowledge proof of the correctness of the encryption operation. Finally, send this encrypted fragment and the zero-knowledge proof of the encryption operation. To the proxy node; Step 7.4: The proxy node receives the cryptographic fragments and zero-knowledge proofs of the cryptographic operations sent by the blockchain committee node in Step 7.
3. Then, zero-knowledge proof verification is performed on the encrypted fragments of the user group's private key: 0 / 1 If the verification passes, the received encrypted fragments are aggregated to complete the encryption of the user group's private key: Finally, the encrypted form of the user group's private key. Send to the blockchain committee node; Step 7.5: The blockchain committee node receives the encrypted form of the user group private key sent by the proxy node in step 7.
4. Then, query reg[k] in the user's registry to ensure that reg[k] contains C'', and finally obtain the user's specific information k.
8. A distributed monitoring system for identity privacy protection and traceability on a blockchain, employing the distributed monitoring method for identity privacy protection and traceability on a blockchain as described in any one of claims 1-7, characterized in that, The aforementioned distributed monitoring system for identity privacy protection and traceability on a blockchain includes the following modules: The system initialization module initializes parameters and generates basic parameters. The blockchain committee key module generates public and private key pairs for the blockchain committee based on the basic parameters generated by the system initialization module, and uploads and stores the public and private key pairs for the blockchain committee on the blockchain. The user identity issuance module generates a group private key for the user based on the blockchain committee private key stored in the blockchain committee key module, and binds the user's identity. At the same time, it saves the encrypted text of the user's private key locally. The revocation module generates time-bound revocation assistance information based on the blockchain committee private key generated by the blockchain committee key module. The signature module uses the group private key generated by the user identity issuance module and the revocation auxiliary information bound to the revocation module to complete anonymous signing; The verification module checks whether the anonymous signature completed by the signature module is valid. The identity reveal module uses the blockchain committee private key generated by the blockchain committee key module to reveal the identity of the miming signature that is verified as invalid by the verification module, and adds it to the revocation list.
9. A readable storage medium storing instructions, characterized in that, When the instructions are executed on a computer, the computer performs a distributed supervision method for identity privacy protection and traceability on a blockchain as described in any one of claims 1-7.
Citation Information
Patent Citations
Group signature-based supervisible block chain transaction privacy protection method and system
CN113761582A
Block chain controlled traceable identity privacy method based on secret sharing
CN114866259A
