User management method, device and equipment based on block chain trusted transaction

Through blockchain technology and fuzzy C-means clustering method, the trust problem in power transactions is solved. Power transactions are managed through smart contracts, which ensures the fairness and stability of the power market and improves the utilization efficiency of power resources.

CN118691276APending Publication Date: 2024-09-24STATE GRID DIGITAL TECHNOLOGY HOLDING CO LTD +3
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410694037.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-31
Publication Date
2024-09-24

AI Technical Summary

Technical Problem

In the power market, there are trust issues among buyers and sellers participating in power transactions, including false declarations of power consumption and false declarations of energy storage power, which affect the normal operation of the power system and the security of power supply.

Method used

Using a trusted transaction method based on the blockchain, by comparing the deviation value between the aggregator's agreed load and actual load, agreed power supply and actual power supply, the comprehensive historical reputation value is calculated, the degree of dishonesty is judged, and the degree of dishonesty is determined through fuzzy The C-means clustering method clusters load providers and energy storage providers, uses smart contracts to complete power transactions, and adjusts their bidding priorities and transaction permissions.

Benefits of technology

It effectively solves the trust problem in power transactions, ensures orderly and fair transactions, improves the utilization efficiency of power resources, and maintains the stable operation of the power system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118691276A
    Figure CN118691276A
Patent Text Reader

Abstract

The invention relates to the technical field of electric power, and discloses a block chain trusted transaction-based user management method, device and equipment and a medium, and the method comprises the steps: obtaining the agreed load capacity of an aggregator participating in an electric power transaction before the transaction and the actual load capacity in the transaction, and obtaining the agreed power supply capacity of the aggregator before the transaction and the actual power supply capacity in the electric power transaction; comparing the deviation values of the two, and judging the dishonesty degree of the aggregator according to the deviation values; calculating and updating a comprehensive historical reputation value of the aggregator according to the degree of dishonesty, comparing the comprehensive historical reputation value with a set malicious threshold value, judging whether the aggregator is a malicious node or not, and if the aggregator is the malicious node, forbidding the aggregator to carry out subsequent power transaction; and performing power supply quality evaluation according to the comprehensive historical reputation value so as to determine the bidding priority sequence of the aggregator in the subsequent power transaction. According to the invention, by managing the users who carry out the electricity transaction, the credibility and mutual trust of the two transaction parties in the transaction process are ensured, and the orderliness of the transaction is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of electric power technology, and in particular to a user management method, device, equipment and medium based on blockchain trusted transactions. Background Art

[0002] With the development of new power systems, the proportion of distributed clean energy continues to increase, and new energy storage has become an important technology and basic equipment to support the power system. New energy storage can provide power capacity support for the power system and has a certain peak-shaving capability, which can meet the electricity demand of industrial parks during peak hours.

[0003] Energy storage users can build photovoltaic panels, wind power generation facilities, etc. in the region. The electricity generated by their facilities can not only meet the users' own electricity needs, but also have surplus electricity, and electricity trading in the electricity market comes into being.

[0004] Shanghai's digital economy development plan includes the development of trusted electricity trading. However, in electricity trading in the existing electricity market, there are trust issues between buyers and sellers participating in electricity trading. Trust issues include users making false electricity consumption declarations or lying to the system about their own energy storage capacity, which will affect the normal operation of the power system as well as the power balance and power supply safety. Summary of the invention

[0005] The present invention provides a user management method based on blockchain trusted transactions to solve the trust problem existing between buyers and sellers participating in power transactions in the power market.

[0006] In order to achieve the above object, the present invention provides a user management method based on blockchain trusted transactions, comprising:

[0007] Obtain the agreed load of the aggregator participating in the power transaction before the power transaction and the actual load in the power transaction, compare the deviation value between the agreed load and the actual load, and / or obtain the agreed power supply of the aggregator participating in the power transaction before the power transaction and the actual power supply in the power transaction, compare the deviation value between the agreed power supply and the actual power supply, and judge the degree of dishonesty of the aggregator according to the deviation value;

[0008] According to the degree of dishonesty, the comprehensive historical reputation value of the aggregator is calculated and updated, and the comprehensive historical reputation value is compared with the set malicious threshold to determine whether the aggregator is a malicious node. If the comprehensive historical reputation value is lower than the malicious threshold, the aggregator is determined to be a malicious node, and the aggregator that is a malicious node is prohibited from conducting subsequent power transactions;

[0009] The power supply quality of the aggregator and the region is evaluated respectively according to the comprehensive historical reputation value, the comprehensive evaluation index of the aggregator is determined according to the comprehensive historical reputation value and the power supply quality evaluation, and the bidding priority ranking of the aggregator in subsequent power transactions is determined.

[0010] Furthermore, before obtaining the agreed load of the aggregator participating in the power transaction before the power transaction and the actual load in the power transaction, and comparing the deviation between the agreed load and the actual load, and / or obtaining the agreed power supply of the aggregator participating in the power transaction before the power transaction and the actual power supply in the power transaction, and comparing the deviation between the agreed power supply and the actual power supply, and judging the degree of dishonesty of the aggregator according to the deviation, it also includes:

[0011] A clustering method for distributed resources based on fuzzy C-means clustering is constructed, and multiple load merchants and energy storage merchants are clustered according to the clustering method to generate load aggregators and energy storage aggregators respectively;

[0012] Receive the electricity transaction information registered by the load aggregator and the energy storage aggregator, and complete the electricity transaction between the load aggregator and the energy storage aggregator through the smart contract in the blockchain.

[0013] Furthermore, the distributed resources are composed of load providers and energy storage providers, and the clustering method of the distributed resources based on fuzzy C-means clustering is:

[0014] Get the load p of the distributed resource j , there are n distributed resources in total, the load is normalized to obtain the load data set p, specifically:

[0015]

[0016] Among them, p j is the actual load value of each distributed resource, p max is the maximum value among the actual load values, p′ j is the normalized load value, data set p = [p′1, p′2, ..., p′ n ];

[0017] Select the number of clusters k and the cluster center c i (c1,c2,...,c k ), calculate the cluster center c of each distributed resource i Membership Specifically:

[0018]

[0019] Where k is the number of clusters, Represents distributed resource p j With cluster center c i The Euclidean distance between bj represents the Euclidean distance between each distributed resource and the bth cluster center, z is the fuzzy index, and the value of z is [0,1);

[0020] According to the degree of membership and the distributed resource p j With cluster center c i The Euclidean distance between Calculate the objective function:

[0021]

[0022] Determine whether the membership in the objective function satisfies the following three conditions at the same time:

