Node information updating method in blockchain-based multi-virtual power plant interaction scenario

CN117499047BActive Publication Date: 2026-10-13GUANGZHOU POWER SUPPLY BUREAU GUANGDONG POWER GRID CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311451067.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-02
Publication Date
2026-10-13
Estimated Expiration
2043-11-02

AI Technical Summary

Technical Problem

然而,由于电力市场主体的增多,例如,在多个虚拟电厂交互场景下,传统的电力交易运算中心承担了过大的数据处理压力,而导致无法在多个虚拟电厂交互场景下灵活地处理不同电力交易对象之间的交易

Benefits of technology

[0032]上述基于区块链的多虚拟电厂交互场景下的节点信息更新方法、装置、计算机设备、存储介质和计算机程序产品,通过主节点将当前电力交易轮次普通节点之间形成的电力交易进行打包和签名,得到电力交易区块;电力交易区块携带有主节点的数字签名;通过共识节点对电力交易区块的数字签名进行共识,在共识节点确认共识通过的情况下,基于智能合约将电力交易区块链接至电力交易区块链;基于电力交易区块的上链过程,更新电力交易区块链系统中各节点的信用信息,得到电力交易区块链系统中各节点在当前电力交易轮次的信用信息更新结果;各信用信息更新结果用于确定电力交易区块链系统在下一个电力交易轮次的共识节点;如此,可以基于电力交易区块的上链过程,准确、及时地对电力交易区块链系统中的各类节点的信用信息进行更新,有利于构建电力交易区块链的信任环境,以规范分布式电力交易的交易流程,从而提高多虚拟电厂交互场景下电力交易区块链系统中的电力交易模式的灵活性,以实现高效的电力交易。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117499047B_ABST
    Figure CN117499047B_ABST
Patent Text Reader

Abstract

The application relates to a node credit information updating method and device in a power transaction blockchain system under a multi-virtual power plant interaction scenario, computer equipment, a storage medium and a computer program product. The method comprises the following steps: a main node packs and signs power transactions formed between ordinary nodes in a current power transaction round to obtain a power transaction block; a consensus node carries out consensus on the digital signature of the power transaction block, and links the power transaction block to a power transaction blockchain based on an intelligent contract under the condition that the consensus node confirms that the consensus is passed; based on the chaining process of the power transaction block, the credit information of each node in the power transaction blockchain system is updated to obtain the credit information updating result of each node in the power transaction blockchain system in the current power transaction round. The method can improve the flexibility of the power transaction mode in the power transaction blockchain system under the multi-virtual power plant interaction scenario.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and in particular to a method, apparatus, computer equipment, storage medium, and computer program product for updating node information in a blockchain-based multi-virtual power plant interaction scenario. Background Technology

[0002] With the opening of the electricity sales market to private capital, there are more market players, such as load aggregators, microgrids, and heterogeneous energy sources.

[0003] Currently, electricity trading data is often processed through traditional electricity trading computing centers. However, due to the increasing number of participants in the electricity market, such as in scenarios involving multiple virtual power plants, traditional electricity trading computing centers are under excessive data processing pressure, making it impossible to flexibly handle transactions between different electricity trading entities in such scenarios.

[0004] Therefore, traditional technologies suffer from the problem of insufficient flexibility in power trading models under multiple virtual power plant interaction scenarios. Summary of the Invention

[0005] Therefore, it is necessary to provide a blockchain-based method, apparatus, computer equipment, computer-readable storage medium, and computer program product for updating node information in multi-virtual power plant interaction scenarios, which can improve the flexibility of power trading models in multi-virtual power plant interaction scenarios.

[0006] A method for updating node information in a multi-virtual power plant interaction scenario based on blockchain is proposed. This method is applied to a power trading blockchain system in a multi-virtual power plant interaction scenario. The nodes of the power trading blockchain system include master nodes, ordinary nodes, and consensus nodes. The method includes:

[0007] The master node packages and signs the electricity transactions formed between ordinary nodes in the current electricity trading round to obtain an electricity trading block; the electricity trading block carries the digital signature of the master node.

[0008] The consensus is reached on the digital signature of the power trading block through consensus nodes. Once the consensus nodes confirm that the consensus has been passed, the power trading blockchain is connected to the power trading blockchain based on the smart contract.

[0009] Based on the on-chain process of electricity trading blocks, the credit information of each node in the electricity trading blockchain system is updated to obtain the credit information update results of each node in the current electricity trading round; the credit information update results are used to determine the consensus node of the electricity trading blockchain system in the next electricity trading round.

[0010] In one embodiment, based on the on-chain process of the electricity trading block, the credit information of each node in the electricity trading blockchain system is updated to obtain the credit information update results of each node in the current electricity trading round, including:

[0011] Based on the on-chain process of electricity trading blocks, the credit reward information of each node in the electricity trading blockchain system in the current electricity trading round is determined.

[0012] Obtain the updated node credit information of each node in the previous power trading round in the power trading blockchain system. For any node in the power trading blockchain system, determine the updated credit information of the node in the current power trading round based on the updated credit information of the previous power trading round and the credit reward information of the current power trading round.

[0013] In one embodiment, based on the on-chain process of the electricity trading block, the credit reward information of each node in the electricity trading blockchain system in the current electricity trading round is determined, including:

[0014] Based on the on-chain process of electricity trading blocks, the credit reward information corresponding to the consensus completion time of the consensus node in the current electricity trading round, the credit reward information corresponding to the consensus node discovering the main node's violation, the credit reward information corresponding to the consensus node discovering the transaction violation between ordinary nodes, and the credit penalty information for the consensus node being discovered offline by the supervised node.

[0015] The credit reward information for a consensus node in the current power trading round is determined based on the credit reward information corresponding to the consensus completion time of the consensus node in the current power trading round, the credit reward information corresponding to the consensus node discovering violations by the master node, the credit reward information corresponding to the consensus node discovering violations in transactions between ordinary nodes, and the credit penalty information for the consensus node being detected as offline by the supervised node.

[0016] In one embodiment, based on the on-chain process of the electricity trading block, the credit reward information of each node in the electricity trading blockchain system in the current electricity trading round is determined, including:

[0017] Based on the on-chain process of electricity trading blocks, the credit reward information corresponding to the master node's signing of the electricity trading package in the current electricity trading round as required, the credit reward information corresponding to the master node's production of the electricity trading block, and the credit reward information corresponding to the master node's discovery of transaction violations between ordinary nodes are determined.

[0018] The credit reward information of the master node in the current power trading round is determined based on the credit reward information corresponding to the master node's signing of the power trading package as required in the current power trading round, the credit reward information corresponding to the master node's production of the power trading block, and the credit reward information corresponding to the master node's discovery of transaction violations between ordinary nodes.

[0019] In one embodiment, the nodes of the power trading blockchain system also include supervisory nodes, which, based on the on-chain process of power trading blocks, determine the credit reward information of each node in the power trading blockchain system in the current power trading round, including:

[0020] Based on the on-chain process of electricity trading blocks, the continuous credit information growth information, additional income information, proactive accountability status, and malicious behavior status of the monitoring nodes in the current electricity trading round are determined.

[0021] Based on the continuous credit information growth, additional revenue information, proactive accountability, and misconduct of the monitoring nodes in the current power trading round, the credit reward information for the monitoring nodes in the current power trading round is determined.

