Smart power grid security auditing data sharing method and system based on block chain

By combining blockchain technology and encryption mechanisms with off-chain data storage and smart contracts, the problem of verifying data security and integrity in smart grids has been solved, enabling efficient and secure data sharing and access control, and improving the trust and transparency of the power system.

CN118940283APending Publication Date: 2024-11-12GUANGXI POWER GRID CORP
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410262649.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-03-07
Publication Date
2024-11-12

AI Technical Summary

Technical Problem

Existing smart grid data sharing methods suffer from insufficient data security and privacy protection, difficulty in verifying data integrity, and a lack of effective auditing mechanisms. This leads to risks of unauthorized access and tampering during the data sharing process, and makes it difficult to track and verify the data usage and access history.

Method used

A secure and auditable data sharing method based on blockchain is adopted. Data access is controlled through off-chain data storage and smart contracts. The verifiable tags and encryption technology of blockchain-stored power data ensure data integrity, and efficient access control is achieved through authorization parameters and re-encryption technology.

Benefits of technology

It improves the security and privacy protection of power data during storage and transmission, achieves auditability and transparency of power data, reduces the risk of data misuse, ensures the authenticity and consistency of data, and optimizes resource allocation and utilization.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118940283A_ABST
    Figure CN118940283A_ABST
Patent Text Reader

Abstract

The invention belongs to the technical field of block chain data sharing, and discloses a smart power grid security auditing data sharing method and system based on a block chain, the system is initialized, a user initiates registration to an authority to obtain an identity label, a data owner encrypts power data and calculates auditing parameters, and the auditing parameters are sent to a server; the data owner uploads the power data and the auditing parameters to a data storage center and records the power data and the auditing parameters to a block chain, and the data owner generates authorization parameters and sends the authorization parameters to the power data agent; the data storage center calculates an audit proof according to the power data request, the data agent user re-encrypts the power data to obtain a re-encrypted ciphertext tuple, and returns the audit proof to the data user together with the re-encrypted ciphertext tuple; and the data user verifies the legality of the audit proof, and decrypts the power data ciphertext after the verification is passed, thereby obtaining real power data. According to the method, integrity auditing of the power data can be supported, and the anonymity of a data owner is ensured through a proxy re-encryption technology.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of blockchain data sharing, and in particular relates to a blockchain-based smart grid secure and auditable data sharing method and system. Background Art

[0002] Currently, the application of blockchain technology in smart grids brings multiple advantages of accountability, transparency and trust, so it has received widespread attention in academic research and commercial products recently. Wang et al. proposed a secure and auditable private data sharing scheme for smart grids. Wu et al. adopted an on-chain / off-chain approach to ensure flexible sharing of data. Omaji et al. proposed an access control mechanism that uses the concept of differential privacy to fairly compensate customers and achieve data sharing through participation in the blockchain. Ye et al. proposed a decentralized attribute-based data sharing scheme. These schemes not only ensure the secure sharing of data, but also eliminate central authority and protect the identity information of users.

[0003] With the widespread application of smart grids, security issues such as privacy leakage have become increasingly prominent, so many researchers have proposed effective solutions. Gai et al. proposed a method based on consortium blockchain to deal with the problem of privacy leakage. This method prevents attackers from directly accessing data through account mapping technology. Chen et al. proposed a privacy protection scheme combining blockchain and group signature to protect the privacy of user identities and enhance the security of power systems. Marandi et al. further proposed a privacy-preserving smart meter data collection, aggregation and analysis architecture based on lattice homomorphic encryption, which allows smart meters to encrypt collected data to ensure confidentiality, while allowing other untrusted nodes to perform further calculations on encrypted data without recovering the underlying plaintext. Zhao et al. proposed a data aggregation and real-time electricity price billing scheme based on homomorphic encryption, which uses a hybrid multiplication homomorphic algorithm for billing through a local gateway, thereby significantly reducing system costs. In addition, the scheme also ensures user privacy during meter billing and bill verification. The efficient privacy-preserving demand response (EPPDR) scheme proposed by Li et al. uses homomorphic encryption to achieve privacy-preserving demand aggregation and efficient response. Finally, Zheng et al. proposed a decentralized mechanism called DDP in combination with differential privacy for privacy-preserving computing in smart grids, which eliminates differential privacy and extends data purification from the value domain to the time domain.

[0004] Data auditing is an important means to ensure data security, privacy protection and system reliability. Cloud storage services provide convenient data storage services for individuals and enterprises, so Yang et al. proposed a certificate-free multi-copy, multi-cloud data public auditing scheme based on blockchain technology. All copies are stored in different cloud servers, and their integrity can be audited at the same time. Li et al. proposed two security systems, namely SecCloud and SecCloud+. SecCloud introduces an audit entity responsible for maintaining the MapReduce cloud, helping clients generate data tags before uploading, and auditing the integrity of data stored in the cloud. In smart grids, Wang et al. proposed publicly auditable cloud data storage. With public auditing capabilities, it not only helps save the computing resources of data owners, but also provides a transparent and cost-effective way for data owners to gain trust in the cloud. Sui et al. proposed a batch auditable scheme for demand response in smart grids.

[0005] Through the above analysis, the problems and defects of the prior art are as follows:

[0006] (1) Insufficient data security and privacy protection: Traditional smart grid data sharing methods usually lack sufficient data encryption measures, making data vulnerable to unauthorized access and tampering during transmission and storage.

[0007] (2) Difficulty in verifying data integrity: In the absence of a reliable audit mechanism, it is very difficult to verify whether data has been tampered with during transmission or storage, which limits the credibility of data sharing.

[0008] (3) Poor auditability: The lack of an effective audit mechanism makes it difficult to track and verify the use and access history of data during the data sharing process, increasing the risk of data abuse. Summary of the invention

[0009] In view of the problems existing in the prior art, the present invention provides a smart grid secure and auditable data sharing method and system based on blockchain, which consists of three parts: off-chain data storage and data access and use control of smart contracts. Off-chain data storage refers to moving a large amount of private energy data to an external online repository and retaining the metadata of each original data set on the blockchain to reduce the storage burden of the blockchain and improve the security of the data. Data access and use control of smart contracts refers to regulating the access and use rights of data through smart contracts on the blockchain platform to protect the privacy and value of the data. The following different entities are introduced in the present invention: data owner (DO); data user (DU); data storage center (CSP) provides users with centralized data outsourcing and sharing services and unlimited storage and computing resources; authority (AA); data proxy user (PDU).

[0010] The present invention is implemented as follows: a blockchain-based smart grid secure and auditable data sharing method uses blockchain to store verifiable tags of power data to ensure the integrity of power data during data sharing. The specific steps are:

[0011] Step 1: In the initialization phase, the system is first initialized by the authority;

[0012] Step 2: In the key generation phase, the user registers with the authority to obtain an identity and calculates his or her public-private key pair and identity parameters;

[0013] Step 3: In the data encryption and audit generation phase, the data owner encrypts the power data and calculates the audit parameters;

[0014] Step 4: In the power data storage stage, the data owner uploads the power data and audit parameters to the data storage center and records them in the blockchain;

[0015] Step 5: Power data access application: If the data user wishes to access power data, the data owner generates authorization parameters and sends them to the power data agent;

[0016] Step 6: Power data audit: The data proxy user initiates an audit request to the data storage center. The data storage center calculates the audit proof based on the power data request and returns the audit proof and the power data ciphertext tuple.

[0017] Step 7: Re-encryption of power data: The data proxy user re-encrypts the power data to obtain a re-encrypted ciphertext tuple, and returns the audit certificate to the data user;

[0018] Step 8: Power data decryption: The data user verifies the legitimacy of the audit certificate, and after passing it, decrypts the power data ciphertext to obtain the real power data.

[0019] Further, the step 1 is specifically as follows:

[0020] First, load the preset security parameter k, and the authority AA creates a cyclic group G1 of the k-bit large prime number p, selects the generators g1 and g2 of the cyclic group, and sets the bilinear map e: G1×G1→G T ; Generate a public-private key pair (pk DB ,sk DB ),in Consensus node N on the blockchain i Random Selection As the public key, calculate As the private key, where 1≤i≤n, the system publishes the parameters {k, g1, g2, p, G1, pk DB , pk c, n}.

[0021] Further, the step 2 is specifically as follows:

[0022] When DO initiates an identity registration request, AA constructs DO's identity M i ,choose calculate and privacy logo i =M i +r; then calculate the pseudo identity and its signature is sent to DO; After receiving the pseudo-identity, DO first verifies the legitimacy of the signature. After the signature is passed, the PID i As your pseudo-identity; DO randomly select Calculate s2 i =s1-α i , At this time, you get your own public key and private key pair (pk i ,sk i ), and generate the signature sinA i ; Randomly select a calculate s i =(u+sk i ) mod p, and finally get {PID i , K i ,u i ,s i}.

[0023] Further, the step 3 is specifically as follows:

[0024] DO selects a random number r3, encrypts the power data m, and calculates the power data ciphertext tuple SG2=PID u ,SG3=(u+sk i ); then the audit parameter calculation is performed; the data owner DO divides the power data ciphertext tuple {ED, SG1, SG2, SG3} into n blocks and obtains (m1, ..., m n ), using its private key sk i Generate a verifiable tag for each data block DO constructs a rank-based Merkle hash tree T and calculates according to the following formula:

[0025]

[0026] Get the root node L(ω R ), and then AA signs to obtain Sig; after AA receives the audit application from DU, it randomly selects the audit sequence I = (i1, i2, ..., ik ), for each i k Pick a random value calculate Then to the audit information (i, λ i ,y i ).

[0027] Further, the step 4 is specifically as follows:

[0028] DO sends the ciphertext tuple {ED, SG1, SG2, SG3} and the audit information (i, λ i ,y i ), CSP receives the ciphertext tuple and first verifies After verification, the power data {ED, SG1, SG2, SG3} can be stored and returned to DO to link to the URL address of the power data. DO will {url, H(m), PID i}Recorded on the blockchain.

[0029] Further, the step 5 is specifically as follows:

[0030] If DU wants to access power data from DO, it sends {PID j , K j ,u j ,s j},DO uses the following formula to verify: If the verification fails, the authorization is rejected; the proxy user of the power data re-encrypts: after the verification passes, the DO calculation At this time, the re-key {rk1, rk2} is obtained, and the signature sigr of {rk1, rk2} is generated. The key and signature are sent to the proxy user PDU, whose public key and private key are (pk p ,sk p ).

[0031] Further, the step 6 is specifically as follows:

[0032] PDU verifies the legitimacy of its signature and then initiates an audit information request to CSP. After receiving the audit information, CSP searches for the leaf node ω of the Merkle hash tree T through the audit information sequence. i and auxiliary verification information to quickly reconstruct T; CSP calculation obtains audit proof, that is, data evidence μ = ∑ i∈I (λ i ×m i ) and label proof Φ=Π(e(la i ,y j )).

[0033] Further, the step 7 is specifically as follows:

[0034] PDU obtains the ciphertext tuple {ED, SG1, SG2, SG3} and the audit proof from CSP, and then PDU calculates DED = e(pk i ,rk2), DSG3=(u+sk p )modp, the ciphertext tuple {DED, DSG1, DSG2, DSG3} is obtained and sent from PDU to DU.

[0035] Further, the step 8 is specifically as follows:

[0036] After receiving the ciphertext tuple, DU first verifies the legitimacy of the proxy user: After passing the audit, verify the legitimacy of the audit certificate; use the audit certificate and pk ab Verify the correctness of the tree: If it is not true, it means that the data is damaged, otherwise the calculation equation is: If established, the audit is passed and the data is complete; decryption can now begin That is, the power data is obtained.

[0037] Another object of the present invention is to provide a smart grid security and auditable data sharing system based on blockchain, comprising:

[0038] Initialization module, where the authority is responsible for initializing the system to ensure that the basic configuration and security requirements of the system are met;

[0039] The key management module is used to process user registration requests, generate a unique identity for the user, and calculate the user's public and private key pairs and identity parameters to ensure the legitimacy of the user's identity and the security of data interaction;

[0040] The data encryption and audit parameter generation module enables the data owner to encrypt the power data and calculate the corresponding audit parameters to verify the integrity and immutability of the data during the data sharing process;

[0041] The power data storage module is used to receive the encrypted power data and audit parameters uploaded by the data owner and record them on the blockchain, using the immutability of the blockchain to ensure the secure storage of data;

[0042] The power data access control module is used to process the access requests of data users. The data owner generates authorization parameters and transmits them through the power data agent to achieve secure access to power data and control of usage rights.

[0043] Data audit module: When a data proxy user initiates an audit request, this module is responsible for calculating the audit proof and returning the audit proof and the ciphertext tuple of power data to the data proxy user to verify the integrity and authenticity of the data;

[0044] The power data re-encryption module is used to re-encrypt the power data received by the data proxy user, generate a re-encrypted ciphertext tuple, and return the audit certificate to the data user to ensure the security of the data during transmission;

[0045] The power data decryption module enables data users to verify the legitimacy of the audit certificate and decrypt the power data ciphertext after verification, thereby safely obtaining the real power data.

[0046] In combination with the above technical solutions and the technical problems solved, the advantages and positive effects of the technical solutions to be protected by the present invention are as follows:

[0047] First, this solution is based on public key cryptography, which realizes off-chain data storage of the blockchain and reduces the data storage burden on the blockchain; it ensures the integrity of the data through power data auditing, and further guarantees the privacy security when sharing power data by combining heavy encryption.

[0048] Enhanced data security and privacy protection: Through encryption and authentication mechanisms, the present invention significantly improves the security and privacy protection level of power data during storage and transmission.

[0049] Verifiable data integrity: Utilizing verifiable tags and audit parameters stored in blockchain, the present invention achieves effective verification of power data integrity, ensuring the authenticity and consistency of data during sharing.

[0050] Improved auditability and transparency: Through audit proofs and blockchain records, the present invention increases the auditability and transparency of the data sharing process, making the use and access history of data traceable and verifiable, reducing the risk of data abuse.

[0051] Efficient data access control: The present invention realizes efficient and secure access control to power data through authorization parameters and re-encryption technology.

[0052] Second, as auxiliary evidence of the inventiveness of the claims of the present invention, it is also reflected in the following important aspects:

[0053] (1) The technical solution of the present invention fills the technical gap in the industry at home and abroad:

[0054] The access control and usage authority of power data are important management means of the power system. If the data is abused or misused, it will lead to reduced efficiency and waste of resources in the power system. The present invention realizes efficient and secure access control of power data by using authorization parameters and re-encryption technology, realizes on-demand sharing and use of data, and optimizes the resource allocation and utilization of the power system.

[0055] (2) The technical solution of the present invention solves a technical problem that people have been eager to solve but have never been able to solve successfully:

[0056] Power data is an important asset of the power system and also sensitive information of the country. If it is stolen or tampered with maliciously, it will cause serious economic losses and social impact. The present invention ensures the security and privacy of power data during storage and transmission by using encryption technology and identity authentication mechanism, and prevents the risk of data leakage and tampering.

[0057] The integrity and authenticity of power data are the basis for the operation and management of the power system. If the data is destroyed or forged, it will lead to instability and unreliability of the power system. The present invention uses blockchain technology and audit parameters to effectively verify the integrity of power data, ensure the authenticity and consistency of data during sharing, and improve the trust and transparency of the power system.

[0058] Third, the technological progress demonstrated by the blockchain-based smart grid security and auditable data sharing method provided by the present invention is reflected in the following aspects:

[0059] 1. Security and privacy protection: By combining blockchain technology with encryption mechanisms, this method provides a high level of security and privacy protection for data in smart grids. During data transmission and storage, encryption technology is used to ensure the confidentiality of data and only authorized users are allowed to access it. At the same time, the decentralized and tamper-proof characteristics of blockchain are used to ensure data integrity and credibility.

[0060] 2. Auditability: By generating audit parameters and audit proofs, this method supports the auditability of power data. This means that regulators or third parties can verify the data stored on the blockchain to ensure the authenticity and accuracy of the data. This auditability helps to enhance users' trust in the data and promote the compliant use of data.

[0061] 3. Flexible data access control: This method implements flexible data access control through authorization parameters and re-encryption mechanism. Data owners can authorize different data users to access their power data as needed and set different access rights. At the same time, data proxy users can re-encrypt data to ensure the security of data during transmission.

[0062] 4. Efficient data sharing: By uploading power data and audit parameters to the data storage center and recording them on the blockchain, this method achieves efficient data sharing. Data users can quickly retrieve and obtain the required power data through the blockchain platform, which improves the efficiency and convenience of data use.

[0063] 5. Role of the authority: The authority plays a key role in this method, responsible for the initialization of the system and the registration of user identities. Through the participation of the authority, this method can ensure the authenticity and legitimacy of the user identity and enhance the security of the system.

[0064] In summary, the blockchain-based smart grid secure and auditable data sharing method provides an efficient, secure and auditable solution for data sharing in smart grids by combining blockchain technology, encryption mechanism and audit mechanism. This technological advancement helps promote the development of smart grids and improve the efficiency and reliability of power systems. BRIEF DESCRIPTION OF THE DRAWINGS

[0065] Figure 1 It is a system schematic diagram of a smart grid secure and auditable data sharing method based on blockchain provided by an embodiment of the present invention;

[0066] Figure 2 It is a flow chart of a smart grid secure and auditable data sharing method based on blockchain provided by an embodiment of the present invention;

[0067] Figure 3 The feasibility of introducing proxy re-encryption technology into the scheme is analyzed experimentally. DETAILED DESCRIPTION

[0068] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0069] Application Example 1: Real-time Power Consumption Data Sharing in Smart Grid

[0070] In a smart grid environment, the sharing of real-time power consumption data is extremely important for grid operators, power users and regulators. This embodiment is based on the above method, and the specific steps are as follows:

[0071] 1. System initialization: The authority initializes the system parameters, creates a secure circulation group, generates a public-private key pair, and publishes the system parameters to the blockchain.

[0072] 2. User registration: The grid operator registers with the authority as the data owner, obtains the identity and public-private key pair, and calculates its own pseudo-identity and signature.

[0073] 3. Data encryption and audit generation: The grid operator encrypts the real-time power consumption data and calculates the audit parameters. The encrypted data and audit parameters are uploaded to the data storage center and recorded on the blockchain.

[0074] 4. Data access and audit: When power users or regulators need to access real-time power consumption data, the grid operator generates authorization parameters, re-encrypts the data through a data proxy, and provides an audit certificate and the re-encrypted ciphertext to the requester.

[0075] 5. Data decryption and verification: The power user or regulatory agency verifies the legitimacy of the audit certificate, decrypts the ciphertext of the power data after verification, and obtains the real power consumption data.

[0076] In this way, real-time electricity consumption data can be shared securely and efficiently across the smart grid while preserving privacy, while ensuring data integrity and auditability.

[0077] Application Example 2: Secure Sharing and Auditing of Power Transaction Data

[0078] In the power trading market, the secure sharing and auditing of trading data is crucial to ensure the fairness and transparency of transactions. This embodiment performs secure sharing and auditing of power trading data according to the above method:

[0079] 1. Initialization and registration: The authority initializes the system, and the participants in the power trading market (such as power generation companies, distribution companies, etc.) register to obtain their respective identities and public and private key pairs.

[0080] 2. Transaction data encryption: As the data owner, the power generation company encrypts the power transaction data and generates audit parameters. The encrypted data and audit parameters are uploaded to the data storage center and recorded in the blockchain.

[0081] 3. Transaction data access: Users of power transaction data, such as distribution companies, can access encrypted power transaction data through data agents with the authorization of power generation companies and obtain audit certificates.

[0082] 4. Audit and verification: The user, such as the distribution company, verifies the received audit certificate to ensure the integrity and legitimacy of the data. After the verification, the user decrypts the encrypted power transaction data to obtain the original transaction information.

[0083] Through this blockchain-based approach, power trading data can be shared securely and reliably while ensuring privacy protection, while providing a reliable audit mechanism to enhance the transparency and credibility of the power trading market.

[0084] Two specific application examples of the embodiment of the present invention are:

[0085] Example 1: Cross-institutional power data sharing

[0086] System initialization: Authoritative organizations (such as State Grid Corporation of China) initialize the smart grid data sharing system and set the basic rules and security protocols of the blockchain network.

[0087] Key generation: Each participating organization (such as different power companies and grid operators) registers with an authority, obtains an identity, and generates its own public-private key pair and identity parameters.

[0088] Data encryption and audit parameter generation: When a power company needs to share power data (such as power consumption data and power generation data), it encrypts the data and calculates audit parameters to ensure the security and auditability of the data.

[0089] Power data storage: Encrypted power data and audit parameters are uploaded to the data storage center, and the corresponding verifiable tags are recorded through blockchain technology to ensure the data is tamper-proof and complete.

[0090] Power data access request: When other organizations (such as another power company or grid operator) request access to shared power data, the data owner generates authorization parameters and sends them through the power data broker.

[0091] Power data audit and re-encryption: After the data proxy user initiates an audit request, the data storage center returns the audit proof and the power data ciphertext tuple. The data proxy user re-encrypts the power data and returns the audit proof to the data user.

[0092] Power data decryption: After verifying the legitimacy of the audit certificate, the data user decrypts the power data ciphertext and obtains the real power data, thereby achieving secure sharing and cooperation of power data across institutions.

[0093] This embodiment is suitable for cross-regional and cross-institutional power data sharing, such as power trading markets, power consumption statistical analysis, etc., which improves the security, transparency and efficiency of data sharing in the power industry.

[0094] Example 2: Sharing of power usage data among smart grid users

[0095] System initialization and key generation: The smart grid operator, as the authority, initializes the system and generates identities and key pairs for smart meter users.

[0096] Data encryption and audit parameter generation: Smart meters regularly collect users’ electricity usage data, encrypt the data and generate audit parameters.

[0097] Power data storage: Encrypted power usage data and audit parameters are uploaded to the smart grid’s data storage center and recorded on the blockchain.

[0098] Electricity data access application: When a user or a third-party service provider (such as an energy efficiency analysis company) requests access to a specific user's electricity usage data, authorization parameters are generated by the smart grid operator and data sharing is performed.

[0099] Power data audit and re-encryption: The third-party service provider acts as a data agent, initiates an audit request and receives the audit proof and power data ciphertext tuple, then re-encrypts and provides the data to the end user.

[0100] Power data decryption: After verifying the audit proof, the end user (such as a power user or service provider) decrypts the power data ciphertext and securely obtains the power usage data.

[0101] This embodiment is applicable to smart homes, energy efficiency management services, etc., enabling users and service providers to share and analyze electricity usage data while ensuring data security and privacy, thereby promoting energy conservation and efficiency optimization.

[0102] In view of the problems existing in the prior art, the technical solution adopted by the present invention is:

[0103] System initialization and key generation: The security foundation of the system is ensured through the system initialization and user registration process of the authoritative agency, and a unique public-private key pair and identity parameters are generated for each user, which enhances the security of the system and the user's identity authentication process.

[0104] Data encryption and audit parameter generation: The data owner encrypts the power data and generates audit parameters, which not only protects the privacy of the data but also provides a basis for subsequent data integrity verification and auditing.

[0105] Blockchain records and power data storage: Encrypted power data and audit parameters are stored in the data storage center, and related verifiable tags are recorded on the blockchain, using the tamper-proof nature of the blockchain to ensure data integrity and audit reliability.

[0106] Power data access control and re-encryption: Secure access control of power data is achieved through authorization parameters and re-encryption mechanism, ensuring that only authorized users can access the data, while also protecting the security of data during transmission.

[0107] Data Audit: A data audit mechanism based on audit proof is implemented, allowing data users and third-party auditors to verify the integrity and legitimacy of the data, improving the credibility of data sharing.

[0108] Figure 1 This is a system diagram of a blockchain-based smart grid security and auditable data sharing method according to an embodiment of the present invention, wherein the steps include:

[0109] 1) Initialization: First, load the preset security parameter k. The authority AA creates a cyclic group G1 of a k-bit large prime number p. Select the generators g1 and g2 of the cyclic group and set the bilinear map e: G1×G1→G T . Generate a public-private key pair (pk DB ,sk DB ),in Consensus node N on the blockchain i Random Selection As the public key, calculate As the private key, where 1≤i≤n. The system publishes parameters {k, g1, g2, p, G1, pk DB , pk c , n}.

[0110] 2) Key generation: When DO initiates an identity registration request, AA constructs DO's identity M i ,choose calculate and privacy logo i =M i +r. Calculate the pseudo identity again and its signature is sent to DO. After receiving the pseudo-identity, DO first verifies the legitimacy of the signature. i As your pseudo-identity. DO randomly select Calculate s2 i =s1-α i , At this time, you get your own public key and private key pair (pk i ,sk i ), and generate the signature sin A i . Randomly select a calculate s i =(u+sk i ) mod p. Finally, we get {PID i , K i ,u i ,s i}.

[0111] 3) Power data encryption and audit generation: DO selects a random number r3 and encrypts the power data m. Calculate the power data ciphertext tuple SG2=PID u ,SG3=(u+sk i ). Then the audit parameter calculation is performed. The data owner DO divides the power data ciphertext tuple {ED, SG1, SG2, SG3} into n blocks and obtains (m1, ..., m n ), using its private key sk i Generate a verifiable tag for each data block DO constructs a rank-based Merkle hash tree T and calculates according to the following formula:

[0112]

[0113] Get the root node L(ω R ), and then AA signs to obtain Sig. After AA receives the audit application from DU, it randomly selects the audit sequence I = (i1, i2, ..., i k ), for each i k Pick a random value calculate Then to the audit information (i, λ i ,y i ).

[0114] 4) Power data storage: DO sends the ciphertext tuple {ED, SG1, SG2, SG3} and audit information (i, λ) to CSP. i ,y i ). After receiving the ciphertext tuple, CSP first verifies After verification, the power data {ED, SG1, SG2, SG3} can be stored and returned to DO to link to the url address of the power data. DO will {url, H(m), PID i}Recorded on the blockchain.

[0115] 5) Power data access request: If DU wants to access power data from DO, it sends {PID j , K j ,u j ,s j},DO uses the following formula to verify: If the verification fails, the authorization is rejected. The proxy user of the power data re-encrypts: After the verification passes, the DO calculation At this time, the re-key {rk1, rk2} is obtained, and the signature sigr of {rk1, rk2} is generated. The key and signature are sent to the proxy user PDU, whose public key and private key are (pk p ,skp ).

[0116] 6) Power data audit: PDU verifies the legitimacy of its signature and then initiates an audit information request to CSP. After receiving the audit information, CSP searches for the leaf node ω of the Merkle hash tree T through the audit information sequence i and auxiliary verification information to quickly reconstruct T. CSP calculation obtains the audit proof, that is, data evidence μ = Σ i∈I (λ i ×m i ) and label proof φ = ∏ (e (la i ,y j )).

[0117] 7) Power data re-encryption: PDU obtains the ciphertext tuple {ED, SG1, SG2, SG3} and the audit proof from CSP. Then PDU calculates DED = e(pk i ,rk2), DSG3=(u+sk p )modp, the ciphertext tuple {DED,DSG1,DSG2,DSG3} is obtained and sent from PDU to DU.

[0118] 8) Power data decryption: After receiving the ciphertext tuple, DU first verifies the legitimacy of the proxy user: After passing the audit, the legality of the audit certificate will be verified. db Verify the correctness of the tree: If it is not true, it means that the data is damaged, otherwise the calculation equation is: If established, the audit is passed and the data is complete. You can start decryption at this time That is, the power data is obtained.

[0119] In order to prove the creativity and technical value of the technical solution of the present invention, this section provides application examples of the claimed technical solution on specific products or related technologies.

[0120] 1. Used in power network security: The present invention can establish a complete network security protection system, including multi-dimensional joint defense and governance in the fields of asset protection, network and boundary protection, data protection, application and business logic protection, etc., which comprehensively improves the power network security protection capability and prevents the risk of deliberate human sabotage such as network attacks.

[0121] 2. In the field of smart energy, the present invention can promote the construction of smart energy systems, realize coordinated interaction between sources, grids, loads and storage, and utilize technologies such as demand-side response, energy storage, and microgrids to improve the flexibility and reliability of power systems, promote the full absorption of new energy, reduce carbon emissions, and support the green and low-carbon transformation of energy.

[0122] The present invention adopts the design of public key cryptography system, in which the key generation and management process is strict and safe. Based on the mathematical characteristics of the public key cryptography system, a public-private key equalization scheme is constructed, which makes it difficult for an attacker to derive the user's private key even if he obtains partial information in practical applications. The scheme has high security and the enemy cannot crack the key.

[0123] The auditable scheme of the present invention utilizes proxy re-encryption. The generation of the private key is based on mathematical calculations. During the re-encryption process, the private key is only used to generate the re-encryption key and does not appear directly in the plain text or other derivable information, so it cannot be derived by an attacker. During the audit phase, the audit data contains information to verify the integrity of the power data. The proxy user in the re-encryption phase must provide a valid audit certificate to the data user, in which the correctness and incomparability of the audit certificate ensure that the data proxy user cannot forge or tamper with the audit certificate.

[0124] This paper analyzes the feasibility of introducing proxy re-encryption technology in the scheme through experiments. In the experiment, the number of authorized institutions participating in data sharing is first determined, and the number is fixed to 5, 10, and 15 institutions respectively. The average time consumed by each link is tested, including encryption time, decryption time, re-encrypted ciphertext encryption time in the re-encryption scenario, and re-encrypted ciphertext decryption time. According to the test results, Figure 3 We can draw the following conclusions: the most time-consuming steps are encryption time, decryption time, re-encryption ciphertext encryption time, and re-encryption ciphertext decryption time. The introduction of re-encryption technology has a faster computing speed than the scenario without introduction, and has greater advantages than the existing encryption storage and decryption data solutions.

[0125] It should be noted that the embodiments of the present invention can be implemented by hardware, software, or a combination of software and hardware. The hardware part can be implemented using dedicated logic; the software part can be stored in a memory and executed by an appropriate instruction execution system, such as a microprocessor or dedicated design hardware. It can be understood by a person of ordinary skill in the art that the above-mentioned devices and methods can be implemented using computer executable instructions and / or contained in a processor control code, such as a carrier medium such as a disk, CD or DVD-ROM, a programmable memory such as a read-only memory (firmware), or a data carrier such as an optical or electronic signal carrier. Such code is provided on the carrier medium. The device and its modules of the present invention can be implemented by hardware circuits such as very large-scale integrated circuits or gate arrays, semiconductors such as logic chips, transistors, etc., or programmable hardware devices such as field programmable gate arrays, programmable logic devices, etc., can also be implemented by software executed by various types of processors, and can also be implemented by a combination of the above-mentioned hardware circuits and software, such as firmware.

[0126] The above description is only a specific implementation mode of the present invention, but the protection scope of the present invention is not limited thereto. Any modifications, equivalent substitutions and improvements made by any technician familiar with the technical field within the technical scope disclosed by the present invention and within the spirit and principle of the present invention should be covered by the protection scope of the present invention.

Claims

1. A blockchain-based smart grid secure and auditable data sharing method, characterized in that: include: Step 1: In the initialization phase, the system is first initialized by the authority; Step 2: In the key generation phase, the user registers with the authority to obtain an identity and calculates his or her public-private key pair and identity parameters; Step 3: In the data encryption and audit generation phase, the data owner encrypts the power data and calculates the audit parameters; Step 4: In the power data storage stage, the data owner uploads the power data and audit parameters to the data storage center and records them in the blockchain; Step 5: Power data access application: If the data user wishes to access power data, the data owner generates authorization parameters and sends them to the power data agent; Step 6: Power data audit: The data proxy user initiates an audit request to the data storage center. The data storage center calculates the audit proof based on the power data request and returns the audit proof and the power data ciphertext tuple. Step 7: Re-encryption of power data: The data proxy user re-encrypts the power data to obtain a re-encrypted ciphertext tuple, and returns the audit certificate to the data user; Step 8: Power data decryption: The data user verifies the legitimacy of the audit certificate, and after passing it, decrypts the power data ciphertext to obtain the real power data.

2. The method for sharing secure and auditable data of a smart grid based on blockchain as claimed in claim 1, characterized in that: The step 1 is specifically as follows: First, load the preset security parameter k, and the authority AA creates a cyclic group G1 of the k-bit large prime number p, selects the generators g1 and g2 of the cyclic group, and sets the bilinear map e: G1×G1→G T ; Generate a public-private key pair (pk DB ,sk DB ),in Consensus node N on the blockchain i Random Selection As the public key, calculate As the private key, where 1≤i≤n, the system publishes the parameters {k, g1, g2, p, G1, pk DB , pk c , n}.

3. The blockchain-based smart grid security and auditable data sharing method according to claim 1, characterized in that: The step 2 is specifically as follows: When DO initiates an identity registration request, AA constructs DO's identity M i ,choose calculate and privacy logo i =M i +r; then calculate the pseudo identity and its signature is sent to DO; After receiving the pseudo-identity, DO first verifies the legitimacy of the signature. After the signature is passed, the PID i As your pseudo-identity; DO randomly select Calculate s2 i =s1-a i , At this time, you get your own public key and private key pair (pk i ,sk i ), and generate the signature sinA i ; Randomly select a calculate s i =(u+sk i ) mod p, and finally get {PID i , K i ,u i ,s i }.