[0023]

[0024] If not, the cluster center is updated, specifically:

[0025]

[0026] If it is satisfied, the load suppliers and energy storage suppliers are clustered according to the clustering center. Multiple load suppliers with the same clustering center are called a load aggregator, and multiple energy storage suppliers with the same clustering center are called an energy storage aggregator. The k clustering centers are composed of f load aggregators and g energy storage aggregators.

[0027] Furthermore, in the process of power trading, the degree of dishonesty of the load supplier or the energy storage supplier is represented by a deviation value Δ:

[0028]

[0029] Among them, E c is the agreed load or agreed power supply, E e It is the actual load or actual power supply;

[0030] The credit incentive value of aggregator i for the zth electricity transaction for:

[0031]

[0032] in, refers to the scope of the zth transaction of aggregator i, δ is the symbol coefficient, satisfying is the incentive coefficient;

[0033] After completing an electricity transaction, the credit incentive value is calculated based on this electricity transaction. Then update the comprehensive historical reputation value of the aggregator after the zth electricity transaction

[0034] Among them, γ∈[0,1], comprehensive historical reputation value Only the ex times of electricity transactions closest to the current electricity transaction are considered. When calculating the current credit value, the furthest historical incentive value will be removed. If it is less than ex times, it will not be considered.

[0035] Aggregators The comprehensive historical reputation of the medium-load aggregator f is The comprehensive historical reputation of energy storage aggregator g is

[0036] when When the aggregator is judged as a malicious node by the blockchain, When When , the aggregator is judged as a trusted node.

[0037] Furthermore, the power supply quality evaluation of the aggregator is the power supply quality evaluation Q of the energy storage aggregator by the load aggregator. g , specifically:

[0038]

[0039] in, is the comprehensive historical reputation value of the energy storage aggregator, sat g is the score given by the load aggregator to the energy storage aggregator in this power transaction, sat g ∈[0,1], val is the value created by the load aggregator using the electricity traded, and θ is the weight of the value in the score.

[0040] Furthermore, the power supply quality evaluation of the region is specifically as follows:

[0041] Assume that x energy storage facilities under the jurisdiction of energy storage aggregator g have breached trust in a certain round of power trading, then its regional power supply quality score ENV g for:

[0042] ENV g =e -x .

[0043] Furthermore, the comprehensive evaluation index of the aggregator is determined according to the comprehensive historical reputation value and the power supply quality evaluation, and then the bidding priority ranking of the aggregator in subsequent power transactions is determined, specifically:

[0044] Comprehensive evaluation index of energy storage aggregator g after the zth round of electricity trading for:

[0045]

[0046] in, are the weights of the credit value, the energy storage facility power supply quality evaluation index, and the regional power supply quality evaluation index, respectively, and

[0047] When bidding for power transactions, if an aggregator is judged to be suspicious, the smart contract will adjust its final bid based on its bid and reputation value. For load aggregator f, its ranking bid is:

[0048]

[0049] Among them, h′ f is the ranking quotation, τ is the load aggregator quotation adjustment coefficient, h f Quotes for load aggregators, h ref For market reference quotation, is the maximum value of reputation, is the comprehensive historical reputation value of the load aggregator;

[0050] For energy storage aggregator g, its ranking quotation is:

[0051]

[0052] Among them, h′ g For the sorting quote, h g Offers for energy storage aggregators, h ref is the market reference quotation, μ is the aggregator quotation adjustment coefficient, is the maximum value of the comprehensive evaluation index. It is the minimum value of the comprehensive evaluation index.

[0053] A second aspect of an embodiment of the present invention provides a user management device based on blockchain trusted transactions, the user management device comprising:

[0054] A comparison module, used to obtain the agreed load of the aggregator participating in the power transaction before the power transaction and the actual load in the power transaction, compare the deviation value between the agreed load and the actual load, and / or obtain the agreed power supply of the aggregator participating in the power transaction before the power transaction and the actual power supply in the power transaction, compare the deviation value between the agreed power supply and the actual power supply, and judge the degree of dishonesty of the aggregator according to the deviation value;

[0055] A node judgment module is used to calculate and update the comprehensive historical reputation value of the aggregator according to the degree of dishonesty, and to judge whether the aggregator is a malicious node by comparing the comprehensive historical reputation value with a set malicious threshold value. If the comprehensive historical reputation value is lower than the malicious threshold value, the aggregator is judged to be a malicious node, and the aggregator that is a malicious node is prohibited from conducting subsequent power transactions;

[0056] The comprehensive evaluation module is used to evaluate the power supply quality of the aggregator and the region respectively according to the comprehensive historical reputation value, determine the comprehensive evaluation index of the aggregator according to the comprehensive historical reputation value and the power supply quality evaluation, and determine the bidding priority ranking of the aggregator in subsequent power transactions.

[0057] According to a third aspect of an embodiment of the present invention, a non-transitory computer-readable storage medium is provided for storing computer instructions, and when the computer instructions are executed by a processor, the user management method based on blockchain trusted transactions is implemented.

[0058] According to a fourth aspect of an embodiment of the present invention, an electronic device is provided, comprising: a processor, a memory, and a computer program; wherein the processor is connected to the memory, the computer program is stored in the memory, and when the electronic device is running, the processor executes the computer program stored in the memory, so that the electronic device executes the user management method based on blockchain trusted transactions.

[0059] Compared with the prior art, the user management method, device, equipment and medium based on blockchain trusted transactions in the embodiment of the present invention have the following beneficial effects: according to the degree of dishonesty of the user in this transaction, the comprehensive historical reputation value is calculated and updated, the user's status is judged by the comprehensive historical reputation value, and the user's status is further judged whether it can conduct electricity transactions in the future, and then the power supply quality is evaluated, and finally the user's comprehensive evaluation index is determined. The user's comprehensive evaluation index can determine the bidding priority ranking of the user in the transaction. The present invention manages users who conduct trusted electricity transactions, ensures the mutual trust of the two parties in the electricity transaction process, can solve the trust problem between the buyer and seller users in traditional electricity transactions, ensures the order and fairness of the transaction process, and can effectively utilize power resources to maintain the stable operation of the power system. BRIEF DESCRIPTION OF THE DRAWINGS

[0060] Figure 1 This is a flow chart of an embodiment of a user management method based on blockchain trusted transactions according to an embodiment of the present invention;

[0061] Figure 2 This is a flowchart of a specific implementation of step S1 in the user management method based on blockchain trusted transactions in an embodiment of the present invention;

