Renewable energy power consumption certificate management method and device based on blockchain
By using blockchain technology in the management of renewable energy power consumption certificates, the problems of easy data tampering and information asymmetry are solved, a transparent and secure management process is achieved, and the rapid processing of renewable energy power consumption certificates is promoted. develop.
Patent Information
- Application Number
- CN202011085139.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-10-12
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2040-10-12
AI Technical Summary
In the existing management process of renewable energy power consumption vouchers, there are problems such as easy data tampering and enterprise information asymmetry, which has led to the development of renewable energy power consumption vouchers entering a bottleneck period.
Using a blockchain-based management method, the decentralization of the blockchain is utilized by obtaining power transaction information, generating initial consumption vouchers and electronic signatures, storing them in the blockchain, and generating renewable energy power consumption vouchers based on the storage address. ization, security and traceability to achieve transparency and security.
It solves the problems of easy data tampering and information asymmetry, promotes the rapid development of renewable energy power consumption certificates, and achieves a transparent and secure management process.
Smart Images

Figure CN112232813B
Abstract
Description
Technical Field
[0001] The present application relates to the field of electric power technology, and in particular to a method and device for managing renewable energy power consumption certificates based on blockchain. Background Art
[0002] Renewable energy power consumption certificate refers to the green coding of renewable energy consumption from the source by the power trading center, and each megawatt-hour consumption corresponds to a renewable energy power consumption certificate. Renewable energy power consumption certificates can be divided into hydropower certificates and non-hydropower certificates. Renewable energy power consumption certificates have a unique code (that is, a unique identifier). By establishing a renewable energy power consumption certificate system, on the one hand, it promotes the current new energy electricity price system to adapt to the development of green electricity; on the other hand, it lays the foundation for future quota system mandatory transactions. However, due to the problems of easy data tampering and information asymmetry among enterprises in the management process of existing renewable energy power consumption certificates, the actual transaction volume of wind power and photovoltaic power consumption certificates in my country accounts for a very low proportion of the total issuance volume, which has led to the development of renewable energy power consumption certificates quickly entering a bottleneck period. Summary of the invention
[0003] In order to solve the above technical problems existing in the prior art, the present application provides a blockchain-based renewable energy power consumption certificate management method and device, which can solve the problems of easy data tampering and information asymmetry among enterprises in the existing management process of renewable energy power consumption certificates.
[0004] In order to achieve the above purpose, the technical solutions provided by the embodiments of the present application are as follows:
[0005] The present application embodiment provides a renewable energy power consumption certificate management method based on blockchain, which is applied to a renewable energy power consumption certificate management system. The method includes:
[0006] Acquire target power transaction information; the target power transaction information carries transaction information of target renewable energy power purchased by the target user from the target power plant;
[0007] Generate an initial consumption certificate and a target electronic signature according to the target power transaction information and the target contract; the target contract is a power transaction contract signed between the target user and the target power plant;
[0008] Generate a target consumption certificate according to the initial consumption certificate and the target electronic signature;
[0009] The target consumption voucher is stored in the blockchain to obtain the target storage address; the target storage address is used to represent the storage location of the target consumption voucher on the blockchain;
[0010] A renewable energy power consumption certificate belonging to the target user is generated according to the target storage address and the target consumption certificate.
[0011] Optionally, the obtaining of target power transaction information specifically includes:
[0012] Obtaining a blockchain index of target power transaction information; the blockchain index of the target power transaction information is used to represent a storage location of the target power transaction information on the blockchain;
[0013] According to the blockchain index of the target power transaction information, the target power transaction information is obtained from the blockchain.
[0014] Optionally, the blockchain index generation process of the target power transaction information is:
[0015] After determining that the target user and the target power plant have completed the target power transaction, obtaining target power transaction information;
[0016] generating a data fingerprint of the target power transaction information and an electronic signature of the target power transaction information according to the target power transaction information;
[0017] The data fingerprint of the target power transaction information and the electronic signature of the target power transaction information are stored in the blockchain to obtain the blockchain index of the target power transaction information.
[0018] Optionally, the method further includes:
[0019] The correspondence between the renewable energy power consumption certificate belonging to the target user and the user identification of the target user is added to the first mapping relationship; the first mapping relationship is used to record the correspondence between the renewable energy power consumption certificate and the user identification.
[0020] Optionally, the method further includes:
[0021] Acquire voucher purchase information; the voucher purchase information is used to represent transaction information of the target user purchasing the first renewable energy power consumption voucher from the first user;
[0022] Generate a new electronic signature corresponding to the first renewable energy power consumption certificate according to the certificate purchase information and the first renewable energy power consumption certificate carried in the certificate purchase information;
[0023] generating a second renewable energy power consumption certificate according to the new electronic signature corresponding to the first renewable energy power consumption certificate and the first renewable energy power consumption certificate;
[0024] Storing the second renewable energy power consumption certificate in a blockchain to obtain a blockchain index of the second renewable energy power consumption certificate;
[0025] Generate a fourth renewable energy power consumption certificate according to the blockchain index of the second renewable energy power consumption certificate and the second renewable energy power consumption certificate;
[0026] The correspondence between the fourth renewable energy power consumption certificate and the user identifier of the target user is added to the first mapping relationship, and the correspondence between the first renewable energy power consumption certificate and the first user in the first mapping relationship is deleted.
[0027] Optionally, the method further includes:
[0028] According to the first mapping relationship and the blockchain, the consumption of renewable energy power by the target user within a preset time period is determined.
[0029] Optionally, the target electronic signature carries the identity of the target power plant, the transaction time of the target renewable energy power, the power type of the target renewable energy power, the amount of the target renewable energy power, and the validity period corresponding to the target electronic signature.
[0030] The embodiment of the present application also provides a renewable energy power consumption certificate management device based on blockchain, including:
[0031] A first acquisition unit is used to acquire target power transaction information; the target power transaction information carries transaction information of the target user purchasing target renewable energy power from the target power plant;
[0032] A first generating unit is used to generate an initial consumption certificate and a target electronic signature according to the target power transaction information and the target contract; the target contract is a power transaction contract signed between the target user and the target power plant;
[0033] A second generating unit, configured to generate a target consumption certificate according to the initial consumption certificate and the target electronic signature;
[0034] A second acquisition unit is used to store the target consumption certificate in the blockchain to obtain the target storage address; the target storage address is used to represent the storage location of the target consumption certificate on the blockchain;
[0035] The third generating unit is used to generate a renewable energy power consumption certificate for a target user according to the target storage address and the target consumption certificate.
[0036] The present application also provides a device, the device comprising a processor and a memory:
[0037] The memory is used to store computer programs;
[0038] The processor is used to execute the blockchain-based renewable energy power consumption certificate management method provided in an embodiment of the present application according to the computer program.
[0039] The embodiment of the present application also provides a computer-readable storage medium, which is used to store a computer program, and the computer program is used to execute the blockchain-based renewable energy power consumption certificate management method provided in the embodiment of the present application.
[0040] Compared with the prior art, the embodiments of the present application have at least the following advantages:
[0041] In the blockchain-based renewable energy power consumption certificate management method applied to the blockchain-based renewable energy power consumption certificate management system provided by the embodiment of the present application, after obtaining the target power transaction information, first generate the initial consumption certificate and the target electronic signature according to the target power transaction information and the target contract, and generate the target consumption certificate according to the initial consumption certificate and the target electronic signature; then store the target consumption certificate in the blockchain to obtain the target storage address, and generate the renewable energy power consumption certificate belonging to the target user according to the target storage address and the target consumption certificate. Among them, the target power transaction information carries the transaction information of the target renewable energy power purchased by the target user from the target power plant; the target contract is the power transaction contract signed between the target user and the target power plant; the target storage address is used to represent the storage location of the target consumption certificate on the blockchain. It can be seen that due to the inherent decentralization, security and traceability of blockchain, the renewable energy power consumption certificate management system based on blockchain storage can achieve transparency, security and traceability in the management of renewable energy power consumption certificates, thereby solving the problems of easy data tampering and information asymmetry among enterprises in the existing management process of renewable energy power consumption certificates, which is conducive to promoting the rapid development of renewable energy power consumption certificates. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0043] Figure 1 A blockchain-based renewable energy power consumption certificate management method provided in an embodiment of the present application;
[0044] Figure 2 A schematic diagram of a blockchain-based renewable energy power consumption certificate management system provided in an embodiment of the present application;
[0045] Figure 3 Application provided for the embodiments of this application Figure 2 The flowchart of the renewable energy power consumption certificate management system based on blockchain for managing renewable energy power consumption certificates is shown;
[0046] Figure 4 A schematic diagram of the structure of a blockchain-based renewable energy power consumption certificate management device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0047] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0048] Method Example 1
[0049] See also Figure 1 , which is a blockchain-based renewable energy power consumption certificate management method provided in an embodiment of the present application.
[0050] The blockchain-based renewable energy power consumption certificate management method provided in the embodiment of the present application is applied to the blockchain-based renewable energy power consumption certificate management system, and the method includes S101-S105:
[0051] S101: Obtain target power transaction information.
[0052] The target power transaction information carries the transaction information of the target renewable energy power purchased by the target user from the target power plant.
[0053] The target users are used to represent corporate users who use electricity, that is, the target users are used to represent market players in the electricity trading market.
[0054] The target power plant is used to represent the power plant that provides electricity from renewable energy.
[0055] The target renewable energy power is used to characterize the renewable energy power purchased by the target user from the target power plant.
[0056] In addition, the target power transaction information is not limited in the embodiment of the present application. For example, the target power transaction information may include the identity of the target power plant, the transaction time of the target renewable energy power, the power type of the target renewable energy power, and the power amount of the target renewable energy power.
[0057] In addition, the embodiment of the present application does not limit the method for obtaining the target power transaction information, which is explained below with reference to two examples.
[0058] As a first example, a blockchain-based renewable energy power consumption certificate management system can directly obtain target power trading information from the power trading platform.
[0059] In the first example, after the target user and the target power plant complete the target power transaction on the power trading platform, the power trading platform can directly send the target power transaction information to the blockchain-based renewable energy power consumption certificate management system, so that the blockchain-based renewable energy power consumption certificate management system can use the received target power transaction information to generate a renewable energy power consumption certificate.
[0060] As a second example, the blockchain-based renewable energy power consumption certificate management system can obtain the target power transaction information pre-stored in the blockchain from the blockchain. Based on this, the embodiment of the present application also provides an implementation of S101, which specifically includes S1011-S1012:
[0061] S1011: Obtain the blockchain index of the target power transaction information.
[0062] The blockchain index of the target power transaction information is used to characterize the storage location of the target power transaction information on the blockchain.
[0063] In addition, the embodiment of the present application also provides a process for generating a blockchain index of target power transaction information, which may specifically include S10111-S10113:
[0064] S10111: After determining that the target user and the target power plant have completed the target power transaction, obtain target power transaction information.
[0065] S10112: Generate a data fingerprint of the target power transaction information and an electronic signature of the target power transaction information based on the target power transaction information.
[0066] The data fingerprint of the target power transaction information is used to uniquely identify the target power transaction information.
[0067] The electronic signature of the target power transaction information is used to characterize the target power transaction information.
[0068] S10113: Store the data fingerprint of the target power transaction information and the electronic signature of the target power transaction information in the blockchain to obtain the blockchain index of the target power transaction information.
[0069] Based on the relevant contents of S10111 to S10113 above, it can be known that in an embodiment of the present application, after determining that the target user and the target power plant have completed the target power transaction, the target power transaction information is first obtained, and based on the target power transaction information, a data fingerprint of the target power transaction information and an electronic signature of the target power transaction information are generated; then the data fingerprint of the target power transaction information and the electronic signature of the target power transaction information are stored in the blockchain, and the blockchain index of the target power transaction information fed back by the blockchain is obtained, so that the target power transaction information can be subsequently found from the blockchain based on the blockchain index of the target power transaction information.
[0070] It should be noted that the embodiment of the present application does not limit the execution subject of S10111-S10113. For example, S10111-S10113 can be executed by the power trading platform or by the blockchain-based renewable energy power consumption certificate management system.
[0071] It should be noted that the embodiments of the present application do not limit the implementation method of storing the target power trading information on the blockchain. For example, a hash value of the target power trading information can be generated first, and then the hash value of the target power trading information can be stored in the blockchain, so that the target power trading information can be determined subsequently using the hash value of the target power trading information stored in the blockchain.
[0072] S1012: Acquire target power transaction information from the blockchain according to the blockchain index of the target power transaction information.
[0073] Based on the relevant contents of S1011 to S1012 above, it can be known that in an embodiment of the present application, after determining that the target user and the target power plant have completed the target power transaction, the target power transaction information can be stored in the blockchain so that the subsequent blockchain-based renewable energy power consumption certificate management system can obtain the target power transaction information from the blockchain.
[0074] S102: Generate an initial consumption certificate and a target electronic signature according to the target power transaction information and the target contract.
[0075] The target contract is the power transaction contract signed between the target user and the target power plant. In addition, the embodiment of the present application does not limit the signing method of the target contract. For example, the target contract can be a blockchain-based electronic contract signed by the target user and the target power plant. Among them, the blockchain-based electronic contract process includes five steps: confirming the contract, entering the U-shield password, signing, completing the signature, and uploading to the chain.
[0076] The initial consumption certificate is generated based on the target power transaction information and the target contract; moreover, the embodiment of the present application does not limit the generation process of the initial consumption certificate. For example, the initial consumption certificate can be generated by issuing the target power transaction information and the target contract using the smart contract in the blockchain.
[0077] The target electronic signature is used to characterize the target power transaction information and the target contract. In addition, the embodiment of the present application does not limit the target electronic signature. For example, the target electronic signature carries the identity information of the power transaction platform, the identity information of the target power plant, the identity information of the target user, the transaction time of the target renewable energy power, the power type of the target renewable energy power, the power amount of the target renewable energy power, and the validity period corresponding to the target electronic signature.
[0078] In addition, the embodiments of the present application do not limit identity information. For example, the identity information may be an identity credential. Among them, when the target object is a target power plant, a target user or a power trading platform, the process of generating the identity credential of the target object is specifically as follows: obtaining the identity information of the target object, and verifying the identity information of the target object using a preset digital certificate verification mechanism; after determining that the identity information of the target object has passed the verification, calculating a hash value based on the identity information and public key information of the target object, and storing the hash value in the blockchain, obtaining a blockchain index corresponding to the identity information of the target object fed back by the blockchain, so as to generate the identity credential of the target object based on the blockchain index corresponding to the identity information of the target object, the identity information of the target object and the public key information of the target object.
[0079] It should be noted that the embodiment of the present application does not limit the public key information of the target object, and the public key information of the target object can be distributed to the target object by the public key distribution department. In addition, the embodiment of the present application does not limit the identity information of the target object, and the identity information of the target object refers to the digital certificate used for the identity of the target object.
[0080] The transaction time of the target renewable energy power refers to the time when the target user purchases the target renewable energy power from the target power plant.
[0081] The power type of the target renewable energy power is used to characterize the power type to which the target renewable energy power belongs, and the power type of the target renewable energy power may include solar power or wind power, etc.
[0082] The validity period corresponding to the target electronic signature is used to characterize the validity period of the target consumption certificate generated based on the target electronic signature.
[0083] Based on the above content, it can be seen that in an embodiment of the present application, after obtaining the target power trading information and the target contract, an initial consumption certificate and a target electronic signature can be generated according to the target power trading information and the target contract, so that a target consumption certificate that can be uploaded to the chain can be generated based on the initial consumption certificate and the target electronic signature.
[0084] S103: Generate a target consumption certificate according to the initial consumption certificate and the target electronic signature.
[0085] In an embodiment of the present application, after obtaining the initial consumption certificate and the target electronic signature, the target electronic signature can be embedded into the initial consumption certificate to obtain the target consumption certificate, so that the target consumption certificate can carry the information carried by the target electronic signature.
[0086] S104: Store the target consumption certificate in the blockchain to obtain the target storage address.
[0087] Among them, the target storage address is used to represent the storage location of the target consumption certificate on the blockchain.
[0088] In an embodiment of the present application, after obtaining the target consumption certificate, the target consumption certificate can be stored in the blockchain, and the blockchain index returned by the blockchain for representing the storage location of the target consumption certificate on the blockchain can be determined as the target storage address.
[0089] S105: Generate a renewable energy power consumption certificate belonging to the target user according to the target storage address and the target consumption certificate.
[0090] In the embodiment of the present application, after obtaining the target storage address, the target storage address can be added to the target consumption certificate, and the target consumption certificate with the target storage address added can be determined as the renewable energy power consumption certificate belonging to the target user. In this way, the renewable energy power consumption certificate belonging to the target user not only carries the transaction information between the target user and the target power plant, but also carries the storage location information of the renewable energy power consumption certificate belonging to the target user in the blockchain, so that the storage location of the renewable energy power consumption certificate in the blockchain and the transaction information corresponding to the renewable energy power consumption certificate can be accurately determined based on the information carried by the renewable energy power consumption certificate.
[0091] Based on the relevant contents of S101 to S105 above, it can be known that in the blockchain-based renewable energy power consumption certificate management method provided in the embodiment of the present application, after obtaining the target power transaction information, first generate the initial consumption certificate and the target electronic signature according to the target power transaction information and the target contract, and generate the target consumption certificate according to the initial consumption certificate and the target electronic signature; then store the target consumption certificate in the blockchain to obtain the target storage address, and generate the renewable energy power consumption certificate belonging to the target user according to the target storage address and the target consumption certificate. Among them, the target power transaction information carries the transaction information of the target renewable energy power purchased by the target user from the target power plant; the target contract is the power transaction contract signed between the target user and the target power plant; the target storage address is used to represent the storage location of the target consumption certificate on the blockchain.
[0092] It can be seen that due to the inherent decentralization, security and traceability of blockchain, the renewable energy power consumption certificate management system based on blockchain storage can achieve transparency, security and traceability in the management of renewable energy power consumption certificates, thereby solving the problems of easy data tampering and information asymmetry among enterprises in the existing management process of renewable energy power consumption certificates, which is conducive to promoting the rapid development of renewable energy power consumption certificates.
[0093] Method Example 2
[0094] In some cases, the blockchain-based renewable energy power consumption certificate management system can also establish a relationship between the renewable energy power consumption certificate belonging to the target user and the target user, so that the renewable energy power consumption certificate corresponding to the target user can be directly obtained from the blockchain-based renewable energy power consumption certificate management system later. Based on this, the embodiment of the present application also provides an implementation method of a blockchain-based renewable energy power consumption certificate management method. In this implementation method, in addition to the above S101-S105, the blockchain-based renewable energy power consumption certificate management method can also include S106:
[0095] S106: Add the correspondence between the renewable energy power consumption certificate belonging to the target user and the user identification of the target user to the first mapping relationship.
[0096] The first mapping relationship is used to record the corresponding relationship between the renewable energy power consumption certificate and the user identification. In addition, the embodiment of the present application does not limit the representation method of the first mapping relationship, for example, it can be represented by a mapping table.
[0097] The user identifier is used to uniquely identify a user, and the embodiments of the present application do not limit the user identifier. For example, the user identifier may refer to a user account.
[0098] In the embodiment of the present application, after obtaining the renewable energy power consumption certificate belonging to the target user, the blockchain-based renewable energy power consumption certificate management system can add the correspondence between the renewable energy power consumption certificate belonging to the target user and the user identification of the target user to the first mapping relationship, so that the first mapping relationship can record the correspondence between the renewable energy power consumption certificate belonging to the target user and the user identification of the target user. For example, after obtaining the renewable energy power consumption certificate belonging to the target user, the blockchain-based renewable energy power consumption certificate management system can directly record the renewable energy power consumption certificate belonging to the target user in the target user's account, so that the target user can learn from his own account the renewable energy power consumption certificate he already has.
[0099] In some cases, users can not only obtain renewable energy power consumption certificates by purchasing renewable energy power from power plants, but also directly purchase the excess renewable energy power consumption certificates from other users. Based on this, the embodiment of the present application also provides another implementation of a method for managing renewable energy power consumption certificates based on blockchain. In this implementation, the method for managing renewable energy power consumption certificates based on blockchain can include S107-S112 in addition to the above S101-S106:
[0100] S107: Obtain voucher purchase information.
[0101] The certificate purchase information is used to represent transaction information of the target user purchasing the first renewable energy power consumption certificate from the first user.
[0102] The embodiments of the present application do not limit the voucher purchase information. For example, the voucher purchase information includes the identity information of the voucher purchaser, the identity information of the voucher seller, relevant information of the purchased renewable energy power consumption voucher, etc.
[0103] S108: Generate a new electronic signature corresponding to the first renewable energy power consumption certificate based on the certificate purchase information and the first renewable energy power consumption certificate carried in the certificate purchase information.
[0104] In the embodiment of the present application, since the electronic signature of the renewable energy power consumption certificate carries the user information of the user to which the renewable energy power consumption certificate belongs, in the purchase transaction of the renewable energy power consumption certificate, it is necessary to update the user information of the user carried in the electronic signature of the renewable energy power consumption certificate to the user information of the purchasing user. Based on this, after obtaining the certificate purchase information, a new electronic signature corresponding to the first renewable energy power consumption certificate can be generated based on the certificate purchase information and the first renewable energy power consumption certificate carried in the certificate purchase information, so that the user information of the user carried in the new electronic signature corresponding to the first renewable energy power consumption certificate is the user information of the purchasing user, that is, the new electronic signature corresponding to the first renewable energy power consumption certificate carries the user identification of the target user, so that the above-mentioned purchased renewable energy power consumption certificate can be updated based on the new electronic signature.
[0105] S109: Generate a second renewable energy power consumption certificate based on the new electronic signature corresponding to the first renewable energy power consumption certificate and the first renewable energy power consumption certificate.
[0106] In an embodiment of the present application, after obtaining the new electronic signature corresponding to the first renewable energy power consumption certificate and the first renewable energy power consumption certificate, a second renewable energy power consumption certificate can be generated based on the new electronic signature corresponding to the first renewable energy power consumption certificate and the first renewable energy power consumption certificate, and the generation process can be specifically as follows: first, based on the first blockchain index carried in the first renewable energy power consumption certificate, determine from the blockchain the first block represented by the first blockchain index; then obtain the consumption certificate stored in the first block, and replace the electronic signature in the consumption certificate stored in the first block with the new electronic signature corresponding to the first renewable energy power consumption certificate to obtain the second renewable energy power consumption certificate.
[0107] S110: Store the second renewable energy power consumption certificate in the blockchain to obtain a blockchain index of the second renewable energy power consumption certificate.
[0108] In an embodiment of the present application, after obtaining the second renewable energy power consumption certificate, the second renewable energy power consumption certificate can be stored in the blockchain, and the blockchain index returned by the blockchain for characterizing the storage location of the second renewable energy power consumption certificate on the blockchain can be determined as the blockchain index of the second renewable energy power consumption certificate.
[0109] S111: Generate a fourth renewable energy power consumption certificate according to the blockchain index of the second renewable energy power consumption certificate and the second renewable energy power consumption certificate.
[0110] In the embodiment of the present application, after obtaining the blockchain index of the second renewable energy power consumption certificate, the blockchain index of the second renewable energy power consumption certificate can be added to the second renewable energy power consumption certificate, and the second renewable energy power consumption certificate with the blockchain index of the second renewable energy power consumption certificate added can be determined as the fourth renewable energy power consumption certificate. The fourth renewable energy power consumption certificate generated in this way not only carries the storage location information of the renewable energy power consumption certificate purchased by the target user in the blockchain, but also carries the purchase transaction information corresponding to the renewable energy power consumption certificate purchased by the target user, so that the transaction information of the target user's purchase of the renewable energy power consumption certificate and the ownership information of these purchased renewable energy power consumption certificates can be accurately determined based on the fourth renewable energy power consumption certificate.
[0111] S112: Add the correspondence between the fourth renewable energy power consumption certificate and the user identifier of the target user to the first mapping relationship, and delete the correspondence between the first renewable energy power consumption certificate and the first user in the first mapping relationship.
[0112] In the embodiment of the present application, after the target user purchases the first renewable energy power consumption certificate from the first user, the correspondence between the first renewable energy power consumption certificate and the user identification should be updated, which can be specifically: the correspondence between the fourth renewable energy power consumption certificate generated based on the first renewable energy power consumption certificate and the user identification of the target user is added to the first mapping relationship, and the correspondence between the first renewable energy power consumption certificate and the first user in the first mapping relationship is deleted. For example, after the blockchain-based renewable energy power consumption certificate management system generates the fourth renewable energy power consumption certificate based on the first renewable energy power consumption certificate, it can directly record the fourth renewable energy power consumption certificate in the target user's account and delete the first renewable energy power consumption certificate from the first user's account.
[0113] It should be noted that when the target user sells renewable energy power consumption certificates, the target user can play the trading role of the first user mentioned above in the transaction process of the renewable energy power consumption certificates. For the sake of brevity, it will not be repeated here.
[0114] In some cases, the blockchain-based renewable energy power consumption voucher management system can also calculate the consumption of renewable energy power by each user. Based on this, the embodiment of the present application also provides an implementation method of a blockchain-based renewable energy power consumption voucher management method. In this implementation method, the blockchain-based renewable energy power consumption voucher management method can include all or part of the above steps, and can also include S113:
[0115] S113: Determine the consumption of renewable energy power by the target user within a preset time period based on the first mapping relationship and the blockchain.
[0116] In an embodiment of the present application, the renewable energy power consumption certificate management system based on blockchain can calculate the consumption of renewable energy power by each user, specifically: according to the first mapping relationship and the blockchain, the consumption of renewable energy power by the target user within a preset time period is determined, so that the subsequent renewable energy power consumption certificate management system based on blockchain can determine whether the target user has reached a preset renewable energy power consumption index value within the preset time period based on the consumption.
[0117] In addition, in order to further explain the blockchain-based renewable energy power consumption certificate management method provided in the embodiment of the present application, the following is combined with Figure 2 The following is an overall introduction to the blockchain-based renewable energy power consumption certificate management system. Figure 2 A schematic diagram of a blockchain-based renewable energy power consumption certificate management system provided in an embodiment of the present application.
[0118] System Example
[0119] Figure 2 The blockchain-based renewable energy power consumption certificate management system shown is a system for managing renewable energy power consumption certificates based on blockchain technology, and the blockchain-based renewable energy power consumption certificate management system is used to realize the full process management of the issuance, transaction, accounting and traceability of renewable energy power consumption certificates.
[0120] in addition, Figure 2 The blockchain-based renewable energy power consumption certificate management system shown includes: blockchain certificate verification unit, blockchain identity authentication unit, blockchain electronic contract unit, certificate management unit and transaction unit. The relevant information of these units is introduced in turn below.
[0121] (1) Relevant information of blockchain evidence verification unit.
[0122] The evidence information processed by the blockchain evidence verification unit cannot be tampered with, deleted, or denied, and the blockchain evidence verification unit writes the evidence information into the blockchain for storage through the electronic data record evidence server. Among them, the electronic data record evidence server can belong to the renewable energy power consumption certificate management system based on blockchain, and in particular, it can belong to the data evidence unit in the blockchain evidence verification unit; the electronic data record evidence server can also be independent of the renewable energy power consumption certificate management system based on blockchain, and the embodiment of the present application does not make specific limitations on this.
[0123] After receiving the original data information submitted by the electronic data submitter, the electronic evidence business system in the blockchain evidence verification unit submits the original data information to the electronic data record evidence server, so that the electronic data record evidence server first records the data fingerprint of the original data information, inserts the timestamp, and generates the electronic signature of the original data information according to the original data information; the electronic data record evidence server then submits the data fingerprint and electronic signature of the original data information to the blockchain, so that the blockchain evidence verification unit receives the blockchain return of the data fingerprint and the blockchain index of the original data information, so that other units of the renewable energy power consumption certificate management system based on the blockchain can be verified based on the blockchain index. Among them, the electronic data submitter is used to submit the acquired original data information to the electronic evidence business system, and the original data information refers to information related to renewable energy power, for example, the original data information can be power transaction information, certificate transaction information, user-related information, or power plant-related information.
[0124] (2) Relevant information of blockchain identity authentication unit.
[0125] The blockchain identity authentication unit is used to perform the identity authentication process of the object to be authenticated, and the functions of the blockchain identity authentication unit mainly include: using the verification mechanism of the preset digital certificate to verify the identity of the object to be authenticated, so as to obtain the identity information of the object to be authenticated after determining that the identity of the object to be authenticated has passed the verification, and sending the identity information of the object to be authenticated and the public key to the blockchain identity management module in the blockchain identity authentication unit, so that the blockchain identity management module will store the hash value generated based on the identity information and public key information of the object to be authenticated in the blockchain, so that after the blockchain returns the storage address number to the blockchain identity management module, the blockchain identity management module generates an identity certificate carrying the storage address, the object to be authenticated information and the public key information as the identity certificate of the object to be authenticated, so that other units of the subsequent blockchain-based renewable energy power consumption certificate management system can use the identity certificate of the object to be authenticated. Among them, the object to be authenticated can be a power plant, a user of electricity or an electricity trading platform.
[0126] In addition, the blockchain identity authentication unit is also used to verify whether the identities of both parties in the power transaction or certificate transaction are authentic and reliable based on the identity credentials stored in the blockchain.
[0127] (3) Relevant information of blockchain electronic contract unit.
[0128] The blockchain electronic contract unit is used to execute the electronic contract generation process between different objects. The process of generating an electronic contract by the blockchain electronic contract unit includes five steps: confirming the contract, entering the U-shield password, signing, completing the signature, and uploading the contract. Among them, the three steps of confirming the contract, entering the U-shield password, and signing, which are related to the user experience, are consistent with the digital certificate signature. The user does not perceive the completion of the two steps of signing and uploading the contract, which are automatically completed by the system. The uploading information includes: blockchain identity credentials, signature value, and hash value of the signed file.
[0129] Among them, the blockchain electronic contract unit can form a smart contract based on the information released by the transaction (power transaction or certificate transaction) participants (for example, power supply capacity information, power demand information, certificate purchase demand information or certificate sale demand information, etc.), and realize the automatic matching of supply and demand through the matching mechanism. Based on the electronic contract module, after the transaction companies sign the transaction contract, they can conduct point-to-point renewable energy power consumption certificate transactions.
[0130] (4) Information related to the credential management unit.
[0131] The voucher management unit is used to execute the processing related to the renewable energy power consumption voucher (for example, the issuance, transaction and accounting of the renewable energy power consumption voucher). Among them, the voucher management unit can realize the renewable energy power consumption guarantee mechanism based on blockchain technology, and the core of blockchain technology is that blockchain technology can turn the renewable energy power consumption voucher into a digital asset registered on the chain, and can transfer the value of digital assets in a point-to-point network, increase the liquidity of the voucher assets, realize the whole process traceability, solve the problem of cumbersome voucher issuance process, and enhance the attractiveness of the voucher to the buyer. Voucher transactions are used to realize the automatic execution of transactions through blockchain smart contracts. Smart contracts are modular and automatically executed scripts running on the blockchain, and have the characteristics of data transparency, non-tamperability, and permanent operation, using program algorithms to replace human arbitration and execution of contracts. In addition, the execution process of the voucher transaction always carries the electronic signature of the party to which it belongs, so the transaction can generate a voucher statistical report by counting the electronic signature of the renewable energy power consumption voucher, and then realize the consumption accounting (that is, the consumption accounting of renewable energy power) of each responsible entity (that is, the user of electricity). The blockchain-based renewable energy power consumption certificate management system records the entire process of certificate issuance and transfer, and uses the help of various participants on the blockchain to jointly form effective supervision over the entire process of certificate issuance, transaction, and accounting.
[0132] After obtaining the transaction information between the user and the power plant, the blockchain-based renewable energy power consumption certificate management system will first perform a reliability test on the transaction information (that is, detect whether the transaction information is generated for renewable energy power), so that after determining that the transaction information passes the reliability test, the transaction information will be encrypted and stored in the blockchain for tamper-proof protection, so that it can be queried and used by other units of the blockchain-based renewable energy power consumption certificate management system. In addition, before issuing the certificate, the certificate management unit will also verify the received transaction information based on the information stored in the blockchain, so as to issue the certificate when it is determined that the transaction information is true information.
[0133] Based on the above content, it can be known that the blockchain-based renewable energy power consumption certificate management system provided by the embodiment of the present application uses blockchain technology to realize the full process management of renewable energy power consumption certificates, ensures the identity of both parties to the transaction through the identity authentication module, ensures the authenticity of the data on the chain through the evidence verification module, and ensures the full process transfer and traceability of the certificate through the electronic contract, distributed power trading and renewable energy power consumption guarantee module. In addition, the blockchain-based renewable energy power consumption certificate management system builds a renewable energy consumption guarantee mechanism based on blockchain technology to realize the issuance, transaction, accounting and traceability of renewable energy power consumption certificates. The specific process is as follows: First, after the user and power plant using electricity complete the transaction on the power trading platform, they send the physical execution settlement results of the renewable energy market transaction to the renewable energy consumption system. The consumption platform generates the corresponding renewable energy power consumption certificate through the blockchain smart contract based on the transaction contract and transaction information. Secondly, the user using electricity sells the excess renewable energy power consumption certificate on the consumption platform, or initiates the certificate purchase information, and uses the blockchain consensus mechanism to meet the price negotiation between the two parties. The two parties can automatically sign the contract through the smart contract when they reach an agreement on the transaction price. At the same time, the electronic signature technology of blockchain is used to count the electronic signatures of renewable energy power consumption certificates, so as to realize the consumption volume accounting of the responsible entity. Finally, blockchain technology has the characteristics of being tamper-proof and multi-point consensus. The renewable energy power consumption system based on blockchain records the entire process of certificate issuance and transfer, which can effectively ensure the traceability of the entire process of certificates and ensure the transparency, security and traceability of transactions.
[0134] In order to facilitate understanding of the technical solution of the present application, a detailed description is given below in conjunction with a scenario embodiment.
[0135] Scenario Example
[0136] See also Figure 3 , which is an application provided by the embodiment of the present application Figure 2 The flowchart shown is a blockchain-based renewable energy power consumption certificate management system for managing renewable energy power consumption certificates.
[0137] The blockchain-based renewable energy power consumption certificate management method provided in the embodiment of the present application may specifically include the following steps:
[0138] Step 1: Renewable energy power generation enterprises (such as target power plants) and market subject users (such as target users) can register through the blockchain-based renewable energy power consumption certificate management system, and the registration process is performed by a blockchain identity authentication unit with a relatively high credibility, and the blockchain identity authentication unit can generate the identity certificate of the renewable energy power generation enterprise and the identity certificate of the market subject user respectively, and the corresponding relationship between each identity certificate and each public key is jointly stored by the authority on the blockchain. Among them, there is a one-to-one correspondence between the identity certificate and the public key.
[0139] Step 2: The power trading platform organizes market entities and power plants to conduct power transactions. After the transaction is completed, the trading platform will simultaneously send the physical execution settlement results of the renewable energy market-based transaction (such as the target power transaction information) to the blockchain-based renewable energy power consumption certificate management system. The management system issues the corresponding renewable energy power consumption certificate for the excess consumption amount through the blockchain smart contract based on the transaction contract and transaction information. This certificate has a unique code, and the certificate is embedded with the producer, production time, production location, power category, validity period and other information of the corresponding renewable energy power. The certificate is also embedded with the electronic signature of the power trading platform for the above embedded information. Subsequently, the renewable energy power consumption certificate is uploaded to the chain (that is, stored in the blockchain), and the certificate address (that is, the storage address of the renewable energy power consumption certificate in the blockchain) is returned. Then, the certificate address needs to be added to the renewable energy power consumption certificate to obtain the final renewable energy power consumption certificate, and the final renewable energy power consumption certificate is sent to the consumption account of each consumption responsible entity (such as the target user) for recording. In addition, when the above renewable energy power consumption certificate is issued, the issuance time can be marked through the blockchain, and the expiration time of the renewable energy power consumption certificate can be set to avoid the renewable energy power consumption certificate being counted repeatedly in the next year. At the same time, through the consensus on the chain, it can be ensured that the certificate will only be issued once for each megawatt-hour of renewable energy power issued by the power generation enterprise, and it will not be issued repeatedly.
[0140] Step 3: System users (such as target users) can authenticate their identities through the blockchain identity authentication unit to ensure that their identities are authentic and reliable. For example, when market subject user A initiates a voucher / consumption volume transaction demand through the blockchain due to the failure to complete the consumption volume, and market subject user B exceeds the consumption volume indicator and also initiates voucher sales information through the blockchain, then the voucher transaction is carried out. The voucher transaction is completed through multiple rounds of transaction matching, which is mainly divided into two ways: bilateral transaction and listing transaction. In order to facilitate the understanding of these two transactions, they are introduced below.
[0141] Bilateral transactions:
[0142] Assume that in the blockchain-based renewable energy power consumption certificate management system, there are a certificate purchaser and b certificate sellers participating in the transaction, specifically: certificate purchaser A1, certificate purchaser A2, certificate purchaser A3, ..., certificate purchaser A a The demand for voucher purchase is published on the blockchain, and voucher seller B1, voucher seller B2, voucher seller B3, ..., voucher seller B b Publish the voucher sales demand on the blockchain.
[0143] Based on the above assumptions, bilateral transactions can be specifically: the buyer and seller of the voucher can first agree on the matching method offline, and then complete the bilateral transaction matching online. i With the jth voucher seller B j This article takes the bilateral transaction between two countries as an example.
[0144] As an example, when the i-th voucher purchaser A i The demand for voucher purchase S Ai The jth voucher seller B j The demand for selling certificates S Bj When the i-th certificate purchaser A i With the jth voucher seller B j If a match is reached offline, the blockchain electronic contract can be used to sign the voucher transaction contract, so that a consumption voucher transfer process can be completed based on the voucher transaction contract (that is, some consumption vouchers are transferred from the jth voucher seller B to the jth voucher seller B). j Transfer to the i-th certificate purchaser A i ) and upload key transaction contract information to the chain.
[0145] In fact, if the i-th certificate buyer A i The demand for voucher purchase S Ai is relatively small, then the i-th certificate purchaser A i The voucher purchase demand S can be achieved through only one round of voucher trading process. Ai However, if the i-th certificate buyer A i The demand for voucher purchase S Ai is relatively large, then the i-th certificate purchaser A i Through the m+1 rounds of voucher trading process, the voucher purchase demand S can be achieved. Ai The certificate of the m+1th round of certificate transaction process satisfies the constraints expressed by the following formulas (1) to (3):
[0146]
[0147]
[0148]
[0149] In the formula, A is the i-th certificate buyer in the m+1th round of certificate trading. i The demand for voucher purchase; B is the jth voucher seller in the n+1th round of voucher trading. j The demand for voucher sales; S Ai A is the i-th certificate purchaser i Total demand for voucher purchases; S Bj B is the seller of the jth voucher j Total demand for voucher sales; A is the i-th voucher purchaser in the k-th round of voucher trading. i The number of consumption vouchers purchased; is the jth voucher seller B in the tth round of voucher trading j The amount of consumption certificates sold; m is the number of the i-th certificate purchaser A i The number of rounds of the voucher transaction process that has passed, where m is a non-negative integer; n is the number of the jth voucher seller B j The number of rounds of voucher trading process that have been experienced, where n is a non-negative integer; means Can be greater than It can also be equal to Can also be less than
[0150] Based on the above formulas (1) to (3), it can be seen that in the i-th voucher purchaser A i After m rounds of voucher trading, the jth voucher seller B j After n rounds of voucher trading, when the i-th voucher buyer A i To the jth voucher seller B j When purchasing a voucher, if Then the i-th certificate buyer A i You can first sell the j-th certificate to B j Buy Then buy from others like Then the i-th certificate buyer A i You can directly sell the j-th voucher to B j Buy To reach the i-th certificate purchaser A i The total demand for voucher purchases; if Then the i-th certificate buyer Ai The jth voucher seller B can j Buy So that the jth voucher seller B j The remaining Sell to others; or, the i-th certificate buyer A i The jth voucher seller B can j Buy So that the i-th certificate purchaser A i You can use the excess Sell to others.
[0151] Listing:
[0152] Assume that in the blockchain-based renewable energy power consumption certificate management system, there are a certificate purchaser and b certificate sellers participating in the transaction, specifically: certificate purchaser A1, certificate purchaser A2, certificate purchaser A3, ..., certificate purchaser A a The demand for voucher purchase is published on the blockchain, and voucher seller B1, voucher seller B2, voucher seller B3, ..., voucher seller B b Publish the voucher sales demand on the blockchain.
[0153] Based on the above assumptions, we can see that when the i-th voucher purchaser A i The demand for voucher purchase S Ai The jth voucher seller B j The demand for selling certificates S Bj When the i-th certificate purchaser A i With the jth voucher seller B j The listed transactions between them are:
[0154] 1) If the jth voucher seller B j Listed, and the i-th certificate buyer A i If the listing is delisted, the listing transaction process is as follows: the i-th certificate buyer A i In the m+1th round of voucher purchase, the jth voucher seller B was picked j The cards are hung. Among them, the seller of the jth voucher is B j Sold consumption voucher quantity S Bj The listing is carried out, and in the n+1th round of certificate sales, the jth certificate seller B j The remaining consumption certificates listed are The i-th certificate purchaser A i In the process of purchasing the m+1th round of certificates, the amount of certificates consumed by delisting shall be In addition, the above listing and trading process needs to meet the constraints expressed by formulas (4)-(5).
[0155]
[0156]
[0157] In the formula, A is the i-th voucher purchaser in the m+1th round of voucher purchase i The amount of delisting certificates, and m is a non-negative integer; B is the jth voucher seller in the n+1th round of voucher sales. j The remaining consumption certificates that have been listed, and n is a non-negative integer; S Ai S is the total demand for voucher purchases by the i-th voucher purchaser Ai; Bj B is the jth voucher seller j Total listings for sale; B is the jth voucher seller in the tth round of voucher sales j The amount of consumption certificates sold; A is the i-th certificate buyer in the k-th round of certificate sales i The number of consumption vouchers purchased.
[0158] Based on the above formulas (4)-(5), it can be seen that in the i-th voucher purchaser A i After m rounds of voucher purchases, the jth voucher seller B j After n rounds of voucher sales, if the i-th voucher buyer A i In the process of purchasing the m+1th round of certificates, if the number of certificates to be delisted and consumed meets the constraint conditions expressed by formula (5), then the jth certificate seller B can be delisted. j The listing is on the market.
[0159] It should be noted that in the listing transaction, the listed consumption certificate quantity of the selling user cannot be modified once it is posted. That is, if the j-th certificate seller B j Sold consumption voucher quantity S Bj If the listing is carried out, then the seller of the jth certificate B j Only according to the consumption voucher quantity S Bj Sold and cannot be changed.
[0160] 2) If the i-th certificate purchaser A i Listing, the jth certificate seller B j The listing transaction process is as follows: the jth certificate seller B j The i-th certificate buyer A i Among them, the i-th voucher purchaser A i Purchase consumption certificate quantity SAi The listing is carried out, and in the m+1th round of certificate purchase process, the i-th certificate purchaser A i The remaining consumption certificates listed are The jth voucher seller B j In the n+1th round of certificate sales, the number of certificates consumed by delisting shall be In addition, the above listing and trading process needs to meet the constraints expressed by formulas (6)-(7).
[0161]
[0162]
[0163] In the formula, A is the i-th voucher purchaser in the m+1th round of voucher purchase i The remaining consumption certificates that have been listed, and m is a non-negative integer; B is the jth voucher seller in the n+1th round of voucher sales. j The amount of delisting certificates, and n is a non-negative integer; S Ai S is the total amount of listing sales of the i-th certificate purchaser Ai; Bj B is the jth voucher seller j Total demand for vouchers sold; B is the jth voucher seller in the tth round of voucher sales j The amount of consumption certificates sold; A is the i-th certificate buyer in the k-th round of certificate sales i The number of consumption vouchers purchased.
[0164] Based on the above formulas (6)-(7), it can be seen that in the i-th voucher purchaser A i After m rounds of voucher purchases, the jth voucher seller B j After n rounds of voucher sales, if the jth voucher seller B j In the process of selling the certificate in the n+1th round, if the number of certificates sold meets the constraint condition expressed by formula (7), then the i-th certificate buyer A can be sold. i The listing is on the market.
[0165] It should be noted that in the listing transaction, the listed consumption certificate quantity of the purchasing user cannot be modified once it is posted. That is, if the i-th certificate purchaser A i Purchase consumption certificate quantity S Ai If the i-th certificate purchaser A i Only according to the consumption voucher quantity S Ai Purchases are made and cannot be changed.
[0166] In addition, the trading center creates trading sequences for listed transactions from time to time, determines the scope of the transaction, the minimum price, the declaration time limit, the access members and other basic trading information, and publishes trading announcements. When the voucher trading subject meets the transaction requirements for trading, the buyer and seller of the voucher reach a price consensus through the blockchain, use the blockchain electronic contract to sign the voucher trading contract, and put the key information of the trading contract on the chain. After the demand side completes the payment, the voucher transfer contract is triggered. The contract executes the voucher transfer from B to A, adds a "transfer" record from B to A, and B signs A's public key + voucher, and then stores it on the chain. Market subject A obtains the voucher and the corresponding on-chain address of the voucher. At the same time, the corresponding consumption voucher quantity statistics in the renewable energy power consumption system also automatically change. The amount of vouchers consumed by market subject A has increased, and the amount of vouchers consumed by market subject B's account has decreased.
[0167] Step 4: The voucher transaction process always carries the electronic signature of the party to whom it belongs. By counting the electronic signatures of the consumption vouchers, a voucher statistical report can be generated, thereby realizing the accounting of the consumption voucher quantity of each responsible entity. At the same time, voluntarily subscribed green certificates can also be used as a supplement to power consumption. The same amount of green certificates can supplement the same amount of consumption vouchers. When calculating the completion of the consumption voucher quantity, the consumption voucher quantity corresponding to the voluntarily subscribed green certificates must be included. A data sharing mechanism is established between the power trading center and the renewable energy information center, and the interconnection and interoperability of the renewable energy power consumption voucher full-process management system and the green certificate subscription platform are realized through blockchain. When the responsible entity uploads the subscribed green certificate related information to the consumption management system, it can quickly and accurately identify the validity of the green certificate. Once it is determined that it meets the consumption voucher quantity accounting requirements, it will be automatically included in the consumption voucher quantity completion index of the responsible entity, realizing the rapid accounting of the consumption voucher quantity statistical report.
[0168] Step 5: The power trading chain records the entire process of issuance and transfer of renewable energy power consumption certificates. System users can verify the authenticity of renewable energy power consumption certificates in the power trading chain, trace the issuance and transfer process, and at the same time, with the help of various participants on the blockchain, jointly form effective supervision over the entire process of certificate issuance, transaction, and accounting.
[0169] Based on the relevant contents of steps 1 to 5 above, this application focuses on the key blockchain technologies and implementation methods required to support the renewable energy power consumption guarantee mechanism, and explores the renewable energy consumption guarantee mechanism based on blockchain technology to solve the problems and difficulties of the current green power certificates in the renewable energy power consumption system. It makes full use of the distributed ledger technology, consensus mechanism and smart contracts of blockchain technology, and realizes the full process management of the issuance, transaction, accounting and traceability of renewable energy consumption certificates, so as to better support the renewable energy consumption guarantee mechanism and the market-oriented transaction application of distributed power generation. In addition, this application uses blockchain technology to realize the full process management of renewable energy power consumption certificates, ensures the identity of both parties to the transaction through the identity authentication module, ensures the authenticity of the data on the chain through the evidence verification module, and ensures the full process transfer and traceability of the certificates through the electronic contract and renewable energy power consumption certificate management module. The full process management method of consumption certificates based on blockchain technology and the improvement of certificate management process are insurmountable for other competitors.
[0170] Based on the relevant contents of the above-mentioned blockchain-based renewable energy power consumption certificate management method, the embodiment of the present application also provides a blockchain-based renewable energy power consumption certificate management device, which is described below in conjunction with the accompanying drawings.
[0171] Device Embodiment
[0172] For the renewable energy power consumption certificate management device based on blockchain provided by the device embodiment, please refer to the relevant content of the renewable energy power consumption certificate management method based on blockchain provided by the method embodiment above.
[0173] See also Figure 4 , which is a structural diagram of a blockchain-based renewable energy power consumption certificate management device provided in an embodiment of the present application.
[0174] The blockchain-based renewable energy power consumption certificate management device 300 provided in the embodiment of the present application includes:
[0175] The first acquisition unit 401 is used to acquire target power transaction information; the target power transaction information carries transaction information of the target user purchasing target renewable energy power from the target power plant;
[0176] The first generating unit 402 is used to generate an initial consumption certificate and a target electronic signature according to the target power transaction information and the target contract; the target contract is a power transaction contract signed between the target user and the target power plant;
[0177] The second generating unit 403 is used to generate a target consumption certificate according to the initial consumption certificate and the target electronic signature;
[0178] The second acquisition unit 404 is used to store the target consumption certificate in the blockchain to obtain the target storage address; the target storage address is used to represent the storage location of the target consumption certificate on the blockchain;
[0179] The third generating unit 405 is used to generate a renewable energy power consumption certificate for a target user according to the target storage address and the target consumption certificate.
[0180] In a possible implementation manner, the first acquiring unit 401 is specifically configured to:
[0181] Obtaining a blockchain index of target power transaction information; the blockchain index of the target power transaction information is used to represent a storage location of the target power transaction information on the blockchain;
[0182] According to the blockchain index of the target power transaction information, the target power transaction information is obtained from the blockchain.
[0183] In a possible implementation, the blockchain index generation process of the target power transaction information is as follows:
[0184] After determining that the target user and the target power plant have completed the target power transaction, obtaining target power transaction information;
[0185] generating a data fingerprint of the target power transaction information and an electronic signature of the target power transaction information according to the target power transaction information;
[0186] The data fingerprint of the target power transaction information and the electronic signature of the target power transaction information are stored in the blockchain to obtain the blockchain index of the target power transaction information.
[0187] In a possible implementation, the blockchain-based renewable energy power consumption certificate management device 400 further includes:
[0188] The fourth generating unit is used to add the correspondence between the renewable energy power consumption certificate belonging to the target user and the user identification of the target user to the first mapping relationship; the first mapping relationship is used to record the correspondence between the renewable energy power consumption certificate and the user identification.
[0189] In a possible implementation, the blockchain-based renewable energy power consumption certificate management device 400 further includes:
[0190] A third acquisition unit is used to acquire voucher purchase information; the voucher purchase information is used to represent transaction information of the target user purchasing the first renewable energy power consumption voucher from the first user;
[0191] A fifth generating unit, configured to generate a new electronic signature corresponding to the first renewable energy power consumption certificate according to the certificate purchase information and the first renewable energy power consumption certificate carried in the certificate purchase information;
[0192] A sixth generating unit, configured to generate a second renewable energy power consumption certificate according to the new electronic signature corresponding to the first renewable energy power consumption certificate and the first renewable energy power consumption certificate;
[0193] A fourth acquisition unit, configured to store the second renewable energy power consumption certificate in a blockchain, and obtain a blockchain index of the second renewable energy power consumption certificate;
[0194] a seventh generating unit, configured to generate a fourth renewable energy power consumption certificate according to the blockchain index of the second renewable energy power consumption certificate and the second renewable energy power consumption certificate;
[0195] The eighth generating unit is used to add the correspondence between the fourth renewable energy power consumption certificate and the user identifier of the target user to the first mapping relationship, and delete the correspondence between the first renewable energy power consumption certificate and the first user in the first mapping relationship.
[0196] In a possible implementation, the blockchain-based renewable energy power consumption certificate management device 400 further includes:
[0197] A determination unit is used to determine the consumption of renewable energy power by the target user within a preset time period based on the first mapping relationship and the blockchain.
[0198] In one possible implementation, the target electronic signature carries the identity of the target power plant, the transaction time of the target renewable energy power, the power type of the target renewable energy power, the amount of the target renewable energy power, and the validity period corresponding to the target electronic signature.
[0199] Based on the relevant contents of the above-mentioned renewable energy power consumption certificate management device 400, it can be known that in the embodiment of the present application, after obtaining the target power transaction information, the initial consumption certificate and the target electronic signature are first generated according to the target power transaction information and the target contract, and the target consumption certificate is generated according to the initial consumption certificate and the target electronic signature; the target consumption certificate is then stored in the blockchain to obtain the target storage address, and the renewable energy power consumption certificate belonging to the target user is generated according to the target storage address and the target consumption certificate. Among them, the target power transaction information carries the transaction information of the target renewable energy power purchased by the target user from the target power plant; the target contract is the power transaction contract signed between the target user and the target power plant; the target storage address is used to represent the storage location of the target consumption certificate on the blockchain. It can be seen that due to the inherent decentralization, security and traceability of blockchain, the renewable energy power consumption certificate management system based on blockchain storage can achieve transparent, secure and traceable management of renewable energy power consumption certificates, thereby solving the problems of easy data tampering and information asymmetry among enterprises in the existing management process of renewable energy power consumption certificates based on blockchain, which is conducive to promoting the rapid development of renewable energy power consumption certificates.
[0200] Based on the blockchain-based renewable energy power consumption certificate management method provided in the above method embodiment, the embodiment of the present application also provides a device, which is explained and illustrated in conjunction with the device embodiment below.
[0201] Device Embodiment
[0202] For technical details of the device provided in the device embodiment, please refer to the above method embodiment.
[0203] The device provided in the embodiment of the present application includes: a processor and a memory;
[0204] The memory is used to store computer programs;
[0205] The processor is used to execute any implementation of the blockchain-based renewable energy power consumption certificate management method provided by the above method embodiment according to the computer program. That is, the processor is used to execute the following steps:
[0206] Acquire target power transaction information; the target power transaction information carries transaction information of target renewable energy power purchased by the target user from the target power plant;
[0207] Generate an initial consumption certificate and a target electronic signature according to the target power transaction information and the target contract; the target contract is a power transaction contract signed between the target user and the target power plant;
[0208] Generate a target consumption certificate according to the initial consumption certificate and the target electronic signature;
[0209] The target consumption voucher is stored in the blockchain to obtain the target storage address; the target storage address is used to represent the storage location of the target consumption voucher on the blockchain;
[0210] A renewable energy power consumption certificate belonging to the target user is generated according to the target storage address and the target consumption certificate.
[0211] Optionally, the obtaining of target power transaction information specifically includes:
[0212] Obtaining a blockchain index of target power transaction information; the blockchain index of the target power transaction information is used to represent a storage location of the target power transaction information on the blockchain;
[0213] According to the blockchain index of the target power transaction information, the target power transaction information is obtained from the blockchain.
[0214] Optionally, the blockchain index generation process of the target power transaction information is:
[0215] After determining that the target user and the target power plant have completed the target power transaction, obtaining target power transaction information;
[0216] generating a data fingerprint of the target power transaction information and an electronic signature of the target power transaction information according to the target power transaction information;
[0217] The data fingerprint of the target power transaction information and the electronic signature of the target power transaction information are stored in the blockchain to obtain the blockchain index of the target power transaction information.
[0218] Optionally, also include:
[0219] The correspondence between the renewable energy power consumption certificate belonging to the target user and the user identification of the target user is added to the first mapping relationship; the first mapping relationship is used to record the correspondence between the renewable energy power consumption certificate and the user identification.
[0220] Optionally, the method further includes:
[0221] Acquire voucher purchase information; the voucher purchase information is used to represent transaction information of the target user purchasing the first renewable energy power consumption voucher from the first user;
[0222] Generate a new electronic signature corresponding to the first renewable energy power consumption certificate according to the certificate purchase information and the first renewable energy power consumption certificate carried in the certificate purchase information;
[0223] generating a second renewable energy power consumption certificate according to the new electronic signature corresponding to the first renewable energy power consumption certificate and the first renewable energy power consumption certificate;
[0224] Storing the second renewable energy power consumption certificate in a blockchain to obtain a blockchain index of the second renewable energy power consumption certificate;
[0225] Generate a fourth renewable energy power consumption certificate according to the blockchain index of the second renewable energy power consumption certificate and the second renewable energy power consumption certificate;
[0226] The correspondence between the fourth renewable energy power consumption certificate and the user identifier of the target user is added to the first mapping relationship, and the correspondence between the first renewable energy power consumption certificate and the first user in the first mapping relationship is deleted.
[0227] Optionally, the method further includes:
[0228] According to the first mapping relationship and the blockchain, the consumption of renewable energy power by the target user within a preset time period is determined.
[0229] Optionally, the target electronic signature carries the identity of the target power plant, the transaction time of the target renewable energy power, the power type of the target renewable energy power, the amount of the target renewable energy power, and the validity period corresponding to the target electronic signature.
[0230] The above is the relevant content of the device provided in the embodiment of this application.
[0231] Based on the blockchain-based renewable energy power consumption certificate management method provided by the above method embodiment, the embodiment of the present application also provides a computer-readable storage medium.
[0232] Medium Embodiment
[0233] For technical details of the computer-readable storage medium provided by the medium embodiment, please refer to the method embodiment.
[0234] The embodiment of the present application provides a computer-readable storage medium, which is used to store a computer program, and the computer program is used to execute any implementation of the blockchain-based renewable energy power consumption certificate management method provided in the above method embodiment. In other words, the computer program is used to execute the following steps:
[0235] Acquire target power transaction information; the target power transaction information carries transaction information of target renewable energy power purchased by the target user from the target power plant;
[0236] Generate an initial consumption certificate and a target electronic signature according to the target power transaction information and the target contract; the target contract is a power transaction contract signed between the target user and the target power plant;
[0237] Generate a target consumption certificate according to the initial consumption certificate and the target electronic signature;
[0238] The target consumption voucher is stored in the blockchain to obtain the target storage address; the target storage address is used to represent the storage location of the target consumption voucher on the blockchain;
[0239] A renewable energy power consumption certificate belonging to the target user is generated according to the target storage address and the target consumption certificate.
[0240] Optionally, the obtaining of target power transaction information specifically includes:
[0241] Obtaining a blockchain index of target power transaction information; the blockchain index of the target power transaction information is used to represent a storage location of the target power transaction information on the blockchain;
[0242] According to the blockchain index of the target power transaction information, the target power transaction information is obtained from the blockchain.
[0243] Optionally, the blockchain index generation process of the target power transaction information is:
[0244] After determining that the target user and the target power plant have completed the target power transaction, obtaining target power transaction information;
[0245] generating a data fingerprint of the target power transaction information and an electronic signature of the target power transaction information according to the target power transaction information;
[0246] The data fingerprint of the target power transaction information and the electronic signature of the target power transaction information are stored in the blockchain to obtain the blockchain index of the target power transaction information.
[0247] Optionally, also include:
[0248] The correspondence between the renewable energy power consumption certificate belonging to the target user and the user identification of the target user is added to the first mapping relationship; the first mapping relationship is used to record the correspondence between the renewable energy power consumption certificate and the user identification.
[0249] Optionally, the method further includes:
[0250] Acquire voucher purchase information; the voucher purchase information is used to represent transaction information of the target user purchasing the first renewable energy power consumption voucher from the first user;
[0251] Generate a new electronic signature corresponding to the first renewable energy power consumption certificate according to the certificate purchase information and the first renewable energy power consumption certificate carried in the certificate purchase information;
[0252] generating a second renewable energy power consumption certificate according to the new electronic signature corresponding to the first renewable energy power consumption certificate and the first renewable energy power consumption certificate;
[0253] Storing the second renewable energy power consumption certificate in a blockchain to obtain a blockchain index of the second renewable energy power consumption certificate;
[0254] Generate a fourth renewable energy power consumption certificate according to the blockchain index of the second renewable energy power consumption certificate and the second renewable energy power consumption certificate;
[0255] The correspondence between the fourth renewable energy power consumption certificate and the user identifier of the target user is added to the first mapping relationship, and the correspondence between the first renewable energy power consumption certificate and the first user in the first mapping relationship is deleted.
[0256] Optionally, the method further includes:
[0257] According to the first mapping relationship and the blockchain, the consumption of renewable energy power by the target user within a preset time period is determined.
[0258] Optionally, the target electronic signature carries the identity of the target power plant, the transaction time of the target renewable energy power, the power type of the target renewable energy power, the amount of the target renewable energy power, and the validity period corresponding to the target electronic signature.
[0259] The above is the relevant content of the computer-readable storage medium provided in the embodiments of the present application.
[0260] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.
[0261] The above is only a preferred embodiment of the present invention and does not limit the present invention in any form. Although the present invention has been disclosed as above in the preferred embodiment, it is not used to limit the present invention. Any technician familiar with the art can make many possible changes and modifications to the technical solution of the present invention by using the methods and technical contents disclosed above without departing from the scope of the technical solution of the present invention, or modify it into an equivalent embodiment of equivalent changes. Therefore, any simple modification, equivalent change and modification made to the above embodiments according to the technical essence of the present invention without departing from the content of the technical solution of the present invention still falls within the scope of protection of the technical solution of the present invention.
Claims
1. A method for managing renewable energy power consumption certificates based on blockchain, characterized in that: Applied to a renewable energy power consumption voucher management system, the method comprises: Acquire target power transaction information; the target power transaction information carries transaction information of target renewable energy power purchased by the target user from the target power plant; Generate an initial consumption certificate and a target electronic signature according to the target power transaction information and the target contract; the target contract is a power transaction contract signed between the target user and the target power plant; Generate a target consumption certificate according to the initial consumption certificate and the target electronic signature; The target consumption voucher is stored in the blockchain to obtain the target storage address; the target storage address is used to represent the storage location of the target consumption voucher on the blockchain; Generate a renewable energy power consumption certificate belonging to the target user according to the target storage address and the target consumption certificate; Acquire voucher purchase information; the voucher purchase information is used to represent transaction information of the target user purchasing the first renewable energy power consumption voucher from the first user; Generate a new electronic signature corresponding to the first renewable energy power consumption certificate according to the certificate purchase information and the first renewable energy power consumption certificate carried in the certificate purchase information; generating a second renewable energy power consumption certificate according to the new electronic signature corresponding to the first renewable energy power consumption certificate and the first renewable energy power consumption certificate; Storing the second renewable energy power consumption certificate in a blockchain to obtain a blockchain index of the second renewable energy power consumption certificate; Generate a fourth renewable energy power consumption certificate according to the blockchain index of the second renewable energy power consumption certificate and the second renewable energy power consumption certificate; The voucher transaction between the target user and the first user includes a bilateral transaction and a listing transaction, wherein the bilateral transaction process satisfies the following rules: if the i-th voucher purchaser A i The demand for voucher purchase S Ai is relatively small, then the i-th voucher purchaser A i Through a round of voucher trading process, the voucher purchase demand S is achieved. Ai However, if the i-th certificate buyer A i The demand for voucher purchase S Ai is relatively large, then the i-th certificate purchaser A i Through the m+1 rounds of voucher trading process, the voucher purchase demand S can be achieved. Ai The certificate of the m+1th round of certificate transaction process satisfies the constraints expressed by the following formula: In the formula, A is the i-th certificate buyer in the m+1th round of certificate trading. i The demand for voucher purchase; B is the jth voucher seller in the n+1th round of voucher trading. j The demand for voucher sales; S Ai A is the i-th certificate purchaser i Total demand for voucher purchases; S Bj B is the seller of the jth voucher j Total demand for voucher sales; A is the i-th voucher purchaser in the k-th round of voucher trading. i The number of consumption vouchers purchased; is the jth voucher seller B in the tth round of voucher trading j The amount of consumption certificates sold; m is the number of the i-th certificate purchaser A i The number of rounds of the voucher transaction process that has passed, where m is a non-negative integer; n is the number of the jth voucher seller B j The number of rounds of voucher trading process that have been experienced, where n is a non-negative integer; means Greater than or equal or Less than 2. The method according to claim 1, characterized in that The obtaining of target power transaction information specifically includes: Obtaining a blockchain index of target power transaction information; the blockchain index of the target power transaction information is used to represent a storage location of the target power transaction information on the blockchain; According to the blockchain index of the target power transaction information, the target power transaction information is obtained from the blockchain.
3. The method according to claim 2, characterized in that The blockchain index generation process of the target power transaction information is as follows: After determining that the target user and the target power plant have completed the target power transaction, obtaining target power transaction information; generating a data fingerprint of the target power transaction information and an electronic signature of the target power transaction information according to the target power transaction information; The data fingerprint of the target power transaction information and the electronic signature of the target power transaction information are stored in the blockchain to obtain the blockchain index of the target power transaction information.
4. The method according to claim 1, characterized in that: The method further comprises: The correspondence between the renewable energy power consumption certificate belonging to the target user and the user identification of the target user is added to the first mapping relationship; the first mapping relationship is used to record the correspondence between the renewable energy power consumption certificate and the user identification.
5. The method according to claim 4, characterized in that The method further comprises: The correspondence between the fourth renewable energy power consumption certificate and the user identifier of the target user is added to the first mapping relationship, and the correspondence between the first renewable energy power consumption certificate and the first user in the first mapping relationship is deleted.
6. The method according to claim 4, characterized in that The method further comprises: According to the first mapping relationship and the blockchain, the consumption of renewable energy power by the target user within a preset time period is determined.
7. The method according to claim 1, characterized in that The target electronic signature carries the identity of the target power plant, the transaction time of the target renewable energy power, the power type of the target renewable energy power, the amount of the target renewable energy power, and the validity period corresponding to the target electronic signature.
8. A renewable energy power consumption certificate management device based on blockchain, characterized in that: include: A first acquisition unit, used to acquire target power transaction information; The target power transaction information carries transaction information of the target user purchasing target renewable energy power from the target power plant; A first generating unit, configured to generate an initial consumption certificate and a target electronic signature according to the target power transaction information and the target contract; The target contract is a power transaction contract signed between the target user and the target power plant; A second generating unit, configured to generate a target consumption certificate according to the initial consumption certificate and the target electronic signature; A second acquisition unit is used to store the target consumption certificate in the blockchain to obtain the target storage address; The target storage address is used to represent the storage location of the target consumption certificate on the blockchain; A third generating unit is used to generate a renewable energy power consumption certificate for a target user according to the target storage address and the target consumption certificate; A third acquisition unit is used to acquire voucher purchase information; the voucher purchase information is used to represent transaction information of the target user purchasing the first renewable energy power consumption voucher from the first user; A fifth generating unit, configured to generate a new electronic signature corresponding to the first renewable energy power consumption certificate according to the certificate purchase information and the first renewable energy power consumption certificate carried in the certificate purchase information; A sixth generating unit, configured to generate a second renewable energy power consumption certificate according to the new electronic signature corresponding to the first renewable energy power consumption certificate and the first renewable energy power consumption certificate; A fourth acquisition unit, configured to store the second renewable energy power consumption certificate in a blockchain, and obtain a blockchain index of the second renewable energy power consumption certificate; a seventh generating unit, configured to generate a fourth renewable energy power consumption certificate according to the blockchain index of the second renewable energy power consumption certificate and the second renewable energy power consumption certificate, The voucher transaction between the target user and the first user includes a bilateral transaction and a listing transaction, wherein the bilateral transaction process satisfies the following rules: if the i-th voucher purchaser A i The demand for voucher purchase S Ai is relatively small, then the i-th voucher purchaser A i Through a round of voucher trading process, the voucher purchase demand S is achieved. Ai However, if the i-th certificate buyer A i The demand for voucher purchase S Ai is relatively large, then the i-th certificate purchaser A i Through the m+1 rounds of voucher trading process, the voucher purchase demand S can be achieved. Ai The certificate of the m+1th round of certificate transaction process satisfies the constraints expressed by the following formula: In the formula, A is the i-th certificate buyer in the m+1th round of certificate trading. i The demand for voucher purchase; B is the jth voucher seller in the n+1th round of voucher trading. j The demand for voucher sales; Ai A is the i-th certificate purchaser i Total demand for voucher purchases; S Bj B is the seller of the jth voucher j Total demand for voucher sales; A is the i-th voucher purchaser in the k-th round of voucher trading. i The number of consumption vouchers purchased; is the jth voucher seller B in the tth round of voucher trading j The amount of consumption certificates sold; m is the number of the i-th certificate purchaser A i The number of rounds of the voucher transaction process that has passed, where m is a non-negative integer; n is the number of the jth voucher seller B j The number of rounds of voucher trading process that have been experienced, where n is a non-negative integer; means Greater than or equal or Less than 9. A device, characterized in that: The device comprises a processor and a memory: The memory is used to store computer programs; The processor is configured to execute the method of any one of claims 1 to 7 according to the computer program.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium is used to store a computer program, and the computer program is used to execute the method according to any one of claims 1 to 7.
