CN114697077A - Electric energy data transmission method and device, storage medium and computer equipment - Google Patents

Electric energy data transmission method and device, storage medium and computer equipment Download PDF

Info

Publication number
CN114697077A
CN114697077A CN202210175776.1A CN202210175776A CN114697077A CN 114697077 A CN114697077 A CN 114697077A CN 202210175776 A CN202210175776 A CN 202210175776A CN 114697077 A CN114697077 A CN 114697077A
Authority
CN
China
Prior art keywords
electric energy
data
energy data
encrypted
sensitive
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
CN202210175776.1A
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.)
Pns Beijing Science & Technology Co ltd
Power Supply Service Management Center Of State Grid Jiangxi Electric Power Co ltd
Original Assignee
Pns Beijing Science & Technology Co ltd
Power Supply Service Management Center Of State Grid Jiangxi Electric Power Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Pns Beijing Science & Technology Co ltd, Power Supply Service Management Center Of State Grid Jiangxi Electric Power Co ltd filed Critical Pns Beijing Science & Technology Co ltd
Priority to CN202210175776.1A priority Critical patent/CN114697077A/en
Publication of CN114697077A publication Critical patent/CN114697077A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
    • H04L63/0442Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload wherein the sending and receiving network entities apply asymmetric encryption, i.e. different keys for encryption and decryption
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J13/00Circuit arrangements for providing remote indication of network conditions, e.g. an instantaneous record of the open or closed condition of each circuitbreaker in the network; Circuit arrangements for providing remote control of switching means in a power distribution network, e.g. switching in and out of current consumers by using a pulse code signal carried by the network
    • H02J13/00006Circuit arrangements for providing remote indication of network conditions, e.g. an instantaneous record of the open or closed condition of each circuitbreaker in the network; Circuit arrangements for providing remote control of switching means in a power distribution network, e.g. switching in and out of current consumers by using a pulse code signal carried by the network characterised by information or instructions transport means between the monitoring, controlling or managing units and monitored, controlled or operated power network element or electrical equipment
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/12Applying verification of the received information
    • H04L63/123Applying verification of the received information received data contents, e.g. message integrity

Abstract

The invention discloses a transmission method and device of electric energy data, a storage medium and computer equipment, relates to the field of electric energy, and mainly aims to reduce the risk of sensitive data leakage. The method comprises the following steps: acquiring electric energy data of a party to which the data belongs; judging whether the electric energy data is damaged or not; if the electric energy data is not damaged, encrypting the electric energy data by using a public key of a data demand party to obtain encrypted electric energy data; uploading the encrypted electric energy data to a block chain, and transmitting the encrypted electric energy data to the data demand party based on a transmission flow in an intelligent contract on the block chain, so that the data demand party decrypts the encrypted electric energy data according to a private key. The invention is suitable for transmitting the electric energy data.

Description

Electric energy data transmission method and device, storage medium and computer equipment
Technical Field
The present invention relates to the field of electric energy, and in particular, to a method and an apparatus for transmitting electric energy data, a storage medium, and a computer device.
Background
With the development of the society, the electric energy data in the electric energy metering verification has the characteristics of large data volume, rapid growth and the like, and for the requirements of production and collaborative development, some electric energy data need to be provided to customers, so that the effective transmission of the electric energy data becomes particularly important.
Currently, the transmission of plaintext data is usually implemented based on block chain technology. However, in this way, any node on the block chain network can see the plaintext data, and if a certain node shares the sensitive data in the seen plaintext data with another person, leakage of the sensitive data may be caused, and meanwhile, in the process of sharing the plaintext data, leakage of the sensitive data in the plaintext data may also be caused if a third party intercepts the plaintext data.
Disclosure of Invention
The invention provides a transmission method and device of electric energy data, a storage medium and computer equipment, and mainly aims to reduce the risk of sensitive data leakage.
According to a first aspect of the present invention, there is provided a method for transmitting power data, comprising:
acquiring electric energy data of a party to which the data belongs;
judging whether the electric energy data is damaged or not;
if the electric energy data is not damaged, encrypting the electric energy data by using a public key of a data demand party to obtain encrypted electric energy data;
uploading the encrypted electric energy data to a block chain, and transmitting the encrypted electric energy data to the data demand party based on a transmission flow in an intelligent contract on the block chain, so that the data demand party decrypts the encrypted electric energy data according to a private key.
According to a second aspect of the present invention, there is provided a power data transmission device, comprising:
the acquisition unit is used for acquiring the electric energy data of the data owner;
the judging unit is used for judging whether the electric energy data are damaged or not;
the encryption unit is used for encrypting the electric energy data by using a public key of a data demander if the electric energy data is not damaged to obtain the encrypted electric energy data;
and the transmission unit is used for uploading the encrypted electric energy data to a block chain, and transmitting the encrypted electric energy data to the data demand party based on a transmission flow in an intelligent contract on the block chain, so that the data demand party can decrypt the encrypted electric energy data according to a private key.
According to a third aspect of the present invention, there is provided a computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of:
acquiring electric energy data of a party to which the data belongs;
judging whether the electric energy data is damaged or not;
if the electric energy data is not damaged, encrypting the electric energy data by using a public key of a data demand party to obtain encrypted electric energy data;
uploading the encrypted electric energy data to a block chain, and transmitting the encrypted electric energy data to the data demand party based on a transmission flow in an intelligent contract on the block chain, so that the data demand party decrypts the encrypted electric energy data according to a private key.
According to a fourth aspect of the present invention, there is provided a computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the program:
acquiring electric energy data of a party to which the data belongs;
judging whether the electric energy data is damaged or not;
if the electric energy data is not damaged, encrypting the electric energy data by using a public key of a data demand party to obtain encrypted electric energy data;
uploading the encrypted electric energy data to a block chain, and transmitting the encrypted electric energy data to the data demand party based on a transmission flow in an intelligent contract on the block chain, so that the data demand party decrypts the encrypted electric energy data according to a private key.
According to the electric energy data transmission method, the electric energy data transmission device, the storage medium and the computer equipment, compared with the mode of transmitting plaintext data on a block chain at present, the electric energy data of a party to which the data belongs is acquired; judging whether the electric energy data is damaged or not; meanwhile, if the electric energy data is not damaged, encrypting the electric energy data by using a public key of a data demand party to obtain encrypted electric energy data; and finally uploading the encrypted electric energy data to a block chain, and transmitting the encrypted electric energy data to a data demand party based on a transmission flow in an intelligent contract on the block chain, so that the data demand party decrypts the encrypted electric energy data according to a private key, and therefore by encrypting the electric energy data and uploading the encrypted electric energy data to the block chain, the encrypted electric energy data is transmitted to the data demand party based on the transmission flow in the intelligent contract on the block chain, the condition that any node on the block chain can see sensitive data is avoided, meanwhile, the condition that a third party intercepts the electric energy data can also be avoided, and the risk of sensitive data leakage in the electric energy data is reduced.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention and do not constitute a limitation of the invention. In the drawings:
fig. 1 shows a flow chart of a method for transmitting power data according to an embodiment of the present invention;
fig. 2 is a flow chart of another power data transmission method provided by the embodiment of the invention;
fig. 3 is a schematic structural diagram illustrating a transmission device for power data according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram illustrating another power data transmission device provided in an embodiment of the present invention;
fig. 5 shows a physical structure diagram of a computer device according to an embodiment of the present invention.
Detailed Description
The invention will be described in detail hereinafter with reference to the accompanying drawings in conjunction with embodiments. It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
At present, a plaintext data transmission mode is realized based on a block chain technology, so that plaintext data can be checked by any node on a block chain, and further the risk of sensitive data leakage in the plaintext data is increased.
In order to solve the above problem, an embodiment of the present invention provides a method for transmitting power data, as shown in fig. 1, where the method includes:
101. and acquiring the electric energy data of the data belonged party.
The electric energy data comprises basic information of the metering equipment, verification conclusion information of the metering equipment, basic information of the standard equipment, certificate state information of the standard equipment, qualification basic information of personnel and institutions, verification original data of the metering equipment, standard traceable service data, production detection data of suppliers, and various original certificate pictures, such as an authorization certificate, a standard certificate, a personnel qualification certificate and the like.
For the embodiment of the invention, in order to overcome the risk of sensitive electric energy data leakage in the prior art, the embodiment of the invention encrypts the electric energy data, uploads the encrypted electric energy data to the block chain, and finally transmits the encrypted electric energy data to the data demand party based on the transmission flow in the intelligent contract on the block chain, so that the condition that any node on the block chain can see the sensitive data is avoided, meanwhile, the condition that a third party intercepts the electric energy data is also avoided, and the risk of sensitive data leakage in the electric energy data is reduced. The embodiment of the invention is mainly applied to a scene of transmitting the electric energy data, and the execution main body of the embodiment of the invention is a device or equipment capable of transmitting the electric energy data, and can be specifically arranged at one side of a client or a server.
Specifically, identity verification information of a data owner and a data demander is recorded in the intelligent contract, the identities of the data owner and the data demander are verified based on the identity verification information, if the verification is passed, the electric energy data of the data owner can be uploaded to a block chain for sharing, and meanwhile, the verification is passed, the data demander can also be proved to obtain the electric energy data in the block chain.
Further, various electric energy data in electric energy metering detection are stored in a database, all electric energy data can be inquired by logging in the database through authorization, the inquired electric energy data are copied to obtain the electric energy data, whether the electric energy data are damaged or not is judged, if the electric energy data are not damaged, the electric energy data are encrypted by a public key of a data demand party to obtain encrypted electric energy data, the encrypted electric energy data are uploaded to a block chain, and finally the electric energy data are transmitted to the data demand party based on a transmission flow in an intelligent contract on the block chain so that the data demand party can decrypt the encrypted electric energy data according to a private key.
102. And judging whether the electric energy data is damaged or not.
For the embodiment of the present invention, after the electric energy data is obtained, in order to ensure the accuracy of the data uploaded to the block chain, it is first required to determine whether the electric energy data is damaged, if the electric energy data is damaged, the electric energy data needs to be obtained again, if the electric energy data is not damaged, the electric energy data is encrypted to obtain encrypted electric energy data, and the encrypted electric energy data is uploaded to the block chain, and finally, based on the transmission flow in the intelligent contract on the block chain, the encrypted electric energy data is transmitted to the data demand party so that the data demand party decrypts the encrypted electric energy data according to the private key to obtain the electric energy data, thereby avoiding the situation that any node on the block chain can see sensitive data, and simultaneously avoiding the situation that a third party intercepts the electric energy data, the risk of sensitive data leakage in the electric energy data is reduced.
103. And if the electric energy data is not damaged, encrypting the electric energy data by using a public key of a data demand party to obtain the encrypted electric energy data.
For the embodiment of the invention, a public key and a private key pair corresponding to a data demand party are recorded in the intelligent contract, if the electric energy data is not damaged, the public key of the data demand party is issued, the issued public key is used for encrypting the electric energy data to obtain encrypted electric energy data, the encrypted electric energy data is uploaded to a block chain, finally, the encrypted electric energy data is transmitted to the data demand party based on a transmission flow in the intelligent contract on the block chain, and finally, the encrypted electric energy data is decrypted by the data demand party according to the private key recorded in the intelligent contract to obtain decrypted electric energy data.
104. Uploading the encrypted electric energy data to a block chain, and transmitting the encrypted electric energy data to the data demand party based on a transmission flow in an intelligent contract on the block chain, so that the data demand party decrypts the encrypted electric energy data according to a private key.
For the embodiment of the invention, after the electric energy data is encrypted, the encrypted electric energy data is uploaded to a block chain, a data transmission channel in an intelligent contract on the block chain is opened, the encrypted electric energy data is transmitted to the data demand party based on the opening instruction, the data demand party obtains the encrypted electric energy data and decrypts the encrypted electric energy data based on a private key of the data demand party to obtain the decrypted electric energy data, therefore, the encrypted electric energy data is encrypted and uploaded to the block chain, and finally the encrypted electric energy data is transmitted to the data demand party based on a transmission flow in the intelligent contract on the block chain, so that the condition that sensitive data can be seen by any node on the block chain is avoided, and meanwhile, the condition that a third party intercepts the electric energy data can also be avoided, the risk of sensitive data leakage in the electric energy data is reduced.
According to the transmission method of the electric energy data, compared with the mode of transmitting plaintext data on a block chain at present, the electric energy data of a party to which the data belongs is obtained; judging whether the electric energy data is damaged or not; meanwhile, if the electric energy data is not damaged, encrypting the electric energy data by using a public key of a data demand party to obtain encrypted electric energy data; the encrypted electric energy data are finally uploaded to a block chain, the encrypted electric energy data are transmitted to a data demand party based on a transmission flow in an intelligent contract on the block chain, so that the data demand party can decrypt the encrypted electric energy data according to a private key, the electric energy data are encrypted and uploaded to the block chain, and the encrypted electric energy data are finally transmitted to the data demand party based on the transmission flow in the intelligent contract on the block chain, so that the condition that sensitive data can be seen by any node on the block chain is avoided, meanwhile, the condition that a third party intercepts the electric energy data can also be avoided, and the risk of sensitive data leakage in the electric energy data is reduced.
Further, in order to better describe the above process of transmitting the power data, as a refinement and an extension of the above embodiment, an embodiment of the present invention provides another power data transmission method, as shown in fig. 2, where the method includes:
201. and acquiring the electric energy data of the data belonged party.
For the embodiment of the present invention, a block chain system is used as a decentralized distributed system, a consensus mechanism and an intelligent contract are the keys for ensuring consistency of electric energy data between nodes, once the consensus mechanism is attacked or damaged, the electric energy data is significantly damaged, and a block chain structure is greatly affected, so we need to consider selection of a reasonable consensus mechanism and an algorithm to find a balance point between costs for security and attack security defense, and an alliance chain is a block chain running in a trusted environment and has the advantages of low energy consumption and high security The public key and the private key pair of the data demand party compile an intelligent contract by utilizing the solc, carry out security audit on the constructed intelligent contract, carry out formal verification on the intelligent contract, encrypt the intelligent contract after the verification is passed, upload the encrypted intelligent contract to the block chain, decrypt the intelligent contract in the block chain, namely the intelligent contract stored in the block chain is the decrypted intelligent contract, wherein the intelligent contract also comprises a transmission flow corresponding to the electric energy data, and meanwhile, the data affiliated party and the data demand party need to establish a unique verifiable digital identity, namely a node access mechanism, for the data affiliated party and the data demand party in the block chain in order to become nodes in the block chain and transmit the electric energy data in the block chain, the method comprises the steps of reasonably setting the connection number, connection duration, address list size, update frequency, update mechanism, connection selection mechanism, abnormality detection mechanism and the like of peer-to-peer network nodes, and setting corresponding permissions of a data affiliated party and a data demanding party in a block chain network, wherein the data affiliated party and the data demanding party correspond to different nodes in a block chain, when the data affiliated party and the data demanding party need to transmit electric energy data on the block chain, digital identity verification is firstly carried out, and after the verification is passed, the corresponding permissions can be driven in the block chain.
Further, after an intelligent contract is constructed, electric energy data of a party to which the data belong needs to be acquired in an electric power database, whether the acquired electric energy data are damaged or not is judged, if the electric energy data are not damaged, the electric energy data are encrypted by using a public key of a data demand party, the encrypted electric energy data are uploaded to a block chain, finally, the encrypted electric energy data are transmitted to the data demand party by using a transmission flow in the intelligent contract on the block chain, the data demand party decrypts the electric energy data according to a private key corresponding to the public key, and finally the electric energy data are acquired.
202. And calculating a first hash value corresponding to the electric energy data.
For the embodiment of the present invention, after obtaining the electric energy data of the data owner, in order to determine whether the electric energy data is damaged, the electric energy data needs to be compared with the original electric energy data recorded in the intelligent contract, that is, first, a first hash value corresponding to the electric energy data needs to be calculated, at the same time, a second hash value corresponding to the original electric energy data recorded in the intelligent contract is determined, and whether the first hash value is equal to the second hash value is determined, if the first hash value is equal to the second hash value, it is determined that the electric energy data is not damaged, if the electric energy data is not damaged, the electric energy data is encrypted to obtain encrypted electric energy data, the encrypted electric energy data is uploaded to a block chain, and the encrypted electric energy data is transmitted to the data demand side based on a transmission flow in the intelligent contract on the block chain, and the data requiring party decrypts the encrypted electric energy data according to the private key to obtain the decrypted electric energy data.
203. And judging whether the first hash value is equal to a second hash value or not based on the second hash value corresponding to the original electric energy data recorded in the intelligent contract.
For the embodiment of the present invention, because the intelligent contract constructed by the data owner and the data demander in advance records the hash value corresponding to the original electric energy data, and the hash value can uniquely determine the original electric energy data, in order to determine whether the acquired electric energy data is damaged, after calculating the first hash value corresponding to the acquired electric energy data, it is further necessary to determine the second hash value corresponding to the original electric energy data in the intelligent contract, and determine whether the first hash value is equal to the second hash value, if the first hash value is not equal to the second hash value, it is determined that the acquired electric energy data is damaged, the electric energy data of the data owner needs to be re-acquired, and if the first hash value is equal to the second hash value, it is determined that the electric energy data is not damaged, the undamaged electric energy data is encrypted, the encrypted electric energy data are obtained and uploaded to a block chain, an electric energy data transmission channel in an intelligent contract on the block chain is finally opened, the encrypted electric energy data are transmitted to the data demand side, and the data demand side decrypts the transmitted encrypted electric energy data according to a private key to obtain the decrypted electric energy data.
204. And if the first hash value is equal to the second hash value, encrypting the electric energy data by using a public key of a data demander to obtain the encrypted electric energy data.
For the embodiment of the present invention, after determining a first hash value corresponding to the electric energy data and a second hash value corresponding to the original electric energy data, it is determined whether the first hash value is equal to the second hash value, and if the first hash value is equal to the second hash value, in order to ensure that sensitive electric energy data is not leaked in a transmission process, sensitive electric energy data and non-sensitive electric energy data in the electric energy data need to be distinguished, based on this, the method includes: and dividing the electric energy data into sensitive electric energy data and non-sensitive electric energy data.
The sensitive electric energy data comprises original calibration data of the metering equipment, service data of standard traceability, production detection data of a supplier, service data of other future applications and the like, various original certificate pictures such as an authorization certificate, a standard certificate, a personnel qualification certificate and the like, and the non-sensitive electric energy data comprises basic information of the metering equipment, identification conclusion information of the metering equipment, basic information of the standard equipment, certificate state information of the standard equipment, basic qualification information of personnel and institutions and the like.
Specifically, before the electric energy data is uploaded to a block chain, a data uplink data list is firstly needed and is designed as an uplink data entity object, data fields in the uplink data entity object are divided into sensitive electric energy data and non-sensitive electric energy data according to privacy, namely, a private data account book is isolated, wherein the sensitive electric energy data are non-public electric energy data, the non-sensitive electric energy data are public electric energy data, data with different privacy requirements are divided according to business, a sub-account book technology is adopted, electric energy data with different privacy degrees can be encrypted and respectively encrypted, and a specific encryption method is as follows: encrypting the sensitive electric energy data by using a first public key of the data demand party to obtain encrypted sensitive electric energy data; and encrypting the non-sensitive electric energy data by using the second public key of the data demand party to obtain the encrypted non-sensitive electric energy data.
The first public key and the second public key are stored in the intelligent contract, and when the electric energy data needs to be encrypted, the intelligent contract dispatches the first public key and the second public key to a party to which the data belongs.
Specifically, after the electric energy data is divided into sensitive electric energy data and non-sensitive electric energy data according to the sensitivity, the data demand side sends a request for obtaining the electric energy data to the data party, after the request passes, the intelligent contract issues the first public key and the second public key to the data party, and the data party encrypts the sensitive electric energy data by using the first public key to obtain encrypted sensitive electric energy data, wherein the method specifically for encrypting the sensitive electric energy data comprises the following steps: encrypting a storage address corresponding to the sensitive electric energy data by using a first public key of the data demand party to obtain an encrypted storage address; and determining the encrypted storage address as the encrypted sensitive electric energy data.
Specifically, in order to further ensure that the sensitive electric energy data is not leaked, a storage address corresponding to the sensitive electric energy data needs to be acquired, the storage address is encrypted by using a first public key of the data demanding party to obtain an encrypted storage address corresponding to the sensitive electric energy data, the encrypted storage address is finally determined as the encrypted sensitive electric energy data, meanwhile, the non-sensitive electric energy data is encrypted by using a second public key of the data demanding party to obtain encrypted non-sensitive electric energy data, the encrypted storage address and the encrypted non-sensitive electric energy data are uploaded to a block chain, and the encrypted storage address and the encrypted non-sensitive electric energy data are finally transmitted to the data demanding party based on a transmission flow in an intelligent contract on the block chain, at this time, the data demander decrypts the encrypted storage address and the encrypted non-sensitive electric energy data according to the first private key and the second private key so as to obtain the sensitive electric energy data and the non-sensitive electric energy data.
205. Uploading the encrypted electric energy data to a block chain, and transmitting the encrypted electric energy data to the data demand party based on a transmission flow in an intelligent contract on the block chain, so that the data demand party decrypts the encrypted electric energy data according to a private key.
For the embodiment of the present invention, after the sensitive electric energy data and the non-sensitive electric energy data are respectively encrypted, in order to further ensure the security of the encrypted sensitive electric energy data and the encrypted non-sensitive electric energy data in the transmission process, the encrypted sensitive electric energy data and the encrypted non-sensitive electric energy data need to be uploaded to a block chain, and based on this, step 205 specifically includes: uploading the encrypted storage address and the encrypted non-sensitive electric energy data to a block chain, and transmitting the encrypted storage address and the encrypted non-sensitive electric energy data to the data demand party based on a transmission flow in an intelligent contract on the block chain, so that the data demand party decrypts the encrypted storage address according to a first private key and decrypts the encrypted non-sensitive electric energy data according to a second private key.
Specifically, an encrypted storage address corresponding to the sensitive electric energy data and the encrypted non-sensitive electric energy data are uploaded to a block chain, a data sharing channel in an intelligent contract on the block chain is opened, the encrypted storage address and the encrypted non-sensitive electric energy data are transmitted to the data demanding party, at this time, the intelligent contract issues a first private key and a second private key to the data demanding party, the data demanding party decrypts the encrypted storage address according to the first private key, and the data demanding party decrypts the encrypted non-sensitive electric energy data according to the second private key to obtain the decrypted non-sensitive electric energy data, wherein after the data demanding party decrypts the encrypted storage address according to the first private key, the method further comprises: and the data demand party acquires the sensitive electric energy data according to the decrypted storage address.
Specifically, the data demander decrypts the encrypted storage address according to a first private key to obtain a decrypted storage address, and the data demander obtains the sensitive electrical energy data according to the decrypted storage address, where for example, the decrypted storage address is C: \ Program Files \ Opera, and then the data demander obtains the sensitive electrical energy data according to the storage address, and it needs to be noted that the encrypted storage address and the encrypted non-sensitive electrical energy data in the block amount have data reading and decryption permissions only in a data demand method, all data demander access data will leave a block amount, and the encrypted storage address and the encrypted non-sensitive data on the trace and the block chain are not falsifiable.
According to another electric energy data transmission method provided by the invention, compared with the current mode of transmitting plaintext data on a block chain, the electric energy data of the party to which the data belongs is obtained; judging whether the electric energy data is damaged or not; meanwhile, if the electric energy data is not damaged, encrypting the electric energy data by using a public key of a data demand party to obtain encrypted electric energy data; the encrypted electric energy data are finally uploaded to a block chain, the encrypted electric energy data are transmitted to a data demand party based on a transmission flow in an intelligent contract on the block chain, so that the data demand party can decrypt the encrypted electric energy data according to a private key, the electric energy data are encrypted and uploaded to the block chain, and the encrypted electric energy data are finally transmitted to the data demand party based on the transmission flow in the intelligent contract on the block chain, so that the condition that sensitive data can be seen by any node on the block chain is avoided, meanwhile, the condition that a third party intercepts the electric energy data can also be avoided, and the risk of sensitive data leakage in the electric energy data is reduced.
Further, as a specific implementation of fig. 1, an embodiment of the present invention provides a transmission device for electric energy data, as shown in fig. 3, where the transmission device includes: an acquisition unit 31, a judgment unit 32, an encryption unit 33, and a transmission unit 34.
The obtaining unit 31 may be configured to obtain the power data of the data owner.
The determining unit 32 may be configured to determine whether the power data is damaged.
The encryption unit 33 may be configured to encrypt the electric energy data by using a public key of a data demander if the electric energy data is not damaged, so as to obtain encrypted electric energy data.
The transmission unit 34 may be configured to upload the encrypted electric energy data to a block chain, and transmit the encrypted electric energy data to the data demander based on a transmission flow in an intelligent contract on the block chain, so that the data demander decrypts the encrypted electric energy data according to a private key.
In a specific application scenario, in order to determine whether the power data is damaged, as shown in fig. 4, the determining unit 32 includes a calculating module 321, a determining module 322, and a first determining module 323.
The calculating module 321 may be configured to calculate a first hash value corresponding to the electric energy data.
The determining module 322 may be configured to determine whether the first hash value is equal to the second hash value based on a second hash value corresponding to the raw power data recorded in the smart contract.
The first determining module 323 may be configured to determine that the power data is not damaged if the first hash value is equal to the second hash value.
In a specific application scenario, in order to classify the electric energy data based on the sensitivity corresponding to the electric energy data, the apparatus further includes a dividing unit 35.
The dividing unit 35 may be configured to divide the electric energy data into sensitive electric energy data and non-sensitive electric energy data.
In a specific application scenario, in order to encrypt the electric energy data, the encryption unit 33 may be specifically configured to encrypt the sensitive electric energy data by using the first public key of the data demander, so as to obtain encrypted sensitive electric energy data; and encrypting the non-sensitive electric energy data by using the second public key of the data demand party to obtain the encrypted non-sensitive electric energy data.
In a specific application scenario, in order to encrypt the sensitive electric energy data to obtain encrypted sensitive electric energy data, the encryption unit 33 includes an encryption module 331 and a second determination module 332.
The encryption module 331 may be configured to encrypt the storage address corresponding to the sensitive electric energy data by using the first public key of the data demander, so as to obtain an encrypted storage address.
The second determining module 332 may be configured to determine the encrypted storage address as the encrypted sensitive power data.
In a specific application scenario, in order to transmit the encrypted electric energy data to a data demanding party, the transmission unit 34 may be specifically configured to upload the encrypted storage address and the encrypted non-sensitive electric energy data to a block chain, and transmit the encrypted storage address and the encrypted non-sensitive electric energy data to the data demanding party based on a transmission flow in an intelligent contract on the block chain, so that the data demanding party decrypts the encrypted storage address according to a first private key and decrypts the encrypted non-sensitive electric energy data according to a second private key.
In a specific application scenario, in order to acquire the electric energy data, the acquiring unit 31 may be further configured to acquire the sensitive electric energy data according to the decrypted storage address by the data demanding party.
It should be noted that other corresponding descriptions of the functional modules related to the transmission device of electric energy data provided in the embodiment of the present invention may refer to the corresponding description of the method shown in fig. 1, and are not described herein again.
Based on the method shown in fig. 1, correspondingly, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the following steps: acquiring electric energy data of a party to which the data belongs; judging whether the electric energy data is damaged or not; if the electric energy data is not damaged, encrypting the electric energy data by using a public key of a data demand party to obtain encrypted electric energy data; uploading the encrypted electric energy data to a block chain, and transmitting the encrypted electric energy data to the data demand party based on a transmission flow in an intelligent contract on the block chain, so that the data demand party decrypts the encrypted electric energy data according to a private key.
Based on the above embodiments of the method shown in fig. 1 and the apparatus shown in fig. 3, an embodiment of the present invention further provides an entity structure diagram of a computer device, as shown in fig. 5, where the computer device includes: a processor 41, a memory 42, and a computer program stored on the memory 42 and executable on the processor, wherein the memory 42 and the processor 41 are both arranged on a bus 43 such that when the processor 41 executes the program, the following steps are performed: acquiring electric energy data of a party to which the data belongs; judging whether the electric energy data is damaged or not; if the electric energy data is not damaged, encrypting the electric energy data by using a public key of a data demand party to obtain encrypted electric energy data; uploading the encrypted electric energy data to a block chain, and transmitting the encrypted electric energy data to the data demand party based on a transmission flow in an intelligent contract on the block chain, so that the data demand party decrypts the encrypted electric energy data according to a private key.
According to the technical scheme, the electric energy data of the data owner is acquired; judging whether the electric energy data is damaged or not; meanwhile, if the electric energy data is not damaged, encrypting the electric energy data by using a public key of a data demand party to obtain encrypted electric energy data; the encrypted electric energy data are finally uploaded to a block chain, the encrypted electric energy data are transmitted to a data demand party based on a transmission flow in an intelligent contract on the block chain, so that the data demand party can decrypt the encrypted electric energy data according to a private key, the electric energy data are encrypted and uploaded to the block chain, and the encrypted electric energy data are finally transmitted to the data demand party based on the transmission flow in the intelligent contract on the block chain, so that the condition that sensitive data can be seen by any node on the block chain is avoided, meanwhile, the condition that a third party intercepts the electric energy data can also be avoided, and the risk of sensitive data leakage in the electric energy data is reduced.
It will be apparent to those skilled in the art that the modules or steps of the present invention described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and alternatively, they may be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by 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.