[0062] Figure 3 A diagram of a trusted transaction framework according to an embodiment of the present invention;

[0063] Figure 4 A schematic diagram of the workflow of a trusted transaction framework according to an embodiment of the present invention;

[0064] Figure 5 Schematic diagram of a transaction model based on a smart contract according to an embodiment of the present invention;

[0065] Figure 6 A schematic diagram showing a comparison of carbon emission reduction benefits according to one embodiment of the present invention;

[0066] Figure 7a A schematic diagram showing a profit comparison of energy storage companies according to one embodiment of the present invention;

[0067] Figure 7b A schematic diagram showing a comparison of electricity purchase costs for load merchants according to one embodiment of the present invention;

[0068] Figure 8 A schematic diagram of the average transaction response time for 1000 users concurrently sending transactions in one embodiment of the present invention;

[0069] Fig. 9 A structural diagram of a user management device according to an embodiment of the present invention;

[0070] Fig.10 FIG. 2 is a schematic block diagram of an exemplary electronic device 200 according to an embodiment of the present invention.

[0071] The reference numerals of the drawings in the specification are as follows:

[0072] 100. User management device; 101. Comparison module; 102. Node judgment module; 103. Comprehensive evaluation module; 200. Electronic device; 201. Calculation unit; 202. ROM; 203. RAM; 204. Bus; 205. I / O interface; 206. Input unit; 207. Output unit; 208. Storage unit; 209. Communication unit. DETAILED DESCRIPTION

[0073] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0074] like Figure 1 As shown, a user management method based on blockchain trusted transactions according to a preferred embodiment of the present invention includes:

[0075] Step S1, obtaining the agreed load of the aggregator participating in the power transaction before the power transaction and the actual load in the power transaction, comparing the deviation value between the agreed load and the actual load, and / or obtaining the agreed power supply of the aggregator participating in the power transaction before the power transaction and the actual power supply in the power transaction, comparing the deviation value between the agreed power supply and the actual power supply, and judging the degree of dishonesty of the aggregator according to the deviation value;

[0076] Step S2, according to the degree of dishonesty, calculate and update the comprehensive historical reputation value of the aggregator, compare the comprehensive historical reputation value with the set malicious threshold, and determine whether the aggregator is a malicious node. If the comprehensive historical reputation value is lower than the malicious threshold, the aggregator is determined to be a malicious node, and the aggregator that is a malicious node is prohibited from conducting subsequent power transactions;

[0077] Step S3, evaluating the power supply quality of the aggregator and the region respectively according to the comprehensive historical reputation value, determining the comprehensive evaluation index of the aggregator according to the comprehensive historical reputation value and the power supply quality evaluation, and determining the bidding priority ranking of the aggregator in subsequent power transactions.

[0078] See also Figure 2 As shown, Figure 2 The step before step S1 may further include:

[0079] S01, constructing a clustering method for distributed resources based on fuzzy C-means clustering, clustering multiple load merchants and energy storage merchants according to the clustering method, and generating load aggregators and energy storage aggregators respectively;

[0080] S02, receiving the electricity transaction information registered by the load aggregator and the energy storage aggregator, and completing the electricity transaction between the load aggregator and the energy storage aggregator through the smart contract in the blockchain.

[0081] Specifically, the distributed resources in the present invention are in the same industrial park, and the industrial loads in the industrial park have the characteristics of large scale, good regularity, strong controllability, huge adjustable potential, etc. The load elasticity level of some small industrial enterprises cannot meet the response requirements, and they are aggregated as a whole through load aggregators to participate in power trading.

[0082] See also Figure 3 As shown, Figure 3The diagram is a trusted trading framework, which includes: there are energy storage facilities in the industrial park. Energy storage facilities can generally be divided into physical energy storage, electromagnetic energy storage, electrochemical energy storage, etc. They are widely dispersed and small in scale, and the energy storage capacity is small. They often cannot meet the access conditions of the electricity trading market and are difficult to be used efficiently. In order to effectively utilize these scattered distributed energy storage, they are usually aggregated into a whole, that is, energy storage aggregators participate in electricity trading. Energy storage aggregators control energy storage facilities through power terminals during electricity trading; after the transaction is settled, the profit distribution is completed according to the actual output of each energy storage facility. Load aggregators aggregate the loads of industrial parks as a whole to participate in electricity trading and are responsible for the decomposition of clearing results.

[0083] In a specific implementation, the distributed resources are composed of load providers and energy storage providers, and the clustering method of the distributed resources based on fuzzy C-means clustering is:

[0084] Get the load p of the distributed resource j , there are n distributed resources in total, the load is normalized to obtain the load data set p, specifically:

[0085]

[0086] Among them, p j is the actual load value of each distributed resource, p max is the maximum value among the actual load values, p′ j is the normalized load value, data set p = [p′1, p′2, ..., p′ n ];

[0087] Select the number of clusters k and the cluster center c i (c1,c2,...,c k ), calculate the cluster center c of each distributed resource i Membership Specifically:

[0088]

[0089] Where k is the number of clusters, Represents distributed resource p j With cluster center c i The Euclidean distance between bj represents the Euclidean distance between each distributed resource and the bth cluster center, z is the fuzzy index, and the value of z is [0,1);

[0090] Specifically, the membership degree is a weighted clustering division, and the higher the membership degree, the higher the probability of belonging to the cluster.

[0091] According to the degree of membership and the distributed resource p j With cluster center c i The Euclidean distance between Calculate the objective function:

[0092]

[0093] Determine whether the membership in the objective function satisfies the following three conditions at the same time:

[0094]

[0095]

[0096] If not, the cluster center is updated, specifically:

[0097]

[0098] If it is satisfied, the load suppliers and energy storage suppliers are clustered according to the clustering center. Multiple load suppliers with the same clustering center are called a load aggregator, and multiple energy storage suppliers with the same clustering center are called an energy storage aggregator. The k clustering centers are composed of f load aggregators and g energy storage aggregators.

[0099] The embodiment of the present invention adopts a distributed resource clustering method (FCM) based on fuzzy C-means clustering, adds membership degree on the basis of the algorithm, and reduces the error caused by traditional hard classification.

[0100] The present invention can also use the Davies-Bouldin Index (DBI), also known as the classification accuracy index, to judge the clustering effect. The calculation method is as follows:

[0101]

[0102] Among them, s i is the average distance from the node to the cluster center in cluster i. During the execution of the clustering algorithm, the DBI index is used to measure the rationality of the clustering results based on the high similarity of data objects within the class and the high dissimilarity of data objects between classes. The smaller the value, the better the clustering effect. Unlike other indicators, the DBI index considers the relationship between each cluster, not just the separation and closeness within the cluster. This makes it more suitable for clustering of multiple clusters and can more comprehensively evaluate the entire clustering structure. Similarly, distance is one of the clustering factors, and it is also necessary to consider the similar load values ​​within the same cluster. In this way, clustering can facilitate the unified allocation of similar load resources, which is also to meet the conditions for market access.

[0103] See also Figure 4 and Figure 5 As shown, in an optional embodiment of the present invention, the energy storage aggregator and the load aggregator complete the power transaction through a smart contract, and the smart contract can automatically execute and complete the power transaction between the two parties, specifically:

[0104] After the energy storage aggregator collects a certain amount of distributed energy storage facility information, it sends a power sale request through the interface with the blockchain. After the load aggregator collects a certain amount of load information, it sends a power purchase request through the interface. This information will be broadcast to other nodes;

[0105] After each node receives the broadcast information, the state machine will detect whether the current information meets the conditions for triggering the transaction contract and whether the contract is legal. The state machine will also record the current amount of electricity to be traded.

[0106] After the smart contract is triggered, the transaction will be executed according to the written logic to determine the clearing price. The two parties who meet the clearing price will participate in the transaction. After the two parties reach a transaction and send a confirmation transaction message, the transaction result will be broadcast to the blockchain node for confirmation. After confirmation, both parties will trade according to the contract;

[0107] During the transaction, the energy storage aggregator and the load aggregator will disclose account information, including balance, signature, public key, etc. This information can ensure the security of the transaction and ensure that the buyer has sufficient capital to purchase energy storage;

[0108] After the transaction is completed, the two parties who have reached a transaction will sign the contract. Smart contracts automatically execute the transaction process strictly according to pre-established rules, which reduces the cost of transactions and resource management to a certain extent and ensures real-time and efficient transactions of energy storage. After the transaction is completed and confirmed, the transaction results will be recorded in the blockchain.

[0109] In the embodiment of the present invention, the energy storage aggregator establishes photovoltaic panels, wind power generation and other facilities in the region. After meeting its own electricity demand, the energy storage aggregator can trade the remaining electricity with the load aggregator in the region through smart contracts. Such a trading method can not only reduce the energy loss in the energy transmission process, but also improve the energy utilization efficiency of the region. In areas far away from the main power grid, aggregators in the region can solve the problem of insufficient energy supply by establishing an energy trading model based on smart contracts, and promote the development and utilization of renewable energy.

[0110] Energy storage aggregators in the region can view the energy value generated by the equipment and understand the power information through smart meters, and then send power sales information through the blockchain network, while load aggregators can browse the power sales information released by energy storage aggregators through the energy trading network and respond to transaction requests based on their own power demand quotations. Through smart contracts, transactions can be triggered and submitted to the blockchain network, and then buyers and sellers can match transactions based on the clearing price. After the transaction is reached, the entire network will receive the broadcast, and the blockchain consensus mechanism will confirm the transaction information and record it in the energy blockchain. The entire transaction process does not require the main power grid or a centralized transaction service platform, which reduces transaction costs and improves the security and transparency of transactions.

[0111] Smart contracts are essentially a piece of code that is event-driven, stateful, and runs on a shared blockchain. They have the functions of automatically processing data and controlling and managing assets on the blockchain. As an important component of the energy trading model in industrial parks, smart contracts have the following characteristics:

[0112] (1) Energy transactions are not managed by a central institution, and there is a lack of mutual trust between traders. Smart contracts are needed to ensure the security of both parties to the transaction.

[0113] (2) Compared with physical assets such as stocks and property rights, electricity transactions can be completed instantly and are easy to measure, making it easier to integrate smart contracts with the real world.

[0114] (3) The formulation of smart contracts relies on the actual energy information of each participating entity, including transaction volume, transaction price, transaction time, etc.

[0115] See also Figure 5 As shown in the figure, in the transaction model based on smart contracts, participants in the region can obtain a node account by registering. The account contains the current balance, contract code, storage information, etc. Participants in the region have the right to modify the contract and republish it. If the regional participants recognize this transaction contract, they will call the contract. When most people use the contract published in the current network, the smart contract can be used as a public contract for energy transactions in the park and can be used for any transaction between users. The rights and obligations of both parties to the transaction will be clearly defined in the contract. The parties to the transaction will program these rights and obligations in the form of code, and the code contains the conditions that trigger the automatic execution of the contract. The execution of transactions based on smart contracts is divided into the following steps:

[0116] (1) Users in the industrial park must first register a blockchain account. After successful registration, the user's public key and private key will be returned as the account address and the key to start the account.

[0117] (2) Participants can formulate transaction contracts, including transaction content, transaction time, and conditions that trigger automatic execution of the contract. Participants sign with their own private keys to ensure the validity of the contract.

[0118] (3) The contract is propagated in the energy network through P2P, and the latest set of contracts will be propagated to the trading network in the form of blocks.

[0119] (4) The contract confirmed by the trader is propagated through the blockchain network and stored in the blockchain. The regional transaction node calls the contract previously approved by the network through the client interface, and the node will save the contract in memory first. When the transaction starts, a request is sent to start the state machine to execute the contract. Within the specified time, after verification by some nodes, a consensus is reached and the smart contract is executed.

[0120] In an optional embodiment of the present invention, during the power transaction process, the degree of dishonesty of the load supplier or the energy storage supplier is represented by a deviation value Δ:

[0121]

[0122] Among them, E c is the agreed load or agreed power supply, E e It is the actual load or actual power supply;

[0123] Specifically, when Δ>0, the load merchant or energy storage merchant has malicious behavior and its credibility value will be reduced; when Δ=0, the load merchant or energy storage merchant has completed a normal transaction and its credibility value will be increased.

[0124] The credit incentive value of aggregator i for the zth electricity transaction for:

[0125]

[0126] in, refers to the scope of the zth transaction of aggregator i, δ is the symbol coefficient, satisfying

[0127] is the incentive coefficient, which can be changed according to the actual application needs in the transaction to change the degree of change in the reputation value;

[0128] After completing an electricity transaction, the credit incentive value is calculated based on this electricity transaction. Then update the comprehensive historical reputation value of the aggregator after the zth electricity transaction

[0129]

[0130] Among them, γ∈[0,1], comprehensive historical reputation value Only the ex times of electricity transactions closest to the current electricity transaction are considered. When calculating the current credit value, the furthest historical incentive value will be removed. If it is less than ex times, it will not be considered.

[0131] Aggregators The comprehensive historical reputation of the medium-load aggregator f is The comprehensive historical reputation of energy storage aggregator g is

[0132] when When the aggregator is judged as a malicious node by the blockchain, When When , the aggregator is judged as a trusted node.

[0133] Specifically, T malicious and T trust The value is determined according to the specific situation.

[0134] In an optional embodiment of the present invention, the power supply quality evaluation of the aggregator is the power supply quality evaluation Q of the energy storage aggregator by the load aggregator. g , specifically:

[0135]

[0136] in, is the comprehensive historical reputation value of the energy storage aggregator, sat g is the score given by the load aggregator to the energy storage aggregator in this power transaction, sat g ∈[0,1], val is the value created by the load aggregator using the electricity traded, and θ is the weight of the value in the score.

[0137] Specifically, after consuming the purchased electricity resources, the load aggregator can evaluate the quality of the electricity resources based on indicators such as alleviating the degree of electricity shortage during peak hours and economy. Val is the value (sales revenue) created by users using these electricity resources, that is, the higher the value, the more important the score.

[0138] In an optional embodiment of the present invention, the power supply quality evaluation of the region is specifically:

[0139] Assume that x energy storage facilities under the jurisdiction of energy storage aggregator g have breached trust in a certain round of power trading, then its regional power supply quality score ENV g for:

[0140] ENV g =e -x .

[0141] Specifically, because the generation of clean energy such as electricity resources is regional, if multiple energy storage facilities in a cluster have insufficient energy supply, other facilities are likely to have similar problems. Therefore, when multiple energy storage facilities under the jurisdiction of an energy storage aggregator lose trust, the priority of the aggregator will be reduced.

[0142] In an optional embodiment of the present invention, the comprehensive evaluation index of the aggregator is determined according to the comprehensive historical reputation value and the power supply quality evaluation, and then the bidding priority ranking of the aggregator in subsequent power transactions is determined, specifically:

[0143] Comprehensive evaluation index of energy storage aggregator g after the zth round of electricity trading for:

[0144]

[0145] in, are the weights of the credit value, the energy storage facility power supply quality evaluation index, and the regional power supply quality evaluation index, respectively, and

[0146] When bidding for power transactions, if an aggregator is judged to be suspicious, the smart contract will adjust its final bid based on its bid and reputation value. For load aggregator f, its ranking bid is:

[0147]

[0148] Among them, h′ f is the ranking quotation, τ is the load aggregator quotation adjustment coefficient, h f Quotes for load aggregators, h ref For market reference quotation, is the maximum value of reputation, is the comprehensive historical reputation value of the load aggregator;

[0149] Specifically, τ is the load aggregator quotation adjustment coefficient, that is, the lower the comprehensive historical reputation value of the load aggregator, the lower its ranking quotation, and the lower its priority in the transaction.

[0150] For energy storage aggregator g, its ranking quotation is:

[0151]

[0152] Among them, h′ g For the sorting quote, h g Offers for energy storage aggregators, h ref is the market reference quotation, μ is the aggregator quotation adjustment coefficient, is the maximum value of the comprehensive evaluation index. It is the minimum value of the comprehensive evaluation index.

[0153] Specifically, the lower the comprehensive historical reputation value of the energy storage aggregator, the higher its ranking bid is and the lower its priority in the transaction.

[0154] In order to verify the role of comprehensive historical reputation in safeguarding transactions, the present invention evaluates the efficiency of the power system from the carbon emission reduction benefit index. Because when the aggregator is malicious, it will affect the clean energy storage transaction, resulting in the load aggregator being unable to obtain sufficient electricity and having to purchase electricity from traditional energy generators. At the same time, part of the clean energy is wasted, increasing carbon emissions. Therefore, by evaluating the carbon emission reduction benefit, the efficiency of the system's energy utilization can be obtained.

[0155] The power generated by the load aggregator using traditional energy and the power generated by clean energy are obtained to obtain the actual carbon emissions and the ideal carbon emissions, and then the carbon emission efficiency is obtained. The trusted guarantee mechanism is evaluated according to the carbon emission efficiency, specifically:

[0156] Get the amount of electricity W produced by load aggregators using traditional energy normal and the amount of electricity produced using clean energy W clean ;

[0157] According to the traditional energy production W normal and the amount of electricity produced by the clean energy W clean , and the actual carbon emission reduction Red real , calculated by the following formula:

[0158] Red real =k normal W sum -k clean W clean -k normal W normal

[0159] Among them, W sum is the total power consumed, W sum =W clean +W normal , k clean Carbon emissions per kilowatt-hour of clean energy production, k normal Carbon emissions from producing one kilowatt-hour of electricity from traditional energy sources;

[0160] Ideally, the total amount of electricity consumed is all electricity produced by clean energy. sum , the ideal carbon reduction is obtained ideal , calculated by the following formula:

[0161] Red ideal=k normal W sum -k clean W sum ;

[0162] According to the actual carbon emission reduction real and the ideal carbon reduction Red ideal , the carbon reduction efficiency η is obtained:

[0163]

[0164] It is determined whether the value of the carbon emission reduction efficiency η is close to 1. If so, the efficiency of the credible guarantee mechanism is high.

[0165] Embodiment 1

[0166] In order to verify the aggregation transaction framework and trusted assurance mechanism designed in this patent, an application scenario including industrial park electricity users, energy storage users, aggregators, etc. was designed.

[0167] Assumptions: The electricity demand and price expectations in the two scenarios are the same, the transaction volume is 100MWh, the electricity purchase price of the load aggregator is set at 0.4-1.2 yuan / kWh, and the cost of the energy storage facility is 0.1-0.2 yuan / kWh. The specific electricity price, demand volume and cost of each energy storage facility of each aggregator will be randomly set within the above setting range.

[0168] Aggregation scenario: The electricity provided by the energy storage facilities is clean electricity, and load aggregators and energy storage aggregators form medium- and long-term time-sharing electricity transactions.

[0169] Baseline scenario: Traditional electricity trading framework, users complete transactions through electricity spot markets, medium- and long-term markets, and other trading methods, and the electricity demand is provided by thermal power peak-shaving units.

[0170] In the experiment, we deployed the Ethereum blockchain architecture and the sharded blockchain architecture we designed on virtual machines. Each virtual machine was allocated with 16-core CPU, 64gb memory and 500gb storage space. We created 8 dedicated virtual nodes for each of the two blockchains in the virtual machine, and implemented the required trusted verification and transaction smart contracts using Java.

[0171] Based on the aforementioned trading strategies and assumptions of the aforementioned trading parameters, we designed a simulation program to import the data of the aggregation scenario and the benchmark scenario respectively. In order to facilitate the calculation of the benefits of distributed energy users, the continuous double auction algorithm is used to match the transactions between the two parties, without considering issues such as breach of contract compensation. The experiment uses smart contracts to implement the matching process, and records the transaction results on the blockchain to ensure the transparency and traceability of the transaction, which ensures that the transaction process is safer and more efficient, and can effectively reduce the interference and costs of middlemen.

[0172] This example selects a certain time period to compare the benefits of energy storage users. Observe the energy storage facilities in a single area and the users in an industrial park. The profit comparison of energy storage providers in scenario 1 and scenario 2 is as follows: Figure 7a As shown in the figure, the commercial electricity purchase price of the load is Figure 7b shown.

[0173] 1. Analysis of clustering algorithm effect

[0174] The fuzzy C-means (FCM) clustering method, k-means clustering method and SAP method were used to cluster 50 energy storage companies and 50 load companies, with the number of clusters being 2, 4, 6, 8 and 10. The clustering effect was evaluated and the DBI index comparison obtained by clustering is shown in Table 1:

[0175] Table 1 Comparison of cluster DBI index

[0176] Table2 Cluster DBI index comparison

[0177] DBI Index 2 4 6 8 10 FCM 1.52 1.34 1.12 1.24 1.38 k-means 1.83 1.66 1.44 1.57 1.72 SAP 1.91 1.79 1.56 1.71 1.82

[0178] Because the smaller the DBI index is, the smaller the distance is, so the clustering effect is better.

[0179] By comparing the DBI index, it can be concluded that the fuzzy C-means clustering (FCM) method of this embodiment has a better clustering effect than the traditional k-means and SAP algorithms.

[0180] 2. Analysis of Trustworthy Assurance Results

[0181] Assume T malicious and T trust They are 0.4 and 0.8 respectively. The initial evaluation index of the aggregator is 1. The changes in the evaluation index of a single normal aggregator and a malicious aggregator are shown in Table 2.

[0182] Table 2 Changes in the comprehensive historical reputation of aggregators

[0183] Table2 Changes in reputation value

[0184]

[0185] It can be seen from Table 2 that the comprehensive historical reputation value of a normal aggregator will not be reduced during normal transactions and can participate in transactions normally. However, the comprehensive historical reputation value of a malicious aggregator will be reduced, and the reduction rate will gradually slow down. After reaching the malicious threshold, it will be judged that it can no longer participate in transactions, and the comprehensive historical reputation value will no longer change.

[0186] Assuming that the simulated electricity consumption and storage data in the two scenarios are the same, and introducing malicious aggregators to falsely report their own storage capacity, we compare the aggregation transaction framework based on blockchain with the aggregation transaction framework without blockchain. In this experiment, we take the carbon emissions of clean energy and traditional energy to produce one kilowatt-hour of electricity as 0.29kg and 0.89kg respectively. We use the two scenarios to conduct 15 simulation transaction tests. The test results of carbon emission reduction benefits are as follows: Figure 6 shown.

[0187] from Figure 6 It can be seen that when the data such as electricity consumption and storage are the same, in each round of testing, the aggregation trading framework based on blockchain has better results than the framework without blockchain, and can maintain a higher carbon emission reduction benefit. This is because through mechanisms such as transaction review and reputation value, the aggregation trading framework based on blockchain can effectively exclude malicious nodes and prevent malicious nodes from affecting normal electricity transactions, while the framework without blockchain may reduce system efficiency due to the influence of malicious nodes, resulting in waste of resources.

[0188] 3. Analysis of economic benefits of aggregated transactions

[0189] By comparing the simulation results, we can evaluate the benefits of energy storage companies under scenario 1 and scenario 2. Figure 7a The results show that during the entire trading cycle, the total revenue of the energy storage companies in the area in the aggregation scenario is 63,200 yuan, which is greater than the 49,300 yuan in the baseline scenario. At different time points, as the commercial power of each load increases, the difference in revenue also increases. Comparing the total revenue under the two scenarios, it can be seen that compared with the traditional trading model, the aggregation transaction can make more distributed energy storage resources effectively utilized, and the profits obtained by the energy storage companies are also much higher than those obtained in the traditional model.

[0190] Depend on Figure 7b The results show that the costs of load merchants in the aggregation scenario and the baseline scenario are 87,600 yuan and 90,600 yuan respectively. In the baseline scenario, load merchants can only purchase electricity through traditional channels and can only purchase electricity at high prices to meet production needs during peak electricity consumption periods. In the aggregation scenario, load merchants reduce electricity purchase costs by utilizing distributed energy storage resources that charge during off-peak periods and discharge during peak periods.

[0191] 4. Analysis of aggregated transaction resource utilization

[0192] The comparison of the amount of electricity provided by energy storage aggregators in this experimental scenario is shown in Table 3. In the aggregation scenario, energy storage aggregators provided a total of 78.8MWh of electricity during this period, which is 61.6MWh higher than the electricity supply value in the baseline scenario. That is, using distributed energy storage resources to supply electricity is more efficient than other power supply methods.

[0193] Table 3 Distributed energy storage and other power supply situations (unit: MWh)

[0194] Table3 Distributed energy storage and other electricity supplies

[0195]

[0196] From the above simulation results, it can be seen that by aggregating distributed energy storage resources to participate in power trading through energy storage aggregators, not only can it bring economic income to distributed energy storage resources, but it can also provide a cheaper power supply for load merchants. In addition, the power supply capacity of distributed energy storage resources is greater than that of other power supply methods, which can better meet the production power demand of load merchants, and also effectively reduce the waste of distributed energy storage resources.

[0197] 5. Analysis and verification of blockchain trusted transaction framework

[0198] In order to verify the feasibility of the method proposed in this invention, the designed blockchain trusted transaction framework was connected to the State Grid Jibei virtual power plant pilot project for testing.

[0199] In the test, the number of connected users is fixed at 1000, the number of system threads is changed, and the average response time of transaction confirmation is observed. The results are as follows: Figure 8 As shown. The results show that when the number of system threads is 971, the lowest transaction confirmation response delay of 0.093s can be obtained, and the average response delay of the whole process is 1.45s. The test proves that the blockchain trusted transaction framework designed by the embodiment of the present invention can still maintain the transaction confirmation delay acceptable to users when a large number of users access the actual scenario.

[0200] By changing the number of connected users, we tested the response delay, throughput, and transaction pass rate of different contracts under different conditions. The results are as follows:

[0201] Table 4 Blockchain performance test under different number of users

[0202] Table4 Performance testing of blockchain under different user numbers

[0203]

[0204] The above test results show that the blockchain trusted aggregation transaction framework designed by the present invention has an average response time of less than 2s, a TPS of more than 4,000 transactions / s, a transaction pass rate of 100%, and the ability to support large-scale transactions.

[0205] See also Fig. 9 As shown, the user management device 100 provides a user management device for trusted transactions based on blockchain, and the user management device includes:

[0206] The comparison module 101 is used to obtain the agreed load of the aggregator participating in the power transaction before the power transaction and the actual load in the power transaction, compare the deviation value between the agreed load and the actual load, and / or obtain the agreed power supply of the aggregator participating in the power transaction before the power transaction and the actual power supply in the power transaction, compare the deviation value between the agreed power supply and the actual power supply, and judge the degree of dishonesty of the aggregator according to the deviation value;

[0207] The node judgment module 102 is used to calculate and update the comprehensive historical reputation value of the aggregator according to the degree of dishonesty, and to compare the comprehensive historical reputation value with a set malicious threshold value to determine whether the aggregator is a malicious node. If the comprehensive historical reputation value is lower than the malicious threshold value, the aggregator is determined to be a malicious node, and the aggregator that is a malicious node is prohibited from conducting subsequent power transactions;

[0208] The comprehensive evaluation module 103 is used to evaluate the power supply quality of the aggregator and the region respectively according to the comprehensive historical reputation value, determine the comprehensive evaluation index of the aggregator according to the comprehensive historical reputation value and the power supply quality evaluation, and determine the bidding priority ranking of the aggregator in subsequent power transactions.

[0209] In the technical solution of the present invention, the acquisition, storage and application of user personal information involved are in compliance with the provisions of relevant laws and regulations and do not violate public order and good morals. In the technical solution of the present invention, the acquisition, storage and application of user personal information involved are in compliance with the provisions of relevant laws and regulations and do not violate public order and good morals.

[0210] According to an embodiment of the present invention, the present invention also provides an electronic device and a readable storage medium.

[0211] Fig.10A schematic block diagram of an example electronic device 200 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown in the present invention, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required in the present invention.

[0212] See also Fig.10 As shown, the device 200 includes a computing unit 201, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 202 or a computer program loaded from a storage unit 208 into a random access memory (RAM) 203. In the RAM 203, various programs and data required for the operation of the device 200 can also be stored. The computing unit 201, the ROM 202, and the RAM 203 are connected to each other via a bus 204. An input / output (I / O) interface 205 is also connected to the bus 204.

[0213] A number of components in the device 200 are connected to the I / O interface 205, including: an input unit 206, such as a keyboard, a mouse, etc.; an output unit 207, such as various types of displays, speakers, etc.; a storage unit 208, such as a disk, an optical disk, etc.; and a communication unit 209, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 209 allows the device 200 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0214] The computing unit 201 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 201 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 201 performs the various methods and processes described above, such as a user management method based on blockchain trusted transactions. For example, in some embodiments, a user management method based on blockchain trusted transactions may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 208. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 200 via ROM 202 and / or the communication unit 209. When the computer program is loaded into RAM 203 and executed by the computing unit 201, one or more steps of a user management method based on blockchain trusted transactions described above may be performed. Alternatively, in other embodiments, the computing unit 201 may be configured to execute a user management method based on blockchain trusted transactions in any other appropriate manner (e.g., by means of firmware).

[0215] Various embodiments of the systems and techniques described above in the present invention can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0216] The program code for implementing the method of the present invention can be written in any combination of one or more programming languages. These program codes can be provided to a processor or controller of a general-purpose computer, a special-purpose computer or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code can be executed entirely on the machine, partially on the machine, partially on the machine as a stand-alone software package and partially on a remote machine, or entirely on a remote machine or server.

[0217] In the context of the present invention, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0218] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0219] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.

[0220] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship with each other. The server may be a cloud server, a server of a distributed system, or a server combined with a blockchain.

[0221] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution disclosed in the present invention can be achieved, and the present invention is not limited here.

[0222] The working process of the present invention is as follows: according to the degree of dishonesty of the user in this transaction, a comprehensive historical reputation value is calculated and updated, the user's status is judged by the comprehensive historical reputation value, and then whether the user can subsequently conduct electricity trading is judged according to the user's status, and then the power supply quality is evaluated, and finally the user's comprehensive evaluation index is determined. The user's comprehensive evaluation index can determine the user's bidding priority ranking in the transaction.

[0223] In summary, the embodiments of the present invention provide a user management method, device, equipment and medium based on blockchain trusted transactions, which manages users who conduct trusted electricity transactions, ensures the mutual trust between the two parties in the electricity transaction process, ensures the orderliness and fairness of the transaction process, and can effectively utilize power resources to maintain the stable operation of the power system.

[0224] The specific embodiments described above further illustrate the purpose, technical solutions and beneficial effects of the present invention. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. It is particularly pointed out that for those skilled in the art, any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the scope of protection of the present invention.

Claims

1. A user management method based on blockchain trusted transactions, characterized in that: include: Obtain the agreed load of the aggregator participating in the power transaction before the power transaction and the actual load in the power transaction, compare the deviation value between the agreed load and the actual load, and / or obtain the agreed power supply of the aggregator participating in the power transaction before the power transaction and the actual power supply in the power transaction, compare the deviation value between the agreed power supply and the actual power supply, and judge the degree of dishonesty of the aggregator according to the deviation value; According to the degree of dishonesty, the comprehensive historical reputation value of the aggregator is calculated and updated, and the comprehensive historical reputation value is compared with the set malicious threshold to determine whether the aggregator is a malicious node. If the comprehensive historical reputation value is lower than the malicious threshold, the aggregator is determined to be a malicious node, and the aggregator that is a malicious node is prohibited from conducting subsequent power transactions; The power supply quality of the aggregator and the region is evaluated respectively according to the comprehensive historical reputation value, the comprehensive evaluation index of the aggregator is determined according to the comprehensive historical reputation value and the power supply quality evaluation, and the bidding priority ranking of the aggregator in subsequent power transactions is determined.

2. The user management method according to claim 1, characterized in that: Before obtaining the agreed load or agreed power supply of the aggregator participating in the power transaction before the power transaction and the actual load or actual power supply in the power transaction, and comparing the agreed load and the actual load or the agreed power supply and the actual power supply to determine the degree of dishonesty of the aggregator, the method further includes: A clustering method for distributed resources based on fuzzy C-means clustering is constructed, and multiple load merchants and energy storage merchants are clustered according to the clustering method to generate load aggregators and energy storage aggregators respectively; Receive the electricity transaction information registered by the load aggregator and the energy storage aggregator, and complete the electricity transaction between the load aggregator and the energy storage aggregator through the smart contract in the blockchain.

3. The user management method according to claim 2, characterized in that: The distributed resources are composed of load providers and energy storage providers. The clustering method of the distributed resources based on fuzzy C-means clustering is: Get the load p of the distributed resource j , there are n distributed resources in total, the load is normalized to obtain the data set p of the load, specifically: Among them, p j is the actual load value of each distributed resource, p max is the maximum value among the actual load values, p′ j is the normalized load value, data set p = [p′1, p′2, ..., p′ n ]; Select the number of clusters k and the cluster center c i (c1,c2,...,c k ), calculate the cluster center c of each distributed resource i The membership degree m ij , specifically: Where k is the number of clusters, Represents distributed resource p j With cluster center c i The Euclidean distance between bj represents the Euclidean distance between each distributed resource and the bth cluster center, z is the fuzzy index, and the value of z is [0,1); According to the degree of membership and the distributed resource p j With cluster center c i The Euclidean distance between Calculate the objective function: Determine whether the membership in the objective function satisfies the following three conditions at the same time: If not, the cluster center is updated, specifically: If it is satisfied, the load suppliers and energy storage suppliers are clustered according to the clustering center. Multiple load suppliers with the same clustering center are called a load aggregator, and multiple energy storage suppliers with the same clustering center are called an energy storage aggregator. The k clustering centers are composed of f load aggregators and g energy storage aggregators.

4. The user management method according to claim 3, characterized in that: In the process of power trading, the degree of dishonesty of the load business or the energy storage business is represented by a deviation value Δ: Among them, E c is the agreed load or agreed power supply, E e It is the actual load or actual power supply; The credit incentive value of aggregator i for the zth electricity transaction for: in, refers to the scope of the zth transaction of aggregator i, δ is the symbol coefficient, satisfying is the incentive coefficient; After completing an electricity transaction, the credit incentive value is calculated based on this electricity transaction. Then update the comprehensive historical reputation value of the aggregator after the zth electricity transaction Among them, γ∈[0,1], comprehensive historical reputation value Only the ex times of electricity transactions closest to the current electricity transaction are considered. When calculating the current credit value, the furthest historical incentive value will be removed. If it is less than ex times, it will not be considered. Aggregators The comprehensive historical reputation of the medium-load aggregator f is The comprehensive historical reputation of energy storage aggregator g is when When the aggregator is judged as a malicious node by the blockchain, When When , the aggregator is judged as a trusted node.

5. The user management method according to claim 4, characterized in that: The power supply quality evaluation of the aggregator is the power supply quality evaluation Q of the load aggregator on the energy storage aggregator. g , specifically: in, is the comprehensive historical reputation value of the energy storage aggregator, sat g is the score given by the load aggregator to the energy storage aggregator in this power transaction, sat g ∈[0,1], val is the value created by the load aggregator using the electricity traded, and θ is the weight of the value in the score.

6. The user management method according to claim 5, characterized in that: The power supply quality evaluation of the region is specifically as follows: Assume that x energy storage facilities under the jurisdiction of energy storage aggregator g have breached trust in a certain round of power trading, then its regional power supply quality score ENV g for: ENV g =e -x 。 7. The user management method according to claim 6, characterized in that: The comprehensive evaluation index of the aggregator is determined according to the comprehensive historical reputation value and the power supply quality evaluation, and then the bidding priority ranking of the aggregator in subsequent power transactions is determined, specifically: Comprehensive evaluation index of energy storage aggregator g after the zth round of electricity trading for: in, are the weights of the credit value, the energy storage facility power supply quality evaluation index, and the regional power supply quality evaluation index, respectively, and When bidding for power transactions, if an aggregator is judged to be suspicious, the smart contract will adjust its final bid based on its bid and reputation value. For load aggregator f, its ranking bid is: Among them, h′ f is the ranking quotation, τ is the load aggregator quotation adjustment coefficient, h f Quotes for load aggregators, h ref For market reference quotation, is the maximum value of reputation, is the comprehensive historical reputation value of the load aggregator; For energy storage aggregator g, its ranking quotation is: Among them, h′ g For the sorting quote, h g Offers for energy storage aggregators, h ref is the market reference quotation, μ is the aggregator quotation adjustment coefficient, is the maximum value of the comprehensive evaluation index. It is the minimum value of the comprehensive evaluation index.

8. A user management device based on blockchain trusted transactions, characterized in that: The user management device comprises: A comparison module, used to obtain the agreed load of the aggregator participating in the power transaction before the power transaction and the actual load in the power transaction, compare the deviation value between the agreed load and the actual load, and / or obtain the agreed power supply of the aggregator participating in the power transaction before the power transaction and the actual power supply in the power transaction, compare the deviation value between the agreed power supply and the actual power supply, and judge the degree of dishonesty of the aggregator according to the deviation value; A node judgment module is used to calculate and update the comprehensive historical reputation value of the aggregator according to the degree of dishonesty, and to judge whether the aggregator is a malicious node by comparing the comprehensive historical reputation value with a set malicious threshold value. If the comprehensive historical reputation value is lower than the malicious threshold value, the aggregator is judged to be a malicious node, and the aggregator that is a malicious node is prohibited from conducting subsequent power transactions; The comprehensive evaluation module is used to evaluate the power supply quality of the aggregator and the region respectively according to the comprehensive historical reputation value, determine the comprehensive evaluation index of the aggregator according to the comprehensive historical reputation value and the power supply quality evaluation, and determine the bidding priority ranking of the aggregator in subsequent power transactions.

9. A non-transitory computer-readable storage medium, characterized in that: The non-transitory computer-readable storage medium is used to store computer instructions. When the computer instructions are executed by the processor, the user management method based on blockchain trusted transactions as described in any one of claims 1 to 7 is implemented.

10. An electronic device, characterized in that: include: A processor, a memory and a computer program; wherein the processor is connected to the memory, the computer program is stored in the memory, and when the electronic device is running, the processor executes the computer program stored in the memory so that the electronic device executes the user management method based on blockchain trusted transactions as described in any one of claims 1 to 7.

Citation Information

Cited By

  • Multi-level flexible load cluster information sharing method and system based on block chain technology

    CN119944944A