CN114385748A - Electric energy data processing method, device, server and storage medium - Google Patents

Electric energy data processing method, device, server and storage medium Download PDF

Info

Publication number
CN114385748A
CN114385748A CN202111462389.8A CN202111462389A CN114385748A CN 114385748 A CN114385748 A CN 114385748A CN 202111462389 A CN202111462389 A CN 202111462389A CN 114385748 A CN114385748 A CN 114385748A
Authority
CN
China
Prior art keywords
electric energy
data
energy data
stored
initial
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
CN202111462389.8A
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.)
Shenzhen Power Supply Bureau Co Ltd
Original Assignee
Shenzhen Power Supply Bureau 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 Shenzhen Power Supply Bureau Co Ltd filed Critical Shenzhen Power Supply Bureau Co Ltd
Priority to CN202111462389.8A priority Critical patent/CN114385748A/en
Publication of CN114385748A publication Critical patent/CN114385748A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • G06F16/2291User-Defined Types; Storage management thereof
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • G06F16/2365Ensuring data consistency and integrity
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2458Special types of queries, e.g. statistical queries, fuzzy queries or distributed queries
    • G06F16/2465Query processing support for facilitating data mining operations in structured databases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures

Abstract

The application relates to an electric energy data processing method, an electric energy data processing device, a server, a storage medium and a computer program product. The method comprises the following steps: the method comprises the steps of obtaining an electric energy data application request, determining a stored data abstract value corresponding to initial electric energy data according to attribute information of the initial electric energy data based on an intelligent contract on a block chain, carrying out verification processing through the stored data abstract value and a evidence stored data abstract value corresponding to the initial electric energy data in a block chain account book to obtain a verification result, and determining the initial electric energy data as availability data according to the verification result. By adopting the method, the problem that the electric energy data cannot be applied subsequently due to tampering during storage can be avoided, and the stored electric energy data can be verified through the block chain before the electric energy data is applied, so that the consistency and integrity of the stored electric energy data are ensured, and the availability of the stored electric energy data is determined.

Description