[0022] In one embodiment, the power trading blockchain system includes a main chain and side chains. The main chain includes multiple virtual power plant nodes, and each virtual power plant node on the main chain corresponds to a side chain. The side chain corresponding to each virtual power plant node includes at least one power trading object node within the virtual power plant system. Connecting the power trading blockchain to the power trading blockchain based on smart contracts includes:

[0023] When electricity transactions occur between electricity trading object nodes within the same virtual power plant node in the electricity trading blockchain system, the electricity trading blockchain is connected to the sidechain corresponding to the virtual power plant node based on a smart contract.

[0024] In cases where electricity trading occurs between different virtual power plant nodes and electricity trading object nodes within an electricity trading blockchain system, the electricity trading blockchain is connected to the main chain of the electricity trading blockchain system based on smart contracts.

[0025] A node information update device based on blockchain for multi-virtual power plant interaction scenarios is applied to a power trading blockchain system in a multi-virtual power plant interaction scenario. The nodes of the power trading blockchain system include master nodes, ordinary nodes, and consensus nodes. The device includes:

[0026] The packaging module is used by the master node to package and sign the power transactions formed between ordinary nodes in the current power trading round to obtain power trading blocks; the power trading blocks carry the digital signature of the master node;

[0027] The consensus module is used to reach a consensus on the digital signature of the power trading block through consensus nodes. When the consensus node confirms that the consensus has been passed, the power trading blockchain is connected to the power trading blockchain based on the smart contract.

[0028] The update module is used to update the credit information of each node in the power trading blockchain system based on the on-chain process of the power trading block, and obtain the credit information update results of each node in the power trading blockchain system in the current power trading round; the credit information update results are used to determine the consensus node of the power trading blockchain system in the next power trading round.

[0029] A computer device includes a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps of the method described above.

[0030] A computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of the method described above.

[0031] A computer program product includes a computer program that, when executed by a processor, implements the steps of the method described above.

[0032] The aforementioned method, apparatus, computer equipment, storage medium, and computer program product for updating node information in a multi-virtual power plant interaction scenario based on blockchain, involves the master node packaging and signing power transactions formed between ordinary nodes in the current power trading round to obtain a power trading block. The power trading block carries the digital signature of the master node. Consensus nodes reach consensus on the digital signature of the power trading block. Upon confirmation of consensus by the consensus nodes, a smart contract connects the power trading blockchain to the current power trading blockchain. Based on the on-chain process of the power trading block, the credit information of each node in the power trading blockchain system is updated, resulting in the updated credit information of each node in the current power trading round. These updated credit information results are used to determine the consensus node in the next power trading round. Thus, based on the on-chain process of the power trading block, the credit information of various nodes in the power trading blockchain system can be updated accurately and promptly. This facilitates the construction of a trust environment for the power trading blockchain, standardizes the transaction process of distributed power trading, and improves the flexibility of the power trading model in the power trading blockchain system under a multi-virtual power plant interaction scenario, thereby achieving efficient power trading. Attached Figure Description

[0033] Figure 1 This is a flowchart illustrating a node information update method in a blockchain-based multi-virtual power plant interaction scenario, as shown in one embodiment.

[0034] Figure 2 This is a schematic diagram of a multi-chain-based multi-VPP transaction architecture in one embodiment;

[0035] Figure 3 This is a schematic diagram of the anchoring structure between the main chain and each slave chain block in one embodiment;

[0036] Figure 4 This is a flowchart illustrating a consensus process in one embodiment.

[0037] Figure 5 This is a flowchart illustrating a node information update method in a blockchain-based multi-virtual power plant interaction scenario, as shown in another embodiment.

[0038] Figure 6 This is a structural block diagram of a node information update device in a blockchain-based multi-virtual power plant interaction scenario, as shown in one embodiment.

[0039] Figure 7 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation

[0040] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.

[0041] It should be noted that the terms "first," "second," etc., used in the specification, claims, and accompanying drawings of this disclosure are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this disclosure described herein can be implemented in orders other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this disclosure. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this disclosure.

[0042] In one embodiment, such as Figure 1 As shown, a method for updating node information in a multi-virtual power plant interaction scenario based on blockchain is provided. Taking the server of a power trading blockchain system in a multi-virtual power plant interaction scenario as an example, the method is illustrated by the following steps:

[0043] Step S102: The master node packages and signs the power transactions formed between ordinary nodes in the current power trading round to obtain a power trading block; the power trading block carries the digital signature of the master node.

[0044] The master node can be used to package and digitally sign power trading contracts formed between ordinary nodes.

[0045] In this context, a regular node can be any node participating in electricity trading within the electricity trading blockchain system.

[0046] Among them, the power trading block can be a data structure that contains multiple power trading data.

[0047] The digital signature can be the string of numbers used by the master node to encrypt the electricity transaction block using its private key.

[0048] In practice, the server of the power trading blockchain system packages and signs the power transactions formed between ordinary nodes in the current power trading round through the master node, and obtains a power trading block with the digital signature of the master node.

[0049] Step S104: Consensus is reached on the digital signature of the power trading block through consensus nodes. If the consensus nodes confirm that the consensus has been passed, the power trading blockchain is connected to the power trading blockchain based on the smart contract.

[0050] Consensus nodes can be nodes that, in addition to performing the tasks of ordinary nodes, also need to verify and confirm electricity transactions.

[0051] Smart contracts can be programs stored on the electricity trading blockchain that run when predetermined conditions are met. Smart contracts are typically used to automate protocols so that all participating nodes can immediately determine the outcome without the need for any intermediaries or wasted time. Smart contracts can also automate workflows, triggering the next action when conditions are met.

[0052] Among them, the power trading blockchain can be the blockchain corresponding to the power trading blockchain system.

[0053] In practice, the server of the power trading blockchain system reaches consensus on the digital signature of the power trading block through consensus nodes. Once the consensus node confirms that the consensus has been passed, the power trading blockchain is connected to the power trading blockchain based on a smart contract.

[0054] Step S106: Based on the on-chain process of the electricity trading block, update the credit information of each node in the electricity trading blockchain system to obtain the credit information update results of each node in the current electricity trading round; the credit information update results are used to determine the consensus node of the electricity trading blockchain system in the next electricity trading round.

[0055] Among them, credit information can be the credit value of each node in the power trading blockchain, corresponding to the credit evaluation basis of the node.

[0056] Among them, the credit information update result can be the credit value obtained after rewarding or punishing the credit value of a node.

[0057] In practice, the server of the power trading blockchain system updates the credit value of each node in the power trading blockchain system based on the on-chain process of the power trading block, and obtains the credit value update result of each node in the power trading blockchain system in the current power trading round.

[0058] In practical applications, the credit values ​​of different types of nodes in the power trading blockchain system can be determined using a consensus process based on differentiated credit evaluation indicators.

[0059] In the aforementioned method for updating node information in a multi-virtual power plant interaction scenario based on blockchain, the master node packages and signs the power transactions formed between ordinary nodes in the current power trading round to obtain a power trading block. The power trading block carries the master node's digital signature. Consensus nodes reach consensus on the digital signature of the power trading block. Once the consensus nodes confirm the consensus, a smart contract connects the power trading blockchain to the current power trading blockchain. Based on the on-chain process of the power trading block, the credit information of each node in the power trading blockchain system is updated, resulting in the updated credit information of each node in the current power trading round. These updated credit information results are used to determine the consensus node in the next power trading round. Thus, based on the on-chain process of the power trading block, the credit information of various nodes in the power trading blockchain system can be updated accurately and promptly. This facilitates the construction of a trust environment for the power trading blockchain, standardizes the transaction process of distributed power trading, and improves the flexibility of the power trading model in the power trading blockchain system under a multi-virtual power plant interaction scenario, thereby achieving efficient power trading.

[0060] To facilitate understanding by those skilled in the art, the following exemplarily provides a multi-virtual power plant-listed energy trading system (MLTS) based on listed trading. MLTS employs a blockchain architecture, such as... Figure 2As shown (a multi-chain, multi-VPP transaction architecture), participants include VPPs and their aggregated distributed resources, the power grid company responsible for ensuring energy delivery, and the Virtual Power Plant Management Center (VMC) responsible for managing internal distributed resources and interacting with other VPPs. These entities participate in the organization and maintenance of the main blockchain as nodes with different functions, and the behavior of nodes within the energy trading system is regulated by defining the functions of each node. When a node is a direct participant in a transaction, it can publish transaction requests within the MLTS through the VMC. Some nodes within the system are elected to obtain the power to verify transactions and package blocks, and receive corresponding subsidies, achieving self-organization, self-maintenance, and self-supervision within a single VPP, as well as orderly transactions of distributed resources among multiple VPPs. To ensure the security of energy transmission and the operation of the MLTS system, the power grid needs to ensure the flow of electricity while also considering node access and identity verification.

[0061] In the MLTS energy trading system, a round of trading consists of a free bidding phase, a transaction confirmation phase, a power delivery phase, and a transition phase. The transition phase of the previous round and the free bidding phase of the next round overlap in time.

[0062] During the free bidding phase, MLTS supports two types of orders: seller orders and buyer orders. Seller orders involve sellers setting initial electricity prices and the available electricity volume for the current time period. Buyers reach preliminary trading intentions with one or more sellers based on their needs. These intention orders are not locked, but the seller's available electricity volume decreases based on the number of orders reached. Users also need to pay corresponding fees to MLTS. If the transaction is cancelled at this stage, the seller's available electricity volume and the user's fees will be refunded. Buyers in this type of transaction cannot control the electricity price but can guarantee a transaction within the current time period. Buyer orders involve buyers submitting orders to MLTS containing price expectations and electricity volume information, waiting for sellers to respond to their needs. Buyers in this type of transaction cannot control whether the transaction will be completed within the current time period but can control the electricity price to be within their desired range. Because the electrical distance between trading parties within a single VPP and between trading parties across VPPs is unpredictable, the buyer is responsible for grid connection fees. When a user trades with other participants within the MLTS system, the system automatically generates potential grid connection fees based on the information of both parties in the order for the customer's reference.

[0063] During the transaction confirmation phase, the intended orders generated in the previous phase are locked. Neither the buyer nor the seller can arbitrarily cancel the transaction; otherwise, they will be subject to corresponding penalties. The master node will package the current orders in the system into blocks and submit them to the consensus nodes for verification.

[0064] During the power delivery phase, after the consensus node verifies the block, it digitally signs it. The smart contract automatically uploads the block to the blockchain and completes the fund and energy delivery according to the order information. Simultaneously, the seller generates a new round of bids and increases or decreases its tradable electricity volume. Since the electricity generation and consumption of the participants may deviate from their expectations, the power grid needs to absorb this deviation. Distributed generators have no capacity to absorb excess generation; the excess is sold to the grid at the benchmark feed-in tariff. For undergeneration, they have no capacity to compensate; the undergeneration is purchased from the grid at the grid's selling price and supplied to buyers. Losses and grid access fees are borne by the seller. If a power user's electricity consumption is less than the transaction agreement and they have no surplus capacity, they sell to the grid at the benchmark feed-in tariff. The loss in this case is the user's purchase price minus the grid's purchase price. If their electricity consumption exceeds the transaction agreement and they have no backup power, the excess is purchased from the grid at the current grid's external selling price. All these overspending and losses are borne by the user.

[0065] During the transition phase, each participant will determine their buying and selling status for the next period based on their own electricity consumption. Sellers will generate a new round of bids and increase or decrease their tradable electricity volume, while buyers will form their own electricity purchase expectations.

[0066] In another embodiment, based on the on-chain process of the electricity trading block, the credit information of each node in the electricity trading blockchain system is updated to obtain the credit information update result of each node in the current electricity trading round. This includes: determining the credit reward information of each node in the current electricity trading round based on the on-chain process of the electricity trading block; obtaining the credit information update result of each node in the previous electricity trading round; and for any node in the electricity trading blockchain system, determining the credit information update result of the node in the current electricity trading round based on the credit information update result of the previous electricity trading round and the credit reward information of the current electricity trading round.

[0067] The on-chain process can include steps such as forming an electricity trading contract, packaging electricity transactions into blocks, reaching consensus on the electricity trading blocks, and uploading the electricity trading blocks to the blockchain.

[0068] Among them, the credit reward information can be the credit value that a node is rewarded with in the current round of electricity trading in the electricity trading blockchain system.

[0069] In practice, the server of the power trading blockchain system determines the credit reward value of each node in the current power trading round based on the on-chain process of power trading blocks. The server then obtains the credit value update results of each node in the previous power trading round. For any node in the power trading blockchain system, the server determines the credit value update result of the node in the current power trading round based on the credit value update result of the previous power trading round and the credit reward value of the current power trading round. In practical applications, the credit values ​​of different types of nodes in the power trading blockchain system are evaluated using a consensus process based on differentiated credit evaluation indicators.

[0070] The technical solution of this embodiment determines the credit reward information of each node in the current power trading blockchain system through the on-chain process of power trading blocks; it obtains the credit information update results of each node in the previous power trading round; and for any node in the power trading blockchain system, it determines the credit information update result of the node in the current power trading round based on the credit information update results of the previous power trading round and the credit reward information of the current power trading round. In this way, the credit value of each node in the power trading blockchain system can be accurately updated, which is conducive to building a trust environment for the power trading blockchain.

[0071] In another embodiment, based on the on-chain process of the electricity trading block, the credit reward information of each node in the electricity trading blockchain system in the current electricity trading round is determined, including: based on the on-chain process of the electricity trading block, determining the credit reward information corresponding to the consensus completion time of the consensus node in the current electricity trading round, the credit reward information corresponding to the consensus node discovering the main node's violation, the credit reward information corresponding to the consensus node discovering the transaction violation between ordinary nodes, and the credit penalty information for the consensus node being offline discovered by the supervised node; based on the credit reward information corresponding to the consensus completion time of the consensus node in the current electricity trading round, the credit reward information corresponding to the consensus node discovering the main node's violation, the credit reward information corresponding to the consensus node discovering the transaction violation between ordinary nodes, and the credit penalty information for the consensus node being offline discovered by the supervised node, the credit reward information of the consensus node in the current electricity trading round is determined.

[0072] In its specific implementation, the server of the power trading blockchain system determines the credit reward value corresponding to the consensus completion time of the consensus node in the current power trading round, the credit reward value corresponding to the consensus node discovering the main node's violation, the credit reward value corresponding to the consensus node discovering the transaction violation between ordinary nodes, and the credit penalty value for the consensus node being found offline by the supervised node, based on the consensus completion time of the consensus node in the current power trading round. The server of the power trading blockchain system then determines the credit reward value of the consensus node in the current power trading round based on the credit reward value corresponding to the consensus completion time of the consensus node in the current power trading round, the credit reward value corresponding to the consensus node discovering the main node's violation, the credit reward value corresponding to the consensus node discovering the transaction violation between ordinary nodes, and the credit penalty value for the consensus node being found offline by the supervised node.

[0073] In practical applications, the credit reward value corresponding to a consensus node depends on the consensus completion time of the consensus node, the consensus node's discovery of violations by the master node, the consensus node's discovery of violations in transactions between ordinary nodes, and the consensus node being detected as offline by the supervised node.

[0074] The faster a consensus node completes its consensus, the more credit points it receives as a reward. The formula for calculating the credit reward for the consensus completion time of a consensus node in the current electricity trading round is as follows:

[0075]

[0076] in, t2 is the credit reward value corresponding to the consensus completion time of the consensus node in the current power trading round. When the consensus completion time is within the allowed range, β1 is 1 and β2 is 0. When the consensus completion time exceeds the limit, β1 is 0 and β2 is -1. The unit of t2 is min. The consensus completion time is limited to 2 min.

[0077] The formula for calculating the credit reward value obtained by a consensus node for correctly discovering a master node's violation (i.e., the electricity trading block generated by the master node fails to pass consensus) is as follows:

[0078]

[0079] in, The credit reward value obtained by the consensus node for correctly discovering the master node's violation is β3, which is 1 when the master node fails to pass the consensus, and 0 otherwise.

[0080] The consensus is as follows: The credit reward value obtained by a consensus node for detecting transaction violations between ordinary nodes is calculated as follows:

[0081]

[0082] in, α4 is the credit reward value obtained by the consensus node for discovering transaction violations between ordinary nodes. α4 is 1 when an ordinary node violates the rules, and 0 otherwise.

[0083] A consensus node will have 1 / 5 of its credit value deducted if it goes offline during the consensus phase and is detected offline by a monitored node during the non-consensus phase. Since its offline status affects subsequent workflows, the deducted credit value will be distributed to other consensus nodes and denoted as E. c The supervisory node is denoted as E. s and ordinary node E participating in the current round of transactions n If, after deduction, the requirements for becoming a consensus node are not met, it will be replaced after the current round of consensus is completed.

[0084] The credit score update result of a consensus node in the current power trading round is the sum of the node's credit score in the previous power trading round and its credit reward value in the current power trading round. Therefore, the formula for calculating the credit score update result of a consensus node in the current power trading round is:

[0085]

[0086] in, β4 is the credit value update result of the consensus node in the previous power trading round. When there is a consensus node that violates the rules, β4 is 1, otherwise it is 0. When VMC acts as the consensus node and ordinary nodes violate the rules, β5 is 1, otherwise it is 0.

[0087] The technical solution of this embodiment determines the credit reward information corresponding to the consensus completion time of the consensus node in the current power trading round, the credit reward information corresponding to the consensus node discovering the main node's violation, the credit reward information corresponding to the consensus node discovering the violation of transactions between ordinary nodes, and the credit penalty information for the consensus node being offline when discovered by the supervised node, based on the on-chain process of the power trading block. Based on the credit reward information corresponding to the consensus completion time of the consensus node in the current power trading round, the credit reward information corresponding to the consensus node discovering the main node's violation, the credit reward information corresponding to the consensus node discovering the violation of transactions between ordinary nodes, and the credit penalty information for the consensus node being offline when discovered by the supervised node, the credit reward information for the consensus node in the current power trading round is determined. In this way, the credit value of the consensus node in the power trading blockchain system can be accurately and quickly determined, thereby improving the efficiency of power trading in the power trading blockchain system.

[0088] In another embodiment, based on the on-chain process of electricity trading blocks, the credit reward information of each node in the electricity trading blockchain system in the current electricity trading round is determined, including: based on the on-chain process of electricity trading blocks, determining the credit reward information corresponding to the master node after signing the electricity trading package as required in the current electricity trading round, the credit reward information corresponding to the master node when producing the electricity trading block, and the credit reward information corresponding to the master node discovering transaction violations between ordinary nodes; and determining the credit reward information of the master node in the current electricity trading round based on the credit reward information corresponding to the master node after signing the electricity trading package as required in the current electricity trading round, the credit reward information corresponding to the master node when producing the electricity trading block, and the credit reward information corresponding to the master node discovering transaction violations between ordinary nodes.

[0089] In practice, the server of the power trading blockchain system determines the credit reward value of the master node after it packages and signs the power transaction according to the requirements in the current power trading round, the credit reward value of the master node when it produces the power trading block, and the credit reward value of the master node when it discovers transaction violations between ordinary nodes, based on the process of putting the power trading block on the chain. The server of the power trading blockchain system then determines the credit reward value of the master node in the current power trading round based on the credit reward value of the master node after it packages and signs the power transaction according to the requirements in the current power trading round, the credit reward value of the master node when it produces the power trading block, and the credit reward value of the master node when it discovers transaction violations between ordinary nodes.

[0090] In practical applications, the credit reward value corresponding to the master node depends on whether the master node packages and signs the electricity trading blocks as required, the time of the master node's packaging and block production of the electricity trading blocks, and whether the master node discovers any violations in transactions between ordinary nodes.

[0091] Whether the master node packages and signs the electricity trading block as required is generally determined by the consensus node. Once consensus is reached, the master node receives a corresponding credit reward value. The formula for calculating the credit reward value is as follows:

[0092]

[0093] Among them, C p To ensure that the credit reward value corresponding to the packaging and signing of the electricity transaction block is as required, α1 takes the value of 1 when the consensus node passes and -1 when it fails, and N is the total number of electricity transactions packaged in the block.

[0094] The faster a master node packages and produces a block for electricity trading, the more credit reward it receives. Delaying results in a credit penalty. Theoretically, it's a pure reward. The consensus among master nodes is as follows regarding the credit reward value corresponding to the block production time for electricity trading:

[0095]

[0096] in, The master node sets the credit reward value corresponding to the block time of the electricity trading block. When the block time is within the allowed range, α2 is 1 and α3 is 0. When the block time exceeds the allowed range, α2 is 0 and α3 is -1.

[0097] When a master node discovers a violation in a transaction between ordinary nodes, it receives the credit points that the ordinary node would earn in the current electricity trading round. The ordinary node will have its corresponding credit points deducted. The formula for calculating the credit reward value when a master node discovers a violation in a transaction between ordinary nodes is as follows:

[0098]

[0099] in, This is the credit reward value corresponding to the master node discovering a transaction violation between ordinary nodes. α4 is 1 when the master node discovers a transaction violation between ordinary nodes, and 0 otherwise.

[0100] The master node's credit value update result in the current power trading round is the sum of its node credit value in the previous power trading round and its credit reward value in the current power trading round. Therefore, the formula for calculating the master node's credit value update result in the current power trading round is:

[0101]

[0102] in, This is the update result of the master node's credit value in the current power trading round. This is the credit value update result of the master node in the previous power trading round. When the VMC is the master node, α5 is 1, otherwise it is 0.

[0103] The technical solution of this embodiment, based on the on-chain process of power trading blocks, determines the credit reward information corresponding to the master node's signing of power trading packages as required in the current power trading round, the credit reward information corresponding to the master node's production of power trading blocks, and the credit reward information corresponding to the master node's discovery of transaction violations between ordinary nodes. Based on the credit reward information corresponding to the master node's signing of power trading packages as required in the current power trading round, the credit reward information corresponding to the master node's production of power trading blocks, and the credit reward information corresponding to the master node's discovery of transaction violations between ordinary nodes, the credit reward information of the master node in the current power trading round is determined. In this way, the credit value of the master node in the power trading blockchain system can be accurately determined, thereby improving the efficiency of power trading in the power trading blockchain system.

