CN107870996A - Electricity transaction management-control method and device based on block chain - Google Patents

Electricity transaction management-control method and device based on block chain Download PDF

Info

Publication number
CN107870996A
CN107870996A CN201711066800.3A CN201711066800A CN107870996A CN 107870996 A CN107870996 A CN 107870996A CN 201711066800 A CN201711066800 A CN 201711066800A CN 107870996 A CN107870996 A CN 107870996A
Authority
CN
China
Prior art keywords
information
block
stored
block chain
binary tree
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
CN201711066800.3A
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.)
State Grid Corp of China SGCC
Economic and Technological Research Institute of State Grid Henan Electric Power Co Ltd
Original Assignee
State Grid Corp of China SGCC
Economic and Technological Research Institute of State Grid Henan 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 State Grid Corp of China SGCC, Economic and Technological Research Institute of State Grid Henan Electric Power Co Ltd filed Critical State Grid Corp of China SGCC
Priority to CN201711066800.3A priority Critical patent/CN107870996A/en
Publication of CN107870996A publication Critical patent/CN107870996A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/901Indexing; Data structures therefor; Storage structures
    • G06F16/9027Trees
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/901Indexing; Data structures therefor; Storage structures
    • G06F16/9024Graphs; Linked lists
    • 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 relates to a kind of electricity transaction control device and method based on block chain, information is stored in each block by the present invention respectively, each block connects to form block chain, in all nodes of block chained record in a network, safeguarded jointly by all nodes, it is block distributed in other words to be present in network, so as to avoid a defects of mechanism concentrates kind of a management information easily to cause all leakage of information, there is provided the security of storage information.Information in each block is stored with the structure of binary tree, therefore the change of each information can change a part of information of y-bend root vertex, root node, which only needs to carry out simply verification, just can find that information is tampered, and the security of the information of storage has been effectively ensured.

Description

