CN113094394A - Data access method and device, computer equipment and storage medium - Google Patents
Data access method and device, computer equipment and storage medium Download PDFInfo
- Publication number
- CN113094394A CN113094394A CN202110295713.5A CN202110295713A CN113094394A CN 113094394 A CN113094394 A CN 113094394A CN 202110295713 A CN202110295713 A CN 202110295713A CN 113094394 A CN113094394 A CN 113094394A
- Authority
- CN
- China
- Prior art keywords
- data
- target
- data access
- block
- survey data
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 50
- 238000013523 data management Methods 0.000 claims abstract description 107
- 230000004044 response Effects 0.000 claims abstract description 45
- 238000004590 computer program Methods 0.000 claims description 26
- 238000004891 communication Methods 0.000 claims description 17
- 238000012545 processing Methods 0.000 claims description 14
- 238000013500 data storage Methods 0.000 description 12
- 238000010586 diagram Methods 0.000 description 10
- 238000011835 investigation Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000012216 screening Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/24—Querying
- G06F16/245—Query processing
- G06F16/2455—Query execution
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/22—Indexing; Data structures therefor; Storage structures
- G06F16/2228—Indexing structures
- G06F16/2255—Hash tables
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/22—Indexing; Data structures therefor; Storage structures
- G06F16/2282—Tablespace storage structures; Management thereof
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/27—Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
- G06F16/278—Data partitioning, e.g. horizontal or vertical partitioning
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Databases & Information Systems (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Software Systems (AREA)
- Computing Systems (AREA)
- Computational Linguistics (AREA)
- Storage Device Security (AREA)
Abstract
The application relates to a data access method, a data access device, computer equipment and a storage medium. The method comprises the following steps: the data management device receives a data access request from the data access device; the data access request includes an identification of the target survey data; determining the information of the target block according to the identification of the target survey data; the target block is a block in a block chain, wherein the block stores a hash value corresponding to the target survey data, and the hash value is used for indicating a storage address of the target survey data; and sending a data access response to the data access device, wherein the data access response comprises the information of the target block. By adopting the method, the consultation flow of the survey data can be simplified, and the convenience of data consultation is improved.
Description
Technical Field
The present application relates to the field of data storage technologies, and in particular, to a data access method, an apparatus, a computer device, and a storage medium.
Background
The engineering investigation data is characterized by scatter and diversity, and the engineering implementation details can be mastered only by timely and comprehensively recording the investigation data. At present, the traditional paper archives are mainly used for storing and surveying data, multiple screening and searching are needed, and a large amount of manpower and material resources are consumed to check and see the data. Or, the survey data may be stored by means of a database center, and due to the centralized storage of the data and the like, the problem that the time consumed for searching the data is long also exists.
Therefore, the current data searching process is complicated due to the storage mode of the survey data, and the convenience is low.
Disclosure of Invention
The embodiment of the application provides a data access method, a data access device, computer equipment and a storage medium, which can simplify the search process of survey data and improve the convenience of data search.
In a first aspect, a data access method is provided, including:
the data management device receives a data access request from the data access device; the data access request includes an identification of the target survey data;
the data management equipment determines the information of the target block according to the identification of the target survey data; the target block is a block in a block chain, wherein the block stores a hash value corresponding to the target survey data, and the hash value is used for indicating a storage address of the target survey data;
and the data management device sends a data access response to the data access device, wherein the data access response comprises the information of the target block.
In a second aspect, a data access method is provided, including:
the data access equipment sends a data access request to the data management equipment; the data access request includes an identification of the target survey data;
the data access device receives a data access response from the data management device, wherein the data access response comprises the information of the target block; the target block is a block in a block chain, wherein the block stores a hash value corresponding to the target survey data, and the hash value is used for indicating a storage address of the target survey data;
and the data access equipment acquires target survey data according to the information of the target block.
In a third aspect, a data source apparatus is provided, including:
a communication unit for receiving a data access request from a data access device; the data access request includes an identification of the target survey data;
the processing unit is used for determining the information of the target block according to the identification of the target survey data; the target block is a block in a block chain, wherein the block stores a hash value corresponding to the target survey data, and the hash value is used for indicating a storage address of the target survey data;
the communication unit is further configured to send a data access response to the data access device, the data access response including information of the target block.
In a fourth aspect, there is provided a data access apparatus comprising:
a communication unit for sending a data access request to the data management device; the data access request includes an identification of the target survey data;
the communication unit is further used for receiving a data access response from the data management device, wherein the data access response comprises the information of the target block; the target block is a block in a block chain, wherein the block stores a hash value corresponding to the target survey data, and the hash value is used for indicating a storage address of the target survey data;
and the processing unit is used for acquiring the target survey data according to the information of the target block.
In a fifth aspect, a computer device is provided, comprising a memory and a processor, the memory storing a computer program, and the processor implementing the steps of the method according to the first aspect when executing the computer program.
In a sixth aspect, a computer-readable storage medium is provided, on which a computer program is stored, which computer program, when being executed by a processor, carries out the steps of the method according to the first aspect.
In a seventh aspect, a computer program product is provided, comprising a computer program which, when executed by a processor, performs the steps of the method according to the first aspect.
According to the data access method, the data access device, the computer equipment and the storage medium, decentralized data management is achieved through the block chain, and the block chain is recorded in the hash address of the distributed storage system. Due to the traceability and the public transparency of the block chain, the external equipment can quickly and conveniently read the hash address in the block after acquiring the authority, so that the survey data can be quickly consulted, the consultation flow of the survey data is simplified, and the convenience of data consultation is improved. In addition, the distributed storage system is used for carrying out distributed storage on the survey data, and the data access equipment can acquire the survey data from the adjacent storage nodes, so that the data acquisition speed is greatly improved.
Drawings
FIG. 1 is a schematic diagram of a system provided by an embodiment of the present application;
FIG. 2 is a schematic diagram of a data storage provided by an embodiment of the present application;
FIG. 3 is a block data structure diagram according to an embodiment of the present disclosure;
fig. 4 is a schematic flowchart of a data access method according to an embodiment of the present application;
fig. 5 is a schematic diagram of data encryption provided in an embodiment of the present application;
FIGS. 6-7 are schematic diagrams of another flow chart of a data access method according to an embodiment of the present application;
FIG. 8 is a block diagram illustrating the result of a data management apparatus according to an embodiment of the present application;
FIG. 9 is a block diagram illustrating the result of a data management apparatus according to an embodiment of the present application;
fig. 10 is an internal structural diagram of a computer device according to an embodiment of the present application.
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 method provided by the embodiment of the present application is applied to the system shown in fig. 1, and referring to fig. 1, the system includes: data management device 10, data access device 20, data storage system 30. Wherein the data management device 10 is adapted to obtain survey data from a survey data acquisition party. For example, survey data may be received from associated equipment of an engineering survey department. The data management device may also store the collected data in the data storage system 30. The data access device 20 may obtain survey data from the data storage system 30.
In the embodiment of the present application, the data storage system 30 may be a distributed storage system. For example, the distributed storage system IPFS may be an inter-satellite file system (IPFS). The data storage system 30 may add the storage information of the survey data to the blockchain, and the data access device 20 may obtain the storage information of the survey data from the blockchain, and obtain the survey data from the data storage system 30 according to the storage information of the survey data.
Illustratively, referring to FIG. 2, the data management facility 10 obtains survey data from data sources such as survey units, government agencies, labor subcontractors, etc., and stores the survey data in the IPFS system. Each file stored in the IPFS network has a unique hash address, and the hash address is a hash value obtained by a hash algorithm. After the survey data is stored in the IPFS system, a hash address corresponding to the data may also be generated. The IPFS system may add new blocks in the blockchain for storing the hash address.
In one possible implementation, referring to fig. 3, the hash address (which may also be referred to as a hash value) may be stored in a data block of the blockchain data layer.
The embodiment of the present application provides a data access method, which is suitable for the data management device 10 shown in fig. 1. As shown in fig. 4, the method comprises the steps of:
401. the data management device receives a data access request from the data access device; the data access request includes an identification of the target survey data.
The data management device has the authority to manage the data, and when the external device needs to access the survey data, the data management device can send a data access request to the data management device. The data access request may characterize a requirement of the data access device, e.g., the data access request is for accessing the target survey data.
Illustratively, the data access request may include an identification of the target survey data. In a possible implementation manner, the identifier of the target survey data may be acquisition time of the survey data or information of a data source of the survey data, which is not limited in this embodiment of the application.
402. The data management equipment determines the information of the target block according to the target survey data; the target block is a block in the blockchain, wherein the block stores a hash value corresponding to the target survey data, and the hash value is used for indicating a storage address of the target survey data.
Specifically, the data management apparatus transmits target survey data to a target storage node in the distributed storage system. The target storage node may store the target survey data in the distributed storage system, i.e., a plurality of storage nodes in the distributed storage system store the target survey data. The data management device may also determine a hash value based on the storage address of the target survey data. For example, the target storage node may perform a hash operation on the storage address of the target survey data to obtain a hash value, which may also be referred to as a hash address.
The target storage node may also store the hash value in the target chunk. The target block may be a newly added block of the target storage node in the block chain.
The data management device can receive the information of the target block from the target storage node and generate the corresponding relation between the target survey data and the target block. When the data management device receives the data access request sent by the data access device, the information of the target block corresponding to the target survey data to be accessed by the data access device can be determined according to the corresponding relationship.
Referring to table 1, the data management apparatus may store an identification of the target survey data and information (identification) of the target block correspondingly.
TABLE 1
Identification of survey data | Information of block |
2020.11.01 | X |
2020.12.01 | y |
…… | …… |
Note that, the identification of the survey data in table 1 is exemplified by the acquisition time, and the information of the block is exemplified by the number of the block. When the data management device receives a data access request sent by the data access device, the number of the target block corresponding to the target survey data can be determined according to the acquisition date lookup table 1 of the target survey data carried in the data access request.
403. And the data management device sends a data access response to the data access device, wherein the data access response comprises the information of the target block.
After the data management device determines the information of the target block according to the target survey data, the information of the target block can be sent to the data access device, so that the data access device can obtain the hash value of the target survey data from the target block, and then determine the storage address of the target survey data according to the hash value to obtain the target survey data from the storage address.
In a possible implementation manner, the data management device may further send authentication information of the target block to the data access device, so as to open the authority of the data access device to access the target block.
In the method shown in fig. 4, decentralized data management is achieved by means of a blockchain, which is recorded at the hash address of the distributed storage system. Due to the traceability and the public transparency of the block chain, the external equipment can quickly and conveniently read the hash address in the block after acquiring the authority, so that the survey data can be quickly consulted, the consultation flow of the survey data is simplified, and the convenience of data consultation is improved. In addition, the distributed storage system is used for carrying out distributed storage on the survey data, and the data access equipment can acquire the survey data from the adjacent storage nodes, so that the data acquisition speed is greatly improved.
In the method shown in fig. 4, the data management device may encrypt the data before uploading the exploration data to the distributed storage system, so as to improve the security of the data. For example, before the data management device sends the target survey data to the target storage node, the data management device may further encrypt the original data according to the public key of the data management device to obtain the target survey data. The original data may be data acquired by the data management device from a data source.
In one possible implementation, the data access response further includes a private key of the data management device, the private key being used to decrypt the target survey data.
Illustratively, referring to fig. 5, the data management device encrypts the original data using the public key to obtain encrypted data. The data management device may also pass the private key to the data access device. When the data access device obtains the target survey data (i.e., encrypted data) from the distributed storage system, the encrypted data may be decrypted using the private key to obtain the raw data.
The embodiment of the present application provides a data access method, which is suitable for the data access device 20 shown in fig. 1. As shown in fig. 6, the method comprises the steps of:
601. the data access equipment sends a data access request to the data management equipment; the data access request includes an identification of the target survey data.
The data management device has the authority to manage the data, and when the external device needs to access the survey data, the data management device can send a data access request to the data management device. The data access request may characterize a requirement of the data access device, e.g., the data access request is for accessing the target survey data.
Illustratively, the data access request may include an identification of the target survey data. In a possible implementation manner, the identifier of the target survey data may be acquisition time of the survey data or information of a data source of the survey data, which is not limited in this embodiment of the application.
602. The data access device receives a data access response from the data management device, the data access response including information of the target tile.
The target block is a block in the block chain, wherein the hash value corresponding to the target survey data is stored in the block chain, and the hash value is used for indicating a storage address of the target survey data.
603. And the data access equipment acquires target survey data according to the information of the target block.
In specific implementation, the data access device may obtain a hash value corresponding to the target survey data from the target block, and may further determine a storage location of the target survey data in the distributed storage system according to the hash value, and select a storage node close to the storage location to obtain the target survey data.
In the method shown in fig. 6, decentralized data management is achieved by means of a blockchain, which is recorded at the hash address of the distributed storage system. Due to the traceability and the public transparency of the block chain, the external equipment can quickly and conveniently read the hash address in the block after acquiring the authority, so that the survey data can be quickly consulted, the consultation flow of the survey data is simplified, and the convenience of data consultation is improved. In addition, the distributed storage system is used for carrying out distributed storage on the survey data, and the data access equipment can acquire the survey data from the adjacent storage nodes, so that the data acquisition speed is greatly improved.
In one possible implementation, the data management device may encrypt the data before uploading the survey data to the distributed storage system, so as to improve the security of the data. For example, before the data management device sends the target survey data to the target storage node, the data management device may further encrypt the original data according to the public key of the data management device to obtain the target survey data. The original data may be data acquired by the data management device from a data source.
Based on this, the data access device may also obtain a private key from the data management device to decrypt the obtained target survey data. Illustratively, the data access response further includes a private key of the data management device.
Illustratively, after the data access device acquires the target survey data according to the information of the target block, the data access device decrypts the target survey data according to the private key to obtain the original data.
The embodiment of the present application provides a data access method, which is suitable for the data access device 20 shown in fig. 1. As shown in fig. 7, the method comprises the steps of:
701. the data management device obtains raw data from a data source.
702. The data management device encrypts the original data by using the public key to obtain encrypted data.
703. The data management apparatus transmits the encrypted data to the data storage system.
704. The data storage system stores the encrypted data in a distributed storage mode and generates a corresponding hash value according to the storage address of the encrypted data.
705. And the data storage system stores the hash value in a newly added block of the block chain.
706. The data management device receives a data access request from the data access device; the data access request is for accessing target survey data.
707. The data management device determines information of the target block according to the target survey data.
The target block is a block in the block chain, wherein the hash value corresponding to the target survey data is stored in the block chain, and the hash value is used for indicating a storage address of the target survey data.
708. And the data management device sends a data access response to the data access device, wherein the data access response comprises the information of the target block and the private key of the data management device.
709. And the data access equipment receives the data access response and acquires the hash value from the target block according to the information of the target block.
710. And the data access equipment acquires the target survey data from the data storage system according to the hash value.
711. And the data access equipment decrypts the target survey data according to the private key of the data management equipment to obtain the original data.
It should be understood that although the steps in the flowcharts of fig. 4, 6 and 7 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 some of the steps in fig. 4, 6, and 7 may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed alternately or alternately with other steps or at least some of the other steps.
An embodiment of the present application further provides a data management apparatus, where the data management apparatus may be the data management device described above. As shown in fig. 8, the apparatus includes a communication unit 801 and a processing unit 802.
A communication unit 801 for receiving a data access request from a data access apparatus; the data access request includes an identification of the target survey data;
a processing unit 802, configured to determine information of the target block according to the identifier of the target survey data; the target block is a block in a block chain, wherein the block stores a hash value corresponding to the target survey data, and the hash value is used for indicating a storage address of the target survey data;
the communication unit 801 is further configured to send a data access response to the data access device, where the data access response includes information of the target block.
In a possible implementation manner, the communication unit 801 is further configured to send, by the data management apparatus, the target survey data to the target storage node, so that the target storage node determines a hash value according to a storage address of the target survey data and stores the hash value in the target block;
the communication unit 801 is further configured to receive information of a target block from a target storage node;
the processing unit 802 is further configured to generate a correspondence between the identification of the target survey data and the information of the target block.
In a possible implementation manner, the processing unit 802 is specifically configured to determine the information of the target block according to a correspondence between the identifier of the target survey data and the information of the target block.
In a possible implementation manner, the processing unit 802 is further configured to, before the communication unit sends the target survey data to the target storage node, perform encryption processing on the original data according to a public key of the data management device to obtain the target survey data.
In one possible implementation, the data access response further includes a private key of the data management device, the private key being used to decrypt the target survey data.
An embodiment of the present application further provides a data access apparatus, where the data access apparatus may be the data access device described above. As shown in fig. 9, the apparatus includes: a communication unit 901 and a processing unit 902.
A communication unit 901 for transmitting a data access request to the data management apparatus; the data access request includes an identification of the target survey data;
the communication unit 901 is further configured to receive a data access response from the data management apparatus, the data access response including information of the target block; the target block is a block in a block chain, wherein the block stores a hash value corresponding to the target survey data, and the hash value is used for indicating a storage address of the target survey data;
the processing unit 902 is configured to obtain target survey data according to the information of the target block.
In a possible implementation manner, the processing unit 902 is specifically configured to, the data access device obtain a hash value corresponding to the target survey data from the target block; and the data access equipment acquires the target survey data from the storage address of the target survey data according to the hash value.
In one possible implementation, the data access response further includes a private key of the data management device.
The processing unit 902 is specifically configured to, after obtaining the target survey data according to the information of the target block, decrypt the target survey data according to the private key of the data management device, and obtain the original data.
For specific limitations of the data management device and the data access device, reference may be made to the above limitations of the data access method, which are not described herein again. The modules in the data management device and the data access 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, and its internal structure diagram may be as shown in fig. 10. The computer device includes a processor, a memory, and a network interface 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 for storing data, such as program code. 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 data access method.
Those skilled in the art will appreciate that the architecture shown in fig. 10 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, a computer device is provided, which includes a memory and a processor, wherein the memory stores a computer program, and the processor implements the data access method of the embodiment when executing the computer program.
Illustratively, the processor, when executing the computer program, supports the data management device receiving a data access request from the data access device; the data access request includes an identification of the target survey data;
the support data management equipment determines the information of the target block according to the identification of the target survey data; the target block is a block in a block chain, wherein the block stores a hash value corresponding to the target survey data, and the hash value is used for indicating a storage address of the target survey data;
and the data management device is supported to send a data access response to the data access device, wherein the data access response comprises the information of the target block.
Optionally, the data management device is further supported to send the target survey data to the target storage node, so that the target storage node determines a hash value according to a storage address of the target survey data and stores the hash value in the target block;
the data management device receives the information of the target block from the target storage node and generates a corresponding relation between the identification of the target survey data and the information of the target block.
Optionally, the data management device is further supported to determine the information of the target block according to a corresponding relationship between the identifier of the target survey data and the information of the target block.
Optionally, the data management device is further supported to encrypt the original data according to the public key of the data management device, so as to obtain the target survey data.
Illustratively, the data access response further includes a private key of the data management device, the private key being used to decrypt the target survey data.
Illustratively, the processor, when executing the computer program, supports the data access device to send a data access request to the data management device; the data access request includes an identification of the survey data;
the data access device is supported to receive a data access response from the data management device, wherein the data access response comprises the information of the target block; the target block is a block in a block chain, wherein the block stores a hash value corresponding to the target survey data, and the hash value is used for indicating a storage address of the target survey data;
and the support data access equipment acquires the target survey data according to the information of the target block.
The data access device is further illustratively supported to acquire a hash value corresponding to the target survey data from the target block, and acquire the target survey data from a storage address of the target survey data according to the hash value.
Illustratively, the data access response further includes a private key of the data management device.
Illustratively, the support data access device decrypts the target survey data according to the private key of the data management device to obtain the original data.
In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, which, when executed by a processor, implements the data access method described in embodiments of the present application.
Illustratively, the processor, when executing the computer program, supports the data management device receiving a data access request from the data access device; the data access request includes an identification of the target survey data;
the support data management equipment determines the information of the target block according to the identification of the target survey data; the target block is a block in a block chain, wherein the block stores a hash value corresponding to the target survey data, and the hash value is used for indicating a storage address of the target survey data;
and the data management device is supported to send a data access response to the data access device, wherein the data access response comprises the information of the target block.
Illustratively, the processor, when executing the computer program, supports the data access device to send a data access request to the data management device; the data access request includes an identification of the survey data;
the data access device is supported to receive a data access response from the data management device, wherein the data access response comprises the information of the target block; the target block is a block in a block chain, wherein the block stores a hash value corresponding to the target survey data, and the hash value is used for indicating a storage address of the target survey data;
and the support data access equipment acquires the target survey data according to the information of the target block.
The computer program product according to the embodiments of the present application includes a computer program, where the computer program is executed by a processor to implement the data access method according to the embodiments of the present application.
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 can include at least one of non-volatile and volatile memory. Non-volatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical storage, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others.
The 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 (14)
1. A method of data access, comprising:
the data management device receives a data access request from the data access device; the data access request includes an identification of target survey data;
the data management equipment determines the information of a target block according to the identification of the target survey data; the target block is a block in a block chain, wherein a hash value corresponding to the target survey data is stored in the block chain, and the hash value is used for indicating a storage address of the target survey data;
and the data management equipment sends a data access response to the data access equipment, wherein the data access response comprises the information of the target block.
2. The method of claim 1, further comprising:
the data management equipment sends the target survey data to a target storage node, so that the target storage node determines the hash value according to the storage address of the target survey data and stores the hash value in the target block;
and the data management equipment receives the information of the target block from the target storage node and generates a corresponding relation between the identification of the target survey data and the information of the target block.
3. The method of claim 2, wherein the data management device determines information for a target block from the target survey data, comprising:
and determining the information of the target block according to the corresponding relation between the identifier of the target survey data and the information of the target block.
4. The method of any of claims 1-3, wherein prior to the data management device sending the target survey data to a target storage node, the method further comprises:
and the data management equipment encrypts the original data according to the public key of the data management equipment to obtain the target survey data.
5. The method of claim 4, wherein the data access response further comprises a private key of the data management device, the private key being used to decrypt the target survey data.
6. A method of data access, comprising:
the data access equipment sends a data access request to the data management equipment; the data access request includes an identification of survey data;
the data access device receives a data access response from the data management device, wherein the data access response comprises information of a target block; the target block is a block in a block chain, wherein a hash value corresponding to the target survey data is stored in the block chain, and the hash value is used for indicating a storage address of the target survey data;
and the data access equipment acquires the target survey data according to the information of the target block.
7. The method of claim 6, wherein the data access device obtaining the target survey data from the information of the target block comprises:
the data access equipment acquires a hash value corresponding to the target survey data from the target block;
and the data access equipment acquires the target survey data from the storage address of the target survey data according to the hash value.
8. The method of claim 6 or 7, wherein the data access response further comprises a private key of the data management device.
9. The method of claim 8, wherein after the data access device obtains the target survey data based on the information of the target block, the method further comprises:
and the data access equipment decrypts the target survey data according to the private key of the data management equipment to obtain the original data.
10. A data management apparatus, comprising:
a communication unit for receiving a data access request from a data access device; the data access request includes an identification of target survey data;
the processing unit is used for determining the information of the target block according to the identification of the target survey data; the target block is a block in a block chain, wherein a hash value corresponding to the target survey data is stored in the block chain, and the hash value is used for indicating a storage address of the target survey data;
the communication unit is further configured to send a data access response to the data access device, where the data access response includes information of the target block.
11. A data access device, comprising:
a communication unit for sending a data access request to the data management device; the data access request is used for accessing target survey data;
the communication unit is further used for receiving a data access response from the data management device, wherein the data access response comprises the information of the target block; the target block is a block in a block chain, wherein a hash value corresponding to the target survey data is stored in the block chain, and the hash value is used for indicating a storage address of the target survey data;
and the processing unit is used for acquiring the target survey data according to the information of the target block.
12. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor realizes the steps of the method of any one of claims 1 to 9 when executing the computer program.
13. 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 9.
14. A computer program product comprising a computer program, characterized in that the computer program realizes the steps of the method of any one of claims 1 to 9 when executed by a processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110295713.5A CN113094394B (en) | 2021-03-19 | 2021-03-19 | Data access method, device, computer equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110295713.5A CN113094394B (en) | 2021-03-19 | 2021-03-19 | Data access method, device, computer equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113094394A true CN113094394A (en) | 2021-07-09 |
CN113094394B CN113094394B (en) | 2024-09-10 |
Family
ID=76668470
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110295713.5A Active CN113094394B (en) | 2021-03-19 | 2021-03-19 | Data access method, device, computer equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113094394B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109491996A (en) * | 2018-09-27 | 2019-03-19 | 上海点融信息科技有限责任公司 | For the block generation method of block chain network, block data access method, calculate equipment, storage medium |
CN109886040A (en) * | 2019-01-24 | 2019-06-14 | 北京融链科技有限公司 | Data processing method, device, storage medium and processor |
CN110990883A (en) * | 2019-11-22 | 2020-04-10 | 金蝶软件(中国)有限公司 | Data access method, data access device, computer-readable storage medium and computer equipment |
CN111798209A (en) * | 2020-06-30 | 2020-10-20 | 远光软件股份有限公司 | Engineering project management method based on block chain, electronic equipment and storage medium |
CN112016132A (en) * | 2020-08-27 | 2020-12-01 | 上海勘察设计研究院(集团)有限公司 | Block chain-based survey data management system and working method thereof |
-
2021
- 2021-03-19 CN CN202110295713.5A patent/CN113094394B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109491996A (en) * | 2018-09-27 | 2019-03-19 | 上海点融信息科技有限责任公司 | For the block generation method of block chain network, block data access method, calculate equipment, storage medium |
CN109886040A (en) * | 2019-01-24 | 2019-06-14 | 北京融链科技有限公司 | Data processing method, device, storage medium and processor |
CN110990883A (en) * | 2019-11-22 | 2020-04-10 | 金蝶软件(中国)有限公司 | Data access method, data access device, computer-readable storage medium and computer equipment |
CN111798209A (en) * | 2020-06-30 | 2020-10-20 | 远光软件股份有限公司 | Engineering project management method based on block chain, electronic equipment and storage medium |
CN112016132A (en) * | 2020-08-27 | 2020-12-01 | 上海勘察设计研究院(集团)有限公司 | Block chain-based survey data management system and working method thereof |
Also Published As
Publication number | Publication date |
---|---|
CN113094394B (en) | 2024-09-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9946744B2 (en) | Customer vehicle data security method | |
CN108123800B (en) | Key management method, key management device, computer equipment and storage medium | |
Smith et al. | Let's revoke: Scalable global certificate revocation | |
EP3794487B1 (en) | Obfuscation and deletion of personal data in a loosely-coupled distributed system | |
US8635465B1 (en) | Counter-based encryption of stored data blocks | |
CN109510840B (en) | Method and device for sharing unstructured data, computer equipment and storage medium | |
RU2011150271A (en) | PROTECTED AND CONFIDENTIAL STORAGE AND PROCESSING OF BACKUP FOR TRUSTED CALCULATION SERVICES AND DATA | |
US20170068477A1 (en) | Systems and methods for storing data blocks using a set of generated logical memory identifiers | |
CN110688666B (en) | Data encryption and preservation method in distributed storage | |
CN115225409B (en) | Cloud data safety duplicate removal method based on multi-backup joint verification | |
KR101979267B1 (en) | Encryption systems based on cloud storage and method thereof | |
CN102811212A (en) | Data encryption method with repetitive data deleting function and system thereof | |
CN113254955A (en) | Forward security connection keyword symmetric searchable encryption method, system and application | |
CN114327261B (en) | Data file storage method and data security agent | |
WO2019020830A1 (en) | Evaluation of a monitoring function | |
CN109462475B (en) | Data encryption method, data decryption method and related devices | |
US20220209945A1 (en) | Method and device for storing encrypted data | |
CN110717190A (en) | Distributed data storage method and device and data storage equipment | |
CN111507706A (en) | Data browsing and storing method and device, computer equipment and storage medium | |
Zhang et al. | KT-ORAM: A bandwidth-efficient ORAM built on k-ary tree of PIR nodes | |
CN113094394B (en) | Data access method, device, computer equipment and storage medium | |
US20220164462A1 (en) | End-to-end encryption with data deduplication | |
CN114124469B (en) | Data processing method, device and equipment | |
Ghutugade et al. | Privacy preserving auditing for shared data in cloud | |
TWI723622B (en) | Data management method and system capable of safely accessing and deleting data |
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 |