CN108664216A - Date storage method and device - Google Patents

Date storage method and device Download PDF

Info

Publication number
CN108664216A
CN108664216A CN201810294367.7A CN201810294367A CN108664216A CN 108664216 A CN108664216 A CN 108664216A CN 201810294367 A CN201810294367 A CN 201810294367A CN 108664216 A CN108664216 A CN 108664216A
Authority
CN
China
Prior art keywords
equipment
data
storage
block chain
block
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810294367.7A
Other languages
Chinese (zh)
Other versions
CN108664216B (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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201810294367.7A priority Critical patent/CN108664216B/en
Publication of CN108664216A publication Critical patent/CN108664216A/en
Application granted granted Critical
Publication of CN108664216B publication Critical patent/CN108664216B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/0608Saving storage space on storage systems
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/12Applying verification of the received information
    • 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
    • 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/0629Configuration or reconfiguration of storage systems
    • G06F3/0631Configuration or reconfiguration of storage systems by allocating resources to storage systems
    • 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/0647Migration 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]

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

Present disclose provides a kind of date storage method and devices, belong to field of terminal technology.Method includes:When detect have at least two second equipment in block chain network when, data to be stored are sent at least two second equipment, the first equipment and at least two second equipment belong to block chain network;When at least two second equipment, which store, to be completed, the first storage event information is generated;Based on the first storage event information, the first block is generated, the first block is added in the block chain configured in each equipment into block chain network.By the above process, data in first equipment can be stored into the second equipment, while saving the memory space of the first equipment, improve the utilization rate of the second equipment, and data storage is carried out by block chain technology, can ensure data safety and conveniently storage event is inquired later, it can be seen that this date storage method is a kind of economical and practical and safe and efficient date storage method.

Description

