CN110868292B - Underground cable data transmission method and device based on block chain - Google Patents

Underground cable data transmission method and device based on block chain Download PDF

Info

Publication number
CN110868292B
CN110868292B CN201911218587.2A CN201911218587A CN110868292B CN 110868292 B CN110868292 B CN 110868292B CN 201911218587 A CN201911218587 A CN 201911218587A CN 110868292 B CN110868292 B CN 110868292B
Authority
CN
China
Prior art keywords
underground cable
cable data
data
block chain
key
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.)
Active
Application number
CN201911218587.2A
Other languages
Chinese (zh)
Other versions
CN110868292A (en
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.)
Hunan Guoao Power Equipment Co ltd
Original Assignee
Hunan Guoao Power Equipment 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 Hunan Guoao Power Equipment Co ltd filed Critical Hunan Guoao Power Equipment Co ltd
Priority to CN201911218587.2A priority Critical patent/CN110868292B/en
Publication of CN110868292A publication Critical patent/CN110868292A/en
Application granted granted Critical
Publication of CN110868292B publication Critical patent/CN110868292B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/08Key distribution or management, e.g. generation, sharing or updating, of cryptographic keys or passwords
    • H04L9/0816Key establishment, i.e. cryptographic processes or cryptographic protocols whereby a shared secret becomes available to two or more parties, for subsequent use
    • H04L9/0819Key transport or distribution, i.e. key establishment techniques where one party creates or otherwise obtains a secret value, and securely transfers it to the other(s)
    • H04L9/0825Key transport or distribution, i.e. key establishment techniques where one party creates or otherwise obtains a secret value, and securely transfers it to the other(s) using asymmetric-key encryption or public key infrastructure [PKI], e.g. key signature or public key certificates
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/06Network architectures or network communication protocols for network security for supporting key management in a packet data network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/50Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols using hash chains, e.g. blockchains or hash trees

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The application relates to an underground cable data transmission method and device based on a block chain. The method comprises the following steps: uploading the encrypted underground cable data to a blockchain; storing and propagating the underground cable data through the block link points; when the underground cable data is transmitted to the corresponding block chain node, judging whether the block chain node stores a decryption key corresponding to the underground cable data; when the block chain node does not store a decryption key corresponding to the underground cable data, storing the encrypted underground cable data; and when the block chain node stores a decryption key corresponding to the underground cable data, performing decryption operation on the underground cable data to obtain a data plaintext. The method can ensure data security.

Description

Underground cable data transmission method and device based on block chain
Technical Field
The application relates to the technical field of data security, in particular to an underground cable data transmission method and device based on a block chain.
Background
Along with the urban power supply mode, the overhead line is changed into the underground cable burying mode, and the requirements on the reliability and the power supply quality of the power distribution network and the underground cable are higher and higher. Underground cable generally has a long running period, and is easily influenced by other disasters such as water seepage or insect damage. Therefore, it is particularly important to comprehensively monitor the operating states of the power distribution network along the cable and the related devices in the underground cable in real time, so that the working data of the underground cable needs to be collected in real time.
The existing underground cable data acquisition is to transmit the acquired data back to the background, so people can tamper the data at any time in the background, and the final data is inaccurate.
Disclosure of Invention
In view of the above, there is a need to provide a method and an apparatus for block-chain-based underground cable data transmission, which can ensure data accuracy.
A blockchain-based underground cable data transmission method, the method comprising:
uploading the encrypted underground cable data to a blockchain;
storing and propagating the underground cable data through the block link points;
when the underground cable data is transmitted to the corresponding block chain node, judging whether the block chain node stores a decryption key corresponding to the underground cable data;
when the block chain node does not store a decryption key corresponding to the underground cable data, storing the encrypted underground cable data;
and when the block chain node stores a decryption key corresponding to the underground cable data, performing decryption operation on the underground cable data to obtain a data plaintext.
In one embodiment, the method further comprises:
locally generating a key corresponding to the local terminal identifier;
encrypting the secret key through a public key of a block chain node needing directional authorization;
and directionally authorizing the encrypted key to the corresponding block chain node.
In one embodiment, the directionally authorizing the encrypted key to the corresponding block link point includes:
decrypting the encrypted secret key through a private key of a block chain node needing directional authorization to obtain a secret key;
packaging the secret key into a preset library;
the decrypting operation of the underground cable data to obtain the data plaintext comprises the following steps:
and calling a preset library to perform decryption operation on the underground cable data to obtain a data plaintext.
In one embodiment, after storing the encrypted underground cable data, the method further includes:
continuing to send the underground cable data to a next block chain node such that the block chain node performs accounting processing on the underground cable data.
In one embodiment, after the decrypting operation is performed on the underground cable data to obtain the data plaintext, the method further includes:
inputting the data plaintext into an underground cable fault prediction model obtained by pre-training to obtain a fault prediction result corresponding to the data plaintext;
and carrying out fault early warning operation on the underground cable corresponding to the underground cable data according to the fault prediction result.
An underground cable data transmission apparatus based on a blockchain, the apparatus comprising:
the uploading module is used for uploading the encrypted underground cable data to the block chain;
the first transmission module is used for storing and transmitting the underground cable data through the block link points;
the judging module is used for judging whether the block chain node stores a decryption key corresponding to the underground cable data or not when the underground cable data is transmitted to the corresponding block chain node;
the storage module is used for storing the encrypted underground cable data when the decryption key corresponding to the underground cable data is not stored in the block chain node;
and the decryption module is used for decrypting the underground cable data to obtain a data plaintext when the decryption key corresponding to the underground cable data is stored in the block link point.
In one embodiment, the apparatus further comprises:
the key generation module is used for locally generating a key corresponding to the local terminal identifier;
the encryption module is used for encrypting the secret key through a public key of a block chain node needing directional authorization;
and the directional authorization module is used for directionally authorizing the encrypted key to the corresponding block chain node.
In one embodiment, the directional authorization module comprises:
the decryption unit is used for decrypting the encrypted secret key through a private key of a block chain node needing directional authorization to obtain a secret key;
the packaging unit is used for packaging the secret key into a preset library;
the decryption module is further used for calling a preset library to decrypt the underground cable data to obtain a data plaintext.
A computer device comprising a memory storing a computer program and a processor implementing the steps of any of the methods described above when the processor executes the computer program.
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 of the above.
According to the underground cable data transmission method and device based on the block chain, encrypted underground cable data are uploaded to the block chain in the transmission process, so that the safety of the data is guaranteed by means of the characteristic that the data on the block chain cannot be tampered, and the underground cable data are stored and transmitted through the block chain link points; when the underground cable data is transmitted to the corresponding block chain node, judging whether the block chain node stores a decryption key corresponding to the underground cable data; when the block chain node does not store a decryption key corresponding to the underground cable data, storing the encrypted underground cable data; when the decryption key corresponding to the underground cable data is stored in the blockchain node, the underground cable data is decrypted to obtain a data plaintext, that is, the data on the blockchain is encrypted and transmitted, the data plaintext can be obtained only by the node corresponding to the decryption key, and the data plaintext cannot be obtained by other nodes, so that the security of the data is further ensured.
Drawings
FIG. 1 is a diagram of an application scenario of a block chain-based underground cable data transmission method in one embodiment;
FIG. 2 is a schematic flow chart of a block chain based underground cable data transmission method in one embodiment;
FIG. 3 is a block diagram of an embodiment of a block chain based underground cable data transmission installation;
FIG. 4 is a diagram illustrating an internal structure of a computer device according to an 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.
The underground cable data transmission method based on the block chain can be applied to the application environment shown in fig. 1. Therein, the underground cable data acquisition system 102 communicates with the blockchain 104 over a network. The underground cable data acquisition system 102 is configured to acquire underground cable data, upload the underground cable data to the block chain 104, store the underground cable data through a strong accounting function of the block chain 104, and prevent the underground cable data from being tampered with, and when the underground cable data is transmitted to a corresponding block chain node, determine whether the block chain node stores a decryption key corresponding to the underground cable data; when the block chain node does not store a decryption key corresponding to the underground cable data, storing the encrypted underground cable data; when the decryption key corresponding to the underground cable data is stored in the block chain node, the underground cable data is decrypted to obtain a data plaintext, that is, the underground cable data can be decrypted only at the corresponding node, that is, the node where the decryption key exists, to obtain the data plaintext, and then the data plaintext is analyzed, so that other nodes cannot obtain the data plaintext, and the security of the data is further ensured.
In one embodiment, as shown in fig. 2, there is provided a block chain-based underground cable data transmission method, which is described by taking the method as an example applied to the server in fig. 1, and includes the following steps:
s202: the encrypted underground cable data is uploaded to a blockchain.
Specifically, the encrypted underground cable data is obtained by encrypting underground cable data acquired by an underground cable acquisition system, wherein the underground cable data includes current environment data and current operation data, the current environment data includes one or more of temperature data, water-sensitive data, environmental gas data and displacement data, the operation data includes but is not limited to partial discharge signals, and the current operation data may also refer to the magnitude of current in the underground cable. Underground cable collection systems are installed underground, for example, at the junction of underground cables, and are used for collecting environmental data and operational data at the junction of underground cables. After the underground cable acquisition system acquires the environment data and the operation data of the underground cable, the environment data and the operation data are uploaded to the block chain.
S204: storing and propagating the underground cable data through the block link points.
Specifically, the underground cable data is stored and transmitted through the block chain link points, and the underground cable data is stored and recorded mainly by utilizing the powerful accounting function of the block chain, so that the underground cable data is prevented from being tampered by lawbreakers and the like. Specifically, the transmission process of the underground cable data includes calculating data of a current node to obtain an abstract, sending the abstract to a next node, storing the data obtained by the next node according to the abstract, calculating the abstract by adding a signature of the next node, and continuously transmitting the abstract downwards.
S206: and when the underground cable data is transmitted to the corresponding block chain node, judging whether the block chain node stores a decryption key corresponding to the underground cable data.
In particular, to ensure the security of the underground cable data, not all nodes on the blockchain have decryption keys for the underground cable data. Only the directionally authorized nodes have decryption keys for the corresponding underground cable data.
Specifically, it is assumed that there are four zones, each zone corresponds to one blockchain node, that is, the corresponding blockchain node has the decryption key of the underground cable data of the corresponding zone, and other blockchain nodes do not have the decryption key. In actual use, the underground cable data acquisition system acquires underground cable data in real time, encrypts the underground cable data and uploads the encrypted underground cable data to the block chain, the encrypted underground cable data is transmitted on the block chain, and whether a decryption key corresponding to the underground cable data exists in each node is judged when the node reaches the node.
S208: and when the block chain node does not store the decryption key corresponding to the underground cable data, storing the encrypted underground cable data.
S210: and when the block chain node stores a decryption key corresponding to the underground cable data, performing decryption operation on the underground cable data to obtain a data plaintext.
Specifically, after the storing of the encrypted underground cable data, the method further includes: continuing to send the underground cable data to a next block chain node such that the block chain node performs accounting processing on the underground cable data. When the decryption key does not exist in the node, the node is only an accounting node for the underground cable data, so that the node only needs to store the encrypted underground cable data, add the signature of the node, and continue to propagate downwards.
When the node has the decryption key, that is, the node is an analysis node, at this time, the node judges whether the stored key is matched with the encrypted underground cable data, the judgment process can be judged according to the geographical position, that is, the encrypted underground cable data can carry a geographical position plaintext, and the key can be associated with the geographical position when being stored, so that whether the key is matched with the encrypted underground cable data can be judged according to the geographical position, if not, the node only needs to store the encrypted underground cable data, then adds a signature of the node, continues to propagate downwards, and if matched, calls the corresponding decryption key to perform decryption operation on the encrypted underground cable data to obtain the data plaintext, so that the node can analyze through the data plaintext, such as fault detection and the like.
The node analysis has the advantages that one region corresponds to one node, so that the processed data is not too much, and the efficiency can be improved.
According to the underground cable data transmission method based on the block chain, encrypted underground cable data are uploaded to the block chain in the transmission process, so that the safety of the data is guaranteed by means of the characteristic that the data on the block chain cannot be tampered, and the underground cable data are stored and transmitted through the block chain link points; when the underground cable data is transmitted to the corresponding block chain node, judging whether the block chain node stores a decryption key corresponding to the underground cable data; when the block chain node does not store a decryption key corresponding to the underground cable data, storing the encrypted underground cable data; when the decryption key corresponding to the underground cable data is stored in the blockchain node, the underground cable data is decrypted to obtain a data plaintext, that is, the data on the blockchain is encrypted and transmitted, the data plaintext can be obtained only by the node corresponding to the decryption key, and the data plaintext cannot be obtained by other nodes, so that the security of the data is further ensured.
In one embodiment the method further comprises: locally generating a key corresponding to the local terminal identifier; encrypting the secret key through a public key of a block chain node needing directional authorization; and directionally authorizing the encrypted key to the corresponding block chain node.
Specifically, the step of directing the authorization key is mainly introduced in this embodiment, a server may be introduced to generate a key for the corresponding underground cable data acquisition system, for example, to generate a key corresponding to a terminal identifier of a local terminal where the underground cable data acquisition system is located, so that uniqueness of the key may be ensured, and in order to prevent the key from being acquired by a lawless person in the process, the server may encrypt the key by using a public key of a block chain node that needs directing authorization, where the public key may be sent to the server in advance by the block chain node, so that when the block chain node wants to acquire the corresponding directing authorization key, the server may send a request to the server, receive the request, query the underground cable data acquisition system corresponding to the request, and then acquire the key corresponding to the underground cable data acquisition system, and encrypting the key through the public key corresponding to the block chain node, and sending the encrypted key to the block chain node, so that the block chain node can decrypt the encrypted key through the corresponding private key to obtain the key after receiving the encrypted key.
In the above embodiment, the key is transmitted through the asymmetric encryption algorithm, so that the security of the key can be ensured, and it is ensured that only the directionally authorized block chain node has the key.
In one embodiment, the directionally authorizing the encrypted key to the corresponding block link point includes: decrypting the encrypted secret key through a private key of a block chain node needing directional authorization to obtain a secret key; packaging the secret key into a preset library; the decrypting operation of the underground cable data to obtain the data plaintext comprises the following steps: and calling a preset library to perform decryption operation on the underground cable data to obtain a data plaintext.
Specifically, the block chain node decrypts the encrypted key through a private key of the block chain node needing directional authorization to obtain a key; packaging the secret key into a preset library; thus, the preset library is in a physical safe storage area, and the safety of the secret key is ensured. And when the subsequent block link point carries out decryption operation on underground cable data, the key in the preset library can be called only in a calling mode to carry out decryption operation to obtain data plaintext, so that the safety of the data is further ensured.
In one embodiment, after the decrypting operation is performed on the underground cable data to obtain the data plaintext, the method further includes: inputting the data plaintext into an underground cable fault prediction model obtained by pre-training to obtain a fault prediction result corresponding to the data plaintext; and carrying out fault early warning operation on the underground cable corresponding to the underground cable data according to the fault prediction result.
Wherein, the current environment data includes one or more of temperature data, water sensitive data, environmental gas data and displacement data, the operation data includes but is not limited to partial discharge signals, and the current operation data can also refer to the current magnitude in the underground cable. Underground cable collection systems are installed underground, for example, at the junction of underground cables, and are used for collecting environmental data and operational data at the junction of underground cables. After the underground cable acquisition system acquires the environmental data and the operation data of the underground cable, the environmental data and the operation data are sent to the server, so that the server can judge whether the underground cable breaks down or not after processing. In order to ensure the data queryability, the underground cable acquisition system and the geographical position of the underground cable are sent to the server together when sending data, and optionally, the label of the underground cable can be preset, and the corresponding relation between the label and the position of the underground cable is established, so that when the service receives the data sent by the underground cable acquisition system with a certain label, the geographical position information corresponding to the underground cable can be queried according to the label.
The server can judge whether the underground cable is in fault according to the current environment data and the current operation data, for example, the fault is input into an underground cable fault prediction model, the relation between the current environment data and the current operation data and a threshold value is calculated through the underground cable fault prediction model, when the current environment data and the current operation data are larger than the threshold value, the fault of the underground cable is judged, otherwise, the fault of the underground cable is avoided. And when underground cable faults are judged, early warning can be carried out.
It should be understood that, although the steps in the flowchart of fig. 2 are shown in order as indicated by the arrows, the steps are not necessarily performed in order 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 portion of the steps in fig. 2 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
In one embodiment, as shown in fig. 3, there is provided a block chain-based underground cable data transmission apparatus, including:
an upload module 100 for uploading encrypted underground cable data to a blockchain;
a first propagation module 200 for saving and propagating the underground cable data through the block link points;
a determining module 300, configured to determine whether a decryption key corresponding to the underground cable data is stored in a blockchain node when the underground cable data is transmitted to the corresponding blockchain node;
a saving module 400, configured to save the encrypted underground cable data when the decryption key corresponding to the underground cable data is not stored in the block chain node;
and the decryption module 500 is configured to, when the block link point stores a decryption key corresponding to the underground cable data, perform decryption operation on the underground cable data to obtain a data plaintext.
In one embodiment, the underground cable data transmission device based on the block chain further includes:
the key generation module is used for locally generating a key corresponding to the local terminal identifier;
the encryption module is used for encrypting the secret key through a public key of a block chain node needing directional authorization;
and the directional authorization module is used for directionally authorizing the encrypted key to the corresponding block chain node.
In one embodiment, the underground cable data transmission device based on the block chain further includes:
the decryption unit is used for decrypting the encrypted secret key through a private key of a block chain node needing directional authorization to obtain a secret key;
the packaging unit is used for packaging the secret key into a preset library;
the decryption module is further used for calling a preset library to decrypt the underground cable data to obtain a data plaintext.
In one embodiment, the underground cable data transmission device based on the block chain further includes:
and the second propagation module is used for continuously transmitting the underground cable data to the next block chain node so that the block chain node performs accounting processing on the underground cable data.
In one embodiment, the underground cable data transmission device based on the block chain further includes:
the fault prediction module is used for inputting the data plaintext into an underground cable fault prediction model obtained by pre-training so as to obtain a fault prediction result corresponding to the data plaintext;
and the fault early warning module is used for carrying out fault early warning operation on the underground cable corresponding to the underground cable data according to the fault prediction result.
For specific definition of the underground cable data transmission device based on the block chain, reference may be made to the above definition of the underground cable data transmission method based on the block chain, and details are not repeated here. The modules in the block chain-based underground cable data transmission device can be wholly or partially implemented by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a server, the internal structure of which may be as shown in fig. 4. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile 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 computer device is used to store underground cable data. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a block chain based underground cable data transmission method.
Those skilled in the art will appreciate that the architecture shown in fig. 4 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices 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 computer device comprising a memory storing a computer program and a processor implementing the following steps when the processor executes the computer program: uploading the encrypted underground cable data to a blockchain; storing and propagating the underground cable data through the block link points; when the underground cable data is transmitted to the corresponding block chain node, judging whether the block chain node stores a decryption key corresponding to the underground cable data; when the block chain node does not store a decryption key corresponding to the underground cable data, storing the encrypted underground cable data; and when the block chain node stores a decryption key corresponding to the underground cable data, performing decryption operation on the underground cable data to obtain a data plaintext.
In one embodiment, the processor, when executing the computer program, further performs the steps of: locally generating a key corresponding to the local terminal identifier; encrypting the secret key through a public key of a block chain node needing directional authorization; and directionally authorizing the encrypted key to the corresponding block chain node.
In one embodiment, the directionally authorizing the encrypted keys to corresponding block link points, implemented when a processor executes a computer program, includes: decrypting the encrypted secret key through a private key of a block chain node needing directional authorization to obtain a secret key; packaging the secret key into a preset library; the decrypting operation of the underground cable data, which is realized when the processor executes the computer program, obtains a data plaintext, and comprises: and calling a preset library to perform decryption operation on the underground cable data to obtain a data plaintext.
In one embodiment, after said storing encrypted underground cable data, as implemented by the processor when executing the computer program, further comprises: continuing to send the underground cable data to a next block chain node such that the block chain node performs accounting processing on the underground cable data.
In one embodiment, after the decryption operation performed on the underground cable data by the processor when executing the computer program to obtain data plaintext, the method further includes: inputting the data plaintext into an underground cable fault prediction model obtained by pre-training to obtain a fault prediction result corresponding to the data plaintext; and carrying out fault early warning operation on the underground cable corresponding to the underground cable data according to the fault prediction result.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of: uploading the encrypted underground cable data to a blockchain; storing and propagating the underground cable data through the block link points; when the underground cable data is transmitted to the corresponding block chain node, judging whether the block chain node stores a decryption key corresponding to the underground cable data; when the block chain node does not store a decryption key corresponding to the underground cable data, storing the encrypted underground cable data; and when the block chain node stores a decryption key corresponding to the underground cable data, performing decryption operation on the underground cable data to obtain a data plaintext.
In one embodiment, the computer program when executed by the processor further performs the steps of: locally generating a key corresponding to the local terminal identifier; encrypting the secret key through a public key of a block chain node needing directional authorization; and directionally authorizing the encrypted key to the corresponding block chain node.
In one embodiment, the authorizing of the encrypted key orientation to the corresponding block link point, implemented when the computer program is executed by the processor, comprises: decrypting the encrypted secret key through a private key of a block chain node needing directional authorization to obtain a secret key; packaging the secret key into a preset library; the decrypting of the underground cable data performed when the computer program is executed by the processor to obtain data plaintext includes: and calling a preset library to perform decryption operation on the underground cable data to obtain a data plaintext.
In one embodiment, the saving of encrypted underground cable data, as implemented by a computer program when executed by a processor, further comprises: continuing to send the underground cable data to a next block chain node such that the block chain node performs accounting processing on the underground cable data.
In one embodiment, after the decrypting the underground cable data to obtain the data plaintext, the computer program when executed by the processor further comprises: inputting the data plaintext into an underground cable fault prediction model obtained by pre-training to obtain a fault prediction result corresponding to the data plaintext; and carrying out fault early warning operation on the underground cable corresponding to the underground cable data according to the fault prediction 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, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
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 invention. 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 patent shall be subject to the appended claims.

