Power reserve market privacy protection transaction method for virtual power plant

Through PaillierTD partial homomorphic encryption algorithm and blockchain smart contract technology, the privacy data of the power backup market of virtual power plants is encrypted and verified, solving the problem of privacy data leakage in the power backup market of virtual power plants and achieving efficient privacy protection Trading ensures market security and transparency.

CN119150362APending Publication Date: 2024-12-17STATE GRID SHANGHAI ENERGY INTERCONNECTION RES INST CO LTD

Patent Information

Application Number
CN202411621302.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-14
Publication Date
2024-12-17

AI Technical Summary

Technical Problem

In the power backup market, the privacy data of virtual power plants is easily cracked when trading on the blockchain, resulting in the privacy security of market participants being threatened, and the existing technology is difficult to effectively prevent service providers caused by privacy data leakage. malicious policy behavior.

Method used

The declaration price and declaration quantity of virtual power plants are encrypted using PaillierTD partial homomorphic encryption algorithm, and the private quotation data is stored on the chain through the power data storage and computing machine, and the auxiliary nodes on the blockchain are verified and accumulated. Finally, The power dispatch control center determines the clearance price and winning bid value, and realizes privacy sorting and automatic clearance through smart contracts.

Benefits of technology

It improves the privacy and security of quantity and price information, ensures network security constraint verification of transaction results, ensures the operation safety of the distribution network and the settlement safety of service providers.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119150362A_ABST
    Figure CN119150362A_ABST
Patent Text Reader

Abstract

The invention relates to a virtual power plant-oriented power reserve market privacy protection transaction method, which comprises the following steps that: a quotation party performs integer modification on sensitive power data such as declaration price and declaration quantity in T time periods of the next day, and performs encryption protection by adopting a PaillierTD partial homomorphic encryption algorithm to obtain privacy quotation data; the power data is uploaded to a transaction block chain comprising n auxiliary nodes through the power data storage and calculation all-in-one machine for solidification, and the credible problem of the uplink data is solved from the source; the auxiliary node accumulates the privacy declaration amount data with the same time period and the same price in the privacy quotation data, and sends the accumulated privacy declaration amount data to the power dispatching control center; and the power dispatching control center obtains the sum of the electric quantity declared by each quoting party at the same time period and the same price, performs sorting according to a transaction rule, and determines the clearing price and the bid winning quantity of each time period. According to the invention, high privacy security requirements can be met.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of privacy protection of virtual power plants, and in particular to a privacy protection transaction method for a power reserve market of virtual power plants. Background Art

[0002] Under the strategic background of sustainable development, the penetration rate of renewable energy is gradually increasing, and the flexibility of the power system is decreasing. The power grid urgently needs distributed resources with sufficient peak load regulation and frequency regulation capabilities to ensure the safe and stable operation of the power system. Virtual power plants can make their internal distributed resources operate cooperatively and have no specific requirements for the geographical location and composition of distributed resources. Therefore, they have become an emerging regulation method with strong flexibility, high adaptability and good economy.

[0003] In the power reserve market, the power dispatching and control center will decide which service providers to purchase backup services from based on the backup capacity, price, and system backup requirements reported by virtual power plants and other backup service providers. As virtual power plants become more involved in the power reserve market, the need for privacy protection for multiple stakeholders becomes stronger, and it is urgent to study effective privacy protection transaction strategies for virtual power plants when participating in the market.

[0004] The existing public patent document CN117575793A discloses a distributed power trading settlement method based on blockchain technology. This method achieves partial privacy protection of the on-chain market by isolating the device parameters of the participants in their local nodes, but it can only ensure that the internal information of market participants is not on the blockchain. The bidding information must still be submitted to the blockchain to achieve transaction clearing in the on-chain power market. Once these bid price and bid quantity information are cracked by new information technology, the privacy security of market participants may still be threatened. Summary of the invention

[0005] The technical problem to be solved by the present invention is to provide a privacy-preserving transaction method for the power reserve market of virtual power plants, which can meet higher privacy and security requirements and prevent malicious policy behaviors between service providers caused by privacy data leakage.

[0006] The technical solution adopted by the present invention to solve the technical problem is: to provide a privacy protection transaction method for the power reserve market of a virtual power plant, comprising the following steps: The bidder determines the declared price and declared quantity for T time periods of the next day according to the requirements of the transaction announcement, converts the declared price and declared quantity into integers and encrypts them using the PaillierTD partially homomorphic encryption algorithm to obtain private declared data, and stores the private quotation data on the chain through the power data storage and computing integrated machine, and sends it to n auxiliary nodes on the blockchain, where n is an integer greater than 1; The auxiliary node verifies the received privacy quotation data, accumulates the privacy declared quantity data with the same time period and price in the privacy quotation data, and sends the accumulated privacy declared quantity data to the power dispatching control center at the end of the quotation time; The power dispatching and control center obtains the total amount of electricity declared by each bidder at the same time period and price from each auxiliary node, sorts them according to the trading rules, and determines the clearing price and winning bid amount for each time period.

[0007] The declared price and declared quantity are integerized and encrypted using the PaillierTD partially homomorphic encryption algorithm to obtain the privacy declared data, which specifically includes: The electricity quantity reported by the bidder P j and declared price λ j Converted into integer 2 through energy and power data storage and computing machine l P’ j and 2 l λ' j , and then use the public key pk of the PaillierTD cryptographic system to encrypt, which is specifically expressed as ‖2 l P’ j ‖=Enc(pk,2 l P’ j ) and ‖2 l P’ j ‖=Enc(pk,2 l P’ j );in, l is a constant. In the binary system, shifting one position to the left is equivalent to multiplying by 2, as long as l If the floating point number is greater than the number of digits in the mantissa, then the floating point electricity consumption and electricity cost can be converted into integers through encoding.

[0008] The private quotation data is stored on the chain through the electric power data storage and computing integrated machine and sent to n auxiliary nodes on the blockchain, specifically including: Copy the encrypted declaration data to n copies; Combine the privacy declaration amount data corresponding to each auxiliary node obtained after each encryption process to obtain n privacy quotation data corresponding to each auxiliary node; Send n copies of privacy quotation data to the corresponding auxiliary nodes.

[0009] The auxiliary node verifies the received privacy quotation data, specifically including: The bidder calculates its winning bid volume and revenue based on its actual price-volume curve and the clearing price information obtained on the chain; The bidder constructs a verification formula based on its winning bid volume and privacy benefits, and requests verification from the operator; The virtual power plant operator calculates the verification formula and returns the result, and the power generation party obtains the verification result by calculating the verification formula result.

[0010] The power dispatching and control center sorts according to the trading rules and determines the clearing price and winning bid amount for each period, including: Determine the received quotation, where the quotation includes the obfuscated price for a certain period of time and all declared electricity quantities under the obfuscated price for the period of time; In each period, the confusion prices in the quotation disk are sorted from low to high; When all quotation disks in a certain period participate in the sorting, and the sum of the reported power of all quotation disks is not greater than the regulation demand of the period, the matching sorting of the period is completed, and the reported power of all quotation disks is taken as the winning bid of the period; When the mth quotation disk participates in the sorting, and the sum of the declared electricity in the first m quotation disks is equal to the regulation demand of the period, the matching sorting of the period is completed, and the declared electricity in the first m quotation disks is taken as the winning bid quantity of the period; When the mth quotation disk participates in the sorting, the sum of the declared electricity in the first m quotation disks is greater than the regulation quantity demand for that period, and the sum of the declared electricity in the first m-1 quotation disks is less than the regulation quantity demand for that period, then the declared electricity in the mth quotation disk is sorted by credit value, and the winning bid matching order is determined according to the credit value sorting result, where m is a positive integer.

[0011] The credit value is updated in the following way: ,in, R z k For the z The bidder in k Credit value after transaction, △ R z k+ For the z The bidder in k The credit increase after the transaction is expressed as: ,△ R z k- For the z The bidder in k The credit reduction value after the transaction is expressed as: , c z k For thez The bidder in k The performance evaluation coefficient after the transaction is expressed as: ,in, For the z The bidder in k The actual execution volume in the transaction; Q z k For the z The bidder in k The winning bid amount of the transaction, z and k All are positive integers.

[0012] After the power dispatching control center announces the clearing price and the total amount of winning bids, the auxiliary node also includes the step of calling the transaction volume disclosure contract to disclose the transaction volume of each participant, specifically: The auxiliary node calls the off-chain price confusion random oracle to restore the true quotes of each participant; The auxiliary node groups the participants' private declared quantity data according to the real price, and publishes it on the chain after encrypting it with the public key of the power dispatching and control center in the order of winning the bid.

[0013] The privacy protection transaction method for the power reserve market of virtual power plants also includes: the auxiliary node calls the security verification contract to determine the feasibility of the scheme, specifically: The auxiliary node calculates the winning bids of each participant in each period Q ij The inverse element Q ij-1 , and use the homomorphic public key of the credit evaluation center P cec generate P cec ( Q ij-1 ); Assume that the proportion of the excess winning bid that should be reduced is γ , then the homomorphic public key of the pricing and settlement center is used P sc calculate P sc ( γQ ij ); Will get P cec ( Q ij-1 )and P sc ( γQ ij ) is encrypted with the public key of the power dispatching and control center and published on the chain.

[0014] The technical solution adopted by the present invention to solve its technical problem is: to provide an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above-mentioned privacy protection trading method for the power reserve market for virtual power plants when executing the computer program.

[0015] The technical solution adopted by the present invention to solve its technical problem is: providing a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the above-mentioned privacy protection trading method for the power reserve market for virtual power plants are implemented.

[0016] Beneficial Effects

[0017] Due to the adoption of the above-mentioned technical scheme, the present invention has the following advantages and positive effects compared with the prior art: the present invention adopts an electrical data storage and computing integrated machine and the PaillierTD partially homomorphic encryption algorithm to improve the privacy security of quantity and price information submitted to the blockchain, and realizes the privacy sorting and trusted automatic clearing of bidding quantities through the blockchain smart contract technology based on homomorphic encryption. By deploying a security verification contract on the blockchain, the network security constraint verification of the transaction results is realized, thereby ensuring the operation safety of the distribution network and the settlement security of the service provider. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 This is a schematic diagram of the transaction organization structure of the power reserve ancillary service market in the first embodiment of the present invention; Figure 2 It is a schematic diagram of a privacy-preserving transaction method for a power reserve market for virtual power plants according to the first embodiment of the present invention. DETAILED DESCRIPTION

[0019] The present invention will be further described below in conjunction with specific embodiments. It should be understood that these embodiments are only used to illustrate the present invention and are not intended to limit the scope of the present invention. In addition, it should be understood that after reading the content taught by the present invention, those skilled in the art can make various changes or modifications to the present invention, and these equivalent forms fall within the scope limited by the appended claims of the application equally.

[0020] The first embodiment of the present invention relates to a privacy protection transaction method for a power reserve market of a virtual power plant, which can be applied to Figure 1The power reserve auxiliary service market shown in FIG. In this implementation, virtual power plants (VPPs) and thermal power plants (TPPs) are set to participate in the day-ahead reserve market, the power dispatching and control center (PDCC) purchases reserve services, and each virtual power plant and thermal power plant provides reserve services. According to the changes in power grid load and fluctuations in power demand, the PDCC issues the time period and demand for reserve demand in the next day, and each virtual power plant and thermal power plant submits a bid based on its own adjustment capabilities; the blockchain system provides a trading platform to help both supply and demand parties match and trade. When the power grid needs to purchase reserve services, the trading platform publishes the next day's reserve demand and the upper and lower limits of the reserve service quotation to each reserve service provider. The virtual power plant and other reserve service providers quote the quantity and quotation according to the trading rules to maximize their own profits. The PDCC completes the market clearing according to market rules and clearing strategies. Each reserve service provider accepts the day-ahead reserve transaction results and executes the reserve transaction plan on the next day. The PDCC settles according to the execution effect and evaluates the reserve service effect of each entity.

[0021] In the privacy protection of standby transaction quantity and price, price privacy is time-sensitive and only needs to be protected in the current transaction, while quantity privacy needs to be permanently protected. The process of the privacy protection transaction method for the power standby market of virtual power plants in this implementation method is shown in Figure 2 .

[0022] The method of this embodiment is a set of multi-party secure computing paradigms based on blockchain, with blockchain nodes and smart contracts as auxiliary nodes to assist transaction participants in calculations and quotations. For ease of explanation, this embodiment takes four auxiliary nodes as an example, represented by NODE0, NODE1, NODE2 and NODE3 respectively.

[0023] First, in order to ensure the security of information transmission, this implementation method selects an elliptic encryption algorithm and publicizes its name (such as secp256r1, secp256k1, SM2, etc.) to ensure that all parties cooperate under the same encryption system; based on this algorithm, all parties including PDCC, auxiliary node NODE i , transaction participants, etc. all independently generate private keys and public keys and publicize their digital identities.

[0024] In addition, in order to protect the price and quantity privacy in the subsequent business of the transaction, the credit evaluation center and the pricing and settlement center of PDCC are generated by the homomorphic computing method, and the PaillierTD homomorphic encryption algorithm is used. P cec and private key S cec , public key P SC and private key S SC , the public key P cecand the public key P SC Public notice.

[0025] In this implementation mode, the bidder determines the declared price and declared quantity for T time periods of the next day according to the requirements of the transaction announcement, integerizes the declared price and declared quantity and encrypts them using the PaillierTD partially homomorphic encryption algorithm to obtain private declared data, and stores the private quotation data on the chain through the power data storage and computing integrated machine and sends it to the 4 auxiliary nodes on the blockchain.

[0026] The declared price and declared quantity are integerized and encrypted using the PaillierTD partially homomorphic encryption algorithm. Specifically: the quantity of electricity declared by the bidder P j and declared price λ j Converted into integer 2 through energy and power data storage and computing machine l P’ j and 2 l λ' j , and then use the public key pk of the PaillierTD cryptographic system to encrypt, which is specifically expressed as ‖2 l P’ j ‖=Enc(pk,2 l P’ j ) and ‖2 l P’ j ‖=Enc(pk,2 l P’ j );in, l is a constant. In the binary system, shifting one position to the left is equivalent to multiplying by 2, as long as l If the floating point number is greater than the number of digits in the mantissa, then the floating point electricity consumption and electricity cost can be converted into integers through encoding.

[0027] Among them, the privacy quotation data is stored on the chain through the power data storage and computing integrated machine and sent to n auxiliary nodes on the blockchain. Specifically, the encrypted declaration data is copied 4 times; the privacy declaration data corresponding to each auxiliary node obtained after each encryption process is combined to obtain 4 privacy quotation data corresponding to each auxiliary node; and the 4 privacy quotation data are sent to the corresponding auxiliary nodes.

[0028] In this implementation, the four private quotation data are respectively used by their corresponding auxiliary nodes NODE i The public key is encrypted and transmitted to the corresponding auxiliary node NODEi 。

[0029] Each bidder encrypts the private bid data with the public key of each auxiliary node NODE i and writes it into the blockchain. After that, the auxiliary nodes verify the private bid data according to the following rules. The specific steps are as follows: First, the bidder calculates its winning bid quantity and profit through its actual price - volume curve and the clearing electricity price obtained from the blockchain.

[0030] Next, the bidder constructs a verification formula based on its winning bid quantity and private profit and requests the operator to verify it.

[0031] After that, the virtual power plant operator calculates the verification formula and returns the result, and the power generation side obtains the verification result by calculating the verification formula result.

[0032] During the bid period of the transaction announcement, all received private bid data are counted. The private declaration quantity data with the same time period and the same price are added up to obtain the accumulated private declaration quantity data, and the credit value and bid timestamp of each bidder are recorded.

[0033] When the bid time ends, each auxiliary node sends the accumulated private declaration quantity data to the PDCC.

[0034] After the PDCC receives the accumulated private declaration quantity data sent by no less than 3 auxiliary nodes for a certain time period and a certain price, it obtains the total declared electricity quantity of each bidder at the same time period and the same price from each auxiliary node. The PDCC determines the received bid board according to the total declared electricity quantity of each bidder at the same time period and the same price. The bid board includes 2 types of information, namely: the price of a certain time period and all declared electricity quantities at the price of this time period. The PDCC sorts the prices in the bid board from low to high for each time period and determines the clearing price and winning bid quantity for each time period according to the sorting result, as follows: When all bid boards for a certain time period participate in the sorting and the sum of the declared electricity quantities of all bid boards is not greater than the regulation quantity demand for this time period, the matching sorting for this time period is completed, and the declared electricity quantities in all bid boards are used as the winning bid quantity for this time period.

[0035] When the m - th (m < N, N is the total number of bid boards for this time period) bid board participates in the sorting and the sum of the declared electricity quantities in the first m bid boards is equal to the regulation quantity demand for this time period, the matching sorting for this time period is completed, and the declared electricity quantities in the first m bid boards are used as the winning bid quantity for this time period. The declared regulation quantities in the (m + 1)-th, (m + 2)-th,..., N - th bid boards fail in the bidding for this time period.

[0036] When the mth quotation disk participates in the sorting, the sum of the declared electricity in the first m quotation disks is greater than the regulation demand of the period, and the sum of the declared electricity in the first m-1 quotation disks is less than the regulation demand of the period, then the declared electricity in the mth quotation disk is sorted by credit value, and the winning bid matching order is determined according to the credit value sorting results.

[0037] The credit ranking takes into account the historical performance of each backup service provider and determines the order of winning bids based on the credit ranking, which can motivate backup service providers to standardize their trading behaviors, maintain their own credit, and improve the transparency and fairness of the entire market. R z k The range is (0,100), the initial credit value is preset to 60. k After the transaction, if the credit value of the service provider is less than 20, the provider's trading qualification in the backup auxiliary service market will be terminated.

[0038] In this implementation, the performance evaluation coefficient is set c z k , expressed as:

[0039] In the formula, For the z The bidder in k The actual execution volume in the transaction; Q z k For the z The bidder in k The winning bid volume of the transaction; 2% is the threshold for the total transaction volume. If the relative deviation between the successful bid volume and the actual execution volume is within 2%, the performance evaluation coefficient c z k Take the maximum value of 1; otherwise, calculate the performance evaluation coefficient according to the actual relative deviation c z k If the actual relative deviation exceeds 10%, the transaction volume will be unqualified and the performance evaluation coefficient will be c z k Take the lowest value 0.

[0040] R z k For the z The bidder in k The credit value after the transaction, k After the transaction, R zk The update is:

[0041] △ R z k+ For the z The bidder in k The credit increase after the transaction is expressed as: ,△ R z k- For the z The bidder in k The credit reduction value after the transaction is expressed as: .

[0042] The electricity reported by each service provider in the mth quotation disk is sorted according to the credit value. The sorting process is as follows: If the sum of the reported electricity in the first m-1 quotation disks plus the sum of the reported electricity in the first m-1 quotation disks l -1 reported power is less than the regulation demand, and the sum of the reported power in the first m-1 quotation plates plus the sum of the reported power in the first m-1 quotation plates l If the sum of the electricity reported in the previous m-1 quotation disks is not less than the regulation demand, then the electricity reported in the previous m-1 quotation disks and the electricity reported in the previous m-1 quotation disks are l - 1 copy of declared electricity and l The bid for the other declared electricity in the mth quotation disk and the declared electricity in the m+1, m+2, ..., Nth quotation disks failed in the bidding during this period.

[0043] In the credit value sorting, if the credit values ​​are the same, the quotation timestamps will be compared, and the adjustment amount reported with an earlier quotation time will be prioritized.

[0044] In order to implement the trading rules, this implementation method also deploys a transaction clearing smart contract on the blockchain to obtain the clearing price and winning bid amount in each time period in the clearing results released by PDCC. The transaction clearing contract is implemented in the order of price first, credit value, and declaration time second. The clearing pricing mechanism adopts the marginal clearing pricing method, that is, the price is traded in order from low to high until the declared amount reaches the requirement of the spare demand, and the declared price that meets the requirements is the clearing price. Before announcing the price, the transaction contract needs to call the price confusion random oracle to obtain the confusion value in order to obtain the real price before confusion.

[0045] After PDCC announces the clearing price and the total amount of winning bids, each auxiliary node calls the transaction volume disclosure contract to reveal the transaction volume of each participant. Specifically, first, the auxiliary node calls the power data storage and computing machine to restore the real quotes of each participant. Each auxiliary node groups the participants' private declared quantity data according to the real price, and encrypts it with the public key of PDCC in the order of winning bids and publishes it on the chain. To protect the privacy of electricity, the auxiliary nodes publish it in a unified anonymous manner, hiding the credit value and declaration time. PDCC randomly splits the winning bid of each participant into 4 parts, and uses the public key of each auxiliary node to limit the reading permission. After reading, each auxiliary node restores the real name and calls the security verification contract to determine the feasibility of the solution.

[0046] This implementation method deploys a security verification contract on the blockchain to publicly verify the security of the privacy transaction plan. The verification contract needs to establish a correspondence between the transaction participants (public key addresses) and the nodes in the power grid topology map, and can obtain the maximum carrying capacity of each branch in the power grid topology. The verification contract needs to reflect the source-load power calculation relationship and power limit of each node in the power grid topology map as constraints, and publicly reflect them in the contract code in the form of an algebraic set. If the calculation result generated by the verification contract involves the private data of a participant, the reading permission is restricted by its public key address to avoid privacy leakage.

[0047] In the safety verification of this implementation, the auxiliary node calculates the winning electricity quantity of each participant in each time period. Q ij The inverse element Q ij-1 , and use the homomorphic public key of the credit evaluation center P cec generate P cec ( Q ij-1 ). Assume that the proportion of the excess winning bids to be reduced is γ , then the homomorphic public key of the pricing and settlement center is used P sc calculate P sc ( γQ ij ). The above results are all encrypted with PDCC’s public key and sent on the chain.

[0048] PDCC records the actual amount of electricity delivered by each trading party in each period, and encrypts the actual execution amount and the winning amount on the chain using the public keys of the credit evaluation center and the pricing and settlement center, respectively, and uses the identity of the trading participants, the transaction announcement and the trading period as indexes. In order to ensure that credit adjustments and billing are fair and reliable, PDCC can submit the identities of the participants to the credit center and the billing center in a way that hides the identities of the participants, and then reveal them after the latter completes the calculation. The credit evaluation center uses the RSA algorithm and the private key S cec After decryption, the ratio of the actual execution amount to the winning bid amount is obtained, and the performance evaluation coefficient is calculated according to the proposed transaction rules to adjust the credit rating of the relevant transaction parties. The pricing and settlement center uses the Paillier algorithm and private key S SC After decryption, the final settlement fees of the relevant transaction participants are obtained.

[0049] It is not difficult to find that the present invention adopts the integrated power data storage and computing machine and the PaillierTD cryptographic system to improve the privacy security of the quantity and price information submitted to the blockchain, realizes the privacy sorting and trusted automatic clearing of the bidding quantity through the blockchain smart contract technology based on homomorphic encryption, and realizes the network security constraint verification of the transaction results by deploying the security verification contract on the blockchain, thereby ensuring the operation security of the distribution network and the settlement security of the service provider.

[0050] A second embodiment of the present invention relates to an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the privacy-preserving transaction method for a power reserve market for virtual power plants of the first embodiment when executing the computer program.

[0051] The third embodiment of the present invention relates to a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the privacy-preserving transaction method for the power reserve market for virtual power plants of the first embodiment.

[0052] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) containing computer-usable program codes.

[0053] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0054] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction method, which is implemented in the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0055] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0056] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims

1. A privacy protection transaction method for power reserve market in virtual power plants, characterized in that: The following steps are involved: The bidder determines the declared price and declared quantity for T time periods of the next day according to the requirements of the transaction announcement, converts the declared price and declared quantity into integers and encrypts them using the PaillierTD partially homomorphic encryption algorithm to obtain private declared data, and stores the private quotation data on the chain through the power data storage and computing integrated machine, and sends it to n auxiliary nodes on the blockchain; The auxiliary node verifies the received privacy quotation data, and accumulates the privacy declared quantity data with the same time period and price in the verified privacy quotation data, and sends the accumulated privacy declared quantity data to the power dispatching control center at the end of the quotation time; The power dispatching and control center obtains the total amount of electricity declared by each bidder at the same time period and price from each auxiliary node, sorts them according to the trading rules, and determines the clearing price and winning bid amount for each time period.

2. The privacy protection transaction method for power reserve market for virtual power plants according to claim 1 is characterized in that: The declared price and declared quantity are integerized and encrypted using the PaillierTD partially homomorphic encryption algorithm to obtain the privacy declared data, which specifically includes: Electricity quantity reported by the bidder P j and declared price λ j Converted into integer 2 through energy and power data storage and computing machine l P’ j and 2 l λ' j , and then use the public key pk of the PaillierTD cryptographic system to encrypt, which is specifically expressed as ‖2 l P’ j ‖=Enc(pk,2 l P’ j ) and ‖2 l P’ j ‖=Enc(pk,2 l P’ j );in, l is a constant.

3. The privacy protection transaction method for power reserve market for virtual power plants according to claim 1 is characterized in that: The private quotation data is stored on the chain through the electric power data storage and computing integrated machine and sent to n auxiliary nodes on the blockchain, specifically including: Copy the encrypted declaration data to n copies; Combine the privacy declaration amount data corresponding to each auxiliary node obtained after each encryption process to obtain n privacy quotation data corresponding to each auxiliary node; Send n copies of privacy quotation data to the corresponding auxiliary nodes.

4. The privacy protection transaction method for power reserve market for virtual power plants according to claim 1 is characterized in that: The auxiliary node verifies the received privacy quotation data, specifically including: The bidder calculates its winning bid volume and revenue based on its actual price-volume curve and the clearing electricity price obtained on the chain; The bidder constructs a verification formula based on its winning bid volume and privacy benefits, and requests verification from the operator; The virtual power plant operator calculates the verification formula and returns the result, and the power generation party obtains the verification result by calculating the verification formula result.

5. The privacy protection transaction method for power reserve market for virtual power plants according to claim 1 is characterized in that: The power dispatching and control center sorts according to the trading rules and determines the clearing price and winning bid amount for each period, including: Determine the received quotation, where the quotation includes the obfuscated price for a certain period of time and all declared electricity quantities under the obfuscated price for the period of time; In each period, the confusion prices in the quotation disk are sorted from low to high; When all quotation disks in a certain period participate in the sorting, and the sum of the reported power of all quotation disks is not greater than the regulation demand of the period, the matching sorting of the period is completed, and the reported power of all quotation disks is taken as the winning bid of the period; When the mth quotation disk participates in the sorting, and the sum of the declared electricity in the first m quotation disks is equal to the regulation demand of the period, the matching sorting of the period is completed, and the declared electricity in the first m quotation disks is taken as the winning bid quantity of the period; When the mth quotation disk participates in the sorting, the sum of the declared electricity in the first m quotation disks is greater than the regulation demand of the period, and the sum of the declared electricity in the first m-1 quotation disks is less than the regulation demand of the period, then the declared electricity in the mth quotation disk is sorted by credit value, and the winning bid matching order is determined according to the credit value sorting results.

6. The privacy protection transaction method for power reserve market for virtual power plants according to claim 5 is characterized in that: The credit value is updated in the following way: , where R z k is the credit value of the zth bidder after the kth transaction, △R z k+ is the credit increase value of the z-th bidder after the k-th transaction, expressed as: , △R z k- is the credit reduction value of the z-th bidder after the k-th transaction, expressed as: , c z k is the performance evaluation coefficient of the z-th bidder after the k-th transaction, expressed as: ,in, is the actual execution amount of the zth bidder in the kth transaction; Q z k It is the winning bid amount of the zth bidder in the kth transaction.

7. The privacy protection transaction method for power reserve market for virtual power plants according to claim 1 is characterized in that: After the power dispatching control center announces the clearing price and the total amount of winning bids, the auxiliary node also includes the step of calling the transaction volume disclosure contract to disclose the transaction volume of each participant, specifically: The auxiliary node calls the off-chain price confusion random oracle to restore the true quotes of each participant; The auxiliary node groups the participants’ private declared quantity data according to the real price, and publishes it on the chain after encrypting it with the public key of the power dispatching and control center in the order of winning the bid.

8. The privacy protection transaction method for power reserve market for virtual power plants according to claim 1 is characterized in that: Also includes: The steps for the auxiliary node to call the security verification contract to determine the feasibility of the solution are as follows: The auxiliary node calculates the winning bid amount Q of each participant in each period ij The inverse element Q ij-1 , and uses the homomorphic public key P of the credit evaluation center cec Generate P cec (Q ij-1 ); Assuming that the proportion of the winning bid amount that should be reduced by the excess is γ, the homomorphic public key P of the pricing and settlement center is used sc Calculate P sc (γQ ij ); The obtained P cec (Q ij-1 ) and P sc (γQ ij ) is encrypted with the public key of the power dispatching and control center and published on the chain.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, it implements the steps of the privacy-preserving transaction method for the power reserve market for virtual power plants as described in any one of claims 1-8.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the privacy-preserving transaction method for the power reserve market for virtual power plants as described in any one of claims 1-8 are implemented.

Citation Information

Patent Citations

  • Distributed power transaction settlement method based on block chain technology

    CN117575793A

  • Demand response bidding transaction method and system based on Hash algorithm and secondary quotation

    CN113379485A

  • Distributed energy auction method and system based on block chain and privacy protection

    CN113657978A

  • Settlement method of electricity market transaction, related device and computer storage medium

    CN117391754A

Cited By

  • Internet of Things data acquisition method and device, equipment, storage medium and product

    CN120200736A