Electric energy data processing method, device, server and storage medium
Technical Field
The present application relates to the field of power technologies, and in particular, to a method, an apparatus, a server, and a storage medium for processing electric energy data.
Background
The smart grid generally monitors the running conditions of key equipment in an electric power system in real time by using a sensor, then collects, integrates and stores the obtained electric energy data through a network system, and then explores regular information and implicit information in the electric energy data through technologies such as big data analysis and mining and the like so as to better provide electricity utilization services for users.
In the traditional technology, the cloud computing technology is adopted to store and manage the electric energy data collected by the sensor, the stored electric energy data is obtained when the cloud computing technology is applied, and the stored electric energy data is analyzed and mined to obtain an effective conclusion. However, the availability of the applied electrical energy data cannot be guaranteed with conventional techniques.
Disclosure of Invention
In view of the above, it is necessary to provide an electric energy data processing method, an apparatus, a server, and a storage medium capable of ensuring availability of stored electric energy data.
In a first aspect, the present application provides a method for processing electrical energy data. The method comprises the following steps:
acquiring an electric energy data storage request, wherein the electric energy data storage request comprises initial electric energy data;
determining a stored data abstract value corresponding to initial electric energy data according to attribute information of the initial electric energy data on the basis of an intelligent contract on a block chain;
and verifying the stored data abstract value and the stored evidence data abstract value corresponding to the initial electric energy data in the block chain account book to obtain a verification result, and determining the initial electric energy data as the availability data according to the verification result.
In one embodiment, the performing a verification process by using the stored data summary value and the stored data summary value corresponding to the initial electric energy data in the blockchain account book to obtain a verification result, and determining the initial electric energy data as the availability data according to the verification result includes:
judging whether the stored data abstract value is equal to a stored evidence data abstract value corresponding to the initial electric energy data in the block chain account book or not;
and if the stored data abstract value is equal to the stored evidence data abstract value corresponding to the initial electric energy data in the block chain account book, determining the initial electric energy data as availability data.
In one embodiment, the method further comprises:
if the stored data abstract value is different from the evidence stored data abstract value corresponding to the initial electric energy data in the block chain account book, restoring the initial electric energy data through the backup electric energy data to obtain target electric energy data, and determining the target electric energy data as availability data.
In one embodiment, the determining the stored data summary value corresponding to the initial electrical energy data according to the attribute information of the initial electrical energy data based on the intelligent contract on the blockchain includes:
acquiring corresponding initial electric energy data from the database according to the attribute information of the initial electric energy data on the basis of the intelligent contract on the block chain;
and calculating a stored data abstract value of the acquired initial electric energy data.
In one embodiment, the calculating the stored data summary value of the acquired initial electric energy data includes:
key data and common data in the initial electric energy data are extracted;
and calculating the stored data abstract values of the key data and the common data.
In one embodiment, the method further comprises:
calculating a certificate storage data abstract value of the initial electric energy data;
and storing the evidence storage data abstract value of the initial electric energy data into a block chain account book of each block chain based on a consensus mechanism among network nodes in the distributed network.
In a second aspect, the application further provides an electric energy data processing device. The device comprises:
the request acquisition module is used for acquiring an electric energy data storage request, wherein the electric energy data storage request comprises initial electric energy data;
the abstract value determining module is used for determining a stored data abstract value corresponding to the initial electric energy data according to the intelligent contract on the block chain and the attribute information of the initial electric energy data;
and the checking module is used for checking the stored data abstract value and the evidence stored data abstract value corresponding to the initial electric energy data in the block chain account book to obtain a checking result, and determining the initial electric energy data as the availability data according to the checking result.
In a third aspect, the application also provides a server. The server comprises a memory and a processor, the memory storing a computer program, the processor implementing the following steps when executing the computer program:
acquiring an electric energy data storage request, wherein the electric energy data storage request comprises initial electric energy data;
determining a stored data abstract value corresponding to initial electric energy data according to attribute information of the initial electric energy data on the basis of an intelligent contract on a block chain;
and verifying the stored data abstract value and the stored evidence data abstract value corresponding to the initial electric energy data in the block chain account book to obtain a verification result, and determining the initial electric energy data as the availability data according to the verification result.
In a fourth aspect, the present application further provides a storage medium. The storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of:
acquiring an electric energy data storage request, wherein the electric energy data storage request comprises initial electric energy data;
determining a stored data abstract value corresponding to initial electric energy data according to attribute information of the initial electric energy data on the basis of an intelligent contract on a block chain;
and verifying the stored data abstract value and the stored evidence data abstract value corresponding to the initial electric energy data in the block chain account book to obtain a verification result, and determining the initial electric energy data as the availability data according to the verification result.
In a fifth aspect, the present application further provides a computer program product. The computer program product comprising a computer program which when executed by a processor performs the steps of:
acquiring an electric energy data storage request, wherein the electric energy data storage request comprises initial electric energy data;
determining a stored data abstract value corresponding to initial electric energy data according to attribute information of the initial electric energy data on the basis of an intelligent contract on a block chain;
and verifying the stored data abstract value and the stored evidence data abstract value corresponding to the initial electric energy data in the block chain account book to obtain a verification result, and determining the initial electric energy data as the availability data according to the verification result.
According to the electric energy data processing method, the electric energy data processing device, the server, the storage medium and the computer program product, an electric energy data application request is obtained, a stored data abstract value corresponding to initial electric energy data is determined according to attribute information of the initial electric energy data on the basis of an intelligent contract on a block chain, verification processing is carried out on the stored data abstract value and a evidence data abstract value corresponding to the initial electric energy data in a block chain account book, a verification result is obtained, and the initial electric energy data is determined to be availability data according to the verification result; the method can avoid the problem that the electric energy data cannot be applied subsequently due to tampering during storage, and can verify the stored electric energy data through the block chain before the electric energy data are applied to ensure the consistency and integrity of the stored electric energy data, so that the availability of the stored electric energy data is determined.
Drawings
FIG. 1 is a schematic flow chart of a method for processing electrical energy data according to an embodiment;
FIG. 2 is a flow diagram illustrating a method of verification processing according to one embodiment;
FIG. 3 is a flow diagram illustrating a method for computing a stored data digest value according to one embodiment;
FIG. 4 is a flowchart illustrating a method for storing a digest value of credential data according to another embodiment;
FIG. 5 is a flow diagram illustrating a method for calculating a stored data digest value according to another embodiment;
FIG. 6 is a block diagram showing the structure of an electric energy data processing apparatus according to an embodiment;
fig. 7 is an internal configuration diagram of a server in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
In one embodiment, as shown in fig. 1, an electric energy data processing method is provided, and this embodiment is illustrated by applying the method to a server, and it is understood that the method may also be applied to a computer device, and may also be applied to a system including a server and a computer device, and is implemented by interaction between the computer device and the server. In this embodiment, the server may be implemented by a server cluster formed by a plurality of servers, the plurality of servers may form a distributed network, each network node in the distributed network has a corresponding blockchain, and each network node may be understood as a server. In this embodiment, the method includes the steps of:
s100, acquiring an electric energy data application request, wherein the electric energy data application request comprises attribute information of initial electric energy data.
Specifically, the attribute information of the initial electrical energy data may be a data identifier of the initial electrical energy data, a device identifier of a key device for acquiring the initial electrical energy data, a data type of the initial electrical energy data, an acquisition time of the initial electrical energy data, a storage format of the initial electrical energy data, a storage index of the initial electrical energy data in a database, and the like. The electric energy data corresponding to the electric energy to be applied can be obtained by inquiring the keywords, and the data range can be a data range corresponding to the electric energy data to be applied. The server may receive the electric energy data application request sent by the electric energy data application device, and form the name of the electric energy file, the query keyword, the data type and the data range of the initial electric energy data according to the initial electric energy data, and collectively obtain the electric energy data to be applied from the database, and further perform step S200. The initial electric energy data can be electric energy data acquired by key equipment in a power system, such as power generation, power transmission, power distribution, power supply and the like, and can be understood as electric energy data to be applied by electric energy data application equipment.
It should be noted that the electric energy data application request may be characterized as a request for obtaining the stored electric energy data in the database. The database may store a plurality of initial electric energy data and attribute information of each initial electric energy data.
And S200, determining a stored data abstract value corresponding to the initial electric energy data according to the attribute information of the initial electric energy data based on the intelligent contract on the block chain.
Specifically, after receiving the electric energy data application request, the server may automatically trigger an intelligent contract in the block chain, and the intelligent contract performs analysis, comparison, and/or operation on the initial electric energy data stored in the database according to the attribute information of the initial electric energy data, so as to obtain a stored data digest value corresponding to the initial electric energy data. At least two of the initial electrical energy data can be combined to form an electrical energy file, and then the summary value of the electrical energy file is calculated, i.e. the data summary value is stored. Meanwhile, abstract values of a plurality of electric energy files can be calculated, and initial electric energy data contained in different electric energy files can be different.
For example, if the stored initial electrical energy data includes initial electrical energy data 1, initial electrical energy data 2, initial electrical energy data 3, initial electrical energy data 4, initial electrical energy data 5, initial electrical energy data 6, initial electrical energy data 7, and initial electrical energy data 8, the initial electrical energy data 1, the initial electrical energy data 2, and the initial electrical energy data 3 may be combined into one electrical energy file, and the initial electrical energy data 4, the initial electrical energy data 5, the initial electrical energy data 6, the initial electrical energy data 7, and the initial electrical energy data 8 may be combined into another electrical energy file.
In this embodiment, the electrical energy file may include at least two initial electrical energy data to be verified, and all the electrical energy files may include all the initial electrical energy data. Meanwhile, after any network node (namely, a server) in the distributed network receives the electric energy data application request, the server can automatically trigger an intelligent contract deployed on the block chain, and the intelligent contract binds the storage data abstract value, the data identification of each initial electric energy data, the storage index of each initial electric energy data in the database and the acquisition time of each initial electric energy data and broadcasts the binding data to other network nodes to execute the same binding operation.
And S300, verifying the stored data abstract value and the evidence stored data abstract value corresponding to the initial electric energy data in the block chain account book to obtain a verification result, and determining the initial electric energy data as the availability data according to the verification result.
Specifically, the server can obtain the summary value of the stored data of each electric energy file from the block chain book of the block chain, then check the summary value of the stored data of the same electric energy file through the summary value of the stored data of each electric energy file to obtain a check result, determine the initial electric energy data in each electric energy file as the availability data according to the check result, and further perform big data analysis, mining and other processing on the availability data, so that the electric power system provides effective electricity utilization services for users. The verification process may include preprocessing, analysis processing, arithmetic processing, and/or alignment processing, among other processes.
The block body of each block can store information related to data such as a certificate data abstract value of initial electric energy data, a storage index of the initial electric energy data in a database, and an identification of a key device for collecting the initial electric energy data, and the like, and can check the consistency and integrity of the stored electric energy data through the information in the block head so as to ensure the availability of the electric energy data. The plurality of blockchains in the embodiment can be understood as electric energy data storage and verification blockchains with the characteristics of distributed storage, tamper resistance, multi-node common identification and the like.
It should be noted that the initial electric energy data in each electric energy file may also be determined as unavailability data according to the verification result.
In the electric energy data processing method, the server can obtain an electric energy data storage application request, a stored data abstract value corresponding to initial electric energy data is determined according to attribute information of the initial electric energy data based on an intelligent contract on a block chain, verification processing is carried out through the stored data abstract value and a evidence data abstract value corresponding to the initial electric energy data in a block chain account book, a verification result is obtained, and the initial electric energy data is determined to be availability data according to the verification result; the method can avoid the problem that the stored electric energy data cannot be applied subsequently due to tampering during storage of the electric energy data, can verify the stored electric energy data through a block chain before the electric energy data are applied to ensure the consistency and integrity of the stored electric energy data, thereby determining the availability of the stored electric energy data, further improving the reliability of the stored electric energy data, providing credible data for the application of the electric energy data, and meanwhile, applying the electric energy data with the availability to improve the power utilization service quality of a power system.
As an example, as shown in fig. 2, the step of performing a verification process by storing the data summary value and the evidence-stored data summary value corresponding to the initial electric energy data in the blockchain ledger in S300 to obtain a verification result, and determining the initial electric energy data as the availability data according to the verification result, may be implemented by:
s310, judging whether the stored data abstract value is equal to the evidence storing data abstract value corresponding to the initial electric energy data in the block chain account book.
Specifically, abstract values of different electric energy files, namely, evidence data abstract values, can be stored in the block chain account book, and the electric energy files correspond to the stored electric energy files, namely, the electric energy files are the same as initial electric energy data stored in the stored electric energy files, and unless the electric energy files are stored, the initial electric energy data in the electric energy files are tampered, which causes the electric energy files to be different from the stored electric energy files.
In this embodiment, the server may determine whether the stored data summary value of each electric energy file is equal to the stored data summary value of the corresponding electric energy file in the blockchain account book.
And S320, if the stored data abstract value is equal to the evidence stored data abstract value corresponding to the initial electric energy data in the block chain account book, determining the initial electric energy data as availability data.
It should be noted that, if the server determines that the stored data abstract value of each electric energy file is equal to the stored evidence data abstract value of the corresponding electric energy file in the blockchain account book, all the initial electric energy data in each electric energy file are determined as availability data, which indicates that all the initial electric energy data in each electric energy file are not tampered during storage, so that consistency and integrity of the electric energy data are ensured.
The electric energy data processing method can judge whether the stored data abstract value is equal to the evidence storing data abstract value corresponding to the initial electric energy data in the block chain account book or not, and if the stored data abstract value is equal to the evidence storing data abstract value corresponding to the initial electric energy data in the block chain account book, the initial electric energy data is determined to be the availability data, so that effective electric energy data can be applied to improve the electricity utilization service quality of the electric power system.
As an embodiment, the electric energy data processing method may further include: and if the stored data abstract value is different from the stored data abstract value corresponding to the initial electric energy data in the block chain account book, restoring the initial electric energy data through the backup electric energy data to obtain target electric energy data, and determining the target electric energy data as availability data.
Specifically, if the server determines that the stored data abstract value of each electric energy file is not equal to the stored evidence data abstract value of the corresponding electric energy file in the blockchain account book, or the stored data abstract value of a part of electric energy files is not equal to the stored evidence data abstract value of the corresponding electric energy file in the blockchain account book, the initial electric energy data in all the electric energy files or the initial electric energy data in a part of the electric energy files can be restored through the backup electric energy data to obtain the target electric energy data, that is, the initial electric energy data before being stored is used as the target electric energy data. The backup electric energy data can be understood as initial electric energy data before storage, namely, original electric energy data acquired by key equipment.
The server determines that the stored data abstract value of each electric energy file is not equal to the stored evidence data abstract value of the corresponding electric energy file in the blockchain account book, or the stored data abstract value of a part of electric energy files is not equal to the stored evidence data abstract value of the corresponding electric energy file in the blockchain account book, and indicates that abnormal data exists in the stored initial electric energy data, at the moment, the server can also send alarm information to the user terminal to prompt that abnormal data exists in the stored initial electric energy data of the user, and the abnormal data can be recorded in a log of a storage system.
The electric energy data processing method can obtain effective electric energy data, so that the effective electric energy data can be applied to improve the power utilization service quality of the power system.
As an embodiment, as shown in fig. 3, the step of determining the stored data summary value corresponding to the initial electrical energy data according to the attribute information of the initial electrical energy data based on the intelligent contract on the blockchain in S200 may be implemented by:
and S210, acquiring corresponding initial electric energy data from a database according to the attribute information of the initial electric energy data based on the intelligent contract on the block chain.
Specifically, the attribute information of the initial electric energy data may be a data identifier of the initial electric energy data, a storage index of the initial electric energy data in a database, and/or a collection time of the initial electric energy data. In this embodiment, when the server receives the electric energy data application request, the intelligent contract on the blockchain may be automatically invoked, and the initial electric energy data corresponding to the attribute information may be queried from the database according to the storage index of the received initial electric energy data, so as to verify the availability of the stored initial electric energy data.
And S220, calculating a stored data abstract value of the acquired initial electric energy data.
It should be noted that the server may combine all the acquired initial electric energy data into one or more electric energy files, and then calculate the stored data summary value of each electric energy file. The method for calculating the digest value may be a file information digest value calculation method, such as MD4, MD5, and so on. In an embodiment, the method of calculating the digest value may be a hash algorithm.
It will be appreciated that a plurality of stored data digest values may be stored simultaneously to the database and may be stored in the form of key-value pairs, with a semicolon separating the different stored data digest values.
The electric energy data processing method can acquire corresponding initial electric energy data from a database according to the attribute information of the initial electric energy data based on an intelligent contract on the block chain, calculate the stored data abstract value of the acquired initial electric energy data, and then carry out verification processing through the stored data abstract value and the evidence data abstract value in the block chain account book so as to ensure the consistency and the integrity of the stored electric energy data, thereby verifying the availability of the stored initial electric energy data and further improving the reliability of the stored electric energy data.
As an embodiment, before the step S100, the electric energy data processing method may further include: and acquiring an electric energy data storage request, and storing the initial electric energy data and the attribute information of the initial electric energy data into a database, wherein the electric energy data storage request comprises the initial electric energy data and the attribute information of the initial electric energy data.
Specifically, before S100, the server may receive an electric energy data storage request sent by the key device, and store, in response to the electric energy data storage request, a large amount of initial electric energy data to be stored and attribute information of each initial electric energy data, which are carried in the electric energy data storage request, into the database. The above-mentioned electric energy data storage request may be characterized as a request for the server to store the received electric energy data to the database.
In this embodiment, the attribute information of the initial electrical energy data may be information of a device identifier of a key device that collects the initial electrical energy data, a name of a constituent electrical energy file, a size of the constituent electrical energy file, a type of the initial electrical energy data, and the like. The initial electrical energy data stored in the database may be stored in the form of key-value pairs.
The attribute information of the initial electric energy data can store the initial electric energy data and the attribute information of the initial electric energy data into a database, so that the electric energy data can be managed uniformly, and convenience is provided for applying the electric energy data.
As an embodiment, as shown in fig. 4, before the step S100 is executed, the method for processing electric energy data may further include the steps of:
and S400, calculating the evidence storage data abstract value of the initial electric energy data.
Specifically, the server may determine the stored electric energy files according to all the initial electric energy data, and then calculate the digest values of the stored electric energy files, that is, the digest values of the stored data.
And S500, storing the evidence-storing data abstract value of the initial electric energy data into a block chain account book of each block chain based on a common identification mechanism among network nodes in the distributed network.
It should be noted that the above consensus mechanism may be understood as a rule established between network nodes in the distributed network to ensure that the summary values of the initial electrical energy data stored in the blockchain ledger are the same. Therefore, the server can send the stored evidence data abstract value of the initial electric energy data to other network nodes at any network node in the distributed network, that is, the current server, based on a common identification mechanism among the network nodes in the distributed network, so that the block chain ledger of the block chain in each network node stores the same evidence data abstract value of the initial electric energy data, thereby ensuring that the evidence data abstract value cannot be tampered, and providing guarantee for subsequent checking processing. Meanwhile, the server can also store the block information and the index identification of the block storing the evidence data abstract value of the initial electric energy data into the database.
The electric energy data processing method can calculate the summary value of the evidence storing data of the initial electric energy data, the summary value of the evidence storing data of the initial electric energy data is stored to the block chain ledger of each block chain based on a common identification mechanism among network nodes in a distributed network, and then verification processing is carried out through the summary value of the stored data and the summary value of the evidence storing data in the block chain ledger so as to ensure the consistency and the integrity of the stored electric energy data, thereby verifying the availability of the stored initial electric energy data and further improving the credibility of the stored electric energy data.
As an example, as shown in fig. 5, the step of calculating the stored data summary value of the acquired initial electrical energy data in S220 may include the following steps:
and S221, extracting important data and common data in the initial electric energy data.
Specifically, the server may extract key data and general data from the initial electric energy data according to the attribute information of the initial electric energy data. In this embodiment, the attribute information of the initial electric energy data may be the number of times the initial electric energy data is requested per unit time and/or the data type.
Meanwhile, the server can store the extracted key data and common data into the verification space, and further only the key data and the common data in the verification space are verified, so that the verified data volume is reduced, and the verification time is shortened.
And S222, calculating the stored data abstract values of the key data and the common data.
It should be noted that the server may determine the corresponding electric energy file according to the key data and the general data in the verification space, and then calculate the digest value of the corresponding electric energy file, that is, store the data digest value.
In this embodiment, the server may perform periodic cyclic check processing on all key data, and perform check processing on general data in a periodic random sampling manner to find abnormal data therein, and perform an alarm to improve the reliability of data storage. The cycle check period is short, a large amount of memory resources of the server are consumed, block chain loads are increased, data throughput is reduced, the cycle check period is too long, and timely reliability of data is difficult to guarantee. It will also be appreciated that the verified initial electrical energy data file may include all of the coincident data and some of the extracted common data.
The electric energy data processing method can extract key data and common data in initial electric energy data, calculate the stored data abstract values of the key data and the common data, and then verify the availability of the stored key data and the stored common data by the stored data abstract values and the evidence-storing data abstract values in the block chain account book.
In order to facilitate understanding of those skilled in the art, the electric energy data processing method provided by the present application is described by taking an execution subject as a server as an example, and specifically, the method includes:
(1) and acquiring an electric energy data storage request, and storing the initial electric energy data and the attribute information of the initial electric energy data into a database, wherein the electric energy data storage request comprises the initial electric energy data and the attribute information of the initial electric energy data.
(2) And calculating the abstract value of the evidence storage data of the initial electric energy data.
(3) And storing the evidence-storing data abstract value of the initial electric energy data into a block chain account book of each block chain based on a consensus mechanism among network nodes in the distributed network.
(4) And acquiring an electric energy data application request, wherein the electric energy data application request comprises attribute information of the initial electric energy data.
(5) And acquiring corresponding initial electric energy data from the database according to the attribute information of the initial electric energy data based on the intelligent contract on the block chain.
(6) And (4) extracting key data and common data in the initial electric energy data.
(7) And calculating the abstract values of the stored data of the key data and the common data.
(8) And judging whether the stored data abstract value is equal to the evidence storing data abstract value corresponding to the initial electric energy data in the block chain account book.
(9) And if the stored data abstract value is equal to the stored evidence data abstract value corresponding to the initial electric energy data in the block chain account book, determining the initial electric energy data as availability data.
(10) And if the stored data abstract value is different from the stored data abstract value corresponding to the initial electric energy data in the block chain account book, restoring the initial electric energy data through the backup electric energy data to obtain target electric energy data, and determining the target electric energy data as availability data.
For the implementation processes of (1) to (10), reference may be specifically made to the description of the above embodiments, and the implementation principles and technical effects thereof are similar and will not be described herein again.
It should be understood that, although the steps in the flowcharts related to the embodiments are shown in sequence as indicated by the arrows, the steps are not necessarily executed in sequence as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a part of the steps in the flowcharts related to the above embodiments may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of performing the steps or stages is not necessarily sequential, but may be performed alternately or alternately with other steps or at least a part of the steps or stages in other steps.
Based on the same inventive concept, the embodiment of the present application further provides an electric energy data processing apparatus for implementing the above-mentioned electric energy data processing method. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the method, so specific limitations in the following embodiments of the electrical energy data processing device can be referred to the above limitations on the electrical energy data processing method, and details are not described herein again.
In one embodiment, as shown in fig. 6, there is provided an electric energy data processing apparatus including: a request acquisition module 11, a digest value determination module 12 and a verification module 13, wherein:
the request acquisition module 11 is configured to acquire an electric energy data application request, where the electric energy data application request includes attribute information of initial electric energy data;
the abstract value determining module 12 is used for determining a stored data abstract value corresponding to the initial electric energy data according to the intelligent contract on the block chain and the attribute information of the initial electric energy data;
the checking module 13 is configured to perform checking processing on the stored data digest value and the evidence stored data digest value corresponding to the initial electric energy data in the block chain account book to obtain a checking result, and determine the initial electric energy data as the availability data according to the checking result.
The electric energy data processing apparatus provided in this embodiment may implement the above method embodiments, and the implementation principle and technical effect are similar, which are not described herein again.
In one embodiment, the verification module 13 includes: a judging unit and a first determining unit, wherein:
the judging unit is used for judging whether the stored data abstract value is equal to a evidence storing data abstract value corresponding to the initial electric energy data in the block chain account book or not;
and the first determining unit is used for determining the initial electric energy data as the availability data when the result of the judging unit is that the stored data abstract value is equal to the stored evidence data abstract value corresponding to the initial electric energy data in the block chain account book.
The electric energy data processing apparatus provided in this embodiment may implement the above method embodiments, and the implementation principle and technical effect are similar, which are not described herein again.
In one embodiment, the verification module 13 further includes: a second determination unit, wherein:
and the second determining unit is used for restoring the initial electric energy data through the backup electric energy data to obtain target electric energy data and determining the target electric energy data as availability data when the result of the judging unit is that the stored data abstract value is different from the evidence stored data abstract value corresponding to the initial electric energy data in the block chain account book.
The electric energy data processing apparatus provided in this embodiment may implement the above method embodiments, and the implementation principle and technical effect are similar, which are not described herein again.
In one embodiment, the digest value determination module 12 includes: a data acquisition unit and a calculation unit, wherein:
the data acquisition unit is used for acquiring corresponding initial electric energy data from the database according to the attribute information of the initial electric energy data on the basis of the intelligent contract on the block chain;
and the calculating unit is used for calculating the stored data abstract value of the acquired initial electric energy data.
The electric energy data processing apparatus provided in this embodiment may implement the above method embodiments, and the implementation principle and technical effect are similar, which are not described herein again.
In one embodiment, the computing unit includes: a data extraction subunit and a computation subunit, wherein:
the data extraction subunit is used for extracting key data and common data in the initial electric energy data;
and the calculating subunit is used for calculating the evidence storing data abstract values of the key data and the common data.
The electric energy data processing apparatus provided in this embodiment may implement the above method embodiments, and the implementation principle and technical effect are similar, which are not described herein again.
In one embodiment, the electric energy data processing apparatus comprises: a computing module and a storage module, wherein:
the calculation module is used for calculating the evidence storage data abstract value of the initial electric energy data;
and the storage module is used for storing the evidence storage data abstract value of the initial electric energy data to the block chain account book of each block chain based on a common identification mechanism among network nodes in the distributed network.
The electric energy data processing apparatus provided in this embodiment may implement the above method embodiments, and the implementation principle and technical effect are similar, which are not described herein again.
The modules in the above electric energy data processing device can be wholly or partially realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent of a processor in the server, and can also be stored in a memory in the server in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a server is provided, the internal structure of which may be as shown in FIG. 7. The server includes a processor, a memory, and a network interface connected by a system bus. Wherein the processor of the server is configured to provide computing and control capabilities. The memory of the server includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the server is used for storing electric energy data collected by key equipment in the electric power system. The network interface of the server is used for communicating with an external terminal through network connection. The computer program is executed by a processor to implement an electrical energy data processing method.
Those skilled in the art will appreciate that the architecture shown in fig. 7 is a block diagram of only a portion of the architecture associated with the subject application, and does not constitute a limitation on the servers to which the subject application applies, as a particular server may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, there is provided a server comprising a memory and a processor, the memory having a computer program stored therein, the processor when executing the computer program implementing the steps of:
acquiring an electric energy data storage request, wherein the electric energy data storage request comprises initial electric energy data;
determining a stored data abstract value corresponding to the initial electric energy data according to the attribute information of the initial electric energy data based on the intelligent contract on the block chain;
and verifying the stored data abstract value and the evidence stored data abstract value corresponding to the initial electric energy data in the block chain account book to obtain a verification result, and determining the initial electric energy data as the availability data according to the verification result.
In one embodiment, a storage medium is provided having a computer program stored thereon, the computer program when executed by a processor implementing the steps of:
acquiring an electric energy data storage request, wherein the electric energy data storage request comprises initial electric energy data;
determining a stored data abstract value corresponding to the initial electric energy data according to the attribute information of the initial electric energy data based on the intelligent contract on the block chain;
and verifying the stored data abstract value and the evidence stored data abstract value corresponding to the initial electric energy data in the block chain account book to obtain a verification result, and determining the initial electric energy data as the availability data according to the verification result.
In one embodiment, a computer program product is provided, comprising a computer program which, when executed by a processor, performs the steps of:
acquiring an electric energy data storage request, wherein the electric energy data storage request comprises initial electric energy data;
determining a stored data abstract value corresponding to the initial electric energy data according to the attribute information of the initial electric energy data based on the intelligent contract on the block chain;
and verifying the stored data abstract value and the evidence stored data abstract value corresponding to the initial electric energy data in the block chain account book to obtain a verification result, and determining the initial electric energy data as the availability data according to the verification result.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, database, or other medium used in the embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high-density embedded nonvolatile Memory, resistive Random Access Memory (ReRAM), Magnetic Random Access Memory (MRAM), Ferroelectric Random Access Memory (FRAM), Phase Change Memory (PCM), graphene Memory, and the like. Volatile Memory can include Random Access Memory (RAM), external cache Memory, and the like. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others. The databases referred to in various embodiments provided herein may include at least one of relational and non-relational databases. The non-relational database may include, but is not limited to, a block chain based distributed database, and the like. The processors referred to in the embodiments provided herein may be general purpose processors, central processing units, graphics processors, digital signal processors, programmable logic devices, quantum computing based data processing logic devices, etc., without limitation.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present application shall be subject to the appended claims.