Date storage method and device
Technical field
This disclosure relates to field of terminal technology more particularly to a kind of date storage method and device.
When background technology
With the continuous development of terminal technology, the data stored in terminal are more and more, e.g., picture, video or text etc. Data, these data are stored in terminal, need to occupy memory space, and the memory space in terminal is largely occupied, and can be dropped The speed of service of low terminal, influences terminal capabilities, so how reasonably to store data becomes people's very concern.
In general, in order to reduce occupancy of the data to terminal storage space, people can carry out cloud storage to data, need to The data to be stored are uploaded in Cloud Server, to make data be stored in the memory space of Cloud Server.
Invention content
To overcome the problems in correlation technique, present disclose provides a kind of date storage method and devices.
According to the first aspect of the embodiments of the present disclosure, a kind of date storage method is provided, the first equipment is applied to, including:
When detect have at least two second equipment in block chain network when, by data to be stored be sent to it is described at least Two the second equipment, described at least two second equipment are the equipment for having data storage capacities, first equipment and described At least two second equipment belong to the block chain network;
When described at least two second equipment, which store, to be completed, the first storage event information, the first storage thing are generated Part information is used to indicate the data storage events of first equipment and at least two second equipment;
Based on the first storage event information, the first block is generated, first block is added to the block chain In the block chain configured in each equipment in network, first block is for storing the first storage event information.
In a kind of possible realization method, it is described by data to be stored be sent to described at least two second equipment it Before, the method further includes:
Multiple equipment transmission data into the block chain network stores inquiry request, and the data store inquiry request For inquiring whether each equipment has data storage capacities;
When the storage for receiving at least two equipment allows information, confirmly detecting in block chain network has at least two Second equipment.
In a kind of possible realization method, before the transmission inquiry request to multiple second equipment transmission datas, the side Method further includes:
Obtain the first character string that user inputs on said first device;
Receive the second character string of multiple equipment;
Compare the second character string of first character string and the multiple equipment;
When first character string is identical as the second character string of the multiple equipment, by first equipment with it is described Multiple equipment forms the block chain network.
It is described that data to be stored are sent to described at least two second equipment packets in a kind of possible realization method It includes:
It is signed to the characteristic value of the data according to the private key of first equipment, obtains signing messages;
The signing messages is added in the data, and is sent out the data after addition as the data to be stored It send to described at least two second equipment.
It is described to store event information based on described first in a kind of possible realization method, the first block is generated, it will be described After first block is added in the block chain configured in each equipment into the block chain network, the method further includes:
When receiving the data removal request to the data, according to the first of the data the storage event information, really Fixed described at least two second equipment;
Inquiry request is deleted to described at least two second equipment transmission datas, the data delete inquiry request for referring to Show described at least two second equipment by least two third equipment in the data backup to the block chain network, it is described extremely Few two third equipment are at least two equipment for not storing the data;
When receiving when allowing to delete information of described at least two second equipment, the data are deleted.
According to the second aspect of the embodiment of the present disclosure, a kind of date storage method is provided, is applied to the second equipment, including:
When the data for receiving the first equipment store inquiry request, whether detection second equipment has data storage energy Power, the data storage inquiry request is for inquiring whether each equipment has data storage capacities;
When determining that second equipment has data storage capacities, sending storage to first equipment allows information;
Receive and store the data that first equipment is sent;
After the completion of storage, the first block is obtained, set each into the block chain network is added in first block In the block chain configured on standby, first block is for storing the first storage event information.
In a kind of possible realization method, the data for receiving and storing the first equipment transmission include:
Receive the data that first equipment is sent;
When the signing messages entrained by the data being decrypted successfully according to the public key of first equipment, is obtained One characteristic value;
Obtain the Second Eigenvalue of the data portion in the data;
When the First Eigenvalue is identical with the Second Eigenvalue, the data are stored.
It is described to store event information based on described first in a kind of possible realization method, the first block is generated, it will be described After first block is added in the block chain configured in each equipment into the block chain network, the method further includes:
When the data for receiving the first equipment delete inquiry request, the data are sent at least two third equipment In, the data delete inquiry request be used to indicate second equipment by the data backup to the block chain network extremely Few two third equipment, at least two thirds equipment are at least two equipment for not storing the data;
When at least two thirds equipment, which stores, to be completed, the second storage event information, the second storage thing are generated Part information is used to indicate the data storage events of second equipment and at least two thirds equipment;
Based on the second storage event information, the second block is generated, second block is added to the block chain In the block chain configured in each equipment in network;
Deletion information will be allowed to be sent to first equipment, it is described that deletion information is allowed to be used to indicate first equipment Delete the data.
According to the third aspect of the embodiment of the present disclosure, a kind of data storage device is provided, including:
Sending module, be configured as when detect have at least two second equipment in block chain network when, will be to be stored Data are sent to described at least two second equipment, and described at least two second equipment are the equipment for having data storage capacities, First equipment and at least two second equipment belong to the block chain network;
Generation module is configured as when described at least two second equipment store completion, generates the first storage event letter Breath, the first storage event information are used to indicate the data storage thing of first equipment and at least two second equipment Part;
Module is added, is configured as storing event information based on described first, the first block is generated, by first block In the block chain configured in addition to each equipment in the block chain network, first block is for storing described first Store event information.
In a kind of possible realization method, described device further includes detection module, is configured as:
Multiple equipment transmission data into the block chain network stores inquiry request, and the data store inquiry request For inquiring whether each equipment has data storage capacities;
When the storage for receiving at least two equipment allows information, confirmly detecting in block chain network has at least two Second equipment.
In a kind of possible realization method, described device further includes comprising modules, is configured as:
Obtain the first character string that user inputs on said first device;
Receive the second character string of multiple equipment;
Compare the second character string of first character string and the multiple equipment;
When first character string is identical as the second character string of the multiple equipment, by first equipment with it is described Multiple equipment forms the block chain network.
In a kind of possible realization method, the sending module is configured as:
It is signed to the characteristic value of the data according to the private key of first equipment, obtains signing messages;
The signing messages is added in the data, and is sent out the data after addition as the data to be stored It send to described at least two second equipment.
In a kind of possible realization method, described device further includes removing module, is configured as:
When receiving the data removal request to the data, according to the first of the data the storage event information, really Fixed described at least two second equipment;
Inquiry request is deleted to described at least two second equipment transmission datas, the data delete inquiry request for referring to Show described at least two second equipment by least two third equipment in the data backup to the block chain network, it is described extremely Few two third equipment are at least two equipment for not storing the data;
When receiving when allowing to delete information of described at least two second equipment, the data are deleted.
According to the fourth aspect of the embodiment of the present disclosure, a kind of data storage device is provided, including:
Detection module is configured as, when the data storage inquiry request for receiving the first equipment, detecting second equipment Whether data storage capacities are had, and the data storage inquiry request is for inquiring whether each equipment has data storage energy Power;
Sending module is configured as when determining that second equipment has data storage capacities, to first equipment Sending storage allows information;
Memory module is received, the data that first equipment is sent are configured to receive and store;
Acquisition module is configured as after the completion of storage, obtains the first block, first block is added to the area In the block chain configured in each equipment in block chain network, first block is for storing the first storage event letter Breath.
In a kind of possible realization method, the reception memory module is configured as:
Receive the data that first equipment is sent;
When the signing messages entrained by the data being decrypted successfully according to the public key of first equipment, is obtained One characteristic value;
Obtain the Second Eigenvalue of the data portion in the data;
When the First Eigenvalue is identical with the Second Eigenvalue, the data are stored.
In a kind of possible realization method, described device further includes removing module, is configured as:
When the data for receiving the first equipment delete inquiry request, the data are sent at least two third equipment In, the data delete inquiry request be used to indicate second equipment by the data backup to the block chain network extremely Few two third equipment, at least two thirds equipment are at least two equipment for not storing the data;
When at least two thirds equipment, which stores, to be completed, the second storage event information, the second storage thing are generated Part information is used to indicate the data storage events of second equipment and at least two thirds equipment;
Based on the second storage event information, the second block is generated, second block is added to the block chain In the block chain configured in each equipment in network;
Deletion information will be allowed to be sent to first equipment, it is described that deletion information is allowed to be used to indicate first equipment Delete the data.
According to a fifth aspect of the embodiments of the present disclosure, a kind of data storage device is provided, including:
Processor;
Memory for storing the executable instruction of processor;
Wherein, the processor is configured as:
When detect have at least two second equipment in block chain network when, by data to be stored be sent to it is described at least Two the second equipment, described at least two second equipment are the equipment for having data storage capacities, first equipment and described At least two second equipment belong to the block chain network;
When described at least two second equipment, which store, to be completed, the first storage event information, the first storage thing are generated Part information is used to indicate the data storage events of first equipment and at least two second equipment;
Based on the first storage event information, the first block is generated, first block is added to the block chain In the block chain configured in each equipment in network, first block is for storing the first storage event information.
According to a fifth aspect of the embodiments of the present disclosure, a kind of data storage device is provided, including:
Processor;
Memory for storing the executable instruction of processor;
Wherein, the processor is configured as:
When the data for receiving the first equipment store inquiry request, whether detection second equipment has data storage energy Power, the data storage inquiry request is for inquiring whether each equipment has data storage capacities;
When determining that second equipment has data storage capacities, sending storage to first equipment allows information;
Receive and store the data that first equipment is sent;
After the completion of storage, the first block is obtained, set each into the block chain network is added in first block In the block chain configured on standby, first block is for storing the first storage event information.
According to the 6th of the embodiment of the present disclosure the aspect, a kind of computer readable storage medium is provided, it is described computer-readable It is stored with computer program in storage medium, first aspect and second aspect are realized when the computer program is executed by processor The method and step.
It should be understood that above general description and following detailed description is only exemplary and explanatory, not The disclosure can be limited.
The advantageous effect brought of technical solution that the embodiment of the present disclosure provides is:
When the first equipment needs to store data, in the first equipment and the block chain network of multiple equipment composition, determine The second equipment for having data storage capacities is stored data to be stored at least two second equipment by block chain technology In, and the block of the data storage events is added in the block chain configured in each equipment into the block chain network. By the above process, the data in the first equipment can be stored into the second equipment, in the memory space for saving the first equipment While, the utilization rate of the second equipment is improved, and data storage is carried out by block chain technology, can ensure that data are pacified Entirely, and conveniently storage event can be inquired later, it can be seen that, this date storage method is a kind of economical and practical and pacifies Complete efficient date storage method.
Description of the drawings
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the disclosure Example, and together with specification for explaining the principles of this disclosure.
Fig. 1 is a kind of flow chart of date storage method shown according to an exemplary embodiment;
Fig. 2 is a kind of flow chart of date storage method shown according to an exemplary embodiment;
Fig. 3 is a kind of flow chart of date storage method shown according to an exemplary embodiment;
Fig. 4 is a kind of block diagram of data storage device shown according to an exemplary embodiment;
Fig. 5 is a kind of block diagram of data storage device shown according to an exemplary embodiment;
Fig. 6 is a kind of block diagram of data storage device 600 shown according to an exemplary embodiment.
Specific implementation mode
To keep the purpose, technical scheme and advantage of the disclosure clearer, below in conjunction with attached drawing to disclosure embodiment party Formula is described in further detail.
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment Described in embodiment do not represent all implementations consistent with this disclosure.On the contrary, they be only with it is such as appended The example of the consistent device and method of some aspects be described in detail in claims, the disclosure.
Fig. 1 is a kind of flow chart of date storage method shown according to an exemplary embodiment.As shown in Figure 1, the number It is applied in the first equipment according to storage method, includes the following steps.
In a step 101, when detect have at least two second equipment in block chain network when, data to be stored are sent out Send at least two second equipment, at least two second equipment are the equipment for having data storage capacities, first equipment and should At least two second equipment belong to the block chain network.
In a step 102, when at least two second equipment, which stores, to be completed, the first storage event information is generated, this One storage event information is used to indicate the data storage events of first equipment and at least two second equipment.
In step 103, it is based on the first storage event information, the first block is generated, which is added to this In the block chain configured in each equipment in block chain network, first block is for storing the first storage event letter Breath.
The embodiment of the present disclosure provide date storage method, when the first equipment need store data when, the first equipment with In the block chain network of multiple equipment composition, determines have the second equipment of data storage capacities, will be waited for by block chain technology The data of storage are stored at least two second equipment, and the block of the data storage events is added to the block link network In the block chain configured in each equipment in network.By the above process, the data in the first equipment can be stored to second In equipment, while saving the memory space of the first equipment, the utilization rate of the second equipment is improved, and pass through block chain skill Art carries out data storage, can ensure data safety and conveniently inquire later storage event, it can be seen that, it is this Date storage method is a kind of economical and practical and safe and efficient date storage method.
In a kind of possible realization method, before data to be stored are sent at least two second equipment, this method Further include:
Multiple equipment transmission data into the block chain network stores inquiry request, and data storage inquiry request is used for Inquire whether each equipment has data storage capacities;
When the storage for receiving at least two equipment allows information, confirmly detecting in block chain network has at least two Second equipment.
In a kind of possible realization method, before sending inquiry request to multiple second equipment transmission datas, this method is also wrapped It includes:
Obtain the first character string that user inputs in first equipment;
Receive the second character string of multiple equipment;
Compare the second character string of the first character string and multiple equipment;
When the first character string is identical as the second character string of multiple equipment, the first equipment and multiple equipment are formed into block Chain network.
In a kind of possible realization method, data to be stored, which are sent at least two second equipment, includes:
It is signed to the characteristic value of the data according to the private key of first equipment, obtains signing messages;
The signing messages is added in the data, and the data to be stored as this of the data after addition are sent to this At least two second equipment.
In a kind of possible realization method, based on the first storage event information, the first block is generated, by first block After in the block chain configured in addition to each equipment in the block chain network, this method further includes:
When receiving the data removal request to the data, according to the first of the data the storage event information, determining should At least two second equipment;
Inquiry request is deleted at least two second equipment transmission datas, which deletes inquiry request and be used to indicate this extremely Lack two the second equipment by least two third equipment in the data backup to the block chain network, at least two thirds equipment The equipment for not storing the data at least two;
When receiving when allowing to delete information of at least two second equipment, the data are deleted.
The alternative embodiment that any combination forms the disclosure may be used, herein no longer in above-mentioned all optional technical solutions It repeats one by one.
Fig. 2 is a kind of flow chart of date storage method shown according to an exemplary embodiment.As shown in Fig. 2, the number It is applied in the second equipment according to storage method, includes the following steps.
In step 201, when the data storage inquiry request for receiving the first equipment, detect whether second equipment has Data storage capacities, data storage inquiry request is for inquiring whether each equipment has data storage capacities.
In step 202, it when determining that second equipment has data storage capacities, sends storage to first equipment and permits Perhaps information.
In step 203, the data of first equipment transmission are received and stored.
In step 204, after the completion of storage, the first block is obtained, which is added to the block chain network In in the block chain that is configured in each equipment, first block is for storing the first storage event information.
The embodiment of the present disclosure provide date storage method, when the first equipment need store data when, the first equipment with In the block chain network of multiple equipment composition, determines have the second equipment of data storage capacities, will be waited for by block chain technology The data of storage are stored at least two second equipment, and the block of the data storage events is added to the block link network In the block chain configured in each equipment in network.By the above process, the data in the first equipment can be stored to second In equipment, while saving the memory space of the first equipment, the utilization rate of the second equipment is improved, and pass through block chain skill Art carries out data storage, can ensure data safety and conveniently inquire later storage event, it can be seen that, it is this Date storage method is a kind of economical and practical and safe and efficient date storage method.
In a kind of possible realization method, the data for receiving and storing first equipment transmission include:
Receive the data of first equipment transmission;
When the signing messages entrained by the data being decrypted successfully according to the public key of first equipment, the first spy is obtained Value indicative;
Obtain the Second Eigenvalue of the data portion in the data;
When the First Eigenvalue is identical with the Second Eigenvalue, the data are stored.
In a kind of possible realization method, based on the first storage event information, the first block is generated, by first block After in the block chain configured in addition to each equipment in the block chain network, this method further includes:
When the data for receiving the first equipment delete inquiry request, at least two third equipment are sent the data to In, which deletes inquiry request and is used to indicate second equipment by the data backup to the block chain network at least two the Three equipment, at least two thirds equipment are at least two equipment for not storing the data;
When at least two thirds equipment, which stores, to be completed, the second storage event information is generated, the second storage event letter Breath is used to indicate the data storage events of second equipment and at least two thirds equipment;
Based on the second storage event information, the second block is generated, which is added into the block chain network In the block chain configured in each equipment;
Deletion information will be allowed to be sent to first equipment, this allows deletion information to be used to indicate first equipment deletion should Data.
Fig. 3 is a kind of flow chart of date storage method shown according to an exemplary embodiment.As shown in figure 3, including Following steps.
In step 301, when the first character string of the first equipment is identical as the second character string of multiple equipment, by first Equipment forms block chain network with multiple equipment.
Wherein, the first equipment and multiple equipment can be that mobile phone, computer or tablet device etc. have network transmission The storage device of function, the embodiment of the present disclosure is to this without specifically limiting.
Wherein, the first character string is the character string that is inputted in the first equipment of user, and the second character string is user except the The character string inputted in multiple equipment outside one equipment, the character string can be user-defined character string, or set Preset character string in standby, for the embodiment of the present disclosure to this without specifically limiting, which can be by number, letter and symbol At least a kind of composition in number, the embodiment of the present disclosure is to this without specifically limiting.
In the embodiments of the present disclosure, the first equipment and multiple equipment are based on input character string and form block chain network packet Following steps 301A is included to step 301D:
In step 301A, the first equipment obtains the first character string that user inputs in first equipment.
Detailed process is, when the first equipment detects specified operation, input frame to be shown, when the first equipment passes through the input When frame gets character string input by user, using the character string as the first character string.
Wherein, specified operation can be the operation for triggering block chain network and establishing, for example, when the first equipment detects user When to the start-up operation of specified application, start specified application, which can be to the specified application The block chain provided establishes the clicking operation of option, when detecting the clicking operation, can show input frame and follow-up Process.The specified application is the application program for carried out based on block chain data storage.
Further, in order to which multiple equipment and the first equipment are formed block chain network, multiple equipment needs to obtain user The second character string inputted in multiple equipment, multiple equipment obtain the process of second character string and above-mentioned first equipment The process for obtaining the first character string is identical, and details are not described herein.
In step 301B, the first equipment receives the second character string of multiple equipment.
When multiple equipment obtains the second character string, which is sent to the first equipment.The transmission process can Being triggered manually by user, e.g., delivery option is shown in the specified application of equipment, when detecting user to the transmission When the trigger action of option, the second character string is sent to the first equipment.Certainly, the transmission process can also be equipment automatically into Row, e.g., equipment is sent automatically after getting the second character string, and the embodiment of the present disclosure is to this without specifically limiting.
The above process is illustrated for obtaining the second character string for inputting in real time of user based on equipment, and in actual field Jing Zhong, the first equipment send block chain to multiple equipment and establish request, any one equipment is receiving block chain foundation request When, pre-stored second character string is sent to the first equipment.Pre-stored second character string can be that user makes by oneself Justice simultaneously stores the preset characters string into equipment or in equipment.
In step 301C, the first equipment compares second character string of first character string and multiple equipment.
When first equipment gets the second character string of multiple equipment, one by one by each second character string and the first character string It is compared.
In step 301D, when the first character string of the first equipment is identical as the second character string of multiple equipment, by this First equipment forms the block chain network with multiple equipment.
The embodiment of the present disclosure is equal with the second character string transmitted by multiple equipment the second character string of transmission and multiple equipment For identical as the first character string, in fact, the second character string transmitted by multiple equipment may not also be with the first character It goes here and there identical, but has the second character string of part identical as the first character string, that is to say, only having equipment component in multiple equipment can Block chain network is formed with the first equipment.
Wherein, include three or three or more equipment altogether in block chain network.Since character string is defined by the user, institute Will have the first equipment of identical characters string and multiple equipment to form block chain network, user can be helped to establish the small of oneself Type block chain network.Further, when the number of devices with identical characters string that the first equipment is got is less than two, no Block chain network can be formed.
In the embodiment of the present disclosure, the first character string is for verifying whether to set the first equipment with multiple with the second character string Standby composition block chain can form block chain network by the verification of character string according to user demand, therefore when the first character string When being differed with the second character string, which will not be added block chain network, ensure the privacy of block chain network with this And safety.
In step 302, multiple equipment transmission data of first equipment into the block chain network stores inquiry request, should Data storage inquiry request is for inquiring whether each equipment has data storage capacities.
After first equipment forms block chain network with multiple equipment, when the first equipment needs to store data to block link network When in the equipment in network, inquiry request can be stored to each equipment transmission data in block chain network, to detect block The equipment for having data storage capacities in chain network ensures the normal storage of data, and data storage inquiry request carries this The data volume of data, the data volume are used to indicate the size of memory space shared by the data.
In the embodiment of the present disclosure, multiple equipment transmission data of first equipment into the block chain network stores inquiry request Process can be:When the first equipment detects that user chooses the data in the first equipment, display data the Save option, the number Be used to indicate according to the Save option and store the data into the equipment in block chain network, when detect user to the data store When the triggering of option, generates data and store inquiry request, and data storage inquiry request is sent to where the first equipment Equipment in block chain network.Wherein, the data in the first equipment can be the number such as picture, video or text in the first equipment According to the embodiment of the present disclosure is to this without specifically limiting.
In step 303, when equipment receive the first equipment data store inquiry request, detect whether the equipment has Data storage capacities.
The detailed process of the detection includes:The equipment judges whether the device capability information refers to according to device capability information Show that the equipment has store function.When the device capability information indicates that the equipment does not have store function, the equipment is determined not Have data storage capacities.When the device capability information indicates that the equipment has store function, detects the remaining of the equipment and hold Amount, and compare the residual capacity and data volume, wherein residual capacity is used to indicate the size of residual memory space in the equipment, When the residual capacity is more than the data volume, determine that the equipment has data storage capacities, when the residual capacity is less than the data When amount, determine that the equipment does not have data storage capacities.
In step 304, when determining that the equipment has data storage capacities, which sends to first equipment and stores Allow information.
Wherein, storage, which allows information to be used to indicate, allows the first equipment to store the data to the information of the equipment.When this When equipment determination has data storage capacities, generating storage allows information, and storage permission information is sent to the first equipment.
Optionally, it when equipment, which detects, does not have data storage capacities, generates storage and forbids information, and storage is forbidden Information is sent to the first equipment, and to prompt user to check in time, this does not have the equipment of data storage capacities, so as to its into The equipment is e.g. deleted from block chain network or is cleared up the memory space of equipment, set with restoring this by row respective handling Standby data storage capacities etc..
In the embodiments of the present disclosure, storage permission information forbids carrying the equipment mark of the equipment in information with the storage Know, so that the first equipment can identify the equipment according to the device identification of the equipment.
In step 305, when the storage that the first equipment receives at least two equipment allows information, area is confirmly detected There are at least two second equipment in block chain network.
Wherein, the second equipment is the equipment for having data storage capacities.Permit when the first equipment receives at least two storages Perhaps when information, according to the device identification that the storage allows to carry in information, at least two equipment is identified, at least two equipment Referred to as at least two second equipment.
It within step 306, will be to be stored when the first equipment, which detects, has at least two second equipment in block chain network Data be sent at least two second equipment.
In the embodiments of the present disclosure, the first equipment by data to be stored be sent at least two second equipment include with Lower step 306A to step 306B:
In step 306A, the first equipment signs to the characteristic value of the data according to the private key of first equipment, obtains To signing messages.
It is stored with private key in first equipment, which has associated public key, and a pair of of public key and private key can be used for difference Equipment is based on asymmetric algorithm come the reliability in verification information source.The characteristic value of the data is based on the data, according to feature A string of character strings that value-based algorithm is calculated, this feature value can be used for the unique mark data.
In step 306B, which is added in the data by the first equipment, and using the data after addition as Data to be stored are sent at least two second equipment.
Data are stored at least two equipment in block chain network, can be stored at least two equipment Identical portion data, can ensure data safety, when the device fails for being stored with the data, can also pass through area Other equipment in block chain network checks the data.
Further, data to be stored can be sent to the second equipment by wireless network, such as WI-FI (wireless locals Net, Wireless Fidelity) etc., the second equipment, e.g., 2G (2nd can also be sent to by mobile communications network Generation, Generation Mobile Telecommunication System technology), 3G (3rd Generation, 3rd generation mobile communication technology), 4G (4th Generation, fourth generation mobile communication technology) or 5G (5rd Generation, the 5th third-generation mobile communication technology) etc., this hair Bright embodiment is to this without specifically limiting.
In above-mentioned steps, be with the first equipment detect in block chain network there are two the second equipment when, will be to be stored Data illustrate for being sent to two second equipment.And in actual scene, when the first equipment detects block chain network In there are two when above second equipment, data to be stored can be sent in second equipment of two or more two or more A, the embodiment of the present disclosure is to this without specifically limiting.
In step 307, the second equipment receives and stores the data of first equipment transmission.
After data to be stored are sent to the second equipment by the first equipment, the second equipment is according in the data to be stored The signing messages receives and stores data.
In the embodiments of the present disclosure, the second equipment receives and stores the processes of data and includes the following steps 307A to step 307E:
In step 307A, the second equipment receives the data of first equipment transmission.
In step 307B, the second equipment carries out the signing messages entrained by the data according to the public key of first equipment Decryption.
Second equipment is obtained according to the device identification in data from the correspondence between stored equipment and public key The public key of first equipment is taken, and signing messages is decrypted based on the public key.When the second equipment successful decryption, then explanation should Data to be stored are sent by the first equipment, and next storing process can be continued to execute.When the second equipment cannot succeed When decryption, then illustrate that the data to be stored may not be to be sent by the first equipment, in order to protect the safety of the second equipment, prevents The only malicious attack of other equipment does not continue to store the data.
By above-mentioned decrypting process, it can ensure that the data stored in the second equipment are sent by the first equipment, prevent Other equipment malicious access.
In step 307C, when the second equipment successful decryption, the First Eigenvalue is obtained.
In step 307D, the second equipment obtains the Second Eigenvalue of the data portion in the data.
First and second in above-mentioned the First Eigenvalue and Second Eigenvalue be not related to it is any about numerical values recited or The restriction of person's acquisition sequence, the First Eigenvalue are only used for indicating the feature that the signing messages provided based on the first equipment is decrypted Value, and Second Eigenvalue is used to indicate the characteristic value generated in real time based on the data received.
When the second equipment determines that the data are sent by the first equipment, the data portion in the data to be stored is obtained, The Second Eigenvalue of the data is calculated by identical feature value-based algorithm in above-mentioned and step 306A according to the data portion.
In step 307E, the second equipment compares the First Eigenvalue and the Second Eigenvalue.
When the First Eigenvalue is identical with the Second Eigenvalue, the data are stored.When the second equipment stores the data After the completion, it generates storage and completes information, and storage completion information is sent to the first equipment.Optionally, when the fisrt feature When value and the Second Eigenvalue differ, the data are not stored, while the second equipment can also send storage not to the first equipment Information is completed, the storing process does not complete to the first equipment of prompt, so that user grasps situation in time, and carries out corresponding position Reason.
It is whether identical as the First Eigenvalue by verifying Second Eigenvalue, it can ensure that the data received are the first equipment The complete data sent out, prevent other equipment from being distorted to the malice of the data.
In step 308, after the completion of data storage, the first equipment obtains the first storage event information of the data, should First storage event information is used to indicate the data storage events of first equipment and at least two second equipment, firstth area Block is for storing the first storage event information.
Wherein, the device identification of the characteristic value, the first equipment of the data is included at least in the first storage event information With the device identification of the second equipment.First equipment generates the first storage event information, Neng Goufang according to the storing process of the data Just the storage condition of the first equipment query data.
When the first equipment, which receives at least two storages, completes information, determine that the data have been stored into block chain network At least two second equipment, the first equipment according to this storage event generate first storage event information.
In a step 309, the first equipment is based on the first storage event information, the first block is generated, by firstth area Block is added in the block chain configured in each equipment into the block chain network.
When first equipment generates the first block, which can be sent in the other equipment in block chain network, The other equipment is the equipment in addition to first equipment in block chain network, when other equipment receives the first block, by this Block is added in the block chain that equipment is configured, to ensure that all devices in block chain network are configured with identical block Chain.
Further, when the first equipment in block chain network and at least two second equipment generation data storage events When, if any one or more equipment are in off-mode in the block chain network at this time, once the equipment is in booting shape Under state, first block can be added in the block chain configured to the equipment automatically for block chain network, to ensure block link network Block in the block chain that each equipment in network is configured is identical.
When the first equipment needs to store data, in the first equipment and the block chain network of multiple equipment composition, determine The second equipment for having data storage capacities is stored data to be stored at least two second equipment by block chain technology In, and the block of the data storage events is added in the block chain configured in each equipment into the block chain network. By the above process, the data in the first equipment can be stored into the second equipment, in the memory space for saving the first equipment While, the utilization rate of the second equipment is improved, and data storage is carried out by block chain technology, can ensure that data are pacified Entirely, and conveniently storage event can be inquired later, it can be seen that, this date storage method is a kind of economical and practical and pacifies Complete efficient date storage method.
Further, the data in the first equipment can also be deleted, e.g., when what is stored in the memory space of the first equipment When overabundance of data, the occupancy to the first device memory can be reduced by deleting data, ensure the performance of the first equipment, Data are not lost in order to ensure, it, can be to the number before deleting data when data are stored to the equipment in block chain network According to further being backed up, include the following steps 310A to step 310F the step of deleting data after data backup again:
In step 310A, when the first equipment receives the data removal request to the data, according to the of the data One storage event information, determines at least two second equipment.
Detailed process is, when the first equipment detects that user chooses the data in the first equipment, generates data and deletes choosing , which deletes option and is used to indicate and deletes the data in first equipment, when detecting that user deletes the data When the trigger action of option, data removal request is generated, the device identification of the first equipment is included at least in the data removal request With the characteristic value of the data.First equipment searches the first storage event of the data in block chain according to the data removal request Information, and the second equipment that the data are stored in block chain network is determined according to the first storage event information.
In step 310B, the first equipment deletes inquiry request, the data at least two second equipment transmission data It deletes inquiry request and is used to indicate at least two second equipment by the data backup to the block chain network at least two the Three equipment.
At least two thirds equipment is at least two equipment for not storing the data, which can be with It is determined by least two second equipment by detecting, detection process detects at least two second equipment with above-mentioned first equipment Process it is identical, refer to above-mentioned steps 302-305, details are not described herein.
When the first equipment according to this first storage event information, determine the second equipment that the data are stored in block chain network When, it generates data and deletes inquiry request, and data deletion inquiry request is sent at least two second equipment.
In step 310C, when the data that the second equipment receives the first equipment delete inquiry request, the second equipment will The data are sent at least two third equipment.
In step 310D, when at least two thirds equipment, which stores, to be completed, the second equipment generates the second storage event Information, the second storage event information are used to indicate the data storage events of second equipment and at least two thirds equipment. Then, it is based on the second storage event information, the second block is generated, which is added to each in the block chain network In the block chain configured in equipment, second block is for storing the second storage event information.
Wherein, at least two second equipment store the data to the mistake of at least two third equipment in the block chain network Journey, stores data with above-mentioned first equipment identical to the process of at least two second equipment, refers to above-mentioned steps 302-307, Details are not described herein.
In step 310E, when the second equipment determines that the storage of at least two third equipment is completed, the second equipment will allow It deletes information and is sent to first equipment, this, which allows to delete information, is used to indicate first equipment and deletes the data.
In step 310F, when the first equipment receives when allowing to delete information of at least two second equipment, deletion The data.
For first equipment when deleting data, according to the block chain configured in the first equipment, it is to be deleted that determination is stored with this for elder generation Second equipment of data, and by the data by the second device backup to third equipment, the first equipment determines that third equipment has backed up After the completion, then data are deleted, has both reduced the occupancy of memory space in the first equipment of data pair, also ensured the storage peace of data Entirely, even if when the second device fails, such as occur to lose data or can not check when data, user can also look at The data stored in third equipment.
Fig. 4 is a kind of block diagram of data storage device shown according to an exemplary embodiment.With reference to Fig. 4, the device packet It includes sending module 401, generation module 402 and module 403 is added.
The sending module 401, be configured as when detect have at least two second equipment in block chain network when, will wait depositing The data of storage are sent at least two second equipment, which is the equipment for having data storage capacities, First equipment and at least two second equipment belong to the block chain network.
The generation module 402 is configured as when at least two second equipment stores completion, generates the first storage event Information, the first storage event information are used to indicate the data storage events of first equipment and at least two second equipment.
The addition module 403 is configured as, based on the first storage event information, the first block being generated, by firstth area Block is added into the block chain configured in each equipment in the block chain network, and first block is for storing described first Store event information.
The embodiment of the present disclosure provide data storage device, when the first equipment need store data when, the first equipment with In the block chain network of multiple equipment composition, determines have the second equipment of data storage capacities, will be waited for by block chain technology The data of storage are stored at least two second equipment, and the block of the data storage events is added to the block link network In the block chain configured in each equipment in network.By the above process, the data in the first equipment can be stored to second In equipment, while saving the memory space of the first equipment, the utilization rate of the second equipment is improved, and pass through block chain skill Art carries out data storage, can ensure data safety and conveniently inquire later storage event, it can be seen that, it is this Date storage method is a kind of economical and practical and safe and efficient date storage method.
In a kind of possible realization method, which further includes detection module 405, is configured as:
Multiple equipment transmission data into the block chain network stores inquiry request, and data storage inquiry request is used for Inquire whether each equipment has data storage capacities;
When the storage for receiving at least two equipment allows information, confirmly detecting in block chain network has at least two Second equipment.
In a kind of possible realization method, which further includes comprising modules 406, is configured as:
Obtain the first character string that user inputs in first equipment;
Receive the second character string of multiple equipment;
Compare second character string of first character string and multiple equipment;
When first character string is identical as the second character string of multiple equipment, by first equipment and multiple equipment Form the block chain network.
In a kind of possible realization method, which is configured as:
It is signed to the characteristic value of the data according to the private key of first equipment, obtains signing messages;
The signing messages is added in the data, and the data to be stored as this of the data after addition are sent to this At least two second equipment.
In a kind of possible realization method, which further includes removing module 408, is configured as:
When receiving the data removal request to the data, according to the first of the data the storage event information, determining should At least two second equipment;
Inquiry request is deleted at least two second equipment transmission data, which deletes inquiry request and be used to indicate this At least two second equipment set at least two third equipment in the data backup to the block chain network, at least two third Standby is at least two equipment for not storing the data;
When receiving when allowing to delete information of at least two second equipment, the data are deleted.
About the device in above-described embodiment, wherein modules execute the concrete mode of operation in related this method Embodiment in be described in detail, explanation will be not set forth in detail herein.
Fig. 5 is a kind of block diagram of data storage device shown according to an exemplary embodiment.With reference to Fig. 5, the device packet It includes detection module 501, sending module 502, receive memory module 503 and acquisition module 504.
The detection module 501 is configured as, when the data storage inquiry request that receive the first equipment, detecting this and second setting Standby whether to have data storage capacities, data storage inquiry request is for inquiring whether each equipment has data storage energy Power.
The sending module 502 is configured as when determining that second equipment has data storage capacities, to first equipment Sending storage allows information.
The reception memory module 503 is configured to receive and store the data of first equipment transmission.
The acquisition module 504 is configured as after the completion of storage, obtains the first block, which is added to this In the block chain configured in each equipment in block chain network, first block is for storing the first storage event letter Breath.
The embodiment of the present disclosure provide data storage device, when the first equipment need store data when, the first equipment with In the block chain network of multiple equipment composition, determines have the second equipment of data storage capacities, will be waited for by block chain technology The data of storage are stored at least two second equipment, and the block of the data storage events is added to the block link network In the block chain configured in each equipment in network.By the above process, the data in the first equipment can be stored to second In equipment, while saving the memory space of the first equipment, the utilization rate of the second equipment is improved, and pass through block chain skill Art carries out data storage, can ensure data safety and conveniently inquire later storage event, it can be seen that, it is this Date storage method is a kind of economical and practical and safe and efficient date storage method.
In a kind of possible realization method, which is configured as:
Receive the data of first equipment transmission;
When the signing messages entrained by the data being decrypted successfully according to the public key of first equipment, the first spy is obtained Value indicative;
Obtain the Second Eigenvalue of the data portion in the data;
When the First Eigenvalue is identical with the Second Eigenvalue, the data are stored.
In a kind of possible realization method, which further includes removing module 504, is configured as:
When the data for receiving the first equipment delete inquiry request, at least two third equipment are sent the data to In, which deletes inquiry request and is used to indicate second equipment by the data backup to the block chain network at least two the Three equipment, at least two thirds equipment are at least two equipment for not storing the data;
When at least two thirds equipment, which stores, to be completed, the second storage event information is generated, the second storage event letter Breath is used to indicate the data storage events of second equipment and at least two thirds equipment;
Based on the second storage event information, the second block is generated, which is added into the block chain network In the block chain configured in each equipment;
Deletion information will be allowed to be sent to first equipment, this allows deletion information to be used to indicate first equipment deletion should Data.
About the device in above-described embodiment, wherein modules execute the concrete mode of operation in related this method Embodiment in be described in detail, explanation will be not set forth in detail herein.
Fig. 6 is a kind of block diagram of data storage device 600 shown according to an exemplary embodiment.For example, data store Device 600 can be mobile phone, computer, digital broadcast terminal, messaging devices, game console, tablet device, doctor Treat equipment, body-building equipment, personal digital assistant etc..
With reference to Fig. 6, device 600 may include following one or more components:Processing component 602, memory 604, power supply Component 606, multimedia component 608, audio component 610, the interface 612 of input/output (I/O), sensor module 614, and Communication component 616.
The integrated operation of 602 usual control device 600 of processing component, such as with display, call, data communication, phase Machine operates and record operates associated operation.Processing component 602 may include that one or more processors 620 refer to execute It enables, to perform all or part of the steps of the methods described above.In addition, processing component 602 may include one or more modules, just Interaction between processing component 602 and other assemblies.For example, processing component 602 may include multi-media module, it is more to facilitate Interaction between media component 608 and processing component 602.
Memory 604 is configured as storing various types of data to support the operation in device 600.These data are shown Example includes instruction for any application program or method that are operated on device 600, contact data, and telephone book data disappears Breath, picture, video etc..Memory 604 can be by any kind of volatibility or non-volatile memory device or their group It closes and realizes, such as static RAM (SRAM), electrically erasable programmable read-only memory (EEPROM) is erasable to compile Journey read-only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash Device, disk or CD.
Power supply module 606 provides electric power for the various assemblies of device 600.Power supply module 606 may include power management system System, one or more power supplys and other generated with for device 600, management and the associated component of distribution electric power.
Multimedia component 608 is included in the screen of one output interface of offer between the device 600 and user.At some In embodiment, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen Touch screen is may be implemented as, to receive input signal from the user.Touch panel includes one or more touch sensors To sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense the side of touch or sliding action Boundary, but also detect and the touch or the relevant duration and pressure of slide.In some embodiments, multimedia component 608 include a front camera and/or rear camera.When device 600 is in operation mode, such as screening-mode or video screen module When formula, front camera and/or rear camera can receive external multi-medium data.Each front camera and postposition are taken the photograph As head can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 610 is configured as output and/or input audio signal.For example, audio component 610 includes a Mike Wind (MIC), when device 600 is in operation mode, when such as call model, logging mode and speech recognition mode, microphone by with It is set to reception external audio signal.The received audio signal can be further stored in memory 604 or via communication set Part 616 is sent.In some embodiments, audio component 610 further includes a loud speaker, is used for exports audio signal.
I/O interfaces 612 provide interface between processing component 602 and peripheral interface module, and above-mentioned peripheral interface module can To be keyboard, click wheel, button etc..These buttons may include but be not limited to:Home button, volume button, start button and lock Determine button.
Sensor module 614 includes one or more sensors, and the state for providing various aspects for device 600 is commented Estimate.For example, sensor module 614 can detect the state that opens/closes of equipment 600, the relative positioning of component, such as the group Part is the display and keypad of device 600, and sensor module 614 can be with 600 1 components of detection device 600 or device The temperature of position change, the existence or non-existence that user contacts with device 600,600 orientation of device or acceleration/deceleration and device 600 Degree variation.Sensor module 614 may include proximity sensor, be configured to detect without any physical contact attached The presence of nearly object.Sensor module 614 can also include optical sensor, such as CMOS or ccd image sensor, for being imaged It is used in.In some embodiments, the sensor module 614 can also include acceleration transducer, gyro sensor, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 616 is configured to facilitate the communication of wired or wireless way between device 600 and other equipment.Device 600 can access the wireless network based on communication standard, such as Wi-Fi, 2G or 3G or combination thereof.In an exemplary reality It applies in example, communication component 616 receives broadcast singal or the related letter of broadcast from external broadcasting management system via broadcast channel Breath.In one exemplary embodiment, which further includes near-field communication (NFC) module, to promote short range communication. For example, radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band (UWB) skill can be based in NFC module Art, bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 600 can be believed by one or more application application-specific integrated circuit (ASIC), number Number processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for executing the above method.
In the exemplary embodiment, it includes the non-transitorycomputer readable storage medium instructed, example to additionally provide a kind of Such as include the memory 504 of instruction, above-metioned instruction can be executed by the processor 520 of device 500 to complete the above method.For example, The non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk and Optical data storage devices etc..
In the exemplary embodiment, a kind of computer readable storage medium is additionally provided, such as is instructed including at least one, Above-mentioned at least one instruction can be loaded and be executed by processor to complete the date storage method in above-described embodiment.For example, meter Calculation machine readable storage medium storing program for executing can be read-only memory (Read-Only Memory, ROM), random access memory (Random- Access Memory, RAM), CD-ROM (Compact Disc Read-Only Memory, CD-ROM), tape, floppy disk and Optical data storage devices etc..
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to its of the disclosure Its embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or Person's adaptive change follows the general principles of this disclosure and includes the undocumented common knowledge in the art of the disclosure Or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by following Claim is pointed out.
It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by the accompanying claims.