Electricity transaction management-control method and device based on block chain
Technical field
The present invention relates to a kind of energy internet system, more particularly to a kind of electricity transaction control device based on block chain And method.
Background technology
Energy internet is the advanced Power Electronic Technique of integrated use, information technology and intelligent management technology, by largely By distributed energy harvester, novel electric power network, the oil of distributed energy storage device and all kinds load composition Network, the interconnection of natural gas network equal energy source node are got up, to realize the energy peer switch of energy in bidirectional flow and shared network
A large amount of prosumers, which access energy internet, will produce the bilateral transaction of electric power equal energy source.At present for bilateral transaction Management include two kinds of technical schemes of centralization organization management and decentralization organization management.Wherein, centralization organization management Technical scheme is to establish a centralization mechanism, and Transaction Information is managed concentratedly, exist operating cost is high, security difference with And privacy of user the problem of being difficult to ensure that.The technical scheme of the organization management of decentralization, exist power market transaction main body it Between trust property difference the problem of.
Therefore a kind of technical scheme is needed, operating cost height, security in centralization organization management scheme can be overcome poor And privacy of user the problem of being difficult to ensure that.
The content of the invention
(1) technical problems to be solved
The technical problem to be solved in the present invention is run in the centralization organization management scheme for how to overcome energy internet The problem of cost is high, security is poor and privacy of user is difficult to ensure that.
(2) technical scheme
In order to solve the above technical problems, the invention provides a kind of based on the electricity transaction control device of block chain and side Method.
Wherein, the electricity transaction management-control method based on block chain comprises the following steps:
Information in several predetermined amount of time is respectively stored in several data blocks, forms several blocks;
By several described blocks, connected according to predefined procedure, form a block chain;
Described information storage is stored in the structure of binary tree in corresponding data block.
Further, described information includes time and operation code.
Further, the cryptographic Hash of a connected upper block is also stored with the block.
Further, the predefined procedure is the sequencing according to the time.
Further, methods described also comprises the following steps:
Each block continues receive information, and after the time of receive information is equal to predetermined amount of time, by reception Information package and storage.
Further, the information after the packing is stored on the leaf node of the binary tree, and each y-bend The root node of tree is stored with the sum of the cryptographic Hash of its child node.
Further, the Partial Block in the block chain is read and write for predesignated subscriber.
Wherein, the electricity transaction control device based on block chain includes:
Block forms module, for the information in several predetermined amount of time to be respectively stored in several data blocks, Form several blocks;Wherein, described information storage is stored in the structure of binary tree in corresponding data block;
Block chain forms module, for several blocks by described in, is connected according to predefined procedure, forms a block chain.
Further, the block forms module and included:
Information package memory module, for after each block persistently receives the information of predetermined amount of time, will receive Information package and storage.
Further, the information after the packing is stored on the leaf node of the binary tree, and each y-bend The root node of tree is stored with the sum of the cryptographic Hash of its child node.
(3) beneficial effect
The above-mentioned technical proposal of the present invention has the following advantages that:
Information is stored in each block respectively, each block connects to form block chain, and block chained record is in a network All nodes in, safeguarded jointly by all nodes, it is block distributed in other words to be present in network, so as to avoid a machine Structure integrated management information easily causes the defects of all leakage of information, there is provided the security of storage information.
Information in each block is stored with the structure of binary tree, therefore the change of each information can change A part of information of y-bend root vertex, root node, which only needs to carry out simply verification, just can find that information is tampered, and effectively protect The security of the information of storage is demonstrate,proved.
Instant invention overcomes must be provided with a centralization mechanism in the prior art, avoiding and Transaction Information is concentrated Management, reduces operation cost, the more efficient privacy for protecting user is not leaked.
Brief description of the drawings
Fig. 1 is a kind of flow chart of electricity transaction management-control method based on block chain in the present invention;
Fig. 2 is a kind of electricity transaction control device block diagram based on block chain in the present invention;
Fig. 3 is a kind of energy Internet Engineering Task flow chart in the present invention.
Embodiment
With reference to the accompanying drawings and examples, the embodiment of the present invention is described in further detail.Implement below Example is used to illustrate the present invention, but is not limited to the scope of the present invention.
A kind of electricity transaction management-control method based on block chain, as shown in figure 1, this method comprises the following steps:
110th, the information in several predetermined amount of time is respectively stored in several data blocks, forms several areas Block;Described information storage is stored in the structure of binary tree in corresponding data block;
120th, by several described blocks, connected according to predefined procedure, form a block chain.
Information is stored in each block by the present embodiment respectively, and each block connects to form block chain, block chained record In all nodes in a network, safeguarded jointly by all nodes, it is block distributed in other words to be present in network, so as to avoid The defects of one mechanism integrated management information easily causes all leakage of information, there is provided the security of storage information.
Information in each block is stored with the structure of binary tree, therefore the change of each information can change A part of information of y-bend root vertex, root node, which only needs to carry out simply verification, just can find that information is tampered, and effectively protect The security of the information of storage is demonstrate,proved.
Instant invention overcomes must be provided with a centralization mechanism in the prior art, avoiding and Transaction Information is concentrated Management, reduces operation cost, the more efficient privacy for protecting user is not leaked.
Further, described information includes but is not limited to time and operation code.Such as information can also include the energy and hand over Transaction value, exchange hour, the promise breaking amount of money during easily etc..
Further, the cryptographic Hash of a connected upper block is also stored with the block.According to Kazakhstan here Uncommon value can inquire the information of each storage.
Above-mentioned predefined procedure is the sequencing according to the time.Certain block can also connect block in other orders, Form block chain.
Further, the electricity transaction management-control method based on block chain also comprises the following steps:
Each block continues receive information, and after the time of receive information is equal to predetermined amount of time, by reception Information package and storage.
Specifically, the information after packing is stored on the leaf node of the binary tree, and the root of each binary tree Node is stored with the sum of the cryptographic Hash of its child node.For example, the information after packing is stored in block in the form of merkle tree In.All information are all recorded on the leaf node of binary tree, the cryptographic Hash of leaf node while record information.merkle Tree all internal nodes all have recorded the cryptographic Hash sum of all child nodes.When the information of some leaf node changes When, the cryptographic Hash of its cryptographic Hash and all father nodes can all change, and the cryptographic Hash for ultimately resulting in root node changes.When maliciously usurping During other nodes for changing Transaction Information and being broadcasted in network, other nodes only need to verify merkle tree root section Point, it becomes possible to learn that Transaction Information is tampered, so as to not receive the information being tampered.Node sends packed block structure To other nodes in network, after other checking nodes receive this block structure, the information that the inside stores is read out, with The information itself preserved is compared, while the information for sending itself a accreditation gives other checking nodes.Pass through this more wheels Transmission and compare, it is all checking nodes the information of preservation is formed unanimously within the regular hour.
Information is by corresponding to P2P Web broadcasts to block on node.
Further, the Partial Block in the block chain is read and write for predesignated subscriber, i.e., block chain is privately owned block chain.It is private Have in block chain, only a small number of nodes have complete access limit to block chain data, and other nodes are to the data in block chain Only limited reading authority.In existing energy market framework, trade center, large-scale energy company and garden can be chosen The comprehensive energy service provider in area.Because record node is reduced, the time that transaction is reached common understanding will reduce significantly, transactions velocity is than public There is chain fast.And due in network most nodes there was only limited reading authority for data, the privacy of user can obtain To more preferable protection.
The above method of the present invention avoids carries out information management using central authority, and a large amount of personnel are employed so as to avoid Centre data is safeguarded, and avoid due to central authority ruined cause all loss of datas the defects of.Utilize and divide simultaneously The block of cloth, which carries out data storage, can effectively improve the security of data.
It is applied to illustrate exemplified by electricity transaction below by by the method for the present invention.
As shown in figure 3, conclude the transaction first;Transaction Information is recorded in a manner of intelligent contract afterwards, passes through P2P networks The whole network is diffused into, block is packaged into by node, and reach common understanding;Security Checking is carried out afterwards, if by utilizing block chain Record information, and after exchange hour arrival, value Transfer is automatically performed according to energy data and treaty content;If check obstructed Cross, then carry out congestion management.Wherein, central authority does not have the function of the storage information of central authority in traditional sense.Intelligence is closed If being approximately a set of holding with definition, digital asset is controlled if holding, and contains the right and justice of contract participant agreement Business, performed by computer self, intelligent contract write in the form of digitized and treated in block chain, by block chain perform storage, Check, perform, whole process is transparent, can not distort.
Corresponding to the above method, present invention also offers a kind of electricity transaction control device based on block chain, such as Fig. 2 institutes Show, the device includes:
Block forms module, for the information in several predetermined amount of time to be respectively stored in several data blocks, Form several blocks;Wherein, described information storage is stored in the structure of binary tree in corresponding data block;
Block chain forms module, for several blocks by described in, is connected according to predefined procedure, forms a block chain.
Further, the block forms module and included:
Information package memory module, for after each block persistently receives the information of predetermined amount of time, will receive Information package and storage.
Information after the packing is stored on the leaf node of the binary tree, and the root node of each binary tree It is stored with the sum of the cryptographic Hash of its child node.
The method of the embodiment of the present invention be the embodiment of the present invention device acquisition process handle image when the step of one by one Corresponding, each step of the device acquisition process image of the embodiment of the present invention is all contained in the method for the embodiment of the present invention, Therefore, for the part repeated, it is not discussed here.
Electricity transaction management-control method and device proposed by the present invention based on block chain are managed to energy transaction, are used The framework of weak center, the whole network node is allowed independently to be safeguarded, managed to the information of preservation using block chain and intelligent contract technology Reason and fund shift automatically.
In description of the invention, it is to be understood that term " " center ", " longitudinal direction ", " transverse direction ", " on ", " under ", " preceding ", The orientation or position relationship of the instruction such as " rear ", "left", "right", " vertical ", " level ", " top ", " bottom " " interior ", " outer " are based on attached Orientation or position relationship shown in figure, it is for only for ease of and describes the present invention and simplify description, rather than indicates or imply and be signified Device or element must have specific orientation, with specific azimuth configuration and operation, therefore it is not intended that to the present invention Limitation.In addition, term " first ", " second " are only used for describing purpose, and it is not intended that instruction or hint relative importance.
In the description of the invention, it is necessary to illustrate, unless otherwise clearly defined and limited, term " installation ", " phase Even ", " connection " should be interpreted broadly, for example, it may be being fixedly connected or being detachably connected, or be integrally connected;Can To be mechanical connection or electrical connection;Can be joined directly together, can also be indirectly connected by intermediary, Ke Yishi The connection of two element internals.For the ordinary skill in the art, with concrete condition above-mentioned term can be understood at this Concrete meaning in invention.
Described above is only the preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art For member, without departing from the technical principles of the invention, some improvement and modification can also be made, these improvement and modification Also it should be regarded as protection scope of the present invention.

