CN109302495A - A kind of date storage method and device - Google Patents
A kind of date storage method and device Download PDFInfo
- Publication number
- CN109302495A CN109302495A CN201811383389.7A CN201811383389A CN109302495A CN 109302495 A CN109302495 A CN 109302495A CN 201811383389 A CN201811383389 A CN 201811383389A CN 109302495 A CN109302495 A CN 109302495A
- Authority
- CN
- China
- Prior art keywords
- data
- node
- stored
- block
- mentioned
- 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
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1097—Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/04—Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
- H04L63/0428—Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
- H04L63/0442—Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload wherein the sending and receiving network entities apply asymmetric encryption, i.e. different keys for encryption and decryption
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/32—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
- H04L9/3247—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials involving digital signatures
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L2209/00—Additional information or applications relating to cryptographic mechanisms or cryptographic arrangements for secret or secure communication H04L9/00
- H04L2209/72—Signcrypting, i.e. digital signing and encrypting simultaneously
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Hardware Design (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Storage Device Security (AREA)
Abstract
The embodiment of the invention provides a kind of date storage method and devices, this method according to the corresponding feedback information of data storage request for broadcast that sends of received second node, the first memory node is determined from second node, data to be stored is encrypted using preset public key, and encrypted data to be stored is encoded, obtain coding result;Coding result is divided into data block, and the digital signature generated using the corresponding private key of public key is added to each data block;The memory node of data block after determining each addition digital signature, data block is sent in identified memory node and is stored.It can be improved the safety of data storage using scheme provided in an embodiment of the present invention.
Description
Technical field
The present invention relates to technical field of data storage, more particularly to a kind of date storage method and device.
Background technique
With the continuous development of Internet technology, the communication technology and data storage technology, user needs the data stored
Also more and more, safety and privacy to data are also increasingly paid attention to.In existing data storage method, cloud storage
And being locally stored is most important two kinds of data storage methods.
Wherein, the data storage method of cloud storage specifically: data to be stored is uploaded to some enterprises and provided by user
Large database in, such as: Baidu's cloud disk and 360 cloud disks etc. store above-mentioned file to be stored by these large databases.But
It is that the data storage method that this cloud stores is also risky.Firstly, the either centralized data base that these databases use,
Or, there is " centralization " in distributed data base, once which results in the so-called "center" paralysis of database, then
The content stored in the database will be no longer safe.As long as, can be to database secondly, possess the administration authority of database
Middle stored data are browsed and are distorted, and will not even be found by user.
It can be seen that the data storage method safety of existing cloud storage is lower.
Summary of the invention
The embodiment of the present invention is designed to provide a kind of date storage method and device, to improve the safety of data storage
Property.Specific technical solution is as follows:
A kind of date storage method is applied to first node, the first node are as follows: any section in block chain network
Point, which comprises
Broadcast is directed to the data storage request of data to be stored;
Receive the feedback information that second node is sent, the second node are as follows: receive in the block chain network described
It data storage request and is determined to store the node of the data to be stored according to the data storage request;
According to the received feedback information of institute, the first memory node is determined from second node;
The data to be stored is encrypted using preset public key, and encrypted data to be stored is compiled
Code, obtains coding result;
The coding result is divided into data block, and the digital signature generated using the corresponding private key of the public key is added
Add to each data block;
In identified first memory node, determination is for the data block after storing each addition digital signature
Memory node, and the data block after each addition digital signature is sent in corresponding memory node and is stored.
It further, include: the consumption for storing the data to be stored in the feedback information;
It is described according to the received feedback information of institute, the first memory node is determined from second node, comprising:
The second node for determining that consumption is lower than preset threshold in the transmitted feedback information is the first memory node;
The data block by after each addition digital signature, which is sent in corresponding memory node, to be stored, comprising:
Include in the feedback information sent with the corresponding memory node of data block after each addition digital signature
Data block after each addition digital signature is sent in corresponding memory node and stores by consumption.
Further, the method also includes:
Broadcast is requested for the data record of the data to be recycled;
Receive the data block of the data to be recycled of the second memory node transmission, wherein second memory node are as follows:
Data record request is received in the block chain network and determined according to data record request be stored with it is described to
The node of the data block of data collection;
Judge whether the number of the data block received is greater than or equal to preset quantity;
If it has, then the digital signature for including in the data block that removal receives, and to the removal digital signature
Data block afterwards is decoded, and obtains decoding result;
The decoding result is decrypted using the private key, obtains the data to be recycled.
Further, the method also includes:
Broadcasting network exits request;
The block chain network is exited, and deletes all data being locally stored.
A kind of date storage method is applied to third node, the third node are as follows: any section in block chain network
Point, which comprises
Receive the data storage request for data to be stored of the first node broadcast in the block chain network;
According to the data storage request received, it is determined whether the data to be stored can be stored;
If it is determined that the data to be stored can be stored, then feedback information is sent to the first node;
Data block after receiving the addition digital signature that the first node is sent, and the data block received is stored,
In, received data block are as follows: the data block that the first node divides coding result, the coding result are as follows:
The knot for encrypting and being encoded to encrypted data to be stored is carried out to the data to be stored using preset public key
Fruit, the digital signature are as follows: the signature generated using the corresponding private key of the public key.
Further, the method also includes:
The data record for data to be recycled that the fourth node in the block chain network is sent is received to request;
The local data block for whether being stored with the data to be recycled is judged according to data record request;
If storage sends the data block for the data to be recycled being locally stored to the fourth node.
Further, it is described sent to the fourth node data block of the data to be recycled that is locally stored it
Afterwards, further includes:
Delete the data block for the data to be recycled being locally stored.
Further, the method also includes:
Broadcasting network exits request;
The block chain network is exited, and deletes all data being locally stored.
A kind of data storage device, described device include:
First broadcast module, for broadcasting the data storage request for being directed to data to be stored;
Information receiving module, for receiving the feedback information of second node transmission, the second node are as follows: the block chain
The data storage request is received in network and is determined to store the data to be stored according to the data storage request
Node;
First memory node determining module, for determining that first deposits from second node according to the received feedback information of institute
Store up node;
Coding result obtains module, for being encrypted using preset public key to the data to be stored, and to encryption
Data to be stored afterwards is encoded, and coding result is obtained;
Digital signature adding module, for the coding result to be divided into data block, and will be corresponding using the public key
Private key generate digital signature be added to each data block;
First sending module, in identified first memory node, determining for storing each addition number
The memory node of data block after word signature, and the data block after each addition digital signature is sent to corresponding storage
It is stored in node.
A kind of data storage device is applied to third node, the third node are as follows: any section in block chain network
Point, which comprises
Request receiving module, for receive the first node in block chain network broadcast for data to be stored
Data storage request;
Determining module is stored, for according to the data storage request received, it is determined whether can store described wait store
Data;If it is determined that the data to be stored can be stored, then Feedback information sending module is triggered;
The Feedback information sending module, for sending feedback information to the first node;
Data block memory module, the data block after addition digital signature for receiving the first node transmission, and deposit
Store up the data block received, wherein received data block are as follows: the data that the first node divides coding result
Block, the coding result are as follows: encryption is carried out to the data to be stored using preset public key and to encrypted number to be stored
According to being encoded as a result, the digital signature are as follows: the signature generated using the corresponding private key of the public key.
A kind of date storage method and device provided in an embodiment of the present invention, can be by broadcasting for data to be stored
Data storage request receives the feedback information that second node is sent, and according to the received feedback information of institute, determines from second node
First memory node signs to data to be stored using preset public key, and compiles to the data to be stored after signature
Code, obtains coding result;Coding result is divided into data block, and the digital signature generated using the corresponding private key of public key is added
Add to each data block;According to the feedback information that the first memory node is sent, determine for storing the above-mentioned number label of each addition
Above-mentioned data block is sent in identified memory node and stores by the memory node of the data block after name.Compared with the prior art
In cloud data storage method, since status is identical in data processing for each node in block chain network, so
Storage mode provided in an embodiment of the present invention storing data no longer in a manner of "center", and block chain network itself has anti-usurp
Change characteristic, therefore data storage method safety provided in an embodiment of the present invention is higher.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described.
Fig. 1 is the flow diagram of the first date storage method provided in an embodiment of the present invention;
Fig. 2 is the flow diagram of second of date storage method provided in an embodiment of the present invention;
Fig. 3 is the structural schematic diagram of the first data storage device provided in an embodiment of the present invention;
Fig. 4 is the structural schematic diagram of second of data storage device provided in an embodiment of the present invention;
Fig. 5 is the structural schematic diagram of a kind of electronic equipment provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of embodiments of the present application, instead of all the embodiments.It is based on
Embodiment in the application, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall in the protection scope of this application.
A kind of date storage method provided in an embodiment of the present invention be applied to the node in block chain network, below it is right
The present embodiments relate to block chain network be described below, specifically:
The scale of block chain network, it is, the quantity of block chain network interior joint, it can be according to the business scale of user
Or the size of storing data is needed to determine.Each node in block chain network includes the card being made of asymmetric encryption techniques
Book, the certificate include node identification, public and private key, node CA signature etc..Each node is logically interconnected to form netted
Topological structure, in actual physics connection, each node passes through multilink and is connected with other nodes.
Node can record the network node that the node is most recently successfully connection, after restarting, the node can rapidly with
Previous peer node re-establishes network connection.When node lose have connection when, which can attempt to find and connect
New node, after the node establishes connection with one or more nodes, which sends out the message comprising own IP address
The node adjacent node is given, this message is successively transmitted to the adjacent segments of each node in above-mentioned adjacent node by adjacent node again
Point guarantees that the connection in block chain network between each node is more stable to guarantee that nodal information is received by multiple nodes.Newly
The node (referred to as " new node ") of access can send the message for obtaining address to the adjacent node of the new node, it is desirable that the new section
The adjacent node of point returns to the IP address list of peer node known to this adjacent node.In node starting, can refer to node
A fixed positive live-vertex IP, if not provided, client also maintains the list for being used to characterize the node run steadily in the long term,
Node in list is known as seed node, thus can quickly find other nodes in network by seed node.
The present embodiments relate to block chain network in the node computing capability and storage capacity that need to have certain,
Simultaneously in order to guarantee the block chain network of building is able to carry out the operation of storing data, in constructed block chain network node
Quantity needs are determined according to user demand and data volume.If a data to be stored needs to be stored in block chain network,
The data to be stored is encoded using EC, and the data after coding are divided into 12 parts of data blocks to be stored, and separately increases by 4 parts of check numbers
According to data block, then to store the data to be stored, then the block chain network interior joint quantity must be greater than 16.
Based on the above-mentioned description to block chain network, below to a kind of date storage method provided in an embodiment of the present invention into
Row detailed description, specifically:
Referring to Fig. 1, Fig. 1 is a kind of flow chart of date storage method provided in an embodiment of the present invention, is applied to first segment
Point, above-mentioned first node are as follows: any node in block chain network, the above method include the following steps:
S101, broadcast are directed to the data storage request of data to be stored.
The status equity of each node, be free to publication data storage request in block chain network.When block link network
When first node in network has data to be stored to need to store, the data of the data to be stored can be broadcasted in whole district's block chain network
Storage request.
Data storage request may include size and the data storage time limit of data to be stored.Data storage request can also be with
Be request feedback can storing data size request;It can also be that request feedback can storing data size and can the storing data time limit
Request.
The above-mentioned data storage time limit can be understood as other in block chain network in addition to first node of data to be stored
The maximum duration stored in node, the maximum duration can be one day, can also be with 1 year, it might even be possible to be indefinite duration.
Above-mentioned request feedback can storing data size request it is to be understood that removing first node in request block chain network
Its own data-storable size of other outer node feeding backs.
For example, the size in data storage request including storing data is 10M, and data are limited to 10 years when storing.
S102 receives the feedback information that second node is sent, above-mentioned second node are as follows: receive in above-mentioned block chain network
It above-mentioned data storage request and is determined to store the node of above-mentioned data to be stored according to above-mentioned data storage request.
First node is in block chain network after broadcast data storage request, its in block chain network in addition to first node
His node may receive above-mentioned data storage request, but be influenced by factors such as network factors, joint behaviors, Ge Geqi
The time that his node receives above-mentioned data storage request, there may be differences.
After other above-mentioned each nodes receive data storage request, feedback information can be sent to above-mentioned first node, with
So that first node knows that other nodes have received above-mentioned data storage request.
In view of the foregoing, in one embodiment of the present of invention, received feedback information be can be default in this step
The feedback information that second node is sent is received in time, above-mentioned preset time can be a hour, or one day.This hair
Bright embodiment does not limit this.
When data storage request request feedback can storing data size when, above-mentioned feedback information may include: that can store number
According to amount of capacity.
When data storage request request feedback storing data size and can prescribe a time limit when storing data, above-mentioned feedback information packet
Include can storing data amount of capacity and can the storing data time limit.
When data storage request request feedback can storing data size and data store when prescribe a time limit, above-mentioned feedback information includes
Store above-mentioned data to be stored consumption and can storing data amount of capacity.
When the size of data storage request request data to be stored, the size of above-mentioned data to be stored includes data storage
Time limit, above-mentioned feedback information include the consumption for storing above-mentioned data to be stored.
It is to be understood that storing compensation required by above-mentioned data to be stored, these compensation can be integral for above-mentioned consumption,
It is also possible to the commodity of counter value, is also possible to money.
Above-mentioned consumption is also understood that are as follows: stores the price that each byte number needs in above-mentioned data to be stored.
Above-mentioned consumption is also understood that are as follows: the requirement of the network bandwidth of data to be stored is sent to first node.
S103 determines the first memory node according to the received feedback information of institute from second node.
When in received above-mentioned feedback information include can storing data amount of capacity when, by can storing data capacity it is big
The small second node for being higher than default size is determined as the first memory node.
When in received above-mentioned feedback information include can storing data amount of capacity and can prescribe a time limit when storing data, can
The second node that the storing data time limit is higher than the default time limit is determined as both candidate nodes, by can storing data amount of capacity be higher than it is pre-
If the both candidate nodes of size are determined as the first memory node.
S104 encrypts above-mentioned data to be stored using preset public key, and to encrypted data to be stored into
Row coding, obtains coding result.
Wherein, above-mentioned coding result can by using EC (Erasure Code, error correcting code) to encrypted wait deposit
Storage data are encoded to obtain.
Above-mentioned EC is a kind of forward error correction technology, is mainly used in avoiding the loss of packet, block chain in network transmission
The reliability of storage can be improved using EC coding for network.For more copy replications, correcting and eleting codes can be with smaller number
Higher data reliability is obtained according to redundancy.
N parts of initial data can be increased m parts of verification data, and can pass through any n parts in n+m parts by EC coding techniques
Data restore initial data.That is, remaining number still can be passed through if being arbitrarily less than or equal to m parts of data failure
According to restoring initial data.
Above-mentioned coding result is divided into data block, and the number that will be generated using the corresponding private key of above-mentioned public key by S105
Signature is added to each data block.
Digital signature is a kind of similar common physical signature write on paper, but has used the skill in public key encryption field
Art realization, the method for identifying digital information.That is, digital signature be exactly information sender generate other users without
The number of segment word string that method is forged, this number of segment word string are also the effective card that information authenticity is sent to the sender of information simultaneously
It is bright.
Based on the above-mentioned description to EC coding techniques, if coding result is by carrying out EC to encrypted data to be stored
What coding obtained, then coding result can be divided into 12 parts of data blocks, the another data block for increasing by 4 parts of verification data then utilizes
Any 12 parts of data blocks just can revert to original data to be stored in 16 parts of data blocks.
S106, in identified first memory node, determination is for the number after storing each above-mentioned digital signature of addition
According to the memory node of block, and the data block after each above-mentioned digital signature of addition is sent in corresponding memory node and is stored.
After determining the first memory node, it is also necessary to distributed in each addition correspondingly for every one first memory node
The distribution of data block after stating digital signature, above-mentioned data block can be gone point according to the feedback information that the first memory node is sent
Match.
For example, when feedback information include can storing data size, determine the first memory node include: node A,
Node B and node C, the size of data block are respectively 10M, 20M and 30M;The feedback information of node A is the data that can store 20M,
The feedback information of node B is the data that can store 50M, and the feedback information of node C is the data that can store 15M.Then according to node A
The data block of 10M is then distributed to node C by the feedback information of~C, and the data block of 20M is distributed to node A, by the data of 30M
Block distributes to node B.
In one implementation, when including: the consumption for storing above-mentioned data to be stored in above-mentioned feedback information;S102 can
To include the following steps step A:
Step A, the second node for determining that consumption is lower than preset threshold in transmitted above-mentioned feedback information is the first storage section
Point;
When received above-mentioned feedback information includes consumption, the second node by consumption lower than preset threshold is determined as first
Memory node.
The size of above-mentioned data block is equal, and the consumption that feedback information includes is smaller, is more saved and is stored above-mentioned number to be stored
According to cost therefore consumption lower than the second node of preset threshold will be determined as the first memory node in feedback information.
May include step B based on above-mentioned steps A, S106:
Step B, in the feedback information of the corresponding memory node transmission of data block after each above-mentioned digital signature of addition
Including consumption, the data block after the above-mentioned digital signature of each addition is sent in corresponding memory node and is stored.
After determining the first memory node, the consumption for including in the feedback information that every one first memory node is sent adds with each
In addition stating the data block after digital signature, there are one-to-one relationships, according to above-mentioned one-to-one relationship, by each addition
Data block after above-mentioned digital signature is sent in corresponding memory node and stores.
As it can be seen that above-mentioned implementation determines the first memory node, and according to the consumption height in feedback information with data block
The consumption in feedback information that corresponding above-mentioned memory node is sent, is sent to the corresponding memory node of above-mentioned consumption for data block
Middle storage can save the cost of storage data to be stored.
In another implementation, when include: in above-mentioned feedback information store above-mentioned data to be stored consumption and can
When the size of storing data, S102 may include steps of step C~step D:
Step C is ranked up to consuming in transmitted above-mentioned feedback information;
It is above-mentioned to sort from high to low to the sequence consumed in feedback information, it is also possible to sort from low to high.This hair
Bright embodiment does not limit this.
Step D, in the feedback information that the low both candidate nodes of the post consumption that sorts are sent can storing data size summation it is low
It is determined as the first memory node in the both candidate nodes of preset value;
Above-mentioned preset value is the size of data to be stored.It, can storing data by heel row when sequence is to sort from high to low
Size summation be determined as the first memory node lower than the both candidate nodes of preset value.When sequence is to sort from low to high, will before
Row can the size summation of storing data be determined as the first memory node lower than the both candidate nodes of preset value.
May include step E based on above-mentioned steps D, S106:
Step E, in the feedback information of the corresponding memory node transmission of data block after each above-mentioned digital signature of addition
Including consumption, the data block after the above-mentioned digital signature of each addition is sent in corresponding memory node and is stored.
Above-mentioned data block and consumption are that correspondingly, the consumption for including is got in the feedback information that the first memory node is sent
It is small, then first memory node can the big data block of memory capacity, then more save storage data to be stored cost.It therefore will be each
Data block after a above-mentioned digital signature of addition, which is sent in corresponding memory node, to be stored.
As it can be seen that above-mentioned implementation according in feedback information consumption and can storing data size, determine the first storage
Node, and with the consumption in the feedback information of the corresponding above-mentioned memory node transmission of data block, data block is sent to corresponding
It is stored in memory node, has further saved the cost of storage data to be stored.
In one implementation, after S106, the above method further includes step F~step I:
Step F, broadcast are requested for the data record of above-mentioned data to be recycled;
Wherein, above-mentioned data record request is interpreted as characterizing the request for recycling above-mentioned data to be recycled.
Step G receives the data block for the above-mentioned data to be recycled that the second memory node is sent, wherein above-mentioned second storage
Node are as follows: receive above-mentioned data record request in above-mentioned block chain network and requested to determine storage according to above-mentioned data record
There is the node of the data block of above-mentioned data to be recycled;
Second memory node may be whole nodes that the data block of above-mentioned data to be recycled is stored in block chain network, the
Two memory nodes are also likely to be the part of nodes that the data block of above-mentioned data to be recycled is stored in block chain network.
Step H, judges whether the number of the data block received is greater than or equal to preset quantity;If it is, executing step
I;
Based on the above-mentioned description to the second memory node, it is therefore desirable to judge the quantity of data block received.
Preset quantity is the number to be recycled that first node is sent there may be two kinds of situations, the first situation, preset quantity
According to the number of corresponding data block.Second situation, data block are to be obtained using EC coding, and preset quantity is CE coding techniques
The data block number of data to be recycled can be reverted to.
Step I, removes the above-mentioned digital signature for including in the data block received, and to above-mentioned digital signature is removed after
Data block is decoded, and obtains decoding result;
Due to, with digital signature, after receiving data block, first will include in data block in the data block that receives
Digital signature removal, then to removal digital signature data block be decoded, obtain decoding result.
Above-mentioned decoding result is exactly the data to be recycled encrypted.
Step J is decrypted above-mentioned decoding result using above-mentioned private key, obtains above-mentioned data to be recycled.
Based on the above-mentioned description to decoding result, to obtain data to be recycled, need to the data to be recycled of encryption into
Row decryption, obtains above-mentioned data to be recycled.
As it can be seen that data record of this implementation by broadcast for data to be recycled is requested, if received second deposits
The number for storing up the data block for the above-mentioned data to be recycled that node is sent is greater than or equal to preset quantity, then it is received to decode removal institute
The data block for the digital signature for including in data block obtains decoding result;Above-mentioned decoding result is decrypted using private key, is obtained
To data to be recycled;The safety of data storage can not only be improved using implementation provided in an embodiment of the present invention, and
Due to using coding and partition, so greatly having ensured the reliability of data to be stored.
In one implementation, the above method further includes step K~step L:
Step K, broadcasting network exit request;
Above-mentioned network exits request and can be understood as characterizing the request for exiting block chain network.
Step L exits above-mentioned block chain network, and deletes all data being locally stored.
Node in block chain network can propose that network exits request at any time, and exit block chain network, exit block
After chain network, all data being locally stored are deleted, these data include integral.Since above-mentioned data to be stored have passed through coding
It is handled with deblocking, so a small amount of node exits the integrality that will not influence data to be stored.
Based on above-mentioned example, such as data to be stored is encoded, and be divided into 12 parts of data blocks using EC, separately increase by 4 schools
The data block of data is tested, and 16 divided data block one-to-one correspondence is sent in node, as long as then retaining 12 in 16 nodes
Node can completely restore data, after user exits block chain network, it is only necessary to keep digital signature and private key, just
Block chain network can be rejoined at any time, and data to be recycled are fetched within the time limit of storing data.
In addition, the node exited can also add block chain network, only adds to block chain network and be considered as
New node waits for.The digital signature that but as long as user retains the private key of ancestor node and data to be stored is answered, so that it may fetch wait return
Receive data.
It is backward compatible to existing computer network in order to guarantee, when new node is added, need the calculating to new node
The performances such as ability, storage capacity, network bandwidth are assessed, and block chain network can just be added after meeting the requirements.
As it can be seen that this implementation exits request by broadcasting network;Above-mentioned block chain network is exited, and deletes and is locally stored
All data.In this implementation, node can freely exit block chain network, improve the flexibility of node, exit
Block chain network deletes all data being locally stored, increases the safety of storing data.
It can be seen that method provided in an embodiment of the present invention by according to received second node send for broadcast
The corresponding feedback information of data storage request, from second node determine the first memory node, treated using preset public key
Storing data is encrypted, and is encoded to encrypted data to be stored, and coding result is obtained;Coding result is divided into
Data block, and the digital signature generated using the corresponding private key of public key is added to each data block;Determination is each for storing
Above-mentioned data block is sent in identified memory node and deposits by the memory node of the data block after adding above-mentioned digital signature
Storage.Cloud data storage method in compared with the prior art, since each node in block chain network is in data handling procedure
Middle status is identical, so storage mode provided in an embodiment of the present invention storing data no longer in a manner of "center", and block chain
Network itself has anti-tamper characteristic, therefore data storage method safety provided in an embodiment of the present invention is higher.
Referring to fig. 2, Fig. 2 is a kind of flow diagram of date storage method provided in an embodiment of the present invention, is applied to the
Three nodes, above-mentioned third node are as follows: any node in block chain network, the above method may include:
S201, the data storage for data to be stored for receiving the first node broadcast in above-mentioned block chain network are asked
It asks.
Wherein, above-mentioned first node is any node in block chain network.
Data storage request may include size and the data storage time limit of data to be stored.Data storage request can also be with
Be request feedback can storing data size request;It can also be that request feedback can storing data size and can the storing data time limit
Request.
S202, according to the data storage request received, it is determined whether above-mentioned data to be stored can be stored;If it is determined that
Above-mentioned data to be stored can be stored, then executes S203.
S203 sends feedback information to above-mentioned first node.
When data storage request request feedback can storing data size when, above-mentioned feedback information may include: that can store number
According to amount of capacity.
When data storage request request feedback storing data size and can prescribe a time limit when storing data, above-mentioned feedback information packet
Include can storing data amount of capacity and can the storing data time limit.
When data storage request request feedback can storing data size and data store when prescribe a time limit, above-mentioned feedback information includes
Store above-mentioned data to be stored consumption and can storing data amount of capacity.
When the size of data storage request request data to be stored, the size of above-mentioned data to be stored includes data storage
Time limit, above-mentioned feedback information include the consumption for storing above-mentioned data to be stored.
S204, the data block after receiving the addition digital signature that above-mentioned first node is sent, and store the data received
Block, wherein received data block are as follows: the data block that above-mentioned first node divides coding result, above-mentioned coding knot
Fruit are as follows: above-mentioned data to be stored encrypt using preset public key and encrypted data to be stored is encoded to obtain
As a result, above-mentioned digital signature are as follows: the signature generated using the corresponding private key of above-mentioned public key.
Wherein, above-mentioned coding is carried out to encrypted data to be stored to can be to encrypted data to be stored using EC
Coding, obtains coding result.
In one implementation, the above method can also include step M~step O:
Step M receives the data record for data to be recycled that the fourth node in above-mentioned block chain network is sent and asks
It asks;
Wherein, fourth node may be the same or different with first node.
Above-mentioned data record request is interpreted as characterizing the request for recycling above-mentioned data to be recycled.
Step N judges the local data block for whether being stored with above-mentioned data to be recycled according to the request of above-mentioned data record;If
It stores, then step O;
In one implementation, S204 can also include step N1:
Step N1, the data block after receiving the addition digital signature that above-mentioned first node is sent, and store the number received
According to block, the digital signature in each data block is recorded;
Based on above-mentioned step N1, step N can also include step N2:
The local digital signature for whether being stored with above-mentioned data to be recycled is judged according to the request of above-mentioned data record;If deposited
Executing step O.
As it can be seen that the data block that this implementation is sent by the first node that storage receives, and record in data block
Digital signature, and judge whether to be stored with data to be recycled using record digital signature, data block storage can not only be improved
Integrality, and can quick search locally whether be stored with data to be recycled, improve inquiry velocity.
Step O sends the data block for the above-mentioned data to be recycled being locally stored to above-mentioned fourth node.
As it can be seen that this implementation passes through according to the fourth node transmission in the block chain network received for be recycled
The data record of data is requested, if the data block for needing data collection is locally stored, is locally stored to fourth node transmission
Above-mentioned data to be recycled data block, can be improved data block storage safety.
In one implementation, after above-mentioned steps O, the above method further include:
Delete the data block for the above-mentioned data to be recycled being locally stored.
After the data block for sending the data to be recycled being locally stored, the data block of above-mentioned data to be recycled is deleted, is emptied
Local memory space, next data to be stored are prepared.
As it can be seen that the data block for the above-mentioned data to be recycled that this implementation is locally stored by deletion, it can efficient land productivity
With local memory space.
In one implementation, the above method further includes step P~step Q:
Step P, broadcasting network exit request;
Above-mentioned network exits request and can be understood as characterizing the request for exiting block chain network.
Step Q exits above-mentioned block chain network, and deletes all data being locally stored.
Node in block chain network can propose that network exits request at any time, and exit block chain network, exit block
After chain network, all data being locally stored are deleted, these data include integral.Since above-mentioned data to be stored have passed through coding
It is handled with deblocking, so a small amount of node exits the integrality that will not influence data to be stored.
Based on above-mentioned example, such as data to be stored is encoded, and be divided into 12 parts of data blocks using EC, separately increase by 4 schools
The data block of data is tested, and 16 divided data block one-to-one correspondence is sent in node, as long as then retaining 12 in 16 nodes
Node can completely restore data, after user exits block chain network, it is only necessary to keep digital signature and private key, just
Block chain network can be rejoined at any time, and data to be recycled are fetched within the time limit of storing data.
In addition, the node exited can also add block chain network, only adds to block chain network and be considered as
New node waits for.The digital signature that but as long as user retains the private key of ancestor node and data to be stored is answered, so that it may fetch wait return
Receive data.
It is backward compatible to existing computer network in order to guarantee, when new node is added, need the calculating to new node
The performances such as ability, storage capacity, network bandwidth are assessed, and block chain network can just be added after meeting the requirements.
As it can be seen that this implementation exits request by broadcasting network;Above-mentioned block chain network is exited, and deletes and is locally stored
All data.In this implementation, node can freely exit block chain network, improve the flexibility of node, exit
Block chain network deletes all data being locally stored, increases the safety of storing data.
It can be seen that method provided in an embodiment of the present invention passes through according to first in the above-mentioned block chain network received
The data storage request for data to be stored of node broadcasts, if it is determined that above-mentioned data to be stored can be stored, to above-mentioned
First node sends feedback information, the data block after receiving and storing the addition digital signature that above-mentioned first node is sent.Relatively
Cloud data storage method in the prior art, due to the status phase in data processing of each node in block chain network
Together, so storage mode provided in an embodiment of the present invention storing data no longer in a manner of "center", and block chain network itself
With anti-tamper characteristic, therefore data storage method safety provided in an embodiment of the present invention is higher.
Corresponding with above-mentioned date storage method, the embodiment of the present application also provides two kinds of data storage devices.
Referring to Fig. 3, Fig. 3 provides the structural schematic diagram of the first data storage device for the embodiment of the present invention, is applied to the
One node, above-mentioned first node are as follows: any node in block chain network, the device include:
First broadcast module 301, for broadcasting the data storage request for being directed to data to be stored;
Information receiving module 302, for receiving the feedback information of second node transmission, above-mentioned second node are as follows: above-mentioned area
Above-mentioned data storage request is received in block chain network and is determined to store according to above-mentioned data storage request above-mentioned wait store
The node of data;
First memory node determining module 303, for determining first from second node according to the received feedback information of institute
Memory node;
Coding result obtains module 304, for being encrypted using preset public key to above-mentioned data to be stored, and to adding
Data to be stored after close is encoded, and coding result is obtained;
Digital signature adding module 305 for above-mentioned coding result to be divided into data block, and will utilize above-mentioned public key pair
The digital signature that the private key answered generates is added to each data block;
First sending module 306, it is above-mentioned for storing each addition for determining in identified first memory node
The memory node of data block after digital signature, and the data block after each above-mentioned digital signature of addition is sent to corresponding deposit
It is stored in storage node.
It in one implementation, include: the consumption for storing above-mentioned data to be stored in above-mentioned feedback information;Above-mentioned first
Memory node determining module 303 may include:
First memory node determines submodule, for determining that consumption is lower than preset threshold in transmitted above-mentioned feedback information
Second node is the first memory node;
Above-mentioned first sending module 306 may include:
First sending submodule, for being sent with the corresponding memory node of data block after each above-mentioned digital signature of addition
Feedback information in include consumption, the data block after the above-mentioned digital signature of each addition is sent in corresponding memory node
Storage.
In one implementation, above-mentioned apparatus can also include:
Second broadcast module, for broadcasting the data record request for being directed to above-mentioned data to be recycled;
Data block reception module, the data block of the above-mentioned data to be recycled for receiving the transmission of the second memory node, wherein
Above-mentioned second memory node are as follows: above-mentioned data record request is received in above-mentioned block chain network and according to above-mentioned data record
Request determines the node for being stored with the data block of above-mentioned data to be recycled;
Judgment module, for judging whether the number of the data block received is greater than or equal to preset quantity;If it is, touching
Send out decoding result module;
Decoding result module, for removing the above-mentioned digital signature for including in the data block received, and it is above-mentioned to removing
Data block after digital signature is decoded, and obtains decoding result;
Data to be recycled obtain module, for above-mentioned decoding result to be decrypted using above-mentioned private key, obtain it is above-mentioned to
Data collection.
In one implementation, above-mentioned apparatus further include:
Third broadcast module exits request for broadcasting network;
First exits module, for exiting above-mentioned block chain network, and deletes all data being locally stored.
It can be seen that device provided in an embodiment of the present invention by according to received second node send for broadcast
The corresponding feedback information of data storage request, from second node determine the first memory node, treated using preset public key
Storing data is encrypted, and is encoded to encrypted data to be stored, and coding result is obtained;Coding result is divided into
Data block, and the digital signature generated using the corresponding private key of public key is added to each data block;Determination is each for storing
Above-mentioned data block is sent in identified memory node and deposits by the memory node of the data block after adding above-mentioned digital signature
Storage.Cloud data storage method in compared with the prior art, since each node in block chain network is in data handling procedure
Middle status is identical, so storage mode provided in an embodiment of the present invention storing data no longer in a manner of "center", and block chain
Network itself has anti-tamper characteristic, therefore data storage method safety provided in an embodiment of the present invention is higher.
Referring to fig. 4, Fig. 4 provides the structural schematic diagram of second of data storage device for the embodiment of the present invention, is applied to the
Three nodes, above-mentioned third node are as follows: any node in block chain network, the apparatus may include:
First request receiving module 401, for receive the broadcast of the first node in above-mentioned block chain network for wait deposit
Store up the data storage request of data;
Determining module 402 is stored, for according to the data storage request received, it is determined whether can store above-mentioned wait deposit
Store up data;If it is determined that above-mentioned data to be stored can be stored, then Feedback information sending module is triggered;
Feedback information sending module 403, for sending feedback information to above-mentioned first node;
First data block memory module 404, the data after addition digital signature for receiving above-mentioned first node transmission
Block, and store the data block received, wherein received data block are as follows: above-mentioned first node divide to coding result
The data block arrived, above-mentioned coding result are as follows: encryption is carried out to above-mentioned data to be stored using preset public key and to encrypted
It is that data to be stored is encoded as a result, above-mentioned digital signature are as follows: the signature generated using the corresponding private key of above-mentioned public key.
In one implementation, above-mentioned apparatus can also include:
Second request receiving module, for receive the transmission of the fourth node in above-mentioned block chain network for number to be recycled
According to data record request;
Second data block memory module, it is above-mentioned wait return for judging locally whether to be stored with according to the request of above-mentioned data record
Receive the data block of data;If storage, trigger data block sending module;
Data block sending module, for sending the data for the above-mentioned data to be recycled being locally stored to above-mentioned fourth node
Block.
In one implementation, above-mentioned apparatus can also include:
Removing module, for deleting the data block for the above-mentioned data to be recycled being locally stored.
In one implementation, above-mentioned apparatus can also include:
4th broadcast module exits request for broadcasting network;
Second exits module, for exiting above-mentioned block chain network, and deletes all data being locally stored.
It can be seen that device provided in an embodiment of the present invention passes through according to first in the above-mentioned block chain network received
The data storage request for data to be stored of node broadcasts, if it is determined that above-mentioned data to be stored can be stored, to above-mentioned
First node sends feedback information, the data block after receiving and storing the addition digital signature that above-mentioned first node is sent.Relatively
Cloud data storage method in the prior art, due to the status phase in data processing of each node in block chain network
Together, so storage mode provided in an embodiment of the present invention storing data no longer in a manner of "center", and block chain network itself
With anti-tamper characteristic, therefore data storage method safety provided in an embodiment of the present invention is higher.
Based on same invention thinking, according to the date storage method that the embodiments of the present invention provide, correspondingly, of the invention
Embodiment additionally provides a kind of electronic equipment, as shown in figure 5, including processor 501, communication interface 502, memory 503 and leading to
Believe bus 504, wherein processor 501, communication interface 502, memory 503 complete mutual lead to by communication bus 504
Letter,
Memory 503, for storing computer program;
Processor 501 when for executing the program stored on memory 503, realizes provided in an embodiment of the present invention two
Kind date storage method.
Specifically, being applied to first node, above-mentioned first node are as follows: any node in block chain network, above-mentioned first
Kind date storage method:
Broadcast is directed to the data storage request of data to be stored;
Receive the feedback information that second node is sent, above-mentioned second node are as follows: receive in above-mentioned block chain network above-mentioned
It data storage request and is determined to store the node of above-mentioned data to be stored according to above-mentioned data storage request;
According to the received feedback information of institute, the first memory node is determined from second node;
Above-mentioned data to be stored is encrypted using preset public key, and encrypted data to be stored is compiled
Code, obtains coding result;
Above-mentioned coding result is divided into data block, and the digital signature generated using the corresponding private key of above-mentioned public key is added
Add to each data block;
In identified first memory node, determination is for the data block after storing each above-mentioned digital signature of addition
Memory node, and the data block after each above-mentioned digital signature of addition is sent in corresponding memory node and is stored.
It can be seen that execute electronic equipment provided in this embodiment, by according to the needle that sends of received second node
Feedback information corresponding to the data storage request of broadcast determines the first memory node from second node, utilizes preset public affairs
Key encrypts data to be stored, and encodes to encrypted data to be stored, obtains coding result;By coding result
It is divided into data block, and the digital signature generated using the corresponding private key of public key is added to each data block;It determines for depositing
The memory node of data block after storing up each above-mentioned digital signature of addition, is sent to identified memory node for above-mentioned data block
Middle storage.Cloud data storage method in compared with the prior art, since each node in block chain network is in data processing
Status is identical in the process, so storage mode provided in an embodiment of the present invention storing data no longer in a manner of "center", and area
Block chain network itself has anti-tamper characteristic, therefore data storage method safety provided in an embodiment of the present invention is higher.
The output storage that the embodiment of above-mentioned related data storage method and preceding method embodiment part provide
Way to manage is identical, and which is not described herein again.
Specifically, being applied to third node, above-mentioned third node are as follows: any node in block chain network, above-mentioned second
Planting date storage method includes:
Receive the data storage request for data to be stored of the first node broadcast in above-mentioned block chain network;
According to the data storage request received, it is determined whether above-mentioned data to be stored can be stored;
If it is determined that above-mentioned data to be stored can be stored, then feedback information is sent to above-mentioned first node;
Data block after receiving the addition digital signature that above-mentioned first node is sent, and the data block received is stored,
In, received data block are as follows: the data block that above-mentioned first node divides coding result, above-mentioned coding result are as follows:
The knot for encrypting and being encoded to encrypted data to be stored is carried out to above-mentioned data to be stored using preset public key
Fruit, above-mentioned digital signature are as follows: the signature generated using the corresponding private key of above-mentioned public key.
It can be seen that electronic equipment provided in this embodiment is executed, by according in the above-mentioned block chain network received
First node broadcast the data storage request for data to be stored, if it is determined that above-mentioned data to be stored can be stored,
Feedback information is sent to above-mentioned first node, the data after receiving and storing the addition digital signature that above-mentioned first node is sent
Block.Cloud data storage method in compared with the prior art, since each node in block chain network is in data handling procedure
Middle status is identical, so storage mode provided in an embodiment of the present invention storing data no longer in a manner of "center", and block chain
Network itself has anti-tamper characteristic, therefore data storage method safety provided in an embodiment of the present invention is higher.
The data that the embodiment of above-mentioned relevant content data storage method is provided with preceding method embodiment part are deposited
The way to manage of storage is identical, and which is not described herein again.
The communication bus that above-mentioned electronic equipment is mentioned can be Peripheral Component Interconnect standard (Peripheral Component
Interconnect, PCI) bus or expanding the industrial standard structure (Extended Industry Standard
Architecture, EISA) bus etc..The communication bus can be divided into address bus, data/address bus, control bus etc..For just
It is only indicated with a thick line in expression, figure, it is not intended that an only bus or a type of bus.
Communication interface is for the communication between above-mentioned electronic equipment and other equipment.
Memory may include random access memory (Random Access Memory, RAM), also may include non-easy
The property lost memory (Non-Volatile Memory, NVM), for example, at least a magnetic disk storage.Optionally, memory may be used also
To be storage device that at least one is located remotely from aforementioned processor.
Above-mentioned processor can be general processor, including central processing unit (Central Processing Unit,
CPU), network processing unit (Network Processor, NP) etc.;It can also be digital signal processor (Digital Signal
Processing, DSP), it is specific integrated circuit (Application Specific Integrated Circuit, ASIC), existing
It is field programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic device, discrete
Door or transistor logic, discrete hardware components.
In another embodiment provided by the invention, a kind of computer readable storage medium is additionally provided, which can
It reads to be stored with instruction in storage medium, when run on a computer, so that computer executes on any in above-described embodiment
The date storage method stated.
In another embodiment provided by the invention, a kind of computer program product comprising instruction is additionally provided, when it
When running on computers, so that computer executes any above-mentioned date storage method in above-described embodiment.
In the above-described embodiments, can come wholly or partly by software, hardware, firmware or any combination thereof real
It is existing.When implemented in software, it can entirely or partly realize in the form of a computer program product.Above-mentioned computer program
Product includes one or more computer instructions.When loading on computers and executing above-mentioned computer program instructions, all or
It partly generates according to process or function described in the embodiment of the present invention.The computer can be general purpose computer, dedicated meter
Calculation machine, computer network or other programmable devices.The computer instruction can store in computer readable storage medium
In, or from a computer readable storage medium to the transmission of another computer readable storage medium, for example, the computer
Instruction can pass through wired (such as coaxial cable, optical fiber, number from a web-site, computer, server or data center
User's line (DSL)) or wireless (such as infrared, wireless, microwave etc.) mode to another web-site, computer, server or
Data center is transmitted.The computer readable storage medium can be any usable medium that computer can access or
It is comprising data storage devices such as one or more usable mediums integrated server, data centers.The usable medium can be with
It is magnetic medium, (for example, floppy disk, hard disk, tape), optical medium (for example, DVD) or semiconductor medium (such as solid state hard disk
Solid State Disk (SSD)) etc..
It should be noted that, in this document, relational terms such as first and second and the like are used merely to a reality
Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation
In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to
Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those
Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment
Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that
There is also other identical elements in process, method, article or equipment including the element.
Each embodiment in this specification is all made of relevant mode and describes, same and similar portion between each embodiment
Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for system reality
For applying example, since it is substantially similar to the method embodiment, so being described relatively simple, related place is referring to embodiment of the method
Part explanation.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the scope of the present invention.It is all
Any modification, equivalent replacement, improvement and so within the spirit and principles in the present invention, are all contained in protection scope of the present invention
It is interior.
Claims (10)
1. a kind of date storage method, which is characterized in that be applied to first node, the first node are as follows: in block chain network
Any node, which comprises
Broadcast is directed to the data storage request of data to be stored;
Receive the feedback information that second node is sent, the second node are as follows: receive the data in the block chain network
Storage requests and is determined to store the node of the data to be stored according to the data storage request;
According to the received feedback information of institute, the first memory node is determined from second node;
The data to be stored is encrypted using preset public key, and encrypted data to be stored is encoded, is obtained
To coding result;
The coding result is divided into data block, and the digital signature generated using the corresponding private key of the public key is added to
Each data block;
In identified first memory node, storage of the determination for the data block after storing each addition digital signature
Node, and the data block after each addition digital signature is sent in corresponding memory node and is stored.
2. the method as described in claim 1, which is characterized in that include: the storage data to be stored in the feedback information
Consumption;
It is described according to the received feedback information of institute, the first memory node is determined from second node, comprising:
The second node for determining that consumption is lower than preset threshold in the transmitted feedback information is the first memory node;
The data block by after each addition digital signature, which is sent in corresponding memory node, to be stored, comprising:
The consumption for including in the feedback information sent with the corresponding memory node of data block after each addition digital signature,
Data block after each addition digital signature is sent in corresponding memory node and is stored.
3. the method as described in claim 1, which is characterized in that the method also includes:
Broadcast is requested for the data record of the data to be recycled;
Receive the data block of the data to be recycled of the second memory node transmission, wherein second memory node are as follows: described
The data record request is received in block chain network and is stored with according to data record request determination described to be recycled
The node of the data block of data;
Judge whether the number of the data block received is greater than or equal to preset quantity;
If it has, then the digital signature for including in the data block that receives of removal, and to the digital signature is removed after
Data block is decoded, and obtains decoding result;
The decoding result is decrypted using the private key, obtains the data to be recycled.
4. method according to any one of claims 1 to 3, which is characterized in that the method also includes:
Broadcasting network exits request;
The block chain network is exited, and deletes all data being locally stored.
5. a kind of date storage method, which is characterized in that be applied to third node, the third node are as follows: in block chain network
Any node, which comprises
Receive the data storage request for data to be stored of the first node broadcast in the block chain network;
According to the data storage request received, it is determined whether the data to be stored can be stored;
If it is determined that the data to be stored can be stored, then feedback information is sent to the first node;
Data block after receiving the addition digital signature that the first node is sent, and store the data block received, wherein it connects
The data block of receipts are as follows: the data block that the first node divides coding result, the coding result are as follows: using in advance
If public key to the data to be stored carry out encryption and to encrypted data to be stored encoded as a result, described
Digital signature are as follows: the signature generated using the corresponding private key of the public key.
6. method as claimed in claim 5, which is characterized in that the method also includes:
The data record for data to be recycled that the fourth node in the block chain network is sent is received to request;
The local data block for whether being stored with the data to be recycled is judged according to data record request;
If storage sends the data block for the data to be recycled being locally stored to the fourth node.
7. method as claimed in claim 6, which is characterized in that it is described to the fourth node transmission be locally stored described in
After the data block of data to be recycled, further includes:
Delete the data block for the data to be recycled being locally stored.
8. the method as described in any one of claim 5~7, which is characterized in that the method also includes:
Broadcasting network exits request;
The block chain network is exited, and deletes all data being locally stored.
9. a kind of data storage device, which is characterized in that described device includes:
First broadcast module, for broadcasting the data storage request for being directed to data to be stored;
Information receiving module, for receiving the feedback information of second node transmission, the second node are as follows: the block chain network
In receive the data storage request and be determined to store the section of the data to be stored according to the data storage request
Point;
First memory node determining module, for determining the first storage section from second node according to the received feedback information of institute
Point;
Coding result obtains module, for being encrypted using preset public key to the data to be stored, and to encrypted
Data to be stored is encoded, and coding result is obtained;
Digital signature adding module for the coding result to be divided into data block, and will utilize the corresponding private of the public key
The digital signature that key generates is added to each data block;
First sending module, in identified first memory node, determining for storing each addition number label
The memory node of data block after name, and the data block after each addition digital signature is sent to corresponding memory node
Middle storage.
10. a kind of data storage device, which is characterized in that be applied to third node, the third node are as follows: in block chain network
Any node, which comprises
Request receiving module, for receiving the data for data to be stored of the broadcast of the first node in the block chain network
Storage request;
Determining module is stored, for according to the data storage request received, it is determined whether the data to be stored can be stored;
If it is determined that the data to be stored can be stored, then Feedback information sending module is triggered;
The Feedback information sending module, for sending feedback information to the first node;
Data block memory module, the data block after addition digital signature for receiving the first node transmission, and store and connect
The data block received, wherein received data block are as follows: the data block that the first node divides coding result,
The coding result are as follows: using preset public key to the data to be stored carry out encryption and to encrypted data to be stored into
Row coding obtain as a result, the digital signature are as follows: the signature generated using the corresponding private key of the public key.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811383389.7A CN109302495A (en) | 2018-11-20 | 2018-11-20 | A kind of date storage method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811383389.7A CN109302495A (en) | 2018-11-20 | 2018-11-20 | A kind of date storage method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109302495A true CN109302495A (en) | 2019-02-01 |
Family
ID=65143214
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811383389.7A Pending CN109302495A (en) | 2018-11-20 | 2018-11-20 | A kind of date storage method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109302495A (en) |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110299964A (en) * | 2019-06-28 | 2019-10-01 | 京东数字科技控股有限公司 | Data transmission method and its device, computer can storage mediums |
CN110324150A (en) * | 2019-06-12 | 2019-10-11 | 东软集团股份有限公司 | Date storage method, device, computer readable storage medium and electronic equipment |
CN110619019A (en) * | 2019-08-07 | 2019-12-27 | 平安科技(深圳)有限公司 | Distributed storage method and system of data |
CN111291414A (en) * | 2020-03-11 | 2020-06-16 | 深圳市网心科技有限公司 | Data storage method and device, computer device and storage medium |
WO2019228567A3 (en) * | 2019-09-11 | 2020-07-09 | Alibaba Group Holding Limited | Shared blockchain data storage based on error correction coding in trusted execution environments |
CN111837117A (en) * | 2019-09-11 | 2020-10-27 | 创新先进技术有限公司 | Error correction coding based shared blockchain data storage in trusted execution environments |
CN112597527A (en) * | 2021-03-05 | 2021-04-02 | 浙江数秦科技有限公司 | Data access method for preventing alliance chain data leakage |
CN113378192A (en) * | 2021-06-02 | 2021-09-10 | 浙江数秦科技有限公司 | Alliance link data encryption method |
CN113852687A (en) * | 2021-09-24 | 2021-12-28 | 成都质数斯达克科技有限公司 | File transmission method between block chain link points |
US11307927B2 (en) | 2019-10-15 | 2022-04-19 | Alipay (Hangzhou) Information Technology Co., Ltd. | Indexing and recovering encoded blockchain data |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106452785A (en) * | 2016-09-29 | 2017-02-22 | 财付通支付科技有限公司 | Block chain network, branch node and block chain network application method |
CN107360156A (en) * | 2017-07-10 | 2017-11-17 | 广东工业大学 | P2P network method for cloud storage based on block chain under a kind of big data environment |
CN108062419A (en) * | 2018-01-06 | 2018-05-22 | 深圳市网心科技有限公司 | File storage method, electronic equipment, system and medium |
US20180293557A1 (en) * | 2017-04-05 | 2018-10-11 | Samsung Sds Co., Ltd. | Method of charging electronic currency automatically based on blockchain and system thereof |
CN108647968A (en) * | 2018-05-10 | 2018-10-12 | 阿里巴巴集团控股有限公司 | A kind of block chain data processing method, device, processing equipment and system |
CN108769146A (en) * | 2018-05-11 | 2018-11-06 | 北京奇虎科技有限公司 | A kind of data transmission method, device and block catenary system based on block chain |
-
2018
- 2018-11-20 CN CN201811383389.7A patent/CN109302495A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106452785A (en) * | 2016-09-29 | 2017-02-22 | 财付通支付科技有限公司 | Block chain network, branch node and block chain network application method |
US20180293557A1 (en) * | 2017-04-05 | 2018-10-11 | Samsung Sds Co., Ltd. | Method of charging electronic currency automatically based on blockchain and system thereof |
CN107360156A (en) * | 2017-07-10 | 2017-11-17 | 广东工业大学 | P2P network method for cloud storage based on block chain under a kind of big data environment |
CN108062419A (en) * | 2018-01-06 | 2018-05-22 | 深圳市网心科技有限公司 | File storage method, electronic equipment, system and medium |
CN108647968A (en) * | 2018-05-10 | 2018-10-12 | 阿里巴巴集团控股有限公司 | A kind of block chain data processing method, device, processing equipment and system |
CN108769146A (en) * | 2018-05-11 | 2018-11-06 | 北京奇虎科技有限公司 | A kind of data transmission method, device and block catenary system based on block chain |
Cited By (22)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110324150A (en) * | 2019-06-12 | 2019-10-11 | 东软集团股份有限公司 | Date storage method, device, computer readable storage medium and electronic equipment |
CN110324150B (en) * | 2019-06-12 | 2022-03-22 | 东软集团股份有限公司 | Data storage method and device, computer readable storage medium and electronic equipment |
CN110299964B (en) * | 2019-06-28 | 2020-11-24 | 京东数字科技控股有限公司 | Data transmission method and device, computer storage medium |
CN110299964A (en) * | 2019-06-28 | 2019-10-01 | 京东数字科技控股有限公司 | Data transmission method and its device, computer can storage mediums |
CN110619019A (en) * | 2019-08-07 | 2019-12-27 | 平安科技(深圳)有限公司 | Distributed storage method and system of data |
CN110619019B (en) * | 2019-08-07 | 2024-03-15 | 平安科技(深圳)有限公司 | Distributed storage method and system for data |
WO2021022875A1 (en) * | 2019-08-07 | 2021-02-11 | 平安科技(深圳)有限公司 | Distributed data storage method and system |
CN111656343A (en) * | 2019-09-11 | 2020-09-11 | 阿里巴巴集团控股有限公司 | Error correction coding based shared blockchain data storage in trusted execution environments |
CN111656343B (en) * | 2019-09-11 | 2023-06-30 | 创新先进技术有限公司 | Error correction coding based shared blockchain data storage in trusted execution environments |
CN111837117A (en) * | 2019-09-11 | 2020-10-27 | 创新先进技术有限公司 | Error correction coding based shared blockchain data storage in trusted execution environments |
US11025410B2 (en) | 2019-09-11 | 2021-06-01 | Advanced New Technologies Co., Ltd. | Shared blockchain data storage based on error correction coding in trusted execution environments |
US11075745B1 (en) | 2019-09-11 | 2021-07-27 | Advanced New Technologies Co., Ltd. | Shared blockchain data storage based on error correction coding in trusted execution environments |
CN111837117B (en) * | 2019-09-11 | 2024-04-16 | 创新先进技术有限公司 | Error correction coding based shared blockchain data storage in trusted execution environments |
WO2019228567A3 (en) * | 2019-09-11 | 2020-07-09 | Alibaba Group Holding Limited | Shared blockchain data storage based on error correction coding in trusted execution environments |
US10833848B1 (en) | 2019-09-11 | 2020-11-10 | Alibaba Group Holding Limited | Shared blockchain data storage based on error correction coding in trusted execution environments |
US11307927B2 (en) | 2019-10-15 | 2022-04-19 | Alipay (Hangzhou) Information Technology Co., Ltd. | Indexing and recovering encoded blockchain data |
CN111291414A (en) * | 2020-03-11 | 2020-06-16 | 深圳市网心科技有限公司 | Data storage method and device, computer device and storage medium |
CN112597527A (en) * | 2021-03-05 | 2021-04-02 | 浙江数秦科技有限公司 | Data access method for preventing alliance chain data leakage |
CN113378192B (en) * | 2021-06-02 | 2022-06-10 | 浙江数秦科技有限公司 | Alliance link data encryption method |
CN113378192A (en) * | 2021-06-02 | 2021-09-10 | 浙江数秦科技有限公司 | Alliance link data encryption method |
CN113852687B (en) * | 2021-09-24 | 2023-12-01 | 成都质数斯达克科技有限公司 | File transmission method between block chain nodes |
CN113852687A (en) * | 2021-09-24 | 2021-12-28 | 成都质数斯达克科技有限公司 | File transmission method between block chain link points |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109302495A (en) | A kind of date storage method and device | |
US8171101B2 (en) | Smart access to a dispersed data storage network | |
US10409514B2 (en) | IP multicast message transmission for event notifications | |
US20170153978A1 (en) | Optimized caching of slices by a ds processing unit | |
US20170006099A1 (en) | Using broadcast for parallelized and rapid slice replication in a dispersed storage network | |
US10855759B2 (en) | Utilizing a hierarchical index in a dispersed storage network | |
US11593029B1 (en) | Identifying a parent event associated with child error states | |
US10437673B2 (en) | Internet based shared memory in a distributed computing system | |
US20240354192A1 (en) | Storage Network with Audit Records Aggregation and Methods for Use Therewith | |
US20190004727A1 (en) | Using a namespace to augment de-duplication | |
CN105653209A (en) | Object storage data transmitting method and device | |
US10691541B2 (en) | Method for partial updating data content in a distributed storage network | |
Gokulakrishnan et al. | Data integrity and recovery management in cloud systems | |
US10409492B2 (en) | Multi-phase dispersed storage write process | |
US10506045B2 (en) | Memory access using deterministic function and secure seed | |
US20190004730A1 (en) | Using index structure to guide load balancing in a distributed storage system | |
US10423490B2 (en) | Read-source requests to support bundled writes in a distributed storage system | |
US20190056997A1 (en) | Chaining computes in a distributed computing system | |
US20190026147A1 (en) | Avoiding index contention with distributed task queues in a distributed storage system | |
US10481980B2 (en) | Enabling segmented source data introspection within dispersed storage network (DSN) memory | |
US10511665B2 (en) | Efficient resource reclamation after deletion of slice from common file | |
US10503592B2 (en) | Overcoming bottlenecks in partial and traditional rebuild operations | |
US10642687B2 (en) | Pessimistic reads and other smart-read enhancements with synchronized vaults | |
Recabarren et al. | Toward uncensorable, anonymous and private access over Satoshi blockchains | |
CN110933155B (en) | Novel block chain network |
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: 20190201 |