Green power consumption identifier generation and verification method and device based on block chain
By collecting and verifying multi-source heterogeneous power data in the energy blockchain network, and combining smart contracts to automatically calculate and evaluate the amount of green electricity consumption in multiple dimensions, a digital identifier for green electricity consumption is generated, which solves the problems of data silos and privacy leaks, and achieves efficient and secure green electricity consumption certification.
Patent Information
- Application Number
- CN202511911836.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-12-17
- Publication Date
- 2026-03-06
AI Technical Summary
The existing green energy consumption certification system suffers from data silos, low efficiency in accounting and evaluation, and privacy leaks, failing to meet the requirements for highly reliable, automated, and privacy-secure green energy consumption certification.
By collecting multi-source heterogeneous power business data through consensus nodes deployed in the energy blockchain network, using oracle contracts for off-chain verification and on-chain anchoring, and combining smart contracts to realize automated accounting and multi-dimensional evaluation of green electricity consumption, and generating tamper-proof on-chain evidence data, and generating green electricity consumption digital identifiers for privacy protection verification.
It enables trusted on-chaining and full-chain traceability of multi-source heterogeneous power data, improves authentication efficiency, eliminates subjective errors from manual operation, protects enterprise electricity privacy, and promotes the secure circulation and widespread application of green electricity certification data.
Smart Images

Figure CN121616315A_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of data processing technology, and in particular relates to a method and apparatus for generating and verifying green electricity consumption labels based on blockchain. Background Technology
[0002] With the increasing severity of global climate change and the deepening implementation of national "dual carbon" goals, green electricity consumption has become a key indicator for enterprises to fulfill their social responsibilities, address international carbon border adjustment mechanisms (CBAM), and obtain green financial support. To demonstrate their clean energy utilization capabilities, enterprises urgently need authoritative, credible, and efficiently verifiable green electricity consumption certificates from third parties.
[0003] In the existing green electricity consumption certification system, certification bodies typically need to obtain data from multiple entities, including power generation companies, grid companies, and power trading centers. However, this data is often scattered and stored in their respective independent centralized systems, forming serious "data silos." Due to the lack of a unified and reliable data exchange mechanism, cross-entity power data traceability is extremely difficult. Manually verifying bills and contracts is not only inefficient but also prone to data tampering, forgery, or inconsistencies, thus damaging the credibility of certification results.
[0004] Furthermore, existing evaluation systems are mostly simplistic, typically relying solely on a binary judgment based on whether a company purchases green electricity or green certificates. They lack multi-dimensional quantitative assessments of green electricity consumption ratios, consumption continuity, and energy structure diversity, making it difficult to scientifically and accurately reflect a company's true efforts and long-term performance in its green transformation. More critically, there is a significant risk of privacy breaches during the verification process. When proving their green electricity consumption to regulatory agencies, financial institutions, or downstream customers, companies are often forced to provide original electricity purchase contracts, electricity bills, or detailed load curves. This raw data contains highly sensitive trade secrets such as the company's production cycle and capacity scale. Current technology cannot effectively verify green electricity consumption results without disclosing the raw data, leaving companies in a dilemma where "proving their innocence requires sacrificing privacy."
[0005] In summary, existing technologies, due to the difficulty in tracing data from diverse and heterogeneous sources, the low efficiency of manual calculations, the limited evaluation dimensions, and the lack of privacy protection during the verification process, cannot meet the current market's urgent need for highly reliable, automated, and privacy-secure green energy consumption certification. Therefore, there is an urgent need for a green energy consumption label generation and verification solution that can break down data barriers, achieve automated multi-level evaluation, and simultaneously protect privacy. Summary of the Invention
[0006] This invention provides a method and apparatus for generating and verifying green electricity consumption labels based on blockchain, which solves the problems of data silos, low efficiency of accounting and evaluation, and privacy leakage in the verification of existing technologies.
[0007] In a first aspect, embodiments of the present invention provide a method for generating and verifying green electricity consumption identifiers based on blockchain, the method comprising: By deploying consensus nodes in the energy blockchain network, multi-source heterogeneous power business data is collected, and the power business data is verified off-chain and anchored on-chain through oracle contracts to form tamper-proof on-chain evidence data. When the end of the accounting cycle is detected or an accounting request initiated by an enterprise is received, the computing contract deployed on the blockchain is triggered. Based on the on-chain evidence data, the preset green electricity consumption accounting logic is executed to calculate the total green electricity consumption and the proportion of green electricity consumption of the target electricity-consuming enterprise. The evaluation and grading contract deployed on the blockchain is invoked to obtain the green electricity consumption ratio, the number of green electricity source types parsed from the on-chain evidence data, and the number of consecutive compliance periods. The comprehensive score of the target electricity-consuming enterprise is calculated based on a multi-dimensional comprehensive evaluation algorithm. The identifier issuance contract deployed on the blockchain is invoked to match the comprehensive score with the preset level threshold, determine the green electricity consumption certification level of the target electricity-consuming enterprise, generate a transaction hash containing certification summary information, and trigger the identifier issuance event. In response to the identification issuance event, a green electricity consumption digital identifier carrying the transaction hash and the enterprise's digital identity is generated and issued to the target electricity-consuming enterprise; In response to a third-party verification terminal's scanning request for the green electricity consumption digital identifier, the system parses the transaction hash in the green electricity consumption digital identifier, queries the corresponding smart contract status in the energy blockchain network, and returns the verification result and the publicly available authentication summary, without returning the original power business data in the on-chain evidence storage data.
[0008] Preferably, multi-source heterogeneous power business data is collected through consensus nodes deployed in the energy blockchain network, and the power business data is verified off-chain and anchored on-chain through oracle contracts to form tamper-proof on-chain evidence data, including: By deploying blockchain clients at new energy power plant nodes, power trading center nodes, and power grid enterprise nodes, data on the generation side, green certificate and green electricity trading side, and consumption side are obtained respectively. Asymmetric encryption algorithms are used to encrypt and digitally sign data on the power generation side, data on the green certificate and green electricity trading side, and data on the consumption side, generating data packets to be verified and sending them to the energy blockchain network. The consensus nodes in the energy blockchain network perform consensus verification on the data packets to be verified, and record the hash value of the verified data packets in the new block; By calling the authoritative interface of the off-chain power trading platform and scheduling system through the oracle contract, off-chain verification data is obtained. The off-chain verification data is compared with the data corresponding to the hash value in the new block. If the comparison is consistent, the decrypted plaintext data is provided as on-chain evidence data for subsequent smart contract calls.
[0009] Preferably, based on the on-chain stored data, a preset green electricity consumption calculation logic is executed to calculate the total green electricity consumption of the target electricity-consuming enterprise, including: Extract green electricity transaction contract data and green electricity transaction settlement data within the accounting period from the on-chain evidence storage data, and calculate the first green electricity volume purchased and consumed by the target electricity-consuming enterprise through green electricity transactions within the accounting period. Extract green certificate transaction purchase information within the accounting period from the on-chain evidence storage data, convert each green certificate into a preset unit of electricity, and calculate the second green electricity volume held by the target electricity-consuming enterprise through green certificate transactions within the accounting period. Extract the self-built power generation data and surplus grid connection data within the accounting period from the on-chain evidence data, calculate the difference between the monthly settlement amount of self-generated green electricity and the monthly settlement amount of surplus grid-connected green electricity, and obtain the third green electricity volume of the target electricity-consuming enterprise within the accounting period. The total amount of green electricity consumed by the target electricity-consuming enterprise is obtained by adding the first, second, and third green electricity amounts.
[0010] Preferably, the formulas for calculating the first green electricity consumption, the second green electricity consumption, and the third green electricity consumption are as follows: The formula for calculating the first amount of green electricity is:
[0011] in, This indicates the amount of the first green electricity charge. Indicates the starting month of the accounting period. Indicates the month that ends the accounting cycle. Indicates the first Monthly settlement volume of green electricity transactions; The formula for calculating the amount of the second green electricity is:
[0012] in, This indicates the amount of the second green electricity. Indicates the first The green certificates issued each month are converted into monthly electricity allocations; The formula for calculating the amount of the third type of green electricity is:
[0013] in, This indicates the amount of the third green electricity. Indicates the first Monthly settlement amount of self-generated green electricity. Indicates the first The remaining amount for online transactions each month is the monthly settlement amount.
[0014] Preferably, a preset green electricity consumption calculation logic is executed to calculate the green electricity consumption ratio of the target electricity-consuming enterprise, including: Obtain the regular electricity consumption of the target electricity-consuming enterprise from the on-chain evidence storage data; Add the regular electricity consumption to the third green electricity consumption to obtain the total electricity consumption of the target electricity-consuming enterprise; The proportion of green electricity consumption is calculated based on total electricity consumption using the following formula:
[0015] in, Indicates the proportion of green electricity consumption. Indicates the total consumption of green electricity and , This indicates the total electricity consumption.
[0016] Preferably, the comprehensive score of the target electricity-consuming enterprise is calculated based on a multi-dimensional comprehensive evaluation algorithm, including: The first weight is allocated to the proportion of green electricity consumption, the second weight is allocated to the number of green electricity source types, and the third weight is allocated to the number of consecutive compliance periods. The overall score is calculated using the following formula:
[0017] in, This indicates the overall score. Indicates the proportion of green electricity consumption. Indicates the number of green electricity source types. Indicates the number of consecutive periods of compliance. , , These are the first weight, the second weight, and the third weight, respectively. The first weight is set at 50%, the second weight at 20%, and the third weight at 30%. Number of green electricity source types This refers to the total amount of wind power, solar power, or other renewable energy sources included in the green electricity consumed by the target electricity-consuming enterprise, and the number of consecutive compliance periods. This refers to the number of accounting periods during which the target electricity-consuming enterprise continuously meets the minimum green energy efficiency requirements.
[0018] Preferably, the comprehensive score is matched with a preset level threshold to determine the green electricity consumption certification level of the target electricity-consuming enterprise, and a transaction hash containing certification summary information is generated, including: A green energy consumption certification grading system is pre-established, which includes at least AAA, AA and A grades. Determine whether the comprehensive score is greater than or equal to the first threshold. If so, determine the green electricity consumption certification level as AAA. If the comprehensive score is less than the first threshold and greater than or equal to the second threshold, the green electricity consumption certification level is determined to be AA. If the overall score is less than the second threshold, the green electricity consumption certification level is determined to be Grade A; Generate a certification digest containing the determined green electricity consumption certification level, accounting cycle, and validity period information, and write the certification digest into the blockchain to generate a unique transaction hash.
[0019] Preferably, in response to an identifier issuance event, a green energy consumption digital identifier carrying a transaction hash and the enterprise's digital identity is generated, including: Listen for identifier issuance events issued by the identifier issuance contract through the identifier generator in the application service layer; Obtain the transaction hash carried in the identifier issuance event and the target electricity-consuming enterprise's digital identity information; Construct an encoded string containing the verification platform's Uniform Resource Locator (URL) and the transaction hash; The encoded string is converted into a green electricity consumption digital identifier in the form of a QR code. The green electricity consumption digital identifier serves as a trusted digital credential for target electricity-consuming enterprises to disclose their green consumption.
[0020] Preferably, the corresponding smart contract status is queried in the energy blockchain network, returning the verification result and a publicly available authentication digest, but not the original electricity business data in the on-chain evidence storage data, including: The verification platform receives a query request carrying a transaction hash sent by a third-party verification terminal; The corresponding identifier is retrieved from the energy blockchain network based on the transaction hash to issue the contract record. Verify whether the retrieved records exist and whether the green electricity consumption digital identifier is within its validity period; If the record exists and is valid, the verification pass status and the corresponding authentication level information are returned to the third-party verification terminal. Throughout the verification process, access to the target electricity user's specific electricity consumption details, transaction contracts, and original data on settlement electricity is blocked, achieving data usability without visibility.
[0021] Secondly, embodiments of the present invention provide a blockchain-based green energy consumption label generation and verification device, the device comprising: The data acquisition and on-chain module is used to collect multi-source heterogeneous power business data through consensus nodes deployed in the energy blockchain network, and to verify the power business data off-chain and anchor it on-chain through oracle contracts to form tamper-proof on-chain evidence data. The consumption accounting module is used to trigger a computing contract deployed on the blockchain when the end of the accounting cycle is detected or an accounting request initiated by an enterprise is received. Based on the on-chain evidence data, it executes the preset green electricity consumption accounting logic to calculate the total green electricity consumption and the proportion of green electricity consumption of the target electricity-consuming enterprise. The evaluation and grading module is used to call the evaluation and grading contract deployed on the blockchain to obtain the green electricity consumption ratio, the number of green electricity source types parsed from the on-chain evidence data, and the number of consecutive compliance periods. Based on a multi-dimensional comprehensive evaluation algorithm, the comprehensive score of the target electricity-consuming enterprise is calculated. The identifier issuance module is used to call the identifier issuance contract deployed on the blockchain, match the comprehensive score with the preset level threshold, determine the green electricity consumption certification level of the target electricity-consuming enterprise, generate a transaction hash containing certification summary information, and trigger the identifier issuance event. The identifier generation module is used to respond to the identifier issuance event, generate a green electricity consumption digital identifier carrying the transaction hash and the enterprise's digital identity, and publish the green electricity consumption digital identifier to the target electricity-consuming enterprise; The verification service module is used to respond to the scanning request of the green electricity consumption digital identifier by the third-party verification terminal, parse the transaction hash in the green electricity consumption digital identifier, query the corresponding smart contract status in the energy blockchain network, and return the verification result and the public authentication digest, but does not return the original power business data in the on-chain evidence storage data.
[0022] Beneficial effects: This invention provides a blockchain-based method for generating and verifying green electricity consumption identifiers. By deploying an energy blockchain network and oracle contracts, it achieves trusted on-chain recording and full-chain traceability of multi-source heterogeneous power data. Combined with automated calculation and multi-level evaluation mechanisms via smart contracts, and a privacy protection strategy based on hash verification, it effectively overcomes the shortcomings of existing technologies, such as severe data silos, low authentication efficiency, single evaluation dimensions, and high risks of privacy leaks. By anchoring data from power generation, transactions, and consumption on the blockchain, it ensures data immutability and traceability, resolving the problem of mutual distrust among multiple entities. Through the collaborative work of calculation contracts and evaluation grading contracts, it achieves automated calculation and multi-dimensional scientific evaluation of green electricity consumption, significantly improving authentication efficiency, eliminating subjective errors from manual operations, and incentivizing enterprises to continuously optimize their energy consumption structure through multi-level identifiers. By generating green electricity consumption digital identifiers containing transaction hashes, third-party verifiers only need to scan the identifier to query verification results and public summaries via on-chain smart contracts, without needing to access the enterprise's original power business data. This mechanism ensures the authority and verifiability of certifications while protecting companies' electricity privacy and trade secrets to the greatest extent possible, and promotes the safe circulation and widespread application of green electricity certification data in society. Attached Figure Description
[0023] Various other advantages and benefits will become apparent to those skilled in the art upon reading the following detailed description of preferred embodiments. The accompanying drawings are for illustrative purposes only and are not intended to limit the invention. Furthermore, the same reference numerals denote the same parts throughout the drawings. In the drawings: Figure 1 This is a schematic diagram of the electronic device structure of the hardware operating environment involved in the embodiments of the present invention; Figure 2 This is a flowchart illustrating the steps of a blockchain-based green energy consumption label generation and verification method provided in this embodiment of the invention. Figure 3 This is a schematic diagram of the functional modules of a blockchain-based green electricity consumption identification generation and verification device provided in an embodiment of the present invention. Detailed Implementation
[0024] To more clearly illustrate the technical solutions in the embodiments of the invention or the prior art, the invention will be briefly introduced below in conjunction with the accompanying drawings and descriptions of the embodiments or the prior art. Obviously, the following description of the structure of the drawings is merely some embodiments of the invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort. It should be noted that the description of these embodiments is for the purpose of aiding understanding the invention, but does not constitute a limitation on the invention. The solution of the present invention will be further described below in conjunction with the accompanying drawings.
[0025] Reference Figure 1 , Figure 1 This is a schematic diagram of the electronic device structure of the hardware operating environment involved in the embodiments of the present invention.
[0026] like Figure 1 As shown, the electronic device may include: a processor 1001, such as a central processing unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. The communication bus 1002 is used to enable communication between these components. The user interface 1003 may include a display screen or an input unit such as a keyboard; optionally, the user interface 1003 may also include a standard wired interface or a wireless interface. The network interface 1004 may optionally include a standard wired interface or a wireless interface (Wi-Fi interface). The memory 1005 may be a high-speed random access memory (RAM) or a stable non-volatile memory (NVM), such as a disk drive. Optionally, the memory 1005 may also be a storage device independent of the aforementioned processor 1001.
[0027] Those skilled in the art will understand that Figure 1 The structure shown does not constitute a limitation on the electronic device and may include more or fewer components than shown, or combine certain components, or have different component arrangements.
[0028] like Figure 1 As shown, the memory 1005, as a storage medium, may include an operating device, a data storage module, a network communication module, a user interface module, and an electronic program. In the illustrated electronic device, the network interface 1004 is mainly used for data communication with a network server; the user interface 1003 is mainly used for data interaction with the user; the processor 1001 and memory 1005 in the electronic device of this invention can be disposed within the electronic device. The electronic device uses the processor 1001 to call the blockchain-based green energy consumption label generation and verification device stored in the memory 1005, and executes the blockchain-based green energy consumption label generation and verification method provided in this embodiment of the invention.
[0029] Reference Figure 2This invention provides a blockchain-based method for generating and verifying green electricity consumption identifiers. This method relies on a constructed energy blockchain network, which is a consortium blockchain network involving multiple parties such as energy regulatory authorities, new energy power generation companies, power grid companies, and power trading centers. By deeply integrating blockchain technology with smart contract technology, it solves the pain points of traditional green electricity certification, such as data silos, low accounting efficiency, single evaluation dimensions, and privacy leaks. The method of this embodiment mainly includes the following steps S101 to S106: S101. By deploying consensus nodes in the energy blockchain network, multi-source heterogeneous power business data is collected, and the power business data is verified off-chain and anchored on-chain through oracle contracts to form tamper-proof on-chain evidence data.
[0030] In the power industry, data is scattered among different entities such as power plants, grid dispatch centers, and trading centers, and the data formats vary (e.g., analog signals, structured database records, PDF contracts, etc.). To achieve reliable accounting, the issue of reliable data collection and storage must first be addressed. Specifically, step S101 further includes the following sub-steps: S1011. By deploying blockchain clients at new energy power plant nodes, power trading center nodes, and power grid enterprise nodes, data on the generation side, green certificate and green electricity trading side, and consumption side are obtained respectively.
[0031] In this embodiment, the node types of the energy blockchain network include, but are not limited to: The new energy power plant node is responsible for collecting and uploading generation-side data. Generation-side data includes real-time generating power, cumulative on-grid electricity, energy type (wind power, photovoltaic, biomass energy, etc.), and grid connection and dispatch agreement information. This data typically originates directly from the power plant's SCADA (Supervisory Control and Data Acquisition) system or key meters. The power trading center node is responsible for collecting and uploading green certificate and green electricity trading-side data. Trading-side data includes green electricity trading contracts (contract number, buyer and seller, trading volume, trading period), green certificate trading records (green certificate code, seller, buyer, corresponding electricity share), and transaction settlement documents. The power grid company node is responsible for collecting and uploading consumption-side data. Consumption-side data mainly refers to the total electricity consumption data of target power-consuming enterprises (including peak, flat, and valley electricity details), conventional energy supply data, and surplus on-grid data. This data originates from the power grid company's marketing system and electricity consumption data collection system.
[0032] S1012. Encrypt and digitally sign the power generation data, the green certificate and green electricity trading data, and the consumption data using an asymmetric encryption algorithm, generate a data packet to be verified, and send it to the energy blockchain network.
[0033] To ensure security during transmission and the non-repudiation of data origin, each node must encrypt data before uploading it. Specifically, each data holder (node) possesses a unique public-private key pair. The sender first calculates a digest of the original data using a hash algorithm (such as SHA-256 or SM3), and then encrypts the digest using its private key to generate a digital signature. Simultaneously, to prevent unauthorized access to the data, the plaintext data can be encrypted using the recipient's (such as a monitoring node or a specific smart contract address) public key or a combination of asymmetric encryption algorithms (for signatures and / or envelope encryption) and symmetric encryption algorithms (for data encryption). The encrypted ciphertext and the digital signature together form a data packet to be verified, which is then broadcast to the blockchain network via the P2P network.
[0034] S1013. The consensus node in the energy blockchain network performs consensus verification on the data packet to be verified, and records the hash value of the verified data packet into a new block.
[0035] In a blockchain network, consensus nodes (typically core trusted institutions such as regulatory bodies or power grid companies) receive broadcast data packets and execute a consensus mechanism (such as PBFT using the Byzantine Fault Tolerance algorithm or the Raft algorithm). The verification content includes: Signature verification uses the sender's public key to decrypt the digital signature and compares the digests to ensure the data has not been tampered with and was indeed sent by the claimed sender. Format verification checks if the data packet conforms to predefined data structure standards. Timestamp verification ensures the data packet's timestamp is within a valid range, preventing replay attacks. Once the entire network reaches consensus, the data packet is packaged into a new block, generating the block height and block hash. At this point, the data's fingerprint (hash value) is permanently locked on the blockchain; any subsequent tampering with the original data will result in a hash mismatch, thus being identified.
[0036] S1014. By calling the authoritative interface of the off-chain power trading platform and scheduling system through the oracle contract, off-chain verification data is obtained. The off-chain verification data is compared with the data corresponding to the hash value in the new block. If the comparison is consistent, the decrypted plaintext data is provided as the on-chain evidence data for subsequent smart contract calls.
[0037] Blockchain itself is a closed, deterministic system, unable to directly perceive the reality of the off-chain world. Therefore, this embodiment introduces an oracle mechanism as a trusted bridge connecting on-chain and off-chain systems. The working logic of the oracle contract is as follows: Triggering: The oracle is triggered when new data is uploaded to the blockchain or when a smart contract requests data. Multi-source verification: Oracle nodes access authoritative off-chain data sources (such as the National Energy Administration's Renewable Energy Information Management Center or provincial power trading platforms) through secure API interfaces. Comparison logic: The oracle obtains off-chain source data (off-chain verified data) and cross-compares it with data uploaded by on-chain nodes. For example, it compares whether the number of green certificates purchased by a company matches the number recorded on the national green certificate issuance platform. State anchoring: Data is marked as "Verified" only when it matches the authoritative off-chain source data (or the error is within acceptable limits). Data supply: Verified, decrypted plaintext data (or its trusted reference pointer) is defined as "on-chain evidence data" for secure use by subsequent computational contracts. This step ensures that the "garbage in, garbage out" problem does not occur during the smart contract's computation phase.
[0038] S102. When the end of the accounting cycle is detected or an accounting request initiated by an enterprise is received, the computing contract deployed on the blockchain is triggered. Based on the on-chain evidence data, the preset green electricity consumption accounting logic is executed to calculate the total green electricity consumption and the proportion of green electricity consumption of the target electricity-consuming enterprise.
[0039] Computation contracts are automated code scripts deployed on the blockchain, and their execution process is transparent, open, and cannot be interfered with by humans. There are two main triggering mechanisms for accounting: time-triggered and event-triggered. Time-triggered: The smart contract has a built-in timer that automatically triggers the accounting process when the last day of the accounting period (e.g., month, quarter, or year) reaches 24:00. Event-triggered: Enterprise users initiate an "apply for accounting" command through the front-end interface, triggering the process by calling the contract interface via API. Step S102 includes the following sub-steps: S1021. Extract green electricity transaction contract data and green electricity transaction settlement data within the accounting period from the on-chain evidence storage data, and calculate the first green electricity volume purchased and consumed by the target electricity-consuming enterprise through green electricity transaction within the accounting period.
[0040] Green electricity trading refers to the direct signing of sales contracts between electricity users and new energy power generation companies. The first green electricity volume ( The calculation formula for ) is optimized as follows:
[0041] Parameter descriptions: This represents the total amount of green electricity obtained by the target electricity-consuming enterprise through direct transactions during the entire accounting period, expressed in megawatt-hours (MWh). This indicates the starting month of the accounting cycle. This indicates the month that ends during the accounting cycle. , indicating the first The monthly settlement volume for green electricity transactions is calculated monthly. Optimization notes: In actual calculations, the smart contract first verifies the "fulfilled" status flag of each monthly settlement document. Only the volume with a "settled" status and corresponding green certificates already transferred is accumulated, preventing volume from being included due to contract defaults or non-delivery. Furthermore, if there are cross-provincial or cross-regional transactions, the contract automatically adjusts the volume based on a preset network loss coefficient to ensure the accuracy of the consumption amount.
[0042] S1022. Extract the green certificate transaction purchase information within the accounting period from the on-chain evidence storage data, convert each green certificate into a preset unit of electricity, and calculate the second green electricity volume held by the target electricity-consuming enterprise through green certificate transactions within the accounting period.
[0043] Green certificates (green electricity certificates) are electronic "identity cards" for renewable energy generation. Enterprises that purchase green certificates but not directly buy green electricity are also recognized for their contribution to green electricity consumption. The second green electricity volume ( The calculation formula for ) is as follows:
[0044] Parameter descriptions: This represents the total amount of green electricity generated by the target electricity-consuming enterprise through the purchase of green certificates, expressed in MWh. , indicating the first This refers to the electricity equivalent of green certificates purchased over a month. Typically, one standard green certificate corresponds to 1000 kWh (1 MWh) of settlement electricity. Optimization notes: When performing this calculation, the smart contract queries the unique code of the green certificate via cross-chain or oracle, performing deduplication logic to ensure that the same green certificate has not been repeatedly declared on other platforms or by other entities (avoiding double counting). Simultaneously, the validity period of the green certificate is verified; expired green certificates are not included.
[0045] S1023. Extract the self-built power generation data and surplus grid connection data within the accounting period from the on-chain evidence storage data, calculate the difference between the monthly settlement amount of self-generated green electricity and the monthly settlement amount of surplus grid connection green electricity, and obtain the third green electricity volume of the target electricity-consuming enterprise within the accounting period.
[0046] Many enterprises own their own distributed photovoltaic or decentralized wind power facilities, and this self-generated and self-consumed clean energy is also an important part of green electricity consumption. Third, green electricity volume ( The calculation formula for ) is as follows:
[0047] Parameter descriptions: , representing the total amount of green electricity generated and consumed by the target electricity-consuming enterprise, in MWh. , indicating the first The total power generation of the enterprise's self-built new energy facilities in a month, with data sourced from inverters or power generation side gate meters. , indicating the first The surplus electricity generated by a company's self-built facilities within a month that is not consumed by the company itself but is fed into the public power grid (surplus grid-connected electricity). Optimization explanation: The formula... The logic accurately reflects the "self-use" portion. If the result is negative (in rare cases, such as metering errors), the contract corrects it to 0. Furthermore, the contract verifies whether the self-built power plant has been registered and obtained a power generation permit to prevent false reporting of self-generation data.
[0048] S1024. Add the first green electricity consumption, the second green electricity consumption, and the third green electricity consumption to obtain the total green electricity consumption of the target electricity-consuming enterprise.
[0049] The summary calculation logic is simple and clear, showing the total green electricity consumption ( The sum of the above three parts is:
[0050] This step enables comprehensive green energy accounting, covering the mainstream green energy acquisition methods currently on the market.
[0051] S1025. Execute the preset green electricity consumption calculation logic to calculate the green electricity consumption ratio of the target electricity-consuming enterprise. The green electricity consumption ratio is a core indicator for evaluating the degree of green transformation of an enterprise. The specific steps are as follows: Obtain the regular electricity consumption of the target electricity-consuming enterprise from the on-chain evidence data. (This refers to the electricity supplied from traditional energy grids such as thermal power plants).
[0052] Add the conventional electricity consumption to the third green electricity consumption (self-generated and self-consumed portion) and any other possible grid-connected electricity consumption, or directly read the master meter data to obtain the total electricity consumption of the target electricity-consuming enterprise. It is important to note that the total electricity consumption should include all electricity consumed by the business, whether from the main grid or its own power plant. Typically, ,in It is the total amount of electricity supplied by the power grid (including the green electricity trading portion and the conventional thermal power portion).
[0053] The green electricity consumption ratio is calculated using the following formula ( ):
[0054] Parameter descriptions: The percentage of green electricity consumption ranges from 0% to 100%. The total green electricity consumption calculated in the aforementioned steps. The total electricity actually consumed by the enterprise. Optimization notes: If the calculated result exceeds 100% (e.g., excessive green certificates have been purchased), the smart contract can cap it at 100% or mark it as "excess consumption" according to the rules, for use as additional credentials in subsequent carbon quota trading.
[0055] S103. Call the evaluation and grading contract deployed on the blockchain to obtain the green electricity consumption ratio, the number of green electricity source types parsed from the on-chain evidence data, and the number of consecutive compliance periods. Calculate the comprehensive score of the target electricity-consuming enterprise based on a multi-dimensional comprehensive evaluation algorithm.
[0056] Traditional certifications often only consider the final electricity output, neglecting a company's efforts in optimizing its energy structure and maintaining long-term commitment. This embodiment employs a multi-dimensional evaluation model. Step S103 includes the following sub-steps: S1031. Analyze multi-dimensional evaluation index data. The contract extracts three key indicators from historical block data and the results of this calculation: Green electricity consumption ratio ( This reflects the level of "quantity" of green electricity consumption. (Number of green electricity source types) This reflects the "quality" and "structure" of green electricity consumption. It is defined as the total amount of different renewable energy types, such as wind power, solar power, hydropower, biomass energy, and geothermal energy, included in the green electricity consumed by the target electricity-consuming enterprise. Optimization explanation: This indicator encourages enterprises to promote the development of different types of new energy through diversified procurement. For example, if an enterprise purchases both solar power and wind power green certificates, then... It will automatically identify energy tags based on the contract metadata uploaded to the blockchain. Number of consecutive compliance periods ( This reflects the "sustainability" of energy consumption. It is defined as the number of accounting periods during which a target electricity-consuming enterprise continuously meets the minimum green energy efficiency requirement (e.g., a percentage > 10%).
[0057] The optimization explanation is that this is a cumulative metric. The contract will trace back the enterprise's historical on-chain records to calculate the length of the continuous chain. If there is an interruption (the metric is not met for a certain period), then... It may be reset or processed using a decay algorithm. This embodiment uses linear accumulation to encourage long-term thinking.
[0058] S1032. A first weight is assigned to the proportion of green electricity consumption, a second weight is assigned to the number of green electricity source types, and a third weight is assigned to the number of consecutive compliance periods. To scientifically synthesize a score, the indicators need to be weighted. In this preferred embodiment: First weight ( The second weighting is set at 50%, indicating that the proportion of waste disposal remains a core consideration. The third weight is set at 20% as a structural auxiliary indicator. The weighting is set at 30% to emphasize the importance of sustainability. Note: These weights can be dynamically adjusted through a governance voting mechanism (DAO) on the blockchain to adapt to policy directions at different stages.
[0059] S1033. Calculate the comprehensive score using the following formula.
[0060]
[0061] Parameter descriptions: The final comprehensive score is usually normalized to a 0-100 point scale. To ensure consistency in the formula's dimensions, adjustments will be made during actual calculations. and Perform normalization or set a score mapping. For example, 5 points are awarded for each additional type, with a maximum of 20 points; 2 points are awarded for each additional cycle, with a maximum score of 30 points. The original calculation method involved directly taking the percentage value (e.g., 80% equals 80 points) and multiplying it by the weighting factor before conversion. A revised example of the specific calculation logic is as follows: .
[0062] Here we assume It is a value between 0 and 100. If understood according to the simplest linear model, the values are directly substituted and weighted summation is performed to obtain a scalar that can be used for sorting and ranking.
[0063] S104. The identifier issuance contract deployed on the blockchain is invoked to match the comprehensive score with a preset level threshold, determine the green electricity consumption certification level of the target electricity-consuming enterprise, generate a transaction hash containing certification summary information, and trigger an identifier issuance event. This step realizes the transformation from "data" to "credit certificate". Step S104 includes the following sub-steps: S1041. A pre-defined green energy consumption certification grading system is established. This grading system includes at least AAA, AA, and A grades. This grading mechanism is more effective in motivating enterprises than a simple "qualified / unqualified" system.
[0064] S1042. Execute the level matching logic. The smart contract maintains a threshold table and executes the following judgment logic: Judge the comprehensive score ( If the score is greater than or equal to a first threshold (e.g., 90 points), then the green energy consumption certification level is determined to be AAA. This indicates that the company has performed exceptionally well in terms of green energy consumption volume, structural diversity, and sustainability, and is an industry benchmark.
[0065] If the overall score is less than the first threshold and greater than or equal to the second threshold (e.g., 80 points), then the green energy consumption certification level is determined to be AA, representing good performance.
[0066] If the overall score is less than the second threshold (e.g., 60 points), then the green energy consumption certification level is determined to be Grade A, representing that the basic threshold has been met.
[0067] If the threshold is lower than the minimum threshold, no badge will be issued or a "participating" status badge will be issued.
[0068] S1043. Generate Transaction Hash and Trigger Event. After determining the level, the contract packages the core results of this certification (Enterprise DID, accounting cycle, comprehensive score, certification level, and issuance timestamp) and writes them into a new transaction on the blockchain. Once this transaction is successfully uploaded to the blockchain, a unique transaction hash (TxHash) will be generated. Simultaneously, the contract triggers an "IssueLabelEvent" through the emit Event mechanism, notifying the off-chain application service layer.
[0069] S105. In response to the identifier issuance event, generate a green electricity consumption digital identifier carrying the transaction hash and the enterprise's digital identity, and issue the green electricity consumption digital identifier to the target electricity-consuming enterprise. This step is the interface connecting blockchain technology with end-user perception. Step S105 includes the following sub-steps: S1051. Listen for identifier issuance events issued by the identifier issuance contract through the identifier generator in the application service layer. The application service layer has a listening node deployed to subscribe to specific events on the blockchain in real time through WebSocket or RPC interface.
[0070] S1052. Obtain the transaction hash carried in the identifier issuance event and the enterprise digital identity information of the target electricity-consuming enterprise. Enterprise digital identity (DID) is a unique identifier for an enterprise on the blockchain, associated with its real-world identity such as its unified social credit code.
[0071] S1053. Construct an encoded string containing the verification platform's Uniform Resource Locator (URL) and the transaction hash, and convert the encoded string into a QR code-style digital identifier for green electricity consumption. The generated identifier is not just a static image, but an entry point. Example of the encoded string format: https: / / verify.xxxxxxx.com / query?txhash=0x123abc...&did=did:gec:company123 The URL points to the front-end address of the verification platform deployed in the cloud. The txhash, a unique credential stored on the blockchain, not only proves the authenticity of the identifier but also locks the data state at the moment the identifier is generated, preventing subsequent tampering. The green electricity consumption digital identifier serves as a trusted digital credential for the target electricity-consuming enterprise to publicize its green consumption practices. It can be printed on product packaging, corporate ESG reports, and the bottom of official websites, among other locations.
[0072] S106. In response to the scanning request of the green electricity consumption digital identifier by the third-party verification terminal, the transaction hash in the green electricity consumption digital identifier is parsed, the corresponding smart contract status is queried in the energy blockchain network, and the verification result and the public authentication digest are returned, without returning the original power business data in the on-chain evidence storage data.
[0073] This is a key step in the present invention to resolve the contradiction between privacy protection and public verification. Step S106 includes the following sub-steps: S1061. The verification platform receives a query request carrying the transaction hash sent by the third-party verification terminal. The third-party verification terminal can be a consumer's mobile phone, a regulatory agency's law enforcement terminal, or a bank's credit review system. After scanning the QR code, the terminal automatically sends an HTTP request to the verification platform.
[0074] S1062. Retrieve the corresponding identifier issuance contract record in the energy blockchain network based on the transaction hash. The verification platform, as a query node of the blockchain, uses eth_getTransactionReceipt or a similar RPC method to accurately locate the specific issuance transaction in massive amounts of on-chain data using the transaction hash.
[0075] S1063. Verify whether the retrieved record exists and whether the green electricity consumption digital identifier is within its validity period. Check: Does this transaction hash actually exist on the main chain (to prevent QR code forgery)?
[0076] Is the initiator of the transaction a legitimate "Identifier Issuing Contract" address (to prevent malicious contract spoofing)?
[0077] Is the current time within the validity period of the identifier (e.g., one year)?
[0078] S1064. If the record exists and is valid, return the verification passed status and the corresponding authentication level information to the third-party verification terminal; throughout the verification process, block access to the original data of the target electricity user's specific electricity consumption details, transaction contracts and settlement electricity, so as to achieve data availability without visibility.
[0079] The data returned to the front-end page only includes: Verification result: Valid / Invalid.
[0080] Certification Entity: [Company Name] (Anonymized Display).
[0081] Certification level: AAA.
[0082] Accounting period: January 1, 2023 - December 31, 2023.
[0083] Issuing Authority: Energy Blockchain Certification Center. Privacy Protection Mechanism: Although the on-chain evidence data (data in step S101) supports the calculation of the level, the verification interface strictly prohibits querying the input parameters of the calculation contract (i.e., detailed electricity consumption, contract details). Verifiers can only see the "output results" and cannot deduce the "input data." This "zero-knowledge proof" verification experience allows companies to confidently display their credentials without worrying about competitors using electricity consumption data to infer their production capacity, order volume, or production processes, thus perfectly resolving concerns about privacy leaks.
[0084] In summary, this embodiment constructs a closed-loop green energy consumption certification system through the aforementioned steps. From the bottom-level trusted on-chain data recording, to the middle-level automated smart contract processing, and finally to the top-level privacy protection verification, each step is interconnected. In particular, it ensures source trustworthiness by introducing oracles, scientific results by using multi-dimensional evaluation algorithms, and privacy and security by verifying transaction hashes. This solution is not only suitable for certification of individual enterprises but can also be extended to carbon footprint tracking and green certification at the park, city, and even supply chain levels, demonstrating broad application prospects.
[0085] This invention also provides a blockchain-based green electricity consumption label generation and verification device, referring to... Figure 3 The diagram shows a functional block diagram of a blockchain-based green electricity consumption identification generation and verification device 300 according to the present invention. The device may include the following modules: The data acquisition and on-chain module 301 is used to collect multi-source heterogeneous power business data through consensus nodes deployed in the energy blockchain network, and to verify the power business data off-chain and anchor it on-chain through oracle contracts to form tamper-proof on-chain evidence data. The consumption accounting module 302 is used to trigger the computing contract deployed on the blockchain when the end of the accounting cycle is detected or an accounting request initiated by the enterprise is received. Based on the on-chain evidence data, it executes the preset green electricity consumption accounting logic to calculate the total green electricity consumption and the proportion of green electricity consumption of the target electricity-consuming enterprise. The evaluation and grading module 303 is used to call the evaluation and grading contract deployed on the blockchain to obtain the green electricity consumption ratio, the number of green electricity source types parsed from the on-chain evidence data, and the number of consecutive compliance periods. Based on the multi-dimensional comprehensive evaluation algorithm, the comprehensive score of the target electricity-consuming enterprise is calculated. The identifier issuance module 304 is used to call the identifier issuance contract deployed on the blockchain, match the comprehensive score with the preset level threshold, determine the green electricity consumption certification level of the target electricity-consuming enterprise, generate a transaction hash containing certification summary information, and trigger the identifier issuance event. The identifier generation module 305 is used to respond to the identifier issuance event, generate a green electricity consumption digital identifier carrying the transaction hash and the enterprise's digital identity, and publish the green electricity consumption digital identifier to the target electricity-consuming enterprise; The verification service module 306 is used to respond to the scanning request of the green electricity consumption digital identifier by the third-party verification terminal, parse the transaction hash in the green electricity consumption digital identifier, query the corresponding smart contract status in the energy blockchain network, and return the verification result and the public authentication digest, without returning the original power business data in the on-chain evidence storage data.
[0086] Based on the same inventive concept, another embodiment of the present invention provides an electronic device, including a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus. Memory, used to store computer programs; The processor, when executing the program stored in the memory, implements the blockchain-based green energy consumption label generation and verification method of the present invention.
[0087] The communication bus mentioned above can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. This communication bus can be divided into address bus, data bus, control bus, etc. For ease of illustration, only one thick line is used in the diagram, but this does not indicate that there is only one bus or one type of bus. The communication interface is used for communication between the aforementioned terminal and other devices. The memory can include Random Access Memory (RAM), or non-volatile memory, such as at least one disk storage device. Optionally, the memory can also be at least one storage device located remotely from the aforementioned processor.
[0088] The processors mentioned above can be general-purpose processors, including central processing units (CPUs), network processors (NPs), etc.; they can also be digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components.
[0089] Furthermore, to achieve the above objectives, embodiments of the present invention also propose a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the blockchain-based green energy consumption label generation and verification method of the embodiments of the present invention.
[0090] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, apparatus, or computer program products. Therefore, embodiments of the present invention can take the form of entirely hardware embodiments, entirely software embodiments, or embodiments combining software and hardware aspects. Furthermore, embodiments of the present invention can take the form of computer program products implemented on one or more computer-usable hardware devices (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0091] The embodiments of the present invention are described with reference to flowchart illustrations and / or block diagrams of methods, terminal devices (apparatus), and computer program products according to embodiments of the invention. It should be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing terminal device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal device, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0092] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing terminal device to operate in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0093] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal equipment, causing a series of operational steps to be performed on the computer or other programmable terminal equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable terminal equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0094] Finally, it should be noted that in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. "And / or" indicates that either one or both can be chosen. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or terminal device that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or terminal device. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or terminal device that includes the element.
[0095] The above are merely specific embodiments of the present invention, but the scope of protection of the present invention is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in the present invention, and these modifications or substitutions should all be covered within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.
Claims
1. A blockchain-based method for green power consumption identification generation and verification, characterized in that, The method comprises: Through the consensus node deployed in the energy blockchain network, multi-source heterogeneous power business data is collected, and the power business data is verified off-chain and anchored on-chain through the oracle contract to form tamper-proof on-chain evidence data; When a calculation period end event is monitored or a calculation request initiated by an enterprise is received, a calculation contract deployed on the blockchain is triggered to execute a preset green power consumption calculation logic based on the on-chain evidence data to calculate the total amount of green power consumption and the green power consumption proportion of the target power-consuming enterprise; An evaluation grading contract deployed on the blockchain is called to obtain the green power consumption proportion, the number of green power source types parsed from the on-chain evidence data, and the number of consecutive compliance periods, and a comprehensive evaluation algorithm is used to calculate the comprehensive score of the target power-consuming enterprise; The identification issuing contract deployed on the blockchain is called to match the comprehensive score with a preset level threshold to determine the green power consumption certification level of the target power-consuming enterprise, generate a transaction hash containing the certification summary information, and trigger an identification issuing event; In response to the identification issuing event, a green power consumption digital identity carrying the transaction hash and the enterprise digital identity is generated and published to the target power-consuming enterprise; In response to a scanning request of a third-party verification terminal to the green power consumption digital identity, the transaction hash in the green power consumption digital identity is parsed, the corresponding smart contract state is queried in the energy blockchain network, and a verification result and a public certification summary are returned without returning the original power business data in the on-chain evidence data.
2. The blockchain-based green power consumption identification generation and verification method according to claim 1, characterized in that, Through the consensus node deployed in the energy blockchain network, multi-source heterogeneous power business data is collected, and the power business data is verified off-chain and anchored on-chain through the oracle contract to form tamper-proof on-chain evidence data, comprising: Through the blockchain client deployed in the new energy power plant node, the power trading center node and the power grid enterprise node, the power generation side data, the green certificate green power transaction side data and the consumption side data are obtained respectively; The power generation side data, the green certificate green power transaction side data and the consumption side data are encrypted and digitally signed using an asymmetric encryption algorithm to generate a to-be-verified data packet and send it to the energy blockchain network; The to-be-verified data packet is verified by the consensus node in the energy blockchain network, and the hash value of the verified data packet is recorded in a new block; The authoritative interface of the off-chain power transaction platform and the dispatching system is called through the oracle contract to obtain off-chain verification data, and the off-chain verification data is compared with the data corresponding to the hash value in the new block. If the comparison is consistent, the decrypted plaintext data is provided as the on-chain evidence data for subsequent smart contract calling. 3.The blockchain-based green power consumption identification generation and verification method of claim 2, wherein, Based on the on-chain evidence data, a preset green power consumption calculation logic is executed to calculate the total amount of green power consumption of the target power-consuming enterprise, comprising: extract green electricity transaction contract data and green electricity transaction settlement data in the accounting period from the on-chain storage data, calculate the first green electricity quantity purchased and consumed by the target power consumption enterprise through green electricity transaction in the accounting period; extract green certificate transaction purchase information in the accounting period from the on-chain storage data, convert each green certificate into a preset unit of electricity quantity, and calculate the second green electricity quantity held by the target power consumption enterprise through green certificate transaction in the accounting period; extract self-built power generation data and excess on-grid data in the accounting period from the on-chain storage data, calculate the difference between the self-generated green electricity monthly settlement quantity and the excess on-grid green electricity monthly settlement quantity, and obtain the third green electricity quantity of the target power consumption enterprise in the accounting period; add the first green electricity quantity, the second green electricity quantity and the third green electricity quantity to obtain the total green electricity consumption of the target power consumption enterprise.
4. The blockchain-based green power consumption identification generation and verification method according to claim 3, characterized in that, The formulas for calculating the first green electricity quantity, the second green electricity quantity and the third green electricity quantity are respectively: The calculation formula of the first green electricity quantity is: wherein, represents the first green electricity amount, represents the starting month of the accounting period, represents the ending month of the accounting period, represents the green electricity transaction monthly settlement amount of the month. The calculation formula of the second green electricity quantity is: wherein, represents the second green electricity amount, represents the first green certificate equivalent monthly distributed electricity amount of the first month, represents the green certificate equivalent monthly distributed electricity amount of the second month. The calculation formula of the third green electricity quantity is: wherein, represents the third green electricity amount, represents the spontaneous green electricity monthly settlement amount of the month, represents the excess amount of the month.
5. The blockchain-based green power consumption identification generation and verification method according to claim 4, characterized in that, execute the preset green electricity consumption amount accounting logic to calculate the green electricity consumption proportion of the target power consumption enterprise, including: obtain the regular electricity quantity of the target power consumption enterprise from the on-chain storage data; add the regular electricity quantity and the third green electricity quantity to obtain the total electricity quantity of the target power consumption enterprise; calculate the green electricity consumption proportion according to the total electricity quantity by using the following formula: wherein, represents the green electricity consumption proportion, represents the total amount of green electricity consumption and , represents the total amount of electricity consumption.
6. The blockchain-based green power consumption identification generation and verification method according to claim 1, characterized in that, calculate the comprehensive score of the target power consumption enterprise based on a multi-dimensional comprehensive evaluation algorithm, including: assign a first weight to the green electricity consumption proportion, a second weight to the number of green electricity source types, and a third weight to the number of consecutive standard periods; calculate the comprehensive score by using the following formula: wherein, represents the comprehensive score, represents the green electricity consumption proportion, represents the green electricity source type number, represents the continuous compliance period number, , , are the first weight, the second weight and the third weight, respectively. the first weight is set to 50%, the second weight is set to 20%, and the third weight is set to 30%; The number of green electricity source types refers to the total number of wind power, photovoltaic or other renewable energy types contained in the green electricity consumed by the target electricity user, and the number of consecutive compliance periods refers to the number of accounting periods in which the target electricity user continuously meets the minimum green electricity efficiency requirement.
7. The blockchain-based green power consumption identification generation and verification method according to claim 1, characterized in that, match the comprehensive score with a preset level threshold to determine the green electricity consumption certification level of the target power consumption enterprise, and generate a transaction hash containing certification summary information, including: a preset green electricity consumption certification level system, the level system at least includes AAA level, AA level and A level; determine whether the comprehensive score is greater than or equal to a first threshold, if yes, determine that the green electricity consumption certification level is AAA level; if the comprehensive score is less than the first threshold and greater than or equal to a second threshold, determine that the green electricity consumption certification level is AA level; if the comprehensive score is less than the second threshold, determine that the green electricity consumption certification level is A level; generate a certification summary containing the determined green electricity consumption certification level, accounting period and valid period information, and write the certification summary into a blockchain to generate a unique transaction hash. 8.The blockchain-based green power consumption identification generation and verification method of claim 1, wherein, in response to the identification issuance event, generate a green electricity consumption digital identity carrying the transaction hash and enterprise digital identity, including: listen to the identification issuance event issued by the identification issuance contract through the identification generator of the application service layer; Obtaining the transaction hash carried in the identity issuing event and the enterprise digital identity information of the target power-consuming enterprise; Constructing an encoded string containing a verification platform uniform resource locator (URL) and the transaction hash; Converting the encoded string into a green power consumption digital identity in the form of a two-dimensional code, which serves as a trusted digital certificate for the target power-consuming enterprise to publicly announce green consumption. 9.The blockchain-based green power consumption identification generation and verification method of claim 1, wherein, In the energy blockchain network, query the corresponding smart contract state, return the verification result and the public authentication summary, but not the original power business data in the on-chain storage data, including: The verification platform receives a query request sent by the third-party verification terminal, the query request carrying the transaction hash; According to the transaction hash, retrieve the corresponding identity issuing contract record in the energy blockchain network; Verify whether the retrieved record exists and whether the green power consumption digital identity is within the valid period; If the record exists and is valid, return the verification pass status and the corresponding authentication level information to the third-party verification terminal; During the entire verification process, the access rights of the specific power consumption details, transaction contract and original data of the settlement power of the target power-consuming enterprise are shielded, realizing the use of data but not visibility. 10.A blockchain-based green power consumption identification generation and verification apparatus, characterized in that, The device comprises: A data acquisition and on-chain module for collecting multi-source heterogeneous power business data through a consensus node deployed in an energy blockchain network, and performing off-chain verification and on-chain anchoring of the power business data through a pre-predictor contract to form tamper-proof on-chain storage data; A consumption accounting module for triggering a computing contract deployed on a blockchain when a monitoring end-of-accounting period event or a request initiated by an enterprise is received, executing a pre-set green power consumption amount accounting logic based on the on-chain storage data, and calculating the total amount of green power consumption and the proportion of green power consumption of the target power-consuming enterprise; An evaluation grading module for calling an evaluation grading contract deployed on a blockchain, obtaining the green power consumption proportion, the number of green power source types parsed from the on-chain storage data, and the number of consecutive compliance periods, and calculating the comprehensive score of the target power-consuming enterprise based on a multi-dimensional comprehensive evaluation algorithm; An identity issuing module for calling an identity issuing contract deployed on a blockchain, matching the comprehensive score with a pre-set level threshold to determine the green power consumption authentication level of the target power-consuming enterprise, generating a transaction hash containing authentication summary information, and triggering an identity issuing event; An identity generation module for generating a green power consumption digital identity carrying the transaction hash and enterprise digital identity in response to the identity issuing event, and publishing the green power consumption digital identity to the target power-consuming enterprise; A verification service module for responding to a scanning request of the green power consumption digital identity by a third-party verification terminal, parsing the transaction hash in the green power consumption digital identity, querying the corresponding smart contract state in the energy blockchain network, and returning the verification result and the public authentication summary, but not the original power business data in the on-chain storage data.