Data storage method and device based on block chain, equipment and storage medium

A data storage and blockchain technology, applied in the computer field, can solve the problems of data authenticity, consistency and security not being guaranteed, databases and database fragments are vulnerable to hacking or forgery, etc., to reduce pressure , the effect of improving safety

Pending Publication Date: 2022-03-29
京北方信息技术股份有限公司
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, databases and database shards are vulnerable to hacking or forgery,

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Data storage method and device based on block chain, equipment and storage medium
  • Data storage method and device based on block chain, equipment and storage medium
  • Data storage method and device based on block chain, equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0026] figure 1 It is a schematic flow diagram of a blockchain-based data storage method provided in Embodiment 1 of the present invention. This embodiment is applicable to the case of storing data, and the method can be implemented by a blockchain-based data storage device to execute. Such as figure 1 As shown, the method specifically includes the following steps:

[0027] Step 110: Divide the target data into at least one piece of data according to a preset piece control strategy, and store the piece of data in a database server; wherein, one database server stores one piece of data.

[0028] Wherein, the complete data table in the database can be used as the target data, and the data table is divided according to a preset fragmentation control strategy. The fragmentation control strategy is set in advance, and the fragmentation control strategy can be to divide the data table into a preset number of behavior units. For example, if the target data is a data table with si...

Embodiment 2

[0048] image 3 It is a schematic flow diagram of a blockchain-based data storage method provided by Embodiment 2 of the present invention. This embodiment is further optimized on the basis of the above-mentioned embodiments. This method can be implemented by a blockchain-based data storage method. device to execute. Such as image 3 As shown, the method specifically includes the following steps:

[0049] Step 310: Divide the target data into at least one piece of data according to a preset piece control strategy, and store the piece of data in a database server; wherein, one database server stores one piece of data.

[0050] Step 320: Perform hash calculation on the fragmented data in the database server according to a preset hash algorithm to obtain a first hash value of the fragmented data.

[0051] Step 330. Obtain a second hash value of the target data according to the first hash value of the fragmented data.

[0052] Step 340, store the first hash value in the block ...

Embodiment 3

[0067] Figure 5 It is a structural block diagram of a blockchain-based data storage device provided in Embodiment 3 of the present invention, which can execute a blockchain-based data storage method provided in any embodiment of the present invention, and has the corresponding functions of the execution method Modules and benefits. Such as Figure 5 As shown, the device specifically includes:

[0068] Fragmentation data determination module 501, for dividing target data into at least one fragmentation data according to preset fragmentation control strategy, and storing said fragmentation data in a database server; wherein, one database server stores one fragmentation data slice data;

[0069] The first hash value obtaining module 502 is configured to perform hash calculation on the fragmented data in the database server according to a preset hash algorithm to obtain a first hash value of the fragmented data;

[0070] A second hash value obtaining module 503, configured to...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The embodiment of the invention discloses a data storage method and device based on a block chain, equipment and a storage medium. The method comprises the following steps: dividing target data into at least one piece of fragmented data according to a preset fragmentation control strategy, and storing the fragmented data into a database server; wherein one database server stores one piece of fragmented data; according to a preset Hash algorithm, performing Hash calculation on the fragmented data in the database server to obtain a first Hash value of the fragmented data; obtaining a second hash value of the target data according to the first hash value of the fragmented data; and storing the first hash value in a block body, and storing the second hash value in a block head to complete data storage of the block chain. The pressure of the database server is relieved, and the safety of data storage is improved.

Description

technical field [0001] Embodiments of the present invention relate to computer technology, and in particular to a blockchain-based data storage method, device, device, and storage medium. Background technique [0002] As the amount of data increases, the data takes up a lot of space when it is stored, the pressure on the database server is high, and the data is easily lost or omitted. Therefore, people's requirements for data storage are getting higher and higher. [0003] Database sharding is a scale-out approach to database architecture that separates a larger database into smaller, faster, and more manageable partitions. A database can be distributed among multiple database server instances, and each database server instance can hold database fragments. However, databases and database shards are vulnerable to hacking or forgery, and the authenticity, consistency, and security of data cannot be guaranteed. Contents of the invention [0004] Embodiments of the present i...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F16/27G06F21/60H04L9/06
CPCG06F16/27G06F21/602H04L9/0643
Inventor 朱兴雄高昊江
Owner 京北方信息技术股份有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products