CN109271115B - Storage sharing method and device and block chain distributed network topology - Google Patents

Storage sharing method and device and block chain distributed network topology Download PDF

Info

Publication number
CN109271115B
CN109271115B CN201811186986.0A CN201811186986A CN109271115B CN 109271115 B CN109271115 B CN 109271115B CN 201811186986 A CN201811186986 A CN 201811186986A CN 109271115 B CN109271115 B CN 109271115B
Authority
CN
China
Prior art keywords
stored
resources
client
node
storage
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811186986.0A
Other languages
Chinese (zh)
Other versions
CN109271115A (en
Inventor
熊雨
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Morning Whale Technology Co ltd
Original Assignee
Morning Whale Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Morning Whale Technology Co ltd filed Critical Morning Whale Technology Co ltd
Priority to CN201811186986.0A priority Critical patent/CN109271115B/en
Publication of CN109271115A publication Critical patent/CN109271115A/en
Application granted granted Critical
Publication of CN109271115B publication Critical patent/CN109271115B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0614Improving the reliability of storage systems
    • G06F3/0619Improving the reliability of storage systems in relation to data integrity, e.g. data losses, bit errors
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1458Management of the backup or restore process
    • G06F11/1464Management of the backup or restore process for networked environments
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0614Improving the reliability of storage systems
    • G06F3/0617Improving the reliability of storage systems in relation to availability
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/062Securing storage systems
    • G06F3/0623Securing storage systems in relation to content
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0638Organizing or formatting or addressing of data
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0646Horizontal data movement in storage systems, i.e. moving data in between storage devices or systems
    • G06F3/065Replication mechanisms
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/067Distributed or networked storage systems, e.g. storage area networks [SAN], network attached storage [NAS]

Abstract

The invention provides a storage sharing method, a storage sharing device and a block chain distributed network topology, wherein the method comprises the following steps: the method comprises the steps that when a data storage request initiated by a client is obtained, the data storage request is recorded to an account book and stored in each full node; then determining a plurality of target storage nodes from at least one storage node, and sending the information of the plurality of target storage nodes to the client; then, resources to be stored sent by the client are obtained, the resources to be stored are stored after being partitioned, and then the resources to be stored are backed up to other storage nodes based on a pre-stored security strategy; and finally, updating the storage node information for storing and backing up the resources to be stored and the state information of the resources to be stored to the account book, so that the resources to be stored are stored in a plurality of storage nodes in a fragmentation mode, the safety of data is ensured, meanwhile, the resources to be stored are backed up, and the retrievable probability of the data is increased.

Description

Storage sharing method and device and block chain distributed network topology
Technical Field
The invention relates to the technical field of block chains, in particular to a storage sharing method and device and a block chain distributed network topology.
Background
When a user or an enterprise stores data, in addition to sharing the data in a self-built data center and a local storage, the data file is also usually stored in a "cloud", which is actually a centralized server.
For data files stored in the cloud, a user or an enterprise does not know actual nodes stored in the data files, and an effective means is not provided for verifying whether the data files are normal or not. In extreme cases, when a user or an enterprise needs to extract a data file, the data file is found to be damaged and cannot be used, and at the moment, the user or the enterprise cannot acquire complete data, so that data loss is caused.
Disclosure of Invention
In view of the above, embodiments of the present invention provide a storage sharing method, apparatus, and a block chain distributed network topology to alleviate the above problems.
In a first aspect, an embodiment of the present invention provides a storage sharing method, which is applied to a blockchain distributed network topology, where the blockchain distributed network topology includes at least one storage node and at least one full node, and the method includes: when a data storage request initiated by a client is obtained, recording the data storage request to an account book and storing the data storage request in each full node; determining a plurality of target storage nodes from the at least one storage node, and sending information of the target storage nodes to the client; acquiring resources to be stored sent by the client, and storing the fragmented resources to be stored in the target storage nodes in a manner that each target storage node stores a piece of sub-resource after the resources to be stored are fragmented; backing up the resources to be stored to other storage nodes based on a pre-saved security policy; and updating the storage node information for storing and backing up the resources to be stored and the state information of the resources to be stored to the account book.
In a second aspect, an embodiment of the present invention provides a storage sharing apparatus, which is applied to a blockchain distributed network topology, where the blockchain distributed network topology includes at least one storage node and at least one full node, and the apparatus includes: the record storage module is used for recording the data storage request to an account book and storing the data storage request in each full node when the data storage request initiated by the client is acquired; the determining module is used for determining a plurality of target storage nodes from the at least one storage node and sending the information of the target storage nodes to the client; the acquisition and storage module is used for acquiring the resources to be stored sent by the client, fragmenting the resources to be stored, and storing the fragmented resources to be stored in the target storage nodes in a manner that each target storage node stores a piece of sub-resource; the backup module is used for backing up the resources to be stored to other storage nodes based on a pre-saved security strategy; and the updating module is used for updating the storage node information for storing and backing up the resources to be stored and the state information of the resources to be stored to the account book.
In a third aspect, an embodiment of the present invention provides a blockchain distributed network topology, including at least one storage node and at least one full node, where the storage node and the full node include a memory and a processor, and a computer program is stored in the memory, and when the computer program is executed by the processor, the blockchain distributed network topology is enabled to perform the method according to the first aspect.
Compared with the prior art, the storage sharing method, the storage sharing device and the block chain distributed network topology provided by the embodiments of the invention have the following beneficial effects: when a data storage request initiated by a client is acquired, the data storage request is recorded to an account book and stored in each full node; then determining a plurality of target storage nodes from the at least one storage node, and sending the information of the target storage nodes to the client; then, resources to be stored sent by the client are obtained, and the fragmented resources to be stored are stored in the target storage nodes in a mode that each target storage node stores a piece of sub-resource after the resources to be stored are fragmented; then backing up the resources to be stored to other storage nodes based on a pre-saved security strategy; and finally, updating the storage node information for storing and backing up the resources to be stored and the state information of the resources to be stored to the account book, so that the resources to be stored are stored in a plurality of storage nodes in a fragmentation mode, the safety of data is ensured, meanwhile, the resources to be stored are backed up, and the retrievable probability of the data is increased.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
Fig. 1 is a schematic structural diagram of a block chain distributed network topology according to an embodiment of the present invention;
FIG. 2 is a flowchart of a storage sharing method according to a first embodiment of the present invention;
FIG. 3 is a second flowchart of a memory sharing method according to the first embodiment of the present invention;
fig. 4 is a block diagram of a storage sharing device according to a second embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present invention without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures. Meanwhile, in the description of the present invention, the terms "first", "second", and the like are used only for distinguishing the description, and are not to be construed as indicating or implying relative importance.
Fig. 1 is a schematic structural diagram of a block chain distributed network topology 100 according to an embodiment of the present invention. The blockchain distributed network topology 100 may include at least one storage node and at least one full node, which may include a memory 110, a processor 120, and a storage sharing device.
The memory 110, the processor 120 and the storage sharing device are electrically connected to each other directly or indirectly to realize data transmission or interaction. For example, the components may be electrically connected to each other via one or more communication buses or signal lines. The storage sharing device includes at least one software functional module which can be stored in the memory 110 in the form of software or firmware (firmware) or solidified in an Operating System (OS) of the client device. The processor 120 is used to execute executable modules stored in the memory 110, such as software functional modules or computer programs included in the storage sharing device.
The Memory 110 may be, but is not limited to, a Random Access Memory (RAM), a Read Only Memory (ROM), a Programmable Read-Only Memory (PROM), an Erasable Read-Only Memory (EPROM), an electrically Erasable Read-Only Memory (EEPROM), and the like. The memory 110 is used for storing a program, and the processor 130 executes the program after receiving an execution instruction, and the method executed by the process disclosed in any of the foregoing embodiments of the present invention may be applied to the processor 120, or implemented by the processor 120.
The processor 120 may be an integrated circuit chip having signal processing capabilities. The Processor 120 may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; but may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
First embodiment
Referring to fig. 2, fig. 2 is a flowchart illustrating a storage sharing method according to a first embodiment of the present invention, where the method is applied to a blockchain distributed network topology. The flow shown in fig. 2 will be described in detail below, and the method includes:
step S110: when a data storage request initiated by a client is obtained, the data storage request is recorded to an account book and stored in each full node.
When an individual or enterprise holds idle resources, the idle resources can be uploaded to the blockchain distributed network topology through a client to be stored. Optionally, the client may generate a data storage request in response to a data storage instruction of a user, and send the data storage request to the blockchain distributed network topology.
After the block chain distributed network topology acquires the data storage request, the request can be recorded into an account book, and the account book is synchronized to all the nodes for storage. The ledger is aggregated from all the transactions in the block and is used for storing a table of data.
Step S120: and determining a plurality of target storage nodes from the at least one storage node, and sending the information of the target storage nodes to the client.
Wherein the information of the target storage node comprises an address of the target storage node.
Step S130: and acquiring the resources to be stored sent by the client, and storing the fragmented resources to be stored in the target storage nodes in a manner that each target storage node stores a piece of sub-resource after the resources to be stored are fragmented.
After receiving the information of the target storage nodes, the client may upload the resource to be stored to each target storage node of the block chain distributed network topology for storage.
Optionally, the block chain distributed network topology may first segment the resource to be stored to form multiple sub-resources, and then store each sub-resource in one target storage node, so that one target storage node stores one sub-resource or multiple sub-resources.
The block chain distributed network topology may divide the resource to be stored into multiple sub-resources according to a pre-stored fragmentation threshold (for example, 8MB or 32MB), where the length of each sub-resource is equal to the fragmentation threshold, and when the length of a certain sub-resource is less than the fragmentation threshold, 0 may be used for padding.
Of course, optionally, in order to ensure the security of the data, the client may encrypt the resource to be stored and then send the encrypted resource to the blockchain distributed network topology. The encryption method is determined according to the actual situation of the client user.
Step S140: and backing up the resources to be stored to other storage nodes based on a pre-saved security policy.
The security policy defines the number of resources to be stored that need to be backed up. The backup operation is performed to ensure the security and availability of the resources to be stored.
Assuming that there are b target storage nodes in the block chain distributed network topology, the resource to be stored is fragmented into p parts, and the backup part of each data fragment is n. The probability Rs of successful data retrieval is given by:
Figure GDA0001855726150000061
of course, the block chain distributed network topology may further include an observation node, configured to monitor whether the number of current backup data reaches a value defined by the security policy, and if not, continue to issue the backup task until the number of backup data in the remaining storage nodes reaches the value defined by the security policy.
Step S150: and updating the storage node information for storing and backing up the resources to be stored and the state information of the resources to be stored to the account book.
The state information of the resource to be stored comprises: and if the resources to be stored are stored, storing a plurality of parts and distributing the parts at which nodes. And updating the storage node information for storing and backing up the resources to be stored and the state information of the resources to be stored to the account book so that a subsequent client can retrieve data based on the account book.
As an alternative implementation, referring to fig. 3, after step S150, the method may further include:
step S160: when a data retrieval request initiated by the client is obtained, the data retrieval request is recorded to the ledger and stored in each full node.
Step S170: and after the client is determined to retrieve the resource to be stored, updating the state of the resource to be stored.
As an optional implementation manner, before determining that the client retrieves the resource to be stored, the method further includes:
and pushing the storage node information for storing and backing up the resources to be stored to the client so that the client actively establishes contact with the storage node for storing and backing up the resources to be stored to retrieve the resources to be stored.
As another optional implementation, synchronizing the data retrieval request to a storage node storing and backing up the resource to be stored;
and the storage node for storing and backing up the resources to be stored passively pushes the resources to be stored to the client.
Of course, optionally, the client may also pay the reward after uploading the resource to be stored. After the client retrieves the resource to be stored, the client may also send a proof book to the blockchain distributed network topology to prove that the target storage node actually stores the resource to be stored.
After obtaining the certificate ledger sent by the client, the distributed network topology may issue rewards to the target storage nodes based on the certificate ledger.
Optionally, a check code randomly generated by the client or the observation node over time is stored in the certification account book, and based on the certification account book, awards are issued to the target storage nodes, where the method includes:
and sending the check code to the target storage nodes, so that the target storage nodes generate a check tree based on the check code. And the target storage node sends the check tree to the client or any one observation node for verification within preset time. When the check code is judged to be consistent with the generation path of the check tree, the representation verification is successful, and rewards can be issued to the target storage nodes.
Optionally, the observation node may further continuously adjust backup and distribution of resources to be stored, so as to ensure that the current data file is secure and has at least one accessible resource. An observation node may require other storage nodes to save a copy of the data if a storage node is unavailable. Sometimes, the old node is only temporarily disconnected from the network or is accidentally down, and when the old node is reconnected to the network, the problem arises that which node should continue to store the data backup and obtain the reward. For this case, the blockchain distributed network topology is determined according to the credit level of the node. In principle, a storage node with a high credit rating will continue to store data and receive a storage reward, and a low credit rating will require deletion of data.
The credit grade is calculated according to the total storage amount, the storage duration, the online duration, the punished amount, the maximum transaction processing amount, the block outlet degree, the bifurcation convergence degree, the online duration and the like of the current node.
Second embodiment
Referring to fig. 4, fig. 4 is a block diagram illustrating a memory sharing device 400 according to a second embodiment of the present invention. The block diagram of fig. 4 will be explained, and the apparatus shown comprises:
a record saving module 410, configured to, when a data storage request initiated by a client is obtained, record the data storage request to an account book and save the data storage request in each full node;
a determining module 420, configured to determine multiple target storage nodes from the at least one storage node, and send information of the multiple target storage nodes to the client;
an obtaining and storing module 430, configured to obtain a resource to be stored sent by the client, and store the fragmented resource to be stored in the multiple target storage nodes in a manner that each target storage node stores a piece of sub-resource after the resource to be stored is fragmented;
the backup module 440 is configured to backup the resource to be stored to other storage nodes based on a pre-saved security policy;
the updating module 450 is configured to update the storage node information for storing and backing up the resource to be stored and the state information of the resource to be stored to the ledger.
In this embodiment, please refer to the contents described in the embodiments shown in fig. 1 to fig. 3 for the process of implementing each function of each functional module of the storage sharing device 400, which is not described herein again.
In addition, an embodiment of the present invention further provides a blockchain distributed network topology, including at least one storage node and at least one full node, where the storage node and the full node include a memory and a processor, and a computer program is stored in the memory, and when the computer program is executed by the processor, the blockchain distributed network topology is enabled to execute the storage sharing method described in any of the first embodiments.
In summary, the storage sharing method, the storage sharing apparatus, and the block chain distributed network topology provided in the embodiments of the present invention include at least one storage node and at least one full node, and in the method, when a data storage request initiated by a client is obtained, the data storage request is recorded in an account book and stored in each full node; then determining a plurality of target storage nodes from the at least one storage node, and sending the information of the target storage nodes to the client; then, resources to be stored sent by the client are obtained, and the fragmented resources to be stored are stored in the target storage nodes in a mode that each target storage node stores a piece of sub-resource after the resources to be stored are fragmented; then backing up the resources to be stored to other storage nodes based on a pre-saved security strategy; and finally, updating the storage node information for storing and backing up the resources to be stored and the state information of the resources to be stored to the account book, so that the resources to be stored are stored in a plurality of storage nodes in a fragmentation mode, the safety of data is ensured, meanwhile, the resources to be stored are backed up, and the retrievable probability of the data is increased.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus embodiments described above are merely illustrative, and for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, the functional modules in the embodiments of the present invention may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes. It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention. It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (7)

1. A storage sharing method applied to a blockchain distributed network topology including at least one storage node and at least one full node, the method comprising:
when a data storage request initiated by a client is obtained, recording the data storage request to an account book and storing the data storage request in each full node;
determining a plurality of target storage nodes from the at least one storage node, and sending information of the target storage nodes to the client;
acquiring resources to be stored sent by the client, and storing the fragmented resources to be stored in the target storage nodes in a manner that each target storage node stores a piece of sub-resource after the resources to be stored are fragmented;
backing up the resources to be stored to other storage nodes based on a pre-saved security policy;
updating storage node information for storing and backing up the resources to be stored and state information of the resources to be stored to the account book;
when a data retrieval request initiated by the client is obtained, recording the data retrieval request to the account book and storing the data retrieval request in each full node;
after the client side is determined to retrieve the resources to be stored, updating the state of the resources to be stored;
acquiring a certificate account book sent by the client after the client retrieves the resource to be stored;
issuing an award to the plurality of target storage nodes based on the attestation ledger;
the block chain distributed network topology further includes at least one observation node, the certification account book stores a check code generated by the client, and the issuing of the reward to the target storage nodes based on the certification account book includes:
sending the check code to the plurality of target storage nodes, so that the plurality of target storage nodes generate a check tree based on the check code;
sending the check tree to the client for verification within preset time, and acquiring verification information fed back by each client, or sending the check tree to any one observation node for verification within preset time, and acquiring verification information fed back by the observation node;
issuing a reward to the plurality of target storage nodes upon determining that the verification information characterizes a verification pass.
2. The method of claim 1, wherein prior to determining that the client retrieves the resource to be stored, the method further comprises:
and pushing the storage node information for storing and backing up the resources to be stored to the client so that the client actively establishes contact with the storage node for storing and backing up the resources to be stored to retrieve the resources to be stored.
3. The method of claim 1, wherein prior to determining that the client retrieves the resource to be stored, the method further comprises:
synchronizing the data retrieval request to a storage node for storing and backing up the resources to be stored;
and the storage node for storing and backing up the resources to be stored passively pushes the resources to be stored to the client.
4. The method according to claim 1, wherein the obtaining the resource to be stored sent by the client comprises:
and acquiring the encrypted resources to be stored sent by the client.
5. The method according to claim 1, wherein the fragmenting the resource to be stored comprises:
and dividing the resource to be stored into a plurality of sub-resources according to a pre-stored fragmentation threshold, wherein the length of each sub-resource is equal to the fragmentation threshold.
6. A storage sharing apparatus applied to a blockchain distributed network topology including at least one storage node and at least one full node, the apparatus comprising:
the record storage module is used for recording the data storage request to an account book and storing the data storage request in each full node when the data storage request initiated by the client is acquired;
the determining module is used for determining a plurality of target storage nodes from the at least one storage node and sending the information of the target storage nodes to the client;
the acquisition and storage module is used for acquiring the resources to be stored sent by the client, fragmenting the resources to be stored, and storing the fragmented resources to be stored in the target storage nodes in a manner that each target storage node stores a piece of sub-resource;
the backup module is used for backing up the resources to be stored to other storage nodes based on a pre-saved security strategy;
the updating module is used for updating the storage node information for storing and backing up the resources to be stored and the state information of the resources to be stored to the account book; the data retrieval system is further used for recording the data retrieval request to the account book and storing the data retrieval request in each full node when the data retrieval request initiated by the client is obtained; after the client side is determined to retrieve the resources to be stored, updating the state of the resources to be stored; acquiring a certificate account book sent by the client after the client retrieves the resource to be stored; issuing an award to the plurality of target storage nodes based on the attestation ledger;
the block chain distributed network topology further comprises at least one observation node, the certification account book stores a check code generated by the client, and the update module is further configured to send the check code to the target storage nodes, so that the target storage nodes generate a check tree based on the check code; sending the check tree to the client for verification within preset time, and acquiring verification information fed back by each client, or sending the check tree to any one observation node for verification within preset time, and acquiring verification information fed back by the observation node; issuing a reward to the plurality of target storage nodes upon determining that the verification information characterizes a verification pass.
7. A blockchain distributed network topology comprising at least one storage node and at least one full node, the storage node and the full node comprising a memory, a processor, a computer program stored in the memory, the computer program when executed by the processor causing the blockchain distributed network topology to perform the method of any of claims 1-5.
CN201811186986.0A 2018-10-11 2018-10-11 Storage sharing method and device and block chain distributed network topology Active CN109271115B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811186986.0A CN109271115B (en) 2018-10-11 2018-10-11 Storage sharing method and device and block chain distributed network topology

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811186986.0A CN109271115B (en) 2018-10-11 2018-10-11 Storage sharing method and device and block chain distributed network topology

Publications (2)

Publication Number Publication Date
CN109271115A CN109271115A (en) 2019-01-25
CN109271115B true CN109271115B (en) 2021-07-30

Family

ID=65195929

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811186986.0A Active CN109271115B (en) 2018-10-11 2018-10-11 Storage sharing method and device and block chain distributed network topology

Country Status (1)

Country Link
CN (1) CN109271115B (en)

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109901953B (en) * 2019-02-14 2022-07-08 新华三技术有限公司成都分公司 Data reconstruction method and device
CN109800211B (en) * 2019-04-17 2019-08-13 深圳市先河系统技术有限公司 Control method, system and the relevant device of decentralization storage
CN110321074B (en) * 2019-05-20 2021-07-09 西安电子科技大学 Consensus method for safety storage certification based on block chain and distributed storage system
CN110855761B (en) * 2019-10-29 2021-09-21 深圳前海微众银行股份有限公司 Data processing method and device based on block chain system
CN111159195A (en) * 2019-12-31 2020-05-15 余俊龙 Data storage control method and equipment in block chain system
CN111368327A (en) * 2020-02-27 2020-07-03 中国联合网络通信集团有限公司 Data sharing method and device, electronic equipment and readable storage medium
CN111414426A (en) * 2020-03-26 2020-07-14 北京云图科瑞科技有限公司 Data processing method and system based on block chain
CN112416881A (en) * 2020-10-23 2021-02-26 易联众信息技术股份有限公司 Intelligent terminal storage sharing method, device, medium and equipment based on block chain
CN113052957A (en) * 2021-03-19 2021-06-29 北京润尼尔网络科技有限公司 Three-dimensional virtual simulation experiment method and device and electronic equipment
CN113179320B (en) * 2021-04-27 2022-10-18 顶象科技有限公司 Storage method and device for public letter files
CN114884713A (en) * 2022-04-26 2022-08-09 中通服慧展科技有限公司 Information protection method, device, equipment and medium
CN116842029B (en) * 2023-09-01 2023-11-17 天津理工大学 Asset management method, device, computer equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106612285A (en) * 2016-12-30 2017-05-03 Tcl集团股份有限公司 Distributed cloud data management method and system based on peer-to-peer network
CN106897906A (en) * 2017-02-28 2017-06-27 北京众享比特科技有限公司 Exciting-simulator system content distribution method and system
CN108076148A (en) * 2017-12-15 2018-05-25 成都链网络科技有限公司 Storage system based on block chain
CN108111585A (en) * 2017-12-15 2018-06-01 成都链网络科技有限公司 Distributed storage method based on block chain
CN108197969A (en) * 2017-12-07 2018-06-22 北京交通大学 A kind of D2D based on block chain shares the system and its implementation of reward

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170132630A1 (en) * 2015-11-11 2017-05-11 Bank Of America Corporation Block chain alias for person-to-person payments

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106612285A (en) * 2016-12-30 2017-05-03 Tcl集团股份有限公司 Distributed cloud data management method and system based on peer-to-peer network
CN106897906A (en) * 2017-02-28 2017-06-27 北京众享比特科技有限公司 Exciting-simulator system content distribution method and system
CN108197969A (en) * 2017-12-07 2018-06-22 北京交通大学 A kind of D2D based on block chain shares the system and its implementation of reward
CN108076148A (en) * 2017-12-15 2018-05-25 成都链网络科技有限公司 Storage system based on block chain
CN108111585A (en) * 2017-12-15 2018-06-01 成都链网络科技有限公司 Distributed storage method based on block chain

Also Published As

Publication number Publication date
CN109271115A (en) 2019-01-25

Similar Documents

Publication Publication Date Title
CN109271115B (en) Storage sharing method and device and block chain distributed network topology
CN110868440B (en) Block chain male chain
US10762479B2 (en) Method and system for processing blockchain-based real-time transaction
CN110011788B (en) Data processing method, system and related equipment based on block chain
US7707248B2 (en) Credit-based peer-to-peer storage
US10091230B1 (en) Aggregating identity data from multiple sources for user controlled distribution to trusted risk engines
US20180293557A1 (en) Method of charging electronic currency automatically based on blockchain and system thereof
US10552640B2 (en) In-situ data verification for the cloud
CN110049087B (en) Credibility verification method, system, device and equipment of alliance chain
US9712327B1 (en) System and method for remote storage auditing
CN109063423B (en) Application software authorization method and system
CN110046901B (en) Credibility verification method, system, device and equipment of alliance chain
CN111262822B (en) File storage method, device, block link point and system
US20100088520A1 (en) Protocol for determining availability of peers in a peer-to-peer storage system
JP7278299B2 (en) Data management server, data utilization server, data distribution system, data management method and program
CN109584071B (en) Block chain processing method and electronic equipment
CN112612856A (en) Data processing method and device based on block chain
CN110278246B (en) Certificate storage service transfer method, device and equipment for alliance chain
JP7447127B2 (en) Preventing the sending of accidental copies of data records to a distributed ledger system
CN111245897A (en) Data processing method, device, system, storage medium and processor
CN111026711A (en) Block chain based data storage method and device, computer equipment and storage medium
CN111339551A (en) Data verification method and related device and equipment
US20210365433A1 (en) Method and apparatus for managing data based on blockchain
CN112084201B (en) Distributed account book processing method and device, storage medium and electronic equipment
CN110225103B (en) Service recommendation method, device and equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant