CN110400144A - A kind of electricity transaction method and device based on block chain - Google Patents
A kind of electricity transaction method and device based on block chain Download PDFInfo
- Publication number
- CN110400144A CN110400144A CN201910717373.3A CN201910717373A CN110400144A CN 110400144 A CN110400144 A CN 110400144A CN 201910717373 A CN201910717373 A CN 201910717373A CN 110400144 A CN110400144 A CN 110400144A
- Authority
- CN
- China
- Prior art keywords
- node
- electricity
- power
- target
- seller
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 230000005611 electricity Effects 0.000 title claims abstract description 254
- 238000000034 method Methods 0.000 title claims abstract description 44
- 230000004044 response Effects 0.000 claims description 18
- 230000008569 process Effects 0.000 description 7
- 230000006399 behavior Effects 0.000 description 6
- 230000009471 action Effects 0.000 description 5
- 238000010586 diagram Methods 0.000 description 5
- 230000006870 function Effects 0.000 description 3
- 238000011161 development Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 238000010248 power generation Methods 0.000 description 2
- 238000013475 authorization Methods 0.000 description 1
- 230000002146 bilateral effect Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q20/00—Payment architectures, schemes or protocols
- G06Q20/38—Payment protocols; Details thereof
- G06Q20/382—Payment protocols; Details thereof insuring higher security of transaction
- G06Q20/3829—Payment protocols; Details thereof insuring higher security of transaction involving key management
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q40/00—Finance; Insurance; Tax strategies; Processing of corporate or income taxes
- G06Q40/04—Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q50/00—Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
- G06Q50/06—Energy or water supply
Landscapes
- Business, Economics & Management (AREA)
- Engineering & Computer Science (AREA)
- Accounting & Taxation (AREA)
- General Business, Economics & Management (AREA)
- Theoretical Computer Science (AREA)
- Economics (AREA)
- Strategic Management (AREA)
- Physics & Mathematics (AREA)
- Finance (AREA)
- General Physics & Mathematics (AREA)
- Marketing (AREA)
- Health & Medical Sciences (AREA)
- Technology Law (AREA)
- Development Economics (AREA)
- Public Health (AREA)
- Water Supply & Treatment (AREA)
- General Health & Medical Sciences (AREA)
- Human Resources & Organizations (AREA)
- Primary Health Care (AREA)
- Tourism & Hospitality (AREA)
- Computer Security & Cryptography (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The invention discloses a kind of electricity transaction methods based on block chain, applied to target block chain, target block chain includes electricity consumption side's node and sale of electricity side's node, wherein, intelligent contract is stored on electricity consumption side's node and sale of electricity side's node, intelligent contract is used to that electricity consumption side's node and sale of electricity side's node demand to be issued and be completed the transaction of corresponding electricity consumption side's node and corresponding sale of electricity side's node, it include: that target sale of electricity side node is chosen in sale of electricity side's node of the target block chain according to power purchase request when receiving the power purchase request of target electricity consumption side node publication;Target electricity consumption side node and target sale of electricity side node initiate to trade and sign a contract;Transaction according to contract execution target electricity consumption side's node and target sale of electricity side node.Above-mentioned method of commerce realizes the transaction of electricity consumption side's node and sale of electricity side's node using intelligent contract, and the intelligence contract data is transparent, can not distort, and avoids the fraud of electricity consumption side and sale of electricity side.
Description
Technical Field
The invention relates to the technical field of block chains, in particular to a block chain-based power transaction method and device.
Background
With the development of renewable energy power generation technologies such as photovoltaic and wind power, distributed power generation is increasingly popular and widely applied to power distribution networks, meets the social development requirements, and can improve the comprehensive utilization efficiency of energy and the power supply reliability.
At present, due to the fact that information existing in the distributed energy transaction process is not transparent and rules are not disclosed, fraudulent behaviors of power consumers and power sellers exist.
Disclosure of Invention
In view of this, the invention provides a block chain-based electric power transaction method and device, which are used for solving the problem that in the prior art, due to the fact that information is opaque and rules are not disclosed in the distributed energy transaction process, fraudulent behaviors exist between a power consumer and a power seller. The specific scheme is as follows:
a power transaction method based on a block chain is applied to a target block chain, the target block chain comprises a power utilization node and a power selling node, wherein intelligent contracts are stored on the power utilization node and the power selling node, and are used for issuing the demands of the power utilization node and the power purchasing node and completing the transaction of the corresponding power utilization node and the corresponding power selling node, and the method comprises the following steps:
when an electricity purchasing request issued by a target electricity consumer node is received, selecting a target electricity vendor node from electricity vendor nodes of the target block chain according to the electricity purchasing request;
the target electricity consumer node and the target electricity seller node initiate a transaction and sign a contract;
and executing the transaction of the target power utilization party node and the target power selling party node according to the contract.
The above method, optionally, further includes:
and deploying the contract on other power utilization nodes and power selling nodes except the target power utilization node and the target power selling node in the target block chain.
Optionally, in the foregoing method, when receiving a power purchase request issued by a target power consumer node, selecting a target power consumer node from power consumer nodes of the target block chain according to the power purchase request, where the method includes:
acquiring a target transaction type in the intelligent contract;
and selecting a target electricity selling party node corresponding to the electricity purchasing request from the electricity selling party nodes of the target block chain according to the target transaction type.
Optionally, in the foregoing method, when the transaction type is the first transaction type, selecting a target electricity seller node corresponding to the electricity purchasing request from the electricity seller nodes of the target block chain includes:
acquiring the power consumer identification, the power consumption and the expected electricity charge price contained in the electricity purchasing request;
acquiring a response file of the power seller node to the power purchase request, wherein the response file is obtained by encrypting the supply information of the power seller node through a public key of the power seller node;
decrypting the response file to obtain the seller identifier, the power supply amount and the electricity charge price of the seller node;
and comparing the expected electricity price with the electricity price of the corresponding electricity selling party node according to the electricity consumption and the power supply amount of the corresponding electricity selling party node, and selecting a target electricity selling party node matched with the target electricity node.
Optionally, in the foregoing method, when the transaction type is a second transaction type, selecting a target electricity seller node corresponding to the electricity purchasing request from the electricity seller nodes of the target block chain includes:
when an electricity purchasing request issued by a target electricity consumer node is received, acquiring a demand contract corresponding to the electricity purchasing request and a supply contract corresponding to supply information of an electricity vendor node;
acquiring each power selling party node meeting the demand contract and each power consuming party node meeting the supply contract by respectively adopting a preset matching algorithm;
and selecting a target electricity selling party node matched with the target electricity selling party node from the electricity selling party nodes.
An electric power transaction device based on a block chain is applied to a target block chain, wherein the target block chain comprises an electricity utilization node and an electricity selling node, intelligent contracts are stored on the electricity utilization node and the electricity selling node, and the intelligent contracts are used for issuing the demands of the electricity utilization node and the electricity selling node and completing the transaction of the corresponding electricity utilization node and the corresponding electricity selling node, and the electric power transaction device comprises:
the selection module is used for selecting a target electricity selling party node from the electricity selling party nodes of the target block chain according to an electricity purchasing request when the electricity purchasing request issued by the target electricity using party node is received;
the transaction signing module is used for starting transaction and signing contract by the target power consumer node and the target power seller node;
and the execution module is used for executing the transaction of the target power utilization party node and the target power selling party node according to the contract.
The above apparatus, optionally, further comprises:
and the deployment module is used for deploying the contract to other power consumer nodes and power seller nodes except the target power consumer node and the target power seller node in the target block chain.
The above apparatus, optionally, the selecting module includes:
the acquisition unit is used for acquiring the target transaction type in the intelligent contract;
and the selecting unit is used for selecting a target electricity seller node corresponding to the electricity purchasing request from the electricity seller nodes of the target block chain according to the target transaction type.
Optionally, in the above apparatus, when the transaction type is a first transaction type, the selecting unit includes:
the first selection subunit is used for acquiring the power consumer identifier, the power consumption and the expected electricity fee price which are contained in the electricity purchasing request;
a first obtaining subunit, configured to obtain a response file of the power seller node to the power purchase request, where the response file is obtained by encrypting supply information of the power seller node through a public key of the power seller node;
the decryption obtaining subunit is used for decrypting the response file to obtain the power seller identifier, the power supply amount and the electricity charge price of the power seller node;
and the comparison and selection subunit is used for comparing the expected electricity price with the electricity price of the corresponding electricity selling party node according to the electricity consumption and the power supply amount of the corresponding electricity selling party node, and selecting the target electricity selling party node matched with the target electricity node.
Optionally, in the above apparatus, when the transaction type is a second transaction type, the selecting unit includes:
the second acquiring subunit is used for acquiring a demand contract corresponding to the electricity purchasing request and a supply contract corresponding to the supply information of the electricity selling party node when receiving the electricity purchasing request issued by the target electricity using party node;
the third acquiring subunit is used for acquiring each power selling party node meeting the demand contract and each power consuming party node meeting the supply contract by respectively adopting a preset matching algorithm;
and the second selection subunit is used for selecting a target power selling party node matched with the target power selling party node from the power selling party nodes.
Compared with the prior art, the invention has the following advantages:
the invention discloses an electric power transaction method based on a block chain, which is applied to a target block chain, wherein the target block chain comprises an electricity utilization side node and an electricity selling side node, intelligent contracts are stored on the electricity utilization side node and the electricity selling side node, and the intelligent contracts are used for issuing the demands of the electricity utilization side node and the electricity selling side node and completing the transaction of the corresponding electricity utilization side node and the corresponding electricity selling side node, and comprise the following steps: when an electricity purchasing request issued by a target electricity consumer node is received, selecting a target electricity vendor node from the electricity vendor nodes of the target block chain according to the electricity purchasing request; the target electricity consumer node and the target electricity seller node start transaction and sign contract; and executing the transaction of the target power consumer node and the target power seller node according to the contract. According to the transaction method, the transaction of the power consumer node and the power seller node is realized by adopting the intelligent contract, the intelligent contract data is transparent and can not be tampered, and the fraudulent behaviors of the power consumer and the power seller are avoided.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart of a block chain-based power transaction method disclosed in an embodiment of the present application;
fig. 2 is a block chain based peer-to-peer transaction diagram according to an embodiment of the present disclosure;
fig. 3 is a schematic diagram of an automatic matching transaction based on a blockchain according to an embodiment of the present disclosure;
fig. 4 is a block diagram of a block chain-based power transaction apparatus according to an embodiment of the present disclosure.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The invention discloses a block chain-based electric power transaction method and a block chain-based electric power transaction device, which are applied to the transaction process of electric power energy, utilize the characteristics of non-tampering and traceability of intelligent contracts in a block chain to reduce the fraudulent behaviors of buyers and sellers, assume good credit bridges to realize the requirements of distributed electric power transaction such as authorization, traceability, transparent transaction, non-tampering and the like.
In the embodiment of the invention, the intelligent contract is a commitment defined in a digital form, and the intelligent contract is a script which runs on the blockchain in a modularized and automatic execution mode and can realize a series of functions such as data processing, value transfer, asset management and the like. The intelligent contract is essentially a program, has the characteristics of data transparency, non-falsification, permanent operation and the like, and is responsible for realizing, compiling and deploying the business logic of the target block chain in the form of codes, completing condition triggering and automatic execution of established rules and reducing manual intervention to the maximum extent. The user side node and the electricity selling side node participate together to make an intelligent contract, the contract comprises the right and obligation of both sides, the triggering condition and the executed action after triggering, the intelligent contract is realized by programming a programming language, and the intelligent contract is disclosed to all sides. The trigger condition may be a prescribed time, may be externally entered transactions and data, a node deploying a contract, collectively performing an action specified before contract content is completed, saving run state to the target blockchain using a consensus algorithm.
The execution flow of the transaction method is shown in fig. 1, and includes the steps of:
s101, when an electricity purchasing request issued by a target electricity consumer node is received, selecting a target electricity vendor node from electricity vendor nodes of the target block chain according to the electricity purchasing request;
in an embodiment of the present invention, the target block chain includes a plurality of power consumers 'nodes and power vendors' nodes, where the target power consumer node is a power consumer node currently issuing a power purchase request, and the power purchase request includes: the system comprises an electric party identifier, electric quantity and expected electric charge price, wherein the electric party identifier can be an ID (identity), a number or other identifiers capable of indicating identity information of an electric party, a plurality of target electric nodes can issue an electric demand at the same time, and target electric selling nodes are selected from electric selling nodes of a target block chain according to the electric demand, wherein the target electric selling nodes are matched with the transaction requests of the target electric party nodes.
S102, the target power consumer node and the target power seller node start transaction and sign contract;
in the embodiment of the invention, when a successful selection instruction of the target electricity seller node is received, the identifier of the target electricity seller node is obtained, wherein the identifier can be an ID (identity), a serial number or other identifiers capable of indicating identity information of the electricity seller, and the target electricity seller node is enabled to initiate a transaction to the target electricity seller node and sign a contract according to the identifier.
S103, executing the transaction of the target power utilization party node and the target power selling party node according to the contract.
In the embodiment of the present invention, the contract may specify an electricity fee price, constraint terms, and the like, and the target electricity selling node and the target electricity utilization node perform transactions through the electricity fee price and the electricity consumption amount specified in the contract or other information.
Further, the contract is deployed in the other power consumers 'nodes and power vendors' nodes except the target power consumer 'node and the target power vendor' node in the target block chain, so that the power consumers 'nodes and the power vendor' nodes in the target block chain are synchronized.
The invention discloses an electric power transaction method based on a block chain, which is applied to a target block chain, wherein the target block chain comprises an electricity utilization side node and an electricity selling side node, intelligent contracts are stored on the electricity utilization side node and the electricity selling side node, and the intelligent contracts are used for issuing the demands of the electricity utilization side node and the electricity selling side node and completing the transaction of the corresponding electricity utilization side node and the corresponding electricity selling side node, and comprise the following steps: when an electricity purchasing request issued by a target electricity consumer node is received, selecting a target electricity vendor node from the electricity vendor nodes of the target block chain according to the electricity purchasing request; the target electricity consumer node and the target electricity seller node start transaction and sign contract; and executing the transaction of the target power consumer node and the target power seller node according to the contract. According to the transaction method, the transaction of the power consumer node and the power seller node is realized by adopting the intelligent contract, the intelligent contract data is transparent and can not be tampered, and the fraudulent behaviors of the power consumer and the power seller are avoided.
In the embodiment of the present invention, when an electricity purchase request issued by a target electricity consumer node is received, a method flow of selecting a target electricity vendor node from electricity vendor nodes of the target block chain according to the electricity purchase request is shown in fig. 2, and includes the steps of:
s201, acquiring a target transaction type in the intelligent contract;
in an embodiment of the present invention, the transaction types of the intelligent contract include: the method comprises the following steps of point-to-point calling transaction and automatic matching transaction, wherein the point-to-point transaction corresponds to the first transaction type, the automatic matching transaction corresponds to the second transaction type, and the target transaction type is determined before the transaction starts, wherein the target transaction type is one of point-to-point transaction or automatic matching transaction.
S202, selecting a target electricity seller node corresponding to the electricity purchasing request from the electricity seller nodes of the target block chain according to the target transaction type.
In the embodiment of the present invention, when the target transaction type is a point-to-point transaction, the transaction flow is as shown in fig. 3, and the power consumer node directly writes a demand contract including information such as a power consumer ID, a power consumption amount, an expected electricity charge price, and the like, on the target block chain. And a plurality of power seller nodes seeing the demand contract encrypt response files containing information such as power seller IDs, power supply amount, power charge prices and the like by using public keys of corresponding power sellers and directly write the response files on the target block chain in a ciphertext mode. And the corresponding power consumer node decrypts the response file by using a private key on the target block chain, compares the expected power cost price with the power cost price of the corresponding power consumer node according to the power consumption and the power supply quantity of the corresponding power consumer node, selects a power consumer meeting the conditions from the target power consumer node matched with the target power consumer node, and signs a contract.
In the embodiment of the invention, when the target transaction type is automatic matching transaction, a schematic diagram of a transaction process is shown in fig. 3, an electric consumer node directly writes a demand contract containing information such as an electric consumer ID, electric consumption, an electric charge price capable of being paid, a trading constraint condition and the like on the target block chain, and simultaneously triggers a matching algorithm intelligent contract to obtain each electric consumer node meeting the demand contract. And the power selling party nodes directly write a supply contract containing information such as power selling party ID, power supply amount, power charge price, transaction constraint conditions and the like on the target block chain, trigger an intelligent contract of a matching algorithm to obtain each power consuming party node meeting the supply contract, and select target power selling party nodes matched with the target power consuming party nodes from the power selling party nodes according to a continuous bilateral auction algorithm. The meeting demand contract/supply contract automatically initiates a transaction, signing the contract.
In the embodiment of the invention, in the transaction method, the power seller and the power consumer realize the release of the demand information and the supply information of the supply and demand party through the target block chain. And realizing diversified electricity selling schemes by means of the target block chain, and connecting interest related parties by using the target block chain to realize point-to-point transaction between the distributed electricity selling party and the electricity using party and automatic settlement between multiple distributed electricity transaction main bodies. And the electricity seller and the electricity consumer report information such as electricity price, generated energy, electricity consumption, transaction constraint conditions and the like, and automatically match and match according to the intelligent contract of the target block chain and the supply and demand conditions, and complete related transactions. All distributed electric power transaction numbers are recorded and stored on the target block chain in a distributed mode, source flow and transaction activities can be guaranteed to be safe to a large extent, and the source flow and transaction activities can be recorded on the target block chain in a tamper-proof mode through control over intelligent contracts.
Based on the above electric power transaction method based on the block chain, in the embodiment of the present invention, an electric power transaction apparatus is further provided, which is applied to a target block chain, where the target block chain includes an electricity consumer node and an electricity seller node, where the electricity consumer node and the electricity seller node store an intelligent contract, and the intelligent contract is used to issue the demands of the electricity consumer node and the electricity seller node and complete the transaction between the electricity consumer node and the electricity seller node, and a structural block diagram of the transaction apparatus is shown in fig. 4, and includes:
a selection module 201, a transaction signing module 202 and an execution module 203.
Wherein,
the selecting module 201 is configured to, when receiving an electricity purchasing request issued by a target electricity consumer node, select a target electricity vendor node from electricity vendor nodes of the target block chain according to the electricity purchasing request;
the transaction signing module 202 is configured to initiate a transaction and sign a contract by the target consumer node and the target seller node;
the executing module 203 is configured to execute the transaction between the target power consumer node and the target power seller node according to the contract.
The invention discloses an electric power transaction device based on a block chain, which is applied to a target block chain, wherein the target block chain comprises an electricity utilization side node and an electricity selling side node, an intelligent contract is stored on the electricity utilization side node and the electricity selling side node, and the intelligent contract is used for issuing the demands of the electricity utilization side node and the electricity selling side node and finishing the transaction of the corresponding electricity utilization side node and the corresponding electricity selling side node, and comprises the following steps: when an electricity purchasing request issued by a target electricity consumer node is received, selecting a target electricity vendor node from the electricity vendor nodes of the target block chain according to the electricity purchasing request; the target electricity consumer node and the target electricity seller node start transaction and sign contract; and executing the transaction of the target power consumer node and the target power seller node according to the contract. The transaction device adopts the intelligent contract to realize the transaction of the power consumer node and the power seller node, and the intelligent contract data is transparent and can not be tampered, so that the fraudulent behaviors of the power consumer and the power seller are avoided.
In an embodiment of the present invention, the transaction apparatus further includes: a module 204 is deployed.
Wherein,
the deployment module 204 is configured to deploy the contract to the remaining power consumers and power vendors in the target block chain except for the target power consumer node and the target power vendor node.
In the embodiment of the present invention, the selecting module 201 includes:
an acquisition unit 205 and a selection unit 206.
Wherein,
the obtaining unit 205 is configured to obtain a target transaction type in the intelligent contract;
the selecting unit 206 is configured to select a target electricity seller node corresponding to the electricity purchasing request from the electricity seller nodes of the target block chain according to the target transaction type.
In this embodiment of the present invention, when the transaction type is a first transaction type, the selecting unit 206 includes:
a first selecting sub-unit 207, a first obtaining sub-unit 208, a decryption obtaining sub-unit 209 and a comparison selecting sub-unit 210.
Wherein,
the first selecting subunit 207 is configured to obtain an electric power consumer identifier, an electric power consumption amount, and an expected electric charge price included in the electric power purchase request;
the first obtaining subunit 208 is configured to obtain a response file of the power seller node to the power purchase request, where the response file is obtained by encrypting the supply information of the power seller node through a public key of the power seller node;
the decryption obtaining subunit 209 is configured to decrypt the response file, and obtain an electricity seller identifier, an electricity supply amount, and an electricity charge price of the electricity seller node;
and the comparison selection subunit 210 is configured to compare the expected electricity price with the electricity price of the corresponding electricity selling party node according to the electricity consumption and the power supply amount of the corresponding electricity selling party node, and select a target electricity selling party node matched with the target electricity node.
In this embodiment of the present invention, when the transaction type is a second transaction type, the selecting unit 206 includes:
a second acquisition subunit 211, a third acquisition subunit 212, and a second selection subunit 213.
Wherein,
the second acquiring subunit 211, configured to, when receiving a power purchase request issued by a target power consumer node, acquire a demand contract corresponding to the power purchase request and a supply contract corresponding to supply information of the power vendor node;
the third obtaining sub-unit 212 is configured to obtain, by using a preset matching algorithm, each power selling party node that meets the demand contract and each power consuming party node that meets the supply contract;
the second selecting subunit 213 is configured to select a target power selling party node matched with the target power selling party node from the power selling party nodes.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
It should be noted that, in the present specification, the embodiments are all described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments may be referred to each other. For the device-like embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
For convenience of description, the above devices are described as being divided into various units by function, and are described separately. Of course, the functions of the units may be implemented in the same software and/or hardware or in a plurality of software and/or hardware when implementing the invention.
From the above description of the embodiments, it is clear to those skilled in the art that the present invention can be implemented by software plus necessary general hardware platform. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which may be stored in a storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to the embodiments or some parts of the embodiments.
The block chain-based power transaction method and device provided by the invention are described in detail above, and a specific example is applied in the text to explain the principle and the implementation of the invention, and the description of the above embodiment is only used to help understanding the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.
Claims (10)
1. A power transaction method based on a block chain is applied to a target block chain, wherein the target block chain comprises a power utilization node and a power selling node, intelligent contracts are stored on the power utilization node and the power selling node, and the intelligent contracts are used for issuing the demands of the power utilization node and the power purchasing node and completing the transaction of the power utilization node and the power selling node and comprise the following steps:
when an electricity purchasing request issued by a target electricity consumer node is received, selecting a target electricity vendor node from electricity vendor nodes of the target block chain according to the electricity purchasing request;
the target electricity consumer node and the target electricity seller node initiate a transaction and sign a contract;
and executing the transaction of the target power utilization party node and the target power selling party node according to the contract.
2. The method of claim 1, further comprising:
and deploying the contract on other power utilization nodes and power selling nodes except the target power utilization node and the target power selling node in the target block chain.
3. The method of claim 1, wherein selecting a target electricity seller node from the electricity seller nodes of the target block chain according to an electricity purchase request issued by the target electricity seller node when the electricity purchase request is received comprises:
acquiring a target transaction type in the intelligent contract;
and selecting a target electricity selling party node corresponding to the electricity purchasing request from the electricity selling party nodes of the target block chain according to the target transaction type.
4. The method of claim 3, wherein selecting a target power seller node corresponding to the power purchase request from the power seller nodes of the target block chain when the transaction type is the first transaction type comprises:
acquiring the power consumer identification, the power consumption and the expected electricity charge price contained in the electricity purchasing request;
acquiring a response file of the power seller node to the power purchase request, wherein the response file is obtained by encrypting the supply information of the power seller node through a public key of the power seller node;
decrypting the response file to obtain the seller identifier, the power supply amount and the electricity charge price of the seller node;
and comparing the expected electricity price with the electricity price of the corresponding electricity selling party node according to the electricity consumption and the power supply amount of the corresponding electricity selling party node, and selecting a target electricity selling party node matched with the target electricity node.
5. The method of claim 3, wherein selecting a target electricity seller node corresponding to the electricity purchasing request from the electricity seller nodes of the target block chain when the transaction type is the second transaction type comprises:
when an electricity purchasing request issued by a target electricity consumer node is received, acquiring a demand contract corresponding to the electricity purchasing request and a supply contract corresponding to supply information of an electricity vendor node;
acquiring each power selling party node meeting the demand contract and each power consuming party node meeting the supply contract by respectively adopting a preset matching algorithm;
and selecting a target electricity selling party node matched with the target electricity selling party node from the electricity selling party nodes.
6. An electric power transaction device based on a block chain is applied to a target block chain, wherein the target block chain comprises an electricity utilization node and an electricity selling node, the electricity utilization node and the electricity selling node are stored with an intelligent contract, and the intelligent contract is used for issuing the demands of the electricity utilization node and the electricity selling node and completing the transaction of the electricity utilization node and the electricity selling node and comprises the following steps:
the selection module is used for selecting a target electricity selling party node from the electricity selling party nodes of the target block chain according to an electricity purchasing request when the electricity purchasing request issued by the target electricity using party node is received;
the transaction signing module is used for starting transaction and signing contract by the target power consumer node and the target power seller node;
and the execution module is used for executing the transaction of the target power utilization party node and the target power selling party node according to the contract.
7. The apparatus of claim 6, further comprising:
and the deployment module is used for deploying the contract to other power consumer nodes and power seller nodes except the target power consumer node and the target power seller node in the target block chain.
8. The apparatus of claim 6, wherein the selecting module comprises:
the acquisition unit is used for acquiring the target transaction type in the intelligent contract;
and the selecting unit is used for selecting a target electricity seller node corresponding to the electricity purchasing request from the electricity seller nodes of the target block chain according to the target transaction type.
9. The apparatus according to claim 8, wherein when the transaction type is a first transaction type, the selecting unit comprises:
the first selection subunit is used for acquiring the power consumer identifier, the power consumption and the expected electricity fee price which are contained in the electricity purchasing request;
a first obtaining subunit, configured to obtain a response file of the power seller node to the power purchase request, where the response file is obtained by encrypting supply information of the power seller node through a public key of the power seller node;
the decryption obtaining subunit is used for decrypting the response file to obtain the power seller identifier, the power supply amount and the electricity charge price of the power seller node;
and the comparison and selection subunit is used for comparing the expected electricity price with the electricity price of the corresponding electricity selling party node according to the electricity consumption and the power supply amount of the corresponding electricity selling party node, and selecting the target electricity selling party node matched with the target electricity node.
10. The apparatus according to claim 8, wherein when the transaction type is a second transaction type, the selecting unit comprises:
the second acquiring subunit is used for acquiring a demand contract corresponding to the electricity purchasing request and a supply contract corresponding to the supply information of the electricity selling party node when receiving the electricity purchasing request issued by the target electricity using party node;
the third acquiring subunit is used for acquiring each power selling party node meeting the demand contract and each power consuming party node meeting the supply contract by respectively adopting a preset matching algorithm;
and the second selection subunit is used for selecting a target power selling party node matched with the target power selling party node from the power selling party nodes.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910717373.3A CN110400144A (en) | 2019-08-05 | 2019-08-05 | A kind of electricity transaction method and device based on block chain |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910717373.3A CN110400144A (en) | 2019-08-05 | 2019-08-05 | A kind of electricity transaction method and device based on block chain |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110400144A true CN110400144A (en) | 2019-11-01 |
Family
ID=68327471
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910717373.3A Pending CN110400144A (en) | 2019-08-05 | 2019-08-05 | A kind of electricity transaction method and device based on block chain |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110400144A (en) |
Cited By (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111338849A (en) * | 2020-02-24 | 2020-06-26 | 扬州制汇互联信息技术有限公司 | Industrial demand contract execution method based on block chain |
CN111340625A (en) * | 2020-02-24 | 2020-06-26 | 扬州制汇互联信息技术有限公司 | Industrial contract execution system based on block chain |
CN111445312A (en) * | 2020-03-30 | 2020-07-24 | 深圳前海星际同辉科技有限公司 | Centralized purchasing method, device and equipment based on block chain and readable storage medium |
CN111445246A (en) * | 2020-03-30 | 2020-07-24 | 深圳前海星际同辉科技有限公司 | Block chain-based data recording method, device, equipment and storage medium |
CN111507696A (en) * | 2020-04-10 | 2020-08-07 | 杭州能链科技有限公司 | Block chain-based power transaction method and device and storage medium |
CN111507766A (en) * | 2020-04-16 | 2020-08-07 | 武汉科泽睿新材料科技有限公司 | Microgrid electric power big data transaction management system applying block chains and artificial intelligence |
CN111563801A (en) * | 2020-05-06 | 2020-08-21 | 恒宝股份有限公司 | Agricultural product production supply and demand relationship management method and system based on block chain technology |
CN112163933A (en) * | 2020-09-30 | 2021-01-01 | 厦门中源能链科技有限公司 | Carbon emission transaction method, system, mobile terminal and storage medium |
CN113205378A (en) * | 2021-04-13 | 2021-08-03 | 广东电网有限责任公司 | Electric energy transaction system based on block chain |
CN113313336A (en) * | 2020-02-27 | 2021-08-27 | 百度在线网络技术(北京)有限公司 | Block chain-based power resource allocation method and device, electronic equipment and medium |
CN113344574A (en) * | 2021-04-29 | 2021-09-03 | 广西电网有限责任公司 | Management method and storage medium for electric power transaction trusted data link |
CN113706312A (en) * | 2021-09-08 | 2021-11-26 | 北京中电普华信息技术有限公司 | Photovoltaic electricity transaction method and device based on block chain |
CN113781255A (en) * | 2021-08-06 | 2021-12-10 | 广西电网有限责任公司 | Block chain-based safe data storage method and system for electric power transaction system |
CN113869697A (en) * | 2021-09-23 | 2021-12-31 | 广东电网有限责任公司 | Control method and device for electric power transaction, electronic equipment and storage medium |
TWI813079B (en) * | 2021-11-24 | 2023-08-21 | 大陸商國創移動能源創新中心(江蘇)有限公司 | A blockchain system for power trading |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108573438A (en) * | 2018-05-09 | 2018-09-25 | 深圳汇创联合自动化控制有限公司 | A kind of autonomous transaction system of custom power based on block chain |
CN108681898A (en) * | 2018-05-15 | 2018-10-19 | 广东工业大学 | A kind of data trade method and system based on block chain |
CN109034840A (en) * | 2018-07-06 | 2018-12-18 | 北京融链科技有限公司 | The green card method of commerce and system generated based on clean energy resource |
CN109377411A (en) * | 2018-10-29 | 2019-02-22 | 南方电网科学研究院有限责任公司 | Block chain-based centralized matching transaction method and device for power market |
CN109785131A (en) * | 2018-12-21 | 2019-05-21 | 昆明理工大学 | A kind of electricity transaction method based on block chain |
-
2019
- 2019-08-05 CN CN201910717373.3A patent/CN110400144A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108573438A (en) * | 2018-05-09 | 2018-09-25 | 深圳汇创联合自动化控制有限公司 | A kind of autonomous transaction system of custom power based on block chain |
CN108681898A (en) * | 2018-05-15 | 2018-10-19 | 广东工业大学 | A kind of data trade method and system based on block chain |
CN109034840A (en) * | 2018-07-06 | 2018-12-18 | 北京融链科技有限公司 | The green card method of commerce and system generated based on clean energy resource |
CN109377411A (en) * | 2018-10-29 | 2019-02-22 | 南方电网科学研究院有限责任公司 | Block chain-based centralized matching transaction method and device for power market |
CN109785131A (en) * | 2018-12-21 | 2019-05-21 | 昆明理工大学 | A kind of electricity transaction method based on block chain |
Cited By (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111338849A (en) * | 2020-02-24 | 2020-06-26 | 扬州制汇互联信息技术有限公司 | Industrial demand contract execution method based on block chain |
CN111340625A (en) * | 2020-02-24 | 2020-06-26 | 扬州制汇互联信息技术有限公司 | Industrial contract execution system based on block chain |
CN111338849B (en) * | 2020-02-24 | 2023-07-07 | 扬州制汇互联信息技术有限公司 | Industrial demand contract execution method based on block chain |
CN113313336A (en) * | 2020-02-27 | 2021-08-27 | 百度在线网络技术(北京)有限公司 | Block chain-based power resource allocation method and device, electronic equipment and medium |
CN111445312A (en) * | 2020-03-30 | 2020-07-24 | 深圳前海星际同辉科技有限公司 | Centralized purchasing method, device and equipment based on block chain and readable storage medium |
CN111445246A (en) * | 2020-03-30 | 2020-07-24 | 深圳前海星际同辉科技有限公司 | Block chain-based data recording method, device, equipment and storage medium |
CN111507696A (en) * | 2020-04-10 | 2020-08-07 | 杭州能链科技有限公司 | Block chain-based power transaction method and device and storage medium |
CN111507766B (en) * | 2020-04-16 | 2021-06-18 | 宁波谦屹节能科技有限公司 | Microgrid electric power big data transaction management system applying block chains and artificial intelligence |
CN111507766A (en) * | 2020-04-16 | 2020-08-07 | 武汉科泽睿新材料科技有限公司 | Microgrid electric power big data transaction management system applying block chains and artificial intelligence |
CN111563801A (en) * | 2020-05-06 | 2020-08-21 | 恒宝股份有限公司 | Agricultural product production supply and demand relationship management method and system based on block chain technology |
CN112163933A (en) * | 2020-09-30 | 2021-01-01 | 厦门中源能链科技有限公司 | Carbon emission transaction method, system, mobile terminal and storage medium |
CN113205378A (en) * | 2021-04-13 | 2021-08-03 | 广东电网有限责任公司 | Electric energy transaction system based on block chain |
CN113344574A (en) * | 2021-04-29 | 2021-09-03 | 广西电网有限责任公司 | Management method and storage medium for electric power transaction trusted data link |
CN113781255A (en) * | 2021-08-06 | 2021-12-10 | 广西电网有限责任公司 | Block chain-based safe data storage method and system for electric power transaction system |
CN113706312A (en) * | 2021-09-08 | 2021-11-26 | 北京中电普华信息技术有限公司 | Photovoltaic electricity transaction method and device based on block chain |
CN113869697A (en) * | 2021-09-23 | 2021-12-31 | 广东电网有限责任公司 | Control method and device for electric power transaction, electronic equipment and storage medium |
TWI813079B (en) * | 2021-11-24 | 2023-08-21 | 大陸商國創移動能源創新中心(江蘇)有限公司 | A blockchain system for power trading |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110400144A (en) | A kind of electricity transaction method and device based on block chain | |
JP7413330B2 (en) | energy resource network | |
KR102128476B1 (en) | System and method for trading power based on blockchain smart contract | |
Pipattanasomporn et al. | A blockchain-based platform for exchange of solar energy: Laboratory-scale implementation | |
Christidis et al. | A framework for designing and evaluating realistic blockchain-based local energy markets | |
KR101955504B1 (en) | System and method for power trading | |
WO2019070357A1 (en) | Method and system for secure and private forward trading platform in transactive microgrids | |
CN111899101A (en) | Data asset transaction method based on block chain | |
CN112232813B (en) | Renewable energy power consumption certificate management method and device based on block chain | |
US20200051186A1 (en) | Real-time renewable energy credits | |
US20200334751A1 (en) | Systems and methods for additional renewable capacity credits | |
US20230134095A1 (en) | Systems, devices and methods for tracking authenticated clean energy with blockchains | |
Dzobo et al. | Proposed framework for blockchain technology in a decentralised energy network | |
JP2019185370A (en) | Electronic currency management system | |
Pipattanasomporn et al. | Blockchain-based Solar Electricity Exchange: Conceptual architecture and laboratory setup | |
CN116385164A (en) | Block chain-based carbon asset transaction system and method | |
CN113706312A (en) | Photovoltaic electricity transaction method and device based on block chain | |
Liu et al. | Blockchain-enabled renewable energy certificate trading: A secure and privacy-preserving approach | |
US20230334472A1 (en) | Automatically pairing physical assets to a non-fungible token or digital asset | |
CN116452332A (en) | Power transaction data management method, system, terminal and storage medium | |
Umar et al. | Peer-to-peer decentralized community energy management system using blockchain technology | |
CN115063244A (en) | Commodity trading system and method based on carbon emission and intelligent contract | |
CN114529376A (en) | Energy exchange data processing method and device, computer equipment and storage medium | |
Kumar et al. | Decentralized used cars Bidding application using Ethereum | |
JP7313677B2 (en) | Power trading system, power trading method, and program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20191101 |