Blockchain privacy data governance methods based on group signatures and attribute encryption

By combining group signature and attribute encryption technologies, the system enables dynamic addition of user identities and verification of the legitimacy of data access on the blockchain. This solves the problem of high computational and storage overhead in blockchain privacy protection, supports identity traceability and legitimate data access, and improves the efficiency and security of privacy protection.

CN123122894APending Publication Date: 2026-11-17BOYA ZHENGLIAN (BEIJING) TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611253096.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-18
Publication Date
2026-11-17

AI Technical Summary

Technical Problem

Existing blockchain privacy protection technologies have high computational, storage, and communication overhead, and cannot effectively audit and trace malicious users, resulting in poor performance and the risk of privacy protection abuse.

Method used

Combining group signature and attribute encryption technologies, the group administrator defines group and member attributes, generates group public and private keys, encrypts and decrypts data, supports dynamic addition of user identities and issuance of attribute certificates, uses access control smart contracts to verify legitimacy, and performs identity tracing when necessary.

Benefits of technology

It enables the protection of user privacy while supporting the verification of the legitimacy of data access and the traceability of identity, reduces computing and storage overhead, prevents abuse by malicious users, and meets the privacy protection needs in different scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123122894A_ABST
    Figure CN123122894A_ABST
Patent Text Reader

Abstract

This invention discloses a blockchain privacy data management method based on group signatures and attribute encryption, belonging to the field of information security technology. It defines group administrators and group members and initializes the group; when a new data accessor arrives, the new data accessor is registered and added to the current group as a new group member; the group administrator uploads privacy data, and group members access the privacy data; the identity of the data accessor is traced. This invention combines group signature and attribute encryption cryptography to solve the privacy protection problem of on-chain identity data, enabling dynamic addition of user identities in different scenarios, access to required data without exposing the user's real identity information, and supporting traceability of data users when necessary. It achieves the privacy protection requirements of on-chain identity and data from the dimensions of identity privacy, behavioral privacy, and data privacy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of information security technology, specifically relating to a blockchain privacy data management method based on group signatures and attribute encryption. Background Technology

[0002] According to the definition given by the OECD, privacy refers to any information relating to an identified or identifiable individual, encompassing the entire process of data collection, use, storage, and destruction. In response to the challenges posed by blockchain, such as privacy threats, data computation methods, and in-chain security, blockchain systems should meet the following requirements to protect privacy: (1) the true identity of the transaction initiator should be invisible or undiscoverable (identity privacy); (2) the content of the transaction should only be known to the participants in the transaction (data privacy); and (3) the initiated computational task should be known to the participants in the transaction (behavioral privacy).

[0003] Privacy issues arise in data-sharing scenarios. When formulating data security measures, it is necessary to fully consider the data usage scenarios and the data subject's right to know, while maximizing the value of data use. Currently, most privacy protection technologies typically require the data owner to set relevant data access rules; however, once the data recipient obtains the data, the data owner loses control over that data.

[0004] To address the aforementioned privacy risks, researchers and developers have proposed various privacy protection technologies, such as Access Control Lists (ACLs), homomorphic encryption, and attribute-based encryption, to build supporting technologies for privacy protection systems.

[0005] Group signature technology groups multiple similar users into a "group" (set), allowing a user within the group to sign a message as a member of the group to prove that the message was sent by them, without revealing the true identity of the signer, thus providing complete anonymity protection. Using group signature technology, the privacy of information holders and users can be guaranteed while ensuring the legitimacy of their identities, thus protecting privacy and preventing illegal sharing. If necessary, regulators can decrypt the signatures to reveal the true identities of the users who signed.

[0006] Attribute encryption is an encryption model that allows data encryption and decryption operations to be based on user attributes. A user's key corresponds to a set of attributes, while the ciphertext contains the access structure (policy). A user can only successfully decrypt data if their set of attributes satisfies the access structure in the ciphertext. Attribute encryption is suitable for building secure data sharing solutions in cloud environments because data owners can define appropriate access structures according to their needs, enabling the intended user group to decrypt the data.