Claims (10)

1. A blockchain-based underground cable data transmission method, the method comprising:
uploading the encrypted underground cable data to a blockchain;
storing and propagating the underground cable data through the block link points;
when the underground cable data is transmitted to the corresponding block chain node, judging whether the block chain node stores a decryption key corresponding to the underground cable data, including: judging whether the secret key is matched with encrypted underground cable data or not according to the geographical position, wherein the encrypted underground cable data carries the geographical position, and the secret key is associated with the geographical position when being stored;
when the block chain node does not store a decryption key corresponding to the underground cable data, storing the encrypted underground cable data;
and when the block chain node stores a decryption key corresponding to the underground cable data, performing decryption operation on the underground cable data to obtain a data plaintext.
2. The method of claim 1, further comprising:
locally generating a key corresponding to the local terminal identifier;
encrypting the secret key through a public key of a block chain node needing directional authorization;
and directionally authorizing the encrypted key to the corresponding block chain node.
3. The method of claim 2, wherein the directionally authorizing the encrypted key to the corresponding block link point comprises:
decrypting the encrypted secret key through a private key of a block chain node needing directional authorization to obtain a secret key;
packaging the secret key into a preset library;
the decrypting operation of the underground cable data to obtain the data plaintext comprises the following steps:
and calling a preset library to perform decryption operation on the underground cable data to obtain a data plaintext.
4. The method of any of claims 1 to 3, wherein after storing the encrypted underground cable data, further comprising:
continuing to send the underground cable data to a next block chain node such that the block chain node performs accounting processing on the underground cable data.
5. The method according to any one of claims 1 to 3, wherein after the decrypting operation is performed on the underground cable data to obtain data plaintext, the method further comprises:
inputting the data plaintext into an underground cable fault prediction model obtained by pre-training to obtain a fault prediction result corresponding to the data plaintext;
and carrying out fault early warning operation on the underground cable corresponding to the underground cable data according to the fault prediction result.
6. An underground cable data transmission apparatus based on a block chain, the apparatus comprising:
the uploading module is used for uploading the encrypted underground cable data to the block chain;
the first transmission module is used for storing and transmitting the underground cable data through the block link points;
a determining module, configured to determine whether a decryption key corresponding to the underground cable data is stored in the blockchain node when the underground cable data is propagated to the corresponding blockchain node, where the determining module includes: judging whether the secret key is matched with encrypted underground cable data or not according to the geographical position, wherein the encrypted underground cable data carries the geographical position, and the secret key is associated with the geographical position when being stored;
the storage module is used for storing the encrypted underground cable data when the decryption key corresponding to the underground cable data is not stored in the block chain node;
and the decryption module is used for decrypting the underground cable data to obtain a data plaintext when the decryption key corresponding to the underground cable data is stored in the block link point.
7. The apparatus of claim 6, further comprising:
the key generation module is used for locally generating a key corresponding to the local terminal identifier;
the encryption module is used for encrypting the secret key through a public key of a block chain node needing directional authorization;
and the directional authorization module is used for directionally authorizing the encrypted key to the corresponding block chain node.
8. The apparatus of claim 7, wherein the directional authorization module comprises:
the decryption unit is used for decrypting the encrypted secret key through a private key of a block chain node needing directional authorization to obtain a secret key;
the packaging unit is used for packaging the secret key into a preset library;
the decryption module is further used for calling a preset library to decrypt the underground cable data to obtain a data plaintext.
9. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor implements the steps of the method of any one of claims 1 to 5 when executing the computer program.
10. 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 5.
CN201911218587.2A 2019-12-03 2019-12-03 Underground cable data transmission method and device based on block chain Active CN110868292B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911218587.2A CN110868292B (en) 2019-12-03 2019-12-03 Underground cable data transmission method and device based on block chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911218587.2A CN110868292B (en) 2019-12-03 2019-12-03 Underground cable data transmission method and device based on block chain

Publications (2)

Publication Number Publication Date
CN110868292A CN110868292A (en) 2020-03-06
CN110868292B true CN110868292B (en) 2021-12-14

Family

ID=69657168

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911218587.2A Active CN110868292B (en) 2019-12-03 2019-12-03 Underground cable data transmission method and device based on block chain

Country Status (1)

Country Link
CN (1) CN110868292B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116611117B (en) * 2023-07-21 2023-10-03 国网山东省电力公司广饶县供电公司 Cable charge test data storage method

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018076761A1 (en) * 2016-10-27 2018-05-03 上海亿账通区块链科技有限公司 Block chain-based transaction permission control method and system, electronic device, and storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109462472A (en) * 2017-09-06 2019-03-12 阿里巴巴集团控股有限公司 The methods, devices and systems of data encryption and decryption
CN110166411B (en) * 2018-02-13 2022-05-06 华为技术有限公司 Data transmission method, device and network node
CN109033855B (en) * 2018-07-18 2020-02-11 腾讯科技(深圳)有限公司 Data transmission method and device based on block chain and storage medium
CN109658236A (en) * 2019-01-31 2019-04-19 北京京东尚科信息技术有限公司 Information interacting method, block chain node and credit investigation system based on block chain

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018076761A1 (en) * 2016-10-27 2018-05-03 上海亿账通区块链科技有限公司 Block chain-based transaction permission control method and system, electronic device, and storage medium

