CN114265815A - Traffic media data storage method, server, storage medium and system - Google Patents
Traffic media data storage method, server, storage medium and system Download PDFInfo
- Publication number
- CN114265815A CN114265815A CN202111576559.5A CN202111576559A CN114265815A CN 114265815 A CN114265815 A CN 114265815A CN 202111576559 A CN202111576559 A CN 202111576559A CN 114265815 A CN114265815 A CN 114265815A
- Authority
- CN
- China
- Prior art keywords
- server
- index value
- block chain
- data
- encrypted
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Landscapes
- Storage Device Security (AREA)
Abstract
The invention provides a traffic media data storage method, a server, a storage medium and a system, wherein the method comprises the following steps: receiving data to be stored sent by a base station, wherein the data to be stored is acquired by a terminal and sent to the base station; encrypting data to be stored to obtain an electronic ciphertext, and sending the electronic ciphertext to a second server, so that the second server generates a corresponding index value according to the electronic ciphertext; and receiving an index value returned by the second server, encrypting the index value according to a preset key to obtain an encrypted index value, and storing the encrypted index value into the alliance block chain. The traffic media data are encrypted, the encrypted data are stored and sent to the file system, and the index value returned by the file system is encrypted and stored on the block chain, so that decentralized traffic media data storage is realized, and the data storage safety and the data storage efficiency are improved.
Description
Technical Field
The invention relates to the field of vehicle networking, in particular to a traffic media data storage method, a server, a storage medium and a system.
Background
With the wide application of the car networking technology, the comprehensive information sharing of cars and cloud platforms, cars and cars, cars and roads, cars and people, cars and the like is realized, and the intelligent management of traffic, the intelligent decision of traffic information service and the intelligent control of vehicles are completed.
In the existing vehicle networking platform, in order to meet the storage requirement and data processing capacity of data, information in a vehicle networking system is usually stored in a third-party cloud center or a professional data center for storage, that is, collected data are sent to the third-party data center for storage by a vehicle, a traffic management platform and a vehicle operation center in the vehicle networking system.
However, when the third-party data storage center fails, the data storage safety of the internet of vehicles system is affected.
Disclosure of Invention
The invention provides a traffic media data storage method, a server, a storage medium and a system, which realize decentralized traffic media data storage and improve data storage safety and storage efficiency by encrypting traffic media data, transmitting the encrypted data storage to a file system for storage, and encrypting and storing an index value returned by the file system on a block chain.
In a first aspect, the present invention provides a traffic media data storage method applied to a first server, including:
receiving data to be stored sent by a base station, wherein the data to be stored is collected by a terminal and sent to the base station;
encrypting the data to be stored to obtain an electronic ciphertext, and sending the electronic ciphertext to a second server, so that the second server generates a corresponding index value according to the electronic ciphertext;
and receiving the index value returned by the second server, encrypting the index value according to a preset key to obtain an encrypted index value, and storing the encrypted index value into an alliance block chain, wherein the first server is a block chain link point in the alliance block chain, and the alliance block chain is an alliance block chain consisting of at least one block chain node.
In one possible design, after the storing the encryption index value in a federation blockchain, further comprising:
carrying out Hash operation on the encrypted index value to obtain an index value identifier and a time tag;
and generating a query list according to the index value identification and the time tag.
In one possible design, after the storing the encryption index value in a federation blockchain, further comprising:
if receiving a query request sent by a terminal, encrypting the query request to obtain a ciphertext query request, and storing the encrypted ciphertext query request into an alliance block chain;
and acquiring an index value identifier to be queried from the query list according to a query time condition carried in the query request, and determining an encrypted index value to be queried according to the index value identifier.
In one possible design, after storing the encrypted ciphertext query request in the federation blockchain, the method further includes:
if the ciphertext query request is stored in the alliance block chain, decrypting the ciphertext query request to obtain a plaintext query request;
if the query request for the plaintext is successfully authenticated, determining a corresponding preset secret key according to the identifier of the terminal to be queried carried in the query request, obtaining an encrypted preset secret key and an encrypted preset secret key signature according to the preset secret key, and storing the encrypted preset secret key and the encrypted preset secret key signature into an alliance block chain.
In one possible design, after determining the encrypted index value to be queried according to the index value identifier, the method further includes:
if the preset encryption key and the preset encryption key signature are stored in the alliance block chain, decrypting the preset encryption key to obtain a plaintext preset key;
if the signature verification of the encrypted preset key is successful, unlocking the encrypted index value to be inquired according to the preset key to obtain an index value of a plaintext, and sending the index value of the plaintext to the second server, so that the second server determines a corresponding electronic ciphertext according to the index value of the plaintext;
and receiving the electronic ciphertext returned by the second server, and decrypting the electronic ciphertext to obtain plaintext data to be stored.
In one possible design, before the receiving the data to be stored sent by the base station, the method further includes:
receiving a terminal information signature sent by a base station, wherein the terminal information signature is obtained by the terminal through carrying out hash operation on a private key random number, a vehicle identification and a public key according to a private key and is transmitted to the base station;
and if the terminal information signature is successfully verified, generating registration information according to the terminal information signature, carrying out Hash operation on the registration information according to a terminal key to obtain a registration information signature, and storing the registration information signature into a federation block chain.
In one possible design, the terminal key is obtained by the server from at least one partial key generated by each server in the federation blockchain from a terminal identity and a respective server identity, the terminal identity being shared in the federation blockchain.
In one possible design, the data to be stored is traffic media data, and the traffic media data is at least one of driving data of a vehicle, traffic signal data of road conditions, vehicle operation data of a third party vehicle enterprise or a network appointment platform, or vehicle management data of a traffic management center.
In a second aspect, the present invention provides a traffic media data storage system comprising: at least one terminal, at least one base station, at least one first server and at least one second server;
the terminal is used for collecting data and generating a query request;
the base station is used for sending the data collected by the terminal and the query request to a first server;
the first server is a block link point in a block chain of alliances and is used for forming the block chain of alliances;
the first server is further configured to execute the traffic media data storage method according to the first aspect and various possible designs of the first aspect;
the second server is an interplanetary file system storage server and is used for forming an IPFS file storage system.
In a third aspect, the present invention provides a traffic media data storage device comprising:
the receiving module is used for receiving data to be stored sent by the base station, wherein the data to be stored is collected by the terminal and sent to the base station;
the encryption module is used for encrypting the data to be stored to obtain an electronic ciphertext and sending the electronic ciphertext to a second server, so that the second server generates a corresponding index value according to the electronic ciphertext;
and the storage module is configured to receive the index value returned by the second server, encrypt the index value according to a preset key to obtain an encrypted index value, and store the encrypted index value into an alliance block chain, where the first server is a block link point in the alliance block chain, and the alliance block chain is an alliance block chain composed of at least one block chain node.
In a fourth aspect, the present invention provides a server, comprising: at least one processor and memory;
the memory stores computer-executable instructions;
the at least one processor executes the computer-executable instructions stored by the memory to cause the at least one processor to perform the traffic media data storage method as set forth in the first aspect above and in various possible designs of the first aspect.
In a fifth aspect, the present invention provides a computer storage medium having stored thereon computer-executable instructions that, when executed by a processor, implement a traffic media data storage method as set forth in the first aspect and various possible designs of the first aspect.
According to the traffic media data storage method, the server, the storage medium and the system, traffic media data are encrypted, the encrypted data are stored and sent to the file system for storage, and the index value returned by the file system is stored on the block chain in an encrypted manner, so that decentralized traffic media data storage is realized, and the data storage safety and the data storage efficiency are improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
FIG. 1 is a first schematic structural diagram of a traffic media data storage system according to an embodiment of the present invention;
fig. 2 is a first flowchart of a traffic media data storage method according to an embodiment of the present invention;
FIG. 3 is a second schematic structural diagram of a traffic media data storage system according to an embodiment of the present invention;
fig. 4 is a flowchart illustrating a second method for storing traffic media data according to an embodiment of the present invention;
FIG. 5 is a schematic structural diagram of a traffic media data storage device according to an embodiment of the present invention;
fig. 6 is a schematic diagram of a hardware structure of a server according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
With the wide application of the car networking technology, the comprehensive information sharing of cars and cloud platforms, cars and cars, cars and roads, cars and people, cars and the like is realized, and the intelligent management of traffic, the intelligent decision of traffic information service and the intelligent control of vehicles are completed. In the existing vehicle networking platform, in order to meet the storage requirement and data processing capacity of data, information in a vehicle networking system is usually stored in a third-party cloud center or a professional data center for storage, that is, collected data are sent to the third-party data center for storage by a vehicle, a traffic management platform and a vehicle operation center in the vehicle networking system. In an internet of vehicles system, traffic media content is typically stored locally by a traffic authority platform server or vehicle. The network car appointment and the like have control right on data of the vehicle-mounted recorder as vehicle bodies, but the traffic administration platform cannot obtain media contents such as voice, video and the like related to the vehicle-mounted recorder from the network car appointment at the first time, and has control and management right on data of the traffic monitoring platform. However, when the third-party data storage center fails, the data storage safety of the internet of vehicles system is affected.
In order to solve the above technical problem, the embodiment of the present invention proposes the following technical solutions: the traffic media data are encrypted, the encrypted data are stored and sent to the file system, and the index value returned by the file system is encrypted and stored on the block chain, so that decentralized traffic media data storage is realized, and the data storage safety and the data storage efficiency are improved. The following examples are given for illustrative purposes.
The traffic media data storage system provided by the embodiment of the invention comprises a plurality of terminals, a plurality of base stations, a plurality of first servers and a plurality of second servers. The terminal is a vehicle, a 5G signal acquisition device, a third party vehicle enterprise or a network appointment platform, namely a device, a platform or a machine for acquiring and inquiring traffic media data. Fig. 1 is a first schematic structural diagram of a traffic media data storage system according to an embodiment of the present invention. As shown in fig. 1, the 5G base station 102 is a base station for implementing data forwarding, a common infrastructure responsible for data transmission, and is capable of performing 5G network communication with the vehicle 103 and the 5G signal acquisition device 104. The vehicle 103 and the 5G signal acquisition device 104 are terminals for acquiring data and inquiring data, and the vehicle 103 transmits a vehicle operation log acquired during driving, positioning information and data acquired by all sensors of the vehicle to the edge server 101 through the 5G base station 102. On the other hand, the traffic management center arranges the 5G signal acquisition device 104, and the signal acquisition device 104 is used for acquiring traffic signal data of devices such as a signal box, a vehicle traffic light, a pedestrian traffic light, a geomagnetic vehicle detector, a camera terminal light and the like, and transmitting the acquired traffic signal data back to the 5G base station 102 by using the 5G mobile signal access device.
As shown in fig. 1, the edge server 101 is a first server and the IPFS server 105 is a second server. The edge server 101 serves as a alliance block chain node and a trusted node facility, and is responsible for receiving information uploaded by the vehicle 103 and the signal acquisition device 104, and serves as a block chain node to combine with other edge servers to form a block chain network, so that safe transmission of traffic media data is guaranteed. The edge server 101 sends the collected data to an IPFS (internet protocol File System) server 105 in an IPFS (internet protocol File System) cluster, the IPFS server 105 stores traffic signal data and performs hash operation, the obtained hash value is used as an index value of the stored traffic signal data and is returned to the edge server 101, and the edge server 101 stores the index value and realizes a method for obtaining corresponding traffic signal data according to the index value.
Fig. 2 is a first flow chart illustrating a traffic media data storage method according to an embodiment of the present invention, where an execution subject of the embodiment may be the first server in the embodiment shown in fig. 1, and the embodiment is not limited herein. As shown in fig. 2, the method includes:
s201: and receiving data to be stored sent by the base station, wherein the data to be stored is acquired by the terminal and sent to the base station.
In the embodiment of the invention, the edge server is selected as the block link point server for data processing, and the base station is arranged to transmit the data uploaded by the terminal to the edge server through the 5G network, so that the data processing efficiency of the traffic media data storage system can be improved.
Illustratively, the traffic management center is connected with a serial server at the rear end of the 5G signal acquisition equipment, performs conversion of relevant protocols through the serial server, converts the converted information into information which can be identified by the 5G communication module, then connects an interface of the serial server with the 5G CPE, realizes that acquired traffic signal data is transmitted back to the 5G base station, and then uploads traffic media data acquired by the terminal to the edge node for data processing and analysis. In an exemplary implementation of the present invention, the traffic media data includes driving data of vehicles, traffic signal data of road conditions, vehicle operation data of third-party vehicle enterprises or network reservation platforms, and vehicle management data of a traffic management center.
Illustratively, in order to prevent a terminal from tampering collected traffic media data, specifically, in order to prevent tampering traffic media data of a vehicle, a deployment block chain calculation module and a block chain storage module are installed on a vehicle terminal, and the two modules are combined with each other to perform front-end authentication on vehicle media information. All terminals in the same base station coverage network range form a alliance chain network of a terminal level by arranging a block chain computing module. Specifically, the storage module stores the acquired data and stores multimedia data of the vehicle. The storage module can store information such as operation logs, positioning information and vehicle sensors of the vehicle terminal, and data in the storage module are uploaded to the block chain network at certain time intervals, so that a data evidence storage function is realized. Specifically, the calculation module is mainly responsible for basic calculation of the block chain platform, calculates a hash value of uploaded information through a hash algorithm, then subsequently needs the block chain to confirm the hash information, compares the consistency of the hash value, and prevents tampering operation at the front end of the vehicle. When the vehicle terminal stores vehicle media or other related information, the block chain storage module mainly compares and verifies authenticity of the vehicle media or other related information, consistency on the chain is compared according to the hash value of the data, and if consistency is not in a problem, the multimedia storage information uploaded by the vehicle terminal is not tampered.
S202: and encrypting the data to be stored to obtain an electronic ciphertext, and sending the electronic ciphertext to the second server, so that the second server generates a corresponding index value according to the electronic ciphertext.
In the embodiment of the invention, the edge server is used as a node of the alliance chain network, and before executing the data storage function, the data access of the terminal is controlled by specifying the data access strategy and the identity authentication strategy of the alliance chain network. Illustratively, the registration is performed before the terminal uploads the acquired data for the first time, so as to realize the identity information authentication process. Specifically, the base station signs the terminal information Sigi,Sk(Idi||N||Pki) Sending the information to an edge server corresponding to the registration information, wherein the terminal information signature is obtained by the terminal through Hash operation according to the private key random number pair, the vehicle identification and the public key and is transmitted to the base station; if the edge server successfully verifies the terminal information signature, generating registration information RCard according to the terminal information signatureiThe edge server performs Hash operation on the registration information according to the terminal key to obtain a registration information signatureAnd sign the registration informationAnd storing the block into the block chain of the alliance. Illustratively, the terminal key is obtained by the server according to at least one partial key, and the partial key is generated by each server in the block chain of the federation according to the terminal identity and the respective server identity, and the terminal identity is shared in the block chain of the federation.
In the embodiment of the invention, after receiving the traffic media data sent by the base station, the edge server, namely the first server, encrypts the data to be stored to obtain the electronic ciphertext and sends the electronic ciphertext to the second server. Illustratively, the second server is an interplanetary file system storage server, and the IPFS file storage server encrypts and signs the electronic ciphertext according to a hash algorithm to generate a corresponding index value. The encrypted data is stored in an IPFS file system, repeated multimedia file data are deleted, the uniqueness of the file is guaranteed, data redundancy is not caused, and data storage cost is reduced.
S203: and receiving an index value returned by the second server, encrypting the index value according to a preset key to obtain an encrypted index value, and storing the encrypted index value into the alliance block chain, wherein the first server is a block chain node in the alliance block chain, and the alliance block chain is an alliance block chain consisting of at least one block chain node.
In the embodiment of the present invention, after receiving the index value returned by the second server, the edge server encrypts the index value by using the triple key to obtain an encrypted index value, and stores the encrypted index value into the federation blockchain. Illustratively, three keys in the triple keys are set to be independent, and each group of triple keys corresponds to the terminal identifier of the current uploading terminal one to one. Specifically, the preset key is a unique triple key corresponding to the terminal identifier generated according to the preset rule and the terminal identifier.
Exemplarily, after the encrypted index value is stored in the federation blockchain, performing a hash operation on the encrypted index value to obtain an index value identifier and a time tag; and generating a query list according to the index value identification and the time tag. And when the other terminals successfully store the data, updating the query list according to the new index value identification and the time tag.
According to the traffic media data storage method provided by the embodiment, traffic media data are encrypted, the encrypted data are stored and sent to the file system for storage, and the index value returned by the file system is encrypted and stored on the block chain, so that decentralized traffic media data storage is realized, and data storage safety and storage efficiency are improved.
Illustratively, on the basis of the structure of the traffic media data storage system provided in fig. 1, specifically, as shown in fig. 3, fig. 3 is a schematic structural diagram two of the traffic media data storage system provided in the embodiment of the present invention. The traffic media data storage system provided in fig. 3 includes 4 first servers, 2 terminals, 2 base stations, and 2 second servers, where the 4 first servers are server a, server B, server C, and server D, respectively, the 2 terminals are terminal a and terminal D, the 2 base stations are base station a and base station D, respectively, and the 2 second servers are server a1 and server D1, respectively. Specifically, a terminal a sends acquired data to be stored to a server a through a base station a, the server a encrypts the data to be stored to obtain an electronic ciphertext and sends the electronic ciphertext to the server a1, the server a1 generates a corresponding index value according to the electronic ciphertext, the server a1 returns the index value to the server a, the server a encrypts the index value according to a preset key to obtain an encrypted index value, and the encrypted index value is stored in a federation block chain.
Fig. 4 is a flowchart illustrating a traffic media data storage method according to an embodiment of the invention. In the embodiment of the invention, on the basis of the realized traffic media data storage method, the terminal d can perform the process of inquiring the traffic media data acquired by the terminal a. As shown in fig. 4, this step includes:
s401: if the server D receives the query request sent by the terminal, the server D encrypts the query request to obtain a ciphertext query request, stores the encrypted ciphertext query request into the alliance block chain, obtains an index value identifier to be queried from the query list according to a query time condition carried in the query request, and determines an encrypted index value to be queried according to the index value identifier.
In the alliance blockchain network provided by the embodiment of the invention, each edge server not only provides a data storage function, but also provides a data query function, namely in a traffic media data storage system, any terminal can send a query request to the corresponding edge server through a connected base station. Illustratively, when a terminal D queries traffic media data collected by a terminal a, the terminal D generates a query request and forwards the query request to a server D through a base station D. If the server D receives the query request sent by the terminal, the server D obtains the index value identification to be queried from the query list according to the query time condition carried in the query request, and determines the encrypted index value to be queried according to the index value identification. In an exemplary aspect, on one hand, the server D encrypts the query request by using the public key of a using an asymmetric algorithm to obtain a ciphertext query request, encrypts the query request by using the private key of D to obtain a signature of the ciphertext query request, and stores the encrypted ciphertext query request into the block chain of the federation, that is, one signature corresponding to the query request of the terminal D is updated in the current block chain.
S402: and if the ciphertext query request is stored in the alliance block chain, the server A, the server B, the server C and the server D decrypt the ciphertext query request.
In the embodiment of the invention, in a alliance chain network composed of edge servers as block chain link points, when a new signature appears in a block chain, all nodes in the alliance chain network can obtain the new signature and decrypt the signature according to a public key. Illustratively, only the server A can decrypt the ciphertext query request according to the private key of the server A, and the public key of the server D decrypts the signature to verify the authenticity, so that only the server A can decrypt successfully.
S403: if the server A successfully authenticates the query request of the plaintext, the corresponding preset key is determined according to the identifier of the terminal to be queried carried in the query request, the encrypted preset key and the encrypted preset key signature are obtained according to the preset key, and the encrypted preset key signature are stored in the alliance block chain.
For example, after the content of the query request for decrypting to obtain the plaintext is successfully authenticated, the server a determines a corresponding preset key according to the identifier of the terminal to be queried carried in the query request, encrypts the preset key to obtain an encrypted preset key signature, and stores the encrypted preset key signature in the federation block chain. Specifically, the preset key is a unique triple key corresponding to the terminal identifier generated according to the preset rule and the terminal identifier, that is, the corresponding preset key is determined according to the identifier of the terminal to be queried carried in the query request. And the server A encrypts the preset key through the public key of the server D to obtain an encrypted preset key, and the server A encrypts the preset key through the private key to obtain an encrypted preset key signature and stores the encrypted preset key signature into the alliance block chain.
S404: and if the encrypted preset key and the encrypted preset key signature are stored in the alliance block chain, the server A, the server B, the server C and the server D decrypt the encrypted preset key.
In the embodiment of the invention, in a block chain network composed of edge servers as block chain link points, when a new ciphertext signature, namely an encrypted preset key, appears in a block chain, all nodes in the block chain network can obtain the new encrypted preset key, and decrypt the encrypted preset key according to a public key. Illustratively, only the server D can successfully decrypt the encrypted preset key according to the private key of D, so as to obtain the plaintext preset key.
S405: and if the server D successfully verifies the signature of the encrypted preset key, unlocking the encrypted index value to be queried according to the preset key to obtain an index value of a plaintext, and sending the index value of the plaintext to the server D1, so that the server D1 determines a corresponding electronic ciphertext according to the index value of the plaintext and decrypts the electronic ciphertext to obtain the data to be stored of the plaintext.
Illustratively, the server D decrypts the signature of the preset key by using the public key corresponding to the server a to verify the authenticity, if the verification is successful, the server D unlocks the encrypted index value to be queried according to the preset key obtained after decryption to obtain an index value of a plaintext, and sends the index value of the plaintext to the server D1, so that the server D1 determines a corresponding electronic ciphertext according to the index value of the plaintext, and decrypts the electronic ciphertext to obtain data to be stored in the plaintext. Specifically, the server D1 may determine the electronic ciphertext corresponding to the index value according to the plaintext index value through the electronic ciphertext corresponding to the index value stored in the IPFS file system provided by the server D1.
S406: and the server D1 returns the electronic ciphertext to the server D, the server D decrypts the electronic ciphertext to obtain the data to be stored in the plaintext, and forwards the data to be stored in the plaintext to the terminal D through the base station D.
The traffic media data storage method provided by the embodiment realizes the query method of the traffic media data based on the index value on the basis of realizing decentralized traffic media data storage, and improves the data query efficiency of the traffic media data storage system.
Fig. 5 is a schematic structural diagram of a traffic media data storage device according to an embodiment of the invention. As shown in fig. 5, the traffic media data storage device includes: a receiving module 501, an encryption module 502 and a storage module 503.
A receiving module 501, configured to receive data to be stored sent by a base station, where the data to be stored is collected by a terminal and sent to the base station;
the encryption module 502 is configured to encrypt the data to be stored to obtain an electronic ciphertext and send the electronic ciphertext to a second server, so that the second server generates a corresponding index value according to the electronic ciphertext;
a storage module 503, configured to receive the index value returned by the second server, encrypt the index value according to a preset key to obtain an encrypted index value, and store the encrypted index value into an alliance block chain, where the first server is a block link point in the alliance block chain, and the alliance block chain is an alliance block chain composed of at least one block chain node.
The apparatus provided in this embodiment may be used to implement the technical solutions of the above method embodiments, and the implementation principles and technical effects are similar, which are not described herein again.
Fig. 6 is a schematic diagram of a hardware structure of a server according to an embodiment of the present invention. As shown in fig. 6, the server of the present embodiment includes: a processor 601 and a memory 602; wherein
A memory 602 for storing computer-executable instructions;
the processor 601 is configured to execute the computer executable instructions stored in the memory to implement the steps performed by the first server in the above embodiments. Reference may be made in particular to the description relating to the method embodiments described above.
Alternatively, the memory 602 may be separate or integrated with the processor 601.
When the memory 602 is provided separately, the server further comprises a bus 603 for connecting the memory 602 and the processor 601.
The embodiment of the invention also provides a computer storage medium, wherein the computer storage medium stores computer execution instructions, and when a processor executes the computer execution instructions, the traffic media data storage method is realized.
An embodiment of the present invention further provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the method for storing traffic media data as described above is implemented. An embodiment of the present invention further provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the method for storing traffic media data as described above is implemented.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described device embodiments are merely illustrative, and for example, the division of the modules is only one logical division, and other divisions may be realized in practice, for example, a plurality of modules may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or modules, and may be in an electrical, mechanical or other form.
The modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to implement the solution of the present embodiment.
In addition, functional modules in the embodiments of the present invention may be integrated into one processing unit, or each module may exist alone physically, or two or more modules are integrated into one unit. The unit formed by the modules can be realized in a hardware form, and can also be realized in a form of hardware and a software functional unit.
The integrated module implemented in the form of a software functional module may be stored in a computer-readable storage medium. The software functional module is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) or a processor to execute some steps of the methods described in the embodiments of the present application.
It should be understood that the Processor may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the present invention may be embodied directly in a hardware processor, or in a combination of the hardware and software modules within the processor.
The memory may comprise a high-speed RAM memory, and may further comprise a non-volatile storage NVM, such as at least one disk memory, and may also be a usb disk, a removable hard disk, a read-only memory, a magnetic or optical disk, etc.
The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended ISA (Extended Industry Standard Architecture) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, the buses in the figures of the present application are not limited to only one bus or one type of bus.
The storage medium may be implemented by any type or combination of volatile or non-volatile memory devices, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks. A storage media may be any available media that can be accessed by a general purpose or special purpose computer.
An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. Of course, the storage medium may also be integral to the processor. The processor and the storage medium may reside in an Application Specific Integrated Circuits (ASIC). Of course, the processor and the storage medium may reside as discrete components in an electronic device or host device.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.
Claims (12)
1. A traffic media data storage method is applied to a first server and comprises the following steps:
receiving data to be stored sent by a base station, wherein the data to be stored is collected by a terminal and sent to the base station;
encrypting the data to be stored to obtain an electronic ciphertext, and sending the electronic ciphertext to a second server, so that the second server generates a corresponding index value according to the electronic ciphertext;
and receiving the index value returned by the second server, encrypting the index value according to a preset key to obtain an encrypted index value, and storing the encrypted index value into an alliance block chain, wherein the first server is a block chain link point in the alliance block chain, and the alliance block chain is an alliance block chain consisting of at least one block chain node.
2. The method of claim 1, further comprising, after storing the encryption index value in a federation blockchain:
carrying out Hash operation on the encrypted index value to obtain an index value identifier and a time tag;
and generating a query list according to the index value identification and the time tag.
3. The method of claim 2, further comprising, after storing the encryption index value in a federation blockchain:
if receiving a query request sent by a terminal, encrypting the query request to obtain a ciphertext query request, and storing the encrypted ciphertext query request into an alliance block chain;
and acquiring an index value identifier to be queried from the query list according to a query time condition carried in the query request, and determining an encrypted index value to be queried according to the index value identifier.
4. The method of claim 3, further comprising, after storing the encrypted ciphertext query request in a federation blockchain:
if the ciphertext query request is stored in the alliance block chain, decrypting the ciphertext query request to obtain a plaintext query request;
if the query request for the plaintext is successfully authenticated, determining a corresponding preset secret key according to the identifier of the terminal to be queried carried in the query request, obtaining an encrypted preset secret key and an encrypted preset secret key signature according to the preset secret key, and storing the encrypted preset secret key and the encrypted preset secret key signature into an alliance block chain.
5. The method according to claim 4, further comprising, after determining the encrypted index value to be queried according to the index value identification:
if the preset encryption key and the preset encryption key signature are stored in the alliance block chain, decrypting the preset encryption key to obtain a plaintext preset key;
if the signature verification of the encrypted preset key is successful, unlocking the encrypted index value to be inquired according to the preset key to obtain an index value of a plaintext, and sending the index value of the plaintext to the second server, so that the second server determines a corresponding electronic ciphertext according to the index value of the plaintext;
and receiving the electronic ciphertext returned by the second server, and decrypting the electronic ciphertext to obtain plaintext data to be stored.
6. The method of claim 1, wherein before the receiving the data to be stored sent by the base station, further comprising:
receiving a terminal information signature sent by a base station, wherein the terminal information signature is obtained by the terminal through carrying out hash operation on a private key random number, a vehicle identification and a public key according to a private key and is transmitted to the base station;
and if the terminal information signature is successfully verified, generating registration information according to the terminal information signature, carrying out Hash operation on the registration information according to a terminal key to obtain a registration information signature, and storing the registration information signature into a federation block chain.
7. The method of claim 6, wherein the terminal key is obtained by the server according to at least one partial key, and wherein the partial key is generated by each server in a federation blockchain according to a terminal identity and a respective server identity, and wherein the terminal identity is shared in the federation blockchain.
8. The method according to any one of claims 1 to 7, wherein the data to be stored is traffic media data, and the traffic media data is at least one of driving data of a vehicle, traffic signal data of road conditions, vehicle operation data of a third party vehicle enterprise or a network appointment platform, or vehicle management data of a traffic management center.
9. A traffic media data storage system, comprising: at least one terminal, at least one base station, at least one first server and at least one second server;
the terminal is used for collecting data and generating a query request;
the base station is used for sending the data collected by the terminal and the query request to a first server;
the first server is a block link point in a block chain of alliances and is used for forming the block chain of alliances;
the first server is further configured to execute the traffic media data storage method according to any one of claims 1 to 8;
the second server is an interplanetary file system storage server and is used for forming an IPFS file storage system.
10. A traffic media data storage device, applied to a first server, comprising:
the receiving module is used for receiving data to be stored sent by the base station, wherein the data to be stored is collected by the terminal and sent to the base station;
the encryption module is used for encrypting the data to be stored to obtain an electronic ciphertext and sending the electronic ciphertext to a second server, so that the second server generates a corresponding index value according to the electronic ciphertext;
and the storage module is configured to receive the index value returned by the second server, encrypt the index value according to a preset key to obtain an encrypted index value, and store the encrypted index value into an alliance block chain, where the first server is a block link point in the alliance block chain, and the alliance block chain is an alliance block chain composed of at least one block chain node.
11. A server, comprising: at least one processor and memory;
the memory stores computer-executable instructions;
the at least one processor executing the computer-executable instructions stored by the memory causes the at least one processor to perform the traffic media data storage method of any of claims 1-8.
12. A computer storage medium having computer executable instructions stored therein, which when executed by a processor, implement the traffic media data storage method of any one of claims 1 to 8.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202111576559.5A CN114265815A (en) | 2021-12-21 | 2021-12-21 | Traffic media data storage method, server, storage medium and system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202111576559.5A CN114265815A (en) | 2021-12-21 | 2021-12-21 | Traffic media data storage method, server, storage medium and system |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN114265815A true CN114265815A (en) | 2022-04-01 |
Family
ID=80828536
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202111576559.5A Pending CN114265815A (en) | 2021-12-21 | 2021-12-21 | Traffic media data storage method, server, storage medium and system |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN114265815A (en) |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN116185291A (en) * | 2023-02-06 | 2023-05-30 | 深圳市迈科龙电子有限公司 | Middleware storage method and device, electronic equipment and readable storage medium |
| CN116932638A (en) * | 2023-04-11 | 2023-10-24 | 远光软件股份有限公司 | Block chain-based power grid data processing method, device, equipment and storage medium |
| CN118694610A (en) * | 2024-08-26 | 2024-09-24 | 国网数字科技控股有限公司 | A method for processing carbon emission data |
Citations (18)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109101824A (en) * | 2018-07-26 | 2018-12-28 | 南京邮电大学 | Industry internet date storage method and system, readable storage medium storing program for executing and terminal |
| CN110062034A (en) * | 2019-04-01 | 2019-07-26 | 中科天御(苏州)科技有限公司 | A kind of big file safety storage method of block chain and system |
| CN110519286A (en) * | 2019-09-01 | 2019-11-29 | 江西理工大学 | A kind of intelligent transportation Data Access Security method based on alliance's block chain |
| CN111050317A (en) * | 2019-12-07 | 2020-04-21 | 江西理工大学 | A secure sharing method of intelligent traffic data based on consortium blockchain |
| CN111104386A (en) * | 2019-11-04 | 2020-05-05 | 北京海益同展信息科技有限公司 | A file storage method, terminal and storage medium |
| CN111402043A (en) * | 2020-03-03 | 2020-07-10 | 中山大学 | A blockchain-based data transaction method for the Internet of Vehicles |
| CN111726343A (en) * | 2020-06-11 | 2020-09-29 | 桂林电子科技大学 | A method for secure transmission of electronic documents based on IPFS and blockchain |
| CN111835500A (en) * | 2020-07-08 | 2020-10-27 | 浙江工商大学 | A secure sharing method of searchable encrypted data based on homomorphic encryption and blockchain |
| CN111967051A (en) * | 2020-08-27 | 2020-11-20 | 安徽大学 | Block chain-based inter-vehicle data safety sharing method and system |
| CN111988338A (en) * | 2020-09-07 | 2020-11-24 | 华侨大学 | Permission controllable IoT cloud platform and data interaction method based on blockchain |
| CN112039870A (en) * | 2020-08-28 | 2020-12-04 | 武汉见邦融智科技有限公司 | Privacy protection-oriented vehicle-mounted network authentication method and system based on block chain |
| CN112380578A (en) * | 2020-11-20 | 2021-02-19 | 天翼电子商务有限公司 | Edge computing framework based on block chain and trusted execution environment |
| CN112543187A (en) * | 2020-11-26 | 2021-03-23 | 齐鲁工业大学 | Industrial Internet of things safety data sharing method based on edge block chain |
| CN113055456A (en) * | 2021-03-09 | 2021-06-29 | 大连理工大学 | Internet of things data management method based on block chain and edge calculation |
| CN113079159A (en) * | 2021-04-01 | 2021-07-06 | 北京邮电大学 | Edge computing network architecture based on block chain |
| CN113158087A (en) * | 2021-04-09 | 2021-07-23 | 深圳前海微众银行股份有限公司 | Query method and device for space text |
| CN113411407A (en) * | 2021-06-25 | 2021-09-17 | 北京邮电大学 | Piece-separating type car networking system based on block chain technology |
| CN113672981A (en) * | 2021-08-20 | 2021-11-19 | 国网河南省电力公司信息通信公司 | Blockchain-based data access control system for power Internet of things |
-
2021
- 2021-12-21 CN CN202111576559.5A patent/CN114265815A/en active Pending
Patent Citations (18)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109101824A (en) * | 2018-07-26 | 2018-12-28 | 南京邮电大学 | Industry internet date storage method and system, readable storage medium storing program for executing and terminal |
| CN110062034A (en) * | 2019-04-01 | 2019-07-26 | 中科天御(苏州)科技有限公司 | A kind of big file safety storage method of block chain and system |
| CN110519286A (en) * | 2019-09-01 | 2019-11-29 | 江西理工大学 | A kind of intelligent transportation Data Access Security method based on alliance's block chain |
| CN111104386A (en) * | 2019-11-04 | 2020-05-05 | 北京海益同展信息科技有限公司 | A file storage method, terminal and storage medium |
| CN111050317A (en) * | 2019-12-07 | 2020-04-21 | 江西理工大学 | A secure sharing method of intelligent traffic data based on consortium blockchain |
| CN111402043A (en) * | 2020-03-03 | 2020-07-10 | 中山大学 | A blockchain-based data transaction method for the Internet of Vehicles |
| CN111726343A (en) * | 2020-06-11 | 2020-09-29 | 桂林电子科技大学 | A method for secure transmission of electronic documents based on IPFS and blockchain |
| CN111835500A (en) * | 2020-07-08 | 2020-10-27 | 浙江工商大学 | A secure sharing method of searchable encrypted data based on homomorphic encryption and blockchain |
| CN111967051A (en) * | 2020-08-27 | 2020-11-20 | 安徽大学 | Block chain-based inter-vehicle data safety sharing method and system |
| CN112039870A (en) * | 2020-08-28 | 2020-12-04 | 武汉见邦融智科技有限公司 | Privacy protection-oriented vehicle-mounted network authentication method and system based on block chain |
| CN111988338A (en) * | 2020-09-07 | 2020-11-24 | 华侨大学 | Permission controllable IoT cloud platform and data interaction method based on blockchain |
| CN112380578A (en) * | 2020-11-20 | 2021-02-19 | 天翼电子商务有限公司 | Edge computing framework based on block chain and trusted execution environment |
| CN112543187A (en) * | 2020-11-26 | 2021-03-23 | 齐鲁工业大学 | Industrial Internet of things safety data sharing method based on edge block chain |
| CN113055456A (en) * | 2021-03-09 | 2021-06-29 | 大连理工大学 | Internet of things data management method based on block chain and edge calculation |
| CN113079159A (en) * | 2021-04-01 | 2021-07-06 | 北京邮电大学 | Edge computing network architecture based on block chain |
| CN113158087A (en) * | 2021-04-09 | 2021-07-23 | 深圳前海微众银行股份有限公司 | Query method and device for space text |
| CN113411407A (en) * | 2021-06-25 | 2021-09-17 | 北京邮电大学 | Piece-separating type car networking system based on block chain technology |
| CN113672981A (en) * | 2021-08-20 | 2021-11-19 | 国网河南省电力公司信息通信公司 | Blockchain-based data access control system for power Internet of things |
Non-Patent Citations (3)
| Title |
|---|
| AYESHA SADIQ等: ""Efficient Data Trading and Storage in Internet of Vehicles using ConsortiumBlockchain"", 《2020 INTERNATIONAL WIRELESS COMMUNICATIONS AND MOBILE COMPUTING (IWCMC)》, 27 July 2020 (2020-07-27), pages 1 - 17 * |
| HYOEUN YE等: ""Reliable Vehicle Data Storage Using Blockchain and IPFS"", 《ELECTRONICS》, 11 May 2021 (2021-05-11), pages 1 - 15 * |
| MUHAMMAD UMAR JAVED等: ""Blockchain-Based Secure Data Storage for Distributed Vehicular Networks"", 《APPLIED SCIENCES》, 16 March 2020 (2020-03-16), pages 1 - 22 * |
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN116185291A (en) * | 2023-02-06 | 2023-05-30 | 深圳市迈科龙电子有限公司 | Middleware storage method and device, electronic equipment and readable storage medium |
| CN116932638A (en) * | 2023-04-11 | 2023-10-24 | 远光软件股份有限公司 | Block chain-based power grid data processing method, device, equipment and storage medium |
| CN118694610A (en) * | 2024-08-26 | 2024-09-24 | 国网数字科技控股有限公司 | A method for processing carbon emission data |
| CN118694610B (en) * | 2024-08-26 | 2024-10-25 | 国网数字科技控股有限公司 | Carbon emission data processing method |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US11888993B2 (en) | Digital certificate application method | |
| US11082228B2 (en) | Reuse system, key generation device, data security device, in-vehicle computer, reuse method, and computer program | |
| US11546173B2 (en) | Methods, application server, IoT device and media for implementing IoT services | |
| CN108712431A (en) | A kind of traffic information deposit method and device based on alliance's chain | |
| CN114265815A (en) | Traffic media data storage method, server, storage medium and system | |
| JP6625293B2 (en) | Key management device and communication equipment | |
| CN109286500B (en) | Vehicle Electronic Control Unit (ECU) authentication method, device and equipment | |
| CN111182497A (en) | V2X anonymous authentication method, device and storage medium | |
| CN112311779B (en) | Data access control method and device applied to block chain system | |
| CN115276998A (en) | IoT authentication method, device and IoT device | |
| CN115459979A (en) | Https bidirectional authentication-based vehicle-mounted end and vehicle cloud platform mutual communication method and system | |
| CN116506104A (en) | Method and system for information security interaction of different departments based on cross-chain blockchain | |
| CN113747433A (en) | Equipment authentication method based on block side chain structure in fog network | |
| CN114915942A (en) | Communication key configuration method and device | |
| CN112235290A (en) | Block chain-based Internet of things equipment management method and first Internet of things equipment | |
| CN112953725B (en) | Method and device for determining private key of equipment, storage medium and electronic device | |
| CN115701150A (en) | Information processing method, electronic system, electronic device, and storage medium | |
| JP6830877B2 (en) | Distribution system, key generator, distribution method, and computer program | |
| US12341899B2 (en) | Method and system for information transmission | |
| US20240056297A1 (en) | Establishing trust by a community of vehicles | |
| EP4097916A1 (en) | Communication network, communication network node, user equipment, method | |
| CN118785165B (en) | Access method, device, electronic equipment and storage medium | |
| CN119862608A (en) | Data processing method, device, equipment, system and storage medium | |
| CN117579285A (en) | Traffic forwarding method, device, equipment and storage medium in service network | |
| JP2017208731A (en) | Management system, management apparatus, in-vehicle computer, management method, and computer program |
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 |