Electricity energy trading method based on blockchain

Through smart contracts and algorithms, the buyer and the seller automatically match the buyer and the seller on the blockchain platform, and conduct a comprehensive evaluation, solve the lack of credit assessment and data security issues, improve the transparency and security of the transaction, enhance the trust and trust of the buyer and Satisfaction.

CN118822735BInactive Publication Date: 2025-01-24崔著虎 +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411277641.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-09-12
Publication Date
2025-01-24
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The existing blockchain-based power energy trading methods lack an effective credit assessment system, which makes it difficult for buyers to trust sellers, and transaction data storage and transmission are vulnerable to unauthorized access and data breaches.

Method used

Through intelligent contracts and algorithms, automatically match the buyer and eligible sellers, and comprehensively evaluate the price, integrity and power generation stability of the seller, and generate a comprehensive assessment index. At the same time, the transaction records and processes are encrypted and stored on the blockchain platform.

Benefits of technology

It realizes multi-dimensional evaluation of sellers, helps buyers choose the best seller, improves the transparency and security of transactions, and enhances buyer's trust and satisfaction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118822735B_ABST
    Figure CN118822735B_ABST
Patent Text Reader

Abstract

The present invention discloses a blockchain-based electric energy trading method. The present invention requires a buyer to submit a transaction request on a blockchain platform, and automatically searches for multiple groups of sellers that meet the conditions on the blockchain platform according to the buyer's request, conducts in-depth analysis on each group of sellers that meet the conditions, and conducts a comprehensive evaluation based on the price, integrity, and power generation stability of each group of sellers, thereby obtaining the price advantage index, integrity advantage index, and power generation fluctuation coefficient of each group of sellers. Further, based on the price advantage index, integrity advantage index, and power generation fluctuation coefficient of each group of sellers, a comprehensive analysis is conducted to obtain the comprehensive evaluation index of each group of sellers, thereby comprehensively evaluating the advantages of each group of sellers, helping buyers to select the best sellers for transactions, and improving buyers' trust and satisfaction with the platform.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of electric energy trading, and in particular to an electric energy trading method based on blockchain. Background Art

[0002] With the rise of blockchain technology, its characteristics of decentralization, data immutability, transparency and traceability have brought new solutions to power energy trading; blockchain technology can provide a safe and reliable trading platform, allowing both parties to trade in a trusted environment while ensuring the security and transparency of transaction records.

[0003] However, the existing blockchain-based power energy trading methods still have the following shortcomings:

[0004] The lack of an effective credit evaluation system makes it difficult for buyers and platforms to establish trust. It is impossible to match qualified sellers according to buyers' transaction requests, and to conduct a comprehensive evaluation of the prices, transaction records, and power generation data of each group of sellers to help buyers select the best sellers and establish transactions. Often, only the electricity price proposed by the seller is considered, and the evaluation is relatively simple.

[0005] At the same time, the use of traditional encryption methods will make transaction data vulnerable to unauthorized access and data leakage during storage and transmission, causing concerns about privacy and property security for market participants.

[0006] To this end, a blockchain-based power energy trading system is proposed. Summary of the invention

[0007] In view of this, the present invention provides a blockchain-based electric energy trading method to solve the problems raised by the above-mentioned background technology.

[0008] The purpose of the present invention can be achieved through the following technical solutions: A blockchain-based electric energy trading method, comprising:

[0009] Supply and demand matching: The buyer submits a transaction request on the blockchain platform through the user interface, and the transaction request submitted by the buyer is encrypted and converted into a format recognizable by the smart contract. The converted transaction request is then broadcast to the blockchain platform. The smart contract automatically searches for multiple groups of sellers that meet the conditions on the blockchain platform according to the buyer's request, and numbers each group of sellers. The number is represented by i, where i=1,2...k, and k is the total number of sellers that meet the conditions.

