Multi-distributed energy storage trading method based on on-chain and off-chain collaboration
By introducing node reputation evaluation model and on-chain and off-chain collaborative trading mechanism in blockchain distributed energy storage transactions, combined with the data index of alliance chain and cloud servers, transaction default and efficiency problems are solved, and more efficient and secure are achieved energy storage transactions.
Patent Information
- Application Number
- CN202310685571.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-08
- Publication Date
- 2024-11-19
- Estimated Expiration
- 2043-06-08
AI Technical Summary
The existing blockchain distributed energy storage trading technology has failed to effectively solve the problems of transaction defaults and slower transaction rates, and has not designed a detailed design of smart contracts and data storage verification mechanisms.
Adopt a multi-distributed energy storage trading platform based on alliance chains to establish a node reputation evaluation model, combine a multi-energy storage trading mechanism with on-chain and off-chain collaboration, and combine the alliance chain with cloud servers to establish data indexes to improve transaction efficiency and Security.
Reduce default behavior through the reputation evaluation model, improve transaction efficiency, ensure transaction security and reliability, and optimize data storage methods to adapt to the needs of diversified distributed energy storage trading scenarios.
Smart Images

Figure CN116894730B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of energy storage resource trading, and in particular to a multi-distributed energy storage trading method based on on-chain and off-chain collaboration. Background Art
[0002] The development of distributed energy storage technology has transformed grid users from unilateral energy consumers to prosumers with supply capabilities. This has not only changed the traditional consumption relationship in the power market, but also made the safe and reliable trading of multiple distributed energy storage a new challenge facing the power system.
[0003] Reference [1]: Key technologies of distributed energy trading based on blockchain, Wang Beibei, Li Yachao, Zhao Shengnan, et al. Key technologies of distributed energy trading based on blockchain [J]. Automation of Electric Power Systems, 2019, 43(14): 53-64. In response to the problem of distributed energy consumption, a trading model combining blockchain and distributed energy trading is proposed. This model analyzes the advantages and disadvantages of peer-to-peer trading, centralized clearing model and consensus mechanism, but does not clarify the smart contract corresponding to the trading model. It also does not consider the trading default caused by the large volatility of new energy output and the strong profit-seeking of users.
[0004] Reference [2]: Distributed energy trading technology based on blockchain, Shen Zeyu, Chen Sijie, Yan Zheng, et al. Distributed energy trading technology based on blockchain [J]. Proceedings of the CSEE, 2021, 41(11): 3841-3851. A distributed energy trading scheme based on smart contracts is proposed. This trading scheme associates the difference in user network fees with credit management during transaction settlement, thereby incentivizing users to maintain good transaction records. However, this document does not consider the problem that the increase in transaction history data leads to a slower transaction rate.
[0005] Reference [3]: Structured data management method based on blockchain storage expansion, Yu Bin, Li Xiaofeng, Zhao He. Structured data management method based on blockchain storage expansion [J]. Journal of Beijing Institute of Technology, 2019, 39(11): 1160-1166. A structured data management method is proposed to address the current problems of capacity structure expansion in blockchain data storage. This method alleviates the pressure on node data storage and further promotes the development of blockchain, but does not mention how to verify the authenticity of uploaded data.
[0006] Reference [4]: Distributed Optimization of Power Grid Considering EV Swap Station Scheduling and Blockchain Data Storage, Wang Guannan, Yang Jingfei, Wang Shuo, et al. Distributed Optimization of Power Grid Considering EV Swap Station Scheduling and Blockchain Data Storage [J]. Automation of Electric Power Systems, 2019, 43(08): 110-116+182., proposed a power system blockchain model. The model recorded in it stores all historical data in the blockchain, but does not design the relevant smart contracts in detail.
[0007] Therefore, combining the characteristics of distributed energy storage transactions, improving the existing blockchain data storage method, improving transaction efficiency and perfecting the user energy storage transaction mechanism is an urgent problem to be solved. Summary of the invention
[0008] In view of the above shortcomings, the present invention proposes a multi-distributed energy storage transaction method based on on-chain and off-chain collaboration. First, a multi-distributed energy storage transaction platform architecture based on the alliance chain is established. In order to link the economic efficiency of user transactions with user reputation values, a node reputation value evaluation model is designed; secondly, a multi-distributed energy storage transaction mechanism with on-chain and off-chain collaboration is proposed; finally, a data index is established by combining the alliance chain with the cloud server. The method of the present invention can improve transaction efficiency while ensuring the security and reliability of energy storage transactions.
[0009] The technical solution adopted by the present invention is:
[0010] The multi-distributed energy storage transaction method based on on-chain and off-chain collaboration includes the following steps:
[0011] Step 1: Establish a node reputation value evaluation model based on the default behavior in distributed energy storage transactions;
[0012] Step 2: Under the condition of overlapping transaction cycles, based on the node reputation value evaluation model established in step 1, a multi-energy storage transaction mechanism with on-chain and off-chain collaboration is proposed. After the transaction users verify the validity of the smart contract signed on the chain, they can transfer energy storage off-chain.
[0013] Step 3: Combine the alliance chain and cloud server, establish a data index, and obtain the historical energy storage transaction data in the cloud server from the alliance chain node index information.
[0014] In step 1, user transactions and user reputation values are linked together. After the buyer and seller sign a smart contract, if the actual energy storage transaction volume of either party is inconsistent with the signed smart contract, the user's reputation value will be deducted depending on the circumstances.
[0015] In step 1, the establishment of the node reputation value evaluation model includes the following steps:
[0016] S1.1: The initial credit value of each trading user i is set to 1. The multi-distributed energy storage trading platform based on the alliance chain updates the credit value according to the actual energy storage delivery situation of the user at the end of the transaction;
[0017] S1.2: When the user's actual energy storage delivery does not match the energy storage signed in the smart contract, the credit value is calculated based on the completion of the contract. The specific calculation method is as follows:
[0018]
[0019] In the formula, For user i in the Tth N The reputation value of periodic transactions; For user T N Contract storage capacity for periodic transactions; For user i in the Tth N The actual amount of energy storage delivered during the period; For user i in the Tth N The deviation storage capacity of periodic transactions; ξ is the allowable deviation storage capacity.
[0020] S1.3: Users participating in energy storage transactions need to pay a certain amount of security deposit to the multi-distributed energy storage trading platform based on the alliance chain before the transaction begins. The calculation method of the security deposit to be paid is as follows:
[0021]
[0022] In the formula, For subject i in the T N The margin required to be paid at the beginning of the cycle transaction; R max is the maximum value of the reputation value; For subject i in the T N-1 The reputation value after the cycle transaction; For the T N The market price of energy purchased during the cycle.
[0023] In step 2, the multi-energy storage transaction mechanism of on-chain and off-chain collaboration includes the following steps:
[0024] S2.1: After the user enters the multi-distributed energy storage trading platform based on the alliance chain, he / she formulates an energy storage trading plan based on the actual energy storage surplus and the actual quotation, and randomly generates an encrypted string connected to the real quotation, which is then hashed and sealed into the smart contract. At the same time, the user needs to deposit a deposit into the smart contract in advance based on the node reputation value evaluation model;
[0025]
[0026] In the formula, is the transaction information published by the user; k is the transaction energy storage category, which includes electric storage, hydrogen storage and thermal storage; T N The amount of storage energy requested by user i in the period; T N The price that periodic users demand to purchase energy storage; The address of the smart contract issued for users to purchase energy storage; The address of the smart contract that verifies the electronic credentials for participating users; Sign the transaction user's private key.
[0027] S2.2: When the quotation time expires, the user will take the initiative to make the encrypted string and his actual quotation public. The smart contract will perform a hash operation to confirm whether the sealed quotation is consistent with the operation result. If they are consistent, the next step of transaction matching will be carried out; if they are inconsistent, the user's quotation will be deemed invalid, and the user will be deemed a malicious participant. The user will lose the qualification for this transaction and be deducted a certain credit value and fine. Users who need to sell energy storage report the sales volume and sales price. After receiving a valid quotation, the smart contract will match the transaction according to the quotation and user needs. After the user signs, a transaction order is generated. The multi-distributed energy storage trading platform based on the alliance chain verifies the validity of the transaction order and issues an electronic certificate to the buyer;
[0028] S2.3: The off-chain physical transmission transaction is carried out after the on-chain transaction smart contract of step S2.2 is signed. The multi-distributed energy storage trading platform based on the alliance chain will send the signed order to the off-chain energy storage transmission service provider for energy storage transmission. After the energy storage transmission is completed, the energy storage meter will report the actual amount of storage energy extracted by the buyer to the multi-distributed energy storage trading platform based on the alliance chain, and the multi-distributed energy storage trading platform based on the alliance chain will collect the electronic certificate from the buyer.
[0029]
[0030] In the formula, T N The actual storage delivery volume of the cycle seller.
[0031] The multi-distributed energy storage trading platform uses the alliance chain as the network support architecture, which is divided into two parts: the physical layer and the network layer. In the physical layer, after each trading user signs a smart contract, the distributed energy storage delivery is carried out through the physical network architecture.
[0032] When energy storage is transmitted at the physical layer off-chain, the seller starts a new round of trading cycle and continues to release energy sales information to the market, namely:
[0033]
[0034] In the formula, T N The amount of storage available for sale by cycle sellers; T N The price at which cycle sellers sell storage; The address of the smart contract published by the seller to sell the energy stored.
[0035] S2.4: After the transaction is completed, the on-chain transaction order information and the actual off-chain transmission volume are compared. If the user's actual energy storage delivery does not match the smart contract transaction volume, the multi-distributed energy storage trading platform based on the alliance chain will deduct points from its reputation value according to the node reputation value evaluation model.
[0036] In the step 3, a smart contract is designed in the multi-distributed energy storage trading platform based on the alliance chain, and combined with the cloud server to establish a data index, that is, to obtain the complete historical energy storage transaction data in the cloud server from the alliance chain node index information;
[0037] Before the data storage process, the Supervisory Authority (SA) initializes the system. The Supervisory Authority SA generates a bilinear group G0 and a bilinear map e: G0×G0→G1, and selects a secure random number. The master key MK and the public key PK are calculated, where G1 is the prime number multiplication cyclic group. For a finite field, the expression is as follows:
[0038] MK=(β,g α );
[0039] PK=(G0,g,g β ,e(g,g) α );
[0040] In the formula, g is the generator characteristic; β is a secure random number; g α , g β is the number generated by the algorithm; e(x) is the bilinear mapping function; e(g,g) α The number generated by the bilinear mapping function.
[0041] In step 3, the energy storage transaction data storage process is roughly divided into three parts: user application registration part, access to historical transaction data part and transaction data sharing part;
[0042] 1) User application registration:
[0043] The user uses the ID to apply to the Attribute Authority (AA) node for registration. Other nodes confirm the user's identity information and register it in the data storage platform. The AA node will receive the user attribute set AttrSet packaged from other nodes:
[0044] AttrSet=<Org,Attr1,Attr2,…,ID> ;
[0045] In the formula, Org is the alliance organization identifier; Attr is the attribute of the collection.
[0046] After verification, the AttrSet registered by the user with valid identity will be sent to the Attribute Authorization Chain (AAC). AA uses all the user attributes and MK to generate the corresponding private key, randomly selects t, h x ∈G0 corresponds to the attribute x in the attribute set S, and the user's final private key SK is calculated:
[0047]
[0048] Where K is the base point of the elliptic curve; g α , g βt is the number generated by the algorithm; L is the linear transformation; K x is the round key; t is a random number; h x is a random number belonging to G0, h x The number generated by the algorithm; It means that any attribute x belongs to the attribute set S.
[0049] 2) Access historical transaction data:
[0050] When a transaction user accesses data, his / her identity is DU. DU applies for data access from the node in the alliance chain. After the user's identity is verified, the transaction data address Addr that DU intends to access is queried through the Data Information Chain (DIC). Data and key CT key .
[0051] DU can obtain the ciphertext data CT through the data channel established between the alliance chain and the cloud server Data ; Finally, the user uses the private key to decrypt the secret key to obtain the key, and then decrypts the ciphertext data according to the key to obtain the corresponding historical transaction data.
[0052] 3) Transaction data sharing:
[0053] When a trading user shares data, his / her identity is DO, and when sharing historical transaction data, he / she selects the SM4 encryption algorithm to encrypt the transaction data and obtain CT. Data . Upload the encrypted data to the cloud server and obtain the data address returned.
[0054] DO designs data access strategy P, where P generates LSSS matrix (M, ρ), M is l×n access structure matrix, and ρ is the attribute mapping function shadowed by the matrix; use<P,PK> Encrypt the key key to get CT key , select a random vector v = (s, y2, y3, ... y n ), where s is the main secret, y2, y3, …y n Represents a key subshare.
[0055] Randomly select l λ i =vM i is the secret sharing key share, v is the above random vector; M i is the access structure matrix. Finally, CT is calculated key :
[0056]
[0057] In the formula, C * , C′ and C i are all secret values generated by the algorithm; e(x) is a bilinear mapping function; e(g,g) αs is the number generated after the bilinear mapping function is calculated; g s , It is the number generated by the algorithm. Expose values for attributes; D i is the sub-secret value; g i It is the algorithm reasoning process.
[0058] The generated data ciphertext and file-related information are packaged and sent to the Fabric node Peer. After the node verifies the endorsement, the transaction information is sent to DIC, and the on-chain results and related information are returned to DO.
[0059] The present invention provides a multi-distributed energy storage transaction method based on on-chain and off-chain collaboration, and the technical effects are as follows:
[0060] 1) In step 1 of the present invention, in the traditional energy storage transaction blockchain, there are the following potential breaches of contract between participating users: the seller / buyer completes the signing of the smart contract, but during the actual energy storage delivery, one party fails to perform the contract, causing economic losses to the other party. In response to the above problems, the present invention establishes a node reputation value evaluation model to improve the security of energy storage transactions and avoid malicious node attacks.
[0061] 2) In step 2 of the present invention, unlike the traditional blockchain transaction mode that requires the end of the previous transaction cycle before the next transaction can be carried out, the transaction mechanism proposed in the present invention allows users to make the next round of transaction quotations during the fund settlement period of the previous transaction cycle. Therefore, the multi-chain and off-chain coordinated multi-energy storage transaction mechanism proposed in the present invention can improve the transaction efficiency of users and ensure the economic benefits of users; at the same time, it can effectively regulate the multi-distributed energy storage, and the adjusted energy storage system can maintain a good storage and release state, which is conducive to the coordinated operation of energy storage.
[0062] 3) In step three of the present invention, different from the traditional blockchain data storage method, the data storage method proposed in the present invention combines the alliance chain and the cloud server, stores the data index on the chain, and stores the complete data in the cloud server. Therefore, the more transactions there are and the larger the data is, the more advantages the data storage method proposed in the present invention has over the traditional blockchain data storage method.
[0063] 4) The method of the present invention can improve transaction efficiency while ensuring the security and reliability of energy storage transactions, and meet the requirements of diversified distributed energy storage transaction scenarios for transaction reliability, data flexibility, and diversified energy storage. BRIEF DESCRIPTION OF THE DRAWINGS
[0064] Figure 1 It is a flow chart of the energy storage trading method of the present invention.
[0065] Figure 2 It is a comparison chart of power changes of heat storage system.
[0066] Figure 3 It is a comparison chart of power storage system changes.
[0067] Figure 4 This is a comparison chart of the power changes of the hydrogen storage system.
[0068] Figure 5 This is a comparison chart of the number of blocks produced in different transaction modes.
[0069] Figure 6 It is a flow chart of the node reputation evaluation model.
[0070] Figure 7 This is a data index structure diagram.
[0071] Figure 8 This is a flow chart of the traditional centralized energy storage trading mechanism.
[0072] Fig. 9 The flowchart for the on-chain and off-chain collaborative energy storage transaction mechanism is shown in Scenario 2.
[0073] Fig.10 The flowchart for the on-chain and off-chain collaborative energy storage transaction mechanism is shown in Scenario 3. DETAILED DESCRIPTION
[0074] The present invention will be further described in detail below in conjunction with embodiments and drawings, but the embodiments of the present invention are not limited thereto.
[0075] A multi-distributed energy storage trading method based on on-chain and off-chain collaboration.
[0076] Firstly, a node reputation evaluation model is established for default behavior in distributed energy storage transactions;
[0077] Then, a multi-distributed energy storage trading mechanism based on on-chain and off-chain collaboration is constructed;
[0078] Finally, the alliance chain and cloud server are combined to establish a data index, and the historical energy storage transaction data is stored in the cloud server.
[0079] The data index is an ordered arrangement of historical data in the data table. It contains the data sorting method and the data pointer after using the method. The data pointer points to the historical data in the data table in the cloud server. Through the data index, the complete historical energy storage transaction data in the cloud server can be obtained from the alliance chain node index information. Its structure diagram is as follows Figure 7 shown.
[0080] Figure 2 to Figure 4 The following are power change comparison diagrams of heat storage, electricity storage, and hydrogen storage systems under three scenarios. The present invention is based on fabric-chaincode-java to write chaincode to implement the constructed smart contract, realize chaincode installation and instantiation, and submit user energy storage transactions to the Fabric network. The system includes 6 Peer nodes, corresponding to 6 multi-distributed energy storage transaction user nodes, which are interconnected to form a local area network for transaction mechanism instance simulation.
[0081] The present invention arranges energy storage users to trade in the energy storage market according to their needs, and sets three simulation scenarios:
[0082] Scenario 1 is a traditional centralized energy storage trading mechanism, the flow chart is as follows: Figure 8 As shown:
[0083] Scenario 2 is based on the traditional blockchain energy storage transaction mechanism. The flow chart is as follows: Fig. 9 As shown;
[0084] Scenario 2 is based on the traditional blockchain energy storage transaction mechanism. The flow chart is as follows: Fig.10 shown.
[0085] The energy storage systems of users in scenarios 1 and 2 are relatively disordered. In scenario 3, based on the on-chain and off-chain collaborative energy storage transaction mode proposed by the present invention, the energy storage power of the electricity storage, heat storage and hydrogen storage systems has a clear trend of becoming stable, among which the change in the electricity storage system is the most obvious. This is because traditional centralized energy storage transactions require data to be reported to energy storage aggregators, and the matching process between buyers and sellers takes a long time, resulting in the accumulation of energy storage in the energy storage system. In scenario 2, decentralized energy storage transactions are implemented based on traditional blockchains, but because the transaction cycles do not overlap and the increase in the number of transactions slows down the transaction, the storage cannot be sold in time. In the scenario 3 mode, users can freely choose buyers or sellers according to market quotations when trading. On-chain transaction signing and off-chain physical energy storage transmission are carried out simultaneously, which increases the number of transactions and reduces energy storage accumulation while ensuring the reliability of energy storage transactions.
[0086] Figure 5 It is a comparison chart of the number of blocks produced in different transaction modes. Scenario 2 adopts the traditional blockchain energy storage transaction mode, and the user transaction data is stored on the blockchain. The more transactions, the slower the block speed in the blockchain. Scenario 3 adopts the data storage method proposed by the present invention, that is, the data storage platform encrypts the original data and uploads it to the cloud server for storage and combines the alliance chain and the cloud server. When the data is less than 15MB, the number of blocks produced in scenario 2 and scenario 3 is not much different. When the data is greater than 15MB, the number of blocks produced in scenario 3 is more than that in scenario 2. As the data gradually increases, the number of blocks produced in scenario 3 gradually increases, and a significant gap gradually forms with the number of blocks produced in scenario 2. This is because the more transactions, the larger the data, and the slower the traditional blockchain method of storing data. Scenario 3 stores the complete data in the cloud server, and only the data index needs to be stored on the chain. Therefore, the more transaction data, the more advantageous the data storage method of the present invention is.
[0087] Figure 6 The flowchart of the node reputation evaluation model is shown below. Before the transaction begins, users participating in energy storage transactions need to pay a deposit to the platform. At the beginning of the transaction, the initial reputation value of each trading user is set to 1. After signing the smart contract, if the user's actual energy storage delivery is inconsistent with the storage capacity specified in the smart contract, the reputation value needs to be calculated based on the user's contract completion degree, and a certain amount of margin will be deducted as a penalty for breach of contract. Finally, the trading platform updates the reputation value based on the user's actual energy storage delivery at the end of the transaction.
[0088] Table 1 shows the impact of different user reputation values
[0089]
[0090] Table 1 shows the impact of different user reputation values. It can be seen from the table that users have different expenditures and benefits under different reputation values. Among them, user 3 has the highest reputation value, so when he is a buyer, he only needs to pay a deposit of 437.6 yuan, the least amount, and the purchase of energy storage expenditure is the lowest. As a seller, user 3 obtains the highest income. User 4, who has the lowest reputation value, needs to pay the most protection money, has the highest expenditure as a buyer, and has the lowest income as a seller. This is because at the same price, users with higher reputation values are more likely to be selected.
Claims
1. A multi-distributed energy storage trading method based on on-chain and off-chain collaboration, characterized by The following steps are involved: Step 1: Establish a node reputation value evaluation model based on the default behavior in distributed energy storage transactions; Step 2: Based on the node reputation evaluation model established in step 1, a multi-chain energy storage transaction mechanism with on-chain and off-chain collaboration is proposed. After the transaction user verifies that the smart contract signed on the chain is valid, off-chain energy storage transmission is carried out; Step 3: Combine the alliance chain and the cloud server, establish a data index, and obtain the historical energy storage transaction data in the cloud server from the alliance chain node index information; In step 1, the establishment of the node reputation value evaluation model includes the following steps: S1.1: Set up each transaction user The initial credit value of each is 1. The multi-distributed energy storage trading platform based on the alliance chain updates the credit value according to the actual energy storage delivery situation of the user at the end of the transaction; S1.2: When the user's actual energy storage delivery does not match the energy storage signed in the smart contract, the credit value is calculated based on the completion of the contract. The specific calculation method is as follows: ; ; In the formula, For users In the The reputation value of periodic transactions; For user Contract storage capacity for periodic transactions; For users In the The actual amount of energy storage delivered during the period; For users In the Deviation storage capacity of cycle trading; To store energy for allowable deviations; S1.3: Users participating in energy storage transactions need to pay a certain amount of security deposit to the multi-distributed energy storage trading platform based on the alliance chain before the transaction begins. The calculation method of the security deposit to be paid is as follows: ; In the formula, As the main In the The margin required to start a cycle transaction; is the maximum value of the reputation value; As the main In the The reputation value after the cycle transaction; For the The market price of energy purchased during the cycle; In step 3, the energy storage transaction data storage process is divided into three parts: user application registration part, access to historical transaction data part and transaction data sharing part; 1) User application registration: The user uses his / her ID to apply for registration with the Attribute Authority (AA) node. After the identity information is confirmed by other nodes, the user is registered in the data storage platform. The Attribute Authority (AA) node receives the user attribute set generated by each node. : ; In the formula, is the alliance institution identifier; is the attribute of the collection; Registered by a verified, valid user Will be sent to the Attribute Authorization Chain (AAC); AA uses all the user's attributes and Generate the corresponding private key, randomly select , Corresponding attribute set Properties in , calculate the user's final private key : ; In the formula, is the elliptic curve base point; , It is the number generated by the algorithm. is a linear transformation; is the round key; is a random number; For A random number, for The number generated by the algorithm; Represents any attribute All belong to the attribute collection ; 2) Access historical transaction data: When a transaction user accesses data, his / her identity is DU. DU applies for data access from the node in the alliance chain. After the user's identity is verified, the transaction data address that DU intends to access is queried through the Data Information Chain (DIC). and key ; DU can obtain encrypted data through the data channel established between the alliance chain and the cloud server ; Finally, the user uses the private key to decrypt the key and obtain , and then according to Decrypt the ciphertext data to obtain the corresponding historical transaction data; 3) Transaction data sharing: When a trading user shares data, his / her identity is DO, and when sharing historical transaction data, he / she selects the SM4 encryption algorithm to encrypt the transaction data. ; Upload the encrypted data to the cloud server and obtain the data address returned; DO design data access strategy , To generate the LSSS matrix , for Access the structure matrix, It is the attribute mapping function followed by the matrix; use Key Encrypted , choose a random vector ,in, For the Lord's secret, represents a key sub-share; Random Selection indivual , , is the secret sharing key share, is the above random vector; is the access structure matrix; the final calculation is : In the formula, , and They are all secret values generated by the algorithm; is a bilinear mapping function; It is the number generated after the bilinear mapping function is calculated; , It is the number generated by the algorithm; Expose values for attributes; is the sub-secret value; For the algorithm reasoning process; The generated data ciphertext and file-related information are packaged and sent to the Fabric node Peer. After the node verifies the endorsement, the transaction information is sent to DIC, and the on-chain results and related information are returned to DO.
2. The multi-distributed energy storage trading method based on on-chain and off-chain collaboration according to claim 1 is characterized in that: In step 1, user transactions and user reputation values are linked together. After the buyer and seller sign a smart contract, if the actual energy storage transaction volume of either party is inconsistent with the signed smart contract, the user's reputation value will be deducted depending on the circumstances.
3. The multi-distributed energy storage trading method based on on-chain and off-chain collaboration according to claim 1 is characterized in that: In step 2, the multi-energy storage transaction mechanism with on-chain and off-chain collaboration includes the following steps: S2.1: After the user enters the multi-distributed energy storage trading platform based on the alliance chain, he / she formulates an energy storage trading plan based on the actual energy storage surplus and the actual quotation, and randomly generates an encrypted string connected to the real quotation, which is then hashed and sealed into the smart contract. At the same time, the user needs to deposit a deposit into the smart contract in advance based on the node reputation value evaluation model; ; In the formula, Transaction information published for users; For the types of energy storage traded, they are electricity storage, hydrogen storage, and thermal storage; for Cycle User The amount of storage capacity sought; for The price that periodic users demand to purchase energy storage; The address of the smart contract issued for users to purchase energy storage; The address of the smart contract that verifies the electronic credentials for participating users; Sign the private key of the transaction user; S2.2: When the quotation time expires, the user will take the initiative to make the encrypted string and his actual quotation public. The smart contract will perform a hash operation to confirm whether the sealed quotation is consistent with the operation result. If they are consistent, the next step of transaction matching will be carried out; if they are inconsistent, the user's quotation will be deemed invalid and the user will be deemed a malicious participant. The user will lose the qualification for this transaction and be deducted a certain credit value and fine. Users who need to sell energy storage report the sales volume and sales price. After receiving a valid quotation, the smart contract will match the transaction according to the quotation and user needs; after the user signs, a transaction order is generated. The multi-distributed energy storage trading platform based on the alliance chain verifies the validity of the transaction order and issues an electronic certificate to the buyer; S2.3: The off-chain physical transmission transaction is carried out after the on-chain transaction smart contract of the above step S2.2 is signed; the multi-distributed energy storage trading platform based on the alliance chain sends the signed order to the off-chain energy storage transmission service provider for energy storage transmission. After the energy storage transmission is completed, the energy storage meter reports the actual amount of storage energy extracted by the buyer to the multi-distributed energy storage trading platform based on the alliance chain, and the multi-distributed energy storage trading platform based on the alliance chain collects the electronic certificate from the buyer. ; ; In the formula, for The actual storage delivery volume of the cycle seller; When energy storage is transmitted at the physical layer off-chain, the seller starts a new round of trading cycle and continues to release energy sales information to the market, namely: ; In the formula, for The amount of storage available for sale by cycle sellers; for The price at which cycle sellers sell storage; The address of the smart contract issued by the seller to sell the energy storage power; S2.4: After the transaction is completed, the on-chain transaction order information and the actual off-chain transmission volume are compared. If the user's actual energy storage delivery does not match the smart contract transaction volume, the multi-distributed energy storage trading platform based on the alliance chain will deduct points from its reputation value according to the node reputation value evaluation model.
4. The multi-distributed energy storage trading method based on on-chain and off-chain collaboration according to claim 1 is characterized in that: In the step 3, a smart contract is designed in the multi-distributed energy storage trading platform based on the alliance chain, and combined with the cloud server to establish a data index, that is, to obtain the complete historical energy storage transaction data in the cloud server from the alliance chain node index information; Before the data storage process, the Supervisory Authority (SA) initializes the system and generates a bilinear group and bilinear mapping : , select a secure random number Calculate the master key and the public key ,in, is the prime multiplication cyclic group, For a finite field, the expression is as follows: ; ; In the formula, For the generator characteristics; is a secure random number; , It is the number generated by the algorithm; is a bilinear mapping function; The number generated by the bilinear mapping function.
Citation Information
Patent Citations
A symmetric searchable encryption method based on a block chain
CN109670331A
Data processing method and system based on power transaction
CN111209585A
Electric energy transaction method based on credit consensus mechanism
CN111932253A
Decentralized data access control method and system based on block chain
CN112073479A
Cloud service privacy protection reputation system based on block chain
CN112818388A
