CN108718344A - A kind of electric network data storage method and distributed power grid data-storage system - Google Patents

A kind of electric network data storage method and distributed power grid data-storage system Download PDF

Info

Publication number
CN108718344A
CN108718344A CN201810596311.7A CN201810596311A CN108718344A CN 108718344 A CN108718344 A CN 108718344A CN 201810596311 A CN201810596311 A CN 201810596311A CN 108718344 A CN108718344 A CN 108718344A
Authority
CN
China
Prior art keywords
node
data
electric network
storage
block
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
CN201810596311.7A
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.)
CHENGDU DITING TECHNOLOGY Co Ltd
Original Assignee
CHENGDU DITING TECHNOLOGY 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 CHENGDU DITING TECHNOLOGY Co Ltd filed Critical CHENGDU DITING TECHNOLOGY Co Ltd
Priority to CN201810596311.7A priority Critical patent/CN108718344A/en
Publication of CN108718344A publication Critical patent/CN108718344A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/12Applying verification of the received information
    • H04L63/123Applying verification of the received information received data contents, e.g. message integrity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/12Applying verification of the received information
    • H04L63/126Applying verification of the received information the source of the received data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • H04L67/1044Group management mechanisms 
    • H04L67/1051Group master selection mechanisms
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/3236Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials using cryptographic hash functions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/3247Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials involving digital signatures

Abstract

A kind of electric network data storage method of offer of the embodiment of the present invention and distributed power grid data-storage system, the electric network data storage method is a kind of data storage scheme for the decentralization realized based on block chain technology, the Centroid being susceptible in existing centralization electric network data storage scheme can effectively be avoided by the risk of centralized malicious attack, improve the safety of data storage.

Description

