Power system laboratory data sharing method and device based on privacy computing and medium
Through differential privacy technology, homomorphic encryption, secure multi-party computation, blockchain and ciphertext retrieval, the problem of privacy leakage and security risks in power system laboratory data sharing is solved, and the safe sharing and value mining of data are realized. Improved data utilization efficiency and reliability.
Patent Information
- Application Number
- CN202410988062.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-23
- Publication Date
- 2024-10-29
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The power system laboratory faces data privacy leakage and security risks during the data sharing process. Existing encryption technology limits data utilization, making it difficult to achieve secure sharing of data while protecting privacy.
Differential privacy technology is used to add privacy noise, homomorphic encryption method is used to encrypt key sensitive data, secure multi-party computing protocol is used to perform collaborative calculations among multiple laboratories, and a decentralized data sharing platform is built based on blockchain technology. The contract implements access control and ciphertext retrieval technology for privacy protection query, and combines zero-knowledge proof to verify the correctness of the results.
Achieve secure sharing of data while protecting data privacy, promote innovative collaboration, improve data utilization efficiency, balance data availability and privacy, and enhance the credibility and security of data sharing.
Smart Images

Figure CN118862162A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data sharing, and in particular to a method, device and medium for sharing power system laboratory data based on privacy computing. Background Art
[0002] The power system laboratory generates a large amount of data during the research process, and this data has important scientific research value. However, the power system data often contains users' personal privacy and key infrastructure information. Directly sharing the original data will leak privacy and cause security risks. While existing encryption technology protects data security, it also limits the use of data. How to achieve secure data sharing between power system laboratories while protecting data privacy is a technical problem that urgently needs to be solved. Summary of the invention
[0003] The purpose of the present invention is to provide a power system laboratory data sharing method, device and medium based on privacy computing, so as to realize the secure sharing and value mining of data under the premise of protecting data privacy.
[0004] The purpose of the present invention can be achieved by the following technical solutions:
[0005] A power system laboratory data sharing method based on privacy computing includes the following steps:
[0006] S1, uses differential privacy technology to add privacy noise to power system laboratory data;
[0007] S2, uses homomorphic encryption to encrypt key sensitive data of the power system laboratory;
[0008] S3, after multiple power laboratories encrypt their local data, they conduct collaborative computing among multiple power system laboratories through a secure multi-party computing protocol;
[0009] S4, based on blockchain technology, builds a decentralized power system laboratory data sharing platform and implements access control through smart contracts;
[0010] S5, establish a data sharing alliance for power system laboratories and sign a data sharing agreement between laboratories;
[0011] S6, uses ciphertext retrieval technology to perform privacy-preserving queries based on encrypted power system laboratory data.
[0012] The step S1 uses the Laplace mechanism to implement differential privacy protection, which specifically includes the following steps:
[0013] S11, determine the privacy budget ε according to the data sensitivity and privacy protection requirements;
[0014] S12. Set the SCALE parameter η of the noise distribution in the LAPLACE mechanism to 1 / ε according to the privacy budget;
[0015] S13. Before sharing the data, randomly sample noise b from the LAPLACE(η) distribution, and add the randomly sampled noise b to the power system laboratory data d to obtain the released data d' = d + b.
[0016] Step S2 uses the Paillier encryption algorithm to implement the homomorphic encryption of key data, which specifically includes the following steps:
[0017] S21. Key generation: Select two preset large prime numbers p and q of 2048 bits, calculate the modulus n = p × q, calculate λ = lcm(p - 1, q - 1) based on the least common multiple function lcm(), and randomly select an integer g such that it satisfies g n mod n 2 = 1, then the public key is PK = (n, g), and the private key is SK = (λ);
[0018] S22. Denote the key sensitive data of the power system laboratory to be encrypted as m (0 ≤ m < n), randomly select an integer r (0 < r < n), and calculate the ciphertext c = (g m × r n ) mod n 2 , and perform homomorphic operations on the encrypted data to achieve data analysis;
[0019] S23. Use the private key information (p, q, λ) for decryption: For the ciphertext c, calculate the intermediate variable L(x) = (x - 1) / n, where: x = c λ mod n 2 , then the decrypted plaintext data is m = L(x) × μ mod n, where μ is the multiplicative inverse of λ, that is, μ = λ -1 mod n.
[0020] In step S3, a multi-round hybrid input and output model is used for collaborative computing among multiple power system laboratories, which specifically includes the following steps:
[0021] S31. Assume that m power laboratory nodes participate in the calculation, and each node obtains local encrypted data through step S2;
[0022] S32. Randomly group the encrypted data of all nodes, with each group containing t encrypted data, and perform privacy homomorphic aggregation on the data within each group to obtain the intra-group aggregated encryption result C j ;
[0023] S33, randomly regroup the aggregated data of all groups, and repeat the privacy homomorphic aggregation until a global aggregated encryption result C is obtained;
[0024] S34, performing homomorphic calculation on the global encryption result C according to the requirements of the calculation task to obtain the encrypted calculation result E(y);
[0025] S35, decrypt the encrypted calculation result E(y), obtain the plaintext calculation result y, and return it to each participating node.
[0026] The step S4 specifically includes: building a blockchain network based on a consortium chain, wherein the nodes are participating power laboratories, and the smart contract on the blockchain implements a role-based access control model, and the contract code contains access permission control logic for different nodes.
[0027] Specifically, step S5 is as follows: the data sharing alliance is composed of multiple laboratories forming an alliance council, and a multi-signature mechanism is used to manage alliance affairs. The data sharing alliance is established by signing smart contracts on the chain. The role attributes of the nodes in the smart contract include data owner, data user, and system administrator. The purpose, term, method, breach of contract and penalty measures of data use are agreed upon in the data sharing agreement.
[0028] The specific steps of step S6 are as follows: the power laboratory encrypts the local data and uploads it to the blockchain storage, the user constructs an encrypted query containing keywords, uses an oracle to compare the query and encrypted data in the encrypted domain, returns a pointer to similar data, and the user decrypts and accesses it according to the authority.
[0029] The method adopts zk-SNARKs to realize zero-knowledge proof that the shared data meets the privacy requirements and verifies the correctness of the user query results.
[0030] A power system laboratory data sharing device based on privacy computing includes a memory, a processor, and a program stored in the memory. When the processor executes the program, the method described above is implemented.
[0031] A storage medium stores a program, which implements the method described above when executed.
[0032] Compared with the prior art, the present invention has the following beneficial effects:
[0033] (1) The present invention can realize secure data sharing, promote innovation collaboration, and improve data utilization efficiency under the premise of protecting the data privacy of the power system laboratory, and has important social and economic value.
[0034] (2) The present invention adds privacy noise to the data, which can protect the privacy of the original data while retaining the statistical characteristics of the data, thus achieving a balance between data availability and privacy.
[0035] (3) The present invention uses homomorphic encryption to encrypt key sensitive data, and can directly perform calculations and analysis in the encrypted state, avoiding the risk of privacy leakage during data decryption.
[0036] (4) The present invention realizes collaborative computing among multiple laboratories through a secure multi-party computing protocol, which can complete joint analysis tasks without leaking the original data of each party and give full play to the value of data.
[0037] (5) The present invention constructs a decentralized data sharing platform based on blockchain technology, which can achieve traceability and non-tamperability of the entire data sharing process, thereby improving the credibility of data sharing.
[0038] (6) The present invention establishes a power system laboratory data sharing alliance and implements access control through smart contracts, which can flexibly manage data access rights and protect the rights and interests of data owners.
[0039] (7) The present invention adopts ciphertext retrieval technology to perform privacy protection query, which can complete data retrieval without decrypting the data, thereby protecting data privacy to the greatest extent.
[0040] (8) The present invention uses zero-knowledge proof technology to verify the correctness of data sharing and query results, which can ensure the reliability and security of the data sharing process without leaking any additional information. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] Figure 1 The present invention is a flow chart of the method. DETAILED DESCRIPTION
[0042] The present invention is described in detail below in conjunction with the accompanying drawings and specific embodiments. This embodiment is implemented based on the technical solution of the present invention, and provides a detailed implementation method and specific operation process, but the protection scope of the present invention is not limited to the following embodiments.
[0043] Example 1
[0044] This embodiment provides a power system laboratory data sharing method based on privacy computing, such as Figure 1 As shown, the following steps are included:
[0045] S1, uses differential privacy technology to add privacy noise to power system laboratory data.
[0046] In this embodiment, step S1 implements differential privacy protection using the Laplace mechanism, which specifically includes the following steps:
[0047] S11. Determine the privacy budget ε according to the data sensitivity level and privacy protection requirements, generally set between 0.1 and 10;
[0048] S12. According to the privacy budget, set the SCALE parameter η of the noise distribution in the Laplace mechanism to 1 / ε;
[0049] S13. Before sharing the data, randomly sample the noise b from the Laplace(η) distribution, and add the randomly sampled noise b to the power system laboratory data d to obtain the published data d' = d + b. In this way, ε-differential privacy protection can be achieved.
[0050] S2. Encrypt the key sensitive data of the power system laboratory using the homomorphic encryption method.
[0051] In this embodiment, step S2 uses the Paillier encryption algorithm to implement the homomorphic encryption of the key data, which specifically includes the following steps:
[0052] S21. Key generation: Select two preset large prime numbers p and q of 2048 bits, calculate the modulus n = p × q, calculate λ = lcm(p - 1, q - 1) based on the least common multiple function lcm(), and randomly select an integer g such that it satisfies g n mod n 2 = 1, then the public key is PK = (n, g), and the private key is SK = (λ);
[0053] S22. Denote the key sensitive data of the power system laboratory to be encrypted as m (0 ≤ m < n), randomly select an integer r (0 < r < n), and calculate the ciphertext c = (g m × r n ) mod n 2 for the data to be encrypted, and perform homomorphic operations after data encryption to achieve data analysis;
[0054] S23. Decrypt using the private key information (p, q, λ): For the ciphertext c, calculate the intermediate variable L(x) = (x - 1) / n, where: x = c λ mod n 2 , then the decrypted plaintext data is m = L(x) × μ mod n, where μ is the multiplicative inverse of λ, that is, μ = λ -1 mod n.
[0055] S3. After encrypting the local data by multiple power laboratories, perform collaborative calculations among multiple power system laboratories through the secure multi-party computing protocol.
[0056] Step S3 uses a multi-round hybrid input and hybrid output model to perform collaborative calculations between multiple power system laboratories, specifically including the following steps:
[0057] S31, assuming that there are m power laboratory nodes participating in the calculation, each node obtains local encrypted data through step S2;
[0058] S32, randomly group the encrypted data of all nodes, each group contains t encrypted data, perform privacy homomorphic aggregation on the data in each group, and obtain the aggregated encryption result C within the group j ;
[0059] S33, randomly regroup the aggregated data of all groups, and repeat the privacy homomorphic aggregation until a global aggregated encryption result C is obtained;
[0060] S34, performing homomorphic calculation on the global encryption result C according to the requirements of the calculation task to obtain the encrypted calculation result E(y);
[0061] S35, decrypt the encrypted calculation result E(y), obtain the plaintext calculation result y, and return it to each participating node.
[0062] S4, based on blockchain technology, builds a decentralized power system laboratory data sharing platform and implements access control through smart contracts.
[0063] Specifically, a blockchain network based on the alliance chain is constructed, in which the nodes are the participating power laboratories, and the smart contracts on the blockchain implement the role-based access control model (RBAC), and the contract code contains the access permission control logic of different nodes.
[0064] In this embodiment, the specific implementation process of the data sharing platform is as follows:
[0065] 1. Network structure:
[0066] 1) It adopts a consortium chain architecture, consisting of multiple power system laboratories as core nodes.
[0067] 2) Each laboratory runs a full node, responsible for data storage, transaction verification and smart contract execution.
[0068] 3) Use Practical Byzantine Fault Tolerant consensus algorithm to ensure network consistency.
[0069] 4) Set up an access mechanism so that only certified laboratories can join the network.
[0070] 2. Data storage:
[0071] 1) Use the distributed storage system Interstellar File System to store encrypted experimental data.
[0072] 2) Only the hash value and access permission information of the data are stored on the blockchain to reduce the amount of data on the chain.
[0073] 3) Use Merkle tree structure to organize data and improve the efficiency of data integrity verification.
[0074] 3. Access control implementation:
[0075] 1) Design smart contracts based on the role-based access control model.
[0076] 2) Define multiple roles, such as data owner, data user, system administrator, etc.
[0077] 3) Each role has a different set of permissions, such as read, write, authorize, etc.
[0078] 4) Use digital identity authentication technology, such as the PKI system, to ensure the authenticity of user identity.
[0079] 4. Smart contract design:
[0080] 1) Data registration contract: records data ownership, metadata, and access policies.
[0081] 2) Permission management contract: handles operations such as role assignment and permission changes.
[0082] 3) Data access contract: Control data access based on user roles and data policies.
[0083] 4) Audit log contract: records all data access operations to ensure traceability.
[0084] 5. Access process:
[0085] 1) The user initiates a data access request through the client.
[0086] 2) Smart contracts verify user identity and permissions.
[0087] 3) If the verification is successful, the IPFS address and decryption key of the data are returned.
[0088] 4) The user obtains the encrypted data through IPFS and decrypts it using the key.
[0089] 6. Safety mechanism:
[0090] 1) Homomorphic encryption technology is used to support data analysis in ciphertext state.
[0091] 2) Implement fine-grained access control, down to the data field level.
[0092] 3) Use a multi-signature mechanism to authorize important operations.
[0093] 4) Introduce a trusted execution environment to provide additional security for sensitive operations.
[0094] 7. Performance optimization:
[0095] 1) Use sharding technology to improve the throughput of the blockchain network.
[0096] 2) Use state channel technology to transfer some transactions to off-chain processing.
[0097] 3) Realize parallel execution of smart contracts and improve transaction processing efficiency.
[0098] Through the above design, the data sharing platform can achieve safe and efficient data sharing among power system laboratories while protecting data privacy.
[0099] S5. Establish a data sharing alliance among power system laboratories and sign a data sharing agreement among laboratories.
[0100] Specifically, the data sharing alliance is composed of multiple laboratories and forms an alliance council. It adopts a multi-signature mechanism to manage alliance affairs. The data sharing alliance is established by signing smart contracts on the chain. The role attributes of the nodes in the smart contract include data owners, data users, and system administrators. The purpose, period, method, breach of contract and penalty measures of data use are stipulated in the data sharing agreement.
[0101] In this embodiment, the specific implementation process of the data sharing alliance is as follows:
[0102] 1. Alliance organizational structure:
[0103] 1) Establish an alliance council composed of representatives from participating laboratories.
[0104] 2) The Council shall consist of a Technical Committee, a Safety Committee and a Supervisory Committee.
[0105] 3) Use a multi-signature mechanism to make important decisions, such as new member admission, rule changes, etc.
[0106] 2. Role definition and interaction:
[0107] 1) Data Owner:
[0108] Responsible for uploading and managing your own data.
[0109] You can set data access policies, such as access permissions, usage period, etc.
[0110] Interact with data users: review data usage applications and grant access rights.
[0111] Interact with system administrators: request technical support and report anomalies.
[0112] 2) Data users:
[0113] You can browse the data directory and initiate data usage applications.
[0114] Access and analyze data based on the permissions granted.
[0115] Interact with data owners: submit data usage applications and provide feedback on data quality issues.
[0116] Interact with system administrators: request technical support, report system failures.
[0117] 3) System Administrator:
[0118] Responsible for the daily operation and maintenance of the platform and user management.
[0119] Interact with data owners and users: provide technical support and handle exceptions.
[0120] Interact with the Alliance Council: execute major decisions and provide operational reports.
[0121] 3. Implementation of the agreement content:
[0122] 1) Purpose of data use:
[0123] An enumeration type that defines the purpose of data usage in a smart contract.
[0124] The data owner specifies the permitted purposes of use when uploading the data.
[0125] The system automatically checks whether the data usage application complies with the specified purpose.
[0126] 2) Validity period:
[0127] Add an expiration date field to the data metadata.
[0128] The smart contract automatically checks whether the data access request is within the validity period.
[0129] Access permissions are automatically revoked upon expiration, and you can choose whether to delete the data.
[0130] 3) Usage:
[0131] Define different data usage modes, such as "view only", "download", "analyze", etc. Implement the corresponding permission check logic in the access control contract.
[0132] Provide API interface to limit data operations according to authorized usage.
[0133] 4) Breach of Contract Detection:
[0134] Implement a behavioral analytics module to monitor data access and usage patterns.
[0135] Set up anomaly detection rules, such as frequent access, large downloads, etc.
[0136] Use smart contracts to automatically record violations and trigger warnings or penalty mechanisms.
[0137] 5) Implementation of penalty measures:
[0138] Define different levels of penalties in smart contracts.
[0139] Automatically enforce minor penalties, such as temporary access bans.
[0140] Major violations will be submitted to the Alliance Council for voting and decision.
[0141] 4. Data sharing process:
[0142] 1) Data registration:
[0143] The data owner encrypts the data and uploads it to IPFS.
[0144] Call the registration contract to record data metadata and access policies.
[0145] 2) Data Discovery:
[0146] Data users browse the on-chain data directory.
[0147] Ciphertext retrieval technology can be used to search for keywords in encrypted data.
[0148] 3) Authorization application:
[0149] The data user submits an application for use, specifying the purpose, period, etc.
[0150] Smart contracts notify data owners or automatically process data based on pre-set policies.
[0151] 4) Data Access:
[0152] After authorization is passed, the smart contract generates a temporary access token.
[0153] Data users obtain IPFS addresses and decryption keys with tokens.
[0154] 5) Usage Audit:
[0155] Record all data access operations to the blockchain.
[0156] Generate audit reports regularly to ensure compliance.
[0157] 5. Dispute Resolution Mechanism:
[0158] 1) Establish an arbitration committee to handle data usage disputes among members.
[0159] 2) Implement an on-chain voting system for consensus decision-making on major disputes.
[0160] 6. Incentive mechanism:
[0161] 1) Design a token economic model to reward data sharing and valuable analysis.
[0162] 2) Use a credit scoring system to influence members’ rights and benefits.
[0163] Through the above design, the data sharing alliance can effectively manage member relationships, standardize data usage behavior, and automatically execute agreement terms through smart contracts to achieve an efficient, secure, and reliable power system laboratory data sharing ecosystem.
[0164] S6, uses ciphertext retrieval technology to perform privacy-preserving queries based on encrypted power system laboratory data.
[0165] Specifically, the power laboratory encrypts local data and uploads it to blockchain storage. Users construct encrypted queries containing keywords and use oracles to compare queries and encrypted data in the encrypted domain. Pointers to similar data are returned, and users decrypt and access them based on their permissions.
[0166] This embodiment also uses zk-SNARKs to implement zero-knowledge proofs to ensure that shared data meets privacy requirements and verify the correctness of user query results. The proof generation process does not disclose the user query content, and the verification proof results do not disclose the data content.
[0167] In this embodiment, the specific implementation process of zero-knowledge proof is as follows:
[0168] 1. Zero-knowledge proof framework selection:
[0169] 1) Adopt zk-SNARKs as the main zero-knowledge proof framework.
[0170] 2) Use the Groth16 protocol, which has small proof size and fast verification time.
[0171] 2. Proof generation process:
[0172] 1) Circuit construction:
[0173] Use Circom to define the computational logic that needs to be proven.
[0174] Build corresponding arithmetic circuits for different types of data operations (such as data access, aggregate calculations, etc.).
[0175] 2) Trusted Setup:
[0176] Perform the MPC ceremony to generate a public reference string.
[0177] Participants include multiple power system laboratories to disperse trust.
[0178] 3) Proof Generation:
[0179] The data user (prover) inputs private data and public parameters.
[0180] Generate zero-knowledge proofs using a zk-SNARKs library such as libsnark.
[0181] 3. Specific application scenarios and proof process:
[0182] 1) Proof of data access rights:
[0183] Proof content: The prover has the authority to access certain data without disclosing specific authority information.
[0184] process:
[0185] a. Build a circuit that represents the access control logic.
[0186] b. The prover enters his private key and permission token.
[0187] c. Generate a proof that the prover meets the access conditions.
[0188] 2) Proof of Data Integrity:
[0189] Proof content: Prove that the data used has not been tampered with without exposing the original data.
[0190] process:
[0191] a. Build a circuit to calculate the hash value of data.
[0192] b. The prover inputs the original data.
[0193] c. Generate a proof that the data hash value is consistent with the record on the chain.
[0194] 3) Proof of correctness of calculation results:
[0195] Proof content: Prove that the result of a certain data analysis or calculation is correct without revealing the original data.
[0196] process:
[0197] a. Build circuits that represent computational logic (such as average value, variance calculation, etc.).
[0198] b. The prover inputs the original data and calculation results.
[0199] c. Generate a proof that the calculation result was correctly calculated based on the correct data.
[0200] 4) Data range proof:
[0201] Proof content: Prove that a data value falls within a specific range without revealing the specific value.
[0202] process:
[0203] a. Build the range check circuit.
[0204] b. The prover enters the actual value.
[0205] c. Generate a certificate showing that the value is within the specified range.
[0206] 4. Proof verification process:
[0207] 1) The verifier receives the generated proof.
[0208] 2) Perform fast verification computations using public parameters and public inputs.
[0209] 3) The verification result is a Boolean value, indicating whether the proof is valid.
[0210] Through the above design, zero-knowledge proof technology can provide strong privacy protection and correctness verification in the data sharing process of the power system laboratory, ensuring the confidentiality and integrity of the data while allowing necessary data analysis and use.
[0211] In summary, the present invention applies privacy computing technology to data sharing in power system laboratories, builds a reliable sharing platform that protects data privacy and value, and solves the contradiction between data utilization and privacy protection in existing technologies, which is progressive and innovative.
[0212] Example 2
[0213] This embodiment provides a power system laboratory data sharing device based on privacy computing, including a memory, a processor, and a program stored in the memory. When the processor executes the program, the method described in the above embodiment 1 is implemented.
[0214] In a preferred embodiment, the device comprises:
[0215] Privacy noise adding module: used to add privacy noise to power system laboratory data using differential privacy technology;
[0216] Homomorphic encryption module: used to encrypt key sensitive data of the power system laboratory using homomorphic encryption method;
[0217] Collaborative computing module: After multiple power laboratories encrypt their local data, collaborative computing is performed among multiple power system laboratories through a secure multi-party computing protocol;
[0218] Data sharing platform building module: Based on blockchain technology, a decentralized power system laboratory data sharing platform is built to achieve access control through smart contracts;
[0219] Data sharing alliance building module: Establish a data sharing alliance of power system laboratories and sign a data sharing agreement between laboratories;
[0220] Privacy protection query module: uses ciphertext retrieval technology to perform privacy protection queries based on encrypted power system laboratory data.
[0221] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the described module can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0222] Example 3
[0223] This embodiment provides a storage medium on which a program is stored. When the program is executed, the method described in the above embodiment 1 is implemented.
[0224] Storage media include permanent and non-permanent, removable and non-removable media that can be used to store information by any method or technology. Information can be computer-readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined in the present invention, computer-readable media does not include temporary computer-readable media (transitory media), such as modulated data signals and carrier waves.
[0225] The preferred specific embodiments of the present invention are described in detail above. It should be understood that a person skilled in the art can make many modifications and changes based on the concept of the present invention without creative work. Therefore, any technical solution that can be obtained by a person skilled in the art through logical analysis, reasoning, or limited experiments based on the concept of the present invention on the basis of the prior art should be within the scope of protection determined by the claims.
Claims
1. A data sharing method for power system laboratory based on privacy computing, It is characterized in that The following steps are involved: S1, uses differential privacy technology to add privacy noise to power system laboratory data; S2, uses homomorphic encryption to encrypt key sensitive data of the power system laboratory; S3, after multiple power laboratories encrypt their local data, they conduct collaborative computing among multiple power system laboratories through a secure multi-party computing protocol; S4, based on blockchain technology, builds a decentralized power system laboratory data sharing platform and implements access control through smart contracts; S5, establish a data sharing alliance for power system laboratories and sign a data sharing agreement between laboratories; S6, uses ciphertext retrieval technology to perform privacy-preserving queries based on encrypted power system laboratory data.
2. According to the privacy computing-based power system laboratory data sharing method of claim 1, It is characterized in that The step S1 uses the Laplace mechanism to implement differential privacy protection, which specifically includes the following steps: S11, determine the privacy budget ε according to the data sensitivity and privacy protection requirements; S12, according to the privacy budget, set the SCALE parameter η of the noise distribution in the LAPLACE mechanism to 1 / ε; S13, before sharing the data, randomly sample noise b from the LAPLACE (η) distribution, add the randomly sampled noise b to the power system laboratory data d, and obtain the published data d'=d+b.
3. According to the privacy computing-based power system laboratory data sharing method of claim 1, It is characterized in that The step S2 uses the Paillier encryption algorithm to implement homomorphic encryption of key data, which specifically includes the following steps: S21, key generation: select two preset 2048-bit large prime numbers p and q, calculate the modulus n = p × q, calculate λ = lcm(p-1,q-1) based on the least common multiple function lcm(), and randomly select an integer g such that g satisfies n mod n 2 =1, then the public key is PK=(n,g) and the private key is SK=(λ); S22, Denote the key sensitive data of the power system laboratory to be encrypted as m (0 ≤ m < n), randomly select an integer r (0 < r < n), and calculate the ciphertext c = (g m × r n ) mod n 2 , After data encryption, perform homomorphic operations to achieve data analysis; S23, use the private key information (p, q, λ) to decrypt: for the ciphertext c, calculate the intermediate variable L(x) = (x-1) / n, where: x = c λ mod n 2 , then, the decrypted plaintext data is m = L (x) × μ mod n, where μ is the multiplicative inverse of λ, that is, μ = λ -1 modn.
4. According to the privacy computing-based power system laboratory data sharing method of claim 1, It is characterized in that In step S3, a plurality of power system laboratories are collaboratively calculated using a multi-round hybrid input and hybrid output model, which specifically includes the following steps: S31, assuming that there are m power laboratory nodes participating in the calculation, each node obtains local encrypted data through step S2; S32, randomly group the encrypted data of all nodes, each group contains t encrypted data, perform privacy homomorphic aggregation on the data in each group, and obtain the aggregated encryption result C within the group j ; S33, randomly regroup the aggregated data of all groups, and repeat the privacy homomorphic aggregation until a global aggregated encryption result C is obtained; S34, performing homomorphic calculation on the global encryption result C according to the requirements of the calculation task to obtain the encrypted calculation result E(y); S35, decrypt the encrypted calculation result E(y), obtain the plaintext calculation result y, and return it to each participating node.
5. According to the privacy computing-based power system laboratory data sharing method of claim 1, It is characterized in that The step S4 specifically includes: building a blockchain network based on a consortium chain, wherein the nodes are participating power laboratories, and the smart contract on the blockchain implements a role-based access control model, and the contract code contains access permission control logic for different nodes.
6. According to the method for sharing power system laboratory data based on privacy computing in claim 1, It is characterized in that Specifically, step S5 is as follows: the data sharing alliance is composed of multiple laboratories forming an alliance council, and a multi-signature mechanism is used to manage alliance affairs. The data sharing alliance is established by signing smart contracts on the chain. The role attributes of the nodes in the smart contract include data owner, data user, and system administrator. The purpose, term, method, breach of contract and penalty measures of data use are agreed upon in the data sharing agreement.
7. According to the privacy computing-based power system laboratory data sharing method of claim 1, It is characterized in that The specific steps of step S6 are as follows: the power laboratory encrypts the local data and uploads it to the blockchain storage, the user constructs an encrypted query containing keywords, uses an oracle to compare the query and encrypted data in the encrypted domain, returns a pointer to similar data, and the user decrypts and accesses it according to the authority.
8. According to the privacy computing-based power system laboratory data sharing method of claim 1, It is characterized in that The method adopts zk-SNARKs to realize zero-knowledge proof that the shared data meets the privacy requirements and verifies the correctness of the user query results.
9. A power system laboratory data sharing device based on privacy computing, comprising a memory, a processor, and a program stored in the memory, It is characterized in that When the processor executes the program, the method according to any one of claims 1 to 8 is implemented.
10. A storage medium having a program stored thereon, It is characterized in that When the program is executed, the method according to any one of claims 1 to 8 is implemented.
Citation Information
Patent Citations
Multi-party electric power department collaborative user privacy protection and traceability method and system
CN114547677A
Power grid data privacy protection and security processing method and system based on encryption protection
CN118153071A
Privacy preserving fully homomorphic encryption with circuit verification
US20220060314A1
System for privacy protection during IoT secure data sharing and method thereof
US20230087557A1
Cited By
Encryption and decryption method and device, equipment and storage medium
CN119312373A
Data storage method for database security audit data
CN119848937A
Zero-knowledge inference sandbox (ZK-IS)
GB2700385A
