CN108830711A - A kind of energy internet business account book management method and system based on block chain - Google Patents

A kind of energy internet business account book management method and system based on block chain Download PDF

Info

Publication number
CN108830711A
CN108830711A CN201810427961.9A CN201810427961A CN108830711A CN 108830711 A CN108830711 A CN 108830711A CN 201810427961 A CN201810427961 A CN 201810427961A CN 108830711 A CN108830711 A CN 108830711A
Authority
CN
China
Prior art keywords
electricity
sale
scheme
power purchase
block chain
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
Application number
CN201810427961.9A
Other languages
Chinese (zh)
Inventor
陆竑
唐锦江
徐铁红
姜维
曹金鹿
王巍
赵志军
尤海霞
明阳阳
曹军威
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
HUACHUANG BRANCH OF JIAXING HENGGUANG ELECTRIC POWER CONSTRUCTION Co Ltd
Tsinghua University
Jiaxing Power Supply Co of State Grid Zhejiang Electric Power Co Ltd
Original Assignee
HUACHUANG BRANCH OF JIAXING HENGGUANG ELECTRIC POWER CONSTRUCTION Co Ltd
Tsinghua University
Jiaxing Power Supply Co of State Grid Zhejiang Electric Power Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by HUACHUANG BRANCH OF JIAXING HENGGUANG ELECTRIC POWER CONSTRUCTION Co Ltd, Tsinghua University, Jiaxing Power Supply Co of State Grid Zhejiang Electric Power Co Ltd filed Critical HUACHUANG BRANCH OF JIAXING HENGGUANG ELECTRIC POWER CONSTRUCTION Co Ltd
Priority to CN201810427961.9A priority Critical patent/CN108830711A/en
Publication of CN108830711A publication Critical patent/CN108830711A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION 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/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION 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/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/389Keeping log of transactions for guaranteeing non-repudiation of a transaction
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION 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/00Systems or methods specially adapted for specific business sectors, e.g. utilities or tourism
    • G06Q50/06Electricity, gas or water supply

Abstract

The present invention provides a kind of energy internet business account book management method and system based on block chain, the method includes:S11, by the power purchase scheme of the sale of electricity scheme of each sale of electricity side publication and the publication of each power purchase side, all participants being broadcast in block chain network;S12, according to the sale of electricity scheme and each power purchase scheme, the mode based on intelligent contract realizes the logical transaction between each sale of electricity side and each power purchase side, to generate Transaction Information;The Transaction Information is bundled to the block in the block chain network based on Byzantine failure tolerance algorithm by S13, if the size of the block is greater than preset threshold, by the Transaction Information write-in transaction account book in the block.The present invention is based on the transaction of the energy of block chain network to be realized decentralization transaction, participated in without third party, be saved human cost, and Transaction Information is written into transaction account book, Transaction Information is transparent and can not distort due to the characteristic of block chain.

Description