A kind of electric network data storage method and distributed power grid data-storage system
Technical field
The present invention relates to intelligent grid technical field of data storage, in particular to a kind of electric network data storage method It is set with distributed power grid data-storage system.
Background technology
In traditional intelligent grid, wireless sensing node monitors grid equipment operation in real time, and is adopted by proximity data The electric network data of acquisition is periodically uploaded to a trusted party node and carries out electric network data storage and share by collection base station, but this The storage mode of kind centralization easily causes Centroid causes node failure problem or storage data former by malicious attack Meaning such as distorts at the information security issues.
Invention content
In view of this, the embodiment of the present invention is designed to provide a kind of electric network data storage method and distributed electrical netting index It is set according to storage system, to improve the above problem.
On the one hand, present pre-ferred embodiments provide a kind of electric network data storage method, are applied to distributed electrical network data Storage system, the distributed data-storage system include multiple data memory nodes and a pair of with each data memory node one The data perception node answered communicates to connect between each data memory node, and the electric network data storage method includes:
Each data memory node is based respectively on proof of work mechanism and calculates respective proof of work, most fast to calculate Go out the data memory node of proof of work as host node, other described data memory nodes are used as from node;
The host node generates data acquisition system according to the collected electric network data of the data perception node, and by the data Set and the workload are broadcast to each described from node;
Described in each the host node is verified from node based on common recognition algorithm and the data acquisition system received and workload Whether satisfaction presets storage demand;
It is each it is described from node accept the host node meet preset storage demand when, the host node is by the data set Conjunction is integrated into data block, and the data block is broadcast to each described preserved from node.
Further, each described the step of being preserved from node to the data block received, includes:
The cryptographic hash for including from data block described in Node extraction, and will be described according to the cryptographic hash Data block links on the corresponding data block in stored block chain the preservation realized to the data block.
Further, each described institute to be verified based on common recognition algorithm and the data acquisition system received and workload from node State that the step of whether host node meets default storage demand includes:
The number of each block cryptographic Hash and host node for including according to the data acquisition system and workload from node Signature checks the legitimacy and correctness of the data acquisition system;
Result is checked to respective data to sign, and the data after signature are checked into result broadcast described in each from node To other in addition to itself from node;
It is each described to receive that the data that other send from node check result and the data of itself check result from node It is compared, and comparison result is sent to the host node and is summarized;
The host node according to summarized results judge it is each it is described from node whether accept itself and meet preset storage demand.
Further, the host node judges each described whether accept the data block from node according to summarized results The step of legitimacy and correctness includes:
The host node statistics denies whether the quantity of the slave node of the legitimacy and correctness with the data block reaches To preset quantity, if reaching, judge that each described accepted from node itself meets default storage demand.
Further, the electric network data storage method further includes:
The data perception node carries out electric network data acquisition according to prefixed time interval and collection result is sent to institute Data memory node is stated to be cached;Or/and
The data perception node carries out electric network data acquisition when detecting that action is paid in the Client-initiated electricity charge and will Collection result is sent to the data memory node and is cached.
Further, it is chosen from each data memory node based on proof of work mechanism in execution and is most calculated soon Before the step of data memory node of proof of work is as host node, the method further includes:
It obtains nodes sharing and configures parameter;
Node is configured based on the configuration parameter, and the node of configuration will be completed as the distributed electrical netting index According to the data memory node in storage system.
On the other hand, present pre-ferred embodiments also provide a kind of distributed power grid data-storage system, the distribution Electric network data storage system include multiple data memory nodes and with the one-to-one data perception section of each data memory node Point communicates to connect between each data memory node;
Each data perception node is respectively used to carry out electric network data acquisition according to prefixed time interval and ties acquisition Fruit is sent to corresponding data memory node and is cached;Or/and
The data perception node is used to carry out electric network data acquisition when detecting that action is paid in the Client-initiated electricity charge And collection result is sent to corresponding data memory node and is cached;
Each data memory node is respectively used to calculate respective proof of work based on proof of work mechanism, and most The data memory node of proof of work is calculated soon as host node, other described data memory nodes are used as from node;Its In,
The host node is used to generate data acquisition system according to the collected electric network data of the data perception node, and should Data acquisition system and the workload are broadcast to each described from node;
It is used to verify the master based on common recognition algorithm and the data acquisition system received and workload from node described in each Whether node meets default storage demand;
In each storage demand default from the node approval host node satisfaction, the host node is used for the number It is integrated into data block according to set, and the data block is broadcast to each described preserved from node.
Further, described from node, specifically for the cryptographic hash for including in the extraction data block, and according to The cryptographic hash links to the data block on the corresponding data block in stored block chain to realize to described The preservation of data block.
Further, each described from node, it is breathed out specifically for the block for including according to the data acquisition system and workload Uncommon value and the digital signature of host node check the legitimacy and correctness of the data acquisition system;Respective data are checked As a result it signs, and the data after signature is checked into result and are broadcast to other in addition to itself from node;It will be received The data that he sends from node check result and the data of itself are checked result and are compared, and comparison result are sent to described Host node is summarized;
The host node, specifically for judging each described itself meet default deposit from whether node is accepted according to summarized results Storage demand.
Further, the host node denies the legitimacy and correctness with the data block specifically for statistics Whether reach preset quantity from the quantity of node, if reaching, judges that each described accepted from node itself meets default storage need It asks.
Compared with prior art, a kind of electric network data storage method of offer of the embodiment of the present invention and distributed electrical network data are deposited Storage system, the electric network data storage method are a kind of Distributed Storage side for the decentralization realized based on block chain technology Case, independent of global believable third party entity, and using communication mode end to end between each node, to effectively prevent The Centroid being susceptible in existing centralization electric network data storage scheme is improved by the risk of centralized malicious attack The safety of data storage.Meanwhile the distributed power grid data-storage system of decentralization that provides of the present invention have it is good Scalability and reliability.
To enable the above objects, features and advantages of the present invention to be clearer and more comprehensible, preferred embodiment cited below particularly, and coordinate Appended attached drawing, is described in detail below.
Description of the drawings
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below will be to needed in the embodiment attached Figure is briefly described, it should be understood that the following drawings illustrates only certain embodiments of the present invention, therefore is not construed as pair The restriction of range for those of ordinary skill in the art without creative efforts, can also be according to this A little attached drawings obtain other relevant attached drawings.
Fig. 1 is the system structure diagram of distributed power grid data-storage system provided in an embodiment of the present invention.
Fig. 2 is the flow diagram of electric network data storage method provided in an embodiment of the present invention.
Fig. 3 is the sub-process schematic diagram of step S12 shown in Fig. 2.
Fig. 4 is another flow diagram of electric network data storage method provided in an embodiment of the present invention.
Icon:10- distributed power grid data-storage systems;11- data perception nodes;12- data memory nodes.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation describes, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.Usually The component for the embodiment of the present invention being described and illustrated herein in the accompanying drawings can be arranged and be designed with a variety of different configurations.Cause This, the detailed description of the embodiment of the present invention to providing in the accompanying drawings is not intended to limit claimed invention below Range, but it is merely representative of the selected embodiment of the present invention.Based on the embodiment of the present invention, those skilled in the art are not doing The every other embodiment obtained under the premise of going out creative work, shall fall within the protection scope of the present invention.
It should be noted that:Similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang Yi It is defined, then it further need not be defined and explained in subsequent attached drawing in a attached drawing.
As shown in Figure 1, the structural representation of the distributed power grid data-storage system 10 provided for present pre-ferred embodiments Figure, the distributed power grid data-storage system 10 include multiple data memory nodes 12 and with each data memory node 12 one by one Corresponding data perception node 11 communicates to connect between each data memory node 12.
Wherein, the data perception node 11 is used to acquire the electricity consumption data of user and is sent out after collection result is encrypted Corresponding data memory node 12 is given, which can be but not limited to the electricity consumption number of degrees, payment detail etc..It is optional Ground, the data perception node 11 can be but be not limited to intelligent electric meter etc..
Electricity consumption data that the data memory node 12 is used to acquire the data perception node 11 etc. is with block chain Form is preserved, and may include assumed name, the data of data perception in the electricity consumption data value stored in the data memory node 12 Type, metadata etc., in order to which user inquires the electricity consumption data of oneself and payment record etc. at any time.Optionally, the data are deposited Several sections of points can be but not limited to router, server, computer etc..
In the present embodiment, each data memory node 12 in the distributed power grid data-storage system 10 is equivalent to one Public account book, and can the condition of sharing, duration and number be set by way of intelligent contract between each data memory node 12 Etc. parameters, the automatic shared, secure access etc. for executing data between node.In addition, the distributed power grid provided in the present embodiment Data-storage system 10 is a kind of storage system of decentralization, is with good expansibility and reliability.
Further, based on the description to above-mentioned distributed power grid data-storage system 10, as shown in Fig. 2, the present invention is real It applies example and a kind of electric network data storage method is provided, which is applied to distributed electrical network data storage system System 10, is described in detail the detailed process and step of the electric network data storage method below in conjunction with Fig. 2.It should illustrate , application switching method provided in an embodiment of the present invention is not limitation with Fig. 2 and particular order as described below.
Step S10, each data memory node 12 are based respectively on proof of work mechanism and calculate respective workload card Bright, the data memory node 12 for most calculating proof of work soon is used as host node, other 12 conducts of data memory node From node;
Step S11, the host node generate data acquisition system according to 11 collected electric network data of the data perception node, And the data acquisition system and the workload are broadcast to each described from node;
Step S12, it is each it is described from node based on common recognition algorithm and the verification of the data acquisition system and workload that receive Whether the host node meets default storage demand;
Step S13, it is each it is described from node accept the host node meet preset storage demand when, the host node is by institute It states data acquisition system and is integrated into data block, and the data block is broadcast to each described preserved from node.
In the present embodiment, the electric network data storage method provided in above-mentioned steps S10- steps S13 is based on block chain technology In proof of work mechanism and common recognition algorithm realize to the distributed storage of electric network data, wherein each data memory node 12 Data storage is carried out as public " account book ", compared with the existing technology, the present invention is independent of some believable memory node It is stored to execute data, i.e. the data storage of decentralization formula, can effectively avoid existing centralization electric network data storage scheme In the Centroid that is susceptible to by the risk of centralized malicious attack, improve the safety of data storage.
In detail, in step slo, proof of work (Proof-of-Work, the POW) mechanism is for from each number According to the host node chosen in memory node 12 when knowing together calculating process, effective work is found in such as competition of each data memory node 12 Work amount proves that a certain amount of prize will be obtained by most finding the node of effective proof of work soon to strive for minute book time data block It encourages, be responsible for audit electric network data to be stored and their groups built up data block new on data storage area block chain.Wherein, work Work amount proves to refer to according to numerical value such as the cryptographic Hash timestamp of random number x and the upper block in block chain, merkel roots It calculates the cryptographic hash of current data block to be stored, calculates 12 conduct of data memory node of random number x at first Host node will broadcast current data acquisition system to be stored and the workload (PoW) calculated to other data aggregators (from section Point), to audit and to verify.Specifically, in the present embodiment, the calculating process of the proof of work mechanism includes following mistake Journey.
(1) data block is built, transaction List Table is formed data block Transaction Information will be written, is calculated by Merkle trees Transaction List Table information is generated Merkle root Hash by method;
(2) relevant fields such as Merkle roots Hash, difficulty value are assembled into block head, using block head as proof of work Data input;
(3) random number of shift zone build, the i.e. numerical value of nonce constantly use SHA256 operations, by operation knot after change Fruit is compared with preset value, if operation result is less than preset value, proof of work is completed.
It include three it should be noted that framework technology of the present embodiment based on block chain, in each block head Merkle trees, and three kinds of corresponding transaction (Transactions), receipt (Receipt) and state (State) objects respectively.
In step S11, the data acquisition system receives corresponding data perception node 11 for the data memory node 12 and adopts The electricity consumption data for collecting and uploading, such as the electricity consumption number of degrees, payment data, and safely and effectively electric network data is stored to the sheet of itself In ground storage.When the electric network data of storage reaches preset requirement (such as size of data, storage duration), the data storage section All valid data collected in this period are then integrated into data acquisition system by point 12, and carry out data signature to data acquisition system, Ensure the source legitimacy and verifiability of data acquisition system.
In step s 12, as shown in figure 3, from node based on common recognition algorithm and the data set received described in each The step of whether conjunction, the workload verification host node meet default storage demand includes following formula step S120- steps S123.
Step S120, each block cryptographic Hash for including according to the data acquisition system and workload from node and main section The digital signature of point checks the legitimacy and correctness of the data acquisition system;
Step S121, it is each it is described result checked to respective data from node sign, and the data after signature are examined It tests result and is broadcast to other in addition to itself from node;
Step S122, each data that will receive the data that other send from node and check result and itself from node It checks result to be compared, and comparison result is sent to the host node and is summarized;
Step S123, the host node judge each described itself meet default deposit from whether node is accepted according to summarized results Storage demand.
In detail, in step S120- steps S123, Byzantine failure tolerance common recognition mechanism can be used in the embodiment of the present invention (Practical Byzantine Fault Tolerance, PBFT) realizes each block common recognition operation between node, Wherein, host node of the data memory node 12 of effective proof of work as current common recognition process, remainder are most calculated soon It is used as from node according to memory node 12.Specifically, each data block cryptographic Hash sended over from node according to host node With the legitimacy and correctness of the Information Authentications data block such as digital signature, and respective auditing result is enclosed respective number Signature is broadcast to other and is received from node to realize from the mutual supervision and examination jointly between node from node and summarize other It after the auditing result of node, is compared with the auditing result of itself, and a reply is sent to host node, host node summarizes It is all to be replied from from the audit of node, and according to statistical result judge it is each it is described from node whether accept itself and meet preset If storage demand is accepted, host node is sent to all from node progress after integrating data block and corresponding digital signature Storage.
Optionally, in one embodiment, the specific implementation mode of step S123 can be:The host node statistics approval Whether the legitimacy of the data block and the quantity of the slave node of correctness reach preset quantity, if reaching, judge each institute It states to accept from node and itself meets default storage demand.For example, if all accepting the legal of current data block from node Property and correctness, then judge the host node accept itself meet preset storage demand.
It should be noted that in above-mentioned steps S10 and step S12, the present embodiment is based on proof of work mechanism and altogether Algorithm (such as Byzantine failure tolerance common recognition mechanism) is known so that respectively being carried out from node to the data to be stored set that host node is sent public Meter and verification are sat at session, to which the legitimacy and real effectiveness of data be effectively ensured.
In step s 13, if other approve that host node is the proof of work for most calculating x values soon from node, that The host node, which then obtains, is integrated into data acquisition system new data block, and data block is stored in the power in block chain Profit, at the same the distributed power grid data-storage system 10 can also delivery system be awarded to the host node.
Optionally, in one embodiment, each step that the data block received is preserved from node Suddenly include:The cryptographic hash for including from data block described in Node extraction, and will be described according to the cryptographic hash Data block links on the corresponding data block in stored block chain the preservation realized to the data block.Its In, the calculating of the cryptographic hash can refer to the introduction in above-mentioned steps S10 to proof of work, and the present embodiment is herein no longer It repeats.
It should be noted that in order to realize the privacy to each data memory node 12 in above-mentioned steps S10- steps S13 Mode (such as each data memory node 12 of anonymous protection can be used between each data memory node 12 in the present embodiment for protection Can be communicated based on block address, without regard to actual address, the title etc. of each node) it is communicated, so that communication is double Fang Wufa knows the true identity of other side.Meanwhile in the electric network data storing process stated in realization, asymmetric secret key can be used The electric network data of different time acquisition is encrypted, ensures the safety of data storage with maximum likelihood.
Further, in one embodiment before executing step S10, the electric network data storage method can also wrap It includes:The data perception node 11 carries out electric network data acquisition according to prefixed time interval and collection result is sent to the number It is cached according to memory node 12;Or/and
The data perception node 11 carries out electric network data acquisition when detecting that action is paid in the Client-initiated electricity charge simultaneously Collection result is sent to the data memory node 12 to cache.
In detail, the triggering mode of the data perception node 11 in two kinds of above-mentioned electric network data acquisition modes is different, real When border is implemented, above two mode can be used individually, be can also be the mode based on priority while being used two kinds of triggering sides Formula, for example, the priority that action triggers mode is paid in the electricity charge is higher than the triggering mode etc. for reaching prefixed time interval, i.e., when described Data perception node 11 detects the electricity charge when paying action, then regardless of whether reaching prefixed time interval.
Further, according to actual demand, as shown in figure 4, the distributed power grid is added in each data memory node 12 When data-storage system 10, following step S14 and step S15 can perform.
Step S14 obtains nodes sharing and configures parameter;
Step S15 configures node based on the configuration parameter, and will complete the node of configuration as the distribution A data memory node 12 in formula electric network data storage system 10.
In detail, the configuration sharing parameter in step S14 can be manually entered in node to be configured by user, can also be It is sent by some already present data memory node 12 in other electronic equipments or distributed power grid data-storage system 10 To node to be configured, the present embodiment is not limited herein.
In step S15, the node to be configured of parameter configuration is completed when distributed power grid data-storage system 10 is added, it should Distributed power grid data-storage system 10 can verify its identity information etc., and allow its addition after being verified, with Improve the safety of the storage data in the distributed power grid data-storage system 10.
Further, referring to Fig. 1, each number in the distributed power grid data-storage system 10 that the present invention provides It is respectively used to carry out electric network data acquisition according to prefixed time interval and be sent to collection result corresponding according to sensing node 11 Data memory node 12 is cached;Or/and
The data perception node 11 is used to carry out electric network data when detecting that action is paid in the Client-initiated electricity charge to adopt Collect and collection result is sent to corresponding data memory node 12 and caches;
Each data memory node 12 is respectively used to calculate respective proof of work based on proof of work mechanism, and The data memory node 12 for most calculating proof of work soon is used as host node, other described data memory nodes 12 to be used as from section Point;Wherein,
The host node is used to generate data acquisition system according to 11 collected electric network data of the data perception node, and will The data acquisition system and the workload are broadcast to each described from node;
It is used to verify the master based on common recognition algorithm and the data acquisition system received and workload from node described in each Whether node meets default storage demand;
In each storage demand default from the node approval host node satisfaction, the host node is used for the number It is integrated into data block according to set, and the data block is broadcast to each described preserved from node.
In one embodiment, described from node, specifically for extracting the cryptographic hash for including in the data block, And the data block is linked on the corresponding data block in stored block chain to realize according to the cryptographic hash Preservation to the data block.
In another embodiment, each described from node, specifically for including according to the data acquisition system and workload Block cryptographic Hash and the digital signature of host node the legitimacy and correctness of the data acquisition system are checked;To respective Data check result and sign, and the data after signature are checked result and are broadcast to other in addition to itself from node;It will It receives that the data that other send from node check result and the data of itself are checked result and are compared, and comparison result is sent out The host node is given to be summarized;
The host node, specifically for judging each described itself meet default deposit from whether node is accepted according to summarized results Storage demand.
In another embodiment, the host node, specifically for statistics deny with the data block legitimacy and Whether the quantity of the slave node of correctness reaches preset quantity, if reaching, judge it is each it is described accepted from node itself meet it is pre- If storage demand.
It should be noted that about the above-mentioned host node and each described executing electric network data storage from node The detailed description of each action of Shi Zhihang can refer to aforementioned step S10- step S16, and details are not described herein for the present embodiment.
In conclusion a kind of electric network data storage method of offer of the embodiment of the present invention and distributed power grid data-storage system 10, which is a kind of Distributed Storage scheme for the decentralization realized based on block chain technology, It is existing to effectively prevent independent of global believable third party entity, and using communication mode end to end between each node The Centroid being susceptible in some centralization electric network data storage schemes is improved by the risk of centralized malicious attack The safety of data storage.Meanwhile the distributed power grid data-storage system 10 of decentralization that provides of the present invention have it is good Scalability and reliability.
In several embodiments that the embodiment of the present invention is provided, it should be understood that disclosed device and method also may be used To realize by another way.Device and method embodiment described above is only schematical, for example, in attached drawing Flow chart and block diagram show the device of multiple embodiments according to the present invention, the possibility of method and computer program product is realized Architecture, function and operation.In this regard, each box in flowchart or block diagram can represent module, a program A part for a part for section or code, the module, section or code includes that one or more is patrolled for realizing defined Collect the executable instruction of function.It should also be noted that at some as the function of in the realization method replaced, being marked in box It can occur in a different order than that indicated in the drawings.For example, two continuous boxes can essentially be held substantially in parallel Row, they can also be executed in the opposite order sometimes, this is depended on the functions involved.It is also noted that block diagram and/or The combination of each box in flow chart and the box in block diagram and or flow chart can use function or dynamic as defined in executing The dedicated hardware based system made is realized, or can be realized using a combination of dedicated hardware and computer instructions.
In addition, each function module in each embodiment of the present invention can integrate to form an independent portion Point, can also be modules individualism, can also two or more modules be integrated to form an independent part.
It, can be with if the function is realized and when sold or used as an independent product in the form of software function module It is stored in a computer read/write memory medium.Based on this understanding, technical scheme of the present invention is substantially in other words The part of the part that contributes to existing technology or the technical solution can be expressed in the form of software products, the meter Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be People's computer, electric terminal or network equipment etc.) execute all or part of step of each embodiment the method for the present invention Suddenly.And storage medium above-mentioned includes:USB flash disk, read-only memory (ROM, Read-Only Memory), is deposited mobile hard disk at random The various media that can store program code such as access to memory (RAM, Random Access Memory), magnetic disc or CD. It should be noted that herein, the terms "include", "comprise" or its any other variant are intended to the packet of nonexcludability Contain, so that the process, method, article or equipment including a series of elements includes not only those elements, but also includes Other elements that are not explicitly listed, or further include for elements inherent to such a process, method, article, or device. In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including the element Process, method, article or equipment in there is also other identical elements.
The foregoing is merely the alternative embodiments of the present invention, are not intended to restrict the invention, for the skill of this field For art personnel, the invention may be variously modified and varied.All within the spirits and principles of the present invention, any made by repair Change, equivalent replacement, improvement etc., should all be included in the protection scope of the present invention.

Claims (10)

1. a kind of electric network data storage method, which is characterized in that be applied to distributed power grid data-storage system, the distribution Data-storage system include multiple data memory nodes and with the one-to-one data perception node of each data memory node, respectively It is communicated to connect between the data memory node, the electric network data storage method includes:
Each data memory node is based respectively on proof of work mechanism and calculates respective proof of work, and most fast calculate is gone to work The data memory node that work amount proves is used as host node, other described data memory nodes from node;
The host node generates data acquisition system according to the collected electric network data of the data perception node, and by the data acquisition system It is broadcast to the workload each described from node;
Described in each whether the host node is verified from node based on common recognition algorithm and the data acquisition system received, workload Meet and presets storage demand;
In each storage demand default from the node approval host node satisfaction, the host node is whole by the data acquisition system Generated data block, and the data block is broadcast to each described preserved from node.
2. electric network data storage method according to claim 1, which is characterized in that it is each it is described from node to the institute that receives Stating the step of data block is preserved includes:
The cryptographic hash for including from data block described in Node extraction, and according to the cryptographic hash by the data Block links on the corresponding data block in stored block chain the preservation realized to the data block.
3. electric network data storage method according to claim 1, which is characterized in that be based on common recognition algorithm from node described in each Verify that the step of whether host node meets default storage demand includes with the data acquisition system and workload received:
The digital signature of each block cryptographic Hash and host node for including according to the data acquisition system and workload from node The legitimacy and correctness of the data acquisition system are checked;
It is each it is described result checked to respective data from node sign, and the data after signature checked into result be broadcast to and remove Other except itself are from node;
It is each described to receive that the data that other send from node check result and the data of itself check result progress from node It compares, and comparison result is sent to the host node and is summarized;
The host node according to summarized results judge it is each it is described from node whether accept itself and meet preset storage demand.
4. electric network data storage method according to claim 3, which is characterized in that the host node is sentenced according to summarized results The disconnected each described the step of legitimacy and correctness of the data block whether are accepted from node includes:
The host node statistics denies whether the quantity of the slave node of the legitimacy and correctness with the data block reaches pre- If quantity, if reaching, judge that each described accepted from node itself meets default storage demand.
5. electric network data storage method according to claim 1, which is characterized in that the electric network data storage method is also wrapped It includes:
The data perception node carries out electric network data acquisition according to prefixed time interval and collection result is sent to the number It is cached according to memory node;Or/and
The data perception node carries out electric network data acquisition when detecting that action is paid in the Client-initiated electricity charge and will acquisition As a result the data memory node is sent to be cached.
6. electric network data storage method according to claim 1, which is characterized in that be based on proof of work mechanism executing The step of data memory node for most calculating proof of work soon is chosen from each data memory node as host node Before, the method further includes:
It obtains nodes sharing and configures parameter;
Node is configured based on the configuration parameter, and the node for completing configuration is deposited as the distributed electrical network data A data memory node in storage system.
7. a kind of distributed power grid data-storage system, which is characterized in that the distributed power grid data-storage system includes more A data memory node and with the one-to-one data perception node of each data memory node, each data memory node it Between communicate to connect;
Each data perception node is respectively used to carry out electric network data acquisition according to prefixed time interval and sends out collection result Corresponding data memory node is given to be cached;Or/and
The data perception node is used to carry out electric network data acquisition when detecting that action is paid in the Client-initiated electricity charge and will Collection result is sent to corresponding data memory node and is cached;
Each data memory node is respectively used to calculate respective proof of work, and most fast meter based on proof of work mechanism The data memory node of proof of work is calculated as host node, other described data memory nodes are used as from node;Wherein,
The host node is used to generate data acquisition system according to the collected electric network data of the data perception node, and by the data Set and the workload are broadcast to each described from node;
It is used to verify the host node based on common recognition algorithm and the data acquisition system received and workload from node described in each Whether satisfaction presets storage demand;
In each storage demand default from the node approval host node satisfaction, the host node is used for the data set Conjunction is integrated into data block, and the data block is broadcast to each described preserved from node.
8. distributed power grid data-storage system according to claim 7, which is characterized in that it is described from node, it is specific to use The cryptographic hash for including in the extraction data block, and linked to the data block according to the cryptographic hash The preservation to the data block is realized on corresponding data block in the block chain of storage.
9. distributed power grid data-storage system according to claim 7, which is characterized in that it is each described from node, specifically The digital signature of block cryptographic Hash and host node for including according to the data acquisition system and workload is to the data set The legitimacy and correctness of conjunction are checked;Result is checked to respective data to sign, and the data after signature are checked As a result other in addition to itself are broadcast to from node;By receive the data that other send from node check result and itself Data are checked result and are compared, and comparison result is sent to the host node and is summarized;
The host node, specifically for judging that each described whether accepted from node itself meets default storage need according to summarized results It asks.
10. distributed power grid data-storage system according to claim 9, which is characterized in that the host node, it is specific to use Deny whether the quantity of the slave node of the legitimacy and correctness with the data block reaches preset quantity in statistics, if reaching It arrives, then judges that each described accepted from node itself meets default storage demand.
CN201810596311.7A 2018-06-11 2018-06-11 A kind of electric network data storage method and distributed power grid data-storage system Pending CN108718344A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810596311.7A CN108718344A (en) 2018-06-11 2018-06-11 A kind of electric network data storage method and distributed power grid data-storage system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810596311.7A CN108718344A (en) 2018-06-11 2018-06-11 A kind of electric network data storage method and distributed power grid data-storage system

