CN114358766A - Method, equipment and blockchain system for trading green electric certificates - Google Patents

Method, equipment and blockchain system for trading green electric certificates Download PDF

Info

Publication number
CN114358766A
CN114358766A CN202111406662.5A CN202111406662A CN114358766A CN 114358766 A CN114358766 A CN 114358766A CN 202111406662 A CN202111406662 A CN 202111406662A CN 114358766 A CN114358766 A CN 114358766A
Authority
CN
China
Prior art keywords
transaction
green
electricity
power
user
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111406662.5A
Other languages
Chinese (zh)
Inventor
齐荣
鲁静
刘亚建
程晗蕾
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Yuanguang Software Co Ltd
Original Assignee
Yuanguang Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Yuanguang Software Co Ltd filed Critical Yuanguang Software Co Ltd
Priority to CN202111406662.5A priority Critical patent/CN114358766A/en
Publication of CN114358766A publication Critical patent/CN114358766A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y04INFORMATION OR COMMUNICATION TECHNOLOGIES HAVING AN IMPACT ON OTHER TECHNOLOGY AREAS
    • Y04SSYSTEMS INTEGRATING TECHNOLOGIES RELATED TO POWER NETWORK OPERATION, COMMUNICATION OR INFORMATION TECHNOLOGIES FOR IMPROVING THE ELECTRICAL POWER GENERATION, TRANSMISSION, DISTRIBUTION, MANAGEMENT OR USAGE, i.e. SMART GRIDS
    • Y04S50/00Market activities related to the operation of systems integrating technologies related to power network operation or related to communication or information technologies
    • Y04S50/12Billing, invoicing, buying or selling transactions or other related activities, e.g. cost or usage evaluation

Abstract

The application discloses a method, equipment and a blockchain system for trading of green electric certificates, wherein the method comprises the following steps: after the preset block chain node issues a first transaction demand at the first user node and a second transaction demand at the second user node, determining that the first transaction demand is matched with the second transaction demand; after the first user node and the second user node complete signing the transaction contract of the green electric certificate based on the first transaction requirement and the second transaction requirement, the preset block chain link point stores the transaction contract of the green electric certificate into the block chain.

Description

Method, equipment and blockchain system for trading green electric certificates
Technical Field
The application relates to the technical field of new energy electric power, in particular to a method, equipment and a block chain system for trading of green electric certificates.
Background
Green electricity is electric energy with zero or nearly zero emission amount harmful to the environment in the power generation process, for example, electric energy generated by generating power by using renewable energy sources such as wind energy, solar energy, biomass energy and the like. Compared with other power generation methods such as thermal power generation, the power generation process has less impact on the environment, is beneficial to environmental protection and sustainable development, and is called green power.
The green electricity use certificate can prove that the user uses a certain amount of green electricity, and can issue the green electricity use certificate to the user after determining the green electricity use amount of the user. Meanwhile, the green electricity use voucher can be transferred to a green electricity user who fails to fulfill the green electricity consumption responsibility in full amount by a user who completes the green electricity consumption responsibility in excess amount.
In a long research and development process, the applicant of the application finds that in the existing green electricity use voucher generating and trading process, the existing green electricity use voucher generating and trading process cannot guarantee authenticity and safety of green electricity use voucher trading.
Disclosure of Invention
The technical problem that this application mainly solved is to provide a method, equipment and block chain system of green electricity voucher transaction, can guarantee the authenticity and the security of green electricity voucher transaction of using.
In order to solve the technical problem, the application adopts a technical scheme that: a transaction method of a green electric certificate is provided, and the method comprises the following steps: after a preset block chain node issues a first transaction requirement at a first user node and a second transaction requirement at a second user node, determining that the first transaction requirement is matched with the second transaction requirement, wherein one of the first transaction requirement and the second transaction requirement is a purchase requirement of a green electricity voucher, and the other one of the first transaction requirement and the second transaction requirement is a sale requirement of the green electricity voucher, and the green electricity voucher is used for proving that a user uses green electricity; after the first user node and the second user node complete the transaction contract of signing the green electric certificate based on the first transaction requirement and the second transaction requirement, the preset block chain link point stores the transaction contract of the green electric certificate into the block chain.
In order to solve the above technical problem, another technical solution adopted by the present application is: the transaction device of the green electric voucher is provided and comprises a processor and a memory, wherein the memory is used for storing program data, and the processor is used for executing the program data to realize the method.
In order to solve the above technical problem, another technical solution adopted by the present application is: the blockchain system comprises a plurality of blockchain nodes, wherein the plurality of blockchain nodes comprise a preset blockchain node, a first user node and a second user node.
In the scheme, the preset block chain node can match the user with the green electric certificate transaction requirement with other users with corresponding transaction requirements, and after both parties achieve the green electric certificate transaction and sign the transaction contract, the transaction contract is linked for storage.
Drawings
FIG. 1 is a flow chart illustrating an embodiment of a method for trading a green certificate according to the present invention;
FIG. 2 is a flow chart illustrating a transaction method of the green certificate of the present application according to another embodiment;
FIG. 3 is a flow chart illustrating a transaction method of the green certificate of the present application according to another embodiment;
FIG. 4 is a schematic flow chart illustrating another embodiment of step S310;
FIG. 5 is a schematic flow chart diagram illustrating a transaction method for a green certificate of the present application according to yet another embodiment;
FIG. 6 is a block diagram of an embodiment of a transaction device for a green voucher of the present application;
FIG. 7 is a block diagram of an embodiment of a transaction device for a green voucher of the present application;
fig. 8 is a block chain architecture diagram of the present application.
Detailed Description
In order to make the purpose, technical solution and effect of the present application clearer and clearer, the present application is further described in detail below with reference to the accompanying drawings and examples.
Referring to fig. 1, fig. 1 is a schematic flow chart illustrating a transaction method of a green certificate of the present application. It is understood that the present application relates to a blockchain system, where the blockchain system includes a plurality of blockchain nodes, and a server corresponding to a credential transaction platform (also referred to as a credential transaction platform for short) and a new user equipment can join the blockchain system, so as to become nodes in the blockchain system, that is, the blockchain nodes. The method comprises the following steps:
step S110: and after the preset block chain node issues the first transaction requirement at the first user node and issues the second transaction requirement at the second user node, determining that the first transaction requirement is matched with the second transaction requirement.
The preset block link point referred in the application may be a voucher transaction platform or a first user node. It is understood that the green electricity voucher may also be referred to as a green electricity use voucher, the green electricity voucher may be in the form of a picture, and the green electricity use voucher may be stored in a block chain and has a unique home party, which may be used to prove that the home party uses a certain amount of green electricity, for example, one green electricity voucher may be used to prove that the home party uses 1MWh of green electricity. Under the advocation of green environmental protection, some users have the responsibility of absorbing the green electricity with the preset quantity, so the green electricity voucher can be used for proving that the users use a certain quantity of green electricity, and whether the users complete the responsibility of absorbing the green electricity can be judged according to the quantity of the green electricity voucher. At this time, there may be some users who have completed the green electricity consumption responsibility in excess, and then have redundant green electricity vouchers, and some users who have failed to fulfill the green electricity consumption responsibility in full amount need to complement the green electricity vouchers to prove that they have completed the green electricity consumption responsibility. The user who completes the green electricity consumption responsibility in excess can sell the redundant green electricity voucher to the user who fails to fulfill the green electricity consumption responsibility in full, and the transaction of the green electricity voucher corresponds to the conversion of the attribution party of the green electricity voucher.
One of the first user node and the second user node has a requirement for selling the green electric certificate, and the other has a requirement for purchasing the green electric certificate, so that the transaction requirement comprises two types, one type is the selling requirement of the green electric certificate, and the other type is the purchasing requirement of the green electric certificate. The content of the transaction demand may include at least one of a projected voucher transaction amount and a projected transaction price. The condition that the two transaction demands are matched comprises that the two demands are different types of transaction demands, namely one is a purchase demand of the green electric certificate, and the other is a sale demand of the green electric certificate. Therefore, one of the first transaction requirement and the second transaction requirement is the purchase requirement of the green electricity voucher, and the other one is the sale requirement of the green electricity voucher.
After the preset blockchain node determines that the first transaction requirement and the second transaction requirement match, the first user node and the second user node sign a transaction contract (also referred to as a credential transfer contract) of the green electricity credential based on the first transaction requirement and the second transaction requirement.
Step S120: after the first user node and the second user node complete the transaction contract of signing the green electric certificate based on the first transaction requirement and the second transaction requirement, the preset block chain link point stores the transaction contract of the green electric certificate into the block chain.
After the trade contract of the green electric certificate is stored in the chain, the green electric certificate and the attribution party stored in the block chain can be updated according to the trade contract of the green electric certificate. The trade contract cochain of the green electric certificate can ensure the authenticity and the safety of the green electric trade, thereby ensuring the authenticity and the safety of the transfer of the green electric certificate ownership.
In the scheme, the preset block chain node can match the user with the green electric certificate transaction requirement with other users with corresponding transaction requirements, and after both parties achieve the green electric certificate transaction and sign the transaction contract, the transaction contract is linked for storage.
Referring to fig. 2, fig. 2 is a schematic flow chart illustrating a transaction method of a green certificate according to another embodiment of the present application.
The green electronic certificate transaction mode includes two types, one is that both transaction parties perform transactions on the certificate transaction platform, and the other is that both transaction parties perform transactions on the blockchain. In this embodiment, the two parties of the transaction conduct the transaction on the voucher transaction platform as an example. The method comprises the following steps:
step S210: after the first user node issues the first transaction requirement and the second user node issues the second transaction requirement, the preset block chain node determines that the first transaction requirement is matched with the second transaction requirement according to a preset priority matching strategy.
The related description of step S210 may refer to the related content related to step S110.
In this embodiment, the preset blockchain node is a credential transaction platform, and it can be understood that the credential transaction platform, the first user node, and the second user node are all in the same blockchain system, but the operations in steps S210 to S220 are not performed in the blockchain.
Before step S210, the first user node issues the first transaction requirement on the credential transaction platform and the second user node issues the second transaction requirement on the credential transaction platform, and it is understood that the process is that the user node determines the transaction requirement based on the user requirement and then sends the transaction requirement to the credential transaction platform. And then the voucher transaction platform can periodically determine the received transaction requirements and match the purchase requirements with the transaction requirements according to a preset priority matching strategy.
The preset matching priority strategy comprises at least one of a plan transaction price priority matching strategy and a release time priority matching strategy. The plan transaction price priority matching strategy refers to that the purchase demand of the green electric certificate is matched with priority by the higher price person, and the sale demand of the green electric certificate is matched with priority by the lower price person. The release time priority matching strategy refers to that in the same type of transaction demands, if the prices are the same, the server receives the transaction demands with earlier time to perform matching preferentially.
Step S220: the preset block chain node respectively sends transaction notifications to the first user node and the second user node, so that the first user node and the second user node sign the transaction contract of the green electricity certificate on the certificate transaction platform based on the transaction notifications.
And after determining that the first transaction requirement is matched with the second transaction requirement, the voucher transaction platform sends a transaction notification to the sender of the first transaction requirement and the second transaction requirement, namely the first user node and the second user node, wherein the transaction notification comprises the actual voucher transaction quantity.
In some embodiments, the number of planned voucher transactions in the first transaction request is inconsistent with the number of planned voucher transactions in the second transaction request, and the actual voucher transaction number is the lesser of the number of planned voucher transactions in the first transaction request and the second transaction request. And then, after the first user node or the second user node finishes the transaction, the transaction requirements of the first user node or the second user node are not met, the transaction requirements are updated according to the finished transaction, and the voucher transaction platform continues to perform matching based on the updated transaction requirements. Specifically, for example, if the first transaction requirement is to purchase 10 green electricity vouchers at the price of a, and the second transaction requirement is to sell 4 green electricity vouchers at the price of a, the transaction notification may be to trade 4 green electricity vouchers at the price of a, after the transaction is completed, the first transaction requirement of the first user node is not completely met, then the first transaction requirement is updated to purchase 6 green electricity vouchers at the price of a according to the agreed 4 green electricity vouchers at the price of a, and the voucher transaction platform matches the updated first transaction requirement with other transaction requirements.
Step S230: after the first user node and the second user node complete the transaction contract of signing the green electric certificate based on the first transaction requirement and the second transaction requirement, the preset block chain link point stores the transaction contract of the green electric certificate into the block chain.
For the related description of step S230, reference may be made to the related contents related to step S120, which are not described herein again.
In the scheme, the certificate transaction platform can match the user with the green electric certificate transaction requirement with other users with corresponding transaction requirements, and after the two parties achieve the green electric certificate transaction and sign the transaction contract, the transaction contract is linked and stored.
Referring to fig. 3, fig. 3 is a schematic flow chart illustrating a transaction method of the application for the green certificate according to another embodiment of the present invention.
In this embodiment, the transaction between two parties is performed on the blockchain as an example. The method comprises the following steps:
step S310: after the first user node issues the first transaction requirement and the second user node issues the second transaction requirement, the preset block chain node determines that the first transaction requirement is matched with the second transaction requirement according to a preset priority matching strategy.
The related description of step S310 may refer to the related content related to step S110.
It can be understood that, in this embodiment, the first user node issuing the first transaction requirement is the first user node issuing the first transaction requirement on the blockchain, and specifically, the first transaction requirement may be determined based on the corresponding user requirement for the first user node, and then the first transaction requirement is uplink-stored. The second user node issues a second transaction request for the same reason. The two user nodes issue the transaction demands in sequence, the first user node issues the transaction demands first, and the second user node issues the transaction demands later. After the second user node issues the second transaction request, the first user node may be used as the preset block link point to execute the steps of the transaction method of the green electricity voucher in this embodiment.
Referring to fig. 3 and 4 in combination, fig. 4 is a schematic flowchart illustrating another embodiment of step S310 of the present application. Step S310 includes:
step S411: the second transaction requirements of the second user node are read from the blockchain.
The first user node firstly stores the first transaction requirement in an uplink mode, then the second user node stores the second transaction requirement in an uplink mode, at the moment, the first user node can read the second transaction requirement of the second user node from the block chain, and the second transaction requirement and the first transaction requirement are different types of transaction requirements.
Step S412: and judging that the contents in the first transaction requirement and the second transaction requirement are matched.
Wherein the content of the transaction demand includes at least one of a projected voucher transaction amount and a projected transaction price. The content match may be a match of the content of the first transaction request and the second transaction request, or may be a partial match, for example, the planned transaction prices of the first transaction request and the second transaction request are the same, but the planned voucher transaction amounts are not the same. In this case, the transaction requirements of one of the first user node and the second user node are not completely met after the transaction is completed by the first user node and the second user node, and the transaction requirements can be updated based on the completed transaction, and other transactions are continuously performed in the block chain to meet the remaining transaction requirements.
Step S413: if the content matches, it is determined that the first transaction requirement matches the second transaction requirement.
Step S320: the preset blockchain node generates the transaction intention based on the second transaction requirement and issues the transaction intention to the blockchain.
After the first user node obtains the second transaction requirement, a transaction intention can be generated based on the first transaction requirement and the second transaction requirement of the first user node, and the transaction intention can include the identifier of the first user node, the identifier of the second user node, the transaction quantity of the plan voucher, the transaction price of the plan voucher and the like.
Specifically, the release of the transaction intention to the blockchain may be performed by the first user node to store the transaction intention in the blockchain, and may also be performed by the second user node, which is an object to which the transaction intention is directed, in an online message or short message manner, so that the second user node can quickly confirm the transaction intention, thereby improving efficiency.
At this time, the second user node can obtain the trading intention issued by the first user node in the block chain, and then the user of the second user node performs identity verification on the first user node through a CA mechanism. For example, the auditing process may be used to determine whether the first user node is authenticated by a CA (e-commerce authentication Authority), for example, a CFCA (China Financial authentication center), and whether the first user node has a corresponding authentication Certificate. The second user node may determine that the transaction intention is approved in response to the confirmation operation of the user, and then the second user node may generate a contract signing notification corresponding to the transaction intention and publish the contract signing notification into the blockchain, where the publishing of the contract signing notification is similar to the publishing of the transaction intention, and may refer to the foregoing related contents about the transaction intention, and the contract signing notification may include the identification of the first user node, the identification of the second user node, the transaction amount of the planned certificate, the transaction price of the planned certificate, the contract signing period, and the like.
Step S330: and the preset block chain node acquires a contract signing notice generated by the second user node.
After the second user node issues the contract signing notification, the first user node may obtain the contract signing notification from the blockchain.
Step S340: the preset blockchain node completes signing of the transaction contract for the green electricity certificate with the second user node based on the contract signing notification.
The first block link point may complete signing of the transaction contract for the green electricity certificate with the second user node within a contract signing period included in the contract signing notification.
In some embodiments, the first blockchain node and the second blockchain node may complete the signing of the transaction contract online using an electronic signature.
Step S350: after the first user node and the second user node complete the transaction contract of signing the green electric certificate based on the first transaction requirement and the second transaction requirement, the preset block chain link point stores the transaction contract of the green electric certificate into the block chain.
The related description of step S350 may refer to the related content related to step S120, which is not described herein again.
In the scheme, the preset block chain node can match the user with the green electric certificate transaction requirement with other users with corresponding transaction requirements in the block chain, and after both parties achieve the green electric certificate transaction and sign the transaction contract, the transaction contract is linked and stored.
Referring to fig. 5, fig. 5 is a schematic flow chart illustrating a transaction method for a green certificate according to another embodiment of the present application. It should be noted that a plurality of intelligent contracts can be deployed in the green power alliance chain in the application, the working process of the intelligent contracts is that all block chain nodes can judge whether the current state meets the triggering condition of the intelligent contract, if so, the intelligent contract is triggered to be executed, and after the intelligent contracts are executed, all block chain nodes can jointly identify the chain according to the execution result, so that the intelligent contracts are realized. The method comprises the following steps:
step S510: and taking at least one of the first user node and the second user node as a target user node.
It can be understood that the first user node and the second user node belong to a blockchain system, and the blockchain is deployed with a green power confirmation intelligent contract for judging whether the user uses green power or not, and further, whether the user uses pure green power or not.
Step S520: and judging whether the target user of the target user node uses green power.
It can be understood that the basis for the intelligent green power confirmation contract to judge is the power data of the target user, wherein the power data includes power generation data, power transmission data, power distribution data of the renewable energy power generation enterprise, power transaction data between the power consumer and the renewable energy power generation enterprise, power consumption data of the power consumer, and power transaction settlement data of the power consumer. The power data can be obtained from the power trading center and the power grid company system by the power trading center node in the block chain and a plurality of nodes of the power grid company.
If yes, go to step S530, otherwise, not generate the green power voucher.
Step S530: and generating a green electricity voucher corresponding to the green electricity usage of the target user, and storing the green electricity voucher into the block chain.
It should be noted that, the third step may also be implemented by an intelligent contract, specifically, if the determination result in the second step is yes, the credential generation intelligent contract is triggered to execute, a green power credential is generated, and an execution result, that is, the green power credential is stored in the block chain, where the description of the green power credential may refer to the related content of the green power credential in the foregoing embodiment and is not described herein again.
Step S540: and sending the identification information of the green electricity certificate to the target user node.
After the green electricity voucher is generated and stored, the voucher generation intelligent contract generates identification information corresponding to the green electricity voucher according to an identification rule and sends the identification information to the target user node, wherein the identification information can be a string of numbers, and the numbers comprise information related to green electricity. By way of specific example, the number may include information of a green electricity type, a power generation area, a power utilization area, a renewable energy power generation enterprise, an original green electricity user (that is, a target user using green electricity, which may not be consistent with a current home party of a green electricity voucher), a green electricity voucher purchaser, a time for signing an electricity purchase-sale contract, a time for generating a green electricity voucher, a time for signing a green electricity voucher transaction contract, and the like, where the identification rule is specifically exemplified in table 1, and the identification rule may be freely determined by a user, and is not limited to the specific case in this embodiment.
Figure BDA0003373044950000071
Figure BDA0003373044950000081
TABLE 1
Step S550: and after the preset block chain node issues the first transaction requirement at the first user node and issues the second transaction requirement at the second user node, determining that the first transaction requirement is matched with the second transaction requirement.
Step S560: after the first user node and the second user node complete the transaction contract of signing the green electric certificate based on the first transaction requirement and the second transaction requirement, the preset block chain link point stores the transaction contract of the green electric certificate into the block chain.
For the related description of step S550 and step S560, reference may be made to the related contents of step S110 and step S120, or step S210 and step S230, or step S310 and step S350, which are not described herein again.
Step S570: and extracting the transfer information of the green electric voucher from the transaction contract.
After the chain is established in the transaction contract of the green electricity voucher, the voucher transfer intelligent contract can be triggered, the transfer information of the green electricity voucher can be extracted by the voucher transfer intelligent contract, and the transfer information of the green electricity voucher can comprise green electricity voucher purchasing parties, green electricity voucher selling parties, green electricity voucher transaction contract signing time, identification information of the green electricity voucher and the like. The user of one of the first user node and the second user node is a buyer of the green television voucher, and the user of the other one of the first user node and the second user node is a seller of the green television user.
Step S580: and verifying the green electricity voucher belonging to the seller according to the transfer information, and generating the green electricity voucher belonging to the buyer.
The certificate transfer intelligent contract can determine the green electricity certificate belonging to the seller according to the transfer information, and carry out the verification and the sale of the green electricity certificate, and simultaneously generate the corresponding green electricity certificate belonging to the buyer and store the green electricity certificate belonging to the buyer in an uplink manner.
Step S590: and sending the generated identification information of the green electricity voucher belonging to the purchaser to a user node corresponding to the purchaser.
The operations in step S590 and step S540 are similar, and reference may be made to the description of step S540.
Step S5100: the transaction amount is transferred from the purchaser's account to the seller's account.
The transfer information of the green electric voucher also comprises a transaction amount, so that the voucher transfer intelligent contract can directly transfer the transaction amount from the account of the buyer to the account of the seller, and the transaction of the green electric voucher is completed.
In the scheme, the preset block chain node can match the user with the green electric certificate transaction requirement with other users with corresponding transaction requirements, after both parties achieve the green electric certificate transaction and sign the transaction contract, the transaction contract is linked for storage, and then execution is performed according to the transaction contract.
In another embodiment, the green electricity voucher may be generated after green electricity confirmation is performed by the blockchain through a green electricity confirmation intelligent contract, so as to realize green electricity confirmation of the target electricity user, and specifically includes the following steps:
in this embodiment, the main body involved in the green electricity transaction process may include a renewable energy power generation enterprise, a power grid company, an electricity consumer, and a government department, where the renewable energy power generation enterprise is an enterprise that generates electricity by using renewable energy, the electricity generated by the electricity generation enterprise is green electricity, the power grid company is a company responsible for power transaction and scheduling, the electricity consumer is a main body that purchases and uses electricity, and the government is responsible for supervising whether the green electricity service is real and legal. Each main body involved in the green electricity transaction process has at least one device added into a block chain as a block chain node. Specifically, servers corresponding to government departments, each renewable energy power generation enterprise and each power consumer are respectively used as a block chain node, servers corresponding to a power trading center, a data center, a power dispatching System and a GIS (Geographic Information System) of a power grid company are respectively used as a block chain node, all the block chain nodes form a green power alliance chain, and all the block chain nodes are used as consensus nodes to participate in consensus work.
The source-destination chain in this embodiment may be a green power federation chain, where multiple intelligent contracts may be deployed, and the working process of an intelligent contract is that all block chain nodes may determine whether the current state meets the triggering condition of the intelligent contract, if so, the intelligent contract is triggered to be executed, and after the intelligent contract is executed, all block chain nodes will jointly identify the uplink with the execution result, thereby implementing the intelligent contract.
In this embodiment, green power confirmation is realized in an intelligent contract manner, and the green power confirmation is an electric power condition used by a target power consumer within a certain time period, so that the triggering condition of the intelligent contract for green power confirmation includes every preset time, and after two preset conditions of electric power data and every preset time are met, the intelligent contract for green power confirmation is triggered to perform green power confirmation.
The method comprises the following steps: target power data of a target power consumer is acquired.
The target power data includes green electricity condition data about renewable energy sources and electricity consumption data of target electricity consumption users, and the target users may include a plurality of users, for example, all users in a certain area.
It can be understood that some systems and power trading centers of the power grid company store power data, including some data that need to be stored in uplink, that is, raw power data, where the raw power data includes green electricity condition data of renewable energy sources and power data of target power consumers, that is, the raw power data includes target power data. The block link point corresponding to the system may acquire raw power data from the system after the raw power data is generated, and the acquisition of the raw power data is based on the generation of the power data in the system, and the corresponding node may acquire the raw power data as long as the raw power data is generated in the system. For example, the block link points corresponding to the power dispatching system can obtain data such as real-time output, generated energy data, and internet power data of the renewable energy power generation enterprise. After the plurality of block chain link points corresponding to the system acquire original electric power data, the nodes can acquire target electric power data of a target power consumer from the original electric power data, so that all the block chain nodes judge that the triggering condition of the green power confirmation intelligent contract is met at present and trigger the green power confirmation intelligent contract.
In the green power confirmation step in this embodiment, in a single confirmation process, only data in a certain time period is used, and the time period is a target time period, so that the target power data is actually corresponding data in the target time period. In a specific application scenario, a time period in which whether to use green power is to be confirmed may be used as the target time period. It should be noted that the target time period may correspond to a predetermined time in the trigger condition of the green power confirmation smart contract.
Step two: and obtaining the green electricity quantity on the internet and the planned trading green electricity quantity of the renewable energy power generation enterprise in the target time period and the predicted green electricity usage quantity of the target electricity user in the target time period by using the green electricity condition data, and obtaining the trading settlement electricity quantity and the electricity meter data of the target electricity user in the target time period by using the electricity data.
The green electricity condition data comprises the green electricity on the internet and the green electricity planned for trading of the renewable energy power generation enterprises in the target time period, wherein the green electricity on the internet, the renewable energy power generation enterprises at the position can be understood as enterprises only adopting renewable energy power generation, and the generated electricity is green electricity, so the green electricity on the internet can also be understood as the electricity on the internet, namely the electricity transmitted to the power grid company by the enterprises. Because the power grid company takes charge of the responsibility of transmitting and distributing the power generated by the enterprise to the power utilization users, the green power on the network of the renewable energy power generation enterprise can reflect the power generation condition of the enterprise. The method is characterized in that the green electricity quantity planned to trade is the green electricity quantity planned to trade in the electricity trading process of the renewable energy power generation enterprise, and the green electricity quantity planned to trade is already achieved, so the green electricity quantity planned to trade refers to the green electricity quantity planned to trade in the green electricity trading process of the renewable energy power generation enterprise and a target user.
The electricity consumption data comprises transaction settlement electric quantity of a target electricity consumption user in a target time period and electric meter data, wherein the transaction settlement electric quantity refers to the electric quantity according to which the electricity consumption user performs electricity fee settlement after using electric power.
Step three: and judging whether the planned transaction green electric quantity, the predicted green electric quantity usage, the online green electric quantity, the transaction settlement electric quantity and the electric meter data meet a first preset condition.
The method comprises a step three corresponding to executing a green power confirmation intelligent contract, wherein the step three is used for determining whether the electric power used by a target power utilization user in a target time period is green power, the content of the green power confirmation intelligent contract comprises a first preset condition, and if the first preset condition is met, the electric power used by the target power utilization user in the target time period can be considered to be green power.
If so, executing the step four, otherwise, determining that the electric power used by the target electricity user in the target time period is not all green electricity.
Step four: and determining that all the electric power used by the target electricity consumer in the target time period is green electricity.
After the green power confirms that the intelligent contract is executed, the power used by the target power utilization user in the target time period is the green power according to the execution result, and the execution result can be stored in a chain mode. In some embodiments, all of the block nodes may uplink the execution results with the target power data.
In the scheme, by acquiring the target power data of the target power consumption user, the planned trade green power amount and the on-grid green power amount of the renewable energy power generation enterprise in the target time period and the predicted green power usage amount, the trade settlement amount and the electric meter data of the target power consumption user can be determined from the target power data, so that whether the data meet the first preset condition of green power confirmation or not is determined, if yes, the target power consumption user can be determined to use pure green power in the target time period, the green power usage condition of the target user can be truly and accurately determined through the method, the target power data are stored in a block chain, the target power data can be guaranteed to be authentic and free, the target power data cannot be falsified, and the reliability of green power confirmation is improved.
In yet another embodiment, the step involving green power confirmation comprises:
the method comprises the following steps: and calculating a third hash value of the first preset condition, and if the third hash value is consistent with fourth hash values calculated by other block chain nodes on the first preset condition, storing the first preset condition into the block chain.
It can be understood that before the green power confirmation is performed by using the green power confirmation intelligent contract, a green power confirmation intelligent contract consensus needs to be formed in the block chain, a block chain node sends the content of the green power confirmation intelligent contract negotiated and determined by a user to other block chain nodes, each block chain node performs hash calculation on the content of the green power confirmation intelligent contract to obtain a hash value, and sends the hash value obtained by self calculation to other nodes for confirmation, meanwhile, the received hash values calculated by other nodes are compared with the hash value calculated by the node, if the hash values obtained by each node are consistent, and if the contents of the intelligent contracts received by the nodes are consistent, storing the contents of the green power confirmation intelligent contracts into the block chain in a clear text mode, thereby completing the consensus of the green power confirmation intelligent contracts. And then executing the green power confirmation intelligent contract after the triggering condition of the green power confirmation intelligent contract is met. Specifically, in this embodiment, the content of the smart contract for green power confirmation includes the first preset condition.
The first step is that the green power confirmation intelligent contract is subjected to consensus confirmation before the green power confirmation intelligent contract is executed.
Step two: target power data of a target power consumer is acquired.
The target power data comprises green electricity condition data about renewable energy sources and electricity utilization data of target electricity utilization users, and the green electricity condition data comprises electricity generation data of renewable energy power generation enterprises and green electricity transaction data between the target electricity utilization users and the renewable energy power generation enterprises.
Step three: the method comprises the steps of obtaining the green electricity quantity of the renewable energy power generation enterprise on the internet in a target time period by utilizing power generation data, obtaining planned trading green electricity quantity and predicted green electricity usage quantity by utilizing green electricity trading data, and obtaining trading settlement electricity quantity and electricity meter data of a target electricity user in the target time period by utilizing electricity utilization data.
Step four: and judging whether the planned transaction green electric quantity, the predicted green electric quantity usage, the online green electric quantity, the transaction settlement electric quantity and the electric meter data meet a first preset condition.
And if so, executing a fifth step, and if not, determining that the electric power used by the target electricity user in the target time period is not all green electricity.
Step five: and determining that all the electric power used by the target electricity consumer in the target time period is green electricity.
Step six: after the electric power used by the target electricity utilization user in the target time period is determined to be green electricity, a green electricity voucher is generated for the target electricity utilization user, and the green electricity voucher is stored in the block chain.
The green electricity voucher can also be called as a green electricity use voucher, and the green electricity voucher can be in a picture form and is used for proving that the electricity user uses pure green electricity. After the electric power used by the target electricity utilization user in the target time period is determined to be green electricity, the certificate can be triggered to generate an intelligent contract, a green electricity certificate is generated for the electricity utilization user according to the transaction settlement electric quantity of the electricity utilization user, then the execution result, namely the green electricity certificate is stored in a chain, and specifically, the corresponding green electricity certificate is generated for the electricity utilization user according to the standard that one green electricity certificate corresponds to every green electricity which is settled by 1 MWh.
It should be noted that the original power data to be linked is data including the whole process from generation to consumption of green electricity, for example, power generation data, power transmission data, power distribution data, power transaction data between a power consumer and a renewable energy power generation enterprise, power consumption data of the power consumer, or power transaction settlement data of the power consumer. The generation process of the green power can be determined according to the power generation data in the original power data, the process of transmitting and distributing the green power to power consumers after the green power is generated can be determined from the power transmission data and the power distribution data, the transaction process of the green power can be determined from the power transaction data, and the use and settlement process of the green power can be determined from the power consumption data and the power transaction settlement data. The whole process from generation to consumption of the green power can be tracked by using the original power data, and the electricity utilization user can be determined to use the green power based on mutual verification of the original power data.
The original power data can be divided into two parts, one part is target power data, and the other part is power traceability data, wherein the target power data can also be used in a green power confirmation intelligent contract for determining whether a target user uses one hundred percent pure green power, and the power traceability data is only used for tracking the whole process from generation to consumption of the green power.
The raw power data (target power data and power source tracing data) may be obtained by acquiring, by a corresponding node, power data stored in a system from each system of a power trading center and a power grid company, performing preset processing, such as screening and cleaning, and using the processed power data as the raw power data.
The two original power data chaining storage processes are different, after the power traceability data are generated, the corresponding nodes can acquire the power traceability data, the power traceability data comprise power transmission data, power distribution data and power transaction settlement data of power users, and the power traceability data are directly chained for storage. For the target power data, after the target power data is acquired, the green power confirmation intelligent contract is triggered, and after the green power confirmation intelligent contract is executed, the target power data is uplink-stored, that is, after the fifth step, the target power data and the execution result of the green power confirmation intelligent contract can be uplink-stored together.
For the original power data, the uplink saving may be performed by performing a hash calculation on the original power data to obtain a first hash value, and saving the original power data and/or the first hash value into the blockchain. The original power data may be divided into structured data and unstructured data, the storing of the original power data may be performed by separately processing the structured data and the unstructured data, storing a plaintext of the structured data in the original power data into a blockchain, performing hash calculation on the unstructured data in the original power data to obtain a first hash value, and storing the first hash value into the blockchain. By the method, the original power data can be stored in the block chain to prevent the original power data from being tampered, and meanwhile, the storage pressure on the chain can be relieved by only adopting the Hash chain for the unstructured data.
The processes of acquiring the original electric power data by the electric power trading center and the nodes corresponding to each system of the power grid company are mutually independent, and the acquiring step is executed after the original electric power data are generated. The original power data are stored in the uplink mode, so that the power data cannot be tampered, and authenticity and safety of the power data can be guaranteed.
In the scheme, the target power data of the target electricity consumption user is obtained from the power grid company and the power trading center, the planned trading green electricity quantity and the on-grid green electricity quantity of the renewable energy power generation enterprise in the target time period and the predicted green electricity usage quantity, the trading settlement quantity and the electricity meter data of the target electricity consumption user can be determined from the target power data, therefore, according to whether the data meet the first preset condition of green electricity confirmation or not, if yes, the target electricity utilization user can be determined to use pure green electricity in the target time period, green electricity certificates are issued to the electricity utilization user using the pure green electricity, the green electricity use condition of the target user can be really and accurately determined by the method, and the original electricity data is stored in the block chain, the method can ensure that the original power data is true and error-free and cannot be tampered, improves the trueness and the credibility of green electricity confirmation, and ensures the trueness and the credibility of the green electricity certificate.
Step six may comprise the following sub-steps:
the first substep: and acquiring a first comparison relation between the planned transaction green electricity quantity and the predicted green electricity consumption, a second comparison relation between the online green electricity quantity and the transaction settlement electricity quantity, and a third comparison relation between the transaction settlement electricity quantity and the electricity meter data.
It should be noted that a plurality of renewable energy power generation enterprises may be included in the block chain, including all renewable energy power generation enterprises that supply power to the target electricity consumer, and after the target electricity consumer is determined, the node corresponding to the electricity transaction center may obtain a list of the renewable energy power generation enterprises according to the analysis of the electricity transaction certificate of the target electricity consumer, so as to obtain relevant data of the renewable energy power generation enterprises to be stored as the original electricity data uplink.
Specifically, a first electric quantity sum of planned trading green electric quantity of all renewable energy power generation enterprises and a second electric quantity sum of predicted green electric quantity usage of all target users are obtained, a first comparison relation between the first electric quantity sum and the second electric quantity sum is obtained, a third electric quantity sum of online green electric quantity of all renewable energy power generation enterprises and a fourth electric quantity sum of trading settlement electric quantity of all target users are obtained, and a second comparison relation between the third electric quantity sum and the fourth electric quantity sum is obtained; and obtaining electricity utilization record data of each electricity meter related to the target electricity utilization user in the target time period based on the electricity meter data, and obtaining a third comparison relation between the sum of the user record data of all the electricity meters related to the target electricity utilization user and the sum of the fourth electric quantity. And the electricity utilization record data of each electricity meter related to the target electricity utilization user in the target time period is the electricity meter reading of each electricity meter related to the target electricity utilization user at the beginning and the end of the target time period.
For example, the block chain includes n renewable energy power generation enterprises, m target power users, and o electric energy meters, which may also be referred to as electric meters for short, in total for all the target power users. Acquiring planned transaction green electric quantity a of all renewable energy power generation enterprisesi(wherein i represents the ith renewable energy power generation enterprise, i is more than or equal to 1 and less than or equal to n) and
Figure BDA0003373044950000141
predicted green electricity usage b for all target usersj(where j represents the jth target electricity user, j is more than or equal to 1 and less than or equal to m) and
Figure BDA0003373044950000142
and a first amount of electricity and
Figure BDA0003373044950000143
and a second amount of electricity and
Figure BDA0003373044950000144
the comparison relationship between them. Acquiring green electric quantity c of all renewable energy power generation enterprisesiA third amount of electricity and
Figure BDA0003373044950000145
transaction settlement electric quantity d of all target electricity usersjA fourth amount of power and
Figure BDA0003373044950000146
and a third quantity of electricity and
Figure BDA0003373044950000147
and a fourth quantity of electricity and
Figure BDA0003373044950000148
a second comparison relationship therebetween. It should be noted that the electric energy meter used by the electricity consumer has a comprehensive multiplying power fkThe actual electricity consumption of the electricity user is the product of the reading of the electric energy meter and the comprehensive multiplying power, and the reading of the electric energy meter of each electric energy meter of the target electricity user at the beginning of the target time period is obtained
Figure BDA0003373044950000149
Point energy meter reading at the end of target time period
Figure BDA00033730449500001410
(wherein k represents the kth electric energy meter, and k is more than or equal to 1 and less than or equal to o), so that the sum of the user record data of all the electric meters related to the target electricity user can be obtained
Figure BDA00033730449500001411
And a fourth quantity of electricity and
Figure BDA00033730449500001412
a third comparison relationship therebetween.
And a second substep: and judging whether the first comparison relationship, the second comparison relationship and the third comparison relationship meet a first preset condition.
The first preset condition includes that the first comparison relationship is that the first electric quantity sum is not less than the second electric quantity sum, the second comparison relationship is that the third electric quantity sum is greater than the fourth electric quantity sum, and the third comparison relationship is that the sum of the user record data is equal to the fourth electric quantity sum.
In one embodiment, the first predetermined condition includes that the first comparison relationship is
Figure BDA0003373044950000151
The second comparison relationship is
Figure BDA0003373044950000152
The third comparison relationship is
Figure BDA0003373044950000153
In yet another embodiment, the step involving green power confirmation further comprises:
the method comprises the following steps: and obtaining the historical electricity consumption in the green electricity using time from the electricity consumption data of the target electricity user.
It is understood that the steps one to three may also be implemented in the form of an intelligent contract, and the electricity purchasing process of the electricity consumer is that the electricity consumer estimates the electricity consumption in a period of time to obtain the predicted green electricity usage, for example, the electricity consumption in the next year is estimated monthly, so as to subscribe an electricity purchasing contract with the renewable energy power generation enterprise according to the predicted green electricity usage, or the electricity consumer is proxied by the power grid company to subscribe an electricity purchasing contract with the renewable energy power generation enterprise. The period of power consumption prediction of a user or the period corresponding to green electricity purchase is the green electricity usage time, after the power data link is stored, all nodes can acquire the green electricity usage time and the predicted green electricity usage from the green electricity transaction information of a target electricity user and acquire historical power consumption from the electricity consumption data of the target electricity user, wherein the green electricity usage time is a period of time from a starting date to an ending date, and the historical power consumption refers to the sum of all the power consumption used by the electricity user from the starting date to a current date.
Step two: and judging whether the historical electricity consumption reaches a preset ratio of the predicted green electricity usage and whether the current ending date of the distance from the green electricity usage time is greater than the preset time.
In some cases, the power consumption user may experience a sudden power consumption increase due to an unpredictable situation, at this time, the power consumption actually consumed by the power consumption user may exceed the predicted green power usage amount, and if the power consumption actually consumed by the power consumption user exceeds the predicted green power usage amount, because the power consumption user purchases green power based on the predicted green power usage amount, it is not always necessary whether the part of the power actually used by the power consumption user exceeds the predicted green power usage amount is still pure green power, so that in order to ensure that the power used by the power consumption user is pure green power, when the power consumption sudden increase occurs, the power consumption user needs to be reminded to make a new green power purchase contract before the consumed power exceeds the predicted green power usage amount, so that the power used by the power consumption user can be guaranteed to be pure green power.
For example, the user signs an electricity purchase contract according to the predicted green electricity usage of the next year, the green electricity usage time is one year, the start date and the end date of the green electricity usage time can be determined according to the electricity purchase contract, the historical electricity usage is the sum of all electricity used from the start date to the current date, whether the historical electricity usage reaches eighty-five percent of the predicted green electricity usage is judged, and whether the current date is more than one month away from the end date of the green electricity usage time is judged.
And if yes, executing the step three, and if one is not yes, not prompting the target power utilization user and the renewable energy power generation enterprise to sign a power supply selling contract again.
Step three: and prompting the target electricity utilization user and the renewable energy power generation enterprise to sign up for buying and selling electricity.
If the current end date of the green electricity use time is longer than the preset time and the historical electricity consumption at the time reaches the preset occupation ratio of the predicted green electricity use amount, the situation that the electricity consumption is increased suddenly is shown, and the fact that the actual electricity consumption possibly exceeds the predicted green electricity use amount in the green electricity use time is possibly caused, the target electricity consumption user is prompted to sign an electricity selling contract again.
In the scheme, under the condition that the power consumption is increased rapidly by judging the power consumption user, the power consumption user is warned to sign a green electricity contract before the purchased green electricity of the power consumption user is about to be used up, and the condition that the environment-friendly task using pure green electricity fails to be fulfilled due to the fact that the power consumption user uses non-green electricity doped with the power is avoided.
In another embodiment, the following steps may be implemented by means of an intelligent contract, or may be performed by any blockchain node device alone, and the step involving green power confirmation may further include:
the method comprises the following steps: and after the second preset condition is met, acquiring the power data to be verified, and calculating a second hash value of the power data to be verified.
The second preset condition includes a third preset time and/or user operation, where the user is different from the electricity user and may be any user of the blockchain node, for example, the third preset time may be three days, and then the second preset condition is three days and/or user operation. And if the data are verified in the intelligent contract mode, the second preset condition is the trigger condition of the intelligent contract.
The power data to be verified is obtained from a power transaction center and/or a corresponding service system of a power grid company, and the power data to be verified and the original power data are in a corresponding relationship, specifically, for example, the original power data includes power consumption data of a target power consumption user in a certain time period, which is from the power consumption information acquisition system, and the power data to be verified corresponding to the power consumption data is power consumption data of the target power consumption user in the time period, which is obtained again from the power consumption information acquisition system.
Step two: raw power data and/or a first hash value corresponding to power data to be verified are read from a blockchain.
It is understood that after the original power data and the corresponding first hash value are linked up at the corresponding block node, any block node can obtain the original power data and the corresponding first hash value.
Step three: and verifying whether the power data to be verified is tampered or not based on a comparison result between the read first hash value and the second hash value and/or a comparison result between the original power data and the power data to be verified.
If the comparison result is that the first hash value is consistent with the second hash value, the original power data stored in the uplink can be determined to be consistent with the power data to be verified; if the comparison result is that the first hash value is inconsistent with the second hash value, it can be determined that the original power data stored in the uplink is inconsistent with the power data to be verified.
If the comparison result between the original power data and the power data to be verified is that the original power data and the power data to be verified are consistent, the original power data stored in the uplink can be determined to be consistent with the power data in the power transaction center and/or the service system, and if the comparison result is that the original power data stored in the uplink is inconsistent with the power data in the power transaction center and/or the service system, the original power data stored in the uplink can be determined to be inconsistent with the power data in the power transaction center and/or the service system.
It is understood that a node may chain store the comparison so that other nodes may view the comparison.
Step four: and responding to the selection of the power data by the user, and displaying a historical tampering verification result corresponding to the selected power data.
It is understood that the steps one-four may be performed multiple times, each time a comparison result is saved, and the historical tampering validation result includes all the comparison results.
In the scheme, corresponding power data are obtained from the power transaction center and/or the power grid company system again periodically or in response to user operation, and are compared with power data stored on the chain for green electricity confirmation, so that the consistency between the power data and the power data can be confirmed, the power data for green electricity confirmation is determined to be originated from the power data in the power transaction center and/or the power grid company system, meanwhile, the power data in the power transaction center and/or the power grid company system can be determined not to be tampered, the trueness and the credibility of green electricity certificates are improved, and the safety of the power data in the power transaction center and/or the power grid company system is ensured.
In some embodiments, the step involving green power confirmation may further comprise: after original electric power data cochain storage, and after confirming that the electric power that target power consumption user used is pure green electricity, can trigger environmental protection evaluation intelligence contract, wherein, environmental protection evaluation intelligence contract can be used for utilizing target power consumption user's power consumption data, calculate target power consumption user's environmental protection benefit evaluation index, wherein, environmental protection benefit evaluation index is used for weighing the environmental protection benefit that target power consumption user brought owing to using green electricity, environmental protection benefit evaluation index includes green electricity carbon dioxide volume of reducing, practice thrift the standard coal volume, sulfur dioxide volume of reducing, nitrogen oxide volume of reducing etc.. The front-end interface of the node server corresponding to the target electricity utilization user can display the environmental protection benefit evaluation index for the target electricity utilization user to check, so that the self environmental protection benefit can be known.
In some embodiments, the step involving green power confirmation may further comprise: the visualization display module can display the power data in a classified manner according to the areas of the electricity users or the electricity users, and specifically, can display the power data in a visualized manner by using a digital twin three-dimensional rendering engine, for example, a map is used for assisting the display of the power data, the power data are displayed in a classified manner according to a national map level, a plurality of regional map levels and a user level, information such as node distribution conditions, national green electricity internet surfing and consumption conditions is displayed on a national map level page, information such as renewable energy power generation enterprises, power transmission lines, power stations, power transmission and power consumption conditions in each region is displayed on a regional map level page, and information such as electricity consumption and green electricity consumption conditions of the electricity users is displayed on a user level page. In some embodiments, the power data can also be visually displayed by means of model, animation and video fusion with the power data. In some embodiments, the power data may be classified and displayed as a data link, a green electricity transaction, a green electricity transmission, a green electricity consumption, a green electricity confirmation, an environmental benefit, and the like, so that the power data may be visually displayed to the node user in various ways. It should be noted that, in the present application, a system including the above block chain architecture, which is executed by any device, includes a visualization display module, so that any device can visually display power data.
In another embodiment, the blockchain for performing green electricity confirmation and green electricity voucher transaction may be a federation chain, in which data such as power data and green electricity voucher are stored, and the federation chain may share the data stored therein as target shared data to other federation chains to implement cross-chain data sharing, and the specific steps include:
the method comprises the following steps: and receiving the first shared transaction information sent by the source blockchain by a main blockchain node in the cross-chain platform.
It is to be understood that the cross-chain platform may be a federation chain, which includes a main blockchain node and other blockchain nodes, and the first shared transaction information sent by the source blockchain includes a first identifier of the target blockchain and target shared data, where the first identifier may be an ID of the target blockchain and is intended to share the target shared data with the target blockchain.
Step two: the first shared transaction information is verified in the trusted execution environment.
Each blockchain node of the cross-chain platform is deployed with a TEE (Trusted Execution Environment), which is a Secure operating Environment completely isolated from the outside in the CPU, and can ensure the security and integrity of code and data running in the Trusted Execution Environment, specifically, commonly used TEE technologies include Intel SGX (software guard extensions), ARM Trustzone, and AMD SEV (Secure Encrypted Virtualization).
In the process of cross-chain sharing of the cross-chain platform, relevant processing steps are all performed in a trusted execution environment, so that cross-chain information and relevant operations cannot be leaked.
And verifying the first shared transaction information by all block chain link points in a preset range of the cross-chain platform, and determining whether the first shared transaction information is legal or tampered, wherein the main block chain nodes are located in the preset range.
Step three: and after all the block chain nodes in the preset range in the cross-chain platform pass the verification, packaging the second identifier, the first identifier and the target shared data of the source block chain into second shared transaction information.
The second shared transaction information is used for the target blockchain to acquire the target shared data, and meanwhile, the target blockchain can determine that the source of the target shared data is the source blockchain based on the second identifier.
Step four: and sending the second shared transaction information to the target block chain.
After the cross-chain platform sends the second shared transaction information to the target block chain, all nodes of the target block chain can acquire the second shared transaction information, so that target shared data is acquired.
In the scheme, the first shared transaction information sent by the source block chain is received through the hurdle technology platform with the trusted execution environment, the first shared transaction information is verified, then the second shared transaction information is generated and sent to the target block chain, so that the target block chain can obtain target shared data from the second shared transaction information, and through the mode, the data can be shared between the two block chains.
In another embodiment, the step involving cross-chain data sharing comprises:
the method comprises the following steps: and receiving the first shared transaction information sent by the source blockchain by a main blockchain node in the cross-chain platform.
It should be noted that, user contracts and cross-chain monitoring contracts are deployed in the source block chain and the target block chain, the working process of the intelligent contract is that all block chain nodes can judge whether the current state meets the triggering condition of the intelligent contract, if yes, the intelligent contract is triggered to be executed, and after the intelligent contract is executed, all block chain nodes can jointly identify the chain link according to the execution result, so that the intelligent contract is realized.
A certain node in the source area block chain generates first shared transaction information based on user needs, the first shared transaction information is linked and stored, a user contract of the source area block chain determines a first identifier in the first shared transaction information, a cross-chain monitoring contract of the source area block chain is called, the cross-chain monitoring contract carries out signature and encryption on the first shared transaction information, and then the signed and encrypted first shared transaction information is sent to a main block chain node of a cross-chain platform.
The signing and encrypting of the first shared transaction information by the cross-chain monitoring contract may specifically be that the first shared transaction information is signed by a private key generated by the source block chain node common negotiation, and then the signed first shared transaction information is encrypted by public keys corresponding to trusted execution environments of all the source block chain nodes of the cross-chain platform.
It is understood that the inter-chain platform includes a plurality of blockchain nodes, and before step one is executed, all blockchain nodes of the inter-chain platform compete to generate a master blockchain node according to a preset rule, where the preset rule may be an accounting power in PoW (Proof of work), a monetary age in PoS (Proof of stock), and the like, and is not limited in this respect.
In some embodiments, the first identifier includes an identifier of a plurality of blockchains, i.e. the target shared data needs to be shared to the plurality of blockchains. In this case, the inter-chain platform may define multiple ranges as preset ranges based on all the blockchain nodes, where each preset range includes one main blockchain node, and each preset range is used for sharing data to one target blockchain.
Specifically, before determining the number of target block chains needing data sharing based on the number of the first identifiers, the cross-chain platform only has one main block chain node, the main block chain node can judge and obtain the number of the target block chains after receiving the first sharing transaction information, if the number of the target block chains is greater than one, all nodes of the cross-chain platform compete for the main block chain node again, and the determined number of the main block chain nodes is the same as the number of the target block chains. If the preset rules according to which the two contentions are performed are consistent, the re-determined master blockchain node comprises the original master blockchain node. After the master blockchain nodes are re-determined, a plurality of ranges consistent with the target blockchain number are defined as preset ranges based on all the blockchain nodes, each preset range comprises one master blockchain node and is used for sharing data to one target blockchain, and the number of the nodes in each preset range can be different.
By the mode, the cross-chain platform can share data to the target block chains at the same time without sharing one by one, and the cross-chain data sharing efficiency is improved. It should be noted that, because the number of nodes of the inter-link platform is limited, the target block chain capable of performing data sharing simultaneously has a certain upper limit, and the upper limit can be increased by increasing the number of nodes of the inter-link platform.
Step two: the first shared transaction information is verified in the trusted execution environment.
The second step can be divided into the following substeps:
the first substep: and the main block chain node decrypts the first shared transaction information in the trusted execution environment and verifies the decrypted first shared transaction information.
The first shared transaction information received by the main blockchain node is signed and encrypted, decryption and signature verification are needed after the first shared transaction information is received, specifically, the main blockchain node decrypts the signature in the trusted execution environment by using private keys corresponding to all the blockchain link-node trusted execution environments of the cross-chain platform, and then the signature is verified on the first shared transaction information by using a public key generated by the common negotiation of the source blockchain nodes. Besides decrypting and verifying the signature, the master blockchain node also verifies the content of the first shared transaction information, and is used for determining whether the first shared transaction information is legal or tampered.
And a second substep: and the master block chain node sends the decrypted and verified first shared transaction information to other block chain nodes within a preset range, so that the other block chain nodes verify the first shared transaction information in the trusted execution environment.
After the decryption, signature verification and content verification are completed, the main block node sends the first shared transaction information after the decryption and signature verification to other block chain nodes within a preset range, and after the other block chain nodes receive the first shared transaction information after the decryption and signature verification, the other block chain nodes verify the first shared transaction information and determine whether the first shared transaction information is legal or tampered.
Step three: and after all the block chain nodes in the preset range in the cross-chain platform pass the verification, packaging the second identifier, the first identifier and the target shared data of the source block chain into second shared transaction information.
It is understood that the execution subject of the step of packaging the second identifier, the first identifier and the target shared data of the source blockchain into the second shared transaction information may be all blockchain nodes within a preset range or may be a main blockchain node of the cross-chain platform.
In some embodiments, because the data formats of the target block chain and the source block chain are different, before the second shared transaction information is generated by packaging, format conversion is performed on the target shared data in the first shared information by all the block chain nodes or the main block chain nodes of the cross-chain platform, so that the target shared data conforms to the data format of the target block chain, and then step three is performed.
Step four: and sending the second shared transaction information to the target block chain.
It will be appreciated that the cross-chain platform will also sign and encrypt the second shared transaction information before sending it to the target blockchain.
Specifically, all block chain nodes of the cross-chain platform respectively utilize private keys generated by respective devices or private keys corresponding to trusted execution environments of all block chain nodes to sign the second shared transaction information, then a public key generated by common negotiation of the target block chain nodes is utilized to encrypt, and the signed and encrypted second shared transaction information is sent to a cross-chain monitoring contract of the target block chain. It should be noted that, here, the signed and encrypted second shared transaction information is sent to the cross-chain monitoring contract of the target block chain, and may be that the signed and encrypted second shared transaction information is sent to a certain node of the target block chain, so as to trigger the cross-chain monitoring contract on the chain. And the target block chain judges whether second shared transaction information which is sent by a certain proportion of block chain nodes in a preset range and has consistent contents after decryption and signature verification is successful is received or not by using a cross-chain monitoring contract, if so, a user contract is called to send the second shared transaction information to all nodes of the target block chain, wherein the certain proportion can be a fixed proportion set by a user, for example, two thirds.
Or, the fourth step can also be realized by signing and encrypting the second shared transaction information by the main blockchain node of the cross-chain platform, and sending the signed and encrypted second shared transaction information to all nodes of the target blockchain. All nodes of the target block chain decrypt and verify the signature with the encrypted second shared transaction information, and each node judges whether the second shared transaction information received by other nodes is consistent with the second shared transaction information received by the node, and if a certain proportion of the target block chain nodes receive the second shared transaction information with consistent content, the second shared transaction information is determined to be received, wherein the certain proportion can be a fixed proportion set by a user, such as three-quarters.
And then any node of the target block chain can obtain the target shared data from the second shared transaction information. In some embodiments, in order to reduce the pressure on storage on the blockchain, the target shared data in the first shared transaction information and the second shared transaction information is actually a hash value corresponding to the plaintext of the data to be shared, and the plaintext of the data to be shared may be correspondingly stored in the cloud server. Any node of the target block chain can obtain the data plaintext to be shared by searching the hash value.
In some embodiments, the plaintext of the data to be shared is power data, and the target shared data is a hash value of the power data, wherein the power data includes at least one of power generation data of the renewable energy power generation enterprise, power transmission data, power distribution data, power transaction data between the electricity consumer and the renewable energy power generation enterprise, power consumption data of the electricity consumer, and power transaction settlement data of the electricity consumer. The electricity usage data may be used to determine whether the electricity consumer is using green electricity.
After receiving the second shared transaction information, the node of the target block chain may send a reception success information to a user contract of the target block chain, where the reception success information is used to prove that the node successfully receives the second shared transaction information, and after receiving the reception success information sent by a certain proportion of nodes, the user of the target block chain may send a shared receipt to a main block chain node of the cross-chain platform, where the shared receipt is used to prove that the cross-chain data is successfully shared, where the certain proportion may be a fixed proportion set by the user, for example, two thirds or three quarters, and the like. If the user contract of the target block chain cannot receive the successful receiving information sent by a certain proportion of nodes, the cross-chain data sharing is not successful, and the sharing receipt is not sent to the cross-chain platform.
Step five: and the main block chain node receives the shared receipt sent by the target block chain and identifies the shared receipt.
After receiving the shared receipt, the main block node chain node of the cross-chain platform sends the shared receipt to other nodes of the cross-chain platform so as to perform consensus on the shared receipt.
Step six: the shared receipt is forwarded to a blockchain node of the source blockchain.
Specifically, after the shared receipt is identified, the cross-chain platform sends the shared receipt to any node of the source block chain, so as to trigger a cross-chain monitoring contract of the source block chain, and the cross-chain monitoring contract calls a user contract to send the shared receipt to all nodes of the source block chain, so that all nodes of the source block chain can determine that the cross-chain data sharing is successful.
In the scheme, the cross-column technology platform with the trusted execution environment is used for receiving the first shared transaction information sent by the source block chain, verifying the first shared transaction information, generating the second shared transaction information and sending the second shared transaction information to the target block chain, so that the target block chain can obtain target shared data from the second shared transaction information, the cross-chain platform and the source block chain can both receive the shared receipt and determine that cross-chain data sharing is successful.
Referring to fig. 6, fig. 6 is a schematic diagram of a framework of an embodiment of a transaction device for applying a green certificate.
In this embodiment, the transaction device 60 of the green electric certificate includes a memory 61 and a processor 62, wherein the memory 61 is coupled to the processor 62. Specifically, the various components of the transaction device 60 of the green electric voucher may be coupled together by a bus, or the processor 62 of the transaction device 60 of the green electric voucher may be connected with other components one by one, respectively. The transaction device 60 of the green certificate may be any device with processing capability, such as a computer, a tablet, a mobile phone, etc.
The memory 61 is used for storing program data executed by the processor 62, data in the process of processing by the processor 62, and the like. For example, the trade contract of the green electric certificate and the green electric certificate is equivalent. The memory 61 includes a nonvolatile storage portion for storing the program data.
The processor 62 controls the operation of the transaction device 60 of the green electric voucher, and the processor 62 can also be referred to as a Central Processing Unit (CPU). The processor 62 may be an integrated circuit chip having signal processing capabilities. The processor 62 may also be a general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. In addition, the processor 62 may be commonly implemented by a plurality of circuit-forming chips.
The processor 62 is used for executing instructions to implement the transaction method of any of the above-mentioned green electricity vouchers by calling the program data stored in the memory 61.
In the scheme, the preset block chain node can match the user with the green electric certificate transaction requirement with other users with corresponding transaction requirements, and after both parties achieve the green electric certificate transaction and sign the transaction contract, the transaction contract is linked for storage.
Referring to fig. 7, fig. 7 is a schematic diagram of a framework of an embodiment of a transaction device for applying a green certificate.
In this embodiment, the blockchain system 70 is used to implement any one of the above described green electricity voucher transaction methods, and the blockchain system 70 includes a plurality of blockchain nodes, where the plurality of blockchain nodes includes a preset blockchain node 71, a first user node 72, and a second user node 73.
Referring to fig. 8, fig. 8 is a schematic diagram illustrating an embodiment of a blockchain technique according to the present application.
The specific architecture of the blockchain technology in the application comprises a basic layer 81, a platform layer 82, a data layer 83, a service layer 84 and a display layer 85, wherein the basic layer 81 encapsulates the blockchain, micro-services and computing resources, network resources, storage resources and other basic facilities, the platform layer 82 encapsulates an uplink interface, a data exchange component and a digital twin platform, and can provide services such as member uplink, data uplink and the like, and realize functions such as data extraction and integration, the data layer 83 encapsulates data modeling, data cleaning, data assets and a relation analysis module, the service layer 84 applies the blockchain and the micro-services to services such as green electricity traceability and green electricity storage evidence, and the display layer 85 provides visual display of data. The blockchain technology architecture also comprises internal integration and cross-chain functions, which are used for integrating and cross-chain sharing data. An electronic device may run a system including the above architecture and may join the blockchain system of the present application as one of a plurality of blockchain nodes.
In the scheme, the preset block chain node can match the user with the green electric certificate transaction requirement with other users with corresponding transaction requirements, and after both parties achieve the green electric certificate transaction and sign the transaction contract, the transaction contract is linked for storage.
The above description is only for the purpose of illustrating embodiments of the present application and is not intended to limit the scope of the present application, and all modifications of equivalent structures and equivalent processes, which are made by the contents of the specification and the drawings of the present application or are directly or indirectly applied to other related technical fields, are also included in the scope of the present application.