[0104] In another embodiment, the nodes of the power trading blockchain system also include supervisory nodes. Based on the on-chain process of power trading blocks, the system determines the credit reward information of each node in the current power trading round, including: determining the supervisory node's continuous credit information growth information, additional income information, proactive accountability status, and malicious behavior status in the current power trading round based on the on-chain process of power trading blocks; and determining the supervisory node's credit reward information in the current power trading round based on the supervisory node's continuous credit information growth information, additional income information, proactive accountability status, and malicious behavior status.

[0105] In this system, supervisory nodes can participate in the entire electricity trading process as special nodes and are not allowed to go offline. Supervisory nodes have the right to review electricity transactions, but initiating an information review requires prepaying reputation points. If the other node is without fault, these reputation points are deducted from the other node's account, and the node is compensated for corresponding communication and lost work costs. If the other node has problems, a corresponding amount of reputation points is deducted from the other node's account, and a fine is imposed, with the supervisory node receiving the fine revenue. Simultaneously, the supervisory node constantly monitors complaints, and the complainant bears the aforementioned risks when handling complaints.

[0106] In practical applications, after receiving a complaint from node A against B, node A pays node B all the reputation gains (C) it could have earned in this round. a After the supervisory node completes its review, if the complaint is upheld, then C... a The credit is returned to node A, and both the supervising node and node A receive all the reputation gains that node B could have earned in this round. b Since supervisory nodes can proactively hold other nodes accountable, a reasonable penalty and reward mechanism should be established to prevent supervisory nodes from maliciously abusing this power, ensuring that the cost of wrongdoing outweighs the benefits.

[0107] Among them, the information on continuous credit value growth can be the slow credit value that the monitoring node continuously obtains in the current power trading round.

[0108] In practical applications, the formula for a supervisory node to continuously and slowly increase its credit value (1 credit point every 20 rounds, 2 credit points every 400 rounds) is as follows:

[0109]

[0110] in, Let i represent the continuous credit value growth obtained by the monitoring node, where i is the round.

[0111] The additional benefit value can be the allocated benefit obtained by the supervisory node when it discovers that the consensus node is offline, as well as the benefit that may be generated from initiating proactive accountability.

[0112] In practical applications, the additional benefit of the supervisory node comes from the distribution benefit E caused by the consensus node going offline. s And the potential benefits of proactive accountability, E a .

[0113] Among them, proactive accountability can be the result of proactive accountability by the monitoring node.

[0114] In practical applications, supervisory nodes can initiate information verification requests for suspicious nodes at any time, but initiating such verification requires a prepayment of reputation value E. a There are two possible scenarios at this stage:

[0115] 1) Accountability Success: The monitoring node receives a reward E. a Its value is equal to 1.5 times the reputation value gained by the accountable node in this round; correspondingly, the accountable node has 0.5E deducted in this round. a They also face fines.

[0116] 2) Accountability Failure: The monitoring node loses its prepaid credit value E. a They shall also bear the corresponding communication fees and delay fees of the other party.

[0117] Among them, the malicious behavior can be used to characterize whether the monitoring node has committed malicious acts.

[0118] In practical applications, a supervisory node will have 2 credit points deducted when it commits malicious acts. The formula for calculating the supervisory node's credit penalty for malicious acts is as follows:

[0119] P s =-2·δ1

[0120] Among them, P s δ1 is the credit penalty value when a supervisory node commits malicious acts. δ1 takes the value of 1 when a supervisory node commits malicious acts, and takes the value of 0 otherwise.

[0121] In practice, the server of the power trading blockchain system determines the continuous credit value growth, additional income, proactive accountability, and malicious behavior of the supervisory node in the current power trading round based on the on-chain process of the power trading block. The server then determines the credit reward value of the supervisory node in the current power trading round based on the continuous credit value growth, additional income, proactive accountability, and malicious behavior of the supervisory node in the current power trading round.

[0122] The credit score update result of the supervisory node in the current power trading round is the sum of the credit score update result of the supervisory node in the previous power trading round and the credit reward value in the current power trading round. The formula for calculating the credit score update result of the supervisory node in the current power trading round is:

[0123]

[0124] in, To monitor the credit value update results of nodes in the current electricity trading round, To monitor the credit value update results of the nodes in the previous power trading round.

[0125] The technical solution of this embodiment determines the continuous credit information growth, additional income information, proactive accountability, and malicious behavior of the supervisory node in the current power trading round by on-chaining the power trading block. Based on the continuous credit information growth, additional income information, proactive accountability, and malicious behavior of the supervisory node in the current power trading round, the credit reward information of the supervisory node in the current power trading round is determined. In this way, the credit value of the supervisory node in the power trading blockchain system can be accurately determined, thereby helping to improve the power trading efficiency in the power trading blockchain system.

[0126] In practical applications, the credit reward value of ordinary nodes in the power trading blockchain system depends on the completion rate of power transactions, additional credit reward, and penalties for wrongdoing.

[0127] Electricity transaction completion score is generated after the previous round of electricity transactions on a regular node. It is used for reputation score generation. The formula for calculating electricity transaction completion score is:

[0128]

[0129] Where T represents the completion rate of electricity transactions, and S... n N represents the number of successful transactions for a regular node. n This represents the total number of times the participant has participated in electricity trading.

[0130] The additional credit reward primarily comes from the distribution of credits after a consensus node is penalized, denoted as E. n .

[0131] The penalty for wrongdoing stems from ordinary nodes submitting transactions that cannot be completed or transactions that are defaulted. In the current power trading round, the credit points that can be obtained in addition to the extra credit point reward will be deducted from the master node.

[0132] The credit score update result for a regular node in the current power trading round is the sum of the credit score update result in the previous power trading round and the credit reward value in the current power trading round. The formula for calculating the credit score update result for a regular node in the current power trading round is:

[0133]

[0134] in, α represents the credit score update result of a regular node in the previous power trading round. nThe value is used to measure the size of the transaction. The larger the transaction size, the higher the value and the more credit points are obtained. It is generally taken as [0.7, 0.9].

[0135] In another embodiment, the power trading blockchain system includes a main chain and side chains. The main chain includes multiple virtual power plant nodes. Each virtual power plant node on the main chain corresponds to a side chain. The side chain corresponding to each virtual power plant node includes at least one power trading object node within the virtual power plant system. Connecting the power trading blockchain to another power trading blockchain based on a smart contract includes: when power trading occurs between power trading object nodes within the same virtual power plant node in the power trading blockchain system, connecting the power trading blockchain to the side chain corresponding to the virtual power plant node based on a smart contract; when power trading occurs between power trading object nodes between different virtual power plant nodes in the power trading blockchain system, connecting the power trading blockchain to the main chain of the power trading blockchain system based on a smart contract.

[0136] Among them, virtual power plant nodes can be nodes corresponding to virtual power plants (VPPs) belonging to the power trading blockchain system.

[0137] Among them, the nodes of the power trading objects can be nodes corresponding to the power trading objects belonging to the power trading blockchain system, and the power trading objects can be different business entities.

[0138] In specific implementation, when power transactions occur between power trading object nodes within the same virtual power plant node in the power trading blockchain system, the server of the power trading blockchain system connects the power trading blockchain to the side chain corresponding to the virtual power plant node based on a smart contract. When power transactions occur between power trading object nodes between different virtual power plant nodes in the power trading blockchain system, the server of the power trading blockchain system connects the power trading blockchain to the main chain of the power trading blockchain system based on a smart contract.