Publications (1)

Publication Number Publication Date
CN108718344A true CN108718344A (en) 2018-10-30

Family

ID=63913048

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810596311.7A Pending CN108718344A (en) 2018-06-11 2018-06-11 A kind of electric network data storage method and distributed power grid data-storage system

Country Status (1)

Country Link
CN (1) CN108718344A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109302501A (en) * 2018-12-10 2019-02-01 北京八分量信息科技有限公司 A kind of industrial control data storage method based on block chain technology, apparatus and system
CN109598135A (en) * 2018-12-10 2019-04-09 北京八分量信息科技有限公司 A kind of industrial control equipment O&M information storage means, apparatus and system
CN110753103A (en) * 2019-10-16 2020-02-04 长春银彩通信息科技有限公司 Method and system for distributed efficient data sealing
CN110751480A (en) * 2019-09-24 2020-02-04 中国银联股份有限公司 Information query method, device, equipment and computer readable storage medium
CN111369088A (en) * 2018-12-25 2020-07-03 中国电力科学研究院有限公司 Block chain control system and control method for power grid dispatching system
CN112380549A (en) * 2020-11-13 2021-02-19 国网福建省电力有限公司经济技术研究院 Power grid engineering project investment statistical data management method based on block chain
CN112733211A (en) * 2021-01-15 2021-04-30 重庆邮电大学 Intelligent power grid data storage scheme based on block chain

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170031676A1 (en) * 2015-07-27 2017-02-02 Deja Vu Security, Llc Blockchain computer data distribution
CN107094155A (en) * 2017-06-14 2017-08-25 广东工业大学 A kind of secure storage method of data and device based on alliance's block chain
CN107122477A (en) * 2017-05-02 2017-09-01 成都中远信电子科技有限公司 A kind of block chain storage system
CN107181599A (en) * 2017-07-18 2017-09-19 天津理工大学 The storage of route location data confidentiality and sharing method based on block chain
US20180039667A1 (en) * 2016-08-05 2018-02-08 Chicago Mercantile Exchange Inc. Systems and methods for blockchain rule synchronization

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170031676A1 (en) * 2015-07-27 2017-02-02 Deja Vu Security, Llc Blockchain computer data distribution
US20180039667A1 (en) * 2016-08-05 2018-02-08 Chicago Mercantile Exchange Inc. Systems and methods for blockchain rule synchronization
CN107122477A (en) * 2017-05-02 2017-09-01 成都中远信电子科技有限公司 A kind of block chain storage system
CN107094155A (en) * 2017-06-14 2017-08-25 广东工业大学 A kind of secure storage method of data and device based on alliance's block chain
CN107181599A (en) * 2017-07-18 2017-09-19 天津理工大学 The storage of route location data confidentiality and sharing method based on block chain

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
吴振铨等: ""基于联盟区块链的智能电网数据安全存储与共享系统"", 《计算机应用》 *

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109302501A (en) * 2018-12-10 2019-02-01 北京八分量信息科技有限公司 A kind of industrial control data storage method based on block chain technology, apparatus and system
CN109598135A (en) * 2018-12-10 2019-04-09 北京八分量信息科技有限公司 A kind of industrial control equipment O&M information storage means, apparatus and system
CN109598135B (en) * 2018-12-10 2020-11-10 北京八分量信息科技有限公司 Industrial control equipment operation and maintenance information storage method, device and system
CN109302501B (en) * 2018-12-10 2021-12-17 北京八分量信息科技有限公司 Industrial control data storage method, device and system based on block chain technology
CN111369088A (en) * 2018-12-25 2020-07-03 中国电力科学研究院有限公司 Block chain control system and control method for power grid dispatching system
CN110751480A (en) * 2019-09-24 2020-02-04 中国银联股份有限公司 Information query method, device, equipment and computer readable storage medium
CN110753103A (en) * 2019-10-16 2020-02-04 长春银彩通信息科技有限公司 Method and system for distributed efficient data sealing
CN112380549A (en) * 2020-11-13 2021-02-19 国网福建省电力有限公司经济技术研究院 Power grid engineering project investment statistical data management method based on block chain
CN112733211A (en) * 2021-01-15 2021-04-30 重庆邮电大学 Intelligent power grid data storage scheme based on block chain