Claims (10)

1. A method for transmitting power data, comprising:
acquiring electric energy data of a party to which the data belongs;
judging whether the electric energy data is damaged or not;
if the electric energy data is not damaged, encrypting the electric energy data by using a public key of a data demand party to obtain encrypted electric energy data;
uploading the encrypted electric energy data to a block chain, and transmitting the encrypted electric energy data to the data demand party based on a transmission flow in an intelligent contract on the block chain, so that the data demand party decrypts the encrypted electric energy data according to a private key.
2. The method of claim 1, wherein said determining whether the power data is corrupted comprises:
calculating a first hash value corresponding to the electric energy data;
judging whether the first hash value is equal to a second hash value or not based on the second hash value corresponding to the original electric energy data recorded in the intelligent contract;
and if the first hash value is equal to the second hash value, determining that the electric energy data is not damaged.
3. The method of claim 1, wherein before the encrypting the power data with the public key of the data demander to obtain the encrypted power data, the method further comprises:
and dividing the electric energy data into sensitive electric energy data and non-sensitive electric energy data.
4. The method of claim 3, wherein the encrypting the power data with the public key of the data demander to obtain the encrypted power data comprises:
encrypting the sensitive electric energy data by using a first public key of the data demand party to obtain encrypted sensitive electric energy data;
and encrypting the non-sensitive electric energy data by using the second public key of the data demand party to obtain the encrypted non-sensitive electric energy data.
5. The method according to claim 4, wherein the encrypting the sensitive electric energy data by using the first public key of the data demanding party to obtain the encrypted sensitive electric energy data comprises:
encrypting a storage address corresponding to the sensitive electric energy data by using a first public key of the data demand party to obtain an encrypted storage address;
and determining the encrypted storage address as the encrypted sensitive electric energy data.
6. The method of claim 5, wherein uploading the encrypted power data to a blockchain and transmitting the encrypted power data to the data consumer based on a transmission flow in a smart contract on the blockchain comprises:
uploading the encrypted storage address and the encrypted non-sensitive electric energy data to a block chain, and transmitting the encrypted storage address and the encrypted non-sensitive electric energy data to the data demand party based on a transmission flow in an intelligent contract on the block chain, so that the data demand party decrypts the encrypted storage address according to a first private key and decrypts the encrypted non-sensitive electric energy data according to a second private key.
7. The method of claim 6, wherein after the data consumer decrypts the encrypted storage address according to the first private key, the method further comprises:
and the data demand party acquires the sensitive electric energy data according to the decrypted storage address.
8. A power data transmission device, comprising:
the acquisition unit is used for acquiring the electric energy data of the data owner;
the judging unit is used for judging whether the electric energy data are damaged or not;
the encryption unit is used for encrypting the electric energy data by using a public key of a data demand party to obtain the encrypted electric energy data if the electric energy data is not damaged;
and the transmission unit is used for uploading the encrypted electric energy data to a block chain, and transmitting the encrypted electric energy data to the data demand party based on a transmission flow in an intelligent contract on the block chain, so that the data demand party can decrypt the encrypted electric energy data according to a private key.
9. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
10. A computer arrangement comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the computer program realizes the steps of the method of any one of claims 1 to 7 when executed by the processor.
CN202210175776.1A 2022-02-24 2022-02-24 Electric energy data transmission method and device, storage medium and computer equipment Pending CN114697077A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210175776.1A CN114697077A (en) 2022-02-24 2022-02-24 Electric energy data transmission method and device, storage medium and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210175776.1A CN114697077A (en) 2022-02-24 2022-02-24 Electric energy data transmission method and device, storage medium and computer equipment