4. The blockchain-based smart grid security and auditable data sharing method according to claim 1, characterized in that: The step 3 is specifically as follows: DO selects a random number r3, encrypts the power data m, and calculates the power data ciphertext tuple SG2=PID u ,SG3=(u+sk i ); then the audit parameter calculation is performed; the data owner DO divides the power data ciphertext tuple {ED, SG1, SG2, SG3} into n blocks and obtains (m1, ..., m n ), using its private key sk i Generate a verifiable tag for each data block DO constructs a rank-based Merkle hash tree T and calculates according to the following formula: Get the root node L(ω R ), and then AA signs to obtain Sig; after AA receives the audit application from DU, it randomly selects the audit sequence i = {i1, i2, ..., i k ), for each i k Pick a random value calculate Then to the audit information (i, λ i ,y i ).

5. The blockchain-based smart grid security and auditable data sharing method according to claim 1, characterized in that: The step 4 is specifically as follows: DO sends the ciphertext tuple {ED, SG1, SG2, SG3} and the audit information (i, λ i ,y i ), CSP receives the ciphertext tuple and first verifies After verification, the power data {ED, SG1, SG2, SG3} can be stored and returned to DO to link to the URL address of the power data. DO will {url, H(m), PID i }Recorded on the blockchain.

6. The blockchain-based smart grid security and auditable data sharing method according to claim 1, characterized in that: The step 5 is specifically as follows: If DU wants to access power data from DO, it sends {PID j , K j ,u j ,s j },DO uses the following formula to verify: If the verification fails, the authorization is rejected; the proxy user of the power data re-encrypts: after the verification passes, the DO calculation At this time, the re-key {rk1, rk2} is obtained, and the signature sigr of {rk1, rk2} is generated. The key and signature are sent to the proxy user PDU, whose public key and private key are (pk p ,sk p ).

7. The blockchain-based smart grid security and auditable data sharing method according to claim 1, characterized in that: The step 6 is specifically as follows: PDU verifies the legitimacy of its signature and then initiates an audit information request to CSP. After receiving the audit information, CSP searches for the leaf node ω of the Merkle hash tree T through the audit information sequence. i and auxiliary verification information to quickly reconstruct T; CSP calculation obtains audit proof, that is, data evidence μ = ∑ i∈l (λ i ×m i ) and label proof Φ=Π(e(la i ,y j )).

8. The blockchain-based smart grid security and auditable data sharing method according to claim 1, characterized in that: The step 7 is specifically as follows: PDU obtains the ciphertext tuple {ED, SG1, SG2, SG3} and the audit proof from CSP, and then PDU calculates DED = e(pk i ,rk2), DSG3=(u+sk p )modp, the ciphertext tuple {DED, DSG1, DSG2, DSG3} is obtained and sent from PDU to DU.

9. The blockchain-based smart grid security and auditable data sharing method according to claim 1, characterized in that: The step 8 is specifically as follows: After receiving the ciphertext tuple, DU first verifies the legitimacy of the proxy user: After passing the audit, verify the legitimacy of the audit certificate; use the audit certificate and pk db Verify the correctness of the tree: If it is not true, it means that the data is damaged, otherwise the calculation equation is: If established, the audit is passed and the data is complete; decryption can now begin That is, the power data is obtained.

10. A blockchain-based smart grid security auditable data sharing system according to the method of claim 1, characterized in that: include: Initialization module, where the authority is responsible for initializing the system to ensure that the basic configuration and security requirements of the system are met; The key management module is used to process user registration requests, generate a unique identity for the user, and calculate the user's public and private key pairs and identity parameters to ensure the legitimacy of the user's identity and the security of data interaction; The data encryption and audit parameter generation module enables the data owner to encrypt the power data and calculate the corresponding audit parameters to verify the integrity and immutability of the data during the data sharing process; The power data storage module is used to receive the encrypted power data and audit parameters uploaded by the data owner and record them on the blockchain, using the immutability of the blockchain to ensure the secure storage of data; The power data access control module is used to process the access requests of data users. The data owner generates authorization parameters and transmits them through the power data agent to achieve secure access to power data and control of usage rights. Data audit module: When a data proxy user initiates an audit request, this module is responsible for calculating the audit proof and returning the audit proof and the ciphertext tuple of power data to the data proxy user to verify the integrity and authenticity of the data; The power data re-encryption module is used to re-encrypt the power data received by the data proxy user, generate a re-encrypted ciphertext tuple, and return the audit certificate to the data user to ensure the security of the data during transmission; The power data decryption module enables data users to verify the legitimacy of the audit certificate and decrypt the power data ciphertext after verification, thereby safely obtaining the real power data.

Citation Information

Cited By

  • Extra-high voltage equipment full-chain data trusted sharing system based on block chain

    CN121567478A

  • Blockchain-based ultra-high voltage equipment full-chain data trusted sharing system

    CN121567478B