[0139] To facilitate understanding by those skilled in the art, the following exemplifies a chain formation process corresponding to a multi-chain collaborative operation mode. In practical applications, there are two main scenarios in power trading among multiple virtual power plants: one is trading between distributed resources within a VPP; the other is trading entities from different VPPs. The chain formation processes for these two scenarios are as follows:

[0140] 1) When the transacting parties belong to the same VPP, both parties publish electricity purchase and sale information in the system through the VMC (here, it is set that the transacting parties submit applications to the system through the VPP in order to identify whether the transacting parties come from the same VPP in the second scenario); they reach a transaction intention in the system; during the transaction confirmation stage, both parties confirm the transaction, and the system returns the transaction details to the VMC (since a single VMC may be passed by multiple transacting parties and not all transactions are necessarily successful, the system needs to return the details of successful transactions to reduce the processing pressure on the VMC); the VMC packages the transaction information into a block and submits it to the consensus node for verification; after consensus is passed, the smart contract connects the blockchain to the local blockchain of the VPP.

[0141] 2) When the two parties to a transaction belong to different VPPs, they publish electricity purchase and sale information to the system through their respective VMCs; they reach a transaction intention in the system; during the transaction confirmation stage, both parties confirm the transaction, and the system packages the transaction into a block and returns it to all VMCs; each VMC will verify the block to reach a consensus; after the consensus is passed, the smart contract connects the blockchain to the main chain (if the two parties want to query this transaction: cross-chain technology is required. The buyer (seller) should first call the side chain through the transaction certificate, and query the information on the main chain through the anchor channel between the side chain and the main chain. This can prevent a large number of scattered resources from submitting query requests to the system, and reserve the data anchor relationship of each cross-chain transaction in advance, which is more efficient and reduces the system pressure).

[0142] To reduce the computational burden on key nodes while retaining the flexibility and freedom of distributed resource transactions, this embodiment's master-slave multi-chain model is primarily based on two types of blocks with different data structures. Sidechains record transaction information between distributed resources within a virtual power plant. When transactions occur between different virtual power plants, the main chain records these transactions on-chain. Simultaneously, sidechain collaborative blocks are anchored to main chain blocks, ensuring data isolation between intra-chain and cross-chain transactions while alleviating data storage pressure on critical nodes.

[0143] Tables 1 to 3 below show the data structures of main chain blocks and collaborative blocks. Since the working principle of side chain ordinary blocks is the same as that of main chain blocks, they are not listed separately.

[0144] Table 1 Main Chain Block Header Data Structure

[0145]

[0146] Table 2 Main Chain Block Data Structure

[0147]

[0148] Table 3 Collaborative Block Data Structure

[0149]

[0150] The main chain and each slave chain block are anchored by storing hash values ​​in the block header. The anchoring structure is as follows: Figure 3 As shown, Figure 3 The anchoring structure shown corresponds to the cross-chain data principle of the MLTS system's multi-chain collaborative operation. The main chain, running on all VMCs within the system, implements the function of anchoring collaborative blocks between chains. Based on this, it can distinguish between transactions within and outside VPPs, while maintaining cross-chain transaction information. All users transacting with other VPPs can query the blocks anchored to them on the main chain through the collaborative blocks of their local VMCs. Starting from the data structures of the two blocks, during the interaction between the main chain and side chains in this system, when the parties involved in a cross-chain transaction confirm the transaction, the system packages the transaction information and stores the generated Merkel_Root in the block header of the newly generated main chain block. Simultaneously, when the system submits the block to all VMCs for consensus, the VMCs belonging to both parties to the transaction will also generate collaborative blocks outside of the consensus process. To facilitate information traceability and review, the collaborative blocks will store the side chain identifier and the position of the main chain block in the Index and Type fields of the block header. After generating a collaborative block, VMC broadcasts it to the system. Upon receiving the broadcast, the system uses Merkel_Root, generated by storing the Index, Hash, and Type fields of the newly generated collaborative block in the main chain block header, to achieve cross-chain anchoring of information. When the transacting parties query this transaction through their respective VMCs, VMCs will find the block on the main chain through the anchoring identifier, enabling subsequent verification and maintenance of transaction information.

[0151] The technical solution of this embodiment connects the power trading blockchain to the sidechain corresponding to the virtual power plant node based on a smart contract when power trading occurs between power trading object nodes within the same virtual power plant node in the power trading blockchain system; and connects the power trading blockchain to the main chain of the power trading blockchain system based on a smart contract when power trading occurs between power trading object nodes between different virtual power plant nodes in the power trading blockchain system. This reduces the computational and data storage pressure on nodes.

[0152] The technical solution proposed in this application requires classifying the nodes of various business entities in the power trading blockchain system, and then determining the credit value calculation method for each type of node, thereby constructing a differentiated credit evaluation index.

[0153] The nodes are categorized based on the business functions of each business entity within the system, resulting in master nodes, consensus nodes, supervisory nodes, and ordinary nodes. The roles of each node type are as follows:

[0154] 1) Master node: Digitally signs and verifies the transaction contracts formed between ordinary nodes, packages the transactions of the current period into blocks, attaches the digital signature of the master node, and submits them to the consensus nodes for review.

[0155] 2) Consensus Nodes: For sidechain networks, the total number of nodes generally does not exceed 100, and the number of consensus nodes is generally set at 10% of the total number of nodes, with a minimum of 2. For mainchain networks, consensus nodes are selected from the VMC, and their number should be 60% of the number of VPPs in the system. Consensus nodes are not allowed to be offline. The improved PBFT consensus algorithm will be used among consensus nodes to reach consensus on the digital signatures of the main node and ordinary nodes. Once consensus is passed, the smart contract will automatically perform the fund and energy settlement according to each transaction contract. After the transaction is completed, the block will be automatically executed and uploaded to the chain by the smart contract.

[0156] 3) Supervisory Nodes: Supervisory nodes are not allowed to go offline. They participate in the entire transaction process as special nodes. Supervisory nodes have the right to review transactions, but initiating an information review requires a prepayment of reputation points. If the other party has no problems, the reputation points will be deducted from the other party's account, and the supervisor will compensate the other party for corresponding communication fees and lost work expenses. If the other party has problems, the supervisory node will deduct a corresponding amount of reputation points from the other party's account and incur a corresponding fine, thus obtaining the fine revenue. Simultaneously, the supervisory node will continuously monitor complaints, and the complainant will bear the aforementioned risks when handling complaints.

[0157] 3) Regular nodes: can go online and offline at any time, but once they participate in a transaction during a certain period, they cannot go offline unless the order is confirmed or canceled.

[0158] To facilitate understanding by those skilled in the art, the following exemplary embodiment provides a consensus process based on differentiated credit evaluation indicators, corresponding to the PBFT (pbft based on differentiated credit evaluation indicators, DCE-PBFT) algorithm, which mainly serves peer-to-peer transactions. The consensus is initiated by the master node to eliminate the request and response phase in the PBFT algorithm. Before entering the consensus phase, it is necessary to ensure that all consensus nodes compare local data and on-chain data at corresponding intervals to synchronize data within the network in real time, so as to ensure that the newly generated transaction information of the current round can be stored in a timely manner.

[0159] Based on the aforementioned energy trading system MLTS and the credit mechanism based on differentiated credit rating indicators, the DCE-PBFT algorithm consensus process (corresponding to...) Figure 4 The flowchart shown is as follows:

[0160] (1) Before the start of this round of power trading, all nodes will automatically update their reputation, and the system will automatically determine whether the consensus node should be replaced.

