CN113222595A - Electric power data storage and query method and system based on block chain technology - Google Patents
Electric power data storage and query method and system based on block chain technology Download PDFInfo
- Publication number
- CN113222595A CN113222595A CN202110444524.XA CN202110444524A CN113222595A CN 113222595 A CN113222595 A CN 113222595A CN 202110444524 A CN202110444524 A CN 202110444524A CN 113222595 A CN113222595 A CN 113222595A
- Authority
- CN
- China
- Prior art keywords
- data
- block chain
- block
- power
- power data
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 54
- 238000005516 engineering process Methods 0.000 title claims abstract description 25
- 238000013500 data storage Methods 0.000 title claims abstract description 20
- 230000006870 function Effects 0.000 claims abstract description 15
- 238000004422 calculation algorithm Methods 0.000 claims abstract description 14
- 238000004891 communication Methods 0.000 claims description 7
- 238000012544 monitoring process Methods 0.000 claims description 7
- 238000004590 computer program Methods 0.000 claims description 5
- 238000012795 verification Methods 0.000 abstract description 6
- 238000010586 diagram Methods 0.000 description 10
- 238000012545 processing Methods 0.000 description 7
- 230000008569 process Effects 0.000 description 6
- 230000007246 mechanism Effects 0.000 description 4
- 230000009471 action Effects 0.000 description 3
- 238000013461 design Methods 0.000 description 3
- 239000012634 fragment Substances 0.000 description 3
- RTZKZFJDLAIYFH-UHFFFAOYSA-N Diethyl ether Chemical compound CCOCC RTZKZFJDLAIYFH-UHFFFAOYSA-N 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000008520 organization Effects 0.000 description 2
- 238000004873 anchoring Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000002146 bilateral effect Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000001419 dependent effect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000003745 diagnosis Methods 0.000 description 1
- 238000006073 displacement reaction Methods 0.000 description 1
- 238000013467 fragmentation Methods 0.000 description 1
- 238000006062 fragmentation reaction Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000007689 inspection Methods 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 238000013507 mapping Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000011664 signaling Effects 0.000 description 1
- 239000000779 smoke Substances 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
- 230000007474 system interaction Effects 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q20/00—Payment architectures, schemes or protocols
- G06Q20/38—Payment protocols; Details thereof
- G06Q20/389—Keeping log of transactions for guaranteeing non-repudiation of a transaction
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q20/00—Payment architectures, schemes or protocols
- G06Q20/38—Payment protocols; Details thereof
- G06Q20/382—Payment protocols; Details thereof insuring higher security of transaction
- G06Q20/3825—Use of electronic signatures
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q20/00—Payment architectures, schemes or protocols
- G06Q20/38—Payment protocols; Details thereof
- G06Q20/40—Authorisation, e.g. identification of payer or payee, verification of customer or shop credentials; Review and approval of payers, e.g. check credit lines or negative lists
- G06Q20/401—Transaction verification
- G06Q20/4014—Identity check for transactions
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q40/00—Finance; Insurance; Tax strategies; Processing of corporate or income taxes
- G06Q40/04—Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q50/00—Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
- G06Q50/06—Energy or water supply
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y04—INFORMATION OR COMMUNICATION TECHNOLOGIES HAVING AN IMPACT ON OTHER TECHNOLOGY AREAS
- Y04S—SYSTEMS INTEGRATING TECHNOLOGIES RELATED TO POWER NETWORK OPERATION, COMMUNICATION OR INFORMATION TECHNOLOGIES FOR IMPROVING THE ELECTRICAL POWER GENERATION, TRANSMISSION, DISTRIBUTION, MANAGEMENT OR USAGE, i.e. SMART GRIDS
- Y04S10/00—Systems supporting electrical power generation, transmission or distribution
- Y04S10/50—Systems or methods supporting the power network operation or management, involving a certain degree of interaction with the load-side end user applications
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y04—INFORMATION OR COMMUNICATION TECHNOLOGIES HAVING AN IMPACT ON OTHER TECHNOLOGY AREAS
- Y04S—SYSTEMS INTEGRATING TECHNOLOGIES RELATED TO POWER NETWORK OPERATION, COMMUNICATION OR INFORMATION TECHNOLOGIES FOR IMPROVING THE ELECTRICAL POWER GENERATION, TRANSMISSION, DISTRIBUTION, MANAGEMENT OR USAGE, i.e. SMART GRIDS
- Y04S50/00—Market activities related to the operation of systems integrating technologies related to power network operation or related to communication or information technologies
- Y04S50/12—Billing, invoicing, buying or selling transactions or other related activities, e.g. cost or usage evaluation
Landscapes
- Business, Economics & Management (AREA)
- Engineering & Computer Science (AREA)
- Accounting & Taxation (AREA)
- Finance (AREA)
- Strategic Management (AREA)
- Physics & Mathematics (AREA)
- General Business, Economics & Management (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Economics (AREA)
- Health & Medical Sciences (AREA)
- Computer Security & Cryptography (AREA)
- Marketing (AREA)
- Public Health (AREA)
- Water Supply & Treatment (AREA)
- General Health & Medical Sciences (AREA)
- Human Resources & Organizations (AREA)
- Primary Health Care (AREA)
- Tourism & Hospitality (AREA)
- Development Economics (AREA)
- Technology Law (AREA)
- Storage Device Security (AREA)
Abstract
The invention provides a block chain technology-based electric power data storage and query method and system, and relates to the field of block chains. A power data storage and query method based on a block chain technology comprises the following steps: classifying the power data, designing block chains with different functions, and storing the data into different block chains according to the classification; in the power block chain, performing system initialization by using an elliptic curve digital signature algorithm and asymmetric cryptography, and generating a secret key; the block chain intelligent contract completes identity authentication through a secret key and stores data into a block; according to the block chain system security verification method, the permissions of the roles of the block chain accounts can be set, only the corresponding account can be added into the block chain network, and meanwhile, the identity is verified for the second time, so that privacy protection of block chain data is achieved, and the security of the block chain system is guaranteed. In addition, the invention also provides a power data storage and query system based on the block chain technology, which comprises the following components: the device comprises a classification module, an encryption module and a storage module.
Description
Technical Field
The invention relates to the field of block chains, in particular to a method and a system for storing and querying electric power data based on a block chain technology.
Background
In general, the combination of the blockchain and the internet of things is still in a development stage at present, until now, no super application appears, and the blockchain achieves consistency among distributed nodes through a consensus algorithm to establish trust. At present, although various consensus algorithms are available for selection, the performance and safety requirements are difficult to meet. For a high-frequency small-amount transaction, a design that a side chain is combined with a certain credit granting mechanism can be added on the basis of a main chain, and data is synchronized with the main chain regularly to ensure that the transaction is completed quickly; for data sharing in a relatively closed environment, the system performance can be improved in a mode of reducing safety guarantee to a certain extent; for the large-capacity data uplink certificate, the hash value of the data is calculated instead of the data original text uplink certificate, and the hash value of the uplink is ensured not to be tampered; for the supervision of the block chain, a double-chain model can be introduced, all transactions are guaranteed to be executable after being approved by a supervision organization, and meanwhile, the identity privacy of a user plane is guaranteed.
Firstly, the generated energy of new energy such as wind, light and the like is completely dependent on natural conditions, can not be accurately predicted and is unstable, and the investment and maintenance cost of equipment make the profit low or even can not be guaranteed.
Generally speaking, the block chain electronic certificate data has several problems: (1) the degree of automation is not high in the process of storing the certificate; (2) the electronic data certificate storage risk is high in the certificate storage process; (3) the legal processing flow of the third-party institution is complicated; (4) electronic data security is missing; (5) both parties lack trust.
Disclosure of Invention
The invention aims to provide a power data storage and query method based on a block chain technology, which can realize privacy protection of block chain data and guarantee the safety of a block chain system by setting the authority of roles of block chain accounts, only adding the corresponding accounts into a block chain network and carrying out secondary verification on identities.
Another objective of the present invention is to provide a power data storage and query system based on the blockchain technology, which is capable of operating a power data storage and query method based on the blockchain technology.
The embodiment of the invention is realized by the following steps:
in a first aspect, an embodiment of the present application provides a method for storing and querying power data based on a block chain technology, including classifying power data, designing block chains with different functions, and storing data into different block chains according to the classification of the data; in the power block chain, performing system initialization by using an elliptic curve digital signature algorithm and asymmetric cryptography, and generating a secret key; and the block chain intelligent contract completes identity authentication through the key and stores the data into the block.
In some embodiments of the present invention, before the classifying the power data, designing block chains with different functions, and storing the data into different block chains according to the classification, the method further includes: the enterprise monitoring power smart grid regularly releases data signals, and the application service receives the signals to acquire power data.
In some embodiments of the present invention, the above-mentioned performing system initialization using elliptic curve digital signature algorithm and asymmetric cryptography in the power block chain and generating the key includes: the trusted terminal authenticates the user authority, determines the user as a legal user, and issues a public key, a private key and a corresponding data signature certificate for the authenticated user so as to encrypt data.
In some embodiments of the present invention, the above further includes: the data provider encrypts different raw data using different pseudonyms to reduce the correlation of raw data generated by the same data provider and attaches a digital signature of the data provider.
In some embodiments of the present invention, the storing data into the block by the block chain smart contract performing identity authentication through the key includes: and generating a data block, broadcasting the new block in the whole network, and adding the new block into a corresponding block chain.
In some embodiments of the present invention, the above further includes: if all users agree, the blockchain system sends the record including the currently audited block data and the corresponding signature to all authorized users for storage, network-wide broadcast, and addition to the corresponding blockchain.
In some embodiments of the present invention, the above further includes: the identity of a user is verified through a back-end service, then the identity of the user is secondarily verified through an intelligent contract in a digital signature mode, meanwhile, the user authority is controlled, only the corresponding account can be added into a block chain network through setting the authority of the role of the block chain account, and meanwhile, the identity is secondarily verified.
In a second aspect, an embodiment of the present application provides an electric power data storage and query system based on a block chain technology, which includes a classification module, configured to classify electric power data, design block chains with different functions, and store the data into different block chains according to the classification;
the encryption module is used for initializing a system by using an elliptic curve digital signature algorithm and asymmetric cryptography in the power block chain and generating a secret key;
and the storage module is used for completing identity authentication of the block chain intelligent contract through the key and storing the data into the block.
In some embodiments of the invention, the above includes: at least one memory for storing computer instructions; at least one processor in communication with the memory, wherein the at least one processor, when executing the computer instructions, causes the system to: the device comprises a classification module, an encryption module and a storage module.
In a third aspect, embodiments of the present application provide a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements a method as any one of power data storage and query methods based on a block chain technology.
Compared with the prior art, the embodiment of the invention has at least the following advantages or beneficial effects:
according to the block chain system, only the corresponding account can be added into the block chain network by setting the authority of the role of the block chain account, and the identity is verified for the second time, so that privacy protection of block chain data is realized, the safety of the block chain system is ensured, decentralization and real redundancy can be realized by permitting a block chain technology, no third party is required to access and control data, and data privacy protection can be realized; using blockchain techniques, a distributed edge data storage center can be constructed that stores data on a number of designated nodes in a particular area and can intelligently distribute to the distributed nodes.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
Fig. 1 is a schematic diagram illustrating steps of a power data storage and query method based on a block chain technique according to an embodiment of the present invention;
fig. 2 is a detailed step diagram of a power data storage and query method based on a block chain technology according to an embodiment of the present invention;
fig. 3 is a schematic diagram of a power data storage and query system module based on a block chain technique according to an embodiment of the present invention;
fig. 4 is an electronic device according to an embodiment of the present invention.
Icon: 10-a classification module; 20-an encryption module; 30-storage module.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures. Meanwhile, in the description of the present application, the terms "first", "second", and the like are used only for distinguishing the description, and are not to be construed as indicating or implying relative importance.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
Some embodiments of the present application will be described in detail below with reference to the accompanying drawings. The embodiments described below and the individual features of the embodiments can be combined with one another without conflict.
Example 1
Referring to fig. 1, fig. 1 is a schematic diagram illustrating steps of a power data storage and query method based on a block chain technique according to an embodiment of the present invention, which is shown as follows:
step S100, classifying the power data, designing block chains with different functions, and storing the data into different block chains according to the classification;
in some embodiments, electric power data are prepared, an enterprise monitoring electric power smart grid is adopted to regularly release data of data signals, a large storage burden is caused to nodes when a large amount of data are stored in a block chain, some key data are stored only by using a block chain technology, and other large data are stored in a mode of combining distributed storage and cloud storage.
Classifying data, for example, power failure diagnosis information, such as voltage and current monitoring, switch displacement, power failure event, equipment state and other sensing information; station area monitoring information, such as equipment body state, electrical operation state and environment variables (temperature, humidity, noise, smoke and the like); and (4) station energy information, such as information acquisition and fee control of station electric meters and user electric meters.
Step S110, in the power block chain, performing system initialization by using an elliptic curve digital signature algorithm and asymmetric cryptography, and generating a secret key;
in some embodiments, the trusted terminal performs authentication on the user right to determine that the user right is a valid user; issuing a public key, a private key and a corresponding data signature certificate for the verified user to encrypt data; the data provider encrypts different raw data using different pseudonyms to reduce the correlation of raw data generated by the same data provider and attaches a digital signature of the data provider.
In step S120, the blockchain smart contract completes identity authentication through the key to store data in the block.
In some embodiments, an enterprise monitoring power smart grid regularly issues data signals, an application service receives the signals to acquire data, an enterprise monitoring system authenticates node identities in an asymmetric encryption mode, a block chain system smart contract automatically stores the data into a block through identity authentication, meanwhile, historical power data at a certain moment can be inquired on a chain according to characteristics such as time and unique ID, and a block chain system and the smart contract carry out verification authority control on user identities, so that the safety and privacy of the data are greatly guaranteed, the data can be guaranteed not to be tampered, and the safety and effectiveness of the data are guaranteed. Contain multiple user's permission verification system, write in the block chain with the corresponding relation of the account role and the permission that set up in advance simultaneously, at first verify user's identity through the back-end service, then pass through intelligent contract secondary verification to user's identity through digital signature's mode, the colleague can also control user's permission, the permission through the role of setting up the block chain account number, only the account number that corresponds can join in the block chain network, carry out secondary verification to the identity simultaneously, realize the privacy protection to block chain data, the safety of the block chain system of assurance.
Example 2
Referring to fig. 2, fig. 2 is a detailed step diagram of a power data storage and query method based on a block chain technique according to an embodiment of the present invention, which is shown as follows:
step S200, the enterprise monitors the electric power smart grid to issue data signals at regular time, and the application service receives the signals to acquire electric power data.
Step S210, the trusted terminal performs authentication on the user right, determines that the user right is a valid user, and issues a public key and a private key and a corresponding data signature certificate for the authenticated user to encrypt data.
In step S220, the data provider encrypts different original data using different pseudonyms to reduce the correlation of the original data generated by the same data provider, and attaches a digital signature of the data provider.
Step S230, generating a data block, and adding the new block to the corresponding block chain through network broadcasting.
Step S240, if all users agree to the block data, the blockchain system sends the record including the currently checked block data and the corresponding signature to all authorized users for storage, network-wide broadcast, and adds the record to the corresponding blockchain.
And S250, verifying the user identity through a back-end service, secondarily verifying the user identity through an intelligent contract in a digital signature mode, controlling the user authority, adding only the corresponding account into the blockchain network by setting the authority of the role of the blockchain account, and simultaneously secondarily verifying the identity.
In some embodiments, data-to-user mapping lookups are employed to ensure efficient access control to electronic data pools. In this embodiment, a blockchain based data credentialing scheme is provided that allows a data user/owner to access electronic data from an electronic repository after authentication. The data storage is mainly distributed storage to ensure data security, and a user integration mechanism is introduced into the system to ensure system load balance. Authentication and subsequent servicing are enclosed within the system, writing blocks and forming part of a block chain.
The design of this embodiment adopts browser/server (B/S) architecture, which is divided into 4 layers, and from top to bottom: an application layer, a logic layer, an intelligent contract layer and a block chain layer,
(1) an application layer: the system mainly comprises a front-end user interface, a display layer and a service layer. The front-end UI is mainly responsible for providing a visual Web interface for a user to access the system. After a request submitted by a user is acquired, sending user request information to a logic layer for core calculation; and after the background data is processed, visually feeding back the user information to the user through a Web interface. The user can be a client needing to preserve data, and can also be a third-party organization needing to download data for notarization.
(2) A logic layer: and the implementation layer of the core function of the system. According to six functional interfaces provided for users by the application layer, the logic layer needs to respectively provide the implementation methods of the corresponding modules. The Socket multithreading concurrency module based on the Transmission Control Protocol (TCP) is a framework foundation for the smooth operation of the whole logic layer, and the system realizes the reliable transmission of data among multiple nodes by using the module. Furthermore, the electronic data is subjected to fragment processing by using a coding and decoding mode of the codes, a user node performance testing module is introduced, the node performance is sequenced, and the functional modules are used for uploading and downloading the data; introducing a Hash comparison module to detect whether file data is completely stored; a user integral module is introduced to ensure the load balance of the system;
(3) intelligent contract layer: deployed on an ether house and interacts with the system. The intelligent contract layer is mainly responsible for anchoring data processing results (such as fingerprint information of electronic data and fragments thereof, integral information of user nodes and the like) of the logic layer into a storage area of the block chain layer. The system intelligent contract mainly comprises a plurality of structural bodies, and stores key information of the power data in the structural mode. The method remarkably improves the efficiency of the system for inquiring the power data and enhances the running speed of the system.
(4) Block chain layer: and the decentralized database of the system stores data information generated by system interaction. The network layer bears information communication, generates a new block and maintains stable operation of a block chain network; the data layer stores all the key information of the uploaded power data of the whole system. By means of a novel technology of a block chain, electric power data records are stored on the block chain in a distributed mode, and a distributed storage system based on the block chain is designed and built by combining technologies such as time stamps, Hash algorithms, Etherhouse virtual machines and intelligent contracts. The system mainly carries out redundancy fragmentation on data, divides the data into n information pieces and m redundancy pieces according to the user requirements, and then carries out distributed storage on the data fragments. The method comprises the steps of collecting information of a system storage host, calculating a network comprehensive performance score of the system storage host by combining a fuzzy analytic hierarchy process and an ideal excellent base point, and ensuring load balance of system data storage. And according to the characteristics of decentralization of the intelligent contract, the integrity of the data is verified by using a Hash algorithm, and the consistency of the data among the computing nodes is ensured by using a consensus algorithm. We have devised a decentralized, verifiable distributed storage system. Based on the functions provided by the system, the user can be bilateral or multilateral, and the transaction processing, the evidence storage mechanism and the like of electronic data evidence storage can be automatically realized under the joint participation of third-party mechanisms of public inspection methods.
Example 3
Referring to fig. 3, fig. 3 is a schematic diagram of an electric power data storage and query system module based on a block chain technique according to an embodiment of the present invention, which is shown as follows:
the classification module 10 is used for classifying the power data, designing block chains with different functions, and storing the data into different block chains according to the classification;
an encryption module 20, configured to perform system initialization using an elliptic curve digital signature algorithm and asymmetric cryptography in the power block chain, and generate a key;
and the storage module 30 is used for the block chain intelligent contract to complete identity authentication through the key so as to store the data into the block.
As shown in fig. 4, an embodiment of the present application provides an electronic device, which includes a memory 101 for storing one or more programs; a processor 102. The one or more programs, when executed by the processor 102, implement the method of any of the first aspects as described above.
Also included is a communication interface 103, and the memory 101, processor 102 and communication interface 103 are electrically connected to each other, directly or indirectly, to enable transfer or interaction of data. For example, the components may be electrically connected to each other via one or more communication buses or signal lines. The memory 101 may be used to store software programs and modules, and the processor 102 executes the software programs and modules stored in the memory 101 to thereby execute various functional applications and data processing. The communication interface 103 may be used for communicating signaling or data with other node devices.
The Memory 101 may be, but is not limited to, a Random Access Memory 101 (RAM), a Read Only Memory 101 (ROM), a Programmable Read Only Memory 101 (PROM), an Erasable Read Only Memory 101 (EPROM), an electrically Erasable Read Only Memory 101 (EEPROM), and the like.
The processor 102 may be an integrated circuit chip having signal processing capabilities. The Processor 102 may be a general-purpose Processor 102, including a Central Processing Unit (CPU) 102, a Network Processor 102 (NP), and the like; but may also be a Digital Signal processor 102 (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware components.
In the embodiments provided in the present application, it should be understood that the disclosed method and system and method can be implemented in other ways. The method and system embodiments described above are merely illustrative, for example, the flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of methods and systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
In another aspect, embodiments of the present application provide a computer-readable storage medium, on which a computer program is stored, which, when executed by the processor 102, implements the method according to any one of the first aspect described above. The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory 101 (ROM), a Random Access Memory 101 (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
In summary, according to the method and system for storing and querying power data based on the blockchain technology provided by the embodiment of the present application, only the corresponding account can be added to the blockchain network by setting the authority of the role of the blockchain account, and the identity is verified for the second time, so that privacy protection on the blockchain data and the security of the blockchain system are ensured, decentralized and true redundancy can be realized by granting the blockchain technology, no third party is required to access and control the data, and data privacy protection can be realized; using blockchain techniques, a distributed edge data storage center can be constructed that stores data on a number of designated nodes in a particular area and can intelligently distribute to the distributed nodes.
The above is only a preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes will occur to those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
It will be evident to those skilled in the art that the present application is not limited to the details of the foregoing illustrative embodiments, and that the present application may be embodied in other specific forms without departing from the spirit or essential attributes thereof. The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the application being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned.
Claims (10)
1. A power data storage and query method based on a block chain technology is characterized by comprising the following steps:
classifying the power data, designing block chains with different functions, and storing the data into different block chains according to the classification;
in the power block chain, performing system initialization by using an elliptic curve digital signature algorithm and asymmetric cryptography, and generating a secret key;
and the block chain intelligent contract completes identity authentication through the key and stores the data into the block.
2. The method as claimed in claim 1, wherein before classifying the power data, designing block chains with different functions, and storing the data into different block chains according to the classification, the method further comprises:
the enterprise monitoring power smart grid regularly releases data signals, and the application service receives the signals to acquire power data.
3. The method of claim 1, wherein the performing system initialization using elliptic curve digital signature algorithm and asymmetric cryptography and generating the key in the power blockchain comprises:
the trusted terminal authenticates the user authority, determines the user as a legal user, and issues a public key, a private key and a corresponding data signature certificate for the authenticated user so as to encrypt data.
4. The method for storing and querying power data based on the blockchain technology as claimed in claim 3, further comprising:
the data provider encrypts different raw data using different pseudonyms to reduce the correlation of raw data generated by the same data provider and attaches a digital signature of the data provider.
5. The method of claim 1, wherein the block chain smart contract performing identity authentication through a key to store data into a block comprises:
and generating a data block, broadcasting the new block in the whole network, and adding the new block into a corresponding block chain.
6. The method for storing and querying power data based on the blockchain technology as claimed in claim 5, further comprising:
if all users agree, the blockchain system sends the record including the currently audited block data and the corresponding signature to all authorized users for storage, network-wide broadcast, and addition to the corresponding blockchain.
7. The method for storing and querying power data based on the blockchain technology as claimed in claim 1, further comprising:
the identity of a user is verified through a back-end service, then the identity of the user is secondarily verified through an intelligent contract in a digital signature mode, meanwhile, the user authority is controlled, only the corresponding account can be added into a block chain network through setting the authority of the role of the block chain account, and meanwhile, the identity is secondarily verified.
8. A power data storage and query system based on a block chain technology is characterized by comprising:
the classification module is used for classifying the power data, designing block chains with different functions and storing the data into different block chains according to the classification;
the encryption module is used for initializing a system by using an elliptic curve digital signature algorithm and asymmetric cryptography in the power block chain and generating a secret key;
and the storage module is used for completing identity authentication of the block chain intelligent contract through the key and storing the data into the block.
9. The system for storing and querying power data based on the blockchain technology as claimed in claim 8, comprising:
at least one memory for storing computer instructions;
at least one processor in communication with the memory, wherein the at least one processor, when executing the computer instructions, causes the system to perform: the device comprises a classification module, an encryption module and a storage module.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1-7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110444524.XA CN113222595A (en) | 2021-04-23 | 2021-04-23 | Electric power data storage and query method and system based on block chain technology |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110444524.XA CN113222595A (en) | 2021-04-23 | 2021-04-23 | Electric power data storage and query method and system based on block chain technology |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113222595A true CN113222595A (en) | 2021-08-06 |
Family
ID=77088534
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110444524.XA Pending CN113222595A (en) | 2021-04-23 | 2021-04-23 | Electric power data storage and query method and system based on block chain technology |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113222595A (en) |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113724890A (en) * | 2021-08-31 | 2021-11-30 | 平安国际智慧城市科技股份有限公司 | Health information verification method, device, system and medium based on block chain |
CN113742194A (en) * | 2021-09-17 | 2021-12-03 | 北京航空航天大学 | Block chain system environment three-dimensional scoring method based on analytic hierarchy process |
CN113742782A (en) * | 2021-11-04 | 2021-12-03 | 中国信息通信研究院 | Block chain access authority control method based on privacy protection and block chain system |
CN113806711A (en) * | 2021-09-30 | 2021-12-17 | 北京航星永志科技有限公司 | Login verification method and device based on block chain system and electronic equipment |
CN114172722A (en) * | 2021-12-06 | 2022-03-11 | 国网新疆电力有限公司信息通信公司 | Power consumer access control method and system based on block chain intelligent contract |
CN115017234A (en) * | 2022-06-29 | 2022-09-06 | 贵州财经大学 | Block chain information management system, block chain information storage and query method |
CN115795517A (en) * | 2023-01-28 | 2023-03-14 | 佰聆数据股份有限公司 | Asset data storage method and device |
CN116432207A (en) * | 2023-06-07 | 2023-07-14 | 国网福建省电力有限公司 | Power data authority hierarchical management method based on blockchain |
CN116561182A (en) * | 2023-07-07 | 2023-08-08 | 华北电力大学 | Power data storage method and system based on block chain |
CN117057974A (en) * | 2023-08-14 | 2023-11-14 | 摩尔线程智能科技(北京)有限责任公司 | GPU big data platform, electronic equipment and storage medium |
CN117472864A (en) * | 2023-10-08 | 2024-01-30 | 广东国地规划科技股份有限公司 | Multi-level multidimensional natural resource data double-chain cooperation method and system |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108173850A (en) * | 2017-12-28 | 2018-06-15 | 杭州趣链科技有限公司 | A kind of identity authorization system and identity identifying method based on block chain intelligence contract |
CN109936569A (en) * | 2019-02-21 | 2019-06-25 | 领信智链(北京)科技有限公司 | A kind of decentralization digital identity login management system based on ether mill block chain |
CN112214544A (en) * | 2020-08-28 | 2021-01-12 | 国网江西省电力有限公司信息通信分公司 | Ubiquitous power Internet of things edge data safe storage method based on permission block chain |
CN112307455A (en) * | 2020-12-28 | 2021-02-02 | 支付宝(杭州)信息技术有限公司 | Identity authentication method and device based on block chain and electronic equipment |
-
2021
- 2021-04-23 CN CN202110444524.XA patent/CN113222595A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108173850A (en) * | 2017-12-28 | 2018-06-15 | 杭州趣链科技有限公司 | A kind of identity authorization system and identity identifying method based on block chain intelligence contract |
CN109936569A (en) * | 2019-02-21 | 2019-06-25 | 领信智链(北京)科技有限公司 | A kind of decentralization digital identity login management system based on ether mill block chain |
CN112214544A (en) * | 2020-08-28 | 2021-01-12 | 国网江西省电力有限公司信息通信分公司 | Ubiquitous power Internet of things edge data safe storage method based on permission block chain |
CN112307455A (en) * | 2020-12-28 | 2021-02-02 | 支付宝(杭州)信息技术有限公司 | Identity authentication method and device based on block chain and electronic equipment |
Non-Patent Citations (1)
Title |
---|
刘昆等: "基于区块链技术的分布式云存储在电力系统的应用探究", 《计算机产品与流通》 * |
Cited By (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113724890A (en) * | 2021-08-31 | 2021-11-30 | 平安国际智慧城市科技股份有限公司 | Health information verification method, device, system and medium based on block chain |
CN113742194A (en) * | 2021-09-17 | 2021-12-03 | 北京航空航天大学 | Block chain system environment three-dimensional scoring method based on analytic hierarchy process |
CN113806711A (en) * | 2021-09-30 | 2021-12-17 | 北京航星永志科技有限公司 | Login verification method and device based on block chain system and electronic equipment |
WO2023077794A1 (en) * | 2021-11-04 | 2023-05-11 | 中国信息通信研究院 | Blockchain access permission control method, and system, device, program and medium |
CN113742782A (en) * | 2021-11-04 | 2021-12-03 | 中国信息通信研究院 | Block chain access authority control method based on privacy protection and block chain system |
CN114172722B (en) * | 2021-12-06 | 2023-10-31 | 国网新疆电力有限公司信息通信公司 | Power user access control method and system based on blockchain intelligent contract |
CN114172722A (en) * | 2021-12-06 | 2022-03-11 | 国网新疆电力有限公司信息通信公司 | Power consumer access control method and system based on block chain intelligent contract |
CN115017234A (en) * | 2022-06-29 | 2022-09-06 | 贵州财经大学 | Block chain information management system, block chain information storage and query method |
CN115795517A (en) * | 2023-01-28 | 2023-03-14 | 佰聆数据股份有限公司 | Asset data storage method and device |
CN116432207A (en) * | 2023-06-07 | 2023-07-14 | 国网福建省电力有限公司 | Power data authority hierarchical management method based on blockchain |
CN116432207B (en) * | 2023-06-07 | 2023-09-22 | 国网福建省电力有限公司 | Power data authority hierarchical management method based on blockchain |
CN116561182A (en) * | 2023-07-07 | 2023-08-08 | 华北电力大学 | Power data storage method and system based on block chain |
CN116561182B (en) * | 2023-07-07 | 2023-09-19 | 华北电力大学 | Power data storage method and system based on block chain |
CN117057974A (en) * | 2023-08-14 | 2023-11-14 | 摩尔线程智能科技(北京)有限责任公司 | GPU big data platform, electronic equipment and storage medium |
CN117057974B (en) * | 2023-08-14 | 2024-04-09 | 摩尔线程智能科技(北京)有限责任公司 | GPU big data platform, electronic equipment and storage medium |
CN117472864A (en) * | 2023-10-08 | 2024-01-30 | 广东国地规划科技股份有限公司 | Multi-level multidimensional natural resource data double-chain cooperation method and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN113222595A (en) | Electric power data storage and query method and system based on block chain technology | |
CN109450638B (en) | Block chain-based electronic component data management system and method | |
CN109462587B (en) | Block chain layered consensus method, block chain network system and block chain node | |
US20230023857A1 (en) | Data processing method and apparatus, intelligent device, and storage medium | |
De Oliveira et al. | Towards a blockchain-based secure electronic medical record for healthcare applications | |
Gilani et al. | A survey on blockchain-based identity management and decentralized privacy for personal data | |
CN110046996B (en) | Data processing method and device | |
WO2019214311A1 (en) | Blockchain-based information supervision method and device | |
Lu et al. | Accelerating at the edge: A storage-elastic blockchain for latency-sensitive vehicular edge computing | |
CN111385103B (en) | Authority processing method, system and device and electronic equipment | |
CN110324331B (en) | Block chain-based identity authentication method for safety and stability control terminal of power system | |
CN110717759A (en) | Cross-chain anchored block chain heterogeneous system | |
CN113256297B (en) | Data processing method, device and equipment based on block chain and readable storage medium | |
JP2023524715A (en) | Identity provisioning across networks | |
CN112214544A (en) | Ubiquitous power Internet of things edge data safe storage method based on permission block chain | |
CN112732695A (en) | Cloud storage data security deduplication method based on block chain | |
CN109979550A (en) | A kind of block chain medical data management method and system based on distributed nature signature | |
CN106230790A (en) | The method building information service platform based on cloud computing | |
CN113347008A (en) | Loan information storage method adopting addition homomorphic encryption | |
CN110704511A (en) | Data processing method, device, apparatus and medium | |
Wang et al. | A fast and secured peer-to-peer energy trading using blockchain consensus | |
CN113011960A (en) | Block chain-based data access method, device, medium and electronic equipment | |
CN109104444B (en) | Electronic signature method based on block chain | |
Sultanov et al. | Development of a centralized system for data storage and processing on operation modes and reliability indicators of power equipment | |
WO2018219425A1 (en) | Method for validating and/or authenticating online curriculum vitae using blockchain distributed ledger technology |
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: 20210806 |
|
RJ01 | Rejection of invention patent application after publication |