Also Published As

Publication number Publication date
CN110868292A (en) 2020-03-06

Similar Documents

Publication Publication Date Title
CN110727949B (en) Data storage method and device, computer equipment and storage medium
WO2021120871A1 (en) Authentication key negotiation method and apparatus, storage medium and device
CN110569389A (en) Environment monitoring method and device, computer equipment and storage medium
CN115842844B (en) Data processing method based on block chain
CN113190860B (en) Block chain sensor data authentication method and system based on ring signature
CN111147247A (en) Key updating method, key updating device, computer equipment and storage medium
CN110868292B (en) Underground cable data transmission method and device based on block chain
CN115514561B (en) Data security communication system and method
CN111479265B (en) Information dissemination method and device, computer equipment and storage medium
CN110941861B (en) File protection method and device, computer equipment and medium
CN114095256B (en) Terminal authentication method, system, equipment and storage medium based on edge calculation
CN109064606B (en) Access control task execution method and system, access control system and readable storage medium
CN108881256B (en) Secret key exchange method and device, hydroelectric pile and network equipment
Feng et al. Autonomous vehicles' forensics in smart cities
CN110955730A (en) Underground cable three-dimensional modeling method and device based on block chain
CN110971610A (en) Control system identity verification method and device, computer equipment and storage medium
CN113672955B (en) Data processing method, system and device
CN110995837A (en) Underground cable collected data uploading method and system based on block chain
CN112000962B (en) Data encryption processing method, device and system based on block chain
CN111385266B (en) Data sharing method and device, computer equipment and storage medium
CN112217797A (en) Intelligent gateway Internet of things control system and method applying block chain technology
CN110954780A (en) Underground cable fault detection method and device based on block chain
CN114662073B (en) Verification method and device for LED system, computer equipment and medium
CN115396241B (en) Data encryption method and data encryption system
CN117527445B (en) Data sharing system based on re-encryption and distributed digital identity

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
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20240109

Address after: 411102 No.16, Xingfu Road, Bantang Street, High tech Zone, Xiangtan City, Hunan Province

Patentee after: HUNAN GUOAO POWER EQUIPMENT Co.,Ltd.

Address before: 411100 66 new road, twin Horse Street, Xiangtan high tech Zone, Hunan

Patentee before: HUNAN GUOAO POWER EQUIPMENT Co.,Ltd.

Patentee before: Yuan Maoyin

TR01 Transfer of patent right