[0161] (2) After the nodes confirm the transaction within the system via VMC, they encrypt it using their private keys and submit it to the master node, while generating... Credit rating;

[0162] (3) The main chain and side chain master nodes package the current period's electricity transactions and distinguish between side chain transactions and cross chain transactions, sign them, and broadcast them to the consensus nodes, while generating... Credit rating;

[0163] (4) Consensus nodes use public keys to decrypt the packaged files and verify the electricity transaction information. After consensus is reached, the consensus nodes in the cluster determine whether all electricity transactions within this time period are legal and confirm the legality of the block, generating C. p , and Credit evaluation, and synchronization of electricity transaction information to the node's local ledger;

[0164] (5) Smart contracts will automatically execute the sidechain and main chain on the blockchain, and the blocks generated by the consensus nodes will be automatically executed.

[0165] (6) Each node synchronizes on-chain data to its local distributed ledger, and at the same time, automatically updates the node credit rating based on the reputation generated in each step to prepare for the next round of electricity trading.

[0166] The aforementioned DCE-PBFT algorithm, based on the characteristics of the Multi Virtual Power Plant Trading System (MLTS), changes the network-wide, node-wide broadcast to a method where the master node sends messages to the consensus node for verification, thus eliminating the network-wide, node-wide broadcast. At the same time, by controlling the number of consensus nodes, it reduces the network resource consumption of the consensus process, significantly reducing the network bandwidth consumed and improving the consensus process.

[0167] In summary, the multi-blockchain system multi-virtual power plant trading mechanism proposed in this application introduces cross-chain technology to clarify the main and side chain formation process, achieving main-side chain information anchoring, improving transaction flexibility, and standardizing the transaction process. Furthermore, it designs differentiated credit evaluation indicators based on node functions and their different roles in the main and side chains, thereby optimizing the PBFT consensus process and avoiding problems such as main-side chain anchoring confusion, node interaction blockage, and information security issues.

[0168] In another embodiment, such as Figure 5As shown, a method for updating node information in a multi-virtual power plant interaction scenario based on blockchain is provided. This method is applied to a power trading blockchain system in a multi-virtual power plant interaction scenario. The nodes of the power trading blockchain system include master nodes, ordinary nodes, and consensus nodes. The method is illustrated by applying it to a server in the power trading blockchain system, and includes the following steps:

[0169] Step S502: The master node packages and signs the power transactions formed between ordinary nodes in the current power trading round to obtain a power trading block; the power trading block carries the digital signature of the master node.

[0170] Step S504: Consensus is reached on the digital signature of the power trading block through consensus nodes. If the consensus nodes confirm that the consensus has been passed, the power trading blockchain is connected to the power trading blockchain based on the smart contract.

[0171] Step S506: Based on the on-chain process of the electricity trading block, determine the credit reward information of each node in the electricity trading blockchain system in the current electricity trading round.

[0172] Step S508: Obtain the credit information update results of each node in the power trading blockchain system in the previous power trading round. For any node in the power trading blockchain system, determine the credit information update result of the node in the current power trading round based on the credit information update result of the previous power trading round and the credit reward information of the current power trading round. Each credit information update result is used to determine the consensus node of the power trading blockchain system in the next power trading round.

[0173] It should be noted that the specific limitations of the above steps can be found in the above description of the specific limitations of a node information update method in a blockchain-based multi-virtual power plant interaction scenario.

[0174] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.

[0175] Based on the same inventive concept, this application also provides a node information updating device for a blockchain-based multi-virtual power plant interaction scenario, used to implement the node information updating method in the aforementioned blockchain-based multi-virtual power plant interaction scenario. The solution provided by this device is similar to the implementation described in the above method. Therefore, the specific limitations of one or more embodiments of the node information updating device for a blockchain-based multi-virtual power plant interaction scenario provided below can be found in the limitations of the node information updating method for a blockchain-based multi-virtual power plant interaction scenario described above, and will not be repeated here.

[0176] In one embodiment, such as Figure 6 As shown, a node information update device for a multi-virtual power plant interaction scenario based on blockchain is provided. This device is applied to a power trading blockchain system in a multi-virtual power plant interaction scenario. The nodes of the power trading blockchain system include master nodes, ordinary nodes, and consensus nodes. The device includes:

[0177] The packaging module 602 is used to package and sign the power transactions formed between ordinary nodes in the current power trading round through the master node to obtain a power trading block; the power trading block carries the digital signature of the master node;

[0178] The consensus module 604 is used to reach consensus on the digital signature of the power trading block through the consensus node. When the consensus node confirms that the consensus has been passed, the power trading blockchain is connected to the power trading blockchain based on the smart contract.

[0179] The update module 606 is used to update the credit information of each node in the power trading blockchain system based on the on-chain process of the power trading block, and obtain the credit information update results of each node in the power trading blockchain system in the current power trading round; the credit information update results are used to determine the consensus node of the power trading blockchain system in the next power trading round.

[0180] In one embodiment, the update module 606 is specifically used to determine the credit reward information of each node in the current power trading blockchain system in the current power trading round based on the on-chain process of the power trading block; obtain the credit information update result of each node in the previous power trading round in the power trading blockchain system; and for any node in the power trading blockchain system, determine the credit information update result of the node in the current power trading round based on the credit information update result of the previous power trading round and the credit reward information of the current power trading round.

[0181] In one embodiment, the update module 606 is specifically used to determine, based on the on-chain process of the electricity trading block, the credit reward information corresponding to the consensus completion time of the consensus node in the current electricity trading round, the credit reward information corresponding to the consensus node discovering the main node's violation, the credit reward information corresponding to the consensus node discovering the transaction violation between ordinary nodes, and the credit penalty information for the consensus node being offline by the supervised node; and to determine the credit reward information of the consensus node in the current electricity trading round based on the credit reward information corresponding to the consensus completion time of the consensus node in the current electricity trading round, the credit reward information corresponding to the consensus node discovering the main node's violation, the credit reward information corresponding to the consensus node discovering the transaction violation between ordinary nodes, and the credit penalty information for the consensus node being offline by the supervised node.

[0182] In one embodiment, the update module 606 is specifically used to determine the credit reward information corresponding to the master node's signing of the power transaction package as required in the current power transaction round, the credit reward information corresponding to the master node's production of the power transaction block, and the credit reward information corresponding to the master node's discovery of transaction violations between ordinary nodes based on the on-chain process of the power transaction block; and to determine the master node's credit reward information in the current power transaction round based on the credit reward information corresponding to the master node's signing of the power transaction package as required in the current power transaction round, the credit reward information corresponding to the master node's production of the power transaction block, and the credit reward information corresponding to the master node's discovery of transaction violations between ordinary nodes.

[0183] In one embodiment, the nodes of the power trading blockchain system also include a supervisory node. The update module 606 is specifically used to determine the continuous credit information growth information, additional income information, proactive accountability status, and malicious behavior of the supervisory node in the current power trading round based on the on-chain process of the power trading block; and to determine the credit reward information of the supervisory node in the current power trading round based on the continuous credit information growth information, additional income information, proactive accountability status, and malicious behavior of the supervisory node in the current power trading round.

[0184] In one embodiment, the power trading blockchain system includes a main chain and side chains. The main chain includes multiple virtual power plant nodes, and each virtual power plant node on the main chain corresponds to a side chain. The side chain corresponding to each virtual power plant node includes at least one power trading object node within the virtual power plant system. The update module 606 is specifically used to connect the power trading blockchain to the side chain corresponding to the virtual power plant node based on a smart contract when power trading occurs between power trading object nodes within the same virtual power plant node in the power trading blockchain system; and to connect the power trading blockchain to the main chain of the power trading blockchain system based on a smart contract when power trading occurs between power trading object nodes between different virtual power plant nodes in the power trading blockchain system.