[0007] In summary, current research on blockchain privacy primarily focuses on protecting the privacy of the blockchain itself, specifically achieving identity and transaction privacy. While many privacy protection methods have been proposed and implemented, they all still require improvement. For example, current privacy schemes, whether based on hybrid mechanisms or cryptography, incur significant computational, storage, and communication overhead, resulting in poor performance. Furthermore, blockchain privacy protection is a double-edged sword; while providing better privacy for honest users, malicious users may abuse privacy mechanisms for illegal transactions. Therefore, privacy protection in blockchain should be conditional, and trusted institutions should be able to audit and trace the actions of malicious users. Summary of the Invention

[0008] To address the shortcomings of existing technologies, this invention provides a blockchain privacy data management method based on group signatures and attribute encryption, which enables data auditing and traceability while protecting user privacy data.

[0009] The technical solution of this invention is as follows: On the one hand, this invention provides a blockchain privacy data management method based on group signature and attribute encryption, comprising the following steps: Define the group administrator and group members, and initialize the group.

[0010] When a new data visitor arrives, register the new data visitor and add them to the current group as a new group member.

[0011] The group administrator in the current group uploads private data, and group members access the private data.

[0012] Identify and trace the data users.

[0013] Furthermore, the group administrator is the data management authority in the blockchain system, used to provide and encrypt private data; during the initialization phase, the group administrator establishes a group for sharing private data. Based on the input security parameters, the group signature algorithm is invoked to generate the group public key and the group owner's private key; in addition, the group administrator initializes the group attribute set. , As an attribute, The number of attributes; the group administrator determines the number of attributes based on the group attribute set. Assign corresponding attributes to each group member.

[0014] The group members are data users in the blockchain system, used to apply for and access private data.

[0015] Furthermore, the step of registering a new data visitor and adding them as a new group member to the current group when a new data visitor arrives specifically includes: When a data user wants to access the privacy data of a data management agency, they apply to join a group. The group administrator then uses a group member addition algorithm. Generate public keys for newly joined group members. Private key Group Member Certificate and transmit the public key through an encrypted channel Private key Group member certificate Set of group properties Send it to the data accessor, who then gains group membership. For group member IDs, The selected group signature algorithm, For group parameters; This is the group owner's private key. For group public keys.

[0016] After obtaining group member status, data visitors send an attribute certificate request to the group administrator based on their own identity attribute information to apply for an attribute certificate.

[0017] Specifically, in the attribute certificate request sent, the data accessor submits the attribute proof information it possesses, and through... The function performs a group signature on the attribute proof information, where, Attribute verification information refers to various information and materials used to prove one's own attributes. After receiving the attribute certificate request from the data access user, the group administrator, through... Verify the group signature. If the group signature was generated by a legitimate group member and contains attribute verification information... If the group signature is valid, then the data accessor's attribute certificate request is valid. Sign the group; otherwise, the data accessor's attribute certificate request is invalid, and the attribute certificate is refused to be issued to the data accessor.

[0018] If the data accessor's attribute certificate request is valid, set the attribute verification information submitted by the data accessor as follows: The group administrator first verifies each attribute proof in the attribute proof information with a third-party authoritative institution, and then converts the verified attribute proofs into the corresponding group attribute set. The attribute in the data is then assigned to the data visitor as a property of the data visitor. , For attribute proof, The number of attribute proofs in the attribute proof information; attributes for the data accessor. After calculating the signature, an attribute certificate is issued to the data accessor. ; Group membership certificates of data access users The corresponding identity attribute information is stored in a table. middle, For one record in the table, The number of group members.

[0019] Furthermore, the group administrator in the current group uploads privacy data, and group members access the privacy data, specifically as follows: The group administrator sets that for privacy data M to be shared, data users who meet the attribute requirements S can access privacy data M; the group administrator generates an access structure based on the attribute requirements S. Using encryption functions Output encrypted ciphertext of privacy data M ; encrypt ciphertext Groups The attribute requirement information S is sent to the consortium blockchain for storage, resulting in a privacy data transaction hash.

[0020] When a data access user requests access to specified private data, the user sends a data access request. The request includes the user's applied attribute certificate and the transaction hash of the private data on the blockchain. After group signature, the access control smart contract is invoked to verify the legitimacy. The verification process is as follows: (1) Extract the groups that accessed the privacy data based on the transaction hash of the accessed privacy data. and attribute requirement information S, through For group signature verification, if the group signature was generated by a legitimate group member and is a data access request... Group signature If the data access request is valid, further verification will be performed; otherwise, the data access request is invalid, and further verification will be rejected.

