Smart home equipment energy transaction system and method based on block chain
The blockchain-based smart home device energy trading system solves the problems of low transaction transparency, high cost, and privacy leakage in smart home energy management systems, achieving transparent, secure, and low-cost energy trading and promoting green energy consumption.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-12-29
- Publication Date
- 2026-03-27
AI Technical Summary
Existing smart home energy management systems suffer from problems such as low transparency in energy trading, high transaction costs, large price fluctuations, and easy leakage of user privacy.
The system employs a blockchain-based smart home device energy trading system, which includes a smart energy gateway, a blockchain consortium chain, smart contracts, energy coin contracts, and a zero-knowledge proof module, to achieve real-time energy data collection, automatic matching, dynamic pricing, and privacy protection.
It has achieved transparency and security in energy trading, reduced transaction costs, prevented data breaches, and promoted green energy consumption through smart contract dynamic pricing and token reward mechanisms.
Smart Images

Figure CN121746076A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of smart home, and particularly relates to a smart home device energy transaction system based on a blockchain and a method thereof. BACKGROUND
[0002] With the wide application of smart home devices, the energy consumption of various smart devices (such as smart air conditioners, smart water heaters, smart lighting systems, etc.) in the family is increasing. At the same time, the popularity of household renewable energy (such as roof photovoltaics) makes the family not only an energy consumer but also gradually an energy producer. However, the existing smart home energy management system is mostly a centralized architecture, which has the following defects: (1) Low transparency of energy transaction, and users are difficult to track the energy flow; (2) High transaction cost, and relying on third-party platforms to match; (3) Large fluctuations in energy prices, lack of automatic pricing mechanism; (4) User privacy is easily leaked, and energy use data is monopolized by the platform; Therefore, we propose a smart home device energy transaction system based on a blockchain and a method thereof. SUMMARY
[0003] The smart home device energy transaction system based on a blockchain and the method thereof are proposed to solve the problems in the background technology.
[0004] In order to achieve the above purpose, the present application adopts the following technical scheme: A smart home device energy transaction system based on a blockchain, comprising a smart energy gateway, smart devices and a blockchain consortium chain; The smart energy gateway is arranged in the home and connects all smart devices in the home; The blockchain consortium chain is connected with the smart energy gateway, and the blockchain consortium chain adopts a consortium chain architecture, which is jointly maintained by energy companies, device manufacturers and user nodes to ensure that data cannot be tampered with; The blockchain consortium chain includes a smart contract, an energy coin contract, a blockchain node and a zero-knowledge proof module, the smart contract and the energy coin contract are connected with the smart energy gateway, the blockchain node and the zero-knowledge proof module are connected, and the blockchain node is also connected with the smart energy gateway.
[0005] Preferably, the smart energy gateway collects energy consumption and power generation data of the smart devices in real time and sends them to the blockchain node.
[0006] Preferably, the smart contract can automatically match energy supply and demand, dynamically price according to real-time electricity price, carbon emission factor and device priority, and automatically settle energy transactions, and generate tamper-proof transaction records.
[0007] Preferably, the energy coin contract adopts a token incentive mechanism, issues "energy coins" for energy transaction settlement, and users can obtain token rewards through energy-saving behaviors.
[0008] Preferably, the zero-knowledge proof module adopts a privacy protection mechanism, which can hide the user's identity and energy consumption data, and only disclose necessary transaction information.
[0009] The application also proposes a blockchain-based smart home device energy transaction method, comprising the following steps: S1: The smart devices of the family report real-time power / energy to the smart energy gateway, the smart energy gateway collects the energy consumption / generation data of the smart devices in real time, then signs and writes the energy consumption / generation data, and sends them to the blockchain node; S2: The blockchain node in S1 triggers the matching algorithm, then the smart contract dynamically prices according to real-time electricity price, carbon emission factor and device priority, and automatically matches the transaction counterparty according to the supply and demand relationship, and the smart contract publishes the matching result to the blockchain node; S3: The blockchain node in S2 sends the received matching result to the smart energy gateway of the transaction parties, and the transaction parties can confirm the transaction on the smart energy gateway of the family and send it to the smart contract; S4: After receiving the confirmation of the transaction parties, the smart contract in S3 calls the energy coin contract to perform energy transfer and token settlement.
[0010] Preferably, in S4, the record of token settlement is permanently stored in the blockchain.
[0011] Compared with the prior art, the application eliminates the dependence on third-party platforms, reduces transaction costs, all transaction records are transparent and prevent energy data falsification; through zero-knowledge proof, the user's identity and electricity details are not disclosed, in addition, through the smart contract, the real-time data is dynamically priced to avoid price manipulation; through the token reward mechanism, users are encouraged to optimize energy use behavior and promote green energy consumption. BRIEF DESCRIPTION OF DRAWINGS
[0012] Figure 1 A connection diagram of a blockchain-based smart home device energy transaction system is proposed for the application; Figure 2 A flowchart of a blockchain-based smart home device energy transaction method is proposed for the application; Figure 3This is a flowchart of the privacy protection mechanism in this invention; Figure 4 This is a model diagram of the token incentive mechanism in this invention. Detailed Implementation
[0013] The technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments.
[0014] Reference Figure 1 A blockchain-based smart home device energy trading system, comprising a smart energy gateway, smart devices, and a blockchain consortium chain; A smart energy gateway is installed inside the home and connects all the smart devices in the home. The blockchain consortium blockchain connects to the smart energy gateway. It adopts a consortium blockchain architecture and is jointly maintained by energy companies, equipment manufacturers, and user nodes to ensure that the data is tamper-proof. The blockchain consortium blockchain includes smart contracts, energy coin contracts, blockchain nodes, and a zero-knowledge proof module. Both the smart contracts and energy coin contracts are connected to the smart energy gateway. The blockchain nodes are connected to the zero-knowledge proof module and also to the smart energy gateway. The smart energy gateway collects real-time energy consumption and power generation data from smart devices and sends it to blockchain nodes. Smart contracts can automatically match energy supply and demand, dynamically pricing based on real-time electricity prices, carbon emission factors, and device priority. The smart contracts can also automatically settle energy transactions, generating immutable transaction records. The energy coin contract uses a token incentive mechanism, issuing "energy coins" for energy transaction settlement. Users can earn token rewards through energy-saving behaviors. A model diagram of the token incentive mechanism is shown below. Figure 4 As shown, the zero-knowledge proof module employs a privacy protection mechanism that can hide user identity and energy consumption data, only disclosing necessary transaction information. The flowchart of the privacy protection mechanism is shown below. Figure 3 As shown; Reference Figure 2 This embodiment also proposes a blockchain-based energy trading method for smart home devices, including the following steps: S1: Smart devices in the home report real-time power / energy consumption to the smart energy gateway. The smart energy gateway collects the energy consumption / power generation data of the smart devices in real time, then signs and writes the energy consumption / power generation data, and sends it to the blockchain node. S2: The blockchain node in S1 triggers the matching algorithm, and then the smart contract dynamically prices the electricity based on real-time electricity price, carbon emission factor and equipment priority, and automatically matches trading counterparties according to supply and demand. The smart contract publishes the matching results to the blockchain node. S3: The blockchain node in S2 will send the received matching results to the smart energy gateways of both parties to the transaction. Both parties can confirm the transaction on the smart energy gateway of the household and send it to the smart contract. S4: After receiving confirmation of the transaction from both parties, the smart contract in S3 calls the energy coin contract to execute energy transfer and token settlement. The token settlement record is permanently stored in the blockchain.
[0015] This embodiment eliminates reliance on third-party platforms, reduces transaction costs, ensures all transaction records are public and transparent, and prevents energy data fraud; it uses zero-knowledge proofs to ensure that user identity and electricity usage details are not leaked, and uses smart contracts to dynamically price based on real-time data to avoid price manipulation; and it uses a token reward mechanism to encourage users to optimize their energy consumption behavior and promote green energy consumption.
[0016] The above description is only a preferred embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any equivalent substitutions or modifications made by those skilled in the art within the scope of the technology disclosed in the present invention, based on the technical solution and inventive concept of the present invention, should be covered within the scope of protection of the present invention.
Claims
1. A blockchain-based smart home device energy trading system, characterized in that, This includes smart energy gateways, smart devices, and blockchain consortium blockchains; A smart energy gateway is installed inside the home and connects all the smart devices in the home. The blockchain consortium blockchain connects to the smart energy gateway. It adopts a consortium blockchain architecture and is jointly maintained by energy companies, equipment manufacturers, and user nodes to ensure that the data is tamper-proof. The blockchain consortium chain includes smart contracts, energy coin contracts, blockchain nodes, and a zero-knowledge proof module. Both the smart contracts and energy coin contracts are connected to the smart energy gateway, and the blockchain nodes are connected to the zero-knowledge proof module, as well as the smart energy gateway.
2. The smart home device energy trading system based on blockchain according to claim 1, characterized in that, The smart energy gateway collects energy consumption and power generation data from smart devices in real time and sends them to the blockchain node.
3. The smart home device energy trading system based on blockchain according to claim 1, characterized in that, The smart contract can automatically match energy supply and demand, dynamically price energy based on real-time electricity prices, carbon emission factors, and equipment priorities, and can also automatically settle energy transactions and generate tamper-proof transaction records.
4. The smart home device energy trading system based on blockchain according to claim 1, characterized in that, The energy coin contract adopts a token incentive mechanism, which issues "energy coins" for energy transaction settlement. Users can obtain token rewards through energy-saving behaviors.
5. The smart home device energy trading system based on blockchain according to claim 1, characterized in that, The zero-knowledge proof module employs a privacy protection mechanism that can hide user identity and energy consumption data, disclosing only necessary transaction information.
6. A blockchain-based energy trading method for smart home devices, applied to the system described in any one of claims 1-5, characterized in that, Includes the following steps: S1: Smart devices in the home report real-time power / energy consumption to the smart energy gateway. The smart energy gateway collects the energy consumption / power generation data of the smart devices in real time, then signs and writes the energy consumption / power generation data, and sends it to the blockchain node. S2: The blockchain node in S1 triggers the matching algorithm, and then the smart contract dynamically prices the electricity based on real-time electricity price, carbon emission factor and equipment priority, and automatically matches trading counterparties according to supply and demand. The smart contract publishes the matching results to the blockchain node. S3: The blockchain node in S2 will send the received matching results to the smart energy gateways of both parties to the transaction. Both parties can confirm the transaction on the smart energy gateway of the household and send it to the smart contract. S4: After receiving confirmation of the transaction from both parties, the smart contract in S3 calls the energy coin contract to execute energy transfer and token settlement.
7. The method for energy trading of smart home devices based on blockchain according to claim 6, characterized in that, In S4, the record of token settlement is permanently stored in the blockchain.