An anonymous electricity bidding trading method and system based on blockchain technology
By combining anonymous signature and decryption encryption technologies with blockchain technology, the problems of poor privacy of market participants and insufficient transaction supervision in electricity bidding transactions have been solved, achieving anonymity protection and transaction fairness, and improving transaction security and efficiency.
Patent Information
- Application Number
- CN202110919301.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-08-11
- Publication Date
- 2025-10-31
- Estimated Expiration
- 2041-08-11
Smart Images

Figure CN113570372B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of electricity bidding and trading technology, specifically to an anonymous electricity bidding and trading method and system based on blockchain technology. Background Technology
[0002] With the market-oriented reform of my country's power sector, trust issues in power trading have become increasingly prominent. Power trading mainly includes several stages: centralized bidding, rolling matching, and listing. Following the issuance of the "Notice on Conducting Pilot Projects for Market-Oriented Trading of Distributed Generation" by the National Development and Reform Commission and the National Energy Administration, and with the increasing prevalence of distributed generation, energy storage, and demand-side response technologies, the supply and demand boundaries in the power market are gradually blurring, trading products are becoming more diverse, and market participants are becoming increasingly diversified.
[0003] Traditional competitive bidding mainly includes three processes: transaction declaration, transaction clearing, and contract signing. Market participants include electricity sellers, electricity buyers, and transmission companies. Electricity sellers and buyers freely declare and confirm relevant electricity volume and price information during the trading period. Transaction clearing is carried out according to the trading rules of each province, with the dispatching agency performing security verification and generating the transaction results. In competitive bidding, market participant anonymity means that the trading center cannot verify the identity of users based on the information submitted during the declaration stage.
[0004] In distributed power trading, the geographically dispersed market participants result in significant differences in their identities and a weak foundation of trust. Traditional power trading suffers from information opacity and asymmetry, making it difficult to meet the security needs of distributed trading market participants. Furthermore, the high degree of autonomy in trading makes it susceptible to the influence of natural weather conditions, while adopting traditional centralized trading centers is costly and inefficient.
[0005] Currently, energy trading system architectures based on blockchain technology are limited to the combination of blockchain technology and distributed trading. However, in traditional blockchain systems, any data can be accessed, posing significant challenges to the privacy of market participants. Furthermore, there is a lack of effective oversight of on-chain transactions.
[0006] In view of this, there is an urgent need to improve the existing electricity bidding system and methods, taking into account both user anonymity and transaction fairness, and to introduce electricity regulatory agencies to verify the compliance and validity of transactions, so as to ensure good transaction processing efficiency under the premise of security and reliability. Summary of the Invention
[0007] To address the aforementioned shortcomings, the technical problem to be solved by this invention is to provide an anonymous electricity bidding and trading method and system based on blockchain technology, so as to solve the problems of poor identity privacy of market participants and lack of effective supervision of on-chain transactions in existing technologies.
[0008] Therefore, the present invention provides an anonymous electricity bidding method based on blockchain technology, comprising the following steps:
[0009] The power trading center publishes power trading announcements and uploads them to the blockchain;
[0010] The electricity regulatory agency generates an encryption key for each market participant to access the electricity trading announcement and distributes it to each market participant involved in the trading announcement.
[0011] Each market participant uses the aforementioned encryption key to encrypt the declaration information and upload it to the blockchain. The encrypted declaration information consists of the encrypted declaration price ciphertext, the declared electricity volume, the current time of the transaction declaration, and an anonymous signature of the above information. The encrypted declaration price ciphertext is generated by each market participant encrypting their own declaration price using the encryption key held by each market participant, and the anonymous signature is generated by each market participant using their own anonymous signature private key to encrypt the encrypted declaration price ciphertext, the declared electricity volume, and the current time of the transaction declaration.
[0012] The power trading center matches transactions based on the encrypted declaration information submitted by various market participants;
[0013] After the transaction matching results are announced, the market participants who have completed the transaction submit their respective verification tokens to the power trading center. The power trading center removes the anonymity of the corresponding anonymous signatures based on the verification tokens of each market participant, verifies the identity information of the bidders, obtains the transaction matching sequence, and requests the decryption encryption key from the power regulatory agency.
[0014] After the power regulatory agency determines that the transaction matching sequence meets the constraints for the transaction to be completed, it sends the decryption encryption key to the power trading center. The power trading center uses the decryption encryption key to decrypt the transaction matching sequence and uploads it to the blockchain.
[0015] In the above method, preferably, the power regulatory agency generates the decryption encryption key using a key based on a decryption encryption algorithm using symmetric encryption.
[0016] In the above method, preferably, the method by which the market entity generates encrypted declaration information is as follows:
[0017] The declared price is encrypted using the encryption key to generate the corresponding ciphertext;
[0018] The market participants use their respective signature private keys to generate anonymous signatures and unique corresponding verification tokens for the ciphertext, the declared electricity volume, and the current time of the transaction declaration.
[0019] The encrypted declaration information is generated by combining the encrypted text, the declared electricity volume, the current time of the transaction declaration, and the anonymous signature.
[0020] In the above method, preferably, the transaction matching method is as follows:
[0021] Using a sequence comparison algorithm for encryption, the purchase price of electricity is sorted from high to low, and the sales price of electricity is sorted from low to high.
[0022] Matching each electricity sales company with each electricity user in sequence based on the transaction volume;
[0023] After the transactions are matched, a matching sequence is obtained.
[0024] In the above method, preferably, the correctness of the public key, ciphertext and its corresponding anonymous signature is verified by a verification token.
[0025] In the above method, preferably, when the power regulatory agency receives an appeal from a subject that has not reached a transaction, it determines, based on the transaction rules, whether the priority of the subject that has not reached a transaction is higher than the priority of the subjects in the transaction matching sequence, so as to determine whether the appeal is valid.
[0026] This invention also provides an anonymous electricity bidding system based on blockchain technology, including an electricity trading center, an electricity regulatory agency, and various market participants connected to the blockchain;
[0027] The power trading center publishes power trading announcements and uploads them to the blockchain;
[0028] The electricity regulatory agency generates an encryption key for each market participant to access the electricity trading announcement and distributes it to each market participant involved in the trading announcement.
[0029] Each market participant uses the aforementioned encryption key to encrypt the declaration information and upload it to the blockchain. The encrypted declaration information consists of the encrypted declaration price ciphertext, the declared electricity volume, the current time of the transaction declaration, and an anonymous signature on the above information. The encrypted declaration price ciphertext is generated by each market participant using their own encryption key to encrypt their respective declaration price. The anonymous signature is generated by each market participant using their own anonymous signature private key to encrypt the encrypted declaration price ciphertext, the declared electricity volume, and the current time of the transaction declaration.
[0030] The power trading center matches transactions based on the encrypted declaration information submitted by various market participants;
[0031] After the transaction matching results are announced, the market participants who have completed the transaction submit their respective verification tokens to the power trading center. The power trading center removes the anonymity of the corresponding anonymous signatures based on the verification tokens of each market participant, verifies the identity information of the bidders, obtains the transaction matching sequence, and requests the decryption encryption key from the power regulatory agency.
[0032] After the power regulatory agency determines that the transaction matching sequence meets the constraints for the transaction to be completed, it sends the decryption encryption key to the power trading center. The power trading center uses the decryption encryption key to decrypt the transaction matching sequence and uploads it to the blockchain.
[0033] As can be seen from the above technical solution, the anonymous electricity bidding trading method and system based on blockchain technology provided by this invention employs anonymous signatures and decryption encryption, while introducing regulatory agencies, thus solving the problems of poor identity privacy of market participants and the lack of effective on-chain transaction supervision in existing technologies. Compared with existing technologies, this invention has the following beneficial effects:
[0034] (1) User identity is controllable and anonymous.
[0035] Before a transaction is finalized, users only provide transaction declaration information and an anonymous signature to the power exchange center. Because anonymous signatures are unforgeable, other users cannot forge them based on the user's declaration information. Furthermore, the anonymity of the signature ensures that the exchange center, regulatory agencies, and other users cannot know the user's identity unless the verification token is publicly disclosed. A user's identity can only be obtained by possessing both an anonymous signature and a verification token. Due to the unforgeability of anonymous signatures, only users with the signing private key can generate valid anonymous signatures.
[0036] (2) Confidentiality of transaction data
[0037] During the bidding phase, all bids submitted by users are encrypted using a secret encryption key, preventing attackers from obtaining the true price from the ciphertext and effectively protecting the security of bidding information.
[0038] (3) Fairness of transactions
[0039] Transaction announcements, declaration data, and transaction results are all uploaded to the blockchain. All nodes in the blockchain network have the right to access and monitor the behavior of the power trading center and other market participants. Meanwhile, the power regulatory agency is responsible for reviewing the compliance and validity of the transaction results. If the transaction clearing process does not follow the trading principles, users can file an appeal with the power regulatory agency; if the transaction matching result violates the trading constraints, the trading center cannot generate an electronic contract. Therefore, this algorithm maintains the fairness of the transaction as much as possible. Attached Figure Description
[0040] To more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the accompanying drawings used in the description of the embodiments of the present invention or the prior art will be briefly introduced and explained below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0041] Figure 1 A flowchart of an anonymous electricity bidding method based on blockchain technology provided by this invention;
[0042] Figure 2 A schematic diagram of an anonymous electricity bidding system based on blockchain technology provided by the present invention. Detailed Implementation
[0043] This invention effectively protects the confidentiality of transaction bid prices through decryption encryption technology; prevents the leakage of identity information of market participants who fail to complete a transaction by combining anonymous signature technology; introduces power regulatory agencies to conduct real-time transaction audits and maintain order in the power trading market; and, based on blockchain technology, protects transaction results from malicious tampering and improves transaction reliability.
[0044] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the embodiments described below are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0045] To provide a clearer explanation and description of the technical solution and implementation of the present invention, several preferred specific embodiments for implementing the technical solution of the present invention are described below.
[0046] It should be noted that the directional terms such as "inner" and "outer", "front" and "back" and "left" and "right" in this article are based on the product's usage status. Obviously, the use of these directional terms does not limit the scope of protection of this solution.
[0047] In this invention, the auction transaction is divided into 5 stages: system initialization, transaction application, transaction matching, transaction supervision, and transaction completion.
[0048] First, the power center issues a transaction announcement, specifying the transaction period and the scope of market participants.
[0049] Second, each market participant publishes its transaction demand, including the bid price and electricity volume, within the specified time period. At this time, the trading center cannot know the identity of the bidder.
[0050] Third, the trading center matches transactions according to the trading rules, and the identities and bids of each market participant are kept confidential.
[0051] Fourth, after the trading center publishes the trading results, market participants can file appeals and request the power regulatory agency to audit the compliance of the trading. In addition, the power regulatory agency can also verify the validity of the trading based on the constraints of the trading rules and the identity verification of market participants after the transaction is made public.
[0052] Finally, the trading center obtains the encryption key from the power regulatory agency, calculates the transaction price, generates an electronic contract, and completes the transaction.
[0053] Please see Figure 1 , Figure 1 A flowchart of an anonymous electricity bidding method based on blockchain technology provided by this invention includes the following steps:
[0054] The parameters and symbols used in the following steps are defined as follows:
[0055]
[0056]
[0057] Step 110: The power trading center publishes a transaction announcement containing information such as transaction type, transaction period, scope of market participants, and transaction matching rules, and uploads the transaction announcement to the blockchain.
[0058] Step 120: The electricity regulatory agency generates an order revealing encryption key k for each market participant to perform order revealing encryption in relation to the transaction announcement, and distributes the order revealing encryption key k to each market participant involved in the transaction announcement. Each market participant is one or more electricity retailers and one or more electricity customers.
[0059] The present invention uses a key generation algorithm based on symmetric encryption and de-order encryption to generate the de-order encryption key k.
[0060] Step 130: Each market participant uses the encryption key k to encrypt the transaction declaration information, generate encrypted declaration information, submits it to the power trading center, and uploads it to the blockchain.
[0061] The encrypted bid information consists of the encrypted bid price, the bid volume, the current time of the bid, and an anonymous signature of the above information. The encrypted bid price is generated by each market participant encrypting their bid price using their own decryption key. The anonymous signature is generated by each market participant using their own anonymous signature private key to encrypt the encrypted bid price, bid volume, and current time of the bid. During the trading session, market participants can freely submit bids, with the last bid information serving as the final bid.
[0062] In this process, the electricity sales company uses the encryption key k provided by the power regulatory agency to encrypt the electricity sales price using the encryption algorithm to generate an encrypted declared price ciphertext. Then, it uses its own anonymous signature private key to generate an anonymous signature for the encrypted declared price ciphertext, the declared electricity volume, and the current time of the transaction declaration. Finally, it combines the encrypted declared price ciphertext, the declared electricity volume, the current time of the transaction declaration, and the anonymous signature on the above information into encrypted declaration information and submits it to the trading center.
[0063] Electricity customers use the encryption key k provided by the electricity regulatory agency to encrypt the electricity purchase price using the encryption algorithm. They then use their own anonymous signature private key to generate an anonymous signature and verification token for the encrypted price, the declared electricity volume, and the current time of the transaction. Finally, they combine the encrypted price, the declared electricity volume, the current time of the transaction, and the anonymous signature of the above information into an encrypted declaration information and submit it to the trading center.
[0064] During the transaction declaration process, each market participant uses a decryption encryption algorithm to protect the confidentiality of the declared price, thereby ensuring the openness and transparency of the trading market while maintaining fairness in the bidding process. To ensure the anonymity of market participants, only the anonymous signatures of the declared electricity price and electricity volume are disclosed, and the verification tokens of each market participant are kept by themselves.
[0065] The encrypted declaration information is uploaded to the blockchain and serves as the basis for the power regulatory agency to audit the trading center's actions.
[0066] Taking an electricity sales company as an example, the specific process for submitting an electricity transaction application is as follows:
[0067] The first step involves generating the market entity's own verification public key pk and signing private key sk using algorithms such as RSA. The verification public key pk is published and used for signature verification; the signing private key sk is used to generate the entity's own anonymous signature σ and verification token τ.
[0068] The second step is to use the key k provided by the power regulatory agency to encrypt the electricity sales price p declared by oneself using the decryption encryption algorithm, and generate the encrypted declared price ciphertext c.
[0069] The third step involves using one's own signature private key sk and employing an anonymous signature algorithm to generate an anonymous signature σ and a unique corresponding verification token τ from the encrypted price declaration ciphertext c, the electricity sales volume Q, and the current transaction declaration time t.
[0070] The fourth step is to combine the ciphertext c, the electricity sales volume Q, the current time t of the transaction declaration, and the anonymous signature σ to form the encrypted declaration information Ts, and then upload it to the blockchain.
[0071] Anonymous signatures have the following three characteristics:
[0072] (1) Unforgeability: No one other than the signer can forge a legitimate anonymous signature.
[0073] (2) Anonymity: Without a verification token, it is impossible to confirm the signer's identity based on the data and signature.
[0074] (3) Unforgeability: Even if someone has the message and the signature, no one other than the signer can generate a valid verification token.
[0075] Step 140: The power trading center matches the encrypted declaration information submitted by each market participant within the declaration period specified in the transaction announcement according to the transaction matching algorithm, i.e., transaction clearing.
[0076] The transaction matching algorithm is based on the principle of "price priority, time priority" and is adjusted according to the specific rules of the exchange in the region.
[0077] The aforementioned transaction matching algorithm utilizes the characteristic of the sequential comparison algorithm of the decryption encryption that it supports the comparison of the size of the ciphertext. The power trading center can obtain the size relationship of the declared prices without decryption, and the power trading center cannot obtain the identity information of the market participants before the transaction is completed.
[0078] Examples of transaction matching algorithms are as follows:
[0079] The sequence of transaction declaration information reported by the electricity sales company is as follows: The encrypted electricity price is c0.
[0080] The sequence of transaction declaration information reported by electricity customers is as follows: The encrypted electricity purchase price is c1.
[0081] First, the order comparison algorithm comp(c0, c1) in the decryption algorithm is used to sort the electricity purchase price from high to low. Similarly, the order comparison algorithm comp(c0, c1) is used to sort the electricity sales price from low to high.
[0082] The sequential comparison algorithm comp(c0, c1) takes two ciphertexts c0 and c1 as input and outputs "<" or "≥" based on the comparison result of the two ciphertexts c0 and c1.
[0083] Secondly, transactions are matched according to the region's trading rules. Each matching tuple is... That is, matching the i-th electricity sales company with the j-th electricity user, with a transaction volume of Q. deal .
[0084] After transaction matching, v matching tuples are obtained, i.e., the matching sequence TM = [Q deal1 Q deal2 Q dealv].
[0085] Step 150: The transaction center publishes the transaction matching results and uploads them to the blockchain.
[0086] Optionally, only when an entity that failed to reach a deal files an appeal will the power regulatory agency run a transaction matching compliance verification algorithm. Based on the transaction rules, the algorithm will determine whether the priority of the entity that failed to reach a deal is higher than the priority of entities in the transaction matching sequence to determine the validity of the appeal. If the appeal is valid, the transaction will be suspended; if the appeal is invalid, the next step will be executed.
[0087] Step 160: The market participants who have reached a transaction submit their respective verification tokens τ to the power trading center.
[0088] Step 170: The power trading center uses the verification tokens τ submitted by each market participant to remove the anonymity of the anonymous signature, and obtains the transaction matching sequence of each market participant after removing the anonymity (after removing the anonymity, the anonymous signature becomes a public verifiable ordinary digital signature), and requests the key for decryption encryption from the power regulatory agency.
[0089] By verifying the public key, ciphertext, and their corresponding anonymous signature using a verification token, the uniqueness of the signer and the non-repudiation of all information can be verified.
[0090] Step 180: The power regulatory agency verifies whether the transaction matching sequence meets the constraints for the transaction to be completed, including whether the verification token of the market participant is consistent with the anonymous signature, that the purchase price of electricity should not be lower than the sales price of electricity, and that the transaction volume should not exceed the smaller value of the declared volume. If the transaction is verified to be valid, proceed to step 190; otherwise, the transaction is terminated.
[0091] During verification, input the verification public key pk, the ciphertext c, its corresponding anonymous signature σ, and the verification token τ. If the signature verification is valid, output 1; otherwise, output 0.
[0092] Step 190: The power regulatory agency sends the decryption encryption key to the power trading center and uploads the deanonymized transaction matching sequence to the blockchain.
[0093] In step 200, the power trading center runs an electronic contract generation algorithm, calculates the transaction price based on factors such as grid access fees and specific trading rules, and the power sales company and the power customer formally enter into a transaction. The electronic contract is then uploaded to the blockchain as proof of transaction settlement.
[0094] This invention also provides an anonymous electricity bidding system based on blockchain technology, such as... Figure 2As shown, it mainly includes a power regulatory agency 10 connected to the blockchain, a power trading center 20, a power sales company 31, and power customers 32, where the power sales company and power customers can be collectively referred to as market entities.
[0095] The electricity regulatory agency is responsible for maintaining the rationality, compliance and fairness of electricity transactions, specifically including the distribution of encryption keys for the ordering of transactions and the auditing of transaction results. The regulatory targets include electricity trading centers and electricity market participants.
[0096] The power trading center is responsible for the orderly organization of transactions, including the construction, management and maintenance of the power trading platform, the management and release of transaction information, and power transaction clearing.
[0097] Electricity sales companies are 31 market participants in the electricity trading market, responsible for submitting electricity sales information, including the amount of electricity sold and the electricity price.
[0098] The 32 electricity customers are market participants in the electricity trading market and are responsible for submitting electricity purchase information, including the amount of electricity purchased and the purchase price.
[0099] Specifically, the power trading center issued a power trading announcement on the 20th and uploaded it to the blockchain;
[0100] The electricity regulatory agency 10 generates an encryption key for each market participant to access the electricity transaction announcement and distributes it to each market participant involved in the transaction announcement.
[0101] Each market participant uses its own encryption key to encrypt the declaration information and upload it to the blockchain. The encrypted declaration information consists of the encrypted declaration price ciphertext, the declared electricity volume, the current time of the transaction declaration, and an anonymous signature of the above information. The encrypted declaration price ciphertext is generated by each market participant using its own encryption key to encrypt its own declaration price. The anonymous signature is generated by each market participant using its own anonymous signature private key to encrypt the encrypted declaration price ciphertext, the declared electricity volume, and the current time of the transaction declaration.
[0102] The power trading center matches transactions based on the encrypted declaration information submitted by each market participant.
[0103] After the transaction matching results are announced, the market participants who have completed the transaction submit their respective verification tokens to the power trading center. The power trading center removes the corresponding anonymous signatures based on the verification tokens of each market participant to obtain the transaction matching sequence, and requests the decryption encryption key from the power regulatory agency.
[0104] After determining that the transaction matching sequence meets the constraints for the transaction to be completed, the power regulatory agency 10 sends the decryption encryption key to the power trading center. The power trading center uses the decryption encryption key to decrypt the transaction matching sequence and uploads it to the blockchain.
[0105] Experimental verification.
[0106] To verify the feasibility and effectiveness of the method of this invention, a private blockchain was built on the Ethereum platform, deploying three blockchain nodes in the cloud. Interface calls were made from the local computer to the blockchain to simulate an electricity trading platform for competitive bidding. The local experimental environment consisted of an Intel(R) Core(TM) i7-8565U CPU@1.80GHz and a network bandwidth of 100Mbps. The electricity trading system included one electricity trading center, one electricity regulatory agency, three electricity sales companies, and three electricity customers. The electricity application period was from 9:00 to 16:00. To simplify the trading process, this experiment did not consider grid access fees, and the final transaction price was the average of the electricity sales price and the electricity purchase price.
[0107] 1. Transaction process
[0108] During the aforementioned reporting period, market participants submit multiple reports, and the reported information is uploaded to the blockchain. The final transaction report content is shown in Table 1 below, where the reported price is encrypted using a sequence-based encryption algorithm.
[0109] Table 1 Transaction Declaration Information
[0110]
[0111]
[0112] Each market participant generates an anonymous signature and token using their private key. The anonymous signature uses an instantiation scheme based on Boneh-Boyen short signatures. The transaction declaration information and its anonymous signature are uploaded to the blockchain via the on-chain interface, returning a verification token to facilitate verification of the completeness and consistency of the declaration information. The time taken to upload the verification token and declaration information to the blockchain is shown in Table 2.
[0113] Table 2:
[0114]
[0115] 2. Transaction Results
[0116] The power trading center matches the application information of power sales companies and power customers, and the transaction matching results are uploaded to the blockchain, as shown in Table 3.
[0117]
[0118]
[0119] After the power regulatory agency audited and approved the transaction results, the power trading center decrypted the declared prices and drafted electronic contracts. The final transaction price for Transaction 1 was RMB 0.644 / kWh, and the transaction price for Transaction 2 was RMB 0.622 / kWh. The resulting electronic contracts were stored on the blockchain in PDF format, as shown in Table 4.
[0120]
[0121] The simulation experiments demonstrated by the present invention show that the efficiency of electricity trading is not significantly reduced compared to traditional competitive bidding, with both the on-chain data upload and query times for transaction declarations within 1 second. Simultaneously, it significantly improves security performance. After encrypting the declared price data, specific price information cannot be obtained, and the encrypted data can be compared sequentially. Furthermore, with only anonymous signatures provided, the association between the signature and the user cannot be verified. Moreover, the blockchain network and regulatory agencies provide a fair and trustworthy trading environment, regulate the behavior of market participants and trading centers, and promote the healthy development of the electricity market.
[0122] In summary, compared with traditional auction trading, this invention supports user anonymity protection and fair and verifiable transaction results. While fully leveraging user autonomy, it organizes transactions with a trading center as a weak central authority, and incorporates regulatory agencies to audit the transactions. It is widely compatible with auction trading models while ensuring both efficiency and security.
[0123] Finally, it should be noted that the terms "comprising," "including," or any other variations thereof as used herein are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising a…" does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0124] This invention is not limited to the above-described preferred embodiments. Anyone should know that any structural changes made under the guidance of this invention, and any technical solutions that are the same as or similar to this invention, fall within the protection scope of this invention.
Claims
1. A method for anonymous electricity bidding based on blockchain technology, characterized in that, Includes the following steps: The power trading center publishes power trading announcements and uploads them to the blockchain; The electricity regulatory agency generates an encryption key for each market participant to access the electricity trading announcement and distributes it to each market participant involved in the trading announcement. Each market participant uses the aforementioned encryption key to encrypt the declaration information and upload it to the blockchain. The encrypted declaration information consists of the encrypted declaration price ciphertext, the declared electricity volume, the current time of the transaction declaration, and an anonymous signature of the above information. The encrypted declaration price ciphertext is generated by each market participant encrypting their own declaration price using the encryption key held by each market participant, and the anonymous signature is generated by each market participant using their own anonymous signature private key to encrypt the encrypted declaration price ciphertext, the declared electricity volume, and the current time of the transaction declaration. The power trading center matches transactions based on the encrypted declaration information submitted by various market participants; After the transaction matching results are announced, the market participants who have completed the transaction submit their respective verification tokens to the power trading center. The power trading center removes the anonymity of the corresponding anonymous signatures based on the verification tokens of each market participant, verifies the identity information of the bidders, obtains the transaction matching sequence, and requests the decryption encryption key from the power regulatory agency. After the power regulatory agency determines that the transaction matching sequence meets the constraints for the transaction to be completed, it sends the decryption encryption key to the power trading center. The power trading center uses the decryption encryption key to decrypt the transaction matching sequence and uploads it to the blockchain. The method by which market entities generate encrypted declaration information is as follows: The declared price is encrypted using the encryption key to generate the corresponding ciphertext; The market participants use their respective signature private keys to generate anonymous signatures and unique corresponding verification tokens for the ciphertext, declared electricity volume, and current time of the transaction declaration. The verification tokens are used to verify the correctness of the public key, ciphertext, and their corresponding anonymous signatures. The encrypted declaration information is generated by combining the encrypted text, the declared electricity volume, the current time of the transaction declaration, and the anonymous signature.
2. The method according to claim 1, characterized in that, The power regulatory agency generates the decryption encryption key using a key generation algorithm based on symmetric encryption and decryption encryption.
3. The method according to claim 1, characterized in that, The transaction matching method is as follows: Using a sequential comparison algorithm with decryption encryption, the purchase price of electricity is sorted from high to low, and the sales price of electricity is sorted from low to high. Matching each electricity sales company with each electricity user in sequence based on the transaction volume; After the transactions are matched, a matching sequence is obtained.
4. The method according to claim 1, characterized in that, When the power regulatory agency receives an appeal from a party that has not reached a deal, it will determine the validity of the appeal based on the trading rules, specifically whether the priority of the party that failed to reach a deal is higher than the priority of the parties in the trading matching sequence.
5. An anonymous electricity bidding system based on blockchain technology, characterized in that, This includes electricity trading centers, electricity regulatory agencies, and various market participants connected to the blockchain; The power trading center publishes power trading announcements and uploads them to the blockchain; The electricity regulatory agency generates an encryption key for each market participant to access the electricity trading announcement and distributes it to each market participant involved in the trading announcement. Each market participant uses the aforementioned encryption key to encrypt the declaration information and upload it to the blockchain. The encrypted declaration information consists of the encrypted declaration price ciphertext, the declared electricity volume, the current time of the transaction declaration, and an anonymous signature of the above information. The encrypted declaration price ciphertext is generated by each market participant encrypting their own declaration price using the encryption key held by each market participant. The anonymous signature is generated by each market participant using their own anonymous signature private key to encrypt the encrypted declaration price ciphertext, the declared electricity volume, and the current time of the transaction declaration. The power trading center matches transactions based on the encrypted declaration information submitted by various market participants; After the transaction matching results are announced, the market participants who have completed the transaction submit their respective verification tokens to the power trading center. The power trading center removes the anonymity of the corresponding anonymous signatures based on the verification tokens of each market participant, verifies the identity information of the bidders, obtains the transaction matching sequence, and requests the decryption encryption key from the power regulatory agency. After the power regulatory agency determines that the transaction matching sequence meets the constraints for the transaction to be completed, it sends the decryption encryption key to the power trading center. The power trading center uses the decryption encryption key to decrypt the transaction matching sequence and uploads it to the blockchain. The method by which market entities generate encrypted declaration information is as follows: The declared price is encrypted using the encryption key to generate the corresponding ciphertext; The market participants use their respective signature private keys to generate anonymous signatures and unique corresponding verification tokens for the ciphertext, declared electricity volume, and current time of the transaction declaration. The verification tokens are used to verify the correctness of the public key, ciphertext, and their corresponding anonymous signatures. The encrypted declaration information is generated by combining the encrypted text, the declared electricity volume, the current time of the transaction declaration, and the anonymous signature.
Citation Information
Patent Citations
Supervised anonymous transaction system based on block chain
CN112435020A