CN109800599A - A kind of block chain distributed storage method and system - Google Patents
A kind of block chain distributed storage method and system Download PDFInfo
- Publication number
- CN109800599A CN109800599A CN201910048873.2A CN201910048873A CN109800599A CN 109800599 A CN109800599 A CN 109800599A CN 201910048873 A CN201910048873 A CN 201910048873A CN 109800599 A CN109800599 A CN 109800599A
- Authority
- CN
- China
- Prior art keywords
- storage
- storage section
- block chain
- period
- time
- 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
- 238000003860 storage Methods 0.000 title claims abstract description 124
- 238000000034 method Methods 0.000 title claims abstract description 25
- 238000013316 zoning Methods 0.000 claims description 15
- 230000005055 memory storage Effects 0.000 abstract description 3
- 238000013500 data storage Methods 0.000 description 2
- 230000014759 maintenance of location Effects 0.000 description 2
- 230000004888 barrier function Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000017525 heat dissipation Effects 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
Abstract
The present invention relates to a kind of block chain distributed storage method and system, its implementation are as follows: dividing time into continuous multiple periods by a setting time length, the sequence in the memory space of database according to the period carries out dividing multiple storage sections;And the time point according to data file deposit database is standard, it includes storage section corresponding to the period at the time point that data file, which is divided into,;Each data file in the storage section stored is split into multiple data packets, obtained all data packets progress random combine is obtained into multiple integral data packets;By multiple integral data packets, different blocks are stored on block chain, and integral data packet is deleted while storage is completed, and the private key of return are stored in the storage section at the original place of data packet;It can not only ensure that the strong data file of time continuity carries out the distributed storage of highly effective and safe, and memory storage capacity requirement itself is greatly reduced.
Description
Technical field
The present invention relates to technical field of data storage, more specifically to a kind of block chain distributed storage method and
System.
Background technique
To the strong real data files of time continuities such as important recording, important chat record, important video, current list
The pure data storage method being locally stored is difficult the safety to ensure its data.
Summary of the invention
The technical problem to be solved in the present invention is that in view of the above drawbacks of the prior art, providing a kind of block chain distribution
Formula storage method;
Additionally provide a kind of block chain distributed memory system.
The technical solution adopted by the present invention to solve the technical problems is:
A kind of block chain distributed storage method is constructed, its implementation is as follows:
Step 1: continuous multiple periods are divided time by a setting time length, in the memory space of database
The interior sequence according to the period carries out dividing multiple storage sections;
Step 2: the time point according to data file deposit database is standard, the data file is divided into includes
The storage section corresponding to the period at the time point;
Step 3: each data file in the storage section stored is split into multiple data packets,
Obtained all data packets progress random combine is obtained into multiple integral data packets;
Step 4: multiple integral data packet different blocks on block chain are stored, while storage is completed
The integral data packet is deleted, the private key of return is stored in the storage section at the original place of data packet.
Block chain distributed storage method of the present invention, wherein the storage section is motion interval;Described
In two steps, enough memory spaces are assigned to the motion interval, all data files can deposit during this period of time to ensure
Enter;In the 4th step, after the private key of return is stored in the storage section, discharge in the storage section except storage
All remaining spaces other than the space of the private key.
Block chain distributed storage method of the present invention, wherein in the first step, in the memory space of database
In multiple storage sections that the interior sequence according to the period is divided, including the storage section corresponding period wraps
It is more than current time containing the current time period corresponding with storage section described at least one.
Block chain distributed storage method of the present invention, wherein the database to a storage section into
While the operation of row release acoustic space, the new storage section is generated according to the time period.
Block chain distributed storage method of the present invention, wherein the memory space in the storage section is set solid
Fixed capability value, when carrying out the newly-generated storage-to-storage operation database residual space be less than the capability value, then to
Administrator issues insufficient space alarm.
Block chain distributed storage method of the present invention, wherein when the period includes current time
Between when putting, the storage section keeps receiving and storing data file state, until the time point of current time exceeds the time
Duan Hou carries out the third step and the FOUR EASY STEPS to the storage section.
A kind of block chain distributed memory system, according to above-mentioned block chain distributed storage method, wherein including block
Platform chain, database and processing end;
The processing end includes time quantum, receives storage unit, zoning unit, data processing unit and network unit;
The time quantum for setting time segment length and provides current time;
The zoning unit carries out dividing multiple storages for the sequence in the memory space of database according to the period
Section;
The reception storage unit, for receiving external data file, and by the storage time of data file with it is described
Period is compared, and stores the data file into period corresponding memory space after comparing successfully;
The data processing unit, for each data file in the storage section stored to be split
At multiple data packets, obtained all data packets progress random combine is obtained into multiple integral data packets;
The network unit is stored for storing multiple integral data packet different blocks on block chain
The integral data packet is deleted while completion, the private key of return is stored in the storage section at the original place of data packet.
Block chain distributed memory system of the present invention, wherein the zoning unit is also used in the network list
After the private key of return is stored in the storage section by member, discharges and fall in the storage section except the space for storing the private key
All remaining spaces in addition.
Block chain distributed memory system of the present invention, wherein multiple storages that the zoning unit divides
In section, including the storage section corresponding period includes current time and at least one described storage section
The corresponding period is more than current time.
Block chain distributed memory system of the present invention, wherein the storage section of the zoning unit one into
While the operation of row release acoustic space, the new storage section is generated according to the time period.
The beneficial effects of the present invention are: it can not only ensure that the strong data file of time continuity carries out highly effective and safe
Distributed storage, and memory storage capacity requirement itself is greatly reduced.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, below in conjunction with attached drawing and reality
Applying example, the invention will be further described, and the accompanying drawings in the following description is only section Example of the invention, for this field
For those of ordinary skill, without creative efforts, it can also be obtained according to these attached drawings other accompanying drawings:
Fig. 1 is the block chain distributed storage method flow chart of present pre-ferred embodiments;
Fig. 2 is the block chain distributed memory system functional block diagram of present pre-ferred embodiments.
Specific embodiment
In order to keep the purposes, technical schemes and advantages of the embodiment of the present invention clearer, implement below in conjunction with the present invention
Technical solution in example carries out clear, complete description, it is clear that and described embodiment is section Example of the invention, and
It is not all of embodiment.Based on the embodiment of the present invention, those of ordinary skill in the art are not before making the creative labor
Every other embodiment obtained is put, protection scope of the present invention is belonged to.
The block chain distributed storage method of present pre-ferred embodiments, as shown in Figure 1, its implementation is as follows:
S01: dividing time into continuous multiple periods by a setting time length, in the memory space of database according to
It carries out dividing multiple storage sections according to the sequence of period;
S02: the time point according to data file deposit database is standard, and it includes the time point that data file, which is divided into,
Period corresponding to storage section;
S03: each data file in the storage section stored is split into multiple data packets, by what is obtained
All data packets carry out random combine and obtain multiple integral data packets;
S04: by multiple integral data packets, different blocks are stored on block chain, and integration is deleted while storage is completed
The private key of return is stored in the storage section at the original place of data packet by data packet;
It can not only ensure that the strong data file of time continuity carries out the distributed storage of highly effective and safe, and to memory
Storage capacity requirement itself is greatly reduced.
Preferably, storage section is motion interval;In second step, enough memory spaces are assigned to motion interval, to protect
All data files can be stored in barrier during this period of time;In the 4th step, behind the private key deposit storage section of return, release
Fall all remaining spaces stored in section in addition to the space of storage private key;The reliability for ensureing storage, is greatly reduced simultaneously
Storage occupies whole volume.
Preferably, in the first step, what the sequence in the memory space of database according to the period was divided multiple is deposited
In between storage area, including a storage section corresponding period includes that current time is corresponding at least one storage section
Period is more than current time;To the load of capacity when subregion.
Preferably, it while database carries out the operation of release acoustic space to a storage section, generates according to the time period
One new storage section;Ensure storage continuity.
Preferably, the fixed capability value of the memory space setting to storage section, when the newly-generated storage-to-storage operation of progress
When database residual space be less than the capability value, then to administrator issue insufficient space alarm;It is good to be automatically reminded to effect.
Preferably, when the period including the time point of current time, storage section keeps receiving and storing data text
Part state, until the time point of current time beyond after the period, i.e., carries out third step to storage section and the 4th step is grasped
Make;Data processing frequency is reduced, batch type processing mitigates overall operation load and heat dissipation load.
A kind of block chain distributed memory system, according to above-mentioned block chain distributed storage method, as shown in Fig. 2, packet
Include block platform chain 1, database 2 and processing end 3;
Processing end 3 includes time quantum 30, receives storage unit 31, zoning unit 32, data processing unit 33 and network
Unit 34;
Time quantum 30 for setting time segment length and provides current time;
Zoning unit 32 carries out dividing multiple memory blocks for the sequence in the memory space of database according to the period
Between;
Storage unit 31 is received, for receiving external data file, and by the storage time of data file and period
It is compared, stores data file into period corresponding memory space after comparing successfully;
Data processing unit 33, each data file is split into multiple in the storage section for will store
Obtained all data packets progress random combine is obtained multiple integral data packets by data packet;
Network unit 34 stores completion for different blocks to store on block chain by multiple integral data packets
Integral data packet is deleted simultaneously, the private key of return is stored in the storage section at the original place of data packet.
Preferably, zoning unit is also used to after network unit is by the private key deposit storage section of return, discharges memory block
In fall except storage private key space in addition to all remaining spaces.
Preferably, in multiple storage sections that zoning unit divides, including a storage section corresponding period includes
Having the current time period corresponding at least one storage section is more than current time.
Preferably, it while zoning unit one storage section carries out the operation of release acoustic space, generates according to the time period
One new storage section.
It should be understood that for those of ordinary skills, it can be modified or changed according to the above description,
And all these modifications and variations should all belong to the protection domain of appended claims of the present invention.
Claims (10)
1. a kind of block chain distributed storage method, which is characterized in that implementation method is as follows:
Step 1: divide time into continuous multiple periods by a setting time length, in the memory space of database according to
It carries out dividing multiple storage sections according to the sequence of period;
Step 2: the time point according to data file deposit database is standard, the data file is divided into when including this
Between the storage section corresponding to period for putting;
Step 3: each data file in the storage section stored is split into multiple data packets, will
To all data packets carry out random combine obtain multiple integral data packets;
Step 4: multiple integral data packet different blocks on block chain are stored, storage is deleted while completion
The private key of return is stored in the storage section at the original place of data packet by the integral data packet.
2. block chain distributed storage method according to claim 1, which is characterized in that the storage section is dynamic area
Between;In the second step, enough memory spaces are assigned to the motion interval, to ensure all data texts during this period of time
Part can be stored in;In the 4th step, after the private key of return is stored in the storage section, the memory block is discharged
Interior all remaining spaces in addition to the space for storing the private key.
3. block chain distributed storage method according to claim 2, which is characterized in that in the first step, in data
Sequence in the memory space in library according to the period divide in multiple storage sections, including a storage section is corresponding
Period include current time the period corresponding with storage section described at least one is more than current time.
4. block chain distributed storage method according to claim 2, which is characterized in that the database is to described in one
While storage section carries out the operation of release acoustic space, the new storage section is generated according to the time period.
5. block chain distributed storage method according to claim 4, which is characterized in that the storage to the storage section
The fixed capability value of space setting, when carrying out the newly-generated storage-to-storage operation, the database residual space is less than the appearance
Magnitude then issues insufficient space alarm to administrator.
6. -5 any block chain distributed storage method according to claim 1, which is characterized in that wrapped in the period
When time point containing current time, the storage section keeps receiving and storing data file state, until current time
After time point exceeds the period, i.e., the third step and the FOUR EASY STEPS are carried out to the storage section.
7. a kind of block chain distributed memory system, -6 any block chain distributed storage method according to claim 1,
It is characterised in that it includes block platform chain, database and processing end;
The processing end includes time quantum, receives storage unit, zoning unit, data processing unit and network unit;
The time quantum for setting time segment length and provides current time;
The zoning unit carries out dividing multiple memory blocks for the sequence in the memory space of database according to the period
Between;
The reception storage unit, for receiving external data file, and by the storage time of data file and the time
Section is compared, and stores the data file into period corresponding memory space after comparing successfully;
The data processing unit is more for each data file in the storage section stored to be split into
Obtained all data packets progress random combine is obtained multiple integral data packets by a data packet;
The network unit, for storing multiple integral data packet different blocks on block chain, storage is completed
While delete the integral data packet, the private key of return is stored in data packet it is original where storage section in.
8. block chain distributed memory system according to claim 7, which is characterized in that the zoning unit is also used to
After the private key of return is stored in the storage section by the network unit, discharge in the storage section to fall except described in storage
All remaining spaces other than the space of private key.
9. block chain distributed memory system according to claim 7, which is characterized in that the zoning unit divides more
In a storage section, including the storage section corresponding period include current time and at least one described in deposit
The corresponding period is more than current time between storage area.
10. block chain distributed memory system according to claim 8, which is characterized in that one institute of the zoning unit
While stating storage section and carry out the operation of release acoustic space, the new storage section is generated according to the time period.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910048873.2A CN109800599A (en) | 2019-01-18 | 2019-01-18 | A kind of block chain distributed storage method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910048873.2A CN109800599A (en) | 2019-01-18 | 2019-01-18 | A kind of block chain distributed storage method and system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109800599A true CN109800599A (en) | 2019-05-24 |
Family
ID=66559654
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910048873.2A Pending CN109800599A (en) | 2019-01-18 | 2019-01-18 | A kind of block chain distributed storage method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109800599A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110287716A (en) * | 2019-06-25 | 2019-09-27 | 北京邮电大学 | Date storage method and device |
CN112149164A (en) * | 2020-09-22 | 2020-12-29 | 张立旭 | Data security storage method and system under distributed environment |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105468642A (en) * | 2014-09-09 | 2016-04-06 | 杭州海康威视数字技术股份有限公司 | Data storage method and apparatus |
CN105868071A (en) * | 2016-03-23 | 2016-08-17 | 乐视网信息技术(北京)股份有限公司 | Monitoring data processing method and device |
US20170264428A1 (en) * | 2016-03-08 | 2017-09-14 | Manifold Technology, Inc. | Data storage system with blockchain technology |
CN107623569A (en) * | 2017-09-30 | 2018-01-23 | 矩阵元技术(深圳)有限公司 | Block chain key escrow and restoration methods, device based on Secret sharing techniques |
CN108519862A (en) * | 2018-03-30 | 2018-09-11 | 百度在线网络技术(北京)有限公司 | Storage method, device, system and the storage medium of block catenary system |
CN108664223A (en) * | 2018-05-18 | 2018-10-16 | 百度在线网络技术(北京)有限公司 | A kind of distributed storage method, device, computer equipment and storage medium |
CN109117087A (en) * | 2018-07-19 | 2019-01-01 | 北京蜂盒科技有限公司 | Acquire method, apparatus, storage medium and the electronic equipment of monitoring data |
-
2019
- 2019-01-18 CN CN201910048873.2A patent/CN109800599A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105468642A (en) * | 2014-09-09 | 2016-04-06 | 杭州海康威视数字技术股份有限公司 | Data storage method and apparatus |
US20170264428A1 (en) * | 2016-03-08 | 2017-09-14 | Manifold Technology, Inc. | Data storage system with blockchain technology |
CN105868071A (en) * | 2016-03-23 | 2016-08-17 | 乐视网信息技术(北京)股份有限公司 | Monitoring data processing method and device |
CN107623569A (en) * | 2017-09-30 | 2018-01-23 | 矩阵元技术(深圳)有限公司 | Block chain key escrow and restoration methods, device based on Secret sharing techniques |
CN108519862A (en) * | 2018-03-30 | 2018-09-11 | 百度在线网络技术(北京)有限公司 | Storage method, device, system and the storage medium of block catenary system |
CN108664223A (en) * | 2018-05-18 | 2018-10-16 | 百度在线网络技术(北京)有限公司 | A kind of distributed storage method, device, computer equipment and storage medium |
CN109117087A (en) * | 2018-07-19 | 2019-01-01 | 北京蜂盒科技有限公司 | Acquire method, apparatus, storage medium and the electronic equipment of monitoring data |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110287716A (en) * | 2019-06-25 | 2019-09-27 | 北京邮电大学 | Date storage method and device |
CN110287716B (en) * | 2019-06-25 | 2021-09-14 | 北京邮电大学 | Data storage method and device |
CN112149164A (en) * | 2020-09-22 | 2020-12-29 | 张立旭 | Data security storage method and system under distributed environment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105100146B (en) | Date storage method, apparatus and system | |
CN105589812B (en) | Disk fragments method for sorting, device and host | |
CN109800599A (en) | A kind of block chain distributed storage method and system | |
CN107104992A (en) | The storage resource distribution method and device of a kind of video cloud storage | |
US7792790B2 (en) | System and method of synchronizing data between a server and a client | |
CN109756566B (en) | Block chain based data storage method, related equipment and storage medium | |
CN106095572A (en) | The Dispatching System of a kind of big data process and method | |
CN110389940B (en) | Data equalization method and device and computer readable storage medium | |
CN107888428A (en) | A kind of bandwidth adjusting method, device, equipment and readable storage medium storing program for executing | |
CN105641934B (en) | The method and device that player role switches in real time in a kind of same account | |
Szolnoki et al. | Decelerated invasion and waning-moon patterns in public goods games with delayed distribution | |
CN102638402B (en) | Method and device for filling data in streaming media double-buffering technology | |
CN107623643A (en) | A kind of data packet forwarding method and device | |
CN106611397A (en) | Logistics data processing method and device | |
CN109697140A (en) | Data back up method and device, data reconstruction method and device, storage medium | |
CN103049508B (en) | A kind of data processing method and device | |
CN107295387A (en) | Barrage display methods and device | |
CN108664351A (en) | A kind of data storage, reconstruct, method for cleaning, device and data processing system | |
CN103810038B (en) | Virtual machine storage file moving method and its device in a kind of HA clusters | |
CN103685336B (en) | overload protection method, device and server | |
CN107506242A (en) | A kind of quota application method and system | |
CN105763468B (en) | A kind of transmission method and device of bgp update message | |
CN107590030A (en) | A kind of method, apparatus and system of data recording on tape backup | |
US8527551B2 (en) | Processing of splits of control areas and control intervals | |
CN100502297C (en) | Device and method for recombining Internet protocol (IP) packet |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190524 |