[0010] Seller evaluation: conduct an in-depth analysis of the evaluation parameters of each group of sellers that meet the conditions, thereby obtaining the comprehensive evaluation index Zqei of each group of sellers at the current time point; the evaluation parameters include price parameters, historical transaction records, historical buyer evaluations, and historical power generation data;

[0011] Select transaction: The smart contract selects the seller with the highest comprehensive evaluation index Zqei as the counterparty based on the comprehensive evaluation index Zqei of each group of sellers;

[0012] Automatic execution: Once the selection is made, the smart contract automatically executes the terms of the transaction, including power transfer and fund settlement;

[0013] Data storage: Transaction records and related processes during the transaction are permanently stored on the blockchain platform and encrypted.

[0014] In some embodiments, the price parameters of each group of sellers are analyzed in depth, specifically:

[0015] Extract the electricity price information provided by each group of sellers from the blockchain platform, compare the electricity price information provided by each group of sellers with the price range expected by the buyer, extract the lowest expected price from the price range expected by the buyer, and calculate the difference with the electricity price provided by each group of sellers, so as to obtain the degree of concession that each group of sellers can satisfy the buyer;

[0016] Preset the range of values ​​for each group of price concession degree, set each group of value ranges to correspond to a price advantage index, match the price concession degree values ​​of each group of sellers with the preset range of values ​​for each group, and thus obtain the price advantage index Gai of each group of sellers.

[0017] In some embodiments, the historical transaction records of each group of sellers are analyzed in depth, specifically:

[0018] Extract the historical transaction records and historical buyer evaluations of each group of sellers from the blockchain platform, extract the transaction times and default times of each group of sellers from the historical transaction records of each group of sellers, and analyze the reasons for the default times of each group of sellers;

[0019] Classify the number of defaults of each group of sellers according to the default reasons, and set a default score for each default reason;

[0020] The default times of each group of sellers are converted into default points according to the default reasons, so as to obtain the default points of each group of sellers, and the default points of each group of sellers are accumulated respectively, so as to obtain the default assessment value Ei of each group of sellers;

[0021] At the same time, the transaction times of each group of sellers are converted into transaction evaluation values, and a value range of the transaction times of each group is preset, and each transaction time range is set to correspond to a transaction evaluation value; the transaction times of each group of sellers are matched with the preset value range of the transaction times of each group, so as to obtain the transaction evaluation value Qi corresponding to each group of sellers.

[0022] The more transactions a seller has, the higher the seller's cooperation frequency and qualifications on the blockchain platform, and the greater the corresponding matching transaction evaluation value.

[0023] In some embodiments, an in-depth analysis is performed on the historical buyer evaluations of each group of sellers, specifically:

[0024] Extract the scores of each group of buyers from the historical buyer evaluations of each group of sellers on the blockchain platform; divide the buyer scores of each group of sellers into time periods based on the current time point, and divide them into historical time periods and recent time periods;

[0025] The average of the buyer ratings of each group in the historical time period is calculated to obtain the historical average rating; the average of the buyer ratings of each group in the recent time period is calculated to obtain the recent average rating; the weight coefficients of the historical average rating and the recent average rating are preset respectively, and the historical average rating and the recent average rating of each group of sellers are multiplied by the corresponding preset weight coefficients, and then the sum is obtained to obtain the word-of-mouth evaluation value Yi of each group of sellers.

[0026] The scores for the historical and recent time periods are weighted, with the weight coefficient corresponding to the recent time period being greater than that for the historical time period, to reflect that recent performance has a greater impact on the selection of sellers.

[0027] In some embodiments, a comprehensive evaluation is performed on the historical transaction records and historical buyer evaluation analysis results of each group of sellers, specifically:

[0028] Extract the default assessment value Ei, transaction assessment value Qi and reputation assessment value Yi of each group of sellers and substitute them into the formula , and weighted calculation is performed to obtain the integrity advantage index Gbi of each group of sellers; among them, u1, u2 and u3 are the influencing weight factors of the default assessment value Ei, the transaction assessment value Qi and the reputation assessment value Yi respectively.

[0029] In some embodiments, the historical power generation data of each group of sellers is analyzed in depth, specifically:

[0030] The historical power generation data of each group of sellers is obtained from the blockchain platform, and the power generation of each group of sellers at each time point within the set time period is extracted from the historical power generation data of each group of sellers. The power generation at each time point within the set time period is calculated using the standard deviation formula, thereby obtaining the power generation fluctuation coefficient Gci of each group of sellers within the set time period.

[0031] In some embodiments, the comprehensive evaluation index Zqei of each group of sellers at the current time point is obtained, specifically:

[0032] The preset price advantage index Gai, integrity advantage index Gbi and power generation fluctuation coefficient Gci correspond to the price reference index, integrity passing index and power generation threshold coefficient respectively, and are marked as Tai, Tbi and Tci respectively;

[0033] Extract the price advantage index Gai, integrity advantage index Gbi and power generation fluctuation coefficient Gci of each group of sellers and substitute them into the formula Perform weighted calculation to obtain the comprehensive evaluation index Zqei of each group of sellers; , as well as They are the influencing weight factors corresponding to the price advantage index Gai, the integrity advantage index Gbi and the power generation fluctuation coefficient Gci.

[0034] In summary, through automated smart contracts and algorithms, buyers can be quickly matched with multiple groups of sellers that meet the transaction conditions, and further comprehensive evaluations are conducted on the price, integrity, and power generation stability of each group of sellers. The price advantage index Gai, integrity advantage index Gbi, and power generation fluctuation coefficient Gci of each group of sellers are obtained, thereby comprehensively evaluating the advantages of each group of sellers, helping buyers choose the best sellers for transactions, and improving buyers' experience and satisfaction.

[0035] In some embodiments, the transaction records and related processes during the transaction are permanently stored on the blockchain platform and encrypted. The specific process of the encryption process is:

[0036] Extract the transaction contract code generated during the transaction between the two parties. The code consists of letters, numbers and symbols;

[0037] Based on the preset conversion rules, the letters and symbols in the transaction contract code are converted into numbers, and different symbols and letters are set to correspond to a set of numbers respectively;

[0038] Accumulate the groups of numbers converted from the letters in the transaction contract code, and record the accumulated value as the accumulated value;

[0039] Accumulate each group of numbers converted from the symbols in the transaction contract code, and record the accumulated value as the accumulated binary value;

[0040] The original numbers in the transaction contract code are accumulated, and the accumulated value is recorded as the accumulated triple value;

[0041] Set the encryption formulas corresponding to the accumulated value one, accumulated value two and accumulated value three, and substitute the accumulated value one, accumulated value two and accumulated value three in the current transaction process into the corresponding set encryption formulas for calculation;

[0042] After the calculation is completed, the result of the accumulated value one is used as the length value of the three-dimensional rectangle, the result of the accumulated value two is used as the width value of the three-dimensional rectangle, and the result of the accumulated value three is used as the height value of the three-dimensional rectangle. Based on the length value, width value and height value of the three-dimensional rectangle, a three-dimensional rectangle is constructed, and the constructed three-dimensional rectangle is used as the encryption model of the transaction process between the two parties, and the encryption model is used to encrypt the transaction records and transaction process between the two parties.

[0043] In summary, encrypting transaction records ensures the security of data during storage and transmission, prevents unauthorized access and data leakage, and provides an innovative data protection method by converting transaction contract codes into encryption models, thereby increasing the security and reliability of the transaction system.

[0044] Compared with the prior art, the present invention has the following beneficial effects:

[0045] The present invention allows a buyer to submit a transaction request on a blockchain platform, and automatically searches for multiple groups of sellers that meet the conditions on the blockchain platform according to the buyer's request, conducts in-depth analysis on each group of sellers that meet the conditions, and conducts a comprehensive evaluation based on the price, integrity, and power generation stability of each group of sellers, thereby obtaining the price advantage index, integrity advantage index, and power generation fluctuation coefficient of each group of sellers, and further conducts a comprehensive analysis based on the price advantage index, integrity advantage index, and power generation fluctuation coefficient of each group of sellers to obtain the comprehensive evaluation index of each group of sellers, thereby comprehensively evaluating the advantages of each group of sellers, helping buyers select the best sellers for transactions, and improving buyers' trust and satisfaction with the platform;

[0046] The present invention provides an innovative data protection method by converting the transaction contract code into an encryption model, thereby increasing the security and reliability of the transaction system;

[0047] The present invention realizes personalized experience by setting influence weight factors of price advantage index, integrity advantage index and power generation fluctuation coefficient according to the fields preferred by buyers when analyzing the price advantage index, integrity advantage index and power generation fluctuation coefficient of each group of sellers. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] Further details, features and advantages of the present application are disclosed in the following description of exemplary embodiments in conjunction with the accompanying drawings, in which:

[0049] Figure 1 It is a principle block diagram of the present invention. DETAILED DESCRIPTION

[0050] Several embodiments of the present application will be described in more detail below with reference to the accompanying drawings so that those skilled in the art can implement the present application. The present application can be embodied in many different forms and purposes and should not be limited to the embodiments described herein. These embodiments are provided to make the present application comprehensive and complete, and to fully convey the scope of the present application to those skilled in the art. The embodiments do not limit the present application.

[0051] Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by those of ordinary skill in the art to which this application belongs. It will be further understood that terms such as those defined in commonly used dictionaries should be interpreted as having a meaning consistent with their meaning in the relevant art and / or the context of this specification, and will not be interpreted in an idealized or overly formal sense unless explicitly defined as such herein.

[0052] See also Figure 1 As shown, the electric energy trading method based on blockchain includes:

[0053] Supply and demand matching: The buyer submits a transaction request on the blockchain platform through the user interface; the buyer's transaction request includes the specific quantity range of the required electricity, the expected price range, the expected transaction time window, etc.; the transaction request submitted by the buyer is encrypted; encryption uses a public key / private key pair, where the public key is used for encryption and the private key is used for decryption; and converted into a format recognizable by the smart contract, and then the converted transaction request is broadcast to the blockchain platform; the information is encoded into JSON or other data structures so that the smart contract can read and process it; the smart contract automatically searches for multiple groups of sellers that meet the conditions on the blockchain platform according to the buyer's request, and numbers each group of sellers, and the number is represented by i, where i=1,2...k, and k is the total number of qualified sellers;

[0054] Seller evaluation: Conduct in-depth analysis of each group of sellers that meet the conditions, thereby obtaining the comprehensive evaluation index Zqei of each group of sellers at the current time point;

[0055] Specifically:

[0056] Extract the electricity price information provided by each group of sellers from the blockchain platform, compare the electricity price information provided by each group of sellers with the price range expected by the buyer, extract the lowest expected price from the price range expected by the buyer, and calculate the difference with the electricity price provided by each group of sellers, so as to obtain the degree of concession that each group of sellers can satisfy the buyer;

[0057] Preset the range of values ​​for each group of discount degree values, set each group of degree value range to correspond to a price advantage index, match the discount degree values ​​of each group of sellers with the preset range of values ​​for each group, and thus obtain the price advantage index Gai of each group of sellers;

[0058] The lower the discount value is, the closer the seller's price is to the buyer's expected minimum price, and the higher the corresponding matching price advantage index is. For example:

[0059] Now there are three groups of sellers A, B and C, who provide the following electricity price information respectively:

[0060] Seller A: $55 per MWh;

[0061] Seller B: $58 per MWh;

[0062] Seller C: $62 per MWh;

[0063] Extract price information:

[0064] Extract price information of sellers A, B and C from the blockchain platform;

[0065] Compare Prices:

[0066] The minimum price the buyer expects is $50, and this price is compared with the price offered by the seller;

[0067] Calculate the discount value:

[0068] Seller A's discount value = Seller A's price - Buyer's lowest expected price = 55-50 = 5 (US dollars);

[0069] Seller B's discount value = 58-50 = 8 (US dollars);

[0070] Seller C's discount value = 62-50 = 12 (US dollars);

[0071] The preset range of discount degree:

[0072] Assume that three ranges of values ​​are set: 0 to 5 US dollars: price advantage index Gi=1.2;

[0073] 6 to 10 US dollars: price advantage index Gi=1.5;

[0074] 11 to infinity: price advantage index Gi=1.8;

[0075] Matching the discount value and price advantage index:

[0076] Seller A's discount value is $5, which falls within the first range, so the price advantage index Gi=1.2;

[0077] The discount value of seller B is 8 dollars, which falls within the second range, so the price advantage index Gi=1.5;

[0078] The discount value of seller C is $12, which falls within the third range, so the price advantage index Gi=1.8;

[0079] Extract the historical transaction records and historical buyer evaluations of each group of sellers from the blockchain platform, extract the transaction times and default times of each group of sellers from the historical transaction records of each group of sellers, and analyze the reasons for the default times of each group of sellers; the reasons for default can be marked and stored on the blockchain by the cooperating buyers when the seller defaults, and the reasons for default include early termination of the contract, delayed delivery, failure to provide electricity as stipulated in the contract, etc.;

[0080] The number of breaches of contract of each group of sellers is classified according to the reasons for breach of contract, and different breach of contract reasons are set to correspond to a breach of contract score; the breach of contract score range is set to 1-5 and is a positive integer, which is specifically set by technical personnel and can be dynamically adjusted according to actual conditions. For example, early termination of the contract corresponds to a breach of contract score of 4, and delayed delivery corresponds to a breach of contract score of 3;

[0081] The default times of each group of sellers are converted into default points according to the default reasons, so as to obtain the default points of each group of sellers, and the default points of each group of sellers are accumulated respectively, so as to obtain the default assessment value Ei of each group of sellers;

[0082] At the same time, the transaction times of each group of sellers are converted into transaction evaluation values, and the transaction times value range of each group is preset, and each transaction times value range is set to correspond to a transaction evaluation value; the transaction sub-range is set to 15-30 and is a positive integer; the transaction times of each group of sellers are matched with the preset transaction times value range of each group, so as to obtain the transaction evaluation value Qi corresponding to each group of sellers;

[0083] The more transactions a seller has, the higher the seller's cooperation frequency and qualifications on the blockchain platform, and the greater the corresponding transaction evaluation value;

[0084] Extract the ratings of each group of buyers from the historical buyer ratings of each group of sellers on the blockchain platform; collect the evaluations of buyers on buyers through the blockchain platform, using a rating system with a rating range of 1-5; divide the ratings of each group of buyers of each group of sellers into time periods based on the current time point, and divide them into historical time periods and recent time periods;

[0085] The historical time period includes data from the past year, while the recent time period includes data from the last few months. The specific division range is set by the technical staff;

[0086] Calculate the average of the buyer ratings of each group in the historical time period to obtain the historical average rating;

[0087] Calculate the average of the buyer ratings of each group in the recent period to obtain the recent average rating;

[0088] Preset the weight coefficients of historical average ratings and recent average ratings respectively, multiply the historical average ratings and recent average ratings of each group of sellers by the corresponding preset weight coefficients respectively, and then sum them up to obtain the reputation evaluation value Yi of each group of sellers;

[0089] The scores in the historical and recent time periods are weighted, with the weight coefficient corresponding to the recent time period being greater than the weight coefficient corresponding to the historical time period, to reflect that recent performance has a greater impact on the selection of sellers;

[0090] Extract the default assessment value Ei, transaction assessment value Qi and reputation assessment value Yi of each group of sellers and substitute them into the formula , weighted calculation is performed to obtain the integrity advantage index Gbi of each group of sellers; u1, u2 and u3 are the influencing weight factors of the default assessment value Ei, the transaction assessment value Qi and the reputation assessment value Yi respectively;