[0021] (2) Based on the extracted attribute requirement information S, verify whether the attribute certificate contains the specified attributes. If all attributes are contained, the verification passes; otherwise, the verification fails.

[0022] (3) After the group administrator detects a valid data access request, it calls... The algorithm uses the group owner's private key. Group public key Using the attribute requirement information S as input, generate the private key for the data access user. .

[0023] (4) The group administrator will give the data access private key to the data access user. Through the public key of the data access user It is then encrypted and sent to the consortium blockchain.

[0024] (5) Upon receiving the private key to access the data, the data access user Then, the decryption algorithm is called. The algorithm takes the group public key as input. , encrypted ciphertext CT and private key for accessing data If access data private key The corresponding attribute requirement information S must satisfy the access structure. If the data accessor correctly decrypts the encrypted ciphertext CT, they will obtain the plaintext private data M.

[0025] Furthermore, the specific steps for tracing the identity of data access users are as follows: the group administrator uses their private key (the group owner's key) to open the group signature requested by the attribute certificate and runs... The algorithm obtains group member certificates, revealing the true identity of data access users.

[0026] Secondly, this application proposes an electronic device, including: one or more processors, and a memory for storing instructions, which, when executed by the one or more processors, cause the one or more processors to execute the blockchain privacy data management method based on group signature and attribute encryption.

[0027] Thirdly, this application proposes a computer-readable storage medium storing executable instructions that, when executed, cause a processor to perform the blockchain privacy data management method based on group signatures and attribute encryption.

[0028] Fourthly, this application proposes a computer program product, including a computer program or instructions that, when executed by a processor, implement the blockchain privacy data management method based on group signature and attribute encryption.

[0029] Compared with the prior art, the beneficial effects of the present invention are as follows: This solution combines group signature and attribute-based cryptography to address the privacy protection of on-chain identity data. It enables dynamic addition of user identities in different scenarios, allowing access to required data without exposing the user's real identity information. Furthermore, it supports tracing the data user when necessary, thus fulfilling the privacy protection requirements for on-chain identity and data from the dimensions of identity privacy, behavioral privacy, and data privacy.

[0030] This technical solution enables data owners to act as group administrators in various scenarios, managing the identity attribute information of group members. Only members who have joined the group and possess the corresponding attributes can access attribute-encrypted data. In this solution, each group is managed by a data resource provider, who can set the group's overall attribute set, assign corresponding attribute certificates based on the attribute proof provided during user registration, and dynamically issue corresponding private keys for accessing required data. When the group administrator provides multiple sets of data, access permissions can be refined by configuring the data's encryption attributes. Users with different attribute sets can only access data corresponding to their specified attributes, and user access permissions are configured by updating attribute certificates. Verifying user identity through group signatures can hide which specific user requested data access, allowing the group administrator to reveal user identities for traceability when necessary. Attached Figure Description

[0031] Figure 1 This is a flowchart of a blockchain privacy data management method based on group signature and attribute encryption in an embodiment of the present invention.

[0032] Figure 2 This is a schematic diagram of safety parameters in an embodiment of the present invention.

[0033] Figure 3 This is a flowchart illustrating the data access control for sending and receiving confirmation letters in the digital confirmation system of this invention.

[0034] Figure 4 This is a schematic diagram of the blockchain function in an embodiment of the present invention. Detailed Implementation

[0035] The present invention will now be described in detail with reference to the accompanying drawings and embodiments.

[0036] Example 1: Blockchain privacy data governance methods based on group signatures and attribute encryption, such as Figure 1 As shown, it includes the following steps: Step 1: Define the group administrator and group members, and initialize the group.

[0037] The group administrator is the data management body in the blockchain system, responsible for providing and encrypting private data. During the initialization phase, the group administrator establishes a group for sharing private data. Based on the input security parameters, the group signature algorithm is invoked to generate information such as the group public key (Gpk) and the group manager private key (Gmsk). The group public key is used as a public parameter for subsequent verification of the validity of the group signature and group member certificates. In addition, the group manager initializes the group attribute set. , As an attribute, The number of attributes; the group administrator determines the number of attributes based on the group attribute set. Each group member is assigned a corresponding attribute as credentials to access specified private data. These attributes include, for example, "Accounting Firm," "Audited Entity," and "XXX (Confirmation Number)." The security parameters are not disclosed to group members; in this embodiment, they are bilinear pairing parameters, such as... Figure 2 As shown.

[0038] The group members are data users in the blockchain system, used to apply for and access private data.

[0039] Step 2: When a new data visitor arrives, register the new data visitor and add them to the current group as a new group member.

[0040] When a data user wants to access the privacy data of a data management agency, they must first apply to join a group with that agency. The group administrator then uses a group member addition algorithm. Generate public keys for newly joined group members. Private key Group Member Certificate and transmit the public key through an encrypted channel Private key Group member certificate Set of group properties Send it to the data accessor, who then gains group membership. For group member IDs, The selected group signature algorithm, For group parameters, such as group name and ID; This is the group owner's private key. For group public keys.

[0041] After obtaining group member status, data access users send an attribute certificate request to the group administrator based on their own identity attribute information to apply for an attribute certificate, which serves as the credential for accessing private data.

[0042] The identity attribute information includes basic information about the data visitor, such as "XXX Company"; identity information, such as "audited entity"; and specific business information, such as "confirmation number XXX". The identity attribute information can be modified, requiring a resubmission of the attribute certificate request and attribute verification information. After verification, a new attribute certificate will be issued, and the old certificate will be revoked.

[0043] Specifically, in the attribute certificate request sent, the data accessor needs to submit proof of the attributes it possesses, and through... The function performs a group signature on the attribute proof information, where, This refers to attribute verification information, which includes various information and materials used to prove one's own attributes. For example, in an ongoing confirmation with the number 1000001, the participants are accounting firm C and the audited entity M. Accounting firm C and the audited entity M need to apply for an attribute certificate for "Confirmation 1000001" to obtain relevant data. They should submit attribute verification information and materials, such as business licenses and letters of authorization, to prove that they are participants.

[0044] After receiving the attribute certificate request from the data access user, the group administrator, through... Verify the group signature. If the group signature was generated by a legitimate group member and contains attribute verification information... If the group signature is valid, then the data accessor's attribute certificate request is valid. Sign the group; otherwise, the data accessor's attribute certificate request is invalid, and the attribute certificate is refused to be issued to the data accessor.

[0045] If the data accessor's attribute certificate request is valid, set the attribute verification information submitted by the data accessor as follows: The group administrator first verifies each attribute proof in the attribute proof information with a third-party authoritative institution, and then converts the verified attribute proofs into the corresponding group attribute set. The attribute in the data is then assigned to the data visitor as a property of the data visitor. , For attribute proof, The number of attribute proofs in the attribute proof information; attributes for the data accessor. After calculating the signature, an attribute certificate is issued to the data accessor. .

[0046] Group membership certificates of data access users The corresponding identity attribute information is stored in a table. middle, For one record in the table, The number of group members.

[0047] Step 3: The group administrator in the current group uploads the privacy data, and group members access the privacy data; The group administrator (data management organization) sets the access structure for privacy data M to be shared, stipulating that data users who meet the attribute requirements S can access privacy data M; the group administrator generates the access structure based on the attribute requirements S. Using encryption functions Output encrypted ciphertext of privacy data M This way, only the attributes possessed by the data visitor satisfy the access structure. Only then can the ciphertext be correctly decrypted. ; encrypt ciphertext Groups The attribute requirement information S is sent to the consortium blockchain for storage, resulting in a privacy data transaction hash.

[0048] When accessing specified private data, a data access user needs to send a data access request. The data access request includes the attribute certificate that the data access user has applied for and the transaction hash of the private data on the blockchain. After group signature, the access control smart contract is invoked to verify the legitimacy. The verification process is as follows: (1) Extract the groups that accessed the privacy data based on the transaction hash of the accessed privacy data. and attribute requirement information S, through For group signature verification, if the group signature was generated by a legitimate group member and is a data access request... Group signature If the data access request is valid, it can be further verified; otherwise, the data access request is invalid and further verification is rejected.

[0049] (2) Based on the extracted attribute requirement information S, verify whether the attribute certificate contains the specified attributes. If all attributes are contained, the verification passes; otherwise, the verification fails.

[0050] (3) After the group administrator detects a valid data access request, it calls... The algorithm uses the group owner's private key. Group public key Using the attribute requirement information S as input, generate the private key for the data access user. .

[0051] (4) The group administrator will give the data access private key to the data access user. Through the public key of the data access user It is then encrypted and sent to the consortium blockchain.

[0052] (5) Upon receiving the private key to access the data, the data access user Then, the decryption algorithm is called. The algorithm takes the group public key as input. , encrypted ciphertext CT and private key for accessing data If access data private key The corresponding attribute requirement information S must satisfy the access structure. If so, the data accessor can correctly decrypt the encrypted ciphertext CT and obtain the plaintext private data M.

[0053] In this embodiment, in order to store group data access requests on the blockchain and control access permissions, an access control smart contract is deployed on the blockchain. The smart contract implements a group signature verification algorithm to verify whether the identity and attribute information of the data accessor meets the privacy data requirements.

[0054] Step 4: Identify and trace the data accessor; In this technical solution, group members, i.e., data visitors, can represent the group in signing. Only the attribute certificate issued by the group administrator is exposed; however, this attribute certificate cannot serve as the sole credential representing a particular member. Therefore, other data visitors cannot know which group member is accessing the data. However, if any data visitor on the blockchain exhibits abnormal behavior or objects to a particular data access action—for example, frequently initiating data requests that fail verification or having mismatched data visitor attributes—the group administrator can use their group owner's private key to unlock the group signature requesting the attribute certificate and execute it. The algorithm obtains group member certificates, revealing the true identity of data access users.

[0055] This embodiment uses Bank B, Accounting Firm C, Audited Entity M, Regulatory Entity X, and Operating Entity Y as examples to conduct confirmation business through a blockchain-based digital confirmation platform. This invention modifies the original digital confirmation sending and receiving operations. The digital confirmation process after modification by this invention is as follows: Figure 3 As shown, it includes the following steps: In this embodiment, blockchain nodes are deployed locally at Bank B, Regulatory Authority X, and Operating Authority Y to construct a consortium blockchain. In this embodiment, Accounting Firm C audits Company M, Bank B is the bank where Company M has an account, Regulatory Authority X is responsible for supervising the confirmation process, and Operating Authority Y, as a third party, is responsible for operating the digital confirmation platform for use by Accounting Firm C and Company M. The Accounting Firm, Company M, and Bank register on the digital confirmation platform, and the Regulatory Authority reviews their registration. In this embodiment, Accounting Firm C manages the outgoing confirmation data, and Bank B manages the returning confirmation data. They each establish a group. When there is a confirmation request, the relevant Accounting Firm C and Bank B join each other's groups and obtain the group members' public keys, private keys, and certificates.

[0056] In this embodiment, the group attribute set created by accounting firm C , The number of attributes. For bank identity attributes, This is the confirmation number sent to auditee M for that particular time. When banks join the group, they are given... Attributes can be requested when authorized by the auditee M. Accounting firms use attribute requirements information. Encrypted email data.

[0057] In this embodiment, the group attribute set created by the bank , where n is the number of attributes. This refers to the identity attributes of an accounting firm. This is the confirmation number sent to auditee M for that particular time. Accounting firms are given [a certain status / importance] when joining the group. Attributes: When processing confirmation requests, banks issue attribute certificates to accounting firms. Banks require information on attribute usage. Encrypted reply data.

[0058] In this embodiment, as Figure 4 As shown, the accounting firm generates confirmation letters for the audited entity through a digital confirmation platform according to the relevant confirmation requirements, and sends the letters to the designated bank through the platform. The accounting firm generates an attribute-encrypted access structure based on the audited entity's information and encrypts the sent confirmation data. The sent confirmation data is stored on the blockchain, and the blockchain returns a privacy data transaction hash as the sole credential for querying the sent confirmation data. Bank B downloads the sent confirmation data using the privacy data transaction hash. Bank B stores the encrypted reply data on the blockchain, and the blockchain returns a privacy data transaction hash as the sole credential for querying the reply data. Accounting firm C downloads the reply data using the privacy data transaction hash.

[0059] In this embodiment, as Figure 4 As shown, an access control contract and a group signature pre-compiled contract are deployed on the blockchain. Bank B signs the access request and records it on the blockchain. Accounting firm C verifies the signature through the contract and generates the private key needed to decrypt the access data. After being encrypted using Bank B's public key and uploaded to the blockchain, Bank B can decrypt and access the data using its private key. Then, the sending data is accessed; accounting firm C signs the request to access the reply data and stores it on the blockchain; after bank B verifies the signature through the contract, it generates the private key needed to decrypt the access data. The data is encrypted using the public key of accounting firm C and uploaded to the blockchain. Accounting firm C then decrypts the data using its private key to access it. Then access the reply data; apply to the bank for an attribute certificate and a data access private key to complete the digital confirmation business.

[0060] Example 2: This embodiment proposes an electronic device, including: one or more processors, and a memory, wherein the memory is used to store instructions, and when the instructions are executed by the one or more processors, the one or more processors execute the blockchain privacy data management method based on group signature and attribute encryption.

[0061] The electronic device may be a mobile phone, computer, or tablet computer, etc., and includes a memory and a processor. The memory stores a computer program, which, when executed by the processor, implements the blockchain privacy data management method based on group signatures and attribute encryption as described in the embodiments. It is understood that the electronic device may also include input / output (I / O) interfaces and communication components.

[0062] The processor is used to execute all or part of the steps in the blockchain privacy data governance method based on group signatures and attribute encryption as described in the above embodiments. The memory is used to store various types of data, which may include, for example, instructions for any application or method in an electronic device, as well as application-related data.

[0063] The processor can be implemented as an Application Specific Integrated Circuit (ASIC), Digital Signal Processor (DSP), Programmable Logic Device (PLD), Field Programmable Gate Array (FPGA), controller, microcontroller, microprocessor, or other electronic components, and is used to execute the blockchain privacy data management method based on group signature and attribute encryption described in the above embodiments.

[0064] Example 3: This embodiment proposes a computer-readable storage medium that stores executable instructions. When these instructions are executed, if they are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium.

[0065] The computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the blockchain privacy data management method based on group signature and attribute encryption described in the various embodiments of this application.

[0066] The aforementioned storage media include: flash memory, hard disks, multimedia cards, card-type memory (e.g., SD (Secure Digital Memory Card) or DX (Memory Data Register, MDR) memory), random access memory (RAM), static random-access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic storage, disks, optical discs, servers, APP (Application) app stores, and other media capable of storing program verification codes. These media store computer programs, which, when executed by a processor, can implement the various steps of the blockchain privacy data management method based on group signatures and attribute encryption described above.

[0067] Example 4: This embodiment proposes a computer program product, including a computer program or instructions, which, when executed by a processor, implements the blockchain privacy data management method based on group signature and attribute encryption.

[0068] Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or part of the technical solution, can be embodied in the form of a computer program product.

[0069] The various embodiments in this application are described in a progressive manner. The same or similar parts between the various embodiments can be referred to each other. Each embodiment focuses on describing the differences from other embodiments.

[0070] The scope of protection of this application is not limited to the embodiments described above. Obviously, those skilled in the art can make various modifications and variations to this disclosure without departing from the scope and spirit of this disclosure. If such modifications and variations fall within the scope of this disclosure and its equivalents, then the intent of this disclosure also includes these modifications and variations.

Claims

1. A blockchain privacy data management method based on group signature and attribute encryption, characterized in that, The specific steps include: Define the group administrator and group members, and initialize the group; When a new data visitor arrives, register the new data visitor and add them to the current group as a new group member; Group administrators in the current group upload private data, and group members access the private data. Identify and trace the data users.

2. The blockchain privacy data management method based on group signature and attribute encryption according to claim 1, characterized in that, The group administrator is the data management body in the blockchain system, responsible for providing and encrypting private data. In the initialization phase, the group manager establishes a group for sharing private data , the group signature algorithm is called according to the input security parameters to generate a group public key and a group master private key; Further, the group manager initializes a set of group attributes , for the attribute, the number of attributes; Group administrators based on group attribute set Assign corresponding attributes to each group member; The group members are data users in the blockchain system, used to apply for and access private data.

3. The blockchain privacy data management method based on group signature and attribute encryption according to claim 1, characterized in that, When a new data visitor arrives, registering the new data visitor and adding them as a new group member to the current group specifically includes: When a data user wants to access the privacy data of a data management agency, they apply to join a group. The group administrator then uses a group member addition algorithm. Generate public keys for newly joined group members. Private key Group Member Certificate and transmit the public key through an encrypted channel Private key Group member certificate Set of group properties Send it to the data accessor, who then gains group membership. For group member IDs, The selected group signature algorithm, For group parameters; This is the group owner's private key. For group public key; After obtaining the identity of a group member, the data visitor sends an attribute certificate request to the group administrator based on the identity attribute information they possess, in order to apply for an attribute certificate; Specifically, in the attribute certificate request sent, the data accessor submits the attribute proof information it possesses, and through... The function performs a group signature on the attribute proof information, where, Attribute verification information refers to various information and materials used to prove one's own attributes. After receiving the attribute certificate request from the data access user, the group administrator, through... Verify the group signature. If the group signature was generated by a legitimate group member and contains attribute verification information... If the group signature is valid, then the data accessor's attribute certificate request is valid. Sign the group; otherwise, the data accessor's attribute certificate request is invalid, and the attribute certificate is refused to be issued to the data accessor. If the data accessor's attribute certificate request is valid, set the attribute verification information submitted by the data accessor as follows: The group administrator first verifies each attribute proof in the attribute proof information with a third-party authoritative institution, and then converts the verified attribute proofs into the corresponding group attribute set. The attribute in the data is then assigned to the data visitor as a property of the data visitor. , For attribute proof, The number of attribute proofs in the attribute proof information; attributes for the data accessor. After calculating the signature, an attribute certificate is issued to the data accessor. ; Group membership certificates of data access users The corresponding identity attribute information is stored in a table. middle, For one record in the table, The number of group members.

4. The blockchain privacy data management method based on group signature and attribute encryption according to claim 1, characterized in that, The process of group administrators uploading privacy data and group members accessing privacy data in the current group is as follows: The group administrator sets that for privacy data M to be shared, data users who meet the attribute requirements S can access privacy data M; the group administrator generates an access structure based on the attribute requirements S. Using encryption functions Output encrypted ciphertext of privacy data M ; encrypt ciphertext Groups The attribute requirement information S is sent to the consortium blockchain for storage, resulting in a privacy data transaction hash. When a data access user requests access to specified private data, the user sends a data access request. The request includes the user's applied attribute certificate and the transaction hash of the private data on the blockchain. After group signature, the access control smart contract is invoked to verify the legitimacy. The verification process is as follows: (1) Extract the groups that accessed the privacy data based on the transaction hash of the accessed privacy data. and attribute requirement information S, through For group signature verification, if the group signature was generated by a legitimate group member and is a data access request... Group signature If the data access request is valid, further verification will be performed; otherwise, the data access request is invalid and further verification will be rejected. (2) Based on the extracted attribute requirement information S, verify whether the attribute certificate contains the specified attributes. If all attributes are contained, the verification passes; otherwise, the verification fails. (3) After the group administrator detects a valid data access request, it calls... The algorithm uses the group owner's private key. Group public key Using the attribute requirement information S as input, generate the private key for the data access user. ; (4) The group administrator will give the data access private key to the data access user. Through the public key of the data access user The encrypted data is then sent to the consortium blockchain. (5) Upon receiving the private key to access the data, the data access user Then, the decryption algorithm is called. The algorithm takes the group public key as input. , encrypted ciphertext CT and private key for accessing data If access data private key The corresponding attribute requirement information S must satisfy the access structure. If the data accessor correctly decrypts the encrypted ciphertext CT, they will obtain the plaintext private data M.

5. The blockchain privacy data management method based on group signature and attribute encryption according to claim 1, characterized in that, The specific steps for tracing the identity of data visitors are as follows: the group administrator uses their private key (the group owner's key) to open the group signature request for the attribute certificate and runs... The algorithm obtains group member certificates, revealing the true identity of data access users.

6. An electronic device, characterized in that, include: One or more processors, and a memory for storing instructions that, when executed by the one or more processors, cause the one or more processors to perform the blockchain privacy data governance method based on group signatures and attribute encryption as described in any one of claims 1-5.

7. A computer-readable storage medium, characterized in that, It stores executable instructions that, when executed, cause the processor to perform the blockchain privacy data governance method based on group signature and attribute encryption as described in any one of claims 1-5.

8. A computer program product, characterized in that, Includes a computer program or instructions that, when executed by a processor, implement the blockchain privacy data governance method based on group signature and attribute encryption as described in any one of claims 1-5.