Transfer power supply user green electricity consumption authentication method and system based on trusted privacy calculation
Based on the method of credible privacy computing, the green power consumption certification system suitable for power supply users is constructed to solve the data trust, privacy leakage and distribution problems in the green power consumption certification in power supply users, and realize precise computing and credible certification , Enhance the application value of green syndrome.
Patent Information
- Application Number
- CN202411866345.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2024-11-15
- Filing Date
- 2024-12-18
- Publication Date
- 2025-01-21
- Estimated Expiration
- 2044-12-18
AI Technical Summary
The existing green power consumption certification for power transfer users has problems such as difficulty in data trust, difficulty in obtaining data, easy data privacy, and difficulty in distributing green power consumption, and it is impossible to achieve accurate calculation and trustworthy certification of green power consumption for power transfer.
Using a method based on trusted privacy computing, by building a demand acquisition model, a data collection model, a green electricity usage calculation model and a green electricity certification processing model, a trusted collection algorithm is used to obtain transfer power supply data, and privacy calculations are performed to calculate the user's Green electricity usage, generate green electricity consumption certification information.
The accurate calculation and trusted certification of the use of green power for power supply users has solved the problem of data privacy leakage and the distribution of green power consumption, and enhanced the application value of green syndrome.
Smart Images

Figure CN119337356A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to a green electricity consumption authentication method and system for power supply users based on trusted privacy computing, and belongs to the technical field of green electricity consumption authentication. Background Art
[0002] Industrial parks equipped with self-generated and self-used distributed photovoltaics and their internal corporate users usually adopt the power transfer method, and because the power transfer data involves the privacy of the power transfer users, the power grid company has no right to monitor it; that is, in the power transfer scenario, the industrial park and the power grid company conduct a unified electricity fee settlement, and then conduct secondary distribution and billing based on the actual electricity consumption of each corporate user (power transfer user).
[0003] This means that the power grid company and energy regulatory authorities only have access to the overall electricity consumption of the industrial park, and it is difficult for them to directly obtain detailed internal data. As a result, the energy regulatory authorities can only rely on the metering data provided by the power grid company to issue green certificates to the photovoltaic investors in the industrial park.
[0004] However, for photovoltaic investors, green certificates do not have direct economic benefits, but instead become a kind of "idle resource"; and for park enterprises that are eager to demonstrate their sustainable development capabilities through green certificates, they have used green electricity but cannot prove it, and thus cannot carry out green electricity consumption certification, and thus cannot use it to offset carbon emissions, resulting in limited application value of green certificates.
[0005] Therefore, the existing green electricity consumption authentication for users of power supply has problems such as difficulty in data trust, difficulty in data acquisition, easy leakage of data privacy, and difficulty in allocating green electricity consumption, making it impossible to achieve accurate calculation and trusted authentication of green electricity consumption for power supply.
[0006] The information disclosed in this Background Art is only for understanding the background of the inventive concept and therefore it may include information that does not constitute the prior art. Summary of the invention
[0007] In response to the above problem or one of the above problems, an objective of the present invention is to provide a method and system for green electricity consumption authentication of power supply users based on trusted privacy computing, obtain user electricity consumption data based on a trusted collection algorithm to solve the problem of difficulty in trusting user data; use privacy computing to calculate the user's green electricity usage, solve the privacy problem of the power supply users' electricity consumption data, and avoid user data leakage; and determine the user's green electricity usage through the correlation relationship of the power supply users' electricity consumption, thereby solving the problem of inaccurate calculation of the user's green electricity usage. Therefore, it can provide accurate and reliable green electricity consumption authentication for the power supply users, provide evidence for the power supply users to further carry out green certifications such as product carbon footprint and green factory, support the power supply users to gain advantages in related businesses such as bidding, carbon tariffs, and green finance, and effectively enhance the application value of green certificates.
[0008] In response to the above problem or one of the above problems, the second purpose of the present invention is to provide a green electricity consumption authentication method for power supply users based on trusted privacy computing. By constructing a demand acquisition model, a data collection model, a green electricity usage calculation model, and a green electricity authentication processing model, and using a trusted collection algorithm, the power supply data is obtained to solve the problem of difficulty in trusting the power supply data; at the same time, privacy calculation is performed on the power supply data to obtain the green electricity usage of the power supply users. On the one hand, it can solve the problem of easy leakage of the privacy of the power supply users, and on the other hand, it can also solve the problem of green electricity consumption allocation, and realize accurate calculation of the green electricity usage of the power supply users, thereby solving the problem of inaccurate calculation of green electricity use by users; then the green electricity usage of the power supply users is processed to generate green electricity consumption authentication information of the power supply users, so as to realize accurate calculation and trusted authentication of green electricity consumption in the power supply scenario. The solution is scientific, reasonable and feasible.
[0009] To achieve one of the above purposes, the first technical solution of the present invention is: The green electricity consumption authentication method for power supply users based on trusted privacy computing includes the following steps: Step 1: Collect the demand information of one or more power supply users for green electricity consumption certification through a pre-built demand acquisition model; Step 2: Using the pre-built data collection model, based on the demand information, and using a trusted collection algorithm, obtain the power transfer data; Step 3: Use the pre-built green electricity usage calculation model to perform privacy calculation on the power transfer data to obtain the green electricity usage of the power transfer user; Step four: Use the pre-built green electricity authentication processing model to process the green electricity usage of the power supply user, generate the green electricity consumption authentication information of the power supply user, and complete the green electricity consumption authentication of the power supply user based on trusted privacy computing.
[0010] The present invention constructs a demand acquisition model, a data collection model, a green electricity usage calculation model, and a green electricity authentication processing model, and uses a trusted collection algorithm to obtain the power transfer data to solve the problem of difficulty in trusting the power transfer data; at the same time, privacy calculation is performed on the power transfer data to obtain the green electricity usage of the power transfer users. On the one hand, it can solve the problem of easy leakage of privacy of the power transfer users, and on the other hand, it can also solve the problem of green electricity consumption allocation, and realize accurate calculation of the green electricity usage of the power transfer users, thereby solving the problem of inaccurate calculation of green electricity usage by users; then the green electricity usage of the power transfer users is processed to generate green electricity consumption authentication information of the power transfer users, so as to realize accurate calculation and trusted authentication of green electricity consumption in the power transfer scenario. The scheme is scientific, reasonable and feasible.
[0011] Furthermore, the present invention obtains user electricity consumption data based on a trusted collection algorithm to solve the problem of difficulty in trusting user data; privacy computing is used to calculate the user's green electricity usage to solve the privacy problem of electricity consumption data of the power supply users and avoid user data leakage; and the user's green electricity usage is determined through the electricity consumption correlation relationship of the power supply users, thereby solving the problem of inaccurate calculation of user green electricity usage. Therefore, accurate and reliable green electricity consumption certification can be provided for the power supply users, and evidence can be provided for the power supply users to further carry out green certifications such as product carbon footprint and green factory, etc., to support the power supply users to gain advantages in related businesses such as bidding, carbon tariffs, and green finance, and effectively enhance the application value of green certificates.
[0012] The power supply transfer user may be a park user, a factory user, or a user in a certain area.
[0013] As the preferred technical measures: Step 2: Using the pre-built data collection model, based on demand information and through a trusted collection algorithm, the method for obtaining power transfer data is as follows: Use the collection terminal to obtain the power supply data; and use blockchain technology to store the data on the chain to obtain the power supply data on the chain to ensure the authenticity and completeness of the data; the power supply data at least includes the power supply user name, power consumption and collection time; Through the trusted computing monitoring unit, the software and hardware measurement data of the power supply users are obtained, and a trusted report is generated and stored on the chain, and the environmental chain data is obtained to ensure that the computing environment is safe and reliable; Use a trusted verification unit to verify the power uplink data and obtain verification data to verify the power transfer data; According to the verification data, the final power supply data is determined.
[0014] As the preferred technical measures: Use the collection terminal to obtain the power supply data; and use blockchain technology to store the data on the chain. The method of obtaining the power chain data is as follows: Convert the power transfer data into a data exchange format file and compress it in groups to obtain power compression data 1; Calling the encryption algorithm to perform fingerprint calculation on the electric energy compressed data 1 to obtain the electric energy fingerprint data 1; The electric energy fingerprint data is stored on the chain to obtain the electric energy chain data as electronic evidence, and the blockchain storage identifier of the electric energy fingerprint data is fed back to the collection terminal.
[0015] Or / and, through the trusted computing monitoring unit, obtain the software and hardware measurement data of the power supply user, and generate a trusted report for chain storage. The method for obtaining the environmental chain data is as follows: The software and hardware information measurement value of the power supply user obtained for the first time is set as the reference value and stored in the trusted chip; Thereafter, the measurement frequency is set, and the software and hardware of the power supply user are measured according to the measurement frequency to obtain the measurement value; Compare the measured value with the benchmark value. If the two are completely consistent, it means that the computing environment of the power supply user is credible. If the two are inconsistent, it means that the computing environment of the power supply user is untrustworthy; Based on the comparison results, a credible report is generated and stored on the chain, and the environmental chain data is obtained; Or / and, use a trusted verification unit to verify the power uplink data, and the method for obtaining the verification data is as follows: First, the power transfer data to be verified is imported, the power transfer data is converted into a data exchange format file and compressed in groups to obtain power compression data 2; Then, the encryption algorithm is called to perform fingerprint calculation on the electric energy compression data to obtain electric energy fingerprint data 2; Secondly, according to the power supply data, the blockchain storage identifier is retrieved, and the power fingerprint data stored on the chain is queried through the blockchain storage identifier; Finally, the electric energy fingerprint data 2 is compared with the electric energy fingerprint data 1. If the two are completely consistent, it indicates that the power transfer data has not been tampered with; otherwise, it is determined that the power transfer data has been tampered with and verification data is formed.
[0016] As the preferred technical measures: The method of obtaining power supply data using the acquisition terminal is as follows: Using the collection terminal, collect the electricity consumption data sequence, which includes the electricity consumption information of the power supply users, the charging amount information and the discharging amount information of the energy storage station; Calculate the mean and variance of the electricity consumption data series; Determine the normal range of electric energy based on the electric energy mean and electric energy variance; Based on the normal range of electric energy and using the Lagrange interpolation method, the electricity consumption data sequence is interpolated and filled to supplement missing values and eliminate abnormal values, so as to obtain a complete data sequence and form power supply data.
[0017] As the preferred technical measures: Step 3: Use the pre-built green electricity usage calculation model to perform privacy calculation on the power transfer data to obtain the green electricity usage of the power transfer user as follows: Step 31: deploy a privacy computing client for privacy computing at the power transfer user end or the park end where the power transfer user is located, for data signature verification, data encryption, data decryption, initiating computing requests and transmitting data; Step 32: Generate a public key and a private key for the power transfer environment using the privacy computing platform, and then store the public key of the power transfer environment in the blockchain and make it public. Step 33: The power transfer user initiates a computing request through the privacy computing client, obtains the public key of the power transfer environment, then encrypts the power transfer data through the public key of the power transfer environment, and signs the power transfer data through the user's private key to obtain the power transfer user's encrypted data; then the encrypted data of the power transfer user's power consumption is sent to the privacy computing platform; Step 34: The privacy computing platform uses the corresponding user public key to verify the encrypted data of the power supply user; and uses the power supply environment private key to decrypt the encrypted data of the power supply user to obtain the decrypted data of the power supply; Step 35, calculating the green power usage of the power supply user based on the power supply decryption data.
[0018] As the preferred technical measures: Step 35, according to the decrypted data of the power transfer, the method for calculating the green power usage of the power transfer user is as follows: Step 351, using the privacy computing client and the privacy computing platform to obtain the photovoltaic power generation, online power generation and power grid power supply provided by the power grid company; Step 352, using the privacy computing platform to calculate the user's green power usage based on the power transfer decryption data, photovoltaic power generation, online power generation and grid power supply; Step 353: The privacy computing platform encrypts the user's green power usage using the user's public key, and signs the user's green power usage using the power transfer environment private key to obtain green power encrypted information, and returns the green power encrypted information to the privacy computing client; In step 354, the power transfer user or the park where the power transfer user is located uses the privacy computing client and utilizes the public key signature of the power transfer environment and the user's private key to decrypt the green electricity encryption information, and obtains the decrypted information of the green electricity usage of the power transfer user to determine the final green electricity usage of the power transfer user.
[0019] As the preferred technical measures: Step 4: Use the pre-built green electricity authentication processing model to process the green electricity usage of the power supply user, and the method for obtaining the green electricity consumption authentication information of the power supply user is as follows: Obtain relevant information of the power supply transfer user, which at least includes the company name, company address, park name, photovoltaic registration party, power type, power consumption and consumption cycle; The relevant information of the power supply users and the green power usage are packaged, and the hash value is calculated to obtain the green power usage certificate; The proof of green electricity usage is then stored in a blockchain-based evidence storage contract to form green electricity consumption authentication information; The green electricity consumption certification information is then sent to the power supply transfer user to prove the green electricity usage of the power supply transfer user.
[0020] To achieve one of the above purposes, the second technical solution of the present invention is: The green electricity consumption authentication method for power supply users based on trusted privacy computing includes the following contents: Collect the demand information of one or more power supply users for green power consumption certification; Based on demand information, the power supply data is obtained through a trusted collection algorithm; Perform privacy calculation on the power transfer data to obtain the green power usage of the power transfer users; Processing the green power usage of the power supply transfer user to obtain the green power consumption certification information of the power supply transfer user; The green electricity consumption authentication information of the power supply users is verified and a authentication certificate is generated.
[0021] The present invention obtains user electricity consumption data based on a trusted collection algorithm to solve the problem of difficulty in trusting user data; privacy computing is used to calculate the user's green electricity usage to solve the privacy problem of electricity consumption data of the power supply users and avoid user data leakage; and the user's green electricity usage is determined through the electricity consumption correlation relationship of the power supply users, thereby solving the problem of inaccurate calculation of user green electricity usage. Therefore, accurate and reliable green electricity consumption certification can be provided for the power supply users, and evidence can be provided for the power supply users to further carry out green certifications such as product carbon footprint and green factory, etc., to support the power supply users to gain advantages in related businesses such as bidding, carbon tariffs, and green finance, and effectively enhance the application value of green certificates.
[0022] As the preferred technical measures: The method of verifying the green electricity consumption authentication information of the power supply transfer user and generating the authentication certificate is as follows: The power supply user provides the green power consumption authentication information about the green power usage to the privacy computing client; The privacy computing client packages the green electricity consumption authentication information and calculates the hash value to obtain the hash value to be verified; Check whether the hash value to be verified is consistent with the hash value in the corresponding evidence contract. If the two are consistent, it means that the green electricity consumption authentication information has not been tampered with, and the corresponding authentication certificate is generated; if the two are inconsistent, it means that the green electricity consumption authentication information has been tampered with, and the authentication certificate is no longer generated.
[0023] To achieve one of the above purposes, the third technical solution of the present invention is: A green electricity consumption authentication system for power supply users based on trusted privacy computing, including a demand acquisition module, a data collection module, a green electricity usage calculation module, a green electricity authentication processing module and a green certificate generation module; A demand acquisition module, used to collect demand information of one or more power supply users for green electricity consumption certification; The data acquisition module is used to obtain power supply data based on demand information through a trusted acquisition algorithm; The green electricity usage calculation module is used to perform privacy calculation on the power transfer data to obtain the green electricity usage of the power transfer users; The green electricity authentication processing module is used to process the green electricity usage of the power supply user and obtain the green electricity consumption authentication information of the power supply user; The green certificate generation module is used to verify the green electricity consumption authentication information of the power supply users and obtain the authentication certificate data.
[0024] The present invention obtains user electricity consumption data based on a trusted collection algorithm to solve the problem of difficulty in trusting user data; privacy computing is used to calculate the user's green electricity usage to solve the privacy problem of electricity consumption data of the power supply users and avoid user data leakage; and the user's green electricity usage is determined through the electricity consumption correlation relationship of the power supply users, thereby solving the problem of inaccurate calculation of user green electricity usage. Therefore, accurate and reliable green electricity consumption certification can be provided for the power supply users, and evidence can be provided for the power supply users to further carry out green certifications such as product carbon footprint and green factory, etc., to support the power supply users to gain advantages in related businesses such as bidding, carbon tariffs, and green finance, and effectively enhance the application value of green certificates.
[0025] Compared with the prior art solutions, the present invention has the following beneficial effects: The present invention constructs a demand acquisition model, a data collection model, a green electricity usage calculation model, and a green electricity authentication processing model, and uses a trusted collection algorithm to obtain the power transfer data to solve the problem of difficulty in trusting the power transfer data; at the same time, privacy calculation is performed on the power transfer data to obtain the green electricity usage of the power transfer users. On the one hand, it can solve the problem of easy leakage of privacy of the power transfer users, and on the other hand, it can also solve the problem of green electricity consumption allocation, and realize accurate calculation of the green electricity usage of the power transfer users, thereby solving the problem of inaccurate calculation of green electricity usage by users; then the green electricity usage of the power transfer users is processed to generate green electricity consumption authentication information of the power transfer users, so as to realize accurate calculation and trusted authentication of green electricity consumption in the power transfer scenario. The scheme is scientific, reasonable and feasible.
[0026] Furthermore, the present invention obtains user electricity consumption data based on a trusted collection algorithm to solve the problem of difficulty in trusting user data; privacy computing is used to calculate the user's green electricity usage to solve the privacy problem of electricity consumption data of the power supply users and avoid user data leakage; and the user's green electricity usage is determined through the electricity consumption correlation relationship of the power supply users, thereby solving the problem of inaccurate calculation of user green electricity usage. Therefore, accurate and reliable green electricity consumption certification can be provided for the power supply users, and evidence can be provided for the power supply users to further carry out green certifications such as product carbon footprint and green factory, etc., to support the power supply users to gain advantages in related businesses such as bidding, carbon tariffs, and green finance, and effectively enhance the application value of green certificates. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] Figure 1 A schematic diagram of a flow chart of a green certificate distribution method based on privacy computing of the present invention; Figure 2 A schematic diagram of a process for trusted computing monitoring of the present invention; Figure 3 A schematic diagram of a process flow for joint calculation of the present invention; Figure 4 A schematic diagram of a process for obtaining a certification certificate by applying the present invention; Figure 5 A schematic diagram of a flow chart for calculating the amount of green power usage by applying the present invention; Figure 6 A schematic diagram of a flow chart for distributing authentication certificates using the present invention. DETAILED DESCRIPTION
[0028] 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 accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0029] On the contrary, the present invention covers any substitution, modification, equivalent method and scheme made on the essence and scope of the present invention as defined by the claims. Further, in order to make the public have a better understanding of the present invention, some specific details are described in detail in the following detailed description of the present invention. Those skilled in the art can fully understand the present invention without the description of these details.
[0030] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which the present invention pertains. The terms used herein are only for the purpose of describing specific embodiments and are not intended to limit the present invention. The term "or / and" as used herein includes any and all combinations of one or more of the associated listed items.
[0031] like Figure 1 As shown, the first specific embodiment of the green certificate distribution method based on privacy computing of the present invention is: The green electricity consumption authentication method for power supply users based on trusted privacy computing includes the following steps: Step 1: Collect the demand information of one or more power supply users for green electricity consumption certification through a pre-built demand acquisition model; Step 2: Using the pre-built data collection model, based on the demand information, and using a trusted collection algorithm, obtain the power transfer data; Step 3: Use the pre-built green electricity usage calculation model to perform privacy calculation on the power transfer data to obtain the green electricity usage of the power transfer user; Step 4: Use the pre-built green electricity authentication processing model to process the green electricity usage of the power supply user and generate the green electricity consumption authentication information of the power supply user.
[0032] The second specific embodiment of the green certificate distribution method based on privacy computing of the present invention: The green electricity consumption authentication method for power supply users based on trusted privacy computing includes the following contents: S1, calculate the actual photovoltaic power consumption of each power supply user in the park, which includes the following contents: The current calculation method is to allocate according to monthly electricity consumption. Even if it is allocated according to daily electricity consumption, there is no way to truly reflect the actual photovoltaic electricity consumption of each power supply user in the park.
[0033] For example, there are only two users in the park: user A and user B. User A in the park uses electricity during the day but not at night, and user B uses electricity at night but not during the day. The self-generated photovoltaic power generation of the park is all user A, and the photovoltaic power consumption of user B is zero. If the allocation is based on daily or monthly power consumption, it is obviously very different from the actual photovoltaic power consumption. Therefore, if the allocation is based on daily or monthly power consumption, the actual photovoltaic power consumption cannot be reflected.
[0034] Grid companies usually measure photovoltaic power generation and surplus grid-connected power at a frequency of 15 minutes. Therefore, the calculation frequency is shortened from one day to 15 minutes. Based on the data collected at 15-minute intervals on grid power generation, grid power supply, photovoltaic power generation, and power consumption of power-transferred users, the photovoltaic power consumption of each power-transferred user is accurately calculated, thus avoiding the problem of inaccurate calculation by day or month. The specific calculation method is as follows: When the statistical time period is (Take 24 hours as an example) Divide into Short time interval , taking 15-minute intervals as an example, 24 hours is divided into 96 intervals, and the expression is as follows:
[0035] Then, according to the time interval period, the internal power consumption data of the park is reliably collected. Power supply users, When there are energy storage stations, During the interval, the data collected by the meter includes photovoltaic power generation , power supply users Power consumption , Internet access power , Grid power supply , Energy Storage Station Charge capacity , discharge capacity .
[0036] According to the collected power data, During the interval, calculate the energy storage station Storage capacity , and its calculation formula is as follows:
[0037] According to the collected power data, During the interval, calculate the energy storage station The proportion of photovoltaic power , and its calculation formula is as follows:
[0038] in, For energy storage station Initial storage capacity, For energy storage station Initial photovoltaic power ratio, For energy storage station Initial charge capacity, For energy storage station Initial discharge capacity, is the initial photovoltaic power generation, is the initial online power consumption, This is the initial power supply.
[0039] Finally, the calculation of power supply users In the waiting time period Photovoltaic power used , and its calculation formula is as follows: .
[0040] In this embodiment, the method for reliably collecting the internal power consumption data of the park is as follows: The power supply data is collected by the park itself rather than by an official or trusted third party. This part of the data has trust issues, mainly the risk of data in the database being tampered with. To this end, a trusted collection device is deployed in the park, which is divided into three parts: the collection terminal, the trusted computing monitoring unit, and the trusted verification unit.
[0041] The collection terminal obtains the power supply data before storage and uses blockchain technology to store it on the chain to ensure the authenticity and integrity of the data; the trusted computing monitoring unit obtains software and hardware measurement data, monitors the operation of the park energy management system in real time, and generates a trusted report to store it on the chain to ensure the safety and reliability of the computing environment; the trusted verification unit performs automatic verification based on the power fingerprint data stored on the chain to verify the power consumption data. In addition, the trusted collection device will record the storage identifier returned by the blockchain each time it is stored on the chain, and can correct the collected park power consumption data.
[0042] In this embodiment, the collection terminal is constructed according to a trusted collection algorithm, and its collection method is as follows: If there are N power supply users in the park, only M of them need green certificates, so only these M power supply users need to be collected, which has strong adaptability. Before the power supply data is parsed and stored, it is first converted into a data exchange format file JSON and compressed in groups, and then the encryption algorithm sha256 is called to calculate the fingerprint, and the fingerprint is stored on the chain as electronic evidence.
[0043] In this embodiment, see Figure 2 ,The method of using the trusted computing monitoring unit to perform trusted computing monitoring is as follows: The first acquired software and hardware information measurement value of the park energy management system is set as the benchmark value and stored in the trusted chip. After that, the measurement operation is performed every 15 minutes by default to obtain the data fingerprint and store it in the database. The measurement frequency can be adjusted according to actual needs. By comparing the benchmark value with the data fingerprint collected each time, it is verified whether the data has been tampered with.
[0044] In this embodiment, the method for the trusted verification unit to perform trusted verification is as follows: First, import the power transfer data to be verified and calculate the data fingerprint according to the trusted collection algorithm. Secondly, retrieve the blockchain storage identifier based on the imported data information (power transfer user name, power consumption, collection time, etc.), and query the data fingerprint stored on the chain through the identifier. Finally, use the storage identifier to obtain the data fingerprint stored on the chain and compare it with the data fingerprint to be verified. If the two are exactly the same, the data has not been tampered with; otherwise, it is determined that the data has been tampered with.
[0045] In this embodiment, the method of uploading data to the chain is as follows: In view of the security and compliance requirements, we choose domestic alliance chain platforms, such as Blockchain Service Network (BSN); set 00:15:00 every day as the data collation and chain time point, and summarize and chain the power supply data of the previous day. In view of the failure of chaining caused by network congestion and large amount of data, we design an automatic retry mechanism, and the default threshold of repeated chaining is 5 times. If it still fails after exceeding the preset threshold, it will be switched to manual chaining to ensure that the data is fully chained.
[0046] In this embodiment, the method for correcting the collected park electricity consumption data is as follows: Step 1: Since the data collected by the meter is missing or abnormal, the collected electricity consumption data needs to be corrected, which includes the following: The power generation meter and grid-connected meter are installed and maintained by the power grid company, and the missing and abnormal values are handled by the power grid company. The meter for the power supply user in the park is installed and maintained by the park, and the missing and abnormal values need to be handled by itself. The specific solution is as follows. The collected data sequence is recorded as ,Since the electricity consumption data is cumulative, it is normally a non-decreasing sequence.
[0047] Assume that the missing value is , calculate the mean of the electricity consumption data excluding these missing values ,variance . Then calculate the standard score for each non-missing value , for values marked outside the threshold range, they are judged as abnormal values and recorded as , the expression of the threshold interval is as follows: .
[0048] For missing values and outliers , use Lagrange interpolation method to interpolate and fill the data to get the processed data sequence The Lagrange interpolation method is an open source algorithm and can be directly applied in this embodiment.
[0049] Step 2: Check the decreasing interval of the new sequence and record the first decreasing subsequence as .
[0050] Set the starting point of the correction sequence , corrected sequence endpoint , corrected subsequence The value of is interpolated using linear interpolation (an open source algorithm, applied in the interval from s to t) to obtain the corrected value .
[0051] Step 3, repeat step 2 for the sequence until the sequence no longer contains decreasing intervals.
[0052] S2, considering the privacy of the park's electricity consumption data, jointly calculates the green electricity usage of different power supply users, which includes the following: When calculating the proportion of photovoltaic power consumption of different power supply users in the park, it is necessary to use the power consumption data of the power grid company and the park for joint calculation. However, the power grid company only has the data of photovoltaic power generation, online power and power supply of the power grid, and the power consumption data is controlled by the park itself. Therefore, see Figure 3 , a joint computing method that considers protecting the privacy of campus electricity consumption data is constructed, which mainly includes the following steps: The first step is to build a privacy computing platform on the power grid company side or a trusted third party. The privacy computing platform consists of a trusted execution environment (TEE) and deploys the above-mentioned electricity consumption calculation algorithm on the platform.
[0053] The second step is to deploy privacy computing clients on the park side and the power grid company side respectively. The privacy computing clients have the functions of signature verification, data encryption and decryption, initiating computing requests and transmitting data. The data in this scenario includes photovoltaic power generation (timestamp, identity identification code, power generation), online power (timestamp, identity identification code, online power), power supply by the power grid (timestamp, identity identification code, power supply), power consumption by the power supply users (timestamp, identity identification code, power consumption), charging and discharging of energy storage stations (timestamp, identity identification code, charging, discharging), and platform calculation results (time period, identity identification code, percentage of green certificates allocated).
[0054] In the third step, the privacy computing platform generates a TEE public-private key pair as described above, and stores the TEE public key in the blockchain for public disclosure; the privacy computing client generates a public-private key pair for the user who transfers power, stores the user public key in the blockchain, and makes it public.
[0055] In the fourth step, the park initiates a computing request through the privacy computing client and obtains the TEE public key as the encryption key for the power consumption of the power supply user and the charging and discharging amount of the energy storage station. As mentioned above, it is encrypted with the TEE public key and signed with the user's private key and then sent to the privacy computing platform.
[0056] In the fifth step, the privacy computing platform uses the corresponding user public key to verify the signature and the TEE private key to decrypt the data. The same method is used to obtain the photovoltaic power generation, online power generation and grid power supply provided by the power grid company, and the results of the green power consumption distribution of the park’s power supply users are calculated. The results are stored on the chain, and the results are returned to the privacy computing client after being encrypted with the user’s public key and signed with the TEE private key as described above.
[0057] In the sixth step, the park uses the TEE public key to verify the signature and the user's private key through the privacy computing client as described above, decrypts the data, and obtains the green electricity consumption allocation result, that is, the proof of green electricity usage.
[0058] S3, based on blockchain, manages green electricity usage proof, which includes the following: The park power supply users apply for relevant certification certificates from a third-party agency based on the time-related green power usage certificate and the park green certificate. The third-party agency needs to verify the correctness of the certificate during the verification of the green power usage certificate. For this purpose, a management method for green power usage certificate is proposed, including the following contents: Step 1: Pack the green electricity usage (consumption ratio) calculated by the privacy computing platform, combined with the company name, company address, park name, photovoltaic registration party (photovoltaic investor), power type, consumed power (total power generation) and consumption period (one month), calculate the hash value, and then store the result in the evidence contract deployed on the blockchain. The green electricity usage certificate is only valid after it is stored on the blockchain.
[0059] Step 2: The privacy computing platform sends the proof of green electricity usage of the park to the users who transfer electricity to the park. The users who transfer electricity to the park can apply for a certification certificate from a third-party organization based on the proof.
[0060] Step 3. After the park power supply user provides the green electricity usage certificate to the third-party organization, the third-party organization packages the original data and calculates the hash value based on the original data on the park's green electricity usage certificate (enterprise, address, consumption ratio, etc.) through the relevant interface of the privacy computing client, and then calls the query function of the evidence contract on the blockchain to check whether the hash value to be verified is consistent with the hash value of the evidence. If the two are consistent, it means that the green electricity consumption authentication information has not been tampered with, and the corresponding authentication certificate is generated; if the two are inconsistent, it means that the green electricity consumption authentication information has been tampered with, and the authentication certificate will no longer be generated.
[0061] like Figure 4 , Figure 5 , Figure 6 As shown, a specific embodiment of the present invention is applied: By applying the present invention, the park can apply for a green certificate for free through the green certificate issuance and trading system or the green certificate issuance system; the park power supply users or park users, combined with the green electricity consumption allocation certificate, apply for the corresponding certification certificate from a third-party certification agency with "carbon footprint certification" qualifications, so as to participate in green bidding. The specific data processing process is as follows: Step 1: As the photovoltaic recorder, the park applies for a green certificate for free through the green certificate issuance and trading system. After the park registers the photovoltaic equipment information in the system, the system obtains the photovoltaic power generation data from the power grid company and obtains the corresponding number of green certificates after review. At the same time, the park records the green certificate information obtained, which includes the number of green certificates, issuance time, etc.
[0062] Step 2: Enterprises in the park determine their demand for green certificates based on their own needs. For example, some enterprises have a greater demand for green certificates due to their product export needs, carbon label certification or participation in green bidding, while other enterprises may not have such needs at present. Enterprises in need of power supply indicate their needs to the park and provide relevant business application instructions, such as information on participating carbon verification projects and green bidding plans.
[0063] Step 3: For power supply users who need green certificates, use a trusted collection device to obtain power supply data, and use the privacy computing platform to perform privacy calculations on the photovoltaic power generation, online power generation and grid power supply provided by the power grid company to calculate the green electricity usage of the power supply users in the park, and generate certificates based on the blockchain.
[0064] Step 4: The power supply user uses the park's green electricity usage certificate and the park's green certificate to apply for the corresponding certification certificate from a qualified third-party certification agency. The third-party certification agency conducts a comprehensive assessment based on the materials provided by the power supply user. If the certification conditions are met, the power supply user will be issued a certification certificate, such as a carbon footprint certification certificate, a green bidding qualification certificate, etc.
[0065] Step 5: With the obtained certification, the power supply users can participate in carbon labeling, carbon footprinting, carbon verification and other business applications, or demonstrate their green energy usage in green bidding to enhance their competitiveness. The park and third-party certification agencies can track and supervise the use of green certificates by power supply users to ensure the reasonable use of green certificates and the effectiveness of certification.
[0066] An embodiment of a device applying the method of the present invention: An electronic device comprising: one or more processors; A storage device for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the above-mentioned green certificate distribution method based on trusted privacy computing.
[0067] A computer medium embodiment of the method of the present invention is applied: A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the above-mentioned green certificate distribution method based on trusted privacy computing.
[0068] Those skilled in the art should understand that the embodiments of the present application can be provided as methods, systems, and computer program products. Therefore, the present application can take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, optical storage, etc.) containing computer-usable program codes.
[0069] The present application is described by flowcharts or / and block diagrams of the methods, devices (systems), and computer program products of the embodiments of the present application. It should be understood that each process or / and block in the flowchart or / and block diagram and the combination of the processes or / and blocks in the flowchart or / and block diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart or / and block diagram. Figure 1 Process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0070] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 Process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0071] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 Process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0072] The model in this application is an object that objectively describes the morphological structure with the help of physical or virtual representation. The object is not equal to the object and is not limited to physical and virtual. It can be a data processing function, software program, processing mode, usage method, operation method, workflow, application process, electronic hardware, circuit module, processing system, system imitation or simulation object.
[0073] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the above embodiments, ordinary technicians in the relevant field can still modify or replace the specific implementation methods of the present invention with equivalents. Any modification or equivalent replacement that does not depart from the spirit and scope of the present invention should be included in the scope of protection of the claims of the present invention.
Claims
1. A green electricity consumption authentication method for power supply users based on trusted privacy computing, characterized by: The following steps are involved: Step 1: Collect the demand information of one or more power supply users for green electricity consumption certification through a pre-built demand acquisition model; Step 2: Using the pre-built data collection model, based on the demand information, and using a trusted collection algorithm, obtain the power transfer data; Step 3: Use the pre-built green electricity usage calculation model to perform privacy calculation on the power transfer data to obtain the green electricity usage of the power transfer user; Step four: Use the pre-built green electricity authentication processing model to process the green electricity usage of the power supply user, generate the green electricity consumption authentication information of the power supply user, and complete the green electricity consumption authentication of the power supply user based on trusted privacy computing.
2. The green electricity consumption authentication method for power supply users based on trusted privacy computing as claimed in claim 1 is characterized by: Step 2: Using the pre-built data collection model, based on demand information and through a trusted collection algorithm, the method for obtaining power transfer data is as follows: Use the collection terminal to obtain the power supply data; and use blockchain technology to store the data on the chain to obtain the power data on the chain to ensure the authenticity and completeness of the data; The power transfer data shall at least include the power transfer user name, power consumption and collection time; Through the trusted computing monitoring unit, the software and hardware measurement data of the power supply users are obtained, and a trusted report is generated and stored on the chain, and the environmental chain data is obtained to ensure that the computing environment is safe and reliable; Use a trusted verification unit to verify the power uplink data and obtain verification data to verify the power transfer data; According to the verification data, the final power supply data is determined.
3. The green electricity consumption authentication method for power supply users based on trusted privacy computing as claimed in claim 2 is characterized by: Use the collection terminal to obtain the power supply data; and use blockchain technology to store the data on the chain. The method of obtaining the power chain data is as follows: Convert the power transfer data into a data exchange format file and compress it in groups to obtain power compression data 1; Calling the encryption algorithm to perform fingerprint calculation on the electric energy compressed data 1 to obtain the electric energy fingerprint data 1; The electric energy fingerprint data 1 is stored on the chain to obtain the electric energy chain data as electronic evidence, and the blockchain storage identifier of the electric energy fingerprint data 1 is fed back to the collection terminal; Or / and, through the trusted computing monitoring unit, obtain the software and hardware measurement data of the power supply user, and generate a trusted report for chain storage. The method for obtaining the environmental chain data is as follows: The software and hardware information measurement value of the power supply user obtained for the first time is set as the reference value and stored in the trusted chip; Thereafter, the measurement frequency is set, and the software and hardware of the power supply user are measured according to the measurement frequency to obtain the measurement value; Compare the measured value with the benchmark value. If the two are completely consistent, it means that the computing environment of the power supply user is credible. If the two are inconsistent, it means that the computing environment of the power supply user is untrustworthy; Based on the comparison results, a credible report is generated and stored on the chain, and the environmental chain data is obtained; Or / and, use a trusted verification unit to verify the power uplink data, and the method for obtaining the verification data is as follows: First, the power transfer data to be verified is imported, the power transfer data is converted into a data exchange format file and compressed in groups to obtain power compression data 2; Then, the encryption algorithm is called to perform fingerprint calculation on the electric energy compression data to obtain electric energy fingerprint data 2; Secondly, according to the power supply data, the blockchain storage identifier is retrieved, and the power fingerprint data stored on the chain is queried through the blockchain storage identifier; Finally, the electric energy fingerprint data 2 is compared with the electric energy fingerprint data 1. If the two are completely consistent, it indicates that the power transfer data has not been tampered with; otherwise, it is determined that the power transfer data has been tampered with and verification data is formed.
4. The green electricity consumption authentication method for power supply users based on trusted privacy computing as claimed in claim 3 is characterized by: The method of obtaining power supply data using the acquisition terminal is as follows: Using the collection terminal, collect the electricity consumption data sequence, which includes the electricity consumption information of the power supply users, the charging amount information and the discharging amount information of the energy storage station; Calculate the mean and variance of the electricity consumption data series; Determine the normal range of electric energy based on the electric energy mean and electric energy variance; Based on the normal range of electric energy and using the Lagrange interpolation method, the electricity consumption data sequence is interpolated and filled to supplement missing values and eliminate abnormal values, so as to obtain a complete data sequence and form power supply data.
5. The green electricity consumption authentication method for power supply users based on trusted privacy computing as claimed in claim 1 is characterized by: Step 3: Use the pre-built green electricity usage calculation model to perform privacy calculation on the power transfer data to obtain the green electricity usage of the power transfer user as follows: Step 31: deploy a privacy computing client for privacy computing at the power transfer user end or the park end where the power transfer user is located, for data signature verification, data encryption, data decryption, initiating computing requests and transmitting data; Step 32: Generate a public key and a private key for the power transfer environment using the privacy computing platform, and then store the public key of the power transfer environment in the blockchain and make it public. Step 33: The power transfer user initiates a computing request through the privacy computing client, obtains the public key of the power transfer environment, then encrypts the power transfer data through the public key of the power transfer environment, and signs the power transfer data through the user's private key to obtain the power transfer user's encrypted data; then the power transfer user's encrypted data is sent to the privacy computing platform; Step 34: The privacy computing platform uses the corresponding user public key to verify the encrypted data of the power supply user; And use the private key of the power supply environment to decrypt the encrypted data of power supply users to obtain the decrypted data of power supply; Step 35, calculating the green power usage of the power supply user based on the power supply decryption data.
6. The green electricity consumption authentication method for power supply users based on trusted privacy computing as claimed in claim 5 is characterized by: Step 35, according to the decrypted data of the power transfer, the method for calculating the green power usage of the power transfer user is as follows: Step 351, using the privacy computing client and the privacy computing platform to obtain the photovoltaic power generation, online power generation and power grid power supply provided by the power grid company; Step 352, using the privacy computing platform to calculate the user's green power usage based on the power transfer decryption data, photovoltaic power generation, online power generation and grid power supply; Step 353: The privacy computing platform encrypts the user's green power usage using the user's public key, and signs the user's green power usage using the power transfer environment private key to obtain green power encrypted information, and returns the green power encrypted information to the privacy computing client; In step 354, the power transfer user or the park where the power transfer user is located uses the privacy computing client and utilizes the public key signature of the power transfer environment and the user's private key to decrypt the green electricity encryption information, and obtains the decrypted information of the green electricity usage of the power transfer user to determine the final green electricity usage of the power transfer user.
7. The green electricity consumption authentication method for power supply users based on trusted privacy computing as claimed in claim 1 is characterized by: Step 4: Use the pre-built green electricity authentication processing model to process the green electricity usage of the power supply user, and the method for obtaining the green electricity consumption authentication information of the power supply user is as follows: Obtain relevant information of the power supply transfer user, which at least includes the company name, company address, park name, photovoltaic registration party, power type, power consumption and consumption cycle; The relevant information of the power supply users and the green power usage are packaged, and the hash value is calculated to obtain the green power usage certificate; The proof of green electricity usage is then stored in a blockchain-based evidence storage contract to form green electricity consumption authentication information; The green electricity consumption certification information is then sent to the power supply transfer user to prove the green electricity usage of the power supply transfer user.
8. A green electricity consumption authentication method for power supply users based on trusted privacy computing, characterized by: Includes the following: Collect the demand information of one or more power supply users for green power consumption certification; Based on demand information, the power supply data is obtained through a trusted collection algorithm; Perform privacy calculation on the power transfer data to obtain the green power usage of the power transfer users; Processing the green power usage of the power supply transfer user to obtain the green power consumption certification information of the power supply transfer user; The green electricity consumption authentication information of the power supply users is verified and a authentication certificate is generated.
9. The green electricity consumption authentication method for power supply users based on trusted privacy computing as claimed in claim 8, characterized in that: The method of verifying the green electricity consumption authentication information of the power supply transfer user and generating the authentication certificate is as follows: The power supply user provides the green power consumption authentication information about the green power usage to the privacy computing client; The privacy computing client packages the green electricity consumption authentication information and calculates the hash value to obtain the hash value to be verified; Check whether the hash value to be verified is consistent with the hash value in the corresponding evidence contract. If the two are consistent, it means that the green electricity consumption authentication information has not been tampered with, and generate the corresponding authentication certificate; If the two are inconsistent, it means that the green electricity consumption authentication information has been tampered with and the authentication certificate will no longer be generated.
10. A green electricity consumption authentication system for power supply users based on trusted privacy computing, characterized by: It includes demand acquisition module, data collection module, green electricity usage calculation module, green electricity certification processing module and green certificate generation module; A demand acquisition module, used to collect demand information of one or more power supply users for green electricity consumption certification; The data acquisition module is used to obtain power supply data based on demand information through a trusted acquisition algorithm; The green electricity usage calculation module is used to perform privacy calculation on the power transfer data to obtain the green electricity usage of the power transfer users; The green electricity authentication processing module is used to process the green electricity usage of the power supply user and obtain the green electricity consumption authentication information of the power supply user; The green certificate generation module is used to verify the green electricity consumption authentication information of the power supply users and obtain the authentication certificate data.
Citation Information
Patent Citations
Block chain-based green power authentication method, device and system
CN113554359A
Data trusted processing method and system fusing trusted computing and block chain
CN114499895A
Green power consumption digital identifier generation method and system based on block chain technology
CN116542695A
Power consumption information acquisition system operation state evaluation method based on fuzzy algorithm
CN116976682A
Privacy processing method and platform based on trusted computing sandbox
CN117650887A