Publications (1)

Publication Number Publication Date
CN114697077A true CN114697077A (en) 2022-07-01

Family

ID=82137314

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210175776.1A Pending CN114697077A (en) 2022-02-24 2022-02-24 Electric energy data transmission method and device, storage medium and computer equipment

Country Status (1)

Country Link
CN (1) CN114697077A (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109033855A (en) * 2018-07-18 2018-12-18 腾讯科技(深圳)有限公司 A kind of data transmission method based on block chain, device and storage medium
US20190074968A1 (en) * 2017-09-06 2019-03-07 Alibaba Group Holding Limited Method, apparatus and system for data encryption and decryption
CN109472568A (en) * 2018-10-23 2019-03-15 顺丰科技有限公司 A kind of block chain method of commerce, device, management system, equipment and storage medium
CN111625874A (en) * 2020-07-30 2020-09-04 杭州智诚惠通科技有限公司 Cloud-based super-data tamper-proofing method based on block chain technology
CN111683064A (en) * 2020-05-22 2020-09-18 易联众信息技术股份有限公司 Block chain-based data transfer method, device, medium, equipment and application
WO2020186727A1 (en) * 2019-03-18 2020-09-24 苏宁云计算有限公司 Sensitive data transaction method and system based on blockchain
CN112073467A (en) * 2020-08-11 2020-12-11 东软集团股份有限公司 Block chain-based data transmission method and device, storage medium and electronic equipment
CN112671802A (en) * 2021-01-12 2021-04-16 北京邮电大学 Data sharing method and system based on oblivious transmission protocol
CN112995136A (en) * 2021-02-03 2021-06-18 浙江泰科数联信息技术有限公司 K-out-of-m anonymous voting method based on alliance chain
CN113111371A (en) * 2021-04-30 2021-07-13 永旗(北京)科技有限公司 Data transmission method and system based on block chain
CN113342743A (en) * 2021-05-25 2021-09-03 江苏数予科技有限公司 Electronic archive data interaction method based on block chain bottom layer of alliance chain
CN113868685A (en) * 2021-10-08 2021-12-31 安徽施耐德成套电气有限公司 Electric power monitoring data encryption storage system based on block chain

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190074968A1 (en) * 2017-09-06 2019-03-07 Alibaba Group Holding Limited Method, apparatus and system for data encryption and decryption
CN109033855A (en) * 2018-07-18 2018-12-18 腾讯科技(深圳)有限公司 A kind of data transmission method based on block chain, device and storage medium
CN109472568A (en) * 2018-10-23 2019-03-15 顺丰科技有限公司 A kind of block chain method of commerce, device, management system, equipment and storage medium
WO2020186727A1 (en) * 2019-03-18 2020-09-24 苏宁云计算有限公司 Sensitive data transaction method and system based on blockchain
CN111683064A (en) * 2020-05-22 2020-09-18 易联众信息技术股份有限公司 Block chain-based data transfer method, device, medium, equipment and application
CN111625874A (en) * 2020-07-30 2020-09-04 杭州智诚惠通科技有限公司 Cloud-based super-data tamper-proofing method based on block chain technology
CN112073467A (en) * 2020-08-11 2020-12-11 东软集团股份有限公司 Block chain-based data transmission method and device, storage medium and electronic equipment
CN112671802A (en) * 2021-01-12 2021-04-16 北京邮电大学 Data sharing method and system based on oblivious transmission protocol
CN112995136A (en) * 2021-02-03 2021-06-18 浙江泰科数联信息技术有限公司 K-out-of-m anonymous voting method based on alliance chain
CN113111371A (en) * 2021-04-30 2021-07-13 永旗(北京)科技有限公司 Data transmission method and system based on block chain
CN113342743A (en) * 2021-05-25 2021-09-03 江苏数予科技有限公司 Electronic archive data interaction method based on block chain bottom layer of alliance chain
CN113868685A (en) * 2021-10-08 2021-12-31 安徽施耐德成套电气有限公司 Electric power monitoring data encryption storage system based on block chain

Similar Documents

Publication Publication Date Title
Liang et al. PDPChain: A consortium blockchain-based privacy protection scheme for personal data
Qi et al. Cpds: Enabling compressed and private data sharing for industrial Internet of Things over blockchain
Yu et al. A blockchain-based shamir’s threshold cryptography scheme for data protection in industrial internet of things settings
Wang et al. Chainsplitter: Towards blockchain-based industrial iot architecture for supporting hierarchical storage
US11244054B2 (en) Method and apparatus for trusted computing
Bao et al. IoTChain: A three-tier blockchain-based IoT security architecture
JP2021505097A (en) Device identification systems and methods for enrollment and registration of connected endpoint devices, as well as blockchain services
JP2021505098A (en) Systems and methods for recording device lifecycle transactions as a versioned block of a blockchain network using transaction connectors and broker services
Qi et al. Scalable industry data access control in RFID-enabled supply chain
US10523437B2 (en) System and method for authentication of things
CN110460439A (en) Information transferring method, device, client, server-side and storage medium
CN113742782A (en) Block chain access authority control method based on privacy protection and block chain system
CN112686668A (en) Alliance chain cross-chain system and method
US20210306135A1 (en) Electronic device within blockchain based pki domain, electronic device within certification authority based pki domain, and cryptographic communication system including these electronic devices
CN111340483A (en) Data management method based on block chain and related equipment
CN111880919A (en) Data scheduling method, system and computer equipment
Yang et al. A blockchain based data monitoring and sharing approach for smart grids
CN114697077A (en) Electric energy data transmission method and device, storage medium and computer equipment
CN113014545B (en) Data processing method and device, computer equipment and storage medium
CN114676192A (en) Electric energy metering data sharing method and device, storage medium and computer equipment
CN111753018B (en) E-letter method, system and computer equipment
CN113536388B (en) Data sharing method and system based on block chain
CN113706261A (en) Block chain-based power transaction method, device and system
CN115599773B (en) Distributed resource transfer method, device and system and computer equipment
CN116028965B (en) Data protection method, server and storage medium in distributed LVC training environment

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