Claims (10)

1. A method for trading a green electric certificate, the method comprising:
after a first transaction requirement is issued by a first user node and a second transaction requirement is issued by a second user node, the preset block chain node determines that the first transaction requirement is matched with the second transaction requirement, wherein one of the first transaction requirement and the second transaction requirement is a purchase requirement of a green electricity voucher, and the other one of the first transaction requirement and the second transaction requirement is a sale requirement of the green electricity voucher, and the green electricity voucher is used for proving that a user uses green electricity;
after the first user node and the second user node complete signing the transaction contract of the green electricity certificate based on the first transaction requirement and the second transaction requirement, the preset block chain link stores the transaction contract of the green electricity certificate into the block chain.
2. The method of claim 1, wherein the predetermined blockchain node is the first user node, and wherein the first transaction request and the second transaction request are both issued into a blockchain;
after the determining that the first transaction need matches the second transaction need, the method further comprises:
the preset block chain node generates a trading interest based on the second trading demand and issues the trading interest to the block chain;
the preset block chain node acquires a contract signing notice generated by the second user node, wherein the contract signing notice is generated and stored in the block chain after the corresponding user passes the examination of the transaction intention;
the preset blockchain node completes signing of the transaction contract for the green electricity certificate with the second user node based on the contract signing notification.
3. The method of claim 2, wherein the determining that the first transaction requirement matches the second transaction requirement comprises:
reading a second transaction requirement of the second user node from the blockchain;
determining that content in the first transaction need and the second transaction need match, wherein the content comprises at least one of a planned voucher transaction amount and a planned transaction price;
and if the contents are matched, determining that the first transaction requirement is matched with the second transaction requirement.
4. The method of claim 1, wherein the predetermined blockchain node is a voucher transaction platform, and the first transaction request and the second transaction request are both issued to the voucher transaction platform;
after the determining that the first transaction need matches the second transaction need, the method further comprises:
the preset block chain node respectively sends transaction notifications to the first user node and the second user node, so that the first user node and the second user node sign the transaction contract of the green electric certificate on the certificate transaction platform based on the transaction notifications.
5. The method of claim 4, wherein the determining that the first transaction need matches the second transaction need comprises:
determining that the first transaction requirement is matched with the second transaction requirement according to a preset priority matching strategy, wherein the preset priority matching strategy comprises at least one of a plan transaction price priority matching strategy and an issuing time priority matching strategy;
wherein the transaction notification includes an actual credential transaction quantity that is the lesser of the planned credential transaction quantities in the first transaction requirement and the second transaction requirement.
6. The method of claim 1, wherein prior to said issuing a first trade request at a first user node and a second trade request at a second user node, the method further comprises:
taking at least one of the first user node and the second user node as a target user node;
judging whether a target user of the target user node uses green power;
if so, generating the green electricity voucher corresponding to the green electricity usage of the target user, and storing the green electricity voucher into a block chain;
and sending the identification information of the green electricity voucher to the target user node.
7. The method of claim 1, wherein the user of one of the first user node and the second user node is a purchaser of the green electricity voucher and the user of the other is a seller of the green electricity voucher;
after the first user node and the second user node complete the transaction contract of signing the green electricity certificate based on the first transaction requirement and the second transaction requirement, the method further comprises:
extracting transfer information of the green electric voucher from the transaction contract;
verifying and selling the green electricity voucher belonging to the seller according to the transfer information, and generating the green electricity voucher belonging to the purchaser;
and sending the generated identification information of the green electricity voucher belonging to the purchaser to a user node corresponding to the purchaser.
8. The method of claim 7, wherein the assignment information includes a transaction amount, the method further comprising:
transferring the transaction amount from the purchaser's account to the seller account.
9. A transaction arrangement for a green voucher, the arrangement comprising a processor and a memory, the memory being adapted to store program data, the processor being adapted to execute the program data to implement the method of any one of claims 1-8.
10. A blockchain system for implementing the method according to any of claims 1 to 8, comprising a plurality of blockchain nodes, wherein the plurality of blockchain nodes comprises a predetermined blockchain node, a first user node and a second user node.
CN202111406662.5A 2021-11-24 2021-11-24 Method, equipment and blockchain system for trading green electric certificates Pending CN114358766A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111406662.5A CN114358766A (en) 2021-11-24 2021-11-24 Method, equipment and blockchain system for trading green electric certificates

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111406662.5A CN114358766A (en) 2021-11-24 2021-11-24 Method, equipment and blockchain system for trading green electric certificates