Claims (19)

1. a kind of date storage method, which is characterized in that it is applied to the first equipment, the method includes:
When detect have at least two second equipment in block chain network when, data to be stored are sent to described at least two Second equipment, described at least two second equipment are the equipment for having data storage capacities, first equipment and it is described at least Two the second equipment belong to the block chain network;
When described at least two second equipment, which store, to be completed, the first storage event information, the first storage event letter are generated Breath is used to indicate the data storage events of first equipment and at least two second equipment;
Based on the first storage event information, the first block is generated, first block is added to the block chain network In in the block chain that is configured in each equipment, first block is for storing the first storage event information.
2. according to the method described in claim 1, it is characterized in that, described be sent to described at least two by data to be stored Before second equipment, the method further includes:
Multiple equipment transmission data into the block chain network stores inquiry request, and the data storage inquiry request is used for Inquire whether each equipment has data storage capacities;
When the storage for receiving at least two equipment allows information, confirmly detecting has at least two second in block chain network Equipment.
3. according to the method described in claim 1, it is characterized in that, described ask to the transmission inquiry of multiple second equipment transmission datas Before asking, the method further includes:
Obtain the first character string that user inputs on said first device;
Receive the second character string of multiple equipment;
Compare the second character string of first character string and the multiple equipment;
When first character string is identical as the second character string of the multiple equipment, by first equipment with it is the multiple Equipment forms the block chain network.
4. according to the method described in claim 1, it is characterized in that, described be sent to described at least two by data to be stored Second equipment includes:
It is signed to the characteristic value of the data according to the private key of first equipment, obtains signing messages;
The signing messages is added in the data, and is sent to the data after addition as the data to be stored Described at least two second equipment.
5. according to the method described in claim 1, it is characterized in that, described store event information based on described first, the is generated One block, it is described after first block is added in the block chain configured in each equipment into the block chain network Method further includes:
When receiving the data removal request to the data, according to the first of the data the storage event information, institute is determined State at least two second equipment;
Inquiry request is deleted to described at least two second equipment transmission datas, the data delete inquiry request and are used to indicate institute At least two second equipment are stated by least two third equipment in the data backup to the block chain network, described at least two A third equipment is at least two equipment for not storing the data;
When receiving when allowing to delete information of described at least two second equipment, the data are deleted.
6. a kind of date storage method, which is characterized in that it is applied to the second equipment, the method includes:
When the data for receiving the first equipment store inquiry request, whether detection second equipment has data storage capacities, The data storage inquiry request is for inquiring whether each equipment has data storage capacities;
When determining that second equipment has data storage capacities, sending storage to first equipment allows information;
Receive and store the data that first equipment is sent;
After the completion of storage, the first block is obtained, first block is added into the block chain network in each equipment In the block chain configured, first block is for storing the first storage event information.
7. according to the method described in claim 6, it is characterized in that, the data for receiving and storing first equipment and sending Including:
Receive the data that first equipment is sent;
When the signing messages entrained by the data being decrypted successfully according to the public key of first equipment, the first spy is obtained Value indicative;
Obtain the Second Eigenvalue of the data portion in the data;
When the First Eigenvalue is identical with the Second Eigenvalue, the data are stored.
8. according to the method described in claim 6, it is characterized in that, described store event information based on described first, the is generated One block, after first block is added in the block chain configured in each equipment into the block chain network, institute The method of stating further includes:
When the data for receiving the first equipment delete inquiry request, the data are sent at least two third equipment, The data delete inquiry request be used to indicate second equipment by the data backup to the block chain network at least Two third equipment, at least two thirds equipment are at least two equipment for not storing the data;
When at least two thirds equipment, which stores, to be completed, the second storage event information, the second storage event letter are generated Breath is used to indicate the data storage events of second equipment and at least two thirds equipment;
Based on the second storage event information, the second block is generated, second block is added to the block chain network In in the block chain that is configured in each equipment;
Deletion information will be allowed to be sent to first equipment, it is described that deletion information is allowed to be used to indicate the first equipment deletion The data.
9. a kind of data storage device, which is characterized in that be applied to the first equipment, described device includes:
Sending module, be configured as when detect have at least two second equipment in block chain network when, by data to be stored Described at least two second equipment are sent to, described at least two second equipment are the equipment for having data storage capacities, described First equipment and at least two second equipment belong to the block chain network;
Generation module is configured as when described at least two second equipment store completion, generates the first storage event information, institute State the data storage events that the first storage event information is used to indicate first equipment and at least two second equipment;
Module is added, is configured as storing event information based on described first, generates the first block, first block is added In the block chain configured on to each equipment in the block chain network, first block is for storing first storage Event information.
10. device according to claim 9, which is characterized in that described device further includes detection module, is configured as:
Multiple equipment transmission data into the block chain network stores inquiry request, and the data storage inquiry request is used for Inquire whether each equipment has data storage capacities;
When the storage for receiving at least two equipment allows information, confirmly detecting has at least two second in block chain network Equipment.
11. device according to claim 9, which is characterized in that described device further includes comprising modules, is configured as:
Obtain the first character string that user inputs on said first device;
Receive the second character string of multiple equipment;
Compare the second character string of first character string and the multiple equipment;
When first character string is identical as the second character string of the multiple equipment, by first equipment with it is the multiple Equipment forms the block chain network.
12. device according to claim 9, which is characterized in that the sending module is configured as:
It is signed to the characteristic value of the data according to the private key of first equipment, obtains signing messages;
The signing messages is added in the data, and is sent to the data after addition as the data to be stored Described at least two second equipment.
13. device according to claim 9, which is characterized in that described device further includes removing module, is configured as:
When receiving the data removal request to the data, according to the first of the data the storage event information, institute is determined State at least two second equipment;
Inquiry request is deleted to described at least two second equipment transmission datas, the data delete inquiry request and are used to indicate institute At least two second equipment are stated by least two third equipment in the data backup to the block chain network, described at least two A third equipment is at least two equipment for not storing the data;
When receiving when allowing to delete information of described at least two second equipment, the data are deleted.
14. a kind of data storage device, which is characterized in that be applied to the second equipment, described device includes:
Detection module is configured as, when the data storage inquiry request for receiving the first equipment, whether detecting second equipment Have data storage capacities, the data storage inquiry request is for inquiring whether each equipment has data storage capacities;
Sending module is configured as when determining that second equipment has data storage capacities, is sent to first equipment Storage allows information;
Memory module is received, the data that first equipment is sent are configured to receive and store;
Acquisition module is configured as after the completion of storage, obtains the first block, first block is added to the block chain In the block chain configured in each equipment in network, first block is for storing the first storage event information.
15. device according to claim 14, which is characterized in that the reception memory module is configured as:
Receive the data that first equipment is sent;
When the signing messages entrained by the data being decrypted successfully according to the public key of first equipment, the first spy is obtained Value indicative;
Obtain the Second Eigenvalue of the data portion in the data;
When the First Eigenvalue is identical with the Second Eigenvalue, the data are stored.
16. device according to claim 14, which is characterized in that described device further includes removing module, is configured as:
When the data for receiving the first equipment delete inquiry request, the data are sent at least two third equipment, The data delete inquiry request be used to indicate second equipment by the data backup to the block chain network at least Two third equipment, at least two thirds equipment are at least two equipment for not storing the data;
When at least two thirds equipment, which stores, to be completed, the second storage event information, the second storage event letter are generated Breath is used to indicate the data storage events of second equipment and at least two thirds equipment;
Based on the second storage event information, the second block is generated, second block is added to the block chain network In in the block chain that is configured in each equipment;
Deletion information will be allowed to be sent to first equipment, it is described that deletion information is allowed to be used to indicate the first equipment deletion The data.
17. a kind of data storage device, which is characterized in that including:
Processor;
Memory for storing the executable instruction of processor;
Wherein, the processor is configured as:
When detect have at least two second equipment in block chain network when, data to be stored are sent to described at least two Second equipment, described at least two second equipment are the equipment for having data storage capacities, first equipment and it is described at least Two the second equipment belong to the block chain network;
When described at least two second equipment, which store, to be completed, the first storage event information, the first storage event letter are generated Breath is used to indicate the data storage events of first equipment and at least two second equipment;
Based on the first storage event information, the first block is generated, first block is added to the block chain network In in the block chain that is configured in each equipment, first block is for storing the first storage event information.
18. a kind of data storage device, which is characterized in that including:
Processor;
Memory for storing the executable instruction of processor;
Wherein, the processor is configured as:
When the data for receiving the first equipment store inquiry request, whether detection second equipment has data storage capacities, The data storage inquiry request is for inquiring whether each equipment has data storage capacities;
When determining that second equipment has data storage capacities, sending storage to first equipment allows information;
Receive and store the data that first equipment is sent;
After the completion of storage, the first block is obtained, first block is added into the block chain network in each equipment The block chain configured, first block is for storing the first storage event information.
19. a kind of computer readable storage medium, which is characterized in that be stored with computer in the computer readable storage medium Program realizes claim 1-8 any one of them method and steps when the computer program is executed by processor.
CN201810294367.7A 2018-04-04 2018-04-04 Data storage method and device Active CN108664216B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810294367.7A CN108664216B (en) 2018-04-04 2018-04-04 Data storage method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810294367.7A CN108664216B (en) 2018-04-04 2018-04-04 Data storage method and device

