CN115168494A - Distributed data storage method and system based on block chain technology - Google Patents
Distributed data storage method and system based on block chain technology Download PDFInfo
- Publication number
- CN115168494A CN115168494A CN202210848349.5A CN202210848349A CN115168494A CN 115168494 A CN115168494 A CN 115168494A CN 202210848349 A CN202210848349 A CN 202210848349A CN 115168494 A CN115168494 A CN 115168494A
- Authority
- CN
- China
- Prior art keywords
- data
- storage
- architecture
- user
- user 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.)
- Pending
Links
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/27—Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/602—Providing cryptographic facilities or services
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/62—Protecting access to data via a platform, e.g. using keys or access control rules
- G06F21/6218—Protecting 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
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- Databases & Information Systems (AREA)
- General Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- Bioethics (AREA)
- Software Systems (AREA)
- Computer Security & Cryptography (AREA)
- Computer Hardware Design (AREA)
- General Health & Medical Sciences (AREA)
- Health & Medical Sciences (AREA)
- Computing Systems (AREA)
- Data Mining & Analysis (AREA)
- Storage Device Security (AREA)
Abstract
The invention discloses a distributed data storage method and system based on a block chain technology, and relates to the technical field of data storage. The method comprises the following steps: acquiring and constructing a basic storage framework on a block chain according to scene information in user data; extracting and generating a pair of symmetric secret keys for a user according to user characteristics in user data, and storing the symmetric secret keys into a basic storage framework; extracting and optimizing a basic storage architecture according to data characteristics in user data to obtain a target storage architecture; and encrypting the user data by adopting the symmetric secret key to generate encrypted data, and storing the encrypted data into corresponding storage nodes in the target storage architecture according to the data characteristics. The invention can carry out targeted safe storage on the data, thereby greatly improving the data storage safety and the data storage rationality.
Description
Technical Field
The invention relates to the technical field of data storage, in particular to a distributed data storage method and system based on a block chain technology.
Background
In this big data age with increasing informatization, the information security problem is receiving more and more attention from all social circles. The traditional network storage system adopts a centralized storage server to store all data, the storage server becomes the bottleneck of system performance, the requirement of large-scale storage application cannot be met, the data disaster tolerance capability is low, the difficulty of capacity expansion of a data storage facility by a data application party is high, the data application cost is high, meanwhile, the data is easy to tamper, and the safety is low. Based on this, a block chain technique is proposed to store data. The blockchain has two major core features: firstly, data is difficult to tamper, and secondly, decentralization is performed. Based on the two characteristics, the information recorded by the block chain is more real and reliable.
However, the existing data storage method based on the block chain technology has some defects, and cannot combine multiple different scene requirements and actual conditions to store data in a targeted manner, so that the data storage is not reasonable enough, and the waste of storage resources is caused.
Disclosure of Invention
In order to overcome the above problems or at least partially solve the above problems, embodiments of the present invention provide a distributed data storage method and system based on a block chain technology, which can perform targeted secure storage on data, thereby greatly improving data storage security and data storage rationality.
The embodiment of the invention is realized by the following steps:
in a first aspect, an embodiment of the present invention provides a distributed data storage method based on a block chain technique, including the following steps:
acquiring and constructing a basic storage framework on a block chain according to scene information in user data;
extracting and generating a pair of symmetric secret keys for a user according to user characteristics in user data, and storing the symmetric secret keys into a basic storage framework;
extracting and optimizing a basic storage framework according to data characteristics in the user data to obtain a target storage framework;
and encrypting the user data by adopting the symmetric secret key to generate encrypted data, and storing the encrypted data into corresponding storage nodes in the target storage architecture according to the data characteristics.
In order to solve the problems in the prior art, a targeted basic storage architecture is constructed on a chain based on a block chain distributed storage system for different application scenes or generation scenes of user data and used for storing the data of a target user, wherein the basic storage architecture comprises a plurality of storage nodes which are arranged in a distributed mode; in order to further ensure the storage security of the user data, a pair of specific symmetric keys is generated for the corresponding user in combination with the user characteristics, and the uplink of the keys is performed. Meanwhile, in order to perform more detailed storage division on user data so as to extract corresponding data quickly and pertinently in the following and facilitate data classification management, a basic storage architecture is optimized based on data characteristics, and storage nodes are adjusted according to the data characteristics so as to construct a target storage architecture so as to perform more detailed storage on the user data in the following; after the target storage architecture is built, user data are encrypted by the aid of the symmetric secret keys, and then the corresponding encrypted data are stored into corresponding storage nodes in the target storage architecture according to data characteristics. The invention can carry out targeted safe storage on the data, thereby greatly improving the data storage safety and the data storage rationality.
Based on the first aspect, in some embodiments of the present invention, the method for obtaining and constructing an infrastructure storage architecture on a blockchain according to scene information in user data includes the following steps:
acquiring user data, and extracting scene information in the user data by adopting a preset feature capture model;
matching in a preset storage architecture database according to the scene information to obtain a corresponding initial storage architecture;
and adjusting the initial storage architecture according to the user identification in the user data so as to construct a basic storage architecture on the block chain.
Based on the first aspect, in some embodiments of the present invention, the method for extracting and optimizing an underlying storage architecture according to data features in user data to obtain a target storage architecture includes the following steps:
extracting data characteristics in the user data by adopting a preset characteristic grabbing model;
and adjusting the storage nodes in the basic storage architecture according to the data characteristics, and marking each adjusted storage node to obtain the target storage architecture.
Based on the first aspect, in some embodiments of the present invention, the method for adjusting storage nodes in an infrastructure storage architecture according to data characteristics includes the following steps:
and deleting or adding storage nodes in the basic storage architecture according to the data characteristics.
Based on the first aspect, in some embodiments of the present invention, the method for marking each adjusted storage node to obtain a target storage architecture includes the following steps:
marking each adjusted storage node according to the data characteristics to generate node marking information;
associating each adjusted storage node according to the data characteristics to generate node association information;
and constructing a target storage architecture based on the basic storage architecture according to the node marking information and the node association information.
Based on the first aspect, in some embodiments of the present invention, the distributed data storage method based on the block chain technology further includes the following steps:
the symmetric key is segmented, a random sequence is generated for the symmetric key, the random sequence is added into each segment of the symmetric key, and the key encryption data are generated and uploaded to a basic storage framework.
In a second aspect, an embodiment of the present invention provides a distributed data storage system based on a block chain technique, including: the system comprises a scene construction module, a secret key generation module, a framework optimization module and an encryption storage module, wherein:
the scene construction module is used for acquiring and constructing a basic storage framework on the block chain according to scene information in the user data;
the key generation module is used for extracting and generating a pair of symmetric keys for the user according to the user characteristics in the user data, and storing the symmetric keys into the basic storage architecture;
the architecture optimization module is used for extracting and optimizing a basic storage architecture according to data characteristics in the user data to obtain a target storage architecture;
and the encryption storage module is used for encrypting the user data by adopting the symmetric secret key to generate encrypted data and storing the encrypted data into a corresponding storage node in the target storage architecture according to the data characteristics.
In order to solve the problems in the prior art, the system constructs a targeted basic storage framework on a chain based on a block chain distributed storage system for storing data of a target user aiming at application scenes or generation scenes of different user data through the cooperation of a plurality of modules such as a scene construction module, a secret key generation module, a framework optimization module and an encryption storage module, wherein the basic storage framework comprises a plurality of storage nodes which are arranged in a distributed mode; in order to further ensure the storage security of the user data, a pair of specific symmetric keys is generated for the corresponding user in combination with the user characteristics, and the uplink of the keys is performed. Meanwhile, in order to perform more detailed storage division on user data so as to extract corresponding data quickly and pertinently in the following and facilitate data classification management, a basic storage architecture is optimized based on data characteristics, and storage nodes are adjusted according to the data characteristics so as to construct a target storage architecture so as to perform more detailed storage on the user data in the following; after the target storage architecture is built, user data are encrypted by adopting the symmetric secret key, and then the corresponding encrypted data are stored into corresponding storage nodes in the target storage architecture according to the data characteristics. The invention can carry out targeted safe storage on the data, thereby greatly improving the data storage safety and the data storage rationality.
Based on the second aspect, in some embodiments of the present invention, the scene construction module includes a scene extraction unit, an architecture matching unit, and a basis construction unit, where:
the scene extraction unit is used for acquiring user data and extracting scene information in the user data by adopting a preset feature capture model;
the architecture matching unit is used for matching in a preset storage architecture database according to the scene information to obtain a corresponding initial storage architecture;
and the basic construction unit is used for adjusting the initial storage architecture according to the user identification in the user data so as to construct the basic storage architecture on the block chain.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a memory for storing one or more programs; a processor. The program or programs, when executed by a processor, implement the method of any of the first aspects as described above.
In a fourth aspect, embodiments of the present application provide a computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the method according to any one of the first aspect described above.
The embodiment of the invention at least has the following advantages or beneficial effects:
the embodiment of the invention provides a distributed data storage method and a distributed data storage system based on a block chain technology, aiming at application scenes or generation scenes of different user data, establishing a targeted basic storage architecture on a chain based on a block chain distributed storage system for storing data of a target user; and generating a pair of specific symmetric keys for the corresponding user by combining the user characteristics, and carrying out key uplink. Meanwhile, optimizing a basic storage framework based on the data characteristics, and adjusting storage nodes according to the data characteristics to construct a target storage framework; after the target storage architecture is built, user data are encrypted by adopting the symmetric secret key, and then the corresponding encrypted data are stored into corresponding storage nodes in the target storage architecture according to the data characteristics. The invention can carry out targeted safe storage on the data, thereby greatly improving the safety of data storage and the rationality of data storage.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and those skilled in the art can also obtain other related drawings based on the drawings without inventive efforts.
Fig. 1 is a flowchart of a distributed data storage method based on a block chain technique according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a basic storage architecture in a distributed data storage method based on a block chain technique according to an embodiment of the present invention;
fig. 3 is a flowchart illustrating the construction of a template storage architecture in a distributed data storage method based on a block chain technique according to an embodiment of the present invention;
FIG. 4 is a schematic block diagram of a distributed data storage system based on a blockchain technique according to an embodiment of the present invention;
fig. 5 is a block diagram of an electronic device according to an embodiment of the present invention.
Description of the reference numerals: 100. a scene construction module; 200. a key generation module; 300. an architecture optimization module; 400. an encryption storage module; 101. a memory; 102. a processor; 103. a communication interface.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all embodiments of the present invention. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present invention, as presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined or explained in subsequent figures.
It should be noted that, in this document, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrases "comprising one of 8230; \8230;" 8230; "does not exclude the presence of additional like elements in a process, method, article, or apparatus that comprises the element.
In the description of the embodiments of the present invention, "a plurality" represents at least 2.
Example (b):
as shown in fig. 1 to fig. 3, in a first aspect, an embodiment of the present invention provides a distributed data storage method based on a blockchain technique, including the following steps:
s1, acquiring and constructing a basic storage architecture on a block chain according to scene information in user data;
further, as shown in fig. 2, the method includes:
s11, acquiring user data, and extracting scene information in the user data by adopting a preset feature capture model;
s12, matching in a preset storage architecture database according to the scene information to obtain a corresponding initial storage architecture;
and S13, adjusting the initial storage architecture according to the user identification in the user data so as to construct a basic storage architecture on the block chain.
In some embodiments of the invention, in order to store user data more reasonably, a targeted distributed infrastructure is constructed on a chain in combination with different scenarios. Firstly, extracting scene information in user data by adopting a preset feature capture model, then matching in a preset storage architecture database by combining different scenes to obtain a corresponding initial storage architecture, and then constructing a targeted basic storage architecture of a user by combining different user identifications. The user data includes user characteristics, data content, data characteristics, user identifiers, scene information, data uploading/generation time, and the like. The feature capture model is a mathematical model which is constructed based on a machine learning algorithm model and can extract related feature keywords in corresponding data by combining different data capture requirements. The infrastructure storage architecture includes a plurality of storage nodes.
S2, extracting and generating a pair of symmetric secret keys for the user according to the user characteristics in the user data, and storing the symmetric secret keys into a basic storage framework;
s3, extracting and optimizing a basic storage framework according to data characteristics in the user data to obtain a target storage framework;
further, as shown in fig. 3, the method includes:
s31, extracting data characteristics in the user data by adopting a preset characteristic grabbing model;
and S32, adjusting the storage nodes in the basic storage architecture according to the data characteristics, and marking each adjusted storage node to obtain the target storage architecture.
And further, deleting or adding storage nodes in the basic storage architecture according to the data characteristics.
Further, marking each adjusted storage node according to the data characteristics to generate node marking information; associating each adjusted storage node according to the data characteristics to generate node association information; and constructing a target storage architecture based on the basic storage architecture according to the node marking information and the node association information.
In some embodiments of the present invention, in order to further improve the rationality of data storage and facilitate extraction and management of subsequent data, a more detailed and reasonable storage architecture is constructed on the basis of a basic storage architecture by combining data features in user data. And carrying out adjustment operations such as deletion or addition on storage nodes in the storage architecture by combining the data characteristics, carrying out one-to-one corresponding marking on each storage node obtained after adjustment and each data characteristic, and associating each node based on the data characteristics to obtain a complete target storage architecture. The data features may also be associated according to a logical hierarchy or similarity between them, and not otherwise.
And S4, encrypting the user data by adopting the symmetric secret key to generate encrypted data, and storing the encrypted data into corresponding storage nodes in the target storage architecture according to the data characteristics.
In order to solve the problems in the prior art, a targeted basic storage architecture is constructed on a chain based on a block chain distributed storage system for storing data of a target user aiming at different application scenes or generation scenes of user data, wherein the basic storage architecture comprises a plurality of storage nodes which are arranged in a distributed mode; in order to further ensure the storage security of the user data, a pair of specific symmetric keys is generated for the corresponding user in combination with the user characteristics, and the uplink of the keys is performed. Meanwhile, in order to perform more detailed storage division on user data so as to extract corresponding data quickly and pertinently in the following and facilitate data classification management, a basic storage architecture is optimized based on data characteristics, and storage nodes are adjusted according to the data characteristics so as to construct a target storage architecture so as to perform more detailed storage on the user data in the following; after the target storage architecture is built, user data are encrypted by adopting the symmetric secret key, and then the corresponding encrypted data are stored into corresponding storage nodes in the target storage architecture according to the data characteristics. The invention can carry out targeted safe storage on the data, thereby greatly improving the data storage safety and the data storage rationality.
Based on the first aspect, in some embodiments of the present invention, the distributed data storage method based on the blockchain technology further includes the following steps:
the symmetric key is segmented, a random sequence is generated for the symmetric key, the random sequence is added into each segment of the symmetric key, and the key encryption data are generated and uploaded to a basic storage framework.
In order to further improve the security of data storage, the symmetric key of the user is further encrypted to obtain and upload key-encrypted data to a corresponding basic storage architecture in the block chain, and the symmetric key and the random sequence are simultaneously fed back to the user, so that the corresponding user can safely use the data later.
As shown in fig. 4, in a second aspect, an embodiment of the present invention provides a distributed data storage system based on a blockchain technique, including: the scene constructing module 100, the key generating module 200, the architecture optimizing module 300 and the encryption storage module 400, wherein:
the scene building module 100 is configured to obtain and build a basic storage architecture on the block chain according to scene information in the user data;
the key generation module 200 is configured to extract and generate a pair of symmetric keys for the user according to user characteristics in the user data, and store the symmetric keys in the basic storage architecture;
the architecture optimization module 300 is configured to extract and optimize a basic storage architecture according to data features in user data to obtain a target storage architecture;
and the encryption storage module 400 is configured to encrypt the user data by using the symmetric key to generate encrypted data, and store the encrypted data into a corresponding storage node in the target storage architecture according to the data characteristics.
In order to solve the problems in the prior art, the system constructs a targeted basic storage architecture on a chain based on a block chain distributed storage system for storing data of a target user aiming at application scenes or generation scenes of different user data through the cooperation of a plurality of modules such as a scene constructing module 100, a secret key generating module 200, an architecture optimizing module 300, an encryption storage module 400 and the like, wherein the basic storage architecture comprises a plurality of storage nodes which are arranged in a distributed manner; in order to further ensure the storage security of the user data, a pair of specific symmetric keys is generated for the corresponding user in combination with the user characteristics, and the uplink of the keys is performed. Meanwhile, in order to perform more detailed storage division on user data so as to extract corresponding data rapidly and pertinently in the subsequent process and facilitate data classification management, a basic storage architecture is optimized based on data characteristics, and storage nodes are adjusted according to the data characteristics so as to construct a target storage architecture, so that the user data can be stored more finely in the subsequent process; after the target storage architecture is built, user data are encrypted by adopting the symmetric secret key, and then the corresponding encrypted data are stored into corresponding storage nodes in the target storage architecture according to the data characteristics. The invention can carry out targeted safe storage on the data, thereby greatly improving the data storage safety and the data storage rationality.
Based on the second aspect, in some embodiments of the present invention, the scene construction module 100 includes a scene extraction unit, an architecture matching unit, and a basis construction unit, wherein:
the scene extraction unit is used for acquiring user data and extracting scene information in the user data by adopting a preset feature capture model;
the architecture matching unit is used for matching in a preset storage architecture database according to the scene information to obtain a corresponding initial storage architecture;
and the basic construction unit is used for adjusting the initial storage architecture according to the user identification in the user data so as to construct the basic storage architecture on the block chain.
In order to store user data more reasonably, a targeted distributed basic storage architecture is constructed on a chain by combining different scenes through the cooperation of various units such as a scene extraction unit, an architecture matching unit and a basic construction unit. Firstly, extracting scene information in user data by adopting a preset feature capture model, matching different scenes in a preset storage architecture database to obtain a corresponding initial storage architecture, and then constructing a targeted basic storage architecture of a user by combining different user identifications.
As shown in fig. 5, in a third aspect, an embodiment of the present application provides an electronic device, which includes a memory 101 for storing one or more programs; a processor 102. The one or more programs, when executed by the processor 102, implement the method of any of the first aspects as described above.
Also included is a communication interface 103, with the memory 101, processor 102, and communication interface 103 being electrically connected to each other, directly or indirectly, to enable transfer or interaction of data. For example, the components may be electrically connected to each other via one or more communication buses or signal lines. The memory 101 may be used to store software programs and modules, and the processor 102 executes the software programs and modules stored in the memory 101 to thereby execute various functional applications and data processing. The communication interface 103 may be used for communicating signaling or data with other node devices.
The Memory 101 may be, but is not limited to, a Random Access Memory (RAM), a Read Only Memory (ROM), a Programmable Read-Only Memory (PROM), an Erasable Read-Only Memory (EPROM), an electrically Erasable Read-Only Memory (EEPROM), and the like.
The processor 102 may be an integrated circuit chip having signal processing capabilities. The Processor 102 may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), application Specific Integrated Circuits (ASICs), field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.
In the embodiments provided in the present application, it should be understood that the disclosed method and system and method can be implemented in other ways. The method and system embodiments described above are merely illustrative and, for example, the flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of methods and systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems that perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
In a fourth aspect, embodiments of the present application provide a computer-readable storage medium, on which a computer program is stored, which, when executed by the processor 102, implements the method according to any one of the first aspect described above. The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above is only a preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes will occur to those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
It will be evident to those skilled in the art that the application is not limited to the details of the foregoing illustrative embodiments, and that the present application may be embodied in other specific forms without departing from the spirit or essential attributes thereof. The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the application being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned.
Claims (10)
1. A distributed data storage method based on a block chain technology is characterized by comprising the following steps:
acquiring and constructing a basic storage framework on a block chain according to scene information in user data;
extracting and generating a pair of symmetric keys for a user according to user characteristics in user data, and storing the symmetric keys into a basic storage architecture;
extracting and optimizing a basic storage architecture according to data characteristics in user data to obtain a target storage architecture;
and encrypting the user data by adopting the symmetric secret key to generate encrypted data, and storing the encrypted data into corresponding storage nodes in the target storage architecture according to the data characteristics.
2. The method of claim 1, wherein the method for obtaining and constructing an infrastructure on the blockchain according to the context information in the user data comprises the following steps:
acquiring user data, and extracting scene information in the user data by adopting a preset feature capture model;
matching in a preset storage architecture database according to the scene information to obtain a corresponding initial storage architecture;
and adjusting the initial storage architecture according to the user identification in the user data so as to construct a basic storage architecture on the block chain.
3. The method of claim 1, wherein the method for extracting and optimizing an underlying storage architecture according to data characteristics in user data to obtain a target storage architecture comprises the following steps:
extracting data characteristics in the user data by adopting a preset characteristic grabbing model;
and adjusting the storage nodes in the basic storage architecture according to the data characteristics, and marking each adjusted storage node to obtain the target storage architecture.
4. The method of claim 3, wherein the method for adjusting storage nodes in the infrastructure based on data characteristics comprises the following steps:
and deleting or adding storage nodes in the basic storage architecture according to the data characteristics.
5. The method of claim 3, wherein the step of marking each adjusted storage node to obtain the target storage architecture comprises the following steps:
marking each adjusted storage node according to the data characteristics to generate node marking information;
associating each adjusted storage node according to the data characteristics to generate node association information;
and constructing a target storage architecture based on the basic storage architecture according to the node marking information and the node association information.
6. The method of claim 1, further comprising the following steps:
the symmetric key is segmented, a random sequence is generated for the symmetric key, the random sequence is added into each segment of the symmetric key, and the key encryption data are generated and uploaded to a basic storage framework.
7. A distributed data storage system based on a blockchain technique, comprising: the system comprises a scene construction module, a secret key generation module, an architecture optimization module and an encryption storage module, wherein:
the scene construction module is used for acquiring and constructing a basic storage framework on the block chain according to scene information in the user data;
the key generation module is used for extracting and generating a pair of symmetric keys for the user according to the user characteristics in the user data, and storing the symmetric keys into the basic storage architecture;
the architecture optimization module is used for extracting and optimizing a basic storage architecture according to data characteristics in the user data to obtain a target storage architecture;
and the encryption storage module is used for encrypting the user data by adopting the symmetric secret key to generate encrypted data and storing the encrypted data into a corresponding storage node in the target storage architecture according to the data characteristics.
8. The distributed data storage system based on blockchain technology of claim 7, wherein the scene construction module comprises a scene extraction unit, an architecture matching unit and a base construction unit, wherein:
the scene extraction unit is used for acquiring user data and extracting scene information in the user data by adopting a preset feature capture model;
the architecture matching unit is used for matching in a preset storage architecture database according to the scene information to obtain a corresponding initial storage architecture;
and the basic construction unit is used for adjusting the initial storage architecture according to the user identification in the user data so as to construct the basic storage architecture on the block chain.
9. An electronic device, comprising:
a memory for storing one or more programs;
a processor;
the one or more programs, when executed by the processor, implement the method of any of claims 1-6.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1-6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210848349.5A CN115168494A (en) | 2022-07-19 | 2022-07-19 | Distributed data storage method and system based on block chain technology |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210848349.5A CN115168494A (en) | 2022-07-19 | 2022-07-19 | Distributed data storage method and system based on block chain technology |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115168494A true CN115168494A (en) | 2022-10-11 |
Family
ID=83495889
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210848349.5A Pending CN115168494A (en) | 2022-07-19 | 2022-07-19 | Distributed data storage method and system based on block chain technology |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115168494A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116010529A (en) * | 2023-03-08 | 2023-04-25 | 阿里云计算有限公司 | Data processing method and system |
-
2022
- 2022-07-19 CN CN202210848349.5A patent/CN115168494A/en active Pending
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116010529A (en) * | 2023-03-08 | 2023-04-25 | 阿里云计算有限公司 | Data processing method and system |
CN116010529B (en) * | 2023-03-08 | 2023-08-29 | 阿里云计算有限公司 | Data processing method and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109597822B (en) | User data storage and query method and user data processing device | |
US20200213331A1 (en) | Data service system | |
CN110110005B (en) | Block chain-based key information basic data asset management and control method | |
CN104021132A (en) | Method and system for verification of consistency of backup data of host database and backup database | |
Hamza et al. | An efficient cryptosystem for video surveillance in the internet of things environment | |
CN108764902B (en) | Method, node and blockchain system for storing data | |
CN108924109B (en) | Data transmission method and device and processing equipment | |
CN113360953B (en) | IPFS and blockchain-based file distributed storage management method and system | |
CN108377319B (en) | Picture transmission method and device | |
CN115884110B (en) | Method and system for judging short message verification code | |
WO2022082891A1 (en) | Big data acquisition method and system, and computer device and storage medium thereof | |
CN115168494A (en) | Distributed data storage method and system based on block chain technology | |
CN110399485B (en) | Data tracing method and system based on word vector and machine learning | |
CN110555129B (en) | Space image data interaction method and device based on alliance chain | |
CN115037556A (en) | Authorized sharing method for encrypted data in smart city system | |
CN115982115A (en) | Data sharing method | |
CN113902135A (en) | Sample data volume joint expansion method, device, equipment, system and storage medium | |
CN106254341B (en) | For the data fingerprint extracting method and system of centralized electronic data safety system | |
CN116910820A (en) | Data report processing method, device, computer equipment and storage medium | |
CN116055067A (en) | Weak password detection method, device, electronic equipment and medium | |
CN113923178A (en) | Method and system for storing and extracting instant messaging and group data files | |
CN114422230B (en) | Information transmission system based on data encryption | |
CN114500580A (en) | Distributed storage system and method based on block chain | |
CN113779610A (en) | Computer big data storage method and device | |
CN111708795B (en) | Object identification generation method, object identification updating device, computer equipment and medium |
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 |