[0091] Obtain the historical power generation data of each group of sellers from the blockchain platform, extract the power generation of each group of sellers at each time point within the set time period from the historical power generation data of each group of sellers, calculate the power generation at each time point within the set time period using the standard deviation formula, and thus obtain the power generation fluctuation coefficient Gci of each group of sellers within the set time period;

[0092] The preset price advantage index Gai, integrity advantage index Gbi and power generation fluctuation coefficient Gci correspond to the price reference index, integrity passing index and power generation threshold coefficient respectively, and are marked as Tai, Tbi and Tci respectively;

[0093] Extract the price advantage index Gai, integrity advantage index Gbi and power generation fluctuation coefficient Gci of each group of sellers and substitute them into the formula Perform weighted calculation to obtain the comprehensive evaluation index Zqei of each group of sellers; , as well as They are the impact weight factors corresponding to the price advantage index Gai, the integrity advantage index Gbi and the power generation fluctuation coefficient Gci; the specific values ​​are set by the buyer according to the transaction;

[0094] It should be noted that, in summary, through automated smart contracts and algorithms, buyers can be quickly matched with multiple groups of sellers that meet the transaction conditions, and further comprehensive evaluations are conducted on the price, integrity, and power generation stability of each group of sellers, thereby obtaining the price advantage index Gai, integrity advantage index Gbi, and power generation fluctuation coefficient Gci of each group of sellers, thereby comprehensively evaluating the advantages of each group of sellers, helping buyers choose the best sellers for transactions, and improving buyers' experience and satisfaction.

[0095] Select transaction: The smart contract selects the seller with the highest comprehensive evaluation index Zqei as the counterparty based on the comprehensive evaluation index Zqei of each group of sellers;

[0096] Automatic execution: Once the selection is made, the smart contract automatically executes the terms of the transaction, including power transfer and fund settlement;

[0097] Data storage: Transaction records and related processes during the transaction are permanently stored on the blockchain platform and encrypted; participants can view the transaction status in real time to ensure the transparency and traceability of the transaction;

[0098] The specific process of encryption is as follows:

[0099] Extract the transaction contract code generated during the transaction between the two parties; the code is automatically and randomly generated by the blockchain platform when the two parties execute the transaction terms; the code consists of letters, numbers and symbols;

[0100] Based on the preset conversion rules, the letters and symbols in the transaction contract code are converted into numbers, and different symbols and letters are set to correspond to a set of numbers; for example, z=3, %=12, which is set by the technical staff and can be adjusted regularly later;

[0101] By regularly adjusting encryption formulas and conversion rules, the system can adapt to new security threats and maintain the effectiveness and adaptability of encryption strategies;

[0102] Accumulate the groups of numbers converted from the letters in the transaction contract code, and record the accumulated value as the accumulated value;

[0103] Accumulate each group of numbers converted from the symbols in the transaction contract code, and record the accumulated value as the accumulated binary value;

[0104] The original numbers in the transaction contract code are accumulated, and the accumulated value is recorded as the accumulated triple value;

[0105] Set the encryption formulas corresponding to the accumulated value 1, accumulated value 2, and accumulated value 3, and substitute the accumulated value 1, accumulated value 2, and accumulated value 3 in the current transaction process into the corresponding encryption formulas for calculation; the encryption formulas are preset addition, subtraction, multiplication, and division formulas, for example ,in , as well as They represent the accumulated value of one, the accumulated value of two, and the accumulated value of three respectively, and the numbers in the formula can be dynamically adjusted regularly;

[0106] After the calculation is completed, the calculation result of the accumulated value is used as the length value of the three-dimensional rectangle, the calculation result of the accumulated value is used as the width value of the three-dimensional rectangle, and the calculation result of the accumulated value is used as the height value of the three-dimensional rectangle. Based on the length value, width value and height value of the three-dimensional rectangle, a three-dimensional rectangle is constructed, and the constructed three-dimensional rectangle is used as the encryption model of the transaction process between the two parties, and the transaction record and transaction process of the two parties are encrypted using the encryption model;

[0107] It should be noted that, in summary, encryption of transaction records ensures the security of data during storage and transmission, prevents unauthorized access and data leakage, and provides an innovative data protection method by converting transaction contract codes into encryption models, thereby increasing the security and reliability of the transaction system.

[0108] The above formulas are obtained by collecting a large amount of data and performing software simulation, and a formula close to the actual value is selected. The influencing weight factor and specific coefficient value in the formula are set by technical personnel in this field according to actual conditions, and can be adjusted and modified later.

[0109] The preferred embodiments of the present invention disclosed above are only used to help explain the present invention. The preferred embodiments do not describe all the details in detail, nor do they limit the invention to only specific implementation methods. Obviously, many modifications and changes can be made according to the content of this specification. This specification selects and specifically describes these embodiments in order to better explain the principles and practical applications of the present invention, so that those skilled in the art can understand and use the present invention well. The present invention is limited only by the claims and their full scope and equivalents.

Claims

1. The electric energy trading method based on blockchain is characterized by: include: Supply and demand matching: The buyer submits a transaction request on the blockchain platform through the user interface, and the transaction request submitted by the buyer is encrypted; And convert it into a format recognizable by the smart contract, and then broadcast the converted transaction request to the blockchain platform. The smart contract automatically searches for multiple groups of sellers that meet the conditions on the blockchain platform according to the buyer's request, and numbers each group of sellers. The number is represented by i, where i=1,2...k, and k is the total number of qualified sellers; Seller evaluation: conduct an in-depth analysis of the evaluation parameters of each group of sellers that meet the conditions, thereby obtaining the comprehensive evaluation index Zqei of each group of sellers at the current time point; the evaluation parameters include price parameters, historical transaction records, historical buyer evaluations, and historical power generation data; An in-depth analysis of the price parameters of each group of sellers is conducted, specifically: Extract the electricity price information provided by each group of sellers from the blockchain platform, compare the electricity price information provided by each group of sellers with the price range expected by the buyer, extract the lowest expected price from the price range expected by the buyer, and calculate the difference with the electricity price provided by each group of sellers, so as to obtain the degree of concession that each group of sellers can satisfy the buyer; Preset the range of values ​​for each group of discount degree values, set each group of degree value range to correspond to a price advantage index, match the discount degree values ​​of each group of sellers with the preset range of values ​​for each group, and thus obtain the price advantage index Gai of each group of sellers; Conduct an in-depth analysis of the historical transaction records of each group of sellers, specifically: Extract the historical transaction records and historical buyer evaluations of each group of sellers from the blockchain platform, extract the transaction times and default times of each group of sellers from the historical transaction records of each group of sellers, and analyze the reasons for the default times of each group of sellers; Classify the number of defaults of each group of sellers according to the default reasons, and set a default score for each default reason; The default times of each group of sellers are converted into default points according to the default reasons, so as to obtain the default points of each group of sellers, and the default points of each group of sellers are accumulated respectively, so as to obtain the default assessment value Ei of each group of sellers; At the same time, the transaction times of each group of sellers are converted into transaction evaluation values, and the value range of each group of transaction times is preset, and each group of transaction times value range is set to correspond to a transaction evaluation value; the transaction times of each group of sellers are matched with the preset value range of each group of transaction times, so as to obtain the transaction evaluation value Qi corresponding to each group of sellers; Conduct an in-depth analysis of the historical buyer reviews for each group of sellers, specifically: Extract the scores of each group of buyers from the historical buyer evaluations of each group of sellers on the blockchain platform; divide the buyer scores of each group of sellers into time periods based on the current time point, and divide them into historical time periods and recent time periods; The average of the buyer ratings of each group in the historical time period is calculated to obtain the historical average rating; the average of the buyer ratings of each group in the recent time period is calculated to obtain the recent average rating; the weight coefficients of the historical average rating and the recent average rating are preset respectively, and the historical average rating and the recent average rating of each group of sellers are multiplied by the corresponding preset weight coefficients respectively, and then the sum is obtained to obtain the reputation evaluation value Yi of each group of sellers; Comprehensively evaluate the historical transaction records of each group of sellers and the historical buyer evaluation analysis results, specifically: Extract the default assessment value Ei, transaction assessment value Qi and reputation assessment value Yi of each group of sellers and substitute them into the formula , weighted calculation is performed to obtain the integrity advantage index Gbi of each group of sellers; u1, u2 and u3 are the influencing weight factors of the default assessment value Ei, the transaction assessment value Qi and the reputation assessment value Yi respectively; An in-depth analysis of the historical power generation data of each group of sellers is conducted, specifically: Obtain the historical power generation data of each group of sellers from the blockchain platform, extract the power generation of each group of sellers at each time point within the set time period from the historical power generation data of each group of sellers, calculate the power generation at each time point within the set time period using the standard deviation formula, and thus obtain the power generation fluctuation coefficient Gci of each group of sellers within the set time period; Get the comprehensive evaluation index Zqei of each group of sellers at the current time point, specifically: The preset price advantage index Gai, integrity advantage index Gbi and power generation fluctuation coefficient Gci correspond to the price reference index, integrity passing index and power generation threshold coefficient respectively, and are marked as Tai, Tbi and Tci respectively; Extract the price advantage index Gai, integrity advantage index Gbi and power generation fluctuation coefficient Gci of each group of sellers and substitute them into the formula Perform weighted calculation to obtain the comprehensive evaluation index Zqei of each group of sellers; , as well as They are the impact weight factors corresponding to the price advantage index Gai, the integrity advantage index Gbi and the power generation fluctuation coefficient Gci; Select transaction: The smart contract selects the seller with the highest comprehensive evaluation index Zqei as the counterparty based on the comprehensive evaluation index Zqei of each group of sellers; Automatic execution: Once the selection is made, the smart contract automatically executes the terms of the transaction, including power transfer and fund settlement; Data storage: Transaction records and related processes during the transaction are permanently stored on the blockchain platform and encrypted.

2. The blockchain-based electric energy trading method according to claim 1 is characterized in that: The transaction records and related processes during the transaction are permanently stored on the blockchain platform and encrypted. The specific process of encryption is as follows: Extract the transaction contract code generated during the transaction between the two parties. The code consists of letters, numbers and symbols; Based on the preset conversion rules, the letters and symbols in the transaction contract code are converted into numbers, and different symbols and letters are set to correspond to a set of numbers respectively; Accumulate the groups of numbers converted from the letters in the transaction contract code, and record the accumulated value as the accumulated value; Accumulate each group of numbers converted from the symbols in the transaction contract code, and record the accumulated value as the accumulated binary value; The original numbers in the transaction contract code are accumulated, and the accumulated value is recorded as the accumulated triple value; Set the encryption formulas corresponding to the accumulated value one, accumulated value two and accumulated value three, and substitute the accumulated value one, accumulated value two and accumulated value three in the current transaction process into the corresponding set encryption formulas for calculation; After the calculation is completed, the result of the accumulated value one is used as the length value of the three-dimensional rectangle, the result of the accumulated value two is used as the width value of the three-dimensional rectangle, and the result of the accumulated value three is used as the height value of the three-dimensional rectangle. Based on the length value, width value and height value of the three-dimensional rectangle, a three-dimensional rectangle is constructed, and the constructed three-dimensional rectangle is used as the encryption model of the transaction process between the two parties, and the encryption model is used to encrypt the transaction records and transaction process between the two parties.

Citation Information

Patent Citations

  • Financial transaction risk prompting method based on block chain and related equipment

    CN112651743A

  • Block chain-based data transaction method and data transaction platform

    CN115170231A