Publications (2)

Publication Number Publication Date
CN108664216A true CN108664216A (en) 2018-10-16
CN108664216B CN108664216B (en) 2021-06-04

Family

ID=63782218

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810294367.7A Active CN108664216B (en) 2018-04-04 2018-04-04 Data storage method and device

Country Status (1)

Country Link
CN (1) CN108664216B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110581854A (en) * 2019-09-12 2019-12-17 北京笔新互联网科技有限公司 intelligent terminal safety communication method based on block chain
WO2020079492A1 (en) * 2018-10-19 2020-04-23 Longenesis Ltd. Systems and methods for blockchain-based health data validation and access management
CN112434040A (en) * 2020-11-30 2021-03-02 泰康保险集团股份有限公司 Data storage method, data acquisition method, device, system and equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107005574A (en) * 2016-12-23 2017-08-01 深圳前海达闼云端智能科技有限公司 Block generation method and device and block chain network
CN107273455A (en) * 2017-05-31 2017-10-20 深圳前海微众银行股份有限公司 Block chain data access method and device
CN107273410A (en) * 2017-05-03 2017-10-20 上海点融信息科技有限责任公司 Distributed storage based on block chain
CN107332876A (en) * 2017-05-31 2017-11-07 深圳前海微众银行股份有限公司 The synchronous method and device of block chain state
US20180039942A1 (en) * 2016-08-07 2018-02-08 Dot Blockchain Music, Inc. Distributed data store for managing media

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180039942A1 (en) * 2016-08-07 2018-02-08 Dot Blockchain Music, Inc. Distributed data store for managing media
CN107005574A (en) * 2016-12-23 2017-08-01 深圳前海达闼云端智能科技有限公司 Block generation method and device and block chain network
CN107273410A (en) * 2017-05-03 2017-10-20 上海点融信息科技有限责任公司 Distributed storage based on block chain
CN107273455A (en) * 2017-05-31 2017-10-20 深圳前海微众银行股份有限公司 Block chain data access method and device
CN107332876A (en) * 2017-05-31 2017-11-07 深圳前海微众银行股份有限公司 The synchronous method and device of block chain state

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020079492A1 (en) * 2018-10-19 2020-04-23 Longenesis Ltd. Systems and methods for blockchain-based health data validation and access management
CN110581854A (en) * 2019-09-12 2019-12-17 北京笔新互联网科技有限公司 intelligent terminal safety communication method based on block chain
CN112434040A (en) * 2020-11-30 2021-03-02 泰康保险集团股份有限公司 Data storage method, data acquisition method, device, system and equipment
CN112434040B (en) * 2020-11-30 2023-09-22 泰康保险集团股份有限公司 Data storage method, data acquisition method, device, system and equipment

