A trusted power transaction clearing method and system based on cryptographic technology
Through the cuckoo hash algorithm, order-preserving encryption and digital timestamp technology, the problems of privacy of reported prices and information integrity in electricity transactions are solved, the trusted clearing of electricity transactions is achieved, and the security and stability of the market are improved.
Patent Information
- Application Number
- CN202110918384.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-08-11
- Publication Date
- 2025-10-17
- Estimated Expiration
- 2041-08-11
AI Technical Summary
In the existing power trading system, the privacy of declared prices and the integrity of declared information are insufficiently protected, which poses risks of theft of declaration strategies and information tampering, affecting the security and stability of the power trading market.
The cuckoo hash algorithm is used for identity authentication, order-preserving encryption technology is used to protect the declared price, digital timestamp technology is combined to bind the declared time and information, and hash algorithm and digital signature technology are used to ensure the integrity and authenticity of the information.
It achieves privacy protection of declared prices and integrity of declared information, ensures the security and reliability of electricity transactions, prevents information tampering, and improves the security and stability of the trading market.
Smart Images

Figure CN113570371B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of electric power bidding transaction, in particular to a trusted electric power transaction clearing method and system based on cryptographic technology. BACKGROUND
[0002] The transaction clearing realizes the supply and demand balance of the power selling side and the demand side, and is a very important link in the process of electric power centralized bidding transaction, usually involving three stages of transaction declaration, transaction matching and transaction pricing.
[0003] In the transaction declaration stage, the transaction declarer formulates a declaration strategy and submits declaration information to the transaction center, including declaration subject, declaration price, declaration time, use (supply) point period, declaration address, declaration power and other information, involving declaration price privacy problem and power buying and selling party identity verification, unique reliable declaration time, tamper-proof complete declaration information and many other security problems, and there are malicious competition phenomena such as stealing the declaration strategy (such as declaration price) of others.
[0004] In the transaction matching stage, the transaction center collects the declaration information and selects a reasonable way to match the power buying party and the power selling party. At present, the matching methods mainly formed are only based on price, based on a specific model and based on multiple factors.
[0005] In the transaction pricing stage, the purpose is to develop reasonable and flexible pricing rules to determine the final transaction price of the power buying party and the power selling party. A good pricing mechanism can promote the stable and orderly development of the power market. The price clearing mechanism actually used in the power transaction market mainly has three kinds: according to the market member's quotation, according to the marginal transaction price and according to the quotation matching method to determine the transaction price.
[0006] In summary, the current research on electric power transaction clearing focuses more on transaction matching and price clearing, and a mature research system has been formed. There is less research on the privacy of declaration price and the integrity protection of declaration information in the transaction declaration stage. However, with the further opening of the electric power transaction market, in the face of complex transaction rules and various transaction types, the security and privacy needs of the transaction subject are increasingly prominent. Therefore, realizing the trusted electric power transaction clearing is an urgent problem to be solved and researched in the electric power transaction market.
[0007] Therefore, it is urgent to improve the existing electric power transaction clearing system and method to realize the trusted clearing of electric power centralized bidding transaction and protect the privacy of declaration price and prevent the tampering of declaration information. SUMMARY
[0008] In view of the above defects, the technical problem to be solved by the present application is to provide a trusted electric power transaction clearing system and method based on cryptographic technology to solve the problem that the existing technology cannot protect the privacy of declaration price and the integrity of declaration information.
[0009] To this end, the application provides a trusted power transaction clearing method based on cryptographic technology, comprising the following steps:
[0010] The power purchasing party and the power selling party register in the transaction center respectively, and write the user id into the database;
[0011] The transaction center issues a transaction announcement and sets a transaction declaration deadline;
[0012] The power purchasing party and the power selling party respectively encrypt their respective declaration prices to generate order-preserving encryption ciphertext C through the order-preserving encryption algorithm;
[0013] The power purchasing party and the power selling party respectively generate a signature σ of their respective declaration information digest M' and declaration time t, wherein the declaration information digest M' is generated by the identity id of the declaration party, the order-preserving encryption ciphertext C, and the declaration power Q and the declaration time t;
[0014] The power purchasing party and the power selling party respectively submit their respective final declaration messages to the transaction center, wherein the final declaration message comprises: the user id, the order-preserving encryption ciphertext C, the declaration power Q, the declaration information digest M', the declaration time t, the signature σ and the public key pk;
[0015] The transaction center summarizes the declaration information, verifies the identity of the declaration party and the authenticity and reliability of the declaration information, and after verification, sorts the order-preserving encryption ciphertext C of each declaration party and matches them in a high-low matching manner;
[0016] The transaction center decrypts the order-preserving encryption ciphertext C of the declaration party, determines the transaction price, and completes the transaction clearing.
[0017] In the above method, preferably, the user id is written into the database by using the cuckoo hash algorithm, and the trusted verification of the identity of the declaration party is realized by using the cuckoo hash algorithm.
[0018] In the above method, preferably, the generation of the order-preserving encryption ciphertext C by the declaration party using the order-preserving encryption algorithm comprises the following steps:
[0019] The transaction center generates the public key pk and the private key sk for the order-preserving encryption of all declaration parties by inputting the security parameter λ;
[0020] The declaration party respectively encrypts its declaration price to generate the order-preserving encryption ciphertext C by using its own private key sk.
[0021] In the above method, preferably,
[0022] The step of generating the signature σ by the declaration party is as follows:
[0023] The declaration information digest M' is generated using a hash algorithm, and the declaration information includes: a user id of the declarer, the order-preserving encryption ciphertext C, and the declared electric quantity Q and the declaration time t;
[0024] The declaration information digest M' and the declaration time t are signed using the private key sk to generate a signature sigma.
[0025] In the above method, the order-preserving encryption ciphertext C of the declarer is decrypted using the public key pk of the declarer and the signature sigma to obtain the declaration price of the declarer.
[0026] The application also provides a trusted power transaction clearing system based on cryptographic technology, which includes a transaction center, a power buyer and a power seller, the transaction center publishes a transaction announcement and sets a transaction declaration deadline, and further includes:
[0027] A registration module is arranged in the transaction center and is used for registration of the power buyer and the power seller and writing of the user id into a database;
[0028] An order-preserving encryption algorithm module is used for the power buyer and the power seller to respectively encrypt the declaration price of each party to generate an order-preserving encryption ciphertext C through a price order-preserving encryption algorithm;
[0029] A timestamp encryption module is used for the power buyer and the power seller to respectively generate a signature sigma from the declaration information digest M' and the declaration time t of each party, wherein the declaration information digest M' is generated from the identity id of the declarer, the order-preserving encryption ciphertext C, the declared electric quantity Q and the declaration time t;
[0030] The power buyer and the power seller respectively submit the final declaration message of each party to the transaction center, and the final declaration message includes: the user id, the order-preserving encryption ciphertext C, the declared electric quantity Q, the declaration information digest M', the declaration time t, the signature sigma and the public key pk;
[0031] The transaction center collects the declaration information and verifies the identity of the declarer and the authenticity and reliability of the declaration information, and after verification, sorts the order-preserving encryption ciphertext C of each declarer and matches in a high-low matching mode;
[0032] The transaction center decrypts the order-preserving encryption ciphertext C of the declarer, determines the transaction price, and completes the transaction clearing.
[0033] As can be seen from the above technical solution, the trusted power transaction clearing system based on cryptographic technology provided by the application realizes trusted verification of the identity of the declarer in each power transaction by using the cuckoo hash algorithm, protects the declaration price by using the order-preserving encryption technology, uniquely binds the declaration time and the declaration information by using the digital timestamp technology, and realizes the integrity and authenticity of the declaration information by using the hash algorithm and the digital signature technology, thereby effectively realizing the declaration price privacy and the declaration information integrity protection. BRIEF DESCRIPTION OF DRAWINGS
[0034] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments of the present application or the prior art will be briefly introduced and explained as follows. Obviously, the drawings in the following description are only part of the embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative labor on the basis of these drawings.
[0035] Figure 1 A flow chart of a trusted power transaction clearing method based on a cryptographic technology provided by the present application is shown in the figure.
[0036] Figure 2 A schematic diagram of a trusted power transaction clearing system based on a cryptographic technology provided by the present application is shown in the figure. DETAILED DESCRIPTION
[0037] In each power transaction, the present application uses the cuckoo hash algorithm to realize the trusted verification of the identity of the declarer, uses the order-preserving encryption technology to protect the declared price, uses the digital timestamp technology to uniquely bind the declaration time and the declaration information, and uses the hash algorithm and the digital signature technology to realize the integrity and authenticity of the declaration information.
[0038] The technical solutions of the embodiments of the present application will be described clearly and completely in combination with the drawings of the embodiments of the present application. Obviously, the following described embodiments are only part of the embodiments of the present application, not all the embodiments. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without creative labor are within the scope of protection of the present application.
[0039] In order to more clearly explain and illustrate the technical solutions and implementation modes of the present application, several preferred specific embodiments for implementing the technical solutions of the present application are introduced as follows.
[0040] It should be noted that the orientation words such as "inner", "outer", "front", "rear", "left" and "right" in this paper are described based on the product use state as the reference object. Obviously, the use of corresponding orientation words does not constitute a limitation on the protection scope of the present application.
[0041] Please refer to Figure 1 , Figure 1 A flow chart of a trusted power transaction clearing method based on a cryptographic technology provided by the present application is shown in the figure.
[0042] In the following steps, the parameters and symbols used are defined as follows:
[0043] symbol meaning id User identity sk ope ]] The applicant's order-preserving encryption private key P Declared Price C Declare order-preserving encryption ciphertext Q Report information such as power consumption, address, etc. t Application Time (pk,sk) Public and private key pair signed by the applicant
[0044] Step 110, the transaction center issues a transaction announcement and sets a transaction declaration deadline.
[0045] The power purchasing party and the power selling party who want to participate in the transaction must first log in the transaction center to register, log in the transaction center to fill in the registration information, upload the registration application materials and other attachment materials, and after the transaction center accepts and approves, allocate the user id and write into the database.
[0046] In the application, the user id is inserted into the cuckoo hash table by using the cuckoo hash algorithm, and written into the database, and similarly, the cuckoo hash algorithm is also used for identity verification of the declarer.
[0047] The cuckoo hash algorithm has the advantages of small space occupation, rapid query and the like.
[0048] The cuckoo hash uses two hash tables T1 and T2, and each hash table has a capacity of r, and corresponds to two hash functions h1 and h2.
[0049] The process of inserting the user id into the database by using the cuckoo hash algorithm is as follows:
[0050] 1) The hash algorithm h1(id) and h2(id) are used to determine the positions where the user id should be inserted in the two hash tables T1 and T2;
[0051] 2) If both positions are empty, the user id is inserted into one of the positions;
[0052] 3) If only one position is empty, the user id is inserted into the position;
[0053] 4) If both positions are not empty, one of the positions is selected to kick out the existing element, and then the user id is inserted into the position, and the kicked-out element is re-inserted according to the above steps;
[0054] 5) If the number of times of kicking out the element exceeds a threshold value, it is considered that the hash table is full, and a new hash table needs to be created.
[0055] In the above steps, each user id is stored in the h1(id) position of the hash table T1 or the h2(id) position of the hash table T2, but not in both the hash table T1 and the hash table T2.
[0056] Step 120, the power purchasing party and the power selling party respectively encrypt their declared prices by using the order preserving encryption algorithm to generate ciphertext C. The power purchasing party and the power selling party are collectively referred to as the declarer.
[0057] Order-preserving encryption is an encryption technology that keeps the original order of plaintext in ciphertext, which can realize order query operation of ciphertext data while ensuring data confidentiality, and contains three algorithms of key generation, order-preserving encryption and decryption.
[0058] In the application, first, the transaction center generates the public key pk and the private key sk of the current transaction for all declarants by inputting the security parameter λ.
[0059] Then, each declarant uses the private key sk to encrypt the declared price to generate the order-preserving encryption ciphertext C.
[0060] In step 130, the declarant generates the signature σ by using the timestamp algorithm on the declaration information digest M' and the declaration time t.
[0061] The declaration information digest M' is generated by the user id, the order-preserving encryption ciphertext C, the declared power Q and the declaration time t of the declarant. The specific algorithm is as follows:
[0062] First, the hash algorithm is used to generate the declaration information digest M', and the declaration information includes the user id of the power buyer or the power seller, the order-preserving encryption ciphertext C, the declared power Q and the declaration time t.
[0063] Then, the private key sk is used to sign the declaration information digest M' and the declaration time t to generate the signature σ.
[0064] In step 140, the power buyer and the power seller submit the final declaration message to the transaction center. The final declaration message includes the user id, the order-preserving encryption ciphertext C, the declared power Q, the declaration information digest M', the declaration time t, the signature σ and the public key pk.
[0065] In step 150, after the transaction declaration stage is over, the transaction center collects the transaction declaration information submitted by the power buyer and the power seller, and verifies the identity of the power buyer and the power seller to determine whether they meet the requirements of the current transaction.
[0066] In the application, the user id of the power buyer and the power seller is used to realize the trusted verification of the identity of the declarant by using the cuckoo hash algorithm. When the output is 1, it means that the identity verification is passed, and the next step of declaration information checking can be performed; when the output is 0, it means that the identity verification is not passed, and the current transaction of the declarant is cancelled.
[0067] The process of realizing the trusted verification of the identity of the declarant by using the cuckoo hash algorithm is as follows:
[0068] First, two positions in hash tables T1 and T2 are calculated using hash algorithms h1(id) and h2(id) respectively. If the user ID is found in either position, it indicates that the user ID is a formal registered user, and output 1. If the user ID is not found in either of these two positions, it indicates that the user ID is not a formal registered user, and output 0.
[0069] Step 160: After the user identity is verified, the transaction center verifies whether the declaration time t is consistent with the declaration deadline for this transaction, and verifies the authenticity and completeness of the declared information such as the declared price and declared electricity.
[0070] Specifically, the hash algorithm is used to calculate the digest M of the applicant's identity ID, the order-preserving encrypted ciphertext C, the reported power Q, and the reported time t, and it is determined whether the calculated digest M is the same as the received digest M′; if they are not the same, it means that the reported information verification fails and the process ends; otherwise, proceed to the next step.
[0071] In step 170, the trading center calls the order-preserving encryption ciphertext sorting and matching algorithm to sort the ciphertext C of the declared price and form a match in a high-low matching manner.
[0072] 1) Through order-preserving encryption technology, the ciphertext retains the original order of the plaintext, sorting the ciphertexts of the power buyers' bids from high to low and the ciphertexts of the power sellers' bids from low to high;
[0073] 2) According to the high-low matching method, matching is formed in sequence from the lowest electricity seller's bid to the highest electricity buyer's bid. It is stipulated that the matching is valid when the difference between the seller / buyer's prices is greater than or equal to zero, until the last valid matching pair appears between the two parties.
[0074] Step 180: After the matching is complete, the trading center interacts with the successfully matched electricity buyers and sellers to obtain their order-preserving encryption private keys sk and decrypts the order-preserving encryption ciphertext C into the declared price plaintext. For unmatched bidders, the privacy of their declared prices is preserved.
[0075] After the transaction center obtains the price information from the electricity buyer and the electricity seller, it determines the transaction price. For example, it uses the average of the prices declared by both parties as the transaction price. After the successful match between the electricity buyer and the electricity seller is confirmed and the contract is signed, the transaction is cleared.
[0076] The present invention also provides an anonymous power bidding and trading system based on blockchain technology, such as Figure 2 As shown, there are three parties: a transaction center 10, a power purchaser 20, and a power seller 30. The power purchaser 20 and the power seller 30 are also called the declarants. The transaction center 10 issues a transaction announcement and sets a deadline for transaction declaration.
[0077] After the transaction center publishes the transaction announcement, the power purchasing party and the power selling party submit the transaction declaration information to the transaction center within the prescribed time, the transaction center performs unified matching, and the transaction price of the matched parties is determined, the power purchasing and selling parties sign a contract after successful matching, the transaction is completed, and the transaction is cleared.
[0078] Specifically, the transaction center 10 is provided with a user registration module, and the power purchasing party 20 and the power selling party 30 register in the transaction center 10 through the user registration module respectively, and write the user id into the database.
[0079] The power purchasing party and the power selling party respectively call the price preserving encryption algorithm module, encrypt the respective declaration price to generate the preserving encryption ciphertext C, and respectively call the timestamp encryption module to generate the signature sigma of the respective declaration information digest M' and the declaration time t, wherein the declaration information digest M' is generated by the identity id of the declaration party, the preserving encryption ciphertext C, and the declaration power Q and the declaration time t.
[0080] The power purchasing party and the power selling party respectively submit the respective final declaration message to the transaction center, and the final declaration message includes: the user id, the preserving encryption ciphertext C, the declaration power Q, the declaration information digest M', the declaration time t, the signature sigma and the public key pk.
[0081] The transaction center aggregates the declaration information, verifies the identity of the declaration party and the authenticity and reliability of the declaration information, and sorts the preserving encryption ciphertext C of each declaration party after verification, and matches in the form of high and low matching.
[0082] The transaction center decrypts the preserving encryption ciphertext C of the declaration party, determines the transaction price, and completes the transaction clearing.
[0083] In the present application, the transaction center calls the user registration algorithm once for each user registration application. In a centralized bidding transaction, the declaration party can call the price preserving encryption algorithm and the declaration information timestamp algorithm multiple times. After the declaration deadline, the transaction center only needs to call the transaction identity verification algorithm and the declaration information verification algorithm once for each declaration party, and call the price ciphertext sorting and matching algorithm once for matching. Finally, the transaction center calls the price opening algorithm multiple times according to the matching result. The present application meets the security requirements of transaction clearing, and the instantiation speed of the core algorithm is fast, which can effectively support the privacy and security protection of the declaration information in a centralized bidding transaction, and efficiently realize the matching of the transaction center to the price ciphertext, and has high practicability.
[0084] Compared with the traditional bidding transaction, the realization of the credible power transaction clearing, aiming at the existing declaration price easy to leak, the declaration information tampered and other security risks in the declaration stage of the power transaction clearing, based on the cuckoo hash algorithm, the order-preserving encryption technology, the digital timestamp technology and other cryptographic technologies, the declaration price privacy and the declaration information integrity protection are effectively realized. The experimental results show that the scheme can balance the efficiency and the security of the power transaction clearing, and realizes the safe and credible power transaction clearing.
[0085] Finally, it should also be noted that the terms "comprising", "containing" or any other variation thereof used herein are intended to cover non-exclusive inclusions, so that the process, method, article or device including a series of elements not only includes those elements, but also includes other elements not explicitly listed, or includes elements inherent to such process, method, article or device. Without more limitations, the element defined by the statement "comprising a" does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0086] The present application is not limited to the above best mode, and anyone should know that the structural changes made under the inspiration of the present application, any technical solutions with the same or similar to the present application, fall within the scope of the present application.
Claims
1. A trusted electricity transaction clearing method based on cryptographic technology, characterized in that: The following steps are involved: The electricity buyer and seller register in the transaction center respectively and Write to the database; The trading center publishes a trading announcement and sets a deadline for trading declarations; The electricity buyer and the electricity seller encrypt their respective declared prices using the price order-preserving encryption algorithm to generate order-preserving encryption ciphertext ; The electricity purchaser and the electricity seller shall respectively submit a summary of their respective declaration information and declaration time t Generate signature , the summary of the declared information By the identity of the reporting party , order-preserving encryption ciphertext And the reported power consumption Q and declaration time t generate; The electricity purchaser and the electricity seller submit their respective final declaration messages to the transaction center. The final declaration message includes: , order-preserving encrypted ciphertext , declare electricity Q , Summary of Declaration Information , declaration time t ,sign and public key ; The trading center collects the declared information and verifies the identity of the declarant and the authenticity of the declared information. After the verification is passed, the order-preserving ciphertext of each declarant is encrypted. C Sorting, matching by high and low matching; The trading center decrypts the order-preserving encrypted ciphertext of the declarant , determine the transaction price and complete the clearing of this transaction; Use Cuckoo Hash Algorithm to Write to the database and use the Cuckoo Hash algorithm to achieve trusted verification of the identity of the declarant; The declarant uses the price order-preserving encryption algorithm to generate the order-preserving encryption ciphertext The following steps are involved: The trading center enters security parameters , generate public keys for all declaring parties for order-preserving encryption of this transaction and private key sk ; The declaring parties use their own private keys sk , encrypt the declared price to generate order-preserving encrypted ciphertext ; The declarant generates a signature The steps are as follows: Generate a summary of declared information using a hash algorithm The declaration information includes: the user of the declaring party , order-preserving encryption ciphertext And the reported power consumption Q , declaration time t ; Utilizing private keys Summary of declared information and declaration time Sign and generate signature .
2. The method according to claim 1, characterized in that Using the public key of the declarant pk and signature Decrypt the order-preserving encrypted ciphertext of the applicant , and obtain the declared price of the declarant.
3. A trusted power transaction clearing system based on cryptographic technology, including a transaction center, power buyers, and power sellers. The transaction center issues transaction announcements and sets transaction declaration deadlines. The system is characterized by: Also includes: The registration module is set up in the transaction center for the registration of electricity buyers and sellers, and the user Write to the database; The order-preserving encryption algorithm module is used by the electricity buyer and the electricity seller to encrypt their respective declared prices through the price order-preserving encryption algorithm to generate order-preserving encryption ciphertext ; The timestamp encryption module is used by the electricity buyer and the electricity seller to summarize their respective declaration information. and declaration time t Generate signature , the summary of the declared information By the identity of the reporting party , order-preserving encryption ciphertext And the reported power consumption Q and declaration time t generate; The electricity purchaser and the electricity seller submit their respective final declaration messages to the transaction center. The final declaration message includes: , order-preserving encrypted ciphertext , declare electricity Q , Summary of Declaration Information , declaration time t ,sign and public key ; The trading center collects the declared information and verifies the identity of the declarant and the authenticity of the declared information. After the verification is passed, the order-preserving ciphertext of each declarant is encrypted. C Sorting, matching by high and low matching; The trading center decrypts the order-preserving encrypted ciphertext of the declarant , determine the transaction price and complete the clearing of this transaction; Use Cuckoo Hash Algorithm to Write to the database and use the Cuckoo Hash algorithm to achieve trusted verification of the identity of the declarant; the declarant uses the price order-preserving encryption algorithm to generate the order-preserving encryption ciphertext The following steps are involved: The trading center enters security parameters , generate public keys for all declaring parties for order-preserving encryption of this transaction and private key sk ; The applicants use their own private keys sk , encrypt the declared price to generate order-preserving encrypted ciphertext ; The declarant generates a signature The steps are as follows: Generate a summary of declared information using a hash algorithm The declaration information includes: the user of the declaring party , order-preserving encryption ciphertext And the reported electricity Q , declaration time t ; Utilizing private keys Summary of declared information and declaration time Sign and generate signature .
Citation Information
Patent Citations
Public key order preserving encryption scheme
CN108768639A