IP Library › Granted Patent US 11,258,583
Granted Patent B2
US 11,258,583 · App. 16/391,727 · Granted Feb 22, 2022

Method for data storage, device, and computer readable data storage medium

Inventors: Liang-Te Chiu (New Taipei, TW); Chi-Jsung Lee (New Taipei, TW)
Assignee: HON HAI PRECISION INDUSTRY CO., LTD.
H04L9/0637G06F16/2379G06F16/248G06F16/2455G06F16/27G06F21/602H04L9/30H04L9/3247H04L2209/38
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 11,258,583
App. No.
16/391,727
Granted
Feb 22, 2022
Kind
B2
Abstract

A method for storing data establishes a blockchain network, a plurality of data blocks being stored on nodes of the blockchain network. The plurality of data blocks is stored in batches to form a plurality of data segments according to a preset storage period. Each data segment written to the blockchain network is encrypted and newly added data blocks are synchronized with the data blocks which are not stored in the data segment. The newly added data blocks, together with the data blocks not yet stored as the data segment are stored after the commencement of the storage period. A data storage device is also provided.

Claims (72)

1. A data storage method, comprising:

establishing a blockchain network, a plurality of data blocks being stored on nodes of the blockchain network;

storing the plurality of data blocks in batches to form a plurality of data segments according to a preset storage period;

encrypting each data segment and writing each data segment to the blockchain network; and

synchronizing newly added data blocks with the data blocks which are not stored as the data segment, and storing the newly added data blocks together with the data blocks which are not stored as the data segment after reaching a beginning of the storage period.

2. The data storage method of claim 1 , wherein the process of encrypting each data segment comprises:

adding a private key digital signature to each data segment; and

generating a public key and publicly disclosing the public key.

3. The data storage method of claim 1 , wherein after forming the data segment, the method further comprises:

editing an information of the data segment and storing the information in the blockchain network;

wherein the information of the data segment comprises a data segment size, a storage time, a starting block number, an ending block number, a data segment verification code, and a data segment storage location.

4. The data storage method of claim 3 , wherein information of the data block comprises an index number of a transaction record and a transaction record.

5. The data storage method of claim 4 , wherein the method further comprises a process of searching for a transaction record, the process comprises:

searching a data segment in the storage time of a transaction record, after receiving a search command;

determining whether the transaction record is found in a current data block of the data segment;

displaying the detailed information of the transaction record, if the transaction record is found in the data block of the data segment.

6. The data storage method of claim 5 , wherein the process of searching for a transaction record further comprises:

searching the transaction record from the data block written earlier than the current data block, if the transaction record is not found in the data block of the data segment;

determining whether the transaction record is found in the data block written earlier than the current data block;

display a result that the transaction record is not found, if the transaction record is not found in the data block written earlier than the current data block;

downloading the data segment corresponding to the transaction record, if the transaction record is found in the data block written earlier than the current data block;

verifying the data segment by the data segment verification code;

finding out the transaction record in the data segment, and displaying the transaction record, if a verification is successful; and

displaying that the data segment verification code is wrong if the verification is unsuccessful.

7. A data storage device, configured to establish a communication connection with at least one server, the data storage device comprising:

a processor;

a storage unit storing one or more programs, when executed by the processor, the one or more programs causing the processor to:

establish a blockchain network, a plurality of data blocks being stored on nodes of the blockchain network;

store the plurality of data blocks in batch to form a plurality of data segments according to a preset storage period;

encrypt each data segment and writing each data segment to the blockchain network; and

synchronize newly added data blocks with the data blocks which are not stored as the data segment, and store the newly added data blocks together with the data blocks which are not stored as the data segment after reaching a beginning of a storage period.

8. The data storage device of claim 7 , wherein the process of encrypting each data segment comprises:

adding a private key digital signature to each data segment; and

generating a public key and publicly disclosing the public key.

9. The data storage device of claim 8 , wherein a storage information of the data segment comprises a data segment size, a storage time, a starting block number, an ending block number, a data segment verification code and a data segment storage location.

10. The data storage device of claim 9 , wherein information of the data block comprises an index number of a transaction record number and a transaction record.

11. The data storage device of claim 10 , wherein the one or more programs further cause the processor to:

search a data segment in the storage time of a transaction record, after receiving a search command;

determine whether the transaction record is found in a current data block of the data segment;

display the detailed information of the transaction record, if the transaction record is found in the data block of the data segment.

12. The data storage device of claim 11 , wherein the one or more programs further cause the processor to:

search the transaction record from the data block written earlier than the current data block, if the transaction record is not found in the data block of the data segment;

determine whether the transaction record is found in the data block written earlier than the current data block;

display a result that the transaction record is not found, if the transaction record is not found in the data block written earlier than the current data block;

download the data segment corresponding to the transaction record, if the transaction record is found in the data block written earlier than the current data block;

verify the data segment by the data segment verification code;

finding out the transaction record in the data segment, and displaying the transaction record, if a verification is successful: and

displaying that the data segment verification code is wrong if the verification is unsuccessful.

13. A computer readable storage medium having stored thereon instructions that, when executed by at least one processor of a computing device, causes the processor to perform a data storage method, wherein the method comprises:

establishing a blockchain network, a plurality of data blocks being stored on nodes of the blockchain network;

storing the plurality of data blocks in batch to form a plurality of data segments according to a preset storage period;

encrypting each data segment and writing each data segment to the blockchain network; and

synchronizing newly added data blocks with the data blocks which are not stored as the data segment, and storing the newly added data blocks together with the data blocks which are not stored as the data segment after reaching a beginning of a storage period.

14. The computer readable storage medium of claim 13 , the process of encrypting each data segment comprises:

adding a private key digital signature to each data segment; and

generating a public key corresponding to the private key and publicly disclosing the public key.

15. The computer readable storage medium of claim 13 , wherein after forming the data segment, the method further comprises:

editing a storage information for the data segment and storing the storage information in the blockchain network;

wherein the storage information of the data segment comprises a data segment size, a storage time, a starting block number, an ending block number, a data segment verification code and a data segment storage location.

16. The computer readable storage medium of claim 15 , wherein information of the data block comprises a transaction record number and a transaction record.

17. The computer readable storage medium of claim 16 , wherein the method further comprises a process of searching for a transaction record, the process comprises:

searching a data segment in the storage time of a transaction record, after receiving a transaction record search command;

determining whether the transaction record is found in a current data block of the data segment;

displaying the detailed information of the transaction record, if the transaction record is found in the data block of the data segment.

18. The computer readable storage medium of claim 17 , wherein the process of searching for a transaction record further comprises:

searching the transaction record from the data block written earlier than the current data block, if the transaction record is not found in the data block of the data segment;

determining whether the transaction record is found in the data block written earlier than the current data block;

display a result that the transaction record is not found, if the transaction record is not found in the data block written earlier than the current data block;

downloading the data segment corresponding to the transaction record, if the transaction record is found in the data block written earlier than the current data block;

verifying the data segment by the data segment verification code;

finding out the transaction record in the data segment, and displaying the transaction record, if a verification is successful; and

displaying that the data segment verification code is wrong if the verification is unsuccessful.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Apr 23, 2019
From: CHIU, LIANG-TE; LEE, CHI-JSUNG
To: HON HAI PRECISION INDUSTRY CO., LTD.
Reel/Frame 048969/0939 →
Priority Claims (1)
CN 201811629888.X · Dec 28, 2018 · national
Continuity (1)
Related Publication 20200213084A1 · Jul 2, 2020