Claims (10)

1. a kind of electricity transaction management-control method based on block chain, it is characterised in that methods described comprises the following steps:
Information in several predetermined amount of time is respectively stored in several data blocks, forms several blocks;
By several described blocks, connected according to predefined procedure, form a block chain;
Described information is stored in the structure of binary tree in corresponding data block.
2. the method as described in claim 1, it is characterised in that described information includes time and operation code.
3. the method as described in claim 1, it is characterised in that a connected upper block is also stored with the block Cryptographic Hash.
4. the method as described in claim 1, it is characterised in that the predefined procedure is the sequencing according to the time.
5. the method as described in claim 1, it is characterised in that methods described also comprises the following steps:
Each block continues receive information, and after the time of receive information is equal to predetermined amount of time, by the information of reception Packing and storage.
6. method as claimed in claim 5, it is characterised in that the information after the packing is stored in the leaf segment of the binary tree On point, and the root node of each binary tree is stored with the sum of the cryptographic Hash of its child node.
7. the method as described in claim 1, it is characterised in that the Partial Block in the block chain is read and write for predesignated subscriber.
8. a kind of electricity transaction control device based on block chain, it is characterised in that described device includes:
Block forms module, for the information in several predetermined amount of time to be respectively stored in a data block, if being formed Dry block;Wherein, described information is stored in the structure of binary tree in corresponding data block;
Block chain forms module, for several blocks by described in, is connected according to predefined procedure, forms a block chain.
9. device as claimed in claim 8, it is characterised in that the block, which forms module, to be included:
Information package memory module, for after each block persistently receives the information of predetermined amount of time, by the letter of reception Breath packing and storage.
10. device as claimed in claim 9, it is characterised in that the information after the packing is stored in the leaf of the binary tree On node, and the root node of each binary tree is stored with the sum of the cryptographic Hash of its child node.
CN201711066800.3A 2017-11-02 2017-11-02 Electricity transaction management-control method and device based on block chain Pending CN107870996A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711066800.3A CN107870996A (en) 2017-11-02 2017-11-02 Electricity transaction management-control method and device based on block chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711066800.3A CN107870996A (en) 2017-11-02 2017-11-02 Electricity transaction management-control method and device based on block chain

Publications (1)

Publication Number Publication Date
CN107870996A true CN107870996A (en) 2018-04-03

Family

ID=61752916

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711066800.3A Pending CN107870996A (en) 2017-11-02 2017-11-02 Electricity transaction management-control method and device based on block chain

Country Status (1)

Country Link
CN (1) CN107870996A (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108647947A (en) * 2018-05-18 2018-10-12 江苏安纳泰克能源服务有限公司 Electricity transaction matching process based on block chain technology
CN108665276A (en) * 2018-05-22 2018-10-16 江苏安纳泰克能源服务有限公司 It is a kind of that microgrid energy deals match method is expanded based on block chain technology
CN108830110A (en) * 2018-09-10 2018-11-16 珠海格力电器股份有限公司 Energy interactive device, energy internet system and exchange method based on block chain
CN108965384A (en) * 2018-06-04 2018-12-07 温州市图盛科技有限公司 A kind of electricity transaction management-control method and device based on block chain
CN109636145A (en) * 2018-11-27 2019-04-16 华中科技大学 A kind of smart grid scheduling system and its control method based on the transaction of block chain
CN109697188A (en) * 2018-11-30 2019-04-30 广州菲达建筑咨询有限公司 Cost Data management method and system
CN111651785A (en) * 2020-05-08 2020-09-11 广东电网有限责任公司惠州供电局 Intelligent contract generation method for power selling side of power grid based on block chain technology
EP3819857A4 (en) * 2018-07-06 2022-03-09 Hitachi, Ltd. Resource accommodation assisting system, resource accommodation assisting method, and resource accommodation assisting device
CN114661231A (en) * 2022-02-18 2022-06-24 南京南瑞继保电气有限公司 Storage synchronization method and device for parameter change records of power grid monitoring master station system
CN114862280A (en) * 2022-07-05 2022-08-05 北京英视睿达科技股份有限公司 Block chain-based carbon emission data processing method and device

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108647947A (en) * 2018-05-18 2018-10-12 江苏安纳泰克能源服务有限公司 Electricity transaction matching process based on block chain technology
CN108665276A (en) * 2018-05-22 2018-10-16 江苏安纳泰克能源服务有限公司 It is a kind of that microgrid energy deals match method is expanded based on block chain technology
CN108965384A (en) * 2018-06-04 2018-12-07 温州市图盛科技有限公司 A kind of electricity transaction management-control method and device based on block chain
US11682009B2 (en) 2018-07-06 2023-06-20 Hitachi, Ltd. Resource accommodation assistance system, resource accommodation assistance method, and resource accommodation assistance apparatus
EP3819857A4 (en) * 2018-07-06 2022-03-09 Hitachi, Ltd. Resource accommodation assisting system, resource accommodation assisting method, and resource accommodation assisting device
CN108830110A (en) * 2018-09-10 2018-11-16 珠海格力电器股份有限公司 Energy interactive device, energy internet system and exchange method based on block chain
CN108830110B (en) * 2018-09-10 2020-12-04 珠海格力电器股份有限公司 Energy interaction device, energy internet system and interaction method based on block chain
CN109636145A (en) * 2018-11-27 2019-04-16 华中科技大学 A kind of smart grid scheduling system and its control method based on the transaction of block chain
CN109697188A (en) * 2018-11-30 2019-04-30 广州菲达建筑咨询有限公司 Cost Data management method and system
CN111651785A (en) * 2020-05-08 2020-09-11 广东电网有限责任公司惠州供电局 Intelligent contract generation method for power selling side of power grid based on block chain technology
CN114661231A (en) * 2022-02-18 2022-06-24 南京南瑞继保电气有限公司 Storage synchronization method and device for parameter change records of power grid monitoring master station system
CN114661231B (en) * 2022-02-18 2023-08-11 南京南瑞继保电气有限公司 Storage synchronization method and device for parameter change records of power grid monitoring master station system
CN114862280A (en) * 2022-07-05 2022-08-05 北京英视睿达科技股份有限公司 Block chain-based carbon emission data processing method and device

Similar Documents

Publication Publication Date Title
CN107870996A (en) Electricity transaction management-control method and device based on block chain
CN108830601A (en) Smart city information security application method and system based on block chain
CN107251039B (en) Data security using decomposed data structures
CN107909372A (en) A kind of agricultural product source tracing method based on block chain technology
Tripathi et al. The role of blockchain in internet of vehicles (iov): Issues, challenges and opportunities
CN113961535A (en) Data trusted storage sharing system and method based on block chain
CN107203344A (en) A kind of date storage method and data-storage system
CN113821564B (en) Heterogeneous parallel blockchain and method for coordinating on-chain data and under-chain contracts thereof
CN109245894B (en) Distributed cloud storage system based on intelligent contracts
CN106919476A (en) Data safety backup method, client and cloud server terminal based on alliance's chain
CN104065485A (en) Power grid dispatching mobile platform safety guaranteeing and controlling method
CN109558115A (en) A kind of operating system framework based on block chain technology
CN112668018B (en) Method and device for government data protocol authorization sharing based on blockchain
CN112380179A (en) Block chain-based steel supply chain information secret sharing method and system
Lisdorf Demystifying smart cities: practical perspectives on how cities can leverage the potential of new technologies
Zhao et al. Application of blockchain in trusted digital vaccination certificates
Wang Sok: Applying blockchain technology in industrial internet of things
CN114547698A (en) CORS service data storage system and method based on block chain
Shahzad et al. Privacy-preserving smart grid traceability using blockchain over IoT connectivity
CN110888630A (en) Distributed programmable service research and development platform based on block chain
Dong et al. Blockchain technology and application: an overview
CN107566357B (en) A kind of internet business information data storing method based on subregion authentication techniques
CN107580034B (en) A kind of intelligence engineering internet business system using partitioned storage data technique
CN113556393A (en) Multi-type intermodal data exchange system and method based on block chain
CN111461709B (en) Intelligent financial cross-border payment digital currency solution method based on block chain BaaS platform

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20180403

WD01 Invention patent application deemed withdrawn after publication