A kind of energy internet business account book management method and system based on block chain
Technical field
The invention belongs to energy internet information processing technology fields, more particularly, to a kind of energy based on block chain Source interconnection net transaction account book management method and system.
Background technique
Energy internet is a kind of advanced production of energy, transmission, storage and consumption network, use for reference internet thinking and Technology and create, by source-net-lotus-storage coordinated control and can provide multiple forms of energy to complement each other, sufficiently realize various distributed type renewable energy The efficient of source utilizes and shares, and relative to traditional energy network, energy internet has the spy of " open, interconnect, is reciprocity, shared " Point.
Under opening and interconnecting, customer-centric and the guidance for the new connotations such as distributed equity is shared, energy transaction will become To main body diversification, Diversification of products, decision be decentralized, Information Visibility and transaction timelyization, at the same also by presentation energy stream, The trend of information flow and the big fusion of monetary value flow.Under existing Centralized Trading pattern, energy transaction needs a large amount of third party tube Mechanism is managed to construct and safeguard transaction credit, generates great number cost.
Because energy internet overall architecture results in its related management and operation is easier to use using planarization design Related thought and technology based on distributed and coordinated control need to guarantee that its is expansible by distributed coordination and distributing control Property and safety, to relevant information processing and memory technology, more stringent requirements are proposed for this, to traditional means of information protection Propose challenge.
Summary of the invention
It constructs and ties up to overcome the above-mentioned energy internet business currently based on block chain to need third party management organization The problem of protecting transaction credit at least is partially solved the above problem, and the present invention provides a kind of energy based on block chain is mutual Networking transaction account book management method and system.
According to the first aspect of the invention, a kind of energy internet business account book management method based on block chain is provided, Including:
The power purchase scheme of the sale of electricity scheme of each sale of electricity side publication and the publication of each power purchase side is broadcast to block chain network by S11 In all participants;
S12, according to the sale of electricity scheme and each power purchase scheme, the mode based on intelligent contract realizes each sale of electricity Logical transaction between square and each power purchase side, to generate Transaction Information;
The Transaction Information is bundled to the block in the block chain network based on Byzantine failure tolerance algorithm, if institute by S13 The size for stating block is greater than preset threshold, then by the Transaction Information write-in transaction account book in the block.
Specifically, further include before the step S11:
According to the registration information of participant to the participant authorization after, the area that constructs in advance is added in the participant In block chain network;
According to the role that the participant is configured by the client of the block chain network, determine that the role is corresponding Permission;
Wherein, the role includes sale of electricity side and power purchase side;
The permission of the sale of electricity side includes publication sale of electricity scheme, and the permission of the power purchase side includes publication power purchase scheme.
Specifically, the participant includes in traditional power plants, new energy power station, power load side and electric power prosumer It is one or more;
Wherein, the role of the traditional power plants and the new energy power station is sale of electricity side, the angle of the power load side Color is power purchase side, and the role of the electric power prosumer is sale of electricity side and power purchase side.
Specifically, the participant further includes bank, and the role of the bank is energy currency exchange side;
Wherein, the permission of the energy currency exchange side is that energy coin and true is provided for each participant in the block chain network The conversion services of real currency;
The energy coin is a kind of virtual trading coin, and the sale of electricity side and the power purchase side carry out the transaction coin that transaction uses For the energy coin.
Specifically, the step S11 is specifically included:
The power purchase scheme of the sale of electricity scheme of each sale of electricity side publication and the publication of each power purchase side is arrived by Gossip protocol broadcast All participants in block chain network;Wherein, the sale of electricity scheme includes electricity volume sold and Spot Price;
The power purchase scheme includes buying electricity and the transaction coin quantity for the purchase electricity payment.
Specifically, each sale of electricity scheme and each power purchase scheme are being broadcast to owning in the block chain network Further include before participant:
It is that each sale of electricity scheme distributes sale of electricity side's private key and sale of electricity side's public key according to layering Deterministic Methods, It is that each power purchase scheme distributes power purchase side's private key and power purchase side's public key according to the layering Deterministic Methods.
Specifically, the step S12 is specifically included:
For any sale of electricity scheme and any power purchase scheme, if the electricity sales amount in the sale of electricity scheme is greater than or equal to the power purchase Purchase of electricity in scheme, and the sale of electricity price in the sale of electricity scheme is equal to the power purchase price in the power purchase scheme, then is sold according to this Electric scheme and the power purchase schemes generation trade order, meanwhile, use the corresponding sale of electricity side's private key of the sale of electricity scheme and the power purchase side The corresponding power purchase side's private key of case jointly signs to the trade order, generates Transaction Information.
According to the second aspect of the invention, a kind of energy internet business account book management system based on block chain is provided, Including:
Broadcast module, the power purchase scheme of sale of electricity scheme and the publication of each power purchase side for issuing each sale of electricity side, is broadcast to All participants in block chain network;
Module is realized, for according to each sale of electricity scheme and each power purchase scheme, the mode based on intelligent contract to be real Logical transaction between now each sale of electricity side and each power purchase side, to generate Transaction Information;
Writing module, for the Transaction Information to be bundled in the block chain network based on Byzantine failure tolerance algorithm Block, if the size of the block is greater than preset threshold, by the Transaction Information write-in transaction account book in the block.
According to the third aspect of the invention we, a kind of energy internet business account book management equipment based on block chain is provided, Including:
At least one processor, at least one processor and bus;Wherein,
The processor and memory complete mutual communication by the bus;
The memory is stored with the program instruction that can be executed by the processor, and the processor calls described program to refer to Order is able to carry out foregoing method.
According to the fourth aspect of the invention, a kind of non-transient computer readable storage medium is provided, for storing such as preceding institute State the computer program of method.
The present invention provides a kind of energy internet business account book management method and system based on block chain, one side of this method The power purchase scheme of sale of electricity scheme and the publication of each power purchase side that each sale of electricity side issues is broadcast to entire institute by block chain technology by face Block chain network is stated, each sale of electricity side and each described is realized in a manner of intelligent contract according to sale of electricity scheme and each power purchase scheme Logical transaction between power purchase side realizes the point-to-point energy transaction of decentralization, does not need third party's management, it is excellent to reach resource Change the effect of configuration;On the other hand, the pertinent transaction information in energy internet is stored and is managed by block chain technology Reason provides the safety of information management, reduces cost of processing information.
Detailed description of the invention
Fig. 1 is the energy internet business account book management method overall flow provided in an embodiment of the present invention based on block chain Schematic diagram;
Fig. 2 is the energy internet business account book management system overall structure provided in an embodiment of the present invention based on block chain Schematic diagram;
Fig. 3 is the energy internet business account book management equipment overall structure provided in an embodiment of the present invention based on block chain Schematic diagram.
Specific embodiment
With reference to the accompanying drawings and examples, specific embodiments of the present invention will be described in further detail.Implement below Example is not intended to limit the scope of the invention for illustrating the present invention.
The information processing of block chain technology and storing process have complete decentralization characteristic, using point-to-point communication and Based on the validation of information technology of common recognition algorithm, does not need authoritative institution and information process is controlled and managed, and be based on The information modification affirmation mechanism of super half ballot can be largely avoided related data and illegally be distorted, and can pass through Selective encryption protects user's relevant sensitization information, and the operating characteristics for complying fully with modern the Internet business requires and safety rule It is fixed, make it possible that it is used widely in energy internet.
Block chain uses the chain type nested partitions method authentication techniques based on block, so that current information and the close coupling of original information It closes, more difficult is become to distorting for old information.The authentication mechanism of its complete decentralization and measure are avoided and are weighed in block chain The presence of prestige authentication center mechanism, this avoids the failure of authenticating authority center mechanism and leads while greatly reducing overhead The security related of cause threatens problem, and system overall security is greatly enhanced, and safety management becomes relatively easy.Meanwhile Intelligent contract mechanism is carried out inside block chain, so that relationship trading is become simple, automation and sequencing, this guarantees from another point of view Safety of the block chain to distributing real time system.
Will source interconnection net combined with block chain and can effectively form mutual supplement with each other's advantages.On the one hand, energy internet is deposited In a large amount of distributed energy producers and consumers, the energy between them is shared and transaction need to guarantee it is open, low at Originally, convenience and safety.By fully distributed encryption and authentication techniques, block chain technology can effectively be realized above-mentioned It is required that.On the other hand, energy-consuming user is when carrying out energy-consuming, while guaranteeing account safety, it is undesirable to excessive The information privacy of exposure itself, and the block chain technology for merging high performance selective encryption and decryption technology and intelligent contract can pass through Selective encryption relevant user information, effective storage and protection privacy of user.
As seen through the above analysis, block chain technology is applied to the information management of energy internet, is especially handed over Easy account book information, can bring the significant increase of energy internet business performance, bring for the decentralization of energy internet bigger Safety.
A kind of energy internet business account book management method based on block chain is provided in one embodiment of the invention, Fig. 1 is the energy internet business account book management method overall flow schematic diagram provided in an embodiment of the present invention based on block chain, This method includes:The power purchase scheme of the sale of electricity scheme of each sale of electricity side publication and the publication of each power purchase side is broadcast to block chain by S11 All participants in network;
Wherein, block chain is the computer technologies such as Distributed Storage, point-to-point transmission, common recognition mechanism and Encryption Algorithm New application mode.Block chain network is the block chain operated on multiple nodes, and block chain network uses in the present embodiment Block chain be alliance's chain.Block chain network is decentralization, and each node in block chain network is a complete member, I.e. each node is both a client and a server.Block chain network is a P2P (Peer-to-Peer, end-to-end) Network, i.e. a node are directly connected to other nodes.Sale of electricity side is a side of sale electricity, and sale of electricity side is sold by client publication Electric scheme, sale of electricity scheme is the information about sale of electricity, such as sale of electricity price.Power purchase side is a side of purchase electricity, and power purchase side passes through visitor Issue power purchase scheme in family end.Power purchase scheme is the information of purchase electricity, such as purchase of electricity.The sale of electricity scheme and power purchase that sale of electricity side is issued The power purchase scheme of Fang Fabu is broadcast to all participants in block chain network, so that each participant is according to sale of electricity scheme and power purchase Scheme is traded.S12 realizes each sale of electricity side and each purchase according to sale of electricity scheme and each power purchase scheme in a manner of intelligent contract Logical transaction between electric side, to generate Transaction Information;
Wherein, intelligent contract is a kind of computer protocol for being intended to propagate, verify or execute in a manner of information-based contract.Intelligence Energy contract permission carries out credible transaction in no third-party situation, these transaction are traceable and irreversible, to reduce Other transaction costs relevant to contract.Logical transaction is when there is sufficient electricity in sale of electricity side, and there is sufficient energy coin in power purchase side, And the electricity price of transaction executes transaction, generation Transaction Information, so that participation root when meeting the requirement of sale of electricity side and power purchase side Point-to-point energy transaction is carried out according to flexible dynamic pricing mechanism.Logical transaction is to carry out each sale of electricity scheme and each power purchase scheme Matching determines whether to trade.Transaction Information is information relevant to transaction, information, exchange hour including both parties, Transaction one of electricity and pricing or a variety of.
Transaction Information is bundled to the block in block chain network based on Byzantine failure tolerance algorithm, if the size of block by S13 Greater than preset threshold, then by the Transaction Information write-in transaction account book in block.
Wherein, Byzantine failure tolerance algorithm is a kind of common recognition algorithm, provides individually verifying node, Transaction Information is packaged into Block.Then Transaction Information is passed through into all nodes of the Gossip protocol broadcast into block chain network.Verifying node is one Known licensed-in node.Data can be recorded permanently in the form of a file in block chain network, these files are claimed For block, i.e. block is transaction data, and each block is linked by block chain.When the size of block is greater than preset threshold, By the Transaction Information write-in transaction account book in block.Such as when the size of block reaches 2KB, the Transaction Information in block is written Transaction account book.Account book of trading is distributed account book, as records the bankbook of proprietary Transaction Information, all people to participate in business There is a bankbook, so that Transaction Information is transparent.The present embodiment is based on Hyperledger Fabric framework and is realized.
The present embodiment one side, the sale of electricity scheme for being issued each sale of electricity side by block chain technology and the publication of each power purchase side Power purchase scheme is broadcast to the entire block chain network, is realized in a manner of intelligent contract according to sale of electricity scheme and each power purchase scheme Logical transaction between each sale of electricity side and each power purchase side is realized the point-to-point energy transaction of decentralization, is not needed Third party's management, achievees the effect that most optimum distribution of resources;On the other hand, by block chain technology to the correlation in energy internet Transaction Information carries out storage and management, provides the safety of information management, reduces cost of processing information.
On the basis of the above embodiments, further include before step S11 in the present embodiment:Believe according to the registration of participant After breath is to participant authorization, add a participant in the block chain network constructed in advance;Pass through block chain network according to participant Client configuration role, determine the corresponding permission of role;Wherein, role includes sale of electricity side and power purchase side;Sale of electricity side has The permission of sale of electricity scheme is issued, power purchase side has the permission of publication power purchase scheme.
Specifically, the transaction of the decentralization energy is carried out since the present embodiment is based on Hyperledger Fabric platform, needed Will all participants by register and by authorization be added block chain network in.Participant is obtaining member's certificate after authorization And certificate of fair, wherein member's certificate is used for trading signature for identifying membership, certificate of fair.Each participant passes through block The client of chain network configures the role of oneself.Different roles has different permissions.Wherein, sale of electricity side has sale of electricity permission, Permission including issuing sale of electricity scheme, power purchase side have power purchase permission, the permission including issuing power purchase scheme.
On the basis of the above embodiments, participant includes that traditional power plants, new energy power station, electricity consumption are negative in the present embodiment One of lotus side and electric power prosumer are a variety of;Wherein, the role of traditional power plants and new energy power station is sale of electricity side, electricity consumption The role of load side is power purchase side, and the role of electric power prosumer is sale of electricity side and power purchase side.
Specifically, traditional power plants are the power plant to be generated electricity using conventional electric power generation method, and new energy power station is solar energy Power generation side and wind-power electricity generation side etc..Power load side is ordinary user and charging pile etc., and electric power prosumer is solar power generation man Front yard user and wind-power electricity generation domestic consumer etc..Wherein, the role of traditional power plants and new energy power station is sale of electricity side, only sale of electricity Permission.The role of power load side is power purchase side, only power purchase permission.The role of electric power prosumer be sale of electricity side and power purchase side, There is sale of electricity permission and power purchase permission simultaneously.
On the basis of the above embodiments, participant further includes bank in the present embodiment, and the role of bank is that energy coin is converted The side of changing;Wherein, the permission of energy currency exchange side is to provide energy coin and real money for each participant in the block chain network Conversion services;Energy coin is a kind of virtual trading coin, and it is energy coin that sale of electricity side and power purchase side, which carry out the transaction coin that transaction uses,.
Specifically, since built-in token, token are not the goods that can be used for energy transaction to Hyperledger Fabric Coin.Therefore the present embodiment can take two ways to obtain token, i.e. energy coin needed for the energy is traded.First is that being opened according to intelligent contract Energy coin is sent out to trade for the energy.After the completion of a transaction, the energy coin of respective numbers is transferred to by power purchase side automatically Sale of electricity side.In addition, energy coin can carry out free transfer by client.Second is that block link network is added using bank as participant Network, bank provide for each participant and exchange the service of energy coin.As power purchase can exchange energy to bank by way of online payment Source coin carries out energy transaction.The conversion services of energy coin and real money include real money is converted to energy coin service and It is the service of real money by energy currency exchange.The present embodiment is not limited to the type of real money.
On the basis of the various embodiments described above, step S11 is specifically included in the present embodiment:The sale of electricity that each sale of electricity side is issued Scheme and the power purchase scheme of each power purchase side publication pass through all participants of the Gossip protocol broadcast into block chain network;Its In, sale of electricity scheme includes electricity volume sold and Spot Price;Power purchase scheme includes buying electricity and the energy for purchase electricity payment Coin quantity.
Specifically, sale of electricity scheme is broadcast to all participants in block chain, power purchase by Gossip agreement by sale of electricity side Power purchase scheme is broadcast to all participants in block chain by Gossip agreement by side.Sale of electricity scheme includes electricity volume sold and reality When electricity price.Spot Price is the price for the electricity for being adjusted and being determined in real time according to actual conditions.One sale of electricity scheme can only be with One power purchase side trades.Electric power prosumer can be arranged acceptable minimum electric power in the sale of electricity scheme of its publication and sell Price.Each sale of electricity root determines the number of the sale of electricity scheme of publication according to available electricity.The present embodiment is according to flexible dynamic valence Lattice mechanism carries out point-to-point energy transaction.
On the basis of the various embodiments described above, each sale of electricity scheme and each power purchase scheme are being broadcast to block in the present embodiment Further include before all participants in chain network:It is that each sale of electricity scheme distributes sale of electricity side's private according to layering Deterministic Methods Key and sale of electricity side's public key are that each power purchase scheme distributes power purchase side's private key and a power purchase according to layering Deterministic Methods Square public key.
Specifically, layering Deterministic Methods are to use a main private key of generating random number first, then use one it is determining, Irreversible algorithm is based on main private key and generates any number of sub- private key, so that it is guaranteed that counter cannot release main private by sub- private key Key guarantees the safety of data.It is that each sale of electricity scheme distributes sale of electricity side's private key and a sale of electricity side is public in the present embodiment Key.To guarantee that each has a unique sale of electricity side by the trade order that sale of electricity scheme and the matching of power purchase scheme generate Private key and unique power purchase side's private key are corresponding.Sale of electricity side's public key is included in sale of electricity scheme and is broadcast to the whole network, power purchase side Public key is included in power purchase scheme and is broadcast to the whole network.
On the basis of the above embodiments, step S12 is specifically included in the present embodiment:For any sale of electricity scheme and any Power purchase scheme, if the electricity sales amount in the sale of electricity scheme is greater than or equal to the purchase of electricity in the power purchase scheme, and in the sale of electricity scheme Sale of electricity price be equal to the power purchase scheme in power purchase price, then according to the sale of electricity scheme and the power purchase schemes generation transaction order It is single, meanwhile, using the corresponding sale of electricity side's private key of sale of electricity scheme power purchase side's private key corresponding with the power purchase scheme jointly to described Trade order is signed, and Transaction Information is generated.
Specifically, the corresponding each transaction of each trade order needs sale of electricity side's private key and power purchase side's private key to sign jointly It is achievable.When the electricity sales amount in each sale of electricity scheme meets the needs of purchase of electricity in each power purchase scheme, and selling in each sale of electricity scheme Electricity price lattice meet the needs of power purchase price in each power purchase scheme, then form a trade order.It is sold by each sale of electricity scheme is corresponding Electricity side's private key and the corresponding power purchase side's private key of each power purchase scheme sign jointly to trade order, generate Transaction Information.This reality It applies above-mentioned logical transaction in example and passes through intelligent contract realization, the institute being then broadcast to the Transaction Information of generation in block chain network There is node.
Energy transaction in the present embodiment based on block chain network realizes decentralization friendship due to the characteristic of block chain Easily, it is participated in without third party, saves human cost, and Transaction Information is written into transaction account book, Transaction Information is transparent and can not usurp Change.
A kind of energy internet business account book management system based on block chain is provided in another embodiment of the present invention System, Fig. 2 are the energy internet business account book management system overall structure signal provided in an embodiment of the present invention based on block chain Scheme, which includes broadcast module 1, realizes module 2 and writing module 3, wherein:
The power purchase scheme of sale of electricity scheme and the publication of each power purchase side that broadcast module 1 is used to issue each sale of electricity side, is broadcast to All participants in block chain network;
Wherein, block chain is the computer technologies such as Distributed Storage, point-to-point transmission, common recognition mechanism and Encryption Algorithm New application mode.Block chain network is the block chain operated on multiple nodes, and block chain network uses in the present embodiment Block chain be alliance's chain.Block chain network is decentralization, and each node in block chain network is a complete member, I.e. each node is both a client and a server.Block chain network is a P2P (Peer-to-Peer, end-to-end) Network, i.e. a node are directly connected to other nodes.Sale of electricity side is a side of sale electricity, and sale of electricity side is sold by client publication Electric scheme, sale of electricity scheme is the information about sale of electricity, such as sale of electricity price.Power purchase side is a side of purchase electricity, and power purchase side passes through visitor Issue power purchase scheme in family end.Power purchase scheme is the information of purchase electricity, such as purchase of electricity.The sale of electricity that broadcast module 1 issues sale of electricity side Scheme and the power purchase scheme of each power purchase side publication are broadcast to all participants in block chain network, so that participant is according to power purchase Scheme and sale of electricity scheme are traded.
Realize that module 2 is used for according to each sale of electricity scheme and each power purchase scheme, the mode based on intelligent contract realizes each sale of electricity Logical transaction between square and each power purchase side, to generate Transaction Information;
Wherein, intelligent contract is a kind of computer protocol for being intended to propagate, verify or execute in a manner of information-based contract.Intelligence Energy contract permission carries out credible transaction in no third-party situation, these transaction are traceable and irreversible, to reduce Other transaction costs relevant to contract.Logical transaction is when there is sufficient electricity in sale of electricity side, and there is sufficient energy coin in power purchase side, And the electricity price of transaction executes transaction, generation Transaction Information, so that participation root when meeting the requirement of sale of electricity side and power purchase side Point-to-point energy transaction is carried out according to flexible dynamic pricing mechanism.Logical transaction is to carry out each sale of electricity scheme and each power purchase scheme Matching determines whether to trade.Transaction Information is information relevant to transaction, information, exchange hour including both parties, Transaction one of electricity and pricing or a variety of.Module 2 is realized according to each sale of electricity scheme and each power purchase scheme, based on intelligence The mode of contract realizes the logical transaction between each sale of electricity side and each power purchase side, to generate Transaction Information.
Writing module 3 is used to that Transaction Information to be bundled to the block in block chain network based on Byzantine failure tolerance algorithm, if The size of block is greater than preset threshold, then by the Transaction Information write-in transaction account book in block.
Wherein, Byzantine failure tolerance algorithm is a kind of common recognition algorithm, provides individually verifying node, Transaction Information is packaged into Block.Then Transaction Information is passed through into all nodes of the Gossip protocol broadcast into block chain network.Verifying node is one Known licensed-in node.Data can be recorded permanently in the form of a file in block chain network, these files are claimed For block, i.e. block is transaction data, and each block is linked by block chain.When the size of block is greater than preset threshold, Transaction account book is written in Transaction Information in block by writing module 3.Such as when the size of block reaches 2KB, by the friendship in block Easy information write-in transaction account book.Account book of trading is distributed account book, as records the bankbook of proprietary Transaction Information, Suo Youcan There is a bankbook with the people of transaction, so that Transaction Information is transparent.The present embodiment is based on Hyperledger Fabric frame Structure is realized.
The present embodiment one side, the sale of electricity scheme for being issued each sale of electricity side by block chain technology and the publication of each power purchase side Power purchase scheme is broadcast to the entire block chain network, is realized in a manner of intelligent contract according to sale of electricity scheme and each power purchase scheme Logical transaction between each sale of electricity side and each power purchase side is realized the point-to-point energy transaction of decentralization, is not needed Third party's management, achievees the effect that most optimum distribution of resources;On the other hand, by block chain technology to the correlation in energy internet Transaction Information carries out storage and management, provides the safety of information management, reduces cost of processing information.
It on the basis of the above embodiments, further include that module is added in the present embodiment, in the registration according to participant After information is to participant authorization, add a participant in the block chain network constructed in advance;Pass through block link network according to participant The role of the client configuration of network, determines the corresponding permission of role;Wherein, role includes sale of electricity side and power purchase side;Sale of electricity side's tool There is the permission of publication sale of electricity scheme, power purchase side has the permission of publication power purchase scheme.
On the basis of the above embodiments, participant includes that traditional power plants, new energy power station, electricity consumption are negative in the present embodiment One of lotus side and electric power prosumer are a variety of;Wherein, the role of traditional power plants and new energy power station is sale of electricity side, electricity consumption The role of load side is power purchase side, and the role of electric power prosumer is sale of electricity side and power purchase side.
On the basis of the above embodiments, participant further includes bank in the present embodiment, and the role of bank is that energy coin is converted The side of changing;Wherein, the permission of energy currency exchange side is to provide energy coin and real money for each participant in the block chain network Conversion services;Energy coin is a kind of virtual trading coin, and it is energy coin that sale of electricity side and power purchase side, which carry out the transaction coin that transaction uses,.
On the basis of the various embodiments described above, broadcast module is specifically used in the present embodiment:By selling for each sale of electricity side publication Electric scheme and the power purchase scheme of each power purchase side publication pass through all participants of the Gossip protocol broadcast into block chain network;Its In, sale of electricity scheme includes electricity volume sold and Spot Price;Power purchase scheme includes buying electricity and the energy for purchase electricity payment Coin quantity.
It further include distribution module in the present embodiment on the basis of the various embodiments described above, for according to layering certainty side Method is that each sale of electricity scheme distributes sale of electricity side's private key and sale of electricity side's public key, is each power purchase side according to layering Deterministic Methods Case distributes power purchase side's private key and power purchase side's public key.
Realize that module is specifically used on the basis of the various embodiments described above, in the present embodiment, for any sale of electricity scheme and Any power purchase scheme, if the electricity sales amount in the sale of electricity scheme is greater than or equal to the purchase of electricity in the power purchase scheme, and the sale of electricity side Sale of electricity price in case is equal to the power purchase price in the power purchase scheme, then is traded according to the sale of electricity scheme and the power purchase schemes generation Order, meanwhile, using the corresponding sale of electricity side's private key of sale of electricity scheme power purchase side's private key corresponding with the power purchase scheme jointly to institute It states trade order to sign, generates Transaction Information.
The energy internet business account book management equipment based on block chain that the present embodiment provides a kind of, Fig. 3 are that the present invention is real The energy internet business account book management equipment overall structure diagram based on block chain of example offer is applied, which includes:Extremely A few processor 31, at least one processor 32 and bus 33;Wherein,
The processor 31 and memory 32 complete mutual communication by the bus 33;
The memory 32 is stored with the program instruction that can be executed by the processor 31, and the processor calls the journey Sequence instruction is able to carry out method provided by above-mentioned each method embodiment, for example including:S11, the sale of electricity that each sale of electricity side is issued The power purchase scheme of scheme and the publication of each power purchase side, all participants being broadcast in block chain network;S12, according to the sale of electricity Scheme and each power purchase scheme, the mode based on intelligent contract realize the friendship between each sale of electricity side and each power purchase side Easy logic, to generate Transaction Information;The Transaction Information is bundled to the block link network based on Byzantine failure tolerance algorithm by S13 Block in network, if the size of the block is greater than preset threshold, by the Transaction Information write-in transaction account book in the block.
The present embodiment provides a kind of non-transient computer readable storage medium, the non-transient computer readable storage medium Computer instruction is stored, the computer instruction makes the computer execute method provided by above-mentioned each method embodiment, example Such as include:The power purchase scheme of the sale of electricity scheme of each sale of electricity side publication and the publication of each power purchase side is broadcast to block chain network by S11 In all participants;S12, according to the sale of electricity scheme and each power purchase scheme, the mode based on intelligent contract is realized respectively Logical transaction between the sale of electricity side and each power purchase side, to generate Transaction Information;S13 is based on Byzantine failure tolerance algorithm The Transaction Information is bundled to the block in the block chain network, it, will if the size of the block is greater than preset threshold Transaction Information write-in transaction account book in the block.
Those of ordinary skill in the art will appreciate that:Realize that all or part of the steps of above method embodiment can pass through The relevant hardware of program instruction is completed, and program above-mentioned can be stored in a computer readable storage medium, the program When being executed, step including the steps of the foregoing method embodiments is executed;And storage medium above-mentioned includes:ROM, RAM, magnetic disk or light The various media that can store program code such as disk.
Energy internet business account book management equipment embodiment based on block chain described above is only schematic , wherein the unit as illustrated by the separation member may or may not be physically separated, it is aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.Some or all of the modules therein can be selected to realize the mesh of this embodiment scheme according to the actual needs 's.Those of ordinary skill in the art are without paying creative labor, it can understand and implement.
Through the above description of the embodiments, those skilled in the art can be understood that each embodiment can It realizes by means of software and necessary general hardware platform, naturally it is also possible to pass through hardware.Based on this understanding, on Stating technical solution, substantially the part that contributes to existing technology can be embodied in the form of software products in other words, should Computer software product may be stored in a computer readable storage medium, such as ROM/RAM, magnetic disk, CD, including several fingers It enables and using so that a computer equipment (can be personal computer, server or the network equipment etc.) executes each implementation Method described in certain parts of example or embodiment.
Finally, the present processes are only preferable embodiment, it is not intended to limit the scope of the present invention.It is all Within the spirit and principles in the present invention, any modification, equivalent replacement, improvement and so on should be included in protection of the invention Within the scope of.