Publications (1)

Publication Number Publication Date
CN114358766A true CN114358766A (en) 2022-04-15

Family

ID=81095563

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111406662.5A Pending CN114358766A (en) 2021-11-24 2021-11-24 Method, equipment and blockchain system for trading green electric certificates

Country Status (1)

Country Link
CN (1) CN114358766A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115115458A (en) * 2022-08-30 2022-09-27 国网区块链科技(北京)有限公司 Energy trading system and method of near-zero carbon emission park based on block chain
CN115983875A (en) * 2023-03-16 2023-04-18 浙江华云信息科技有限公司 Method and device for tracing rights and interests value data in green environment
CN116384988A (en) * 2023-06-06 2023-07-04 国网浙江省电力有限公司营销服务中心 Block chain-based electric charge settlement method and system

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115115458A (en) * 2022-08-30 2022-09-27 国网区块链科技(北京)有限公司 Energy trading system and method of near-zero carbon emission park based on block chain
CN115115458B (en) * 2022-08-30 2022-11-18 国网区块链科技(北京)有限公司 Energy trading system and method for near-zero carbon emission park based on block chain
CN115983875A (en) * 2023-03-16 2023-04-18 浙江华云信息科技有限公司 Method and device for tracing rights and interests value data in green environment
CN116384988A (en) * 2023-06-06 2023-07-04 国网浙江省电力有限公司营销服务中心 Block chain-based electric charge settlement method and system
CN116384988B (en) * 2023-06-06 2023-08-18 国网浙江省电力有限公司营销服务中心 Block chain-based electric charge settlement method and system

Similar Documents

Publication Publication Date Title
CN109544160B (en) Transaction authenticity verification method and system based on block chain and intelligent contract
CN110609869B (en) Block chain-based data storage method, related equipment and storage medium
CN114401268A (en) Cross-link data sharing method, system, equipment and readable storage medium
WO2019214312A1 (en) Blockchain-based logistics information transmission method, system and device
CN105373955B (en) Digital asset processing method and device based on multiple signatures
CN114358766A (en) Method, equipment and blockchain system for trading green electric certificates
CN111418184B (en) Credible insurance letter based on block chain
JP2023153422A (en) Control method, electric power system, and program
CN110400188A (en) Electronic bill generation method, device, storage medium and computer equipment
CN114358969A (en) Green power confirmation method, green power confirmation equipment and computer readable storage medium
CN111177253A (en) Power big data protection method and system based on identity digital authentication
CN106600252A (en) Payment method and payment system based on block chain
CN109636610B (en) Decentralized data transaction system and method
WO2022120886A1 (en) Commodity transaction method and apparatus, computer device, storage medium, and system
CN112613956B (en) Bidding processing method and device
CN112613861B (en) Electric power pre-selling transaction method, device and system based on alliance chain
CN111160998B (en) Comment data processing method and device based on block chain and comment system
CN115114658B (en) Verifiable data transaction method, device, equipment and medium based on blockchain
CN111433799B (en) Credible insurance letter based on block chain
JP2019133630A (en) Control method, controller, data structure, and electronic transaction system
US20230134095A1 (en) Systems, devices and methods for tracking authenticated clean energy with blockchains
CN116743768B (en) Method, apparatus, device and computer readable storage medium for trading computing power resources
CN113706312A (en) Photovoltaic electricity transaction method and device based on block chain
CN113626876B (en) Consensus method based on power grid block chain
CN101714222A (en) Safe electronic stamping method based on notarization stamp of notarization institution

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination