Block chain-based energy consumption data transaction method, system, apparatus and device, and storage medium

By using blockchain technology in electricity consumption data transactions in the power industry, the problem of opaque transaction information and untraceable processes is solved, the efficiency and security of energy consumption data transactions are achieved, and the transparency and traceability of transactions are ensured. .

CN118747647APending Publication Date: 2024-10-08STATE GRID SHANGHAI MUNICIPAL ELECTRIC POWER CO +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410824345.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-25
Publication Date
2024-10-08

AI Technical Summary

Technical Problem

In a centralized data storage environment, electricity consumption data transactions in the power industry have problems such as opaque transaction information, untraceable processes, and inability to query authorization information, which affects transaction efficiency and security.

Method used

Adopting a blockchain-based energy consumption data trading method, the resource directory, purchase intention information, authorization information and regulatory information are received through the blockchain accounting node, and transaction intentions are generated and matched to ensure that transaction information is transparent and traceable, using intelligent The contract handles the margin transfer.

Benefits of technology

It improves the efficiency and security of energy data transactions, ensures the transparency and traceability of transactions, and reduces risks in the transaction process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118747647A_ABST
    Figure CN118747647A_ABST
Patent Text Reader

Abstract

The invention discloses a block chain-based energy consumption data transaction method, system and device, equipment and a storage medium. The block chain accounting node receives a resource directory sent by a data provider; receiving purchase intention information sent by the data demander and deposit transferred to the account of the management party; generating transaction intention information based on the purchase intention information, and broadcasting the transaction intention information in a block chain; receiving authorization information sent by an authorization party and / or supervision information sent by a supervision party; if the authorization information is matched with the authorization information of the target energy consumption data, and / or the supervision information is matched with the supervision information of the target energy consumption data, transaction information is generated; receiving target energy consumption data sent by the data provider, and sending the target energy consumption data to the data demander; and receiving confirmation information of the data demander for the target energy consumption data, and transferring the security deposit to the account of the data provider through the smart contract. The transaction efficiency and security of the energy consumption data can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present invention relate to the field of data processing technology, and in particular, to a blockchain-based energy consumption data transaction method, system, device, equipment and storage medium. Background Art

[0002] Electricity consumption data of urban enterprises and residents are generally generated by enterprises and residents, and are collected and managed by local power grid companies. They contain rich information, and the data products derived from them are one of the most frequently traded data products in the power industry. However, electricity consumption data has the characteristics of high sensitivity and large data volume, and necessary authorization and supervision are required during the transaction process. In a centralized data storage environment, there are situations such as opaque transaction information, untraceable processes, and inability to query authorization information, which seriously affect the efficiency and security of transactions. Summary of the invention

[0003] The present invention provides a method, system, device, equipment and storage medium for trading energy consumption data based on blockchain. The transaction of energy consumption data can be realized through blockchain, which can improve the transaction efficiency and security of energy consumption data.

[0004] In a first aspect, an embodiment of the present invention provides a method for trading energy consumption data based on blockchain, comprising:

[0005] The blockchain accounting node receives a resource directory sent by a data provider, and broadcasts the resource directory in the blockchain; wherein the resource directory includes at least one energy consumption data attribute;

[0006] Receiving purchase intention information sent by the data demander and the deposit transferred to the management party's account; wherein the purchase intention information includes target energy consumption data attributes;

[0007] generating transaction intention information based on the purchase intention information, and broadcasting the transaction intention information in the blockchain;

[0008] Receiving authorization information sent by an authorizer and / or supervision information sent by a supervisor, and matching the authorization information with the authorization information of the target energy consumption data, and / or matching the supervision information with the supervision information of the target energy consumption data;

[0009] If the authorization information matches the authorization information of the target energy consumption data, and / or the supervision information matches the supervision information of the target energy consumption data, then generating transaction information, and sending the transaction information to the data provider, the data demander, the supervisor, and the authorizer;

[0010] receiving the target energy consumption data sent by the data provider, and sending the target energy consumption data to the data demander;

[0011] Receive confirmation information of the target energy consumption data from the data demander, and transfer the deposit to the data provider account through a smart contract.

[0012] In a second aspect, an embodiment of the present invention further provides a blockchain-based energy consumption data trading system, including: a blockchain accounting node, a data provider, a data demander, a manager, an authorizer, and a regulator;

[0013] The blockchain accounting node is used to execute the blockchain-based energy consumption data transaction method described in an embodiment of the present invention;

[0014] The data provider is used to send a resource directory to the blockchain accounting node, and upon receiving transaction information, send target energy consumption data to the blockchain accounting node;

[0015] The data demander is used to send purchase intention information to the blockchain accounting node when receiving the resource catalog, and send confirmation information to the blockchain accounting node after receiving the target energy consumption data;

[0016] The authorizer is used to send authorization information to the blockchain accounting node after receiving the transaction intention information;

[0017] The supervisor is used to send supervisory information to the blockchain accounting node after receiving the transaction intention information;

[0018] The management party is used to receive the deposit transferred by the data demander.

[0019] In a third aspect, an embodiment of the present invention further provides a blockchain-based energy consumption data transaction device, comprising:

[0020] A resource directory receiving module, configured to receive a resource directory sent by a data provider and broadcast the resource directory in the blockchain; wherein the resource directory includes at least one energy consumption data attribute;

[0021] A purchase intention information receiving module, used to receive the purchase intention information sent by the data demander and the deposit transferred to the management party's account; wherein the purchase intention information includes the target energy consumption data attributes;

[0022] A transaction intention information generating module, configured to generate transaction intention information based on the purchase intention information, and broadcast the transaction intention information in the blockchain;

[0023] An authorization information and / or supervision information receiving module, used to receive authorization information sent by an authorizer and / or supervision information sent by a supervisor, and match the authorization information with the authorization information of the target energy consumption data, and / or match the supervision information with the supervision information of the target energy consumption data;

[0024] a transaction information generating module, configured to generate transaction information if the authorization information matches the authorization information of the target energy consumption data, and / or the supervision information matches the supervision information of the target energy consumption data, and send the transaction information to the data provider, the data demander, the supervisor and the authorizer;

[0025] A target energy consumption data receiving module, used for receiving the target energy consumption data sent by the data provider, and sending the target energy consumption data to the data demander;

[0026] The confirmation information receiving module is used to receive the confirmation information of the data demander on the target energy consumption data, and transfer the deposit to the data provider account through the smart contract.

[0027] In a fourth aspect, an embodiment of the present invention further provides an electronic device, the electronic device comprising:

[0028] at least one processor; and

[0029] a memory communicatively connected to the at least one processor; wherein,

[0030] The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the blockchain-based energy consumption data trading method described in an embodiment of the present invention.

[0031] In a fifth aspect, an embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the blockchain-based energy consumption data trading method described in an embodiment of the present invention when executed.

[0032] The embodiments of the present invention disclose a transaction method, system, device, equipment and storage medium for energy consumption data based on blockchain. The blockchain accounting node receives a resource directory sent by a data provider, and broadcasts the resource directory in the blockchain; wherein the resource directory includes at least one energy consumption data attribute; receives purchase intention information sent by a data demander and a deposit transferred to a management party's account; wherein the purchase intention information includes target energy consumption data attributes; generates transaction intention information based on the purchase intention information, and broadcasts the transaction intention information in the blockchain; receives authorization information sent by an authorizer and / or supervision information sent by a supervisor, and matches the authorization information with the authorization information of the target energy consumption data, and / or Or, match the regulatory information with the regulatory information of the target energy consumption data; if the authorization information matches the authorization information of the target energy consumption data, and / or the regulatory information matches the regulatory information of the target energy consumption data, then generate transaction information, and send the transaction information to the data provider, the data demander, the regulator and the authorizer; receive the target energy consumption data sent by the data provider, and send the target energy consumption data to the data demander; receive the confirmation information of the target energy consumption data from the data demander, and transfer the deposit to the data provider account through the smart contract. In the embodiment of the present invention, the transaction of energy consumption data is realized through blockchain, which can improve the transaction efficiency and security of energy consumption data. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] Figure 1 This is a flow chart of a method for trading energy consumption data based on blockchain in Embodiment 1 of the present invention;

[0034] Figure 2 This is a schematic diagram of the structure of a blockchain-based energy consumption data trading system in Embodiment 2 of the present invention;

[0035] Figure 3 This is a signaling diagram of a transaction method implemented by a blockchain-based energy consumption data transaction system in Embodiment 2 of the present invention;

[0036] Figure 4 It is a structural schematic diagram of a blockchain-based energy consumption data transaction device in Embodiment 3 of the present invention;

[0037] Figure 5 It is a structural schematic diagram of an electronic device in Embodiment 4 of the present invention. DETAILED DESCRIPTION

[0038] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only parts related to the present invention, rather than all structures, are shown in the accompanying drawings.

[0039] At present, the main transaction process of data products based on energy consumption data is completed offline, so it faces problems including limited transaction time and place, high communication costs between product supply and demand parties, long contract drafting time, and non-traceability of transaction process. Since data products are new commodities, there are also problems such as opaque product prices, unstable product quality, and failure to deliver on time. In the event of disputes, it is difficult to provide evidence and the dispute resolution cycle is long. At the same time, since energy consumption data is sensitive data, the legality of the transaction cannot be supervised in a timely manner, and there may be a risk of important information leakage.

[0040] Embodiment 1

[0041] Figure 1 A flowchart of a method for trading energy consumption data based on blockchain is provided in Example 1 of the present invention. This embodiment is applicable to the case where energy consumption data is traded through blockchain. The method can be executed by a transaction device for energy consumption data based on blockchain, which can be implemented in the form of software and / or hardware, and optionally, by an electronic device, which can be a mobile terminal, a PC or a server, etc.

[0042] Before implementing the following energy consumption data transaction method through blockchain, each transaction participant (including: data provider, data demander, authorizer and regulator) needs to complete registration on the blockchain. Among them, the data provider is used to publish the resource directory of energy consumption data to the blockchain, upload energy consumption data, and receive transaction income; the data demander is used to express purchase intention, pay deposit, confirm receipt, submit dispute arbitration and other operations for the energy consumption data in the resource directory; the authorizer authorizes and signs the energy consumption data that needs to be authorized; the regulator permits or denies and signs the data products that need to be regulated. Specifically, each transaction participant registers with the blockchain through the client. During the registration process, the user's key information is entered and the user type is selected. After review by the management party, a private key is assigned to it, so that each transaction participant can sign the data according to the private key. Each transaction participant interacts with the blockchain through the client.

[0043] like Figure 1 As shown, the method specifically comprises the following steps:

[0044] S110, the blockchain accounting node receives the resource directory sent by the data provider and broadcasts the resource directory in the blockchain.

[0045] Among them, the resource directory includes at least one energy consumption data attribute. Energy consumption data can be understood as electricity consumption data. The attributes of the resource directory include: directory number, release time, publisher and validity period. Energy consumption data attributes may include: data name, data type, data number, regional scope, regional granularity, time, frequency, quality, algorithm, form, price, whether to desensitize and desensitize algorithm, authorization / regulatory information, whether it can be resold, whether it can be downloaded, and delivery cycle. Among them, the data types include: data sets and data reports; the data number is the unique number of the energy consumption data in the resource directory; the regional scope refers to the regional scope that the energy consumption data can cover; the regional granularity refers to the different scales of the electricity consumption area that the energy consumption data can provide; time refers to the time range covered by the data in the product; frequency refers to the number of individual energy consumption data per unit time; quality refers to the data error level; algorithm refers to the algorithm used in the process of producing energy consumption data; form refers to the presentation form of the data product, the data set contains the attributes and units of the data, and the data report contains the report chapter directory; price refers to the selling price or price calculation method of the data product; whether to desensitize and the desensitization algorithm refer to whether the data is desensitized and the algorithm used for desensitization; authorization / regulatory information includes two types: authorization required and supervision required. If authorization is required, the authorization subject must be stated, and if supervision is required, the supervision subject must be stated; whether it can be resold stipulates whether the resource can be resold by the purchaser; whether it can be downloaded stipulates the transaction form of the energy consumption data, including read-only and downloadable; the delivery cycle refers to the time period from the effectiveness of the order to the data provider putting the data product on the chain.

[0046] Specifically, the process of broadcasting the resource directory in the blockchain can be: if the resource directory is not the resource directory sent to the blockchain for the first time, then use the smart contract to verify whether each energy usage data in the resource directory allows secondary transactions; if each energy usage data in the resource directory allows secondary transactions, then broadcast the resource directory in the blockchain.

[0047] Among them, if the resource directory is uploaded to the blockchain for the first time, there is no need to verify the resource directory. If the resource directory is not uploaded to the blockchain for the first time, the resource directory needs to be verified. The verification method is to use the matching algorithm in the smart contract to determine whether each energy consumption data in the resource directory allows secondary transactions. If each energy consumption data in the resource directory allows secondary transactions, the verification passes. At this time, the resource directory is broadcast in the blockchain so that all transaction participants registered to the blockchain can receive the resource directory. If there are one or more energy consumption data in the resource directory that do not allow secondary transactions, the verification fails. At this time, it is necessary to send a prompt message to the data provider so that the data provider can adjust the resource directory according to the prompt message.

[0048] In this embodiment, the data provider uploads the resource directory to the blockchain through the client. If the resource directory is not uploaded for the first time, the accounting node uses the matching algorithm in the smart contract to verify the energy usage data in the resource directory. If each energy usage data in the resource directory allows secondary transactions, the resource directory is broadcast on the blockchain and recorded by the accounting node.

[0049] S120, receiving the purchase intention information sent by the data demander and the deposit transferred to the management party's account.

[0050] The purchase intention information includes the target energy consumption data attributes. Specifically, the purchase intention information includes: purchase intention number, user number of the energy consumption data to be purchased, directory number, data number, specific area (address), specific granularity requirements, specific algorithm requirements, etc.

[0051] In this embodiment, after receiving the resource directory broadcast by the blockchain, if the data demander has a purchase demand for the energy consumption data therein, he / she initiates a purchase intention to the blockchain through the client, that is, sends the purchase intention information to the blockchain, and at the same time transfers a deposit to the management party's account according to the price of the intended energy consumption data, and the accounting node records the purchase intention information and the transferred deposit.

[0052] S130, generating transaction intention information based on the purchase intention information, and broadcasting the transaction intention information in the blockchain.

[0053] Among them, the transaction intention information may include the transaction intention number, the user number of the energy consumption data to be purchased, and the purchase intention number.

[0054] Specifically, the process of generating transaction intention information based on purchase intention information may be: using a smart contract to match the target energy consumption data attributes with the resource directory; if the match is successful, generating transaction intention information based on the purchase intention information.

[0055] Among them, using smart contracts to match the target energy consumption data attributes with the resource directory can be understood as: using smart contracts to obtain one or more energy consumption data attributes that match the target energy consumption data attributes in the resource directory. If they can be obtained, it means that the data provider can provide the energy consumption data required by the data demander, and the match is successful; if they cannot be obtained, it means that the data provider cannot provide the energy consumption data required by the data demander, and the match is unsuccessful. After the target energy consumption data attributes are successfully matched with the resource directory, transaction intention information is generated based on the purchase intention information, the transaction intention information is broadcasted in the blockchain, and the accounting node records the transaction intention information.

[0056] In this embodiment, if the authorization information in the target energy consumption data required by the data demander requires authorization and / or the supervision information requires supervision, the transaction intention information is broadcast in the blockchain and a deadline is set so that the authorizer and supervisor corresponding to the target energy consumption data authorize and supervise the transaction intention information within the deadline.

[0057] S140, receiving authorization information sent by the authorizer and / or supervision information sent by the supervisor, and matching the authorization information with the authorization information of the target energy consumption data, and / or matching the supervision information with the supervision information of the target energy consumption data.

[0058] Among them, the authorization information is the authorization information after the authorizer signs the transaction intention information according to the private key issued by the blockchain; the supervision information is the supervision information after the supervisor signs the transaction intention information according to the private key issued by the blockchain.

[0059] Specifically, the process of receiving the authorization information sent by the authorizer and / or the supervision information sent by the supervisor may be: receiving the signed authorization information sent by the authorizer and / or the signed supervision information sent by the supervisor. Accordingly, the process of matching the authorization information with the authorization information of the target energy consumption data, and / or matching the supervision information with the supervision information of the target energy consumption data may be: decrypting the signed authorization information to obtain the decrypted authorization information; and / or decrypting the signed supervision information to obtain the decrypted supervision information; matching the decrypted authorization information with the authorization information of the target energy consumption data, and / or matching the decrypted supervision information with the supervision information of the target energy consumption data.

[0060] In this embodiment, after the authorized party and the supervisor corresponding to the target energy consumption data receive the transaction intention information broadcast in the blockchain, the authorized party signs the transaction intention information using a private key, obtains the signed authorization information, and sends the signed authorization information to the blockchain; the supervisor signs the transaction intention information using a private key, obtains the signed supervision information, and sends the signed supervision information to the blockchain; the accounting node of the blockchain uses a smart contract to decrypt the signed authorization information and the signed supervision information; and matches the decrypted authorization information with the authorization information of the target energy consumption data, and matches the decrypted supervision information with the supervision information of the target energy consumption data.

[0061] S150, if the authorization information matches the authorization information of the target energy consumption data, and / or the supervision information matches the supervision information of the target energy consumption data, then transaction information is generated and sent to the data provider, data demander, supervisor and authorizer.

[0062] Among them, transaction information includes transaction intention number, authorization party number, regulatory party number, transaction effective period, etc.

[0063] In this embodiment, if the authorization information matches the authorization information of the target energy consumption data and the supervision information matches the supervision information of the target energy consumption data, it indicates that the transaction can be carried out. At this time, transaction information is generated and sent to the data provider, data demander, supervisor and authorizer, and the transaction information is recorded by the accounting node.

[0064] S160, receiving the target energy usage data sent by the data provider, and sending the target energy usage data to the data demander.

[0065] In this embodiment, after the transaction information is sent to the data provider, data demander, regulator and authorized party, it indicates that the order of the transaction is effective. The data provider needs to upload the target energy consumption data to the blockchain within the delivery cycle of the target energy consumption data, so that the blockchain forwards the target energy consumption data to the data demander.

[0066] Specifically, the method of receiving the target energy consumption data sent by the data provider and sending the target energy consumption data to the data demander can be: receiving the encrypted target energy consumption data sent by the data provider, and sending the encrypted target energy consumption data to the data demander, so that the data demander decrypts the encrypted target energy consumption data according to the secret key.

[0067] Among them, the secret key is sent by the data provider to the manager through the off-chain, and then sent by the manager to the data demander through the off-chain.

[0068] The data provider uses the secret key to encrypt the target energy consumption data, uploads the encrypted target energy consumption data to the blockchain, and sends the secret key to the management party through the off-chain method, and the management party then sends the secret key to the data demander through the off-chain method. The blockchain sends the encrypted target energy consumption data to the data demander, and the data demander decrypts the encrypted target energy consumption data according to the received secret key to obtain the decrypted target energy consumption data.

[0069] S170, receiving confirmation information of the target energy consumption data from the data demander, and transferring the deposit to the data provider's account through the smart contract.

[0070] Specifically, after receiving the target energy consumption data, the data demander needs to confirm the target energy consumption data within the specified time. After the blockchain receives the confirmation information of the target energy consumption data from the data demander, the security deposit is transferred from the management account to the data provider account through the smart contract. If the data demander fails to confirm within the time limit, the smart contract assumes that the transaction is completed and transfers the security deposit in the management account to the data provider account.

[0071] Optionally, after sending the target energy consumption data to the data demander, the following steps are also included: receiving the query information sent by the data demander, and using the smart contract to execute the transaction interruption operation; sending the query information to the management party for ruling; receiving the ruling result sent by the management party; if the ruling result is to continue the transaction, the deposit will be transferred to the data provider's account through the smart contract; if the ruling structure is to stop the transaction, the deposit will be returned to the data demander's account through the smart contract.

[0072] The ruling results include continuing the transaction or stopping the transaction. If the data demander has any objection to the decrypted target energy consumption data, he can send a questioning message to the blockchain, and the smart contract execution transaction will be interrupted. The management party will make a ruling within the specified time and publish the ruling result on the blockchain. The smart contract will return the deposit or pay the purchase price according to the ruling result, and the accounting node will record the ruling result.

[0073] The technical solution of this embodiment is that the blockchain accounting node receives the resource directory sent by the data provider and broadcasts the resource directory in the blockchain; wherein the resource directory includes at least one energy consumption data attribute; receives the purchase intention information sent by the data demander and the deposit transferred to the management party's account; wherein the purchase intention information includes the target energy consumption data attribute; generates transaction intention information based on the purchase intention information, and broadcasts the transaction intention information in the blockchain; receives the authorization information sent by the authorizer and / or the supervision information sent by the supervisor, and broadcasts the authorization information and the authorization information of the target energy consumption data Match, and / or, match the regulatory information with the regulatory information of the target energy consumption data; if the authorization information matches the authorization information of the target energy consumption data, and / or, the regulatory information matches the regulatory information of the target energy consumption data, then generate transaction information, and send the transaction information to the data provider, the data demander, the regulator and the authorizer; receive the target energy consumption data sent by the data provider, and send the target energy consumption data to the data demander; receive the confirmation information of the target energy consumption data from the data demander, and transfer the deposit to the data provider account through the smart contract. In the embodiment of the present invention, the transaction of energy consumption data is realized through blockchain, which can improve the transaction efficiency and security of energy consumption data.

[0074] Embodiment 2

[0075] Figure 2 is a schematic diagram of the structure of a blockchain-based energy consumption data trading system provided in Embodiment 2 of the present invention, such as Figure 2 As shown, the system includes: blockchain accounting nodes, data providers, data demanders, managers, authorizers and regulators.

[0076] Among them, the blockchain accounting node is used to execute the transaction method of energy consumption data based on blockchain in the above embodiment. The data provider is used to send a resource directory to the blockchain accounting node, and when receiving the transaction information, sends the target energy consumption data to the blockchain accounting node. The data demander is used to send purchase intention information to the blockchain accounting node when receiving the resource directory, and after receiving the target energy consumption data, sends confirmation information to the blockchain accounting node. The authorizer is used to send authorization information to the blockchain accounting node after receiving the transaction intention information. The supervisor is used to send supervision information to the blockchain accounting node after receiving the transaction intention information. The management party is used to receive the deposit transferred by the data demander.

[0077] Specifically, Figure 3 is a signaling diagram of a transaction method implemented by a blockchain-based energy consumption data transaction system in this embodiment, such as Figure 3 As shown, the method comprises the following steps:

[0078] 1. The data provider sends the resource directory to the blockchain accounting node.

[0079] 2. The blockchain accounting node uses smart contracts to verify whether the energy consumption data in the resource directory allows secondary sales.

[0080] 3. If the verification passes, the blockchain accounting node will broadcast the resource directory in the blockchain.

[0081] 4. The data demander sends purchase intention information to the blockchain node and transfers the deposit to the management account.

[0082] 5. The blockchain accounting node uses smart contracts to match the target energy consumption data attributes in the purchase intention information with the resource directory. If the match is successful, the transaction intention information is generated.

[0083] 6. The blockchain accounting node broadcasts the transaction intention information in the blockchain.

[0084] 7. The authorized party signs the transaction intention information and obtains the signed authorization information.

[0085] 8. The supervisor signs the transaction intention information and obtains the signed supervisory information.

[0086] 9. The authorizer sends the signed authorization information to the blockchain accounting node, and the regulator sends the signed supervision information to the blockchain accounting node.

[0087] 10. The blockchain accounting node decrypts the authorization information and regulatory information, and uses the smart contract to match the authorization information and regulatory information in the target energy consumption data. If the match is successful, transaction information is generated.

[0088] 11. The blockchain accounting node sends the transaction information to the data provider, data demander, regulator and authorizer.

[0089] 12. The data provider sends the encrypted target energy consumption data to the blockchain accounting node.

[0090] 13. The blockchain accounting node sends the encrypted target energy consumption data to the data demander.

[0091] 14. The data demander decrypts the target energy consumption data.

[0092] 15. The data demander sends confirmation information to the blockchain accounting node.

[0093] 16. The blockchain accounting node uses smart contracts to transfer the deposit from the manager’s account to the data provider.

[0094] The energy consumption data transaction system based on blockchain provided in this embodiment includes: blockchain accounting nodes, data providers, data demanders, managers, authorizers and regulators. The energy consumption data transaction can be realized through blockchain, which can improve the transaction efficiency and security of energy consumption data.

[0095] Embodiment 3

[0096] Figure 4 is a schematic diagram of a structure of a blockchain-based energy consumption data transaction device provided in Embodiment 3 of the present invention, such as Figure 4 As shown, the device comprises:

[0097] The resource directory receiving module 410 is used to receive the resource directory sent by the data provider and broadcast the resource directory in the blockchain; wherein the resource directory includes at least one energy consumption data attribute;

[0098] The purchase intention information receiving module 420 is used to receive the purchase intention information sent by the data demander and the deposit transferred to the management party's account; wherein the purchase intention information includes the target energy consumption data attributes;

[0099] A transaction intention information generation module 430, configured to generate transaction intention information based on the purchase intention information, and broadcast the transaction intention information in the blockchain;

[0100] The authorization information and / or supervision information receiving module 440 is used to receive the authorization information sent by the authorizer and / or the supervision information sent by the supervisor, and match the authorization information with the authorization information of the target energy consumption data, and / or match the supervision information with the supervision information of the target energy consumption data;

[0101] A transaction information generating module 450 is used to generate transaction information if the authorization information matches the authorization information of the target energy consumption data, and / or the supervision information matches the supervision information of the target energy consumption data, and send the transaction information to the data provider, the data demander, the supervisor and the authorizer;

[0102] The target energy consumption data receiving module 460 is used to receive the target energy consumption data sent by the data provider and send the target energy consumption data to the data demander;

[0103] The confirmation information receiving module 470 is used to receive the confirmation information of the data demander on the target energy consumption data, and transfer the deposit to the data provider account through the smart contract.

[0104] Optionally, the resource directory receiving module 410 is further configured to:

[0105] If the resource directory is not sent to the blockchain for the first time, the smart contract is used to verify whether each energy consumption data in the resource directory is allowed to be traded twice;

[0106] If each energy consumption data in the resource directory allows secondary transactions, the resource directory will be broadcast in the blockchain.

[0107] Optionally, the transaction intention information generating module 430 is further used to:

[0108] Use smart contracts to match target energy usage data attributes with resource catalogs;

[0109] If the match is successful, transaction intention information is generated based on the purchase intention information.

[0110] Optionally, the authorization information and / or supervision information receiving module 440 is further used to:

[0111] Receive signed authorization information sent by the authorizer and / or signed supervision information sent by the supervisor;

[0112] Decrypting the signed authorization information to obtain the decrypted authorization information; and / or decrypting the signed supervision information to obtain the decrypted supervision information;

[0113] The decrypted authorization information is matched with the authorization information of the target energy usage data, and / or the decrypted supervision information is matched with the supervision information of the target energy usage data.

[0114] Optionally, the target energy consumption data receiving module 460 is further used for:

[0115] Receive the encrypted target energy consumption data sent by the data provider, and send the encrypted target energy consumption data to the data demander, so that the data demander can decrypt the encrypted target energy consumption data according to the secret key; wherein the secret key is sent by the data provider to the manager through the off-chain, and then sent by the manager to the data demander through the off-chain.

[0116] Optionally, it further includes: a ruling result acquisition module, which is used to:

[0117] Receive questioning information sent by the data demander and use smart contracts to execute transaction interruption operations;

[0118] Send the disputed information to the administrator for adjudication;

[0119] Receive the decision results sent by the management party; the decision results include whether to continue trading or stop trading;

[0120] If the ruling is to continue the transaction, the deposit will be transferred to the data provider's account through the smart contract; if the ruling is to stop the transaction, the deposit will be returned to the data demander's account through the smart contract.

[0121] The above device can execute the methods provided by all the above embodiments of the present invention, and has the corresponding functional modules and beneficial effects of executing the above methods. For technical details not described in detail in this embodiment, please refer to the methods provided by all the above embodiments of the present invention.

[0122] Embodiment 4

[0123] Figure 5 A schematic diagram of an electronic device 10 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 processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, the connections and relationships between the components, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.

[0124] like Figure 5As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0125] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0126] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as a transaction method for energy consumption data based on blockchain.

[0127] In some embodiments, the transaction method of energy consumption data based on blockchain can be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program can be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the transaction method of energy consumption data based on blockchain described above can be performed. Alternatively, in other embodiments, the processor 11 can be configured to execute the transaction method of energy consumption data based on blockchain in any other appropriate manner (for example, by means of firmware).

[0128] Various implementations of the systems and techniques described above herein 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 implementations can 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.

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

[0130] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage 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. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. 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.

[0131] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device 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 a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).

[0132] The systems and techniques described herein may be implemented in a computing system that includes backend 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 frontend 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 backend components, middleware components, or frontend 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), a blockchain network, and the Internet.

[0133] A computing 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 client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.

[0134] 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 of the present invention can be achieved, and this document does not limit this.

[0135] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for trading energy consumption data based on blockchain, characterized in that: include: The blockchain accounting node receives a resource directory sent by a data provider, and broadcasts the resource directory in the blockchain; wherein the resource directory includes at least one energy consumption data attribute; Receiving purchase intention information sent by the data demander and the deposit transferred to the management party's account; wherein the purchase intention information includes target energy consumption data attributes; generating transaction intention information based on the purchase intention information, and broadcasting the transaction intention information in the blockchain; Receiving authorization information sent by an authorizer and / or supervision information sent by a supervisor, and matching the authorization information with the authorization information of the target energy consumption data, and / or matching the supervision information with the supervision information of the target energy consumption data; If the authorization information matches the authorization information of the target energy consumption data, and / or the supervision information matches the supervision information of the target energy consumption data, then generating transaction information, and sending the transaction information to the data provider, the data demander, the supervisor, and the authorizer; receiving the target energy consumption data sent by the data provider, and sending the target energy consumption data to the data demander; Receive confirmation information of the target energy consumption data from the data demander, and transfer the deposit to the data provider account through a smart contract.

2. The method according to claim 1, characterized in that: Broadcasting the resource directory in the blockchain includes: If the resource directory is not the resource directory sent to the blockchain for the first time, a smart contract is used to verify whether each energy consumption data in the resource directory is allowed to be traded twice; If each energy consumption data in the resource directory allows secondary transactions, the resource directory will be broadcast in the blockchain.

3. The method according to claim 1, characterized in that: Generating transaction intention information based on the purchase intention information includes: Using a smart contract to match the target energy consumption data attributes with the resource directory; If the match is successful, transaction intention information is generated based on the purchase intention information.

4. The method according to claim 1, characterized in that: Receive authorization information sent by the authorizer and / or regulatory information sent by the regulator, including: Receive signed authorization information sent by the authorizer and / or signed supervision information sent by the supervisor; Accordingly, matching the authorization information with the authorization information of the target energy usage data, and / or matching the supervision information with the supervision information of the target energy usage data, includes: Decrypting the signed authorization information to obtain decrypted authorization information; and / or decrypting the signed supervision information to obtain decrypted supervision information; The decrypted authorization information is matched with the authorization information of the target energy usage data, and / or the decrypted supervision information is matched with the supervision information of the target energy usage data.

5. The method according to claim 1, characterized in that Receiving the target energy consumption data sent by the data provider, and sending the target energy consumption data to the data demander, including: Receive the encrypted target energy consumption data sent by the data provider, and send the encrypted target energy consumption data to the data demander, so that the data demander decrypts the encrypted target energy consumption data according to the secret key; wherein the secret key is sent by the data provider to the management party through the off-chain, and then sent by the management party to the data demander through the off-chain.

6. The method according to claim 1, characterized in that After sending the target energy consumption data to the data demander, the method further includes: Receive the query information sent by the data demander, and use the smart contract to execute the transaction interruption operation; Sending the challenge information to the management party for adjudication; receiving the ruling result sent by the management party; wherein the ruling result includes continuing the transaction or stopping the transaction; If the ruling result is to continue the transaction, the deposit will be transferred to the data provider's account through the smart contract; if the ruling structure is to stop the transaction, the deposit will be returned to the data demander's account through the smart contract.

7. A blockchain-based energy consumption data trading system, characterized in that: include: Blockchain accounting nodes, data providers, data demanders, managers, authorizers and regulators; The blockchain accounting node is used to execute the blockchain-based energy consumption data transaction method described in any one of claims 1-6; The data provider is used to send a resource directory to the blockchain accounting node, and upon receiving transaction information, send target energy consumption data to the blockchain accounting node; The data demander is used to send purchase intention information to the blockchain accounting node when receiving the resource catalog, and send confirmation information to the blockchain accounting node after receiving the target energy consumption data; The authorizer is used to send authorization information to the blockchain accounting node after receiving the transaction intention information; The supervisor is used to send supervisory information to the blockchain accounting node after receiving the transaction intention information; The management party is used to receive the deposit transferred by the data demander.

8. A blockchain-based energy consumption data trading device, characterized in that: include: A resource directory receiving module, configured to receive a resource directory sent by a data provider and broadcast the resource directory in the blockchain; wherein the resource directory includes at least one energy consumption data attribute; A purchase intention information receiving module, used to receive the purchase intention information sent by the data demander and the deposit transferred to the management party's account; wherein the purchase intention information includes the target energy consumption data attributes; A transaction intention information generation module, configured to generate transaction intention information based on the purchase intention information, and broadcast the transaction intention information in the blockchain; An authorization information and / or supervision information receiving module, used to receive authorization information sent by an authorizer and / or supervision information sent by a supervisor, and match the authorization information with the authorization information of the target energy consumption data, and / or match the supervision information with the supervision information of the target energy consumption data; a transaction information generating module, configured to generate transaction information if the authorization information matches the authorization information of the target energy consumption data, and / or the supervision information matches the supervision information of the target energy consumption data, and send the transaction information to the data provider, the data demander, the supervisor and the authorizer; A target energy consumption data receiving module, used for receiving the target energy consumption data sent by the data provider, and sending the target energy consumption data to the data demander; The confirmation information receiving module is used to receive the confirmation information of the data demander on the target energy consumption data, and transfer the deposit to the data provider account through a smart contract.

9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the blockchain-based energy usage data trading method described in any one of claims 1 to 6.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the blockchain-based energy consumption data trading method described in any one of claims 1 to 6 when executed.