Similar Documents

Publication Publication Date Title
CN108718344A (en) A kind of electric network data storage method and distributed power grid data-storage system
Pham et al. Privateride: A privacy-enhanced ride-hailing service
CN109450638A (en) Electronic component data management system and method based on block chain
CN104184713B (en) Terminal identification method, machine identifier register method and corresponding system, equipment
CN108764870A (en) Transaction processing method and device, electronic equipment based on block chain
CN104158824B (en) Genuine cyber identification authentication method and system
CN109165945A (en) Represent node device electoral machinery, device, computer equipment and storage medium
CN108646983A (en) The treating method and apparatus of storage service data on block chain
CN110096551A (en) Credit data storage method, device, equipment and medium based on block chain
CN108023729A (en) Block chain network and its method of commerce
Alangot et al. Decentralized and lightweight approach to detect eclipse attacks on proof of work blockchains
CN105871923B (en) Information processing method, information record node and participation node
CN103136255B (en) The method and apparatus of information management
CN109513207A (en) Processing method, device, storage medium, processor and the server of game asset
CN108199845A (en) A kind of light-weight authentication equipment and authentication method based on PUF
CN107846394A (en) For providing the system and method for accessing the different services of service provider
CN106204038A (en) The method and device that a kind of password string generates
CN109300038A (en) A kind of transaction system of resource flow
CN112116352A (en) Distributed energy transaction method for protecting user account privacy
CN106506165A (en) Fictitious assets anonymity sort method based on homomorphic cryptography
Rastogi et al. Privacy and security issues in big data: Through Indian prospective
CN107925881A (en) Wireless telecom equipment, wireless communication system, appraisal procedure and the non-transitory computer-readable medium having program stored therein
CN105227532B (en) A kind of blocking-up method and device of malicious act
CN108200450A (en) A kind of determining method, apparatus, electronic equipment and medium for paying close attention to legitimacy
Fabian et al. Adoption of security and privacy measures in bitcoin–stated and actual behavior

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: 20181030

RJ01 Rejection of invention patent application after publication