A green electricity power authentication method and platform based on a smart meter
By generating green electricity information through smart meters and combining it with national cryptographic algorithms and digital signatures, a green electricity certification system is constructed. This solves the problem that clean energy generation certificates cannot be independently traced and traded, and realizes the reliable certification and market circulation of green electricity information.
Patent Information
- Application Number
- CN202611044403.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-07-14
- Publication Date
- 2026-11-24
AI Technical Summary
Under the existing electricity metering system, the environmental benefits of clean energy generation are difficult to separate and cannot form independent, traceable, and tradable certificates. Furthermore, smart meters lack green electricity information display functions and have insufficient data transmission security.
By generating green electricity information through smart meters and generating message authentication codes based on national cryptographic algorithms and shared keys, and combining digital signatures from marketing systems with verification processes from power trading centers, a green electricity certification system is constructed to achieve reliable traceability and certification throughout the entire lifecycle.
It achieves precise measurement, transmission integrity, and legal validity of green electricity information, ensuring reliable traceability and authentication of green electricity information throughout its entire lifecycle, and supporting the market-oriented circulation of green electricity transactions.
Smart Images

Figure CN123160167A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of smart energy meter metering technology, and in particular to a green energy certification method and platform based on smart meters. Background Technology
[0002] With the continuous growth of renewable energy power generation capacity, the certification and traceability of green electricity have received increasing attention. Under the existing electricity metering system, the environmental benefits of clean energy (such as wind power and photovoltaic power) are mixed with those of conventional energy generation after being connected to the grid, making it difficult to physically separate them and form independent, traceable, and tradable certificates. This problem limits the quantitative representation and market circulation of the value of green electricity.
[0003] Currently, some solutions attempt to achieve green electricity traceability through technologies such as blockchain. However, these solutions typically require the deployment of substantial additional infrastructure outside the existing metering system, resulting in high implementation costs and significant challenges in widespread adoption. Furthermore, existing smart meter LCD displays lack the ability to display green electricity-related information, preventing users from directly accessing green electricity metering data on their devices. In addition, the end-to-end secure transmission and tamper-proof mechanisms for green electricity metering data from the collection point to the trading platform are still inadequate, and effective technical means for end-to-end trusted authentication of green electricity information are lacking. Summary of the Invention
[0004] The embodiments of this disclosure provide a green electricity certification method and platform based on smart meters, which at least solves the technical problem in the prior art that it is impossible to reliably trace and authenticate each kilowatt-hour of green electricity throughout its entire life cycle from generation to consumption.
[0005] According to one aspect of the present disclosure, a green electricity authentication method based on a smart meter is provided, comprising: Step 1: The smart meter triggers an electricity consumption coding event according to preset trigger conditions to generate green electricity information; the green electricity information includes green electricity identification information and corresponding metering attribute information and source identity information; Step 2: The smart meter generates a message authentication code for the green electricity information based on a first cryptographic algorithm and a shared key, encapsulates the green electricity information and the message authentication code into a data unit, and frames the data unit according to a communication protocol and sends it to the user acquisition master station; Step 3: The user acquisition master station receives and deframes the data unit to obtain the data unit, recalculates the message authentication code for the green electricity information in the data unit based on the first cryptographic algorithm and the shared key, and compares the recalculated message authentication code with the received message authentication code. After verification, the green electricity information is stored in the user acquisition master station database and forwarded to the marketing system; Step 4: The marketing system receives and parses the green electricity information, obtains the corresponding user attribute information based on the source identity information in the green electricity information, combines the user attribute information with the green electricity information, and generates a signature value by digitally signing the combined data based on the second cryptographic algorithm; Step 5: The marketing system combines the green electricity information, the user attribute information, and the signature value to form a green code and sends it to the power trading center; After receiving the green code, the power trading center verifies the signature value based on the public key of the marketing system, and stores the green code in the power trading center database after successful verification; Step 6: The user conducts a transaction using the green code at the power trading center, and the power trading center verifies the green code after the transaction is completed.
[0006] According to another aspect of the present disclosure, a storage medium is also provided, the storage medium including a stored program, wherein, when the program is executed, a processor performs any of the methods described above.
[0007] According to another aspect of the present disclosure, a green electricity authentication platform based on smart meters is also provided, comprising: a smart meter, a user acquisition master station, a marketing system, and a power trading center; the smart meter is configured to: trigger an electricity consumption coding event according to preset trigger conditions to generate green electricity information; the green electricity information includes green electricity identification information and corresponding metering attribute information and source identity information; generate a message authentication code for the green electricity information based on a first cryptographic algorithm and a shared key, encapsulate the green electricity information and the message authentication code into a data unit, and frame the data unit according to a communication protocol and send it to the user acquisition master station; the user acquisition master station is configured to: receive and deframe the data unit to obtain the data unit, recalculate the message authentication code for the green electricity information in the data unit based on the first cryptographic algorithm and the shared key, and combine the recalculated message authentication code with the green electricity information in the data unit. The received message authentication code is compared. If the comparison matches, the green electricity information is stored in the user acquisition master station database and forwarded to the marketing system. The marketing system is configured to: receive and parse the green electricity information; obtain the corresponding user attribute information based on the source identity information in the green electricity information; combine the user attribute information with the green electricity information; and generate a signature value by digitally signing the combined data based on a second cryptographic algorithm. The green electricity information, the user attribute information, and the signature value are combined to form a green code, which is then sent to the power trading center. After receiving the green code, the power trading center verifies the signature value based on the public key of the marketing system, and stores the green code in the power trading center database after successful verification. The power trading center is configured to: provide users with the transaction flow function of the green code, and verify the green code after the transaction is completed.
[0008] This application achieves refined metering and comprehensive identification of each kilowatt-hour of green electricity by triggering a kilowatt-hour coding event on a smart meter according to preset trigger conditions and generating green electricity information containing green electricity identification information, metering attribute information, and source identity information. It ensures data integrity and tamper-proofing of green electricity information during transmission by generating a message authentication code based on a first cryptographic algorithm and a shared key on the smart meter side and performing integrity verification on the user acquisition master station side. The marketing system integrates user attribute information with green electricity information and generates an independently circulated and verifiable green code based on a second cryptographic algorithm using digital signature, giving the green electricity information legal validity and non-repudiation. The power trading center verifies, trades, and cancels the green code, achieving trusted traceability and authentication of green electricity throughout its entire lifecycle from generation, certification, trading to consumption. Based on smart meters and combined with national cryptographic algorithms and digital certificate technology, this application constructs a complete green electricity authentication system, effectively solving the technical challenges of green electricity traceability and authentication. Attached Figure Description
[0009] The accompanying drawings, which are included to provide a further understanding of this disclosure and form part of this application, illustrate exemplary embodiments of this disclosure and are used to explain this disclosure, but do not constitute an undue limitation of this disclosure. In the drawings: Figure 1 This is a flowchart of the green electricity certification method based on smart meters according to Embodiment 1 of this application; Figure 2 This is an overall framework diagram of the green electricity certification method based on smart meters according to Embodiment 1 of this application; Figure 3 This is a schematic diagram of the liquid crystal display interface of a single-phase smart energy meter according to Embodiment 1 of this application; Figure 4 This is a schematic diagram of the quota assignment threshold display interface according to Embodiment 1 of this application; Figure 5 This is a schematic diagram of the green code display interface according to Embodiment 1 of this application; Figure 6 This is a schematic diagram of the time interval display interface according to Embodiment 1 of this application; Figure 7 This is a schematic diagram of the overall LCD screen display interface of the three-phase energy meter according to Embodiment 1 of this application; Figure 8 This is a schematic diagram of the quota assignment threshold display interface according to Embodiment 1 of this application; Figure 9 This is a schematic diagram of the green code display interface according to Embodiment 1 of this application; Figure 10 This is a schematic diagram of the time interval display interface according to Embodiment 1 of this application. Detailed Implementation
[0010] To enable those skilled in the art to better understand the technical solutions of this disclosure, the technical solutions of the embodiments of this disclosure will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are merely some embodiments of this disclosure, and not all embodiments. Based on the embodiments of this disclosure, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of this disclosure.
[0011] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this disclosure are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this disclosure described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0012] Example 1 According to a first aspect of this embodiment, a green electricity certification method based on smart meters is provided. Figure 1 A flowchart illustrating the method is shown. Figure 2 The overall framework diagram of the method is shown, for reference. Figure 1 and Figure 2 As shown, the method includes: Step 1: The smart energy meter triggers the electricity consumption coding event according to the preset trigger conditions to generate green electricity information; the green electricity information includes green electricity identification information, corresponding metering attribute information, and source identity information.
[0013] In this embodiment, a smart meter is a terminal device with electricity metering, data processing, and communication functions, deployed on the power generation user side. The smart meter has a built-in electricity consumption coding module, which can be enabled or disabled according to the actual application scenario. The smart meter is pre-configured with trigger conditions to determine the timing of the electricity consumption coding event. When the smart meter detects that the trigger timing has arrived according to the preset trigger conditions, it triggers an electricity consumption coding event and begins the green electricity information generation operation.
[0014] Upon triggering an electricity consumption coding event, the smart meter acquires the current metering data and generates green electricity information corresponding to that event. This green electricity information includes green electricity identification information, corresponding metering attribute information, and source identification information. Specifically, the green electricity identification information quantifies and identifies the green electricity corresponding to this event; the metering attribute information describes the physical quantity and temporal characteristics of the green electricity corresponding to this event; and the source identification information identifies the device and source type that generated the green electricity corresponding to this event. The smart meter organizes the aforementioned green electricity identification information, metering attribute information, and source identification information according to a predefined format to form structured green electricity information data.
[0015] Thus, by triggering the electricity kilowatt-hour coding event through preset trigger conditions, the smart energy meter can automatically record green electricity as an event when the trigger conditions are met, and comprehensively identify each green electricity kilowatt-hour through green electricity identification information, metering attribute information and source identity information, providing a standardized data foundation for subsequent green electricity information processing, transmission and authentication.
[0016] Step 2: The smart energy meter generates a message authentication code for the green electricity information based on the first cryptographic algorithm and the shared key, combines the green electricity information and the message authentication code into a data unit, and sends the data unit to the user acquisition master station after framing it according to the communication protocol.
[0017] In this embodiment, the smart meter acquires the green electricity information generated in step 1, as well as a pre-configured shared key. This shared key is a pre-agreed key between the smart meter and the receiver performing subsequent integrity verification, used to ensure the verifiability of the message authentication code. The smart meter invokes its built-in security operation module, inputting the green electricity information and the shared key into a first cryptographic algorithm. The first cryptographic algorithm is a symmetric cryptographic algorithm capable of generating a fixed-length message authentication code (MAC) based on the input data and key. This message authentication code is the mathematical transformation result of the green electricity information and the shared key; any minor modification to the green electricity information will cause a significant change in the message authentication code, thus it can be used to verify the integrity of the green electricity information. The smart meter combines the green electricity information and the generated message authentication code into a data unit, which simultaneously contains the original green electricity information and the authentication code used for integrity verification. The smart meter processes this data unit according to a preset communication protocol, adding the corresponding frame header and frame trailer according to the frame format of the communication protocol, completing the framing operation. After framing is completed, the smart energy meter will send the framed data to the user acquisition master station via wireless communication.
[0018] Thus, by generating a message authentication code based on the first cryptographic algorithm and the shared key, the smart meter provides a lightweight integrity protection mechanism for green electricity information, enabling any tampering of the green electricity information during subsequent transmission to be identified and detected, ensuring the authenticity and integrity of the green electricity information sent from the smart meter. At the same time, by combining the green electricity information and the message authentication code into data units and framing them according to the communication protocol before transmission, standardized encapsulation of data before transmission is achieved, providing a guarantee for reliable data transmission in the power communication network.
[0019] Step 3: The main station receives and deframes the data unit, recalculates the message authentication code for the green electricity information in the data unit based on the first cryptographic algorithm and the shared key, and compares the recalculated message authentication code with the received message authentication code. If they match, the green electricity information is stored in the main station database and forwarded to the marketing system.
[0020] In this embodiment, the data acquisition master station is a centralized data acquisition and management platform deployed on the power system master station side, responsible for receiving, processing, and forwarding data reported by subordinate smart meters. The data acquisition master station receives data sent by smart meters via wireless communication and, following a protocol processing flow reversed from step 2, performs a frame deframe operation on the received data to recover the data unit. The data acquisition master station then extracts two parts from this data unit: green electricity information and a message authentication code.
[0021] The data acquisition master station obtains the same shared key as the smart meter terminal, and inputs the extracted green electricity information and the shared key into the first cryptographic algorithm to independently recalculate a message authentication code. The data acquisition master station compares the recalculated message authentication code with the received message authentication code extracted from the data unit. Since the first cryptographic algorithm is deterministic, the same input (green electricity information and shared key) will inevitably produce the same output result under the same algorithm. Therefore, if the two message authentication codes match, it means that the green electricity information has not been modified or destroyed during the transmission from the smart meter to the data acquisition master station; if they do not match, it means that data errors or tampering have occurred during the transmission. If the comparison is consistent, the data acquisition master station confirms that the integrity of the green electricity information is guaranteed, stores the green electricity information in the data acquisition master station database, and forwards the green electricity information to the marketing system.
[0022] Thus, by independently recalculating and comparing the message authentication code using the main station, the integrity of green electricity information during transmission is verified, ensuring that the green electricity information entering the marketing system is completely consistent with the green electricity information originally generated by the smart meter. This prevents data from being maliciously tampered with or accidentally damaged in the transmission link, providing a reliable data source for subsequent green electricity certification.
[0023] Step 4: The marketing system receives and parses the green electricity information, obtains the corresponding user attribute information based on the source identity information in the green electricity information, combines the user attribute information with the green electricity information, and generates a signature value by digitally signing the combined data based on the second cryptographic algorithm.
[0024] In this embodiment, the marketing system is a business management system deployed on the power system master station side, responsible for managing electricity customer information and processing green electricity information in a business-oriented manner. The marketing system receives green electricity information forwarded by the power consumption master station, parses the received green electricity information, and extracts various data fields, including source identity information.
[0025] The marketing system uses the parsed source identity information as an index to query its local database. This database pre-stores user attribute information for each power generation user, with a one-to-one correspondence between these user attributes and the source identity information. Through this query, the marketing system retrieves the user attribute information of the power generation user corresponding to the current green electricity information. The system then combines the retrieved user attribute information with the green electricity information according to a pre-defined format to form combined data.
[0026] The marketing system uses a second cryptographic algorithm to digitally sign the combined data. This second cryptographic algorithm is an asymmetric cryptographic algorithm containing a pair of keys: a private key and a public key. The marketing system uses its own private key as the signing key to perform a digital signature operation on the combined data, generating a signature value uniquely corresponding to the combined data. This signature value is unique and unforgeable; that is, no other entity can generate the same signature value without this private key, and any modification to the combined data will cause the signature value to fail subsequent public key verification.
[0027] Thus, by combining user attribute information with green electricity information, the binding of pure metering data with user identity information is realized, giving green electricity information business attributes at the user level; by digitally signing the combined data based on the second cryptographic algorithm, the combined data obtains non-repudiation, and any subsequent link can verify the source legality and content integrity of the combined data by verifying the signature value, providing a trust basis for green electricity information to leave the power intranet and enter the public trading process.
[0028] Step 5: The marketing system combines the green electricity information, the user attribute information, and the signature value to form a green code, and sends it to the power trading center; after receiving the green code, the power trading center verifies the signature value based on the marketing system's public key, and stores the green code in the power trading center's database after successful verification.
[0029] In this embodiment, the marketing system combines and encapsulates green electricity information, user attribute information, and the signature value generated in step 4 according to a set format to form a complete data body, which is the green code. The green code contains the original metering data of green electricity, user identity information, and a signature value used to verify the integrity and legality of the data source. It is a data credential that can be independently circulated and publicly verified. The marketing system sends the generated green code to the power trading center via the network.
[0030] The power trading center is a public platform responsible for trading green electricity and its derivatives, independent of the power metering system and marketing business system. After receiving a green code from the marketing system, the power trading center extracts the signature value from the green code and simultaneously obtains the public key that the marketing system has pre-published. This public key and the private key used by the marketing system for signing in step 4 form a key pair; the private key is used for signing, and the public key is used for verification. The power trading center uses the marketing system's public key to verify the signature value, confirming whether the signature value was issued by a legitimate marketing system possessing the corresponding private key, and whether the data in the green code has been modified after the signature was generated. Upon successful verification, the power trading center confirms the green code's legitimate origin and complete content, and stores the green code as a valid green electricity authentication credential in the power trading center's database.
[0031] Thus, by combining green electricity information, user attribute information, and signature value to form a green code, a data credential that can be circulated and verified independently of the power intranet is generated. The signature value is verified by the power trading center based on the marketing system public key, ensuring the legality of the source and the integrity of the content of the green code before entering the public trading process, providing a credible foundation for the public circulation of the green code on the trading platform.
[0032] Step 6: The user conducts transactions using the green code at the power trading center, and the power trading center verifies the green code after the transaction is completed.
[0033] In this embodiment, after the green code is verified by the power trading center and stored in the database, it becomes a tradable digital asset on the power trading center platform. Users include sellers (i.e., power generation users) and buyers (i.e., electricity purchasers, including corporate and individual users). Power generation users, as the initial holders of the green codes, list their green codes for sale on the power trading center platform, setting the quantity and transaction price. Electricity purchasers browse available green code information through the power trading center platform, select green codes that meet their needs, and initiate purchase requests. The power trading center responds to purchase requests, completing the transaction matching and asset transfer between the buyer and seller, transferring ownership of the corresponding number of green codes from the power generation user's account to the electricity purchaser's account.
[0034] After the transaction is completed, the electricity purchaser becomes the holder of the green code. The purchaser can proactively submit a green code verification application to the power trading center. The power trading center responds to the verification application and executes the verification operation on the designated green code. The verification operation marks the green code as verified, making it ineligible for further circulation and trading, while permanently recording the ownership information of the green code. After verification, the green code's lifecycle officially ends, and the environmental rights it represents exclusively belong to the electricity purchaser. The purchaser can use this to prove that they have met the corresponding green electricity consumption quota or carbon emission reduction requirements.
[0035] Thus, by providing the trading and circulation function of green codes through the power trading center, the green codes have been circulated in the market as a certificate of green environmental attributes, and their environmental value has been quantified and realized through market mechanisms. By verifying the green codes after the transaction is completed, the final ownership of the environmental attributes represented by the green codes has been established, and a complete and reliable closed loop of green electricity from production, metering, certification, trading to consumption has been completed.
[0036] As described in the background section, the environmental benefits of clean energy generation under the existing electricity metering system are difficult to physically separate, making it impossible to form independent, traceable, and tradable credentials; the end-to-end secure transmission and anti-tampering mechanisms for green electricity metering data from the collection point to the trading platform are still imperfect.
[0037] In view of this, this application achieves refined metering and comprehensive identification of each kilowatt-hour of green electricity by triggering a kilowatt-hour coding event on the smart meter according to preset trigger conditions and generating green electricity information containing green electricity identification information, metering attribute information, and source identity information. By generating a message authentication code based on a first cryptographic algorithm and a shared key on the smart meter side and performing integrity verification on the user acquisition master station side, the data integrity and tamper-proof nature of the green electricity information during transmission are ensured. The marketing system integrates user attribute information with green electricity information and generates an independently circulated and verifiable green code based on a second cryptographic algorithm through digital signature, giving the green electricity information legal validity and non-repudiation. The power trading center verifies, trades, and cancels the green code, achieving trusted traceability and authentication of green electricity throughout its entire lifecycle from generation, certification, trading to consumption. The technical solution of this application, based on smart meters and combined with national cryptographic algorithms and digital certificate technology, constructs a complete green electricity authentication system, effectively solving the technical challenges of green electricity traceability and authentication.
[0038] Optionally, the preset triggering condition is a fixed-quota coding method or a timed coding method; and step 1 specifically includes: when the preset triggering condition is a fixed-quota coding method, the smart energy meter accumulates the power generation, and when the accumulated power generation reaches a preset power generation threshold, it triggers a kilowatt-hour coding event and resets the accumulated power generation to zero to start accumulating again; when the preset triggering condition is the timed coding method, the smart energy meter periodically triggers a kilowatt-hour coding event according to a preset time interval, triggering once at the end of each time period and automatically starting the next period; when the kilowatt-hour coding event is triggered, the smart energy meter records the green electricity identification information, corresponding metering attribute information, and source identity information corresponding to this event; wherein, the green electricity identification information includes the number of green codes, the metering attribute information includes power generation, start time, end time, and freeze period, and the source identity information includes power generation type and asset code; the smart energy meter encapsulates the recorded number of green codes, power generation, start time, end time, power generation type, asset code, and freeze period in a set order to generate the green electricity information.
[0039] In this embodiment, a new kilowatt-hour coding function is added to the smart meter. This function refers to the process by which the smart meter assigns a unique and specific code (referred to as a green code) to renewable energy generation and grid-connected electricity based on a certain time or a certain amount of electricity. This coding function enables the metering, storage, and reporting of green electricity. This coding function can be enabled or disabled depending on the actual application scenario. After the coding function is enabled, the smart meter supports two coding methods: fixed-rate coding and timed coding. The fixed-rate coding method involves the smart meter pre-setting a power generation threshold (e.g., 1000 kWh, which can be configured according to actual needs). The smart meter continuously accumulates the power generation. When the accumulated power generation reaches the preset threshold, a coding event is triggered, and the accumulated power generation is reset to zero to restart the accumulation process, thus triggering the next coding event. The timed coding method is as follows: The smart meter is preset with a time interval (e.g., 1 hour, which can be configured according to actual needs). The electricity consumption coding event is triggered periodically according to this time interval. It is triggered once at the end of each time period and automatically starts the next period. The fixed-rate coding method and the timed coding method cannot be used at the same time. See Table 1 for details.
[0040] Table 1
[0041] When configuring the electricity consumption coding function parameters, the following rules must be followed: If the event judgment threshold is set to 0, it means that the event is not enabled; electricity consumption coding has an activation time, and event recording only begins after the activation time is reached. Recording ends when the current event meets the termination condition, and the next event recording begins simultaneously. The activation time can be set to a future hour, and timed coding and fixed-amount coding should not be enabled simultaneously. In addition, under the timed coding mode, if the green code energy is less than the minimum threshold for timed coding energy, the event is still recorded normally, but the number of green codes generated is not accumulated.
[0042] Furthermore, the smart meter supports recording the total number of green codes, as well as the start and end times of the most recent N electricity consumption coding events, along with the corresponding green code energy and meter asset management code, facilitating the tracing of historical electricity consumption coding events. The smart meter also supports configuring a monthly freeze on the number of green codes for the current month and can store frozen data for the most recent N months, supporting monthly statistics and settlement of green code counts. The smart meter also supports configuring electricity consumption coding events in an active reporting mode, meaning that the smart meter actively reports the event to the user data collection master station after triggering the event, without waiting for the master station to issue a reading command, thus improving the real-time performance of event reporting.
[0043] When the electricity kilowatt-hour coding event is triggered, the smart meter acquires the current metering data and records the green electricity identification information, corresponding metering attribute information, and source identity information for this event. The green electricity identification information includes the number of green codes, used to identify the quantitative units of green electricity corresponding to this event; the metering attribute information includes power generation, start time, end time, and freeze period, used to describe the physical quantity value and time domain range of the green electricity corresponding to this event, wherein the freeze period is used to determine the settlement period for green electricity ownership; the source identity information includes power generation type (such as wind power, photovoltaic power, etc.) and asset code (i.e., the electricity meter asset management code), used to identify the type of green electricity production source and the identity of the physical equipment generating the green electricity.
[0044] The smart meter encapsulates the recorded number of green codes, power generation, start time, end time, power generation type, asset code, and freeze period in a predefined order to generate structured green electricity information data. Specifically, the smart meter encapsulates the data in the order of number of green codes, power generation, start time, end time, power generation type, asset code, and freeze period to ensure that the generated green electricity information has a unified data format, facilitating subsequent parsing and processing of the green electricity information.
[0045] As an optional implementation, each green electricity information reported by the smart meter kilowatt-hour coding event occupies 53 bytes of storage space. The smart meter allocates approximately 26KB of storage space for storing kilowatt-hour coding event records, with a maximum of 500 event records. In the monthly frozen data, each frozen green code occupies 2 bytes, and the frozen data for 12 months occupies a total of 24 bytes of storage space. Through the above reasonable allocation of storage space, sufficient event record storage capacity is ensured while effectively controlling the occupation of storage resources.
[0046] As an optional implementation, the smart meter is equipped with an LCD display. The LCD display has been redesigned to support the display of electricity consumption coding information. The LCD display adds the Chinese characters for "green code" and "number". The LCD display is divided into three screens: the first screen displays the coding threshold (including the power generation threshold under the fixed-rate coding method or the time interval under the timed coding method), the second screen displays the current green code power generation, and the third screen displays the total number of green codes. Taking a single-phase smart meter as an example... Figure 3 The overall LCD screen display scheme is shown. Figure 4 The fixed quota coding threshold display scheme is shown. Figure 5 This shows the display scheme for the number of green health codes. Figure 6 This illustrates a timed coding interval display scheme; taking a three-phase smart energy meter as an example, Figure 7 The overall LCD screen display scheme is shown. Figure 8 The fixed quota coding threshold display scheme is shown. Figure 9 This shows the display scheme for the number of green health codes. Figure 10 The time interval display scheme for the timed coding is shown. Through the above LCD display scheme, users can intuitively obtain relevant parameters of the electricity coding function and green electricity metering data on the device.
[0047] As an optional implementation, during the metering of green electricity by smart meters, a kilowatt-hour code event and corresponding green electricity information are generated each time a preset trigger condition is met. The main program of the smart meter calls the ESAM security chip to securely encrypt and store the green electricity information using the national cryptographic algorithm SM1. The encrypted storage via the ESAM security chip ensures the security of the green electricity information when stored locally on the smart meter, preventing physical-level data leakage or tampering.
[0048] Thus, by triggering the electricity kilowatt-hour coding event through either fixed-quota coding or timed coding, the smart meter can automatically record green electricity events when preset trigger conditions are met. By recording multiple dimensions such as the number of green codes, power generation, start time, end time, power generation type, asset code, and freeze period, comprehensive and detailed identification of each kilowatt-hour of green electricity is achieved. By encapsulating and generating structured green electricity information in a fixed order, a standardized data format foundation is provided for the subsequent transmission, parsing, and processing of green electricity information. Through monthly freeze configuration, proactive reporting mode, reasonable storage space allocation, and LCD display scheme, the flexibility of the electricity kilowatt-hour coding function and user experience are further improved. By encrypting and storing green electricity information through the ESAM security chip, the security of the data on the smart meter is ensured, providing a reliable data source for the subsequent transmission and authentication of green electricity information.
[0049] Optionally, the first cryptographic algorithm is the national cryptographic algorithm SM1; and step 2 specifically includes: the smart energy meter calling the ESAM security chip, inputting the green electricity information and the shared key into the national cryptographic algorithm SM1, and calculating and generating a fixed-length message authentication code; the smart energy meter combining and encapsulating the green electricity information and the message authentication code into a data unit; the smart energy meter adding a frame header and a frame trailer to the data unit based on an object-oriented electricity consumption information data exchange protocol to complete the framing; the smart energy meter converting the framed data into a bit stream and sending it to the data collection master station via a private wireless network.
[0050] In this embodiment, the smart meter has a built-in ESAM (Embedded Secure Access Module) security chip. The ESAM security chip is an embedded security module with secure storage and cryptographic operation capabilities, and it incorporates the national standard SM1 algorithm. After generating green electricity information in step 1, the smart meter's main program calls the ESAM security chip. The smart meter inputs the green electricity information generated in step 1 along with a pre-configured shared key into the ESAM security chip. This shared key is a pre-agreed key between the smart meter and the receiver that subsequently performs integrity verification, used to ensure the verifiability of the message authentication code. The ESAM security chip uses the national standard SM1 algorithm to perform operations on the input green electricity information and the shared key, calculating and generating a fixed-length message authentication code (MAC). This message authentication code is the mathematical transformation result of the green electricity information and the shared key; any small change to the green electricity information will cause a significant change in the message authentication code, thus it can be used to subsequently verify the integrity of the green electricity information.
[0051] The smart meter encapsulates green electricity information and a generated message authentication code into a single data unit. This data unit contains both the original green electricity information and the authentication code used for integrity verification. Subsequently, the smart meter processes this data unit based on an object-oriented electricity consumption information data exchange protocol (i.e., the 698 protocol), adding the appropriate frame header and trailer according to the protocol's frame format to complete the data link layer framing operation. After framing, the smart meter converts the framed data into a bit stream and transmits it as a signal to the data collection master station via a dedicated wireless network.
[0052] Thus, by generating message authentication codes based on the national cryptographic SM1 algorithm and shared keys, smart meters provide a lightweight integrity protection mechanism for green electricity information, enabling any tampering of green electricity information during subsequent transmission to be identified and detected. At the same time, by combining green electricity information with message authentication codes and encapsulating them into data units and framing them based on the 698 protocol before transmission, standardized encapsulation of data before transmission is achieved, ensuring reliable data transmission in the power communication network.
[0053] Optionally, step 3 specifically includes: after receiving the bit stream, the user acquisition master station converts it into a data stream, removes the frame header and frame trailer of the data stream based on the object-oriented electricity information data exchange protocol, and re-obtains the data unit; the user acquisition master station splits the data unit into green electricity information and a message authentication code; the user acquisition master station re-inputs the split green electricity information and the shared key into the national cryptographic SM1 algorithm to independently calculate a new message authentication code; the user acquisition master station compares the new message authentication code with the received message authentication code bit by bit, and if they are completely consistent, it is confirmed that the green electricity information has not been tampered with during transmission; the user acquisition master station stores the verified green electricity information in the user acquisition master station database, and forwards the green electricity information and the message authentication code together to the marketing system.
[0054] In this embodiment, the data acquisition master station is a centralized data acquisition and management platform deployed on the power system master station side, responsible for receiving, processing, and forwarding data reported by subordinate smart meters. The data acquisition master station receives the bit stream sent by the smart meters via a private wireless network and converts the received bit stream back into a data stream. Based on an object-oriented electricity consumption information data exchange protocol (i.e., the 698 protocol), the data acquisition master station processes the data stream, removing frame headers and trailers to re-obtain the data unit. Then, the data acquisition master station splits this data unit into two parts: green electricity information and a message authentication code.
[0055] The data acquisition master station obtains the same shared key as the smart meter terminal, and inputs the split green electricity information and the shared key back into the national cryptographic SM1 algorithm to independently recalculate a new message authentication code. The data acquisition master station compares the newly calculated message authentication code bit by bit with the message authentication code received from the data unit. Since the national cryptographic SM1 algorithm is a deterministic algorithm, the same input (green electricity information and shared key) will inevitably produce the same output result under the same algorithm. Therefore, if the two message authentication codes are completely identical bit by bit, it means that the green electricity information has not been modified or destroyed during the transmission from the smart meter to the data acquisition master station, and the data integrity verification is passed; if they are inconsistent, it means that data errors or tampering occurred during the transmission. Finally, the data acquisition master station stores the verified green electricity information in the data acquisition master station database and forwards the green electricity information and message authentication code to the marketing system.
[0056] Thus, by independently recalculating and bit-by-bit comparing the message authentication code using the main station, the integrity of green electricity information during transmission is verified, ensuring that the green electricity information entering the marketing system is completely consistent with the green electricity information originally generated by the smart meter. This prevents data from being maliciously tampered with or accidentally damaged in the transmission link, providing a reliable data source for subsequent green electricity certification.
[0057] Optionally, the second cryptographic algorithm is the national cryptographic algorithm SM2; and step 4 specifically includes: after receiving the green electricity information, the marketing system inputs the green electricity information and the shared key into the national cryptographic algorithm SM1, independently calculates the message authentication code, compares it with the received message authentication code, and parses the green electricity information after the comparison is consistent; the marketing system queries the database based on the asset code in the parsed green electricity information to obtain the customer number, comprehensive multiplier, and geographical location of the power generation user as the user attribute information; the marketing system combines and encapsulates the customer number, comprehensive multiplier, geographical location, and green electricity information; the marketing system uses all the combined and encapsulated data and the message authentication code as a message to be signed, generates a digest of the message to be signed through a hash function, and calls the national cryptographic algorithm SM2 to encrypt the digest using the marketing system's private key to generate a signature value.
[0058] In this embodiment, the marketing system is a business management system deployed on the power system master station side, responsible for managing customer information and processing green electricity information in a business-oriented manner. After receiving the green electricity information and message authentication code forwarded by the power consumption master station, the marketing system first uses the same shared key as the smart meter terminal to independently calculate the message authentication code for the received green electricity information, compares it with the received message authentication code, confirms the data integrity, and then parses the green electricity information.
[0059] The marketing system extracts the asset code (i.e., the electricity meter asset management code) from the parsed green electricity information. Using this asset code as an index, the marketing system queries its local database. The database pre-stores user attribute information for each power generation user, including customer ID, user multiplier, and user geographical location. These user attribute information has a one-to-one correspondence with the electricity meter asset code. Through this query operation, the marketing system obtains the customer ID, multiplier, and geographical location of the power generation user corresponding to the current green electricity information. The marketing system then combines and encapsulates the customer ID, multiplier, geographical location, and green electricity information in a pre-defined order: customer ID, multiplier, geographical location, and green electricity information.
[0060] The marketing system uses all the combined and encapsulated data along with the message authentication code as the message to be signed. The marketing system calculates a fixed-length digest using the SHA-256 hash function. Then, the marketing system calls the SM2 national cryptographic algorithm and encrypts the digest using the private key from its own generated key pair to generate a digital signature value. This signature value is unique and unforgeable; that is, no other entity can generate the same signature value without this private key, and any modification to the combined data will cause the signature value to fail subsequent public key verification.
[0061] As an optional implementation, after generating the signature value, the marketing system establishes a connection with the security server of the Certificate Authority (CA). The marketing system sends the identity information of the public key owner and the public key to the CA's security server. Upon receiving the data, the CA fills in the identity information, public key, issuer, validity period, and other information into the digital certificate, calculates the hash value of the digital certificate, and then encrypts the hash value using its own private key to generate a digital signature. This digital signature is then attached to the digital certificate to form the final digital certificate. The CA sends the issued digital certificate to the marketing system for subsequent signature verification operations.
[0062] The marketing system combines and encapsulates green electricity information, customer ID, comprehensive leverage ratio, geographical location, and generated signature value to form a green code. This green code is a data entity containing complete green electricity information, user identity information, and a digital signature, and can be circulated and verified independently. The marketing system sends the generated green code to the power trading center via the public network for listing and sales on the green electricity trading platform, green code verification, and issuance of green certificates to power generation users, achieving the goal of green electricity traceability.
[0063] Thus, the secondary verification of the message authentication code by the marketing system ensures that the received green electricity information is not tampered with during forwarding; by querying the database based on the asset code to obtain user attribute information, the binding of pure metering data and user identity information is realized; by combining user attribute information with green electricity information and performing digital signature based on the national cryptographic SM2 algorithm, the combined data gains non-repudiation, and any subsequent link can verify the source legality and content integrity of the combined data by verifying the signature value; the CA digital certificate application mechanism provides a reliable foundation for the secure distribution of public keys and subsequent signature verification; by combining green electricity information, user attribute information, and signature value to form a green code and sending it to the power trading center, an independently circulated and publicly verifiable data certificate is provided for green electricity to enter the public trading process.
[0064] Optionally, step 5 specifically includes: the marketing system encapsulates the green electricity information, customer number, comprehensive multiplier, geographical location, and signature value into a green code and sends it to the power trading center; after receiving the green code, the power trading center decrypts the signature value using the public key of the marketing system to obtain a first digest value; the power trading center uses the hash function to generate a second digest value for the data in the green code other than the signature value; the power trading center compares whether the first digest value and the second digest value are consistent, and if they are consistent, the signature verification is successful; the power trading center stores the green code that has passed the signature verification into the power trading center database.
[0065] In this embodiment, the marketing system combines and encapsulates green electricity information, customer number, comprehensive multiplier, geographical location, and the signature value generated in step 4 in a predetermined order to form a complete data body, which is the green code. The green code contains the original metering data of green electricity, user identity information, and a signature value used to verify data integrity and source legitimacy; it is a data credential that can be independently circulated and publicly verified. The marketing system sends the generated green code to the power trading center via the public network.
[0066] The power trading center is a public platform responsible for trading green electricity and its derivatives, independent of the power metering system and marketing business system. After receiving the green code sent by the marketing system, the power trading center extracts the signature value and other data from it. The power trading center obtains the marketing system's public key, which, along with the private key used for signing in step 4, forms a key pair. The power trading center uses the marketing system's public key to decrypt the signature value, obtaining a first digest value. Simultaneously, the power trading center uses the same hash function (e.g., SHA-256) as in step 4 to calculate the other data in the green code besides the signature value, generating a second digest value. The power trading center compares the first and second digest values. Since the signature value is generated by the marketing system encrypting the first digest value using its private key, and the public key can correctly decrypt the signature value to obtain the original first digest value, if the two digest values match, it indicates that the green code was indeed issued by a legitimate marketing system possessing the corresponding private key, and the data in the green code has not been modified after the signature was generated. If there is a discrepancy, the verification fails, indicating that the green code's source is illegal or its content has been tampered with. Once the verification is successful, the power trading center confirms the green code's legal origin and completeness, and stores it in the power trading center's database as a valid green electricity certification credential.
[0067] Thus, by decrypting and verifying the signature value based on the marketing system's public key through the power trading center, the legitimacy of the green code's origin and the integrity of its content before entering the public trading process are ensured; through the digest value comparison mechanism, the integrity verification and non-repudiation verification of the green code data are achieved, providing a credible foundation for the public circulation of the green code on the trading platform.
[0068] Optionally, step 6 specifically includes: a power generation user listing green codes for sale at the power trading center, setting the listing quantity and price; a power purchaser purchasing green codes at the power trading center; the power trading center transferring the corresponding number of green codes from the power generation user's account to the power purchaser's account, the power purchaser acquiring ownership of the green codes, and storing the transaction record in the database; the power purchaser applying to the power trading center for green code cancellation; the power trading center responding to the cancellation application canceling the green codes, and after cancellation, the lifecycle of the green codes ends, and the environmental attributes represented by the green codes belong to the power purchaser.
[0069] In this embodiment, after the green code is verified by the power trading center and stored in its database, it becomes a tradable digital asset on the power trading center platform. Power generation users, as the initial holders of the green codes, list their green codes for sale on the power trading center platform, setting the quantity and transaction price. Power purchase users (including enterprises and individual users) browse available green code information through the power trading center platform, select a green code that meets their needs, and initiate a purchase request. Before the transaction, the power purchase user and the power trading center verify the power trading center's identity via SSL / TLS protocol to prevent login to phishing websites.
[0070] In response to a purchase request, the power trading center completes the transaction matching and asset transfer between the buyer and seller, transferring the corresponding number of green certificates from the power generation user's account to the power purchase user's account. The power purchase user then acquires ownership of the green certificates, and the transaction records are stored in the database and cannot be altered.
[0071] After obtaining a green certificate, electricity buyers can proactively submit a green code cancellation application to the power trading center. The power trading center will respond to the cancellation application, perform the cancellation operation on the designated green code, and cancel the ownership of the green code. After cancellation, the lifecycle of the green code officially ends, and the environmental rights it represents exclusively belong to the electricity buyer. The electricity buyer can use this certificate to prove that they have met the corresponding green electricity consumption quota or carbon emission reduction requirements.
[0072] Thus, by providing the trading and circulation function of green codes through the power trading center, the green codes have been circulated in the market as a certificate of green environmental attributes, and their environmental value has been quantified and realized through market mechanisms. By verifying the green codes after the transaction is completed, the final ownership of the environmental attributes represented by the green codes has been established, and a complete and reliable closed loop of green electricity from production, metering, certification, trading to consumption has been completed.
[0073] Optionally, step 1 further includes: the smart energy meter calling the ESAM security chip to encrypt and store the green electricity information using the first cryptographic algorithm.
[0074] In this embodiment, after the smart meter generates green electricity information in step 1 and before generating the message authentication code in step 2, it calls the ESAM security chip to perform local storage processing on the green electricity information. The main program of the smart meter inputs the green electricity information generated in step 1 into the ESAM security chip. The ESAM security chip calls the national cryptographic algorithm SM1 to encrypt the green electricity information, and then stores the encrypted green electricity information in the storage medium of the smart meter. Through the encrypted storage of the ESAM security chip, the green electricity information is saved locally in encrypted form on the smart meter. Even if it is illegally read at the physical layer, the plaintext content of the green electricity information cannot be known, thereby preventing data leakage or tampering at the physical layer. When the message authentication code needs to be generated in the subsequent step 2, the smart meter reads the encrypted green electricity information from the storage medium, decrypts it through the ESAM security chip, and uses it for subsequent processing.
[0075] Therefore, by encrypting and storing green electricity information through the ESAM security chip, the storage security of green electricity information on the local smart meter is ensured, preventing data leakage or tampering at the physical layer, and providing end-side data security for the entire green electricity certification method.
[0076] The following example, using a user in City A generating and purchasing electricity, illustrates the complete process of the green electricity authentication method based on smart meters. A green electricity generator in a district of City A generates 2500 kWh of green electricity through photovoltaic power generation. A user in City A intends to purchase two green codes and will use the smart meter's electricity meter coding function to store, authenticate, and trade this green electricity. The specific steps include: (1) Function enabled.
[0077] The smart meter in the user's home starts up and completes initialization. Based on the user's actual application scenario, the meter's electricity consumption coding function parameters are configured, a fixed-rate coding method is selected, and the power generation threshold is set to 1000 kWh. The system starts the ESAM encryption module and allocates 26KB of storage space for recording electricity consumption coding events (the default maximum is 500 events, which can be configured according to actual needs), providing a basic environment for green electricity certification.
[0078] (2) Green electricity metering.
[0079] The photovoltaic power generation system of the power user continuously generates electricity, and the power generation is continuously and accurately measured by a smart meter, totaling 2500 kWh of power generation data. The system operates in a quota-based coding mode, with a preset power generation threshold of 1000 kWh. The smart meter accumulates the power generation. When the accumulated power generation reaches 1000 kWh for the first time, a kWh coding event is triggered. After the accumulated power generation resets to zero, it restarts the accumulation process. When the accumulated power generation reaches 1000 kWh for the second time, another kWh coding event is triggered. At this point, the system has triggered two green code generation events, and the remaining accumulated power generation is 500 kWh.
[0080] (3) Green electricity information generation and event storage.
[0081] The smart meter records two green electricity generation events, generating two sets of green electricity information. Each time a green electricity code generation event is triggered, the smart meter records the corresponding green electricity identification information (number of green codes), metering attribute information (power generation, start time, end time, freeze period), and source identity information (power generation type, asset code), and encapsulates this information in the order of number of green codes, power generation, start time, end time, power generation type, asset code, and freeze period. The smart meter also records the current power generation as 500 kWh. The smart meter's main program calls the ESAM security chip and uses the national cryptographic SM1 algorithm to encrypt and store the green electricity information, securely storing the power generation event information in the meter's ESAM chip. The green electricity information corresponding to this event is shown in Table 2. Table 2 Green Electricity Information
[0082] (4) Active reporting of events and data copying.
[0083] The smart energy meter proactively reports the green electricity generation event (OAD) via a dedicated wireless network to the user acquisition master station in the form of network packets. The user acquisition master station receives the event OAD in its secure access area, verifies it, and then proactively reports the event OAD to the master station server. Upon receiving the event reporting request, the user acquisition master station issues a data reading command. After the data acquisition preprocessor converts the command into a network layer packet, it traces the data back to the smart energy meter of the generating user based on the OAD. Upon receiving the reading command, the smart energy meter performs security verification via the ESAM security chip. Once verification is successful, it sends the green electricity information to the user acquisition master station.
[0084] (5) Data storage of electricity meters.
[0085] After a smart meter measures electricity generation data, it stores the data locally before sending it. The smart meter uses an ESAM security chip to encrypt and store green electricity information using the national cryptographic algorithm SM1. The encrypted data is then stored in the ESAM chip, ensuring the security of the green electricity information stored locally within the smart meter.
[0086] (6) Data transmission (smart energy meter - user acquisition master station).
[0087] After data storage is complete, before sending data, the smart meter inputs the green electricity information and shared key into the national cryptographic SM1 algorithm to calculate and generate a fixed-length message authentication code (MAC value). The smart meter then encapsulates the green electricity information and MAC value into a data unit. Subsequently, the smart meter uses an object-oriented electricity consumption information data exchange protocol (i.e., the 698 protocol) to add a frame header and trailer to each data unit, completing the framing operation at the data link layer. After framing, the smart meter converts the framed data into a bit stream and sends it to the data collection master station in the form of a signal via a private wireless network.
[0088] (7) Use the main station to store and forward data.
[0089] After receiving the bitstream from the smart energy meter, the master station converts the bitstream back into a data stream. Based on the 698 protocol, the master station processes the data stream, removing frame headers and trailers to obtain new data units, which are then split into green electricity information and MAC values. The master station inputs the split green electricity information and the shared key back into the national cryptographic SM1 algorithm to independently calculate a new message authentication code, which is then compared bit-by-bit with the received MAC value. After confirming consistency, the master station verifies that the green electricity information has not been tampered with during transmission and accepts the data.
[0090] (8) Use the main station to parse and store data.
[0091] The data acquisition master station parses the verified green electricity information, obtaining information including the number of green codes, power generation, start time, end time, power generation type, asset code, and freeze period. After parsing, the data acquisition master station converts the parsed data into a program-recognizable dataset and stores it in the data acquisition master station database. After the green electricity metering information is stored, it is sent to the marketing system along with the MAC value.
[0092] (9) Green code generation for marketing system.
[0093] The marketing system receives green electricity information and MAC values forwarded by the main collection station. First, the marketing system uses the shared key used to generate the MAC value to independently calculate a message authentication code for the green electricity information, compares it with the received MAC value, and parses the green electricity information after confirming data consistency. The marketing system then queries the database based on the parsed electricity meter asset management code (asset code 001) to obtain the customer number (002), user comprehensive multiplier (1.2), and user geographical location (Donghua District, City A). The marketing system encapsulates and merges the customer number, comprehensive multiplier, geographical location, and green electricity information to generate green code information. The content of the green code information is shown in Table 3. Table 3 Green Code Information
[0094] (10) Generate a digital signature.
[0095] The marketing system uses all encapsulated data (including green electricity information, customer number, comprehensive multiplier, and geographical location) and the MAC value as the message to be signed. The national cryptographic algorithm SM2 generates a public-private key pair during the call process, which serves as the key pair. The message to be signed generates a fixed-length digest using the SHA-256 hash function. The marketing system calls the national cryptographic algorithm SM2 and encrypts the digest value using the private key from the key pair to obtain the signature value.
[0096] After obtaining the signature value, the marketing system establishes a connection with the Certificate Authority's (CA) security server, sending the public key owner's identity information and the public key to the security server. Upon receiving the data, the CA fills in the identity information, public key, issuer, validity period, and other information into the digital certificate, calculates the hash value of the digital certificate, and then encrypts the hash value using its own private key to generate a digital signature. The CA attaches this digital signature to the digital certificate, obtaining the final digital certificate. The CA then sends the issued digital certificate to the marketing system for subsequent signature verification operations.
[0097] (11) Forwarding to the power trading center.
[0098] The marketing system encapsulates green electricity information, customer number, comprehensive multiplier, geographical location, and signature value to form a green code. After generating the green code, the marketing system sends it to the power trading center to prepare for electricity purchases by users in Donghua District of City A.
[0099] (12) Verification and signature by the power trading center.
[0100] The power exchange center receives the green code sent by the marketing system. During the SSL / TLS handshake phase, the marketing system server sends its digital certificate to the power exchange center. The power exchange center uses the CA's public key to decrypt the signature value on the digital certificate, obtaining a hash value H1; simultaneously, the power exchange center calculates the content of the digital certificate, obtaining another hash value H2. The power exchange center compares H1 and H2; if they match, the validity of the digital certificate is confirmed. Subsequently, the power exchange center obtains the marketing system's public key from the digital certificate and checks its validity period.
[0101] The power trading center uses the public key to decrypt the signature value in the green code, obtaining a digest value; simultaneously, it uses the SHA-256 hash function to generate another digest value for the data in the green code other than the signature value. The power trading center compares the two digest values; if they match, the signature verification is successful. After confirming the validity of the green code, the power trading center stores two green codes and issues two green certificates to the power generation user in Donghua District, City A.
[0102] (13) Authentication of electricity purchasers.
[0103] After the green code is deposited into the power trading center, a power user in City A intends to conduct a transaction with the center. Before the transaction, the user's client and the power trading center conduct two-way authentication via SSL / TLS protocol to confirm that the trading center's website is legitimate, avoid logging into phishing websites, and ensure transaction security.
[0104] (14) Electricity purchasers purchase green codes.
[0105] A power generator in Donghua District of City A listed green codes for sale at the power trading center, priced at 7 yuan each. A power purchaser in City A purchased two green codes online through the power trading center platform. In response to the purchase request, the power trading center transferred ownership of the two green codes from the power generator's account to the power purchaser's account, and modified the number of green codes held by both parties accordingly. The transaction record was stored in the database and cannot be altered.
[0106] (15) Electricity purchasers verify their green codes.
[0107] After obtaining a green certificate, a power purchaser in City A proactively submitted a green code cancellation application to the power trading center. The power trading center responded to the application, executed the cancellation operation, and permanently revoked ownership of the green certificate. Upon completion of the cancellation, the green code's lifespan ends, and the environmental attributes it represents exclusively belong to the power purchaser. The power purchaser can use this to prove that they have met the corresponding green electricity consumption quota or carbon emission reduction requirements.
[0108] Through the complete process of the above application embodiments, the technical solution of this application, based on smart meters, achieves trusted traceability and authentication of green electricity throughout its entire lifecycle, from generation, metering, certification, trading to consumption. This is achieved through the design of a new electricity metering function on the end-side equipment, an LCD display scheme, two working modes: fixed-rate coding and timed coding, data encryption storage and MAC integrity verification based on ESAM security chips and the national cryptographic SM1 algorithm, standardized data transmission based on the 698 protocol, data reception and integrity verification at the user acquisition master station, the marketing system obtaining user attribute information based on asset codes and integrating it with green electricity information, digital signature based on the national cryptographic SM2 algorithm and SHA-256, secure public key distribution based on CA digital certificates, dual verification of digital certificates and green codes by the power trading center, and the complete process of listing, purchasing, ownership transfer, and cancellation of green codes. This transforms the electricity meter from a basic electricity metering device into a hub node for green electricity traceability and trusted authentication.
[0109] In summary, to address the key issue of green electricity traceability—how to separate the "environmental benefits" of clean energy generation and create an independent, traceable, and tradable certificate when the source of physical electricity is difficult to distinguish—this disclosure provides a green electricity certification method based on smart meters. This method mainly includes: on the end-user side, by adding a kilowatt-hour coding function to the smart meter and redesigning the LCD display scheme, the amount of green electricity generated by clean energy is precisely measured and green electricity information is identified; the green electricity information is encrypted, stored, and securely reported using an ESAM security chip; on the main station side, the marketing system binds user attributes and digitally signs the green electricity information, generates a green code, and sends it to the power trading platform; on the trading side, the power trading platform completes the sale, transfer, and verification of the green code, realizing full lifecycle traceability of green electricity from generation, certification, trading to consumption.
[0110] Specifically, the core technical concepts disclosed herein include at least: (1) Supports two working modes: fixed quota coding and timed coding. Fixed quota coding can set the energy threshold, and timed coding can set the time interval. The energy meter triggers a coding event once it reaches the energy threshold or the time interval, accurately tracking the start time, end time, coding amount and generation type of each green electricity, eliminating data errors and delays, and bringing the effects of direct quantification of green electricity, real-time response and efficient processing, and optimized data storage. (2) The electricity code assignment function can record the number of green codes, the start time and end time of the most recent electricity code assignment events, the current green code energy, and the asset code. Each electricity code assignment event occupies 53 bytes of space. (3) The electricity code assignment function can be configured to freeze the number of green codes in the current month, and store the frozen data by month. Each frozen green code occupies 2 bytes. (4) The power consumption coding event transmission mode is the active reporting mode; (5) Collect data during the generation process of the electricity code assignment event, and encapsulate the number of green codes, power generation, start time, end time, power generation type, asset code, and freeze period in this order to define green electricity information; (6) The electricity meter is based on a cryptographic algorithm. The ESAM chip in the electricity meter calls the national cryptographic SM1 algorithm to encrypt and store the green electricity information. The ESAM chip is used to encrypt the green electricity information and generate a MAC value. Each station performs integrity verification after receiving the data to ensure security during transmission and simplify deployment. (7) Based on the message authentication code to ensure data integrity, the green electricity information and the shared key are input into the national cryptographic SM1 algorithm to generate a fixed-length MAC value, and the green electricity information and the MAC value are combined, encapsulated and sent. (8) End-to-end communication is based on the object-oriented electricity information data exchange protocol (698 protocol), which is applied to the application layer, data link layer and physical layer. The application layer data unit frames the data through the data link layer of this protocol and finally sends the data through the physical layer. (9) Receive green electricity information reported by the electricity meter on the main station side, perform integrity verification based on the message authentication code mechanism, calculate the MAC value again by using the national cryptographic SM1 algorithm and the shared key pair to compare whether they are consistent, and store them in the main station database after verification. (10) The main station forwards green electricity information to the marketing system. The marketing system obtains the customer number, user comprehensive multiplier, and user geographical location from the database based on the electricity meter asset code in the green electricity information, and combines and encapsulates the data in this order. (11) Based on digital signature technology to ensure data integrity and non-repudiation, all encapsulated data and MAC values in the marketing system are used as messages to be signed. The messages to be signed are digitally signed using the national cryptographic SM2 algorithm and the private key in the key pair generated by itself to obtain the signature value. (12) The marketing system combines and encapsulates green electricity information, customer number, user comprehensive ratio, user geographical location and signature value in this order to represent a green code, and sends the green code to the power trading center. After the green code information is digitally signed by the marketing system, it is stored in the database and sent to the power trading center to form a traceable channel and improve the security protection capability of metering data. (13) Secure distribution of public keys is achieved through digital certificates. The marketing system sends the public key in the key pair to the security server of the Certificate Authority (CA). The CA issues a digital certificate to the marketing system for subsequent data verification. (14) The power trading center receives the green code from the marketing system. During the verification stage, the marketing system server sends the digital certificate to the power trading center. The power trading center first verifies the legality of the digital certificate. After the verification is successful, it obtains the marketing system public key and uses the public key to verify the green code. (15) Power generation users list green codes on the power trading platform. After purchasing green codes online, buyers obtain green certificates. The platform transfers the corresponding number of green certificates from the power generation user's account to the buyer's account. The buyer obtains ownership of the green certificates and stores them in the database in an unalterable manner. The buyer applies to the power trading center for green code verification. After verification, the environmental attributes represented by the green code belong to the buyer and are used to prove that they have met the quota indicators.
[0111] In summary, this disclosure, based on cryptographic technology, designs a kilowatt-hour coding function for smart energy meters using technologies such as smart metering, data encryption, and secure transmission. It refines the processing of the data acquisition equipment and constructs a green electricity authentication method, evolving the energy meter from a basic electricity metering device into a pivotal node for green electricity traceability and trusted authentication. By encrypting green electricity information and generating MAC values using an ESAM chip, combined with integrity verification at each stage, end-to-end transmission security is ensured. The green code information, after being digitally signed by the marketing system, is stored in a database and sent to the power trading center, forming a traceable circulation channel. This significantly improves the security protection capabilities of green electricity metering data and the credibility of green electricity authentication.
[0112] Furthermore, according to a second aspect of this embodiment, a storage medium is provided. The storage medium includes a stored program, wherein, when the program is executed, a processor performs the method described in any of the above embodiments.
[0113] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that this application is not limited to the described order of actions, as some steps may be performed in other orders or simultaneously according to this application. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions and modules involved are not necessarily essential to this application.
[0114] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods according to the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of this application.
[0115] Example 2 This embodiment proposes a green electricity authentication platform based on smart meters, including: smart meters, a user acquisition master station, a marketing system, and a power trading center; the smart meters are configured to: trigger an electricity consumption coding event according to preset trigger conditions to generate green electricity information; the green electricity information includes green electricity identification information, corresponding metering attribute information, and source identity information; generate a message authentication code for the green electricity information based on a first cryptographic algorithm and a shared key, encapsulate the green electricity information and the message authentication code into a data unit, and frame the data unit according to a communication protocol and send it to the user acquisition master station; the user acquisition master station is configured to: receive and deframe the data unit to obtain the data unit, recalculate the message authentication code for the green electricity information in the data unit based on the first cryptographic algorithm and the shared key, and combine the recalculated message authentication code with the received message... The authentication code is compared, and if they match, the green electricity information is stored in the user acquisition master station database and forwarded to the marketing system. The marketing system is configured to: receive and parse the green electricity information, obtain the corresponding user attribute information based on the source identity information in the green electricity information, combine the user attribute information with the green electricity information, and generate a signature value by digitally signing the combined data based on a second cryptographic algorithm; combine the green electricity information, the user attribute information, and the signature value to form a green code, and send it to the power trading center; after receiving the green code, the power trading center verifies the signature value based on the public key of the marketing system, and stores the green code in the power trading center database after successful verification; the power trading center is configured to: provide users with the transaction flow function of the green code, and verify the green code after the transaction is completed.
[0116] It should be noted that the green electricity certification platform based on smart meters provided in this embodiment can realize all the functions and steps in the above method embodiments, solve the same technical problems, and achieve the same technical effects. The similarities will not be repeated here.
[0117] The sequence numbers of the embodiments in this application are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0118] In the above embodiments of this application, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.
[0119] The above description is only a preferred embodiment of this application. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principle of this application, and these improvements and modifications should also be considered within the scope of protection of this application.
Claims
1. A method for green electricity certification based on smart meters, characterized in that, Includes the following steps: Step 1: The smart energy meter triggers the electricity consumption coding event according to the preset trigger conditions to generate green electricity information; the green electricity information includes green electricity identification information, corresponding metering attribute information, and source identity information; Step 2: The smart energy meter generates a message authentication code for the green electricity information based on the first cryptographic algorithm and the shared key, combines the green electricity information and the message authentication code into a data unit, and sends the data unit to the user collection master station after framing it according to the communication protocol. Step 3: The main station receives and deframes the data unit, recalculates the message authentication code for the green electricity information in the data unit based on the first cryptographic algorithm and the shared key, and compares the recalculated message authentication code with the received message authentication code. If the comparison is consistent, the green electricity information is stored in the main station database and forwarded to the marketing system. Step 4: The marketing system receives and parses the green electricity information, obtains the corresponding user attribute information based on the source identity information in the green electricity information, combines the user attribute information with the green electricity information, and generates a signature value by digitally signing the combined data based on the second cryptographic algorithm. Step 5: The marketing system combines the green electricity information, the user attribute information, and the signature value to form a green code, and sends it to the power trading center; after receiving the green code, the power trading center verifies the signature value based on the marketing system's public key, and stores the green code in the power trading center's database after successful verification; Step 6: The user conducts transactions using the green code at the power trading center, and the power trading center verifies the green code after the transaction is completed.
2. The method according to claim 1, characterized in that, The preset triggering condition is either a fixed-quota coding method or a timed coding method; and step 1 specifically includes: When the preset trigger condition is the quota coding method, the smart energy meter accumulates the power generation. When the accumulated power generation reaches the preset power generation threshold, it triggers a kilowatt-hour coding event and resets the accumulated power generation to zero to start accumulating again. When the preset triggering condition is the timed coding method, the smart energy meter periodically triggers the electricity occupancy coding event according to the preset time interval, triggering once at the end of each time cycle and automatically starting the next cycle; When the electricity kilowatt-hour coding event is triggered, the smart energy meter records the green electricity identification information, the corresponding metering attribute information, and the source identity information corresponding to this event; wherein, the green electricity identification information includes the number of green codes, the metering attribute information includes the power generation, start time, end time, and freeze period, and the source identity information includes the power generation type and asset code; The smart energy meter encapsulates the recorded number of green codes, power generation, start time, end time, power generation type, asset code, and freeze period in a set order to generate the green electricity information.
3. The method according to claim 1, characterized in that, The first cryptographic algorithm is the Chinese national cryptographic algorithm SM1; and step 2 specifically includes: The smart energy meter calls the ESAM security chip, inputs the green electricity information and the shared key into the national cryptographic SM1 algorithm, and calculates and generates a fixed-length message authentication code; The smart energy meter combines the green electricity information with the message authentication code and encapsulates them into a data unit. The smart energy meter uses an object-oriented electricity consumption information data exchange protocol to add frame headers and frame trailers to the data units to complete the framing. The smart energy meter converts the framed data into a bit stream and sends it to the user acquisition master station via a private wireless network.
4. The method according to claim 3, characterized in that, Step 3 specifically includes: After receiving the bit stream, the main station converts it into a data stream. Based on the object-oriented electricity information data exchange protocol, the frame header and frame trailer of the data stream are removed to obtain the data unit again. The main station for data collection splits the data unit into green electricity information and message authentication code; The main station will input the split green electricity information and the shared key back into the national cryptographic SM1 algorithm to independently calculate a new message authentication code. The main station compares the new message authentication code with the received message authentication code bit by bit. If they match bit by bit, it confirms that the green electricity information has not been tampered with during transmission. The user acquisition master station stores the verified green electricity information into the user acquisition master station database, and forwards the green electricity information and the message authentication code to the marketing system.
5. The method according to claim 1, characterized in that, The second cryptographic algorithm is the Chinese national cryptographic algorithm SM2; and step 4 specifically includes: After receiving the green electricity information, the marketing system inputs the green electricity information and the shared key into the national cryptographic SM1 algorithm, independently calculates the message authentication code, compares it with the received message authentication code, and parses the green electricity information after the comparison is consistent. The marketing system queries the database based on the asset code parsed from the green electricity information to obtain the customer number, comprehensive multiplier, and geographical location of the power generation user, which are used as the user attribute information. The marketing system combines and encapsulates the customer ID, the overall multiplier, the geographical location, and the green electricity information. The marketing system combines all the encapsulated data with the message authentication code as a message to be signed, generates a digest of the message to be signed using a hash function, and calls the national cryptographic SM2 algorithm to encrypt the digest using the marketing system's private key to generate a signature value.
6. The method according to claim 5, characterized in that, Step 5 specifically includes: The marketing system combines the green electricity information, the customer number, the comprehensive multiplier, the geographical location, and the signature value to form a green code, and sends it to the power trading center. After receiving the green code, the power trading center uses the public key of the marketing system to decrypt the signature value to obtain the first digest value. The power trading center uses the hash function to generate a second digest value for the data in the green code, excluding the signature value. The power trading center compares the first summary value with the second summary value to see if they match. If they match, the signature verification is successful. The power trading center will store the green code that has passed verification into the power trading center's database.
7. The method according to claim 1, characterized in that, Step 6 specifically includes: Power generation users can list their power on the power trading center with a green code, setting the quantity and price to be listed. Electricity buyers purchase a green health code at the aforementioned power trading center; The power trading center will transfer a corresponding number of green certificates from the power generation user's account to the power purchaser's account, and the power purchaser will acquire ownership of the green certificates and store the transaction records in the database; The electricity purchaser applies to the power trading center for green code verification. In response to the cancellation application, the power trading center cancels the green code. After cancellation, the life cycle of the green code ends, and the environmental attributes represented by the green code belong to the electricity purchaser.
8. The method according to claim 1, characterized in that, Step 1 further includes: the smart energy meter calls the ESAM security chip and uses the first cryptographic algorithm to encrypt and store the green electricity information.
9. A computer-readable storage medium, characterized in that, The storage medium includes a stored program, wherein, when the program is executed, the method described in any one of claims 1 to 8 is performed by a processor.
10. A green electricity certification platform based on smart meters, characterized in that, include: Smart energy meters, power consumption and procurement master stations, marketing systems, and power trading centers; The smart energy meter is configured to: trigger an electricity consumption coding event according to preset trigger conditions to generate green electricity information; the green electricity information includes green electricity identification information and corresponding metering attribute information and source identity information; generate a message authentication code for the green electricity information based on a first cryptographic algorithm and a shared key; combine the green electricity information and the message authentication code into a data unit; and send the data unit to the user collection master station after framing it according to a communication protocol. The main station is configured to: receive and deframe the data unit, recalculate the message authentication code for the green electricity information in the data unit based on the first cryptographic algorithm and the shared key, compare the recalculated message authentication code with the received message authentication code, and if the comparison is consistent, store the green electricity information in the main station database and forward it to the marketing system. The marketing system is configured to: receive and parse the green electricity information, obtain corresponding user attribute information based on the source identity information in the green electricity information, combine the user attribute information with the green electricity information, and generate a signature value by digitally signing the combined data based on a second cryptographic algorithm; The green electricity information, the user attribute information, and the signature value are combined to form a green code, which is then sent to the power trading center. After receiving the green code, the power trading center verifies the signature value based on the public key of the marketing system, and stores the green code in the power trading center's database after successful verification. The power trading center is configured to: provide users with the transaction flow function of the green code, and to verify the green code after the transaction is completed.