Also Published As

Publication number Publication date
CN108664216B (en) 2021-06-04

Similar Documents

Publication Publication Date Title
CN111046365B (en) Face image transmission method, numerical value transfer method, device and electronic equipment
CN104992091B (en) Access the method, apparatus and storage medium of terminal
CN104008348B (en) application control method, device and terminal
CN104125055B (en) Encryption and decryption method and electronic equipment
CN108269334A (en) Method for unlocking, terminal device and smart lock
CN105120122A (en) Alarm method and device
CN105847243A (en) Method and device for accessing smart camera
CN104965732B (en) Desktop starts method and device
KR102421657B1 (en) Method, apparatus and medium for controlling door guard
CN110765434A (en) Identity authentication method and device, electronic equipment and storage medium
EP3367286A1 (en) Methods, apparatuses, computer program and recording medium for protecting information
WO2016011739A1 (en) Method, device, and system for anti-counterfeiting verification
CN108664216A (en) Date storage method and device
CN107959757A (en) User information processing method, device, APP servers and terminal device
CN108022349A (en) Information input method, equipment, smart lock and storage medium
CN109828810A (en) Screen shots intercept method, watermark adding method, device, equipment and medium
JP5500639B2 (en) Terminal device, authentication system, and program
CN106789070A (en) The decryption method of data, device and terminal
CN105069344B (en) mobile terminal locking method and device
CN106534551A (en) Information display method and apparatus
JP2006304157A (en) Mobile terminal and theftproof method thereof
CN106778198A (en) Perform the safety certifying method and device of operation
CN106559575A (en) Information privacy protection method
GB2419783A (en) Security apparatus
CN106503573B (en) Cipher set-up method and device

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