[0185] The various modules in the node information update device for the aforementioned blockchain-based multi-virtual power plant interaction scenario can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in a computer device in hardware form, or stored in the memory of a computer device in software form, so that the processor can call and execute the operations corresponding to each module.

[0186] In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as follows: Figure 7 As shown, the computer device includes a processor, memory, and network interface connected via a system bus. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database stores node information update data in a blockchain-based multi-virtual power plant interaction scenario. The network interface communicates with external terminals via a network connection. When executed by the processor, the computer program implements a node information update method in a blockchain-based multi-virtual power plant interaction scenario.

[0187] Those skilled in the art will understand that Figure 7 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0188] In one embodiment, a computer device is provided, including a memory and a processor. The memory stores a computer program, which, when executed by the processor, causes the processor to perform the steps of the node information update method in a blockchain-based multi-virtual power plant interaction scenario described above. The steps of the node information update method in a blockchain-based multi-virtual power plant interaction scenario described above can be the steps in the node information update method in a blockchain-based multi-virtual power plant interaction scenario described above.

[0189] In one embodiment, a computer-readable storage medium is provided, storing a computer program that, when executed by a processor, causes the processor to perform the steps of the node information update method in a blockchain-based multi-virtual power plant interaction scenario described above. The steps of the node information update method in a blockchain-based multi-virtual power plant interaction scenario described above can be the steps in the node information update method in a blockchain-based multi-virtual power plant interaction scenario described above.

[0190] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, causes the processor to perform the steps of the node information update method in a blockchain-based multi-virtual power plant interaction scenario described above. The steps of the node information update method in a blockchain-based multi-virtual power plant interaction scenario described here can be the steps from the node information update method in the blockchain-based multi-virtual power plant interaction scenario described in the various embodiments above.

[0191] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties.

[0192] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to these.

[0193] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0194] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.

Claims

1. A method for updating node information in a blockchain-based multi-virtual power plant interaction scenario, characterized in that, A power trading blockchain system applied to multi-virtual power plant interaction scenarios, wherein the nodes of the power trading blockchain system include master nodes, ordinary nodes, and consensus nodes, and the method includes: The master node packages and signs the power transactions formed between the ordinary nodes in the current power trading round to obtain a power trading block; the power trading block carries the digital signature of the master node. The consensus node reaches a consensus on the digital signature of the power trading block. If the consensus node confirms that the consensus has been passed, the power trading blockchain is connected to the power trading blockchain based on a smart contract. Based on the on-chain process of the power trading block, the credit information of each node in the power trading blockchain system is updated to obtain the credit information update result of each node in the power trading blockchain system in the current power trading round; the credit information update result is used to determine the consensus node of the power trading blockchain system in the next power trading round.

2. The method according to claim 1, characterized in that, The on-chain process based on the power trading block updates the credit information of each node in the power trading blockchain system, obtaining the credit information update result of each node in the power trading blockchain system in the current power trading round, including: Based on the on-chain process of the power trading block, the credit reward information of each node in the power trading blockchain system in the current power trading round is determined; Obtain the node credit information update results of each node in the previous power trading round in the power trading blockchain system. For any node in the power trading blockchain system, determine the node's credit information update result in the current power trading round based on the credit information update results of the previous power trading round and the credit reward information of the current power trading round.

3. The method according to claim 2, characterized in that, The on-chain process based on the power trading block determines the credit reward information of each node in the power trading blockchain system for the current power trading round, including: Based on the on-chain process of the power trading block, the credit reward information corresponding to the consensus completion time of the consensus node in the current power trading round, the credit reward information corresponding to the consensus node discovering the violation of the master node, the credit reward information corresponding to the consensus node discovering the transaction violation between the ordinary nodes, and the credit penalty information for the consensus node being discovered offline by the supervised node are determined. The credit reward information of the consensus node in the current power trading round is determined based on the credit reward information corresponding to the consensus completion time of the consensus node in the current power trading round, the credit reward information corresponding to the consensus node discovering the violation of the master node, the credit reward information corresponding to the consensus node discovering the violation of the transaction between ordinary nodes, and the credit penalty information of the consensus node being found offline by the supervisory node.

4. The method according to claim 2, characterized in that, The on-chain process based on the power trading block determines the credit reward information of each node in the power trading blockchain system for the current power trading round, including: Based on the on-chain process of the power trading block, the credit reward information corresponding to the master node's signing of the power trading in the current power trading round as required, the credit reward information corresponding to the master node's production of the power trading block, and the credit reward information corresponding to the master node's discovery of transaction violations between ordinary nodes are determined. The credit reward information of the master node in the current power trading round is determined based on the credit reward information corresponding to the master node's signature of the power trading package in accordance with the requirements in the current power trading round, the credit reward information corresponding to the master node's production of the power trading block, and the credit reward information corresponding to the master node's discovery of the transaction violation between the ordinary nodes.

5. The method according to claim 2, characterized in that, The nodes of the power trading blockchain system also include supervisory nodes. The process of determining the credit reward information for each node in the power trading blockchain system in the current power trading round, based on the on-chain process of the power trading blocks, includes: Based on the on-chain process of the power trading block, the continuous credit information growth information, additional income information, proactive accountability status, and malicious behavior status of the supervisory node in the current power trading round are determined. Based on the continuous credit information growth, additional revenue information, proactive accountability, and misconduct of the monitoring node in the current power trading round, the credit reward information of the monitoring node in the current power trading round is determined.

6. The method according to claim 1, characterized in that, The power trading blockchain system includes a main chain and side chains. The main chain includes multiple virtual power plant nodes. Each virtual power plant node on the main chain corresponds to a side chain. The side chain corresponding to each virtual power plant node includes at least one power trading object node within the virtual power plant system. Connecting the power trading blockchain to the power trading blockchain based on smart contracts includes: In the case where the power transaction occurs between power transaction object nodes in the same virtual power plant node of the power transaction blockchain system, the power transaction blockchain is connected to the sidechain corresponding to the virtual power plant node based on the smart contract; In the case where the power transaction occurs between power trading object nodes between different virtual power plant nodes in the power trading blockchain system, the power trading blockchain is connected to the main chain of the power trading blockchain system based on the smart contract.

7. A node information update device for a blockchain-based multi-virtual power plant interaction scenario, characterized in that, A power trading blockchain system applied to multi-virtual power plant interaction scenarios, wherein the nodes of the power trading blockchain system include master nodes, ordinary nodes, and consensus nodes, and the device includes: The packaging module is used to package and sign the power transactions formed between the ordinary nodes in the current power trading round through the master node to obtain a power trading block; the power trading block carries the digital signature of the master node; The consensus module is used to reach consensus on the digital signature of the power trading block through the consensus node, and, if the consensus node confirms that the consensus has been passed, connect the power trading blockchain to the power trading blockchain based on a smart contract. The update module is used to update the credit information of each node in the power trading blockchain system based on the on-chain process of the power trading block, and obtain the credit information update result of each node in the power trading blockchain system in the current power trading round; the credit information update result is used to determine the consensus node of the power trading blockchain system in the next power trading round.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 6.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 6.

10. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Virtual power plant transaction block chain and credit evaluation method and consensus mechanism thereof

    CN115841382A

  • Systems and methods with integrated gaming engines and smart contracts

    US20230173395A1