CN112084522A - Data storage method, device, equipment and storage medium - Google Patents

Data storage method, device, equipment and storage medium Download PDF

Info

Publication number
CN112084522A
CN112084522A CN202011042449.6A CN202011042449A CN112084522A CN 112084522 A CN112084522 A CN 112084522A CN 202011042449 A CN202011042449 A CN 202011042449A CN 112084522 A CN112084522 A CN 112084522A
Authority
CN
China
Prior art keywords
storage
data
matrix
encryption
data storage
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
Application number
CN202011042449.6A
Other languages
Chinese (zh)
Other versions
CN112084522B (en
Inventor
谭粤飞
阳尧
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Tengmeng Technology Co ltd
Original Assignee
Shenzhen Tengmeng Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Tengmeng Technology Co ltd filed Critical Shenzhen Tengmeng Technology Co ltd
Priority to CN202011042449.6A priority Critical patent/CN112084522B/en
Publication of CN112084522A publication Critical patent/CN112084522A/en
Application granted granted Critical
Publication of CN112084522B publication Critical patent/CN112084522B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/602Providing cryptographic facilities or services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/18File system types
    • G06F16/182Distributed file systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • General Health & Medical Sciences (AREA)
  • Software Systems (AREA)
  • Computer Hardware Design (AREA)
  • Bioethics (AREA)
  • Health & Medical Sciences (AREA)
  • Data Mining & Analysis (AREA)
  • Computing Systems (AREA)
  • Storage Device Security (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention relates to the field of node storage, and discloses a data storage method, a data storage device, data storage equipment and a data storage medium. The method comprises the following steps: receiving a data storage request based on an interplanetary file system, wherein the data storage request comprises: target data and a storage address, a storage parameter and a storage mode corresponding to the target data; analyzing the storage mode and the storage parameters according to a preset matrix generation algorithm to generate a data encryption matrix; accessing the storage address, extracting the target data, and writing the target data into a storage system corresponding to the storage mode according to the data encryption matrix to generate a data storage matrix; and writing the data storage matrix into a block chain system based on a super ledger protocol.

Description

Data storage method, device, equipment and storage medium
Technical Field
The present invention relates to the field of node storage, and in particular, to a data storage method, apparatus, device, and storage medium.
Background
As blockchain techniques emerge, various types of blockchain techniques are continually emerging. Because of the inherent characteristics of blockchain technology, transaction records require more than 50% of blockchain validation before they can be stored in the new blockchain. When the public link is too long, the data storage speed is affected, and according to the defect, a branch technology hyper-ledger (hyper-ledger Fabric) technology of a block link technology has appeared.
However, the super ledger (hyper folder Fabric) technology still cannot realize the discrete storage, and the traditional cloud storage scheme can realize the discrete storage, but cannot ensure the data security. The storage mode realized by the existing storage technology is not flexible enough, and the storage mode cannot be flexibly stored in a block chain and a cloud database according to requirements, and the problem that the block chain technology cannot be separately stored and flexibly stored needs to be solved at present.
Disclosure of Invention
The invention mainly aims to solve the technical problem that the block chain technology cannot realize the discrete storage and the flexible storage at the same time.
The first aspect of the present invention provides a data storage method, including the steps of:
receiving a data storage request based on an interplanetary file system, wherein the data storage request comprises: target data and a storage address, a storage parameter and a storage mode corresponding to the target data;
analyzing the storage mode and the storage parameters according to a preset matrix generation algorithm to generate a data encryption matrix;
accessing the storage address, extracting the target data, and writing the target data into a storage system corresponding to the storage mode according to the data encryption matrix to generate a data storage matrix;
and writing the data storage matrix into a block chain system based on a super ledger protocol.
Optionally, in a first implementation manner of the first aspect of the present invention, before the receiving the data storage request based on the interplanetary file system, the method further includes:
receiving an initialization data request, wherein the initialization request comprises: the number of client nodes and the storage security level;
setting the total number of nodes accessed by a client in a preset interplanetary file system according to the number of the client nodes, and setting the data backup number in the interplanetary file system according to the storage security level;
and when a newly added client accesses, distributing the matched private key to the newly added client and the interplanetary file system.
Optionally, in a second implementation manner of the first aspect of the present invention, the analyzing the storage manner and the storage parameter according to a preset matrix generation algorithm, and generating the data encryption matrix includes:
reading the total number of modes corresponding to the storage mode, and constructing an initial encryption zero matrix according to the total number of modes;
and modifying the elements in the initial encryption zero matrix according to the storage parameters to generate a data encryption matrix.
Optionally, in a third implementation manner of the first aspect of the present invention, the writing the target data into the storage system corresponding to the storage manner according to the data encryption matrix, and generating the data storage matrix includes:
writing the target data into a storage system corresponding to the storage mode according to the data encryption matrix, and receiving feedback data of all the storage systems;
and combining all the feedback data and the data encryption matrix to generate a storage data matrix.
Optionally, in a fourth implementation manner of the first aspect of the present invention, the storage manner includes: the interplanetary file system storage, the private cloud system storage and the public cloud system storage, the writing of the target data into the storage system corresponding to the storage mode according to the data encryption matrix, and the receiving of the feedback data of all the storage systems includes:
when the storage mode is the interplanetary file system storage, receiving a hash value fed back by the interplanetary file system;
when the storage mode is the private cloud system storage, receiving a private cloud reference value fed back by the private cloud system;
and when the storage mode is the public cloud system storage, receiving a public cloud reference value fed back by the public cloud system.
Optionally, in a fifth implementation manner of the first aspect of the present invention, after the writing the data storage matrix into the block chain system based on the super ledger protocol, the method further includes:
inquiring a storage record in the block chain system, and capturing the data storage matrix from the storage record;
and analyzing data from a storage system corresponding to the data storage matrix according to the data storage matrix to obtain target data.
Optionally, in a sixth implementation manner of the first aspect of the present invention, the analyzing, according to the data storage matrix, data from a storage system corresponding to the data storage matrix to obtain target data includes:
reading the data tag and the encryption parameter of the same element in the data storage matrix,
capturing storage data in a storage system corresponding to the same element according to the data tag, and judging whether an encryption parameter corresponding to the storage data is set to be encrypted;
if the encryption is set, decrypting the stored data according to a preset decryption algorithm to obtain target data;
and if the setting is not encryption, determining the stored data as the target data.
A second aspect of the present invention provides a data storage apparatus comprising:
the receiving module is used for receiving a data storage request based on an interplanetary file system, wherein the data storage request comprises: target data and a storage address, a storage parameter and a storage mode corresponding to the target data;
the analysis module is used for analyzing the storage mode and the storage parameters according to a preset matrix generation algorithm to generate a data encryption matrix;
the first storage module is used for accessing the storage address, extracting the target data, writing the target data into a storage system corresponding to the storage mode according to the data encryption matrix and generating a data storage matrix;
and the second storage module is used for writing the data storage matrix into a block chain system based on a super ledger protocol.
A third aspect of the present invention provides a data storage device comprising: a memory having instructions stored therein and at least one processor, the memory and the at least one processor interconnected by a line; the at least one processor invokes the instructions in the memory to cause the data storage device to perform the data storage method described above.
A fourth aspect of the present invention provides a computer-readable storage medium having stored therein instructions, which, when run on a computer, cause the computer to execute the above-described data storage method.
Drawings
FIG. 1 is a schematic diagram of a first embodiment of a data storage method according to an embodiment of the present invention;
FIG. 2 is a diagram of a second embodiment of a data storage method according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a third embodiment of a data storage method according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of an embodiment of a data storage device in an embodiment of the invention;
FIG. 5 is a schematic diagram of another embodiment of a data storage device in an embodiment of the invention;
FIG. 6 is a diagram of an embodiment of a data storage device in an embodiment of the invention.
Detailed Description
The embodiment of the invention provides a data storage method, a data storage device, data storage equipment and a data storage medium.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims, as well as in the drawings, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that the embodiments described herein may be practiced otherwise than as specifically illustrated or described herein. Furthermore, the terms "comprises," "comprising," or "having," and any variations thereof, are intended to cover non-exclusive inclusions, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
For convenience of understanding, a specific flow of the embodiment of the present invention is described below, and referring to fig. 1, a first embodiment of a data storage method in the embodiment of the present invention includes:
101. receiving a data storage request based on an interplanetary file system, wherein the data storage request comprises: the target data and the storage address, the storage parameter and the storage mode corresponding to the target data;
in this embodiment, the Inter planet File System is a distributed File System, and the target data of the data storage request is stored in the Inter planet File System. When a data storage request of the interplanetary file system is received, the security level m of the data storage is read, and the square m of the security level is used2The number of backups is generated.
102. Analyzing the storage mode and the storage parameters according to a preset matrix generation algorithm to generate a data encryption matrix;
in this embodiment, if the number of the read storage modes is n, n elements are total, and the n elements are initialized to 0, that is, a1=a2=a3=a4=…=an0. According to the case of this n encryptions, e.g. a1、a2、a3、a4When four encryption methods need to be encrypted, let a1=a2=a3=a4The data encryption matrix is obtained as (1,1,1,1,0,0, …,0) for 1. In another embodiment, there are three storage modes in the system: IPFS, private servers, cloud storage platforms. The ipfs (inter platform File system) system needs encryption, the private server does not need encryption, and the cloud storage needs encryption, so the data encryption matrix is (1,0, 1).
103. Accessing a storage address, extracting target data, writing the target data into a storage system corresponding to a storage mode according to the data encryption matrix, and generating a data storage matrix;
in this embodiment, the data encryption matrix is (1,0,1), and then the data is stored in the ipfs (inter planar File system) system in an encrypted manner, and then the system encrypts the data through the encryption module, and then stores the data in the ipfs (inter planar File system) system according to the number of copies (9 in the above example) established by the ipfs (inter planar File system) system, and records the hash value returned by the ipfs (inter planar File system) system; storing the original text of the data into a private server, and recording the position of the data in the server; and storing the data into a cloud storage platform through an encryption module, and recording the data storage position. The three storage modes are that the obtained IPFS (inter platform File system) system returns a hash value, a position value returned by the private service and a position value returned by the cloud storage platform, and a data storage matrix is constructed as follows: ((dataID, IPFS hash, 1), (dataID, private server, server return reference, 0), (dataID, cloud storage platform return reference, 1)). Wherein, 1 in the sequence indicates that the data is stored encrypted, and 0 indicates that the data is stored in clear (unencrypted).
104. And writing the data storage matrix into a block chain system based on the super ledger protocol.
In this embodiment, the three data storage matrices ((dataID, IPFS hash value, 1), (dataID, private server, server return reference value, 0), (dataID, cloud storage platform return reference value, 1)) are written onto the blockchain of the blockchain system of the hyper ledger Fabric (hyper). If the data needs to be read, the data storage matrix needs to be read from the block chain of the hyper ledger Fabric (hyper ledger Fabric), and the target data is read according to the data storage matrix.
In the embodiment of the invention, the storage data of the interplanetary File System (Inter planet File System) is adjusted to generate the encrypted storage data of multiple systems, and the data storage matrix of the multiple systems is written into the hyper book block chain (hyper folder Fabric), so that the discrete storage and flexible storage of the block chain technology are realized, and the block chain storage technology can be widely applied.
Referring to fig. 2, a second embodiment of the data storage method according to the embodiment of the present invention includes:
201. receiving an initialization data request, wherein the initialization request comprises: the number of client nodes and the storage security level;
in this embodiment, the number of connection terminals of the ipfs (inter platform File system) system, that is, the number of client nodes in the initialization request is 50, and the storage security level is 8.
202. Setting the total number of nodes accessed by a client in a preset interstellar file system according to the number of the nodes of the client, and setting the data backup number in the interstellar file system according to the storage security level;
in this embodiment, if the number of client accesses is 59, access of 9 clients needs to be blocked according to the number of client nodes being 50. If the storage security level is 8, the number of data backups in the Inter planet File System is 64.
203. When a new client accesses, distributing the matched private key to the new client and the interplanetary file system;
in this embodiment, when a new client is accessed, a physical IP address of the client and a private key are combined and matched to generate a storage File, the storage File is stored in an Inter platform File System (Inter platform File System), the private key is sent to the client, when access is required, key data matching is performed, and when matching is successful, data transmission is performed.
204. Receiving a data storage request based on an interplanetary file system, wherein the data storage request comprises: the target data and the storage address, the storage parameter and the storage mode corresponding to the target data;
the method embodiment described in this embodiment is similar to the first embodiment, and reference may be made to the corresponding process in the foregoing method embodiment, which is not described herein again.
205. Reading the total number of modes corresponding to the storage mode, and constructing an initial encryption zero matrix according to the total number of the modes;
in this embodiment, if the total number of storage modes is 3, a 1 × 3 encryption zero matrix is constructed according to the total number of storage modes 3, that is, (0,0, 0).
206. Modifying elements in the initial encryption zero matrix according to the storage parameters to generate a data encryption matrix;
in this embodiment, in the storage parameter, if an ipfs (inter platform File system) system needs to be encrypted, a private server does not need to be encrypted, and cloud storage needs to be encrypted, the data of (0,0,0) is adjusted to obtain a data encryption matrix (1,0, 1).
207. Accessing the storage address and extracting the target data;
the method embodiment described in this embodiment is similar to the first embodiment, and reference may be made to the corresponding process in the foregoing method embodiment, which is not described herein again.
208. The storage mode comprises the following steps: the method comprises the steps of storing a interstellar file system, storing a private cloud system and storing a public cloud system, and when the storage mode is the interstellar file system storage, receiving a hash value fed back by the interstellar file system;
in this embodiment, if the storage mode is an ipfs (inter platform File system) system, the target data is stored in the ipfs (inter platform File system) system, and then the returned hash value is obtained.
209. When the storage mode is private cloud system storage, receiving a private cloud reference value fed back by the private cloud system;
in this embodiment, if the storage mode is a private cloud system, the private cloud reference value similar to {230s992} fed back by the private cloud system is obtained after the target data is stored in the private cloud system.
210. When the storage mode is public cloud system storage, receiving a public cloud reference value fed back by the public cloud system;
in this embodiment, if the storage mode is a private cloud system, the target data is stored in a public cloud system, and then the feedback of the public cloud system is obtained similar to { XDAD 25.33: ff is a public cloud reference
211. Combining all feedback data and the data encryption matrix to generate a storage data matrix;
in this embodiment, the storage data matrix generated by combination is ((dataID, IPFS hash value, 1), (dataID, private server, server return reference value, 0), (dataID, cloud storage platform return reference value, 1)).
212. And writing the data storage matrix into a block chain system based on the super ledger protocol.
The method embodiment described in this embodiment is similar to the first embodiment, and reference may be made to the corresponding process in the foregoing method embodiment, which is not described herein again.
In the embodiment of the invention, the storage data of an Inter planet File System (Inter planet File System) is adjusted to generate multi-System encrypted storage data, and a multi-System data storage matrix is written into a hyper book block chain (hyper folder Fabric), so that the discrete storage and flexible storage of a block chain technology are realized, and the block chain storage technology can be widely applied.
Referring to fig. 3, a third embodiment of the data storage method according to the embodiment of the present invention includes:
301. receiving a data storage request based on an interplanetary file system, wherein the data storage request comprises: the target data and the storage address, the storage parameter and the storage mode corresponding to the target data;
the method embodiment described in this embodiment is similar to the first embodiment, and reference may be made to the corresponding process in the foregoing method embodiment, which is not described herein again.
302. Analyzing the storage mode and the storage parameters according to a preset matrix generation algorithm to generate a data encryption matrix;
the method embodiment described in this embodiment is similar to the first embodiment, and reference may be made to the corresponding process in the foregoing method embodiment, which is not described herein again.
303. Accessing a storage address, extracting target data, writing the target data into a storage system corresponding to a storage mode according to the data encryption matrix, and generating a data storage matrix;
the method embodiment described in this embodiment is similar to the first embodiment, and reference may be made to the corresponding process in the foregoing method embodiment, which is not described herein again.
304. Writing the data storage matrix into a block chain system based on a super book protocol;
the method embodiment described in this embodiment is similar to the first embodiment, and reference may be made to the corresponding process in the foregoing method embodiment, which is not described herein again.
305. Inquiring storage records in the block chain system, and capturing a data storage matrix from the storage records;
in this embodiment, in the blockchain system of the hyper-ledger (hyper-ledger Fabric) protocol, the data storage matrix (dataID, IPFS hash value, 1), (dataID, private server, server return reference value, 0), (dataID, cloud storage platform return reference value, 1) is fetched from the storage record list according to the feature code { DDas2455} of the data storage matrix.
306. Reading a data label and an encryption parameter of the same element in a data storage matrix;
in this embodiment, the data tag read (dataID, IPFS hash value, 1) is IPFS, the encryption parameter is 1, and the data is encrypted.
307. Capturing storage data in a storage system corresponding to the same element according to the data tag, and judging whether an encryption parameter corresponding to the storage data is set to be encrypted;
in this embodiment, data stored in the IPFS system is captured according to the data tag of the IPFS, and whether the encryption parameter is 1 is determined.
308. If the encryption is set, decrypting the stored data according to a preset decryption algorithm to obtain target data;
in this embodiment, if the data stored in the IPFS system is the encrypted data, a preset decryption algorithm is called to decrypt the encrypted data, so as to obtain the target data.
309. And if the setting is not encryption, determining the stored data as the target data.
In this embodiment, (dataID, private server, server return reference value, 0) is data stored by the private cloud server, and the data is not encrypted, so the data is directly extracted as target data.
In the embodiment of the invention, the storage data of an Inter planet File System (Inter planet File System) is adjusted to generate multi-System encrypted storage data, and a multi-System data storage matrix is written into a hyper book block chain (hyper folder Fabric), so that the discrete storage and flexible storage of a block chain technology are realized, and the block chain storage technology can be widely applied.
With reference to fig. 4, the data storage method in the embodiment of the present invention is described above, and a data storage device in the embodiment of the present invention is described below, where an embodiment of the data storage device in the embodiment of the present invention includes:
a receiving module 401, configured to receive a data storage request based on an interplanetary file system, where the data storage request includes: target data and a storage address, a storage parameter and a storage mode corresponding to the target data;
the analysis module 402 is configured to analyze the storage mode and the storage parameter according to a preset matrix generation algorithm to generate a data encryption matrix;
a first storage module 403, configured to access the storage address, extract the target data, write the target data into a storage system corresponding to the storage mode according to the data encryption matrix, and generate a data storage matrix;
a second storage module 404, configured to write the data storage matrix into a block chain system based on a super ledger protocol.
In the embodiment of the invention, the storage data of an Inter planet File System (Inter planet File System) is adjusted to generate multi-System encrypted storage data, and a multi-System data storage matrix is written into a hyper book block chain (hyper folder Fabric), so that the discrete storage and flexible storage of a block chain technology are realized, and the block chain storage technology can be widely applied.
Referring to fig. 5, another embodiment of a data storage device according to the present invention includes:
a receiving module 401, configured to receive a data storage request based on an interplanetary file system, where the data storage request includes: target data and a storage address, a storage parameter and a storage mode corresponding to the target data;
the analysis module 402 is configured to analyze the storage mode and the storage parameter according to a preset matrix generation algorithm to generate a data encryption matrix;
a first storage module 403, configured to access the storage address, extract the target data, write the target data into a storage system corresponding to the storage mode according to the data encryption matrix, and generate a data storage matrix;
a second storage module 404, configured to write the data storage matrix into a block chain system based on a super ledger protocol.
The data storage device further includes an initialization module 405, where the initialization module 405 is specifically configured to:
receiving an initialization data request, wherein the initialization request comprises: total number of nodes and storage security level;
setting the total number of nodes accessed by a client in a preset interplanetary file system according to the number of the client nodes, and setting the data backup number in the interplanetary file system according to the storage security level;
and when a newly added client accesses, distributing the matched private key to the newly added client and the interplanetary file system.
Wherein the parsing module 402 is specifically configured to:
reading the total number of modes corresponding to the storage mode, and constructing an initial encryption zero matrix according to the total number of modes;
and modifying the elements in the initial encryption zero matrix according to the storage parameters to generate a data encryption matrix.
The first storage module 403 is specifically configured to:
writing the target data into a storage system corresponding to the storage mode according to the data encryption matrix, and receiving feedback data of all the storage systems;
and combining all the feedback data and the data encryption matrix to generate a storage data matrix.
The first storage module 403 may be further specifically configured to:
when the storage mode is the interplanetary file system storage, receiving a hash value fed back by the interplanetary file system;
when the storage mode is the private cloud system storage, receiving a private cloud reference value fed back by the private cloud system;
and when the storage mode is the public cloud system storage, receiving a public cloud reference value fed back by the public cloud system.
Wherein the data storage device further comprises an extraction module 406, the extraction module 406 comprising:
the query unit 4061 is configured to query a storage record in the block chain system, and capture the data storage matrix from the storage record;
the analyzing unit 4062 is configured to analyze data from the storage system corresponding to the data storage matrix according to the data storage matrix, so as to obtain target data.
Wherein, the analyzing unit 4062 is specifically configured to:
reading the data tag and the encryption parameter of the same element in the data storage matrix,
capturing storage data in a storage system corresponding to the same element according to the data tag, and judging whether an encryption parameter corresponding to the storage data is set to be encrypted;
if the encryption is set, decrypting the stored data according to a preset decryption algorithm to obtain target data;
and if the setting is not encryption, determining the stored data as the target data.
In the embodiment of the invention, the storage data of an Inter planet File System (Inter planet File System) is adjusted to generate multi-System encrypted storage data, and a multi-System data storage matrix is written into a hyper book block chain (hyper folder Fabric), so that the discrete storage and flexible storage of a block chain technology are realized, and the block chain storage technology can be widely applied.
Fig. 4 and 5 describe the data storage apparatus in the embodiment of the present invention in detail from the perspective of the modular functional entity, and the data storage device in the embodiment of the present invention is described in detail from the perspective of hardware processing.
Fig. 6 is a schematic structural diagram of a data storage device according to an embodiment of the present invention, where the data storage device 600 may have a relatively large difference due to different configurations or performances, and may include one or more processors (CPUs) 610 (e.g., one or more processors) and a memory 620, and one or more storage media 630 (e.g., one or more mass storage devices) for storing applications 633 or data 632. Memory 620 and storage medium 630 may be, among other things, transient or persistent storage. The program stored on the storage medium 630 may include one or more modules (not shown), each of which may include a sequence of instructions operating on the data storage device 600. Further, the processor 610 may be configured to communicate with the storage medium 630 to execute a series of instruction operations in the storage medium 630 on the data storage device 600.
The data-based storage device 600 may also include one or more power supplies 640, one or more wired or wireless network interfaces 650, one or more input-output interfaces 660, and/or one or more operating systems 631, such as Windows Server, Mac OS X, Unix, Linux, FreeBSD, and the like. Those skilled in the art will appreciate that the data storage device configuration shown in FIG. 6 does not constitute a limitation on data-based storage devices, and may include more or fewer components than those shown, or some components in combination, or a different arrangement of components.
The present invention also provides a computer-readable storage medium, which may be a non-volatile computer-readable storage medium, and which may also be a volatile computer-readable storage medium, having stored therein instructions, which, when run on a computer, cause the computer to perform the steps of the data storage method.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses, and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a read-only memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A method of storing data, comprising the steps of:
receiving a data storage request based on an interplanetary file system, wherein the data storage request comprises: target data and a storage address, a storage parameter and a storage mode corresponding to the target data;
analyzing the storage mode and the storage parameters according to a preset matrix generation algorithm to generate a data encryption matrix;
accessing the storage address, extracting the target data, and writing the target data into a storage system corresponding to the storage mode according to the data encryption matrix to generate a data storage matrix;
and writing the data storage matrix into a block chain system based on a super ledger protocol.
2. The data storage method of claim 1, further comprising, prior to said receiving an interplanetary file system-based data storage request:
receiving an initialization data request, wherein the initialization request comprises: the number of client nodes and the storage security level;
setting the total number of nodes accessed by a client in a preset interplanetary file system according to the number of the client nodes, and setting the data backup number in the interplanetary file system according to the storage security level;
and when a newly added client accesses, distributing the matched private key to the newly added client and the interplanetary file system.
3. The data storage method of claim 1, wherein the analyzing the storage manner and the storage parameter according to a preset matrix generation algorithm to generate a data encryption matrix comprises:
reading the total number of modes corresponding to the storage mode, and constructing an initial encryption zero matrix according to the total number of modes;
and modifying the elements in the initial encryption zero matrix according to the storage parameters to generate a data encryption matrix.
4. The data storage method according to claim 1, wherein the writing the target data into the storage system corresponding to the storage mode according to the data encryption matrix, and the generating a data storage matrix comprises:
writing the target data into a storage system corresponding to the storage mode according to the data encryption matrix, and receiving feedback data of all the storage systems;
and combining all the feedback data and the data encryption matrix to generate a storage data matrix.
5. The data storage method according to claim 4, wherein the storage means comprises: the interplanetary file system storage, the private cloud system storage and the public cloud system storage, the writing of the target data into the storage system corresponding to the storage mode according to the data encryption matrix, and the receiving of the feedback data of all the storage systems includes:
when the storage mode is the interplanetary file system storage, receiving a hash value fed back by the interplanetary file system;
when the storage mode is the private cloud system storage, receiving a private cloud reference value fed back by the private cloud system;
and when the storage mode is the public cloud system storage, receiving a public cloud reference value fed back by the public cloud system.
6. The data storage method of claim 1, further comprising, after the writing the data storage matrix into a block chaining system based on a hyper book protocol:
inquiring a storage record in the block chain system, and capturing the data storage matrix from the storage record;
and analyzing data from a storage system corresponding to the data storage matrix according to the data storage matrix to obtain target data.
7. The data storage method of claim 6, wherein the parsing data from the storage system corresponding to the data storage matrix according to the data storage matrix to obtain target data comprises:
reading the data tag and the encryption parameter of the same element in the data storage matrix,
capturing storage data in a storage system corresponding to the same element according to the data tag, and judging whether an encryption parameter corresponding to the storage data is set to be encrypted;
if the encryption is set, decrypting the stored data according to a preset decryption algorithm to obtain target data;
and if the setting is not encryption, determining the stored data as the target data.
8. A data storage device, characterized in that the data storage device comprises:
the receiving module is used for receiving a data storage request based on an interplanetary file system, wherein the data storage request comprises: target data and a storage address, a storage parameter and a storage mode corresponding to the target data;
the analysis module is used for analyzing the storage mode and the storage parameters according to a preset matrix generation algorithm to generate a data encryption matrix;
the first storage module is used for accessing the storage address, extracting the target data, writing the target data into a storage system corresponding to the storage mode according to the data encryption matrix and generating a data storage matrix;
and the second storage module is used for writing the data storage matrix into a block chain system based on a super ledger protocol.
9. A data storage device, the data storage device comprising: a memory having instructions stored therein and at least one processor, the memory and the at least one processor interconnected by a line;
the at least one processor invokes the instructions in the memory to cause the data storage device to perform the data storage method of any of claims 1-7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out a data storage method according to any one of claims 1 to 7.
CN202011042449.6A 2020-09-28 2020-09-28 Data storage method, device, equipment and storage medium Active CN112084522B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011042449.6A CN112084522B (en) 2020-09-28 2020-09-28 Data storage method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011042449.6A CN112084522B (en) 2020-09-28 2020-09-28 Data storage method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112084522A true CN112084522A (en) 2020-12-15
CN112084522B CN112084522B (en) 2021-09-21

Family

ID=73739968

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011042449.6A Active CN112084522B (en) 2020-09-28 2020-09-28 Data storage method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112084522B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112769963A (en) * 2021-04-07 2021-05-07 暗链科技(深圳)有限公司 Node communication method based on block distributed block chain and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109493055A (en) * 2018-11-28 2019-03-19 深圳力维智联技术有限公司 Networking block chain equipment, data processing method and device based on block chain
CN110781155A (en) * 2019-10-18 2020-02-11 赛尔网络有限公司 Data storage reading method, system, equipment and medium based on IPFS
CN111104386A (en) * 2019-11-04 2020-05-05 北京海益同展信息科技有限公司 File storage method, terminal and storage medium
CN111460489A (en) * 2019-12-09 2020-07-28 重庆锐云科技有限公司 Client persistent storage method based on IPFS (Internet protocol file system) block chain
CN111625873A (en) * 2020-05-27 2020-09-04 山东师范大学 Controllable information disclosure method and system based on mixed block chain

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109493055A (en) * 2018-11-28 2019-03-19 深圳力维智联技术有限公司 Networking block chain equipment, data processing method and device based on block chain
CN110781155A (en) * 2019-10-18 2020-02-11 赛尔网络有限公司 Data storage reading method, system, equipment and medium based on IPFS
CN111104386A (en) * 2019-11-04 2020-05-05 北京海益同展信息科技有限公司 File storage method, terminal and storage medium
CN111460489A (en) * 2019-12-09 2020-07-28 重庆锐云科技有限公司 Client persistent storage method based on IPFS (Internet protocol file system) block chain
CN111625873A (en) * 2020-05-27 2020-09-04 山东师范大学 Controllable information disclosure method and system based on mixed block chain

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112769963A (en) * 2021-04-07 2021-05-07 暗链科技(深圳)有限公司 Node communication method based on block distributed block chain and electronic equipment

Also Published As

Publication number Publication date
CN112084522B (en) 2021-09-21

Similar Documents

Publication Publication Date Title
EP4047487B1 (en) File storage method, terminal, and storage medium
US10536272B2 (en) Encryption system with double key wrapping
CN102170440B (en) Method suitable for safely migrating data between storage clouds
US7225161B2 (en) Method and system for initializing a key management system
EP3866387A1 (en) Resilient secret sharing cloud based architecture for data vault
Choi et al. Blockchain-based distributed firmware update architecture for IoT devices
US10685141B2 (en) Method for storing data blocks from client devices to a cloud storage system
US11431691B2 (en) Systems and methods for blockchain-based secure storage
US9141824B2 (en) Dynamic database update in multi-server private information retrieval scheme
US11418342B2 (en) System and methods for data exchange using a distributed ledger
CN112084522B (en) Data storage method, device, equipment and storage medium
Chaisawat et al. Fault-tolerant architecture design for blockchain-based electronics voting system
CN114567647A (en) Distributed cloud file storage method and system based on IPFS
CN113162974B (en) Method and system for realizing dynamic encryption and decryption of database based on TCP (Transmission control protocol) proxy
CN111984989A (en) Method, device, system and medium for verifying, issuing and accessing URL (uniform resource locator)
Thakur et al. Data integrity techniques in cloud computing: an analysis
CN112041834B (en) System and method for data exchange using distributed ledgers
Ramesh et al. Public auditing for shared data with efficient user revocation in the cloud
JP2020155801A (en) Information management system and method therefor
CN113765676B (en) Interface access control method based on multiple identities of user and related equipment
CN114785553B (en) Authority authentication method, authority authentication device, computer equipment and storage medium
WO2017153833A1 (en) A system for cloud computing and/or storage using a plurality of independent clouds
Pontes et al. Performance trade-offs on a secure multi-party relational database
Dwivedi et al. Edge Computing and Blockchain-Based Distributed Audit of Outsourced Dynamic Data
Fang et al. Practical Verification of Data Encryption for Cloud Storage Services

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