Claims (10)

1. a kind of energy internet business account book management method based on block chain, which is characterized in that including:
The power purchase scheme of the sale of electricity scheme of each sale of electricity side publication and the publication of each power purchase side is broadcast in block chain network by S11 All participants;
S12, according to each sale of electricity scheme and each power purchase scheme, the mode based on intelligent contract realizes each sale of electricity side Logical transaction between each power purchase side, to generate Transaction Information;
The Transaction Information is bundled to the block in the block chain network based on Byzantine failure tolerance algorithm, if the area by S13 The size of block is greater than preset threshold, then by the Transaction Information write-in transaction account book in the block.
2. the method according to claim 1, wherein further including before the step S11:
According to the registration information of participant to the participant authorization after, the block chain that constructs in advance is added in the participant In network;
According to the role that the participant is configured by the client of the block chain network, the corresponding power of the role is determined Limit;
Wherein, the role includes sale of electricity side and power purchase side;
The permission of the sale of electricity side includes publication sale of electricity scheme, and the permission of the power purchase side includes publication power purchase scheme.
3. according to the method described in claim 2, it is characterized in that, the participant include traditional power plants, new energy power station, One of power load side and electric power prosumer are a variety of;
Wherein, the role of the traditional power plants and the new energy power station is sale of electricity side, and the role of the power load side is Power purchase side, the role of the electric power prosumer are sale of electricity side and power purchase side.
4. according to the method described in claim 3, it is characterized in that, the participant further includes bank, the role of the bank For energy currency exchange side;
Wherein, the permission of the energy currency exchange side is to provide energy coin and true goods for each participant in the block chain network The conversion services of coin;
The energy coin is a kind of virtual trading coin, and it is institute that the sale of electricity side and the power purchase side, which carry out the transaction coin that transaction uses, State energy coin.
5. according to the method described in claim 4, it is characterized in that, the step S11 is specifically included:
The power purchase scheme of the sale of electricity scheme of each sale of electricity side publication and the publication of each power purchase side is passed through into Gossip protocol broadcast to block All participants in chain network;
Wherein, the sale of electricity scheme includes electricity volume sold and Spot Price;
The power purchase scheme includes buying electricity and the energy coin quantity for the purchase electricity payment.
6. -5 any method according to claim 1, which is characterized in that by each sale of electricity scheme and each power purchase Further include before all participants that scheme is broadcast in the block chain network:
It is that each sale of electricity scheme distributes sale of electricity side's private key and sale of electricity side's public key according to layering Deterministic Methods, according to The layering Deterministic Methods are that each power purchase scheme distributes power purchase side's private key and power purchase side's public key.
7. according to the method described in claim 6, it is characterized in that, the step S12 is specifically included:
For any sale of electricity scheme and any power purchase scheme, if the electricity sales amount in the sale of electricity scheme is greater than or equal to the power purchase scheme In purchase of electricity, and the sale of electricity price in the sale of electricity scheme be equal to the power purchase scheme in power purchase price, then according to the sale of electricity side Case and the power purchase schemes generation trade order, meanwhile, use the corresponding sale of electricity side's private key of the sale of electricity scheme and the power purchase scheme pair The power purchase side's private key answered jointly signs to the trade order, generates Transaction Information.
8. a kind of energy internet business account book management system based on block chain, which is characterized in that including:
Broadcast module, the power purchase scheme of sale of electricity scheme and the publication of each power purchase side for issuing each sale of electricity side, is broadcast to block All participants in chain network;
Module is realized, for according to the sale of electricity scheme and each power purchase scheme, the mode based on intelligent contract to realize each institute The logical transaction between sale of electricity side and each power purchase side is stated, to generate Transaction Information;
Writing module, the area for being bundled to the Transaction Information based on Byzantine failure tolerance algorithm in the block chain network Block, if the size of the block is greater than preset threshold, by the Transaction Information write-in transaction account book in the block.
9. a kind of energy internet business account book management equipment based on block chain, which is characterized in that including:
At least one processor, at least one processor and bus;Wherein,
The processor and memory complete mutual communication by the bus;
The memory is stored with the program instruction that can be executed by the processor, and the processor calls described program to instruct energy Enough methods executed as described in claim 1 to 7 is any.
10. a kind of non-transient computer readable storage medium, which is characterized in that the non-transient computer readable storage medium is deposited Computer instruction is stored up, the computer instruction makes the computer execute the method as described in claim 1 to 7 is any.
CN201810427961.9A 2018-05-07 2018-05-07 A kind of energy internet business account book management method and system based on block chain Pending CN108830711A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810427961.9A CN108830711A (en) 2018-05-07 2018-05-07 A kind of energy internet business account book management method and system based on block chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810427961.9A CN108830711A (en) 2018-05-07 2018-05-07 A kind of energy internet business account book management method and system based on block chain

Publications (1)

Publication Number Publication Date
CN108830711A true CN108830711A (en) 2018-11-16

Family

ID=64147699

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810427961.9A Pending CN108830711A (en) 2018-05-07 2018-05-07 A kind of energy internet business account book management method and system based on block chain

Country Status (1)

Country Link
CN (1) CN108830711A (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109246122A (en) * 2018-09-29 2019-01-18 上海海事大学 A kind of Byzantine failure tolerance block chain generation method based on gossip propagation agreement
CN109685225A (en) * 2018-12-26 2019-04-26 深圳市轱辘汽车维修技术有限公司 A kind of vehicle information management method and relevant device
CN109687959A (en) * 2018-12-29 2019-04-26 上海唯链信息科技有限公司 Key security management system and method, medium and computer program
CN109785131A (en) * 2018-12-21 2019-05-21 昆明理工大学 A kind of electricity transaction method based on block chain
CN109785059A (en) * 2018-12-29 2019-05-21 深圳市祥云万维科技有限公司 A kind of block chain electricity generation system and generated energy cash method
CN110246041A (en) * 2019-06-21 2019-09-17 贵州电网有限责任公司 A kind of method of commerce of the P2P energy transaction platform based on block chain
CN110445626A (en) * 2019-07-15 2019-11-12 杭州复杂美科技有限公司 Block packing, broadcasting method and system, equipment and storage medium
CN111861468A (en) * 2020-07-24 2020-10-30 上海交通大学 Regional energy Internet energy trading method based on block chain
CN112488717A (en) * 2020-12-30 2021-03-12 国网河南省电力公司南阳供电公司 Power management method based on block chain
CN112613861A (en) * 2020-12-18 2021-04-06 国网浙江省电力有限公司嘉兴供电公司 Electric power pre-sale transaction method, device and system based on alliance chain
CN115311040A (en) * 2022-07-13 2022-11-08 国网山东省电力公司营销服务中心(计量中心) Transaction platform based on block chain intelligent contract, photovoltaic transaction system and method

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017199053A1 (en) * 2016-05-19 2017-11-23 Mayne Timothy Method of matching renewable energy production to end-user consumption via blockchain systems
CN107423978A (en) * 2017-06-16 2017-12-01 郑州大学 A kind of distributed energy business confirmation method based on alliance's block chain

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017199053A1 (en) * 2016-05-19 2017-11-23 Mayne Timothy Method of matching renewable energy production to end-user consumption via blockchain systems
CN107423978A (en) * 2017-06-16 2017-12-01 郑州大学 A kind of distributed energy business confirmation method based on alliance's block chain

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109246122A (en) * 2018-09-29 2019-01-18 上海海事大学 A kind of Byzantine failure tolerance block chain generation method based on gossip propagation agreement
CN109785131A (en) * 2018-12-21 2019-05-21 昆明理工大学 A kind of electricity transaction method based on block chain
CN109685225A (en) * 2018-12-26 2019-04-26 深圳市轱辘汽车维修技术有限公司 A kind of vehicle information management method and relevant device
CN109687959B (en) * 2018-12-29 2021-11-12 上海唯链信息科技有限公司 Key security management system, key security management method, key security management medium, and computer program
CN109785059A (en) * 2018-12-29 2019-05-21 深圳市祥云万维科技有限公司 A kind of block chain electricity generation system and generated energy cash method
CN109687959A (en) * 2018-12-29 2019-04-26 上海唯链信息科技有限公司 Key security management system and method, medium and computer program
CN110246041A (en) * 2019-06-21 2019-09-17 贵州电网有限责任公司 A kind of method of commerce of the P2P energy transaction platform based on block chain
CN110246041B (en) * 2019-06-21 2020-08-25 贵州电网有限责任公司 Transaction method of P2P energy transaction platform based on block chain
CN110445626B (en) * 2019-07-15 2021-11-02 杭州复杂美科技有限公司 Block packing and broadcasting method and system, equipment and storage medium
CN110445626A (en) * 2019-07-15 2019-11-12 杭州复杂美科技有限公司 Block packing, broadcasting method and system, equipment and storage medium
CN111861468B (en) * 2020-07-24 2022-04-08 上海交通大学 Regional energy Internet energy trading method based on block chain
CN111861468A (en) * 2020-07-24 2020-10-30 上海交通大学 Regional energy Internet energy trading method based on block chain
CN112613861A (en) * 2020-12-18 2021-04-06 国网浙江省电力有限公司嘉兴供电公司 Electric power pre-sale transaction method, device and system based on alliance chain
CN112613861B (en) * 2020-12-18 2024-02-02 国网浙江省电力有限公司嘉兴供电公司 Electric power pre-selling transaction method, device and system based on alliance chain
CN112488717A (en) * 2020-12-30 2021-03-12 国网河南省电力公司南阳供电公司 Power management method based on block chain
CN115311040A (en) * 2022-07-13 2022-11-08 国网山东省电力公司营销服务中心(计量中心) Transaction platform based on block chain intelligent contract, photovoltaic transaction system and method
CN115311040B (en) * 2022-07-13 2024-03-19 国网山东省电力公司营销服务中心(计量中心) Transaction platform based on blockchain intelligent contract, photovoltaic transaction system and method

Similar Documents

Publication Publication Date Title
CN108830711A (en) A kind of energy internet business account book management method and system based on block chain
Di Silvestre et al. A technical approach to the energy blockchain in microgrids
CN109146688A (en) A kind of supply chain financial application method based on block chain alliance chain technology
CN109767336A (en) It is a kind of based on block chain P2P financing platform fund bank deposit pipe management method
CN110335147A (en) A kind of digital asset Information Exchange System and method based on block chain
CN112434343B (en) Virtual power plant safety scheduling and trading method based on dual block chain technology
CN106339939B (en) Non-tamper-able distributed bill system based on secure hardware and transaction processing method
CN110383311A (en) Supervise the transaction of block chain secret
CN108564471A (en) Energy internet security intelligent trading system based on block chain technology and its method
CN108764925A (en) A kind of synthesis business platform based on block chain technology
CN109345194A (en) A kind of electronic bill flow system
CN108305168A (en) Digital asset processing method device, shared store based on block chain
CN110333948A (en) Virtual resource allocation method and apparatus based on block chain
Wang et al. A survey of the application of blockchain in multiple fields of financial services
CN108833599B (en) Energy internet system and information processing method
CN109615396A (en) A kind of new energy operation system and method based on block chain technology
Lei et al. A renewable energy microgrids trading management platform based on permissioned blockchain
CN109886680A (en) A kind of credit circulation method based on block chain technology
CN111461712A (en) Transaction privacy protection and hierarchical supervision under block chain supply chain financial scenario
Kodali et al. Blockchain based energy trading
CN109859046A (en) One kind being based on block chain technology big data wisdom operation management system
CN109784924A (en) Warehouse receipt authentication method and device based on block chain framework
CN109727017A (en) A kind of shopping at network method, apparatus, system, server and storage medium
CN1936939A (en) Computer system for controlling medicine supply and marketing
Cai et al. Introduction to blockchain basics

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

Application publication date: 20181116

RJ01 Rejection of invention patent application after publication