Claims (10)

1. A method of processing electrical energy data, the method comprising:
acquiring an electric energy data application request, wherein the electric energy data application request comprises attribute information of initial electric energy data;
determining a stored data abstract value corresponding to the initial electric energy data according to the attribute information of the initial electric energy data on the basis of an intelligent contract on a block chain;
and verifying the stored data abstract value and the stored evidence data abstract value corresponding to the initial electric energy data in the block chain account book to obtain a verification result, and determining the initial electric energy data as the availability data according to the verification result.
2. The method according to claim 1, wherein the verifying the initial electrical energy data as availability data according to the verification result obtained by performing the verification process on the stored data summary value and the stored data summary value corresponding to the initial electrical energy data in the blockchain ledger comprises:
judging whether the stored data abstract value is equal to a stored evidence data abstract value corresponding to the initial electric energy data in the block chain account book or not;
and if the stored data abstract value is equal to the stored evidence data abstract value corresponding to the initial electric energy data in the block chain account book, determining the initial electric energy data as availability data.
3. The method of claim 2, further comprising:
if the stored data abstract value is different from the evidence stored data abstract value corresponding to the initial electric energy data in the block chain account book, restoring the initial electric energy data through the backup electric energy data to obtain target electric energy data, and determining the target electric energy data as availability data.
4. The method according to any one of claims 1 to 3, wherein determining the stored data summary value corresponding to the initial electrical energy data from the attribute information of the initial electrical energy data based on the smart contract on a blockchain comprises:
acquiring corresponding initial electric energy data from the database according to the attribute information of the initial electric energy data on the basis of the intelligent contract on the block chain;
and calculating a stored data abstract value of the acquired initial electric energy data.
5. The method according to claim 4, wherein said calculating a stored data summary value of the acquired initial electrical energy data comprises:
key data and common data in the initial electric energy data are extracted;
and calculating the stored data abstract values of the key data and the common data.
6. The method of claim 1, further comprising:
calculating a certificate storage data abstract value of the initial electric energy data;
and storing the evidence storage data abstract value of the initial electric energy data into a block chain account book of each block chain based on a consensus mechanism among network nodes in the distributed network.
7. An electrical energy data processing apparatus, characterized in that the apparatus comprises:
the request acquisition module is used for acquiring an electric energy data storage request, wherein the electric energy data storage request comprises initial electric energy data;
the abstract value determining module is used for determining a stored data abstract value corresponding to the initial electric energy data according to the intelligent contract on the block chain and the attribute information of the initial electric energy data;
and the checking module is used for checking the stored data abstract value and the evidence stored data abstract value corresponding to the initial electric energy data in the block chain account book to obtain a checking result, and determining the initial electric energy data as the availability data according to the checking result.
8. A server comprising a memory and a processor, the memory storing a computer program, characterized in that the processor realizes the steps of the method of any one of claims 1 to 6 when executing the computer program.
9. A storage medium having a computer program stored thereon, the computer program, when being executed by a processor, realizing the steps of the method of any one of claims 1 to 6.
10. A computer program product comprising a computer program, characterized in that the computer program realizes the steps of the method of any one of claims 1 to 6 when executed by a processor.
CN202111462389.8A 2021-12-02 2021-12-02 Electric energy data processing method, device, server and storage medium Pending CN114385748A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111462389.8A CN114385748A (en) 2021-12-02 2021-12-02 Electric energy data processing method, device, server and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111462389.8A CN114385748A (en) 2021-12-02 2021-12-02 Electric energy data processing method, device, server and storage medium

Publications (1)

Publication Number Publication Date
CN114385748A true CN114385748A (en) 2022-04-22

Family

ID=81195293

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111462389.8A Pending CN114385748A (en) 2021-12-02 2021-12-02 Electric energy data processing method, device, server and storage medium

Country Status (1)

Country Link
CN (1) CN114385748A (en)

Similar Documents

Publication Publication Date Title
US20110161302A1 (en) Distributed File System and Data Block Consistency Managing Method Thereof
CN107315668B (en) Automatic rapid detection method and device for data consistency of distributed storage system
US11563560B2 (en) Blockchain-based data evidence storage method and apparatus
CN109558397B (en) Data processing method, device, server and computer storage medium
US20230289828A1 (en) Data processing method, computer device, and readable storage medium
EP3934163A1 (en) Methods and consensus nodes for block generation
CN112395157A (en) Audit log obtaining method and device, computer equipment and storage medium
CN112488745A (en) Intelligent charge control management method, device, equipment and storage medium
Wang et al. Ess: An efficient storage scheme for improving the scalability of bitcoin network
CN109522273B (en) Method and device for realizing data writing
CN114513498B (en) File transmission verification method, device, computer equipment and storage medium
CN114385748A (en) Electric energy data processing method, device, server and storage medium
CN114218303A (en) Transaction data processing system, processing method, medium and equipment
CN114629690A (en) Equipment safety baseline compliance detection method and device and computer equipment
CN113986835A (en) Management method, device, equipment and storage medium for FastDFS distributed files
CN108614838B (en) User group index processing method, device and system
CN114153647B (en) Rapid data verification method, device and system for cloud storage system
CN116545782B (en) Data monitoring method and device of super-fusion cloud computing system
CN113157645B (en) Cluster data migration method, device, equipment and storage medium
CN113791922B (en) Exception handling method, system and device for distributed storage system
CN115061891A (en) System load capacity prediction method and device based on block chain
CN114491666A (en) File checking method and device and computer readable storage medium
CN115221125A (en) File processing method and device, electronic equipment and readable storage medium
CN114490157A (en) Fault detection method, device, equipment and storage medium
CN112699101A (en) Server system based on storage and processing

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