CN111046407A - Data storage system based on block chain - Google Patents

Data storage system based on block chain Download PDF

Info

Publication number
CN111046407A
CN111046407A CN201911279954.XA CN201911279954A CN111046407A CN 111046407 A CN111046407 A CN 111046407A CN 201911279954 A CN201911279954 A CN 201911279954A CN 111046407 A CN111046407 A CN 111046407A
Authority
CN
China
Prior art keywords
data
original
index
database server
identification
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911279954.XA
Other languages
Chinese (zh)
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.)
Shandong Msunhealth Technology Group Co Ltd
Original Assignee
Shandong Msunhealth Technology Group 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 Shandong Msunhealth Technology Group Co Ltd filed Critical Shandong Msunhealth Technology Group Co Ltd
Priority to CN201911279954.XA priority Critical patent/CN111046407A/en
Publication of CN111046407A publication Critical patent/CN111046407A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/602Providing cryptographic facilities or services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • G06F21/6227Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database where protection concerns the structure of data, e.g. records, types, queries
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2221/00Indexing scheme relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/21Indexing scheme relating to G06F21/00 and subgroups addressing additional information or applications relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/2107File encryption

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Software Systems (AREA)
  • Databases & Information Systems (AREA)
  • Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Data Mining & Analysis (AREA)
  • Computing Systems (AREA)
  • Storage Device Security (AREA)

Abstract

The invention discloses a data storage system based on a block chain, which comprises the block chain, an original database server and a service database server; the original database server transmits the original data to the service database server; a service database server comprising: the system comprises an original data preprocessing module, a data processing module and a data processing module, wherein each piece of original data is processed into an index datum, each index datum consists of a plurality of data items, and each data item comprises a pair of identification data and content data; and the data uplink module is used for respectively carrying out non-reversible encryption and reversible encryption on the identification data and the content data of each data item of the index data and carrying out uplink storage. The original data of the invention is encrypted by the service database server and uploaded to the block chain, thereby improving the cracking difficulty and ensuring the safety of the data.

Description

Data storage system based on block chain
Technical Field
The invention belongs to the technical field of block chains, and particularly relates to a data storage system based on a block chain.
Background
The statements in this section merely provide background information related to the present disclosure and may not necessarily constitute prior art.
Data storage is performed based on a block chain technology, and data security is guaranteed by using the characteristics of block chain decentralization and tamper resistance, and the method is already used in many industries. The inventor knows that at present, at least the following problems exist in terms of blockchain data storage:
at present, the storage of service data is generally direct storage, but when a broadcast mechanism is required to synchronize data in a block chain, the storage of original data occupies a large space, and a great burden is brought to the storage space and the transmission efficiency.
By means of the mechanism of the blockchain, data on the blockchain are appended to transactions and stored in 16-ary systems. All nodes joining the blockchain can access the data on the uplink, and the 16-system data can be easily converted into the ordinary text, so that data leakage is caused. In order to protect data security and prevent data leakage, the current data encryption method usually uses a fixed key to encrypt once, and adopts a reversible encryption algorithm, if the key is cracked or leaked, there is a risk that all data are leaked.
Currently, only data storage is performed in a blockchain, and due to a unique blockchain data structure, data is not easy to access compared with a daily widely used relational database. If the transaction record on the blockchain is to be accessed, the transaction record can only be obtained by searching the corresponding block and the transaction data, and because the storage form of the transaction record is a character string, the application program is required to analyze the character string to obtain the desired service data information, which affects the normal development of the service. There is currently no effective mechanism for data retrieval.
Disclosure of Invention
To overcome the above-mentioned deficiencies of the prior art, the present invention provides a data storage system based on a blockchain. The data security is improved, and the rapid data retrieval is realized.
In order to achieve the above object, one or more embodiments of the present invention provide the following technical solutions:
a data storage system based on a block chain comprises the block chain, an original database server and a service database server; wherein the content of the first and second substances,
the original database server transmits the original data to the service database server;
a service database server comprising:
the system comprises an original data preprocessing module, a data processing module and a data processing module, wherein each piece of original data is processed into an index datum, each index datum consists of a plurality of data items, and each data item comprises a pair of identification data and content data;
and the data uplink module is used for respectively carrying out non-reversible encryption and reversible encryption on the identification data and the content data of each data item of the index data and carrying out uplink storage.
Further, for each data item of the index data, the encryption method specifically includes:
carrying out irreversible encryption on the identification data to obtain an identification data ciphertext; and adding a fixed key as an encryption key to the identification data ciphertext to reversibly encrypt the content data.
Further, after the ciphertext of the index data is obtained, the ciphertext is compressed to obtain a compressed ciphertext.
And further, after the compressed ciphertext is obtained, reversible encryption is carried out on the compressed ciphertext, and the encrypted compressed ciphertext is stored in an uplink mode.
Further, the service database server further includes: and the original data storage module is used for backing up the original data transmitted by the original database server.
Further, the service database server further includes: the data synchronization module is configured to synchronize data on a block chain to a service database server, and specifically includes:
the real-time synchronization unit is used for subscribing the information on the block chain, acquiring the transaction information when a transaction occurs on the block chain, packaging the transaction information as an object and putting the object into a message queue; reading transaction information from the message queue, judging whether the transaction information exists in a service database server, if not, analyzing to obtain index data corresponding to the transaction information, and storing the transaction information and the index data;
the timing synchronization unit acquires the number of the latest complete block in the block chain and the maximum block number of the currently synchronized block in the service database at set time intervals, and judges whether an unsynchronized block exists or not; if the transaction data exists, determining the unsynchronized block numbers, traversing the blocks one by one to obtain the transaction data in the blocks, analyzing to obtain the index data corresponding to the transaction data, and storing the transaction data and the index data.
Furthermore, a data item exists in the index data, the identification data is service type identification information corresponding to the index data, and the content data is a corresponding type name; the method for analyzing the index data comprises the following steps:
carrying out irreversible encryption on the identification information of the plurality of service types to obtain identification data ciphertexts corresponding to different service types;
respectively adding fixed keys to the identification data ciphertexts of different service types, and decrypting corresponding data items in the index data ciphertexts to obtain service types corresponding to the index data;
extracting data information corresponding to the identification data in the index data from the original data storage module, and performing non-reversible encryption to obtain identification data ciphertexts corresponding to the data items;
and respectively adding a fixed key to the identification data ciphertexts, and respectively decrypting corresponding data items in the index data ciphertexts to obtain content data in each data item.
Further, the data synchronization module stores the obtained transaction data and the index data respectively according to the service types.
Further, the service database server further includes: the data access module receives the data access request and acquires the index data from the synchronous data module according to the data access request; and calling corresponding original data from the original database server based on the data identification information in the index data and returning.
Furthermore, a data item exists in the index data, the identification data is the identification information of the original data, and the content data is the encryption string of the original data; after the corresponding original data is called from the original database server, whether the original data is tampered or not is also judged, which specifically comprises the following steps:
acquiring an encryption string in a data item where original data identification information in the index data is located;
calculating an encryption string of the piece of health data called from the original database;
and judging whether the two encryptions are the same, if so, indicating that the two encryptions are not tampered.
The above one or more technical solutions have the following beneficial effects:
the method stores a piece of health data in a JSON string form, each data item comprises a key value and a value, the key value and the value of each data item are respectively subjected to irreversible encryption and reversible encryption, in addition, in each data item, the cipher text of the key value is used as the encryption key of the value, the keys of the data items are ensured to be different, in addition, the encryption of the key value adopts the irreversible encryption, even if the data leakage is sent in the data uplink storage process, the safety of the data can be effectively ensured, other personnel can not identify the leaked data, and the privacy of residents is protected.
According to the invention, each piece of health data is encrypted in a JSON string form and stored in the blockchain, so that the storage space of the blockchain is saved, and data compression is carried out on the basis of data encryption, so that the problems of low storage efficiency and low transmission efficiency of the data in the blockchain or other storage media are solved, and the occupancy rate of the data to a disk and a bandwidth is reduced.
The invention realizes convenient and rapid data retrieval by synchronizing the data on the block chain to the relational database and combining the original database. And the mode of combining real-time synchronization and timing synchronization is adopted, the timeliness of the acquired data is ensured by adopting the real-time synchronization, and the problem of incomplete synchronous data caused by service stop, network interruption and the like is solved by adopting the timing synchronization as the supplement of the real-time synchronization.
By adding the service type information into the JSON string, the synchronized data is organized according to the service requirements, and the service flow can be better supported; through the encryption string of the whole data in the JSON string, the data verification is realized by comparing the encryption string of the original data and the encryption string of the chained data.
Before data chaining, the invention also carries out secondary encryption of data, thereby further improving the data security.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, are included to provide a further understanding of the invention, and are incorporated in and constitute a part of this specification, illustrate exemplary embodiments of the invention and together with the description serve to explain the invention and not to limit the invention.
FIG. 1 is a block chain based data storage system architecture diagram according to an embodiment of the present invention;
FIG. 2 is a diagram illustrating the architecture of functional modules of a service database server according to an embodiment of the present invention;
FIG. 3 is a flow chart of encryption of data items in an embodiment of the invention;
fig. 4 is a flow chart of data item decryption based on an access request in an embodiment of the present invention.
Detailed Description
It is to be understood that the following detailed description is exemplary and is intended to provide further explanation of the invention as claimed. Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.
It is noted that the terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of exemplary embodiments according to the invention. As used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, and it should be understood that when the terms "comprises" and/or "comprising" are used in this specification, they specify the presence of stated features, steps, operations, devices, components, and/or combinations thereof, unless the context clearly indicates otherwise.
The embodiments and features of the embodiments of the present invention may be combined with each other without conflict.
Example one
The embodiment discloses a data storage system based on a block chain, which comprises the block chain, an original database server, a service database server and a client.
The system comprises an original database server, a regional health platform and a regional health database server, wherein the original database server summarizes original medical data of the regional health platform, the regional health platform comprises a provincial-level platform, a local-city-level platform and a district-county-level platform, and the platforms upload and collect data to the original database server step by setting data standards; data in an original database server is firstly transmitted to a service database server, the service database server processes and encrypts the data, and the data are finally stored in a block chain; in addition, the service database server is also used for synchronizing uplink data; and the client side realizes data access through the service database server.
Specifically, the traffic database server, the raw database server, and the client are configured to:
the original database server transmits the health data to the service database server;
a traffic database server configured to:
the original data storage module is used for backing up original data transmitted by an original database server; in this embodiment, the backup has a certain time limit, and the data whose storage time exceeds the set value is automatically deleted.
The system comprises an original data preprocessing module, a data processing module and a data processing module, wherein the original data preprocessing module processes an original piece of health data into an index data, each index data is composed of a plurality of data items, and each data item comprises a pair of identification data and content data; the data item is the identification information of the health data, the content data is the encryption string of the health data, the identification data is the service type identification information corresponding to the index data, and the content data is the corresponding type name.
In this embodiment, each piece of index data is stored in the form of a JSON string. Identification data (key value) in the index data, that is, data that can serve as identification for the piece of index data; content data (value), i.e., specific data content, and one data item has one key value and one value, which are in one-to-one correspondence.
The service type of the index data includes, but is not limited to, health data summary information, user access authorization information, data access information, etc., and numbers 1,2,3 … … may be used to identify different types of index data. Wherein the content of the first and second substances,
the health data summary information includes: identification information and summary content of the summary; wherein, the summary content includes: identification information of health events (such as examination reports and inspection reports), the time and place of occurrence of the event (such as department name), the storage address of the original data, and identification information (such as institution ID) and name of the medical institution from which the data originated. The health events comprise shooting, assay, physical examination and the like, and the division and the number of the events are preset.
The user access authorization information includes: identification information of access authorization records, identification information of health data abstracts authorized to be accessed, authorization time, authorized personnel information, authorization expiration time and the like. The authorized personnel information comprises basic information such as personnel name, age, identification card number and the like.
The data access information includes: identification information of data access records, identification information of accessed health data summaries, data purposes, access time, access personnel, enterprises to which the access personnel belong and the like. The visitor information includes basic information such as the name, age and identification number of the visitor.
As will be understood by those skilled in the art, the index data can be obtained by grouping the data in the above-mentioned health data summary information, user access authorization information, and data access information according to the identification data and the content data.
And the data uplink module is used for encrypting and compressing the index data and performing uplink storage. The method specifically comprises the following steps:
and the data checking unit is used for judging whether the same data exist on the block chain or not for the index data to be subjected to chain loading, if so, the chain loading is not repeated, and if not, the chain loading is carried out through the data encryption unit. The method for judging whether the same data exist on the block chain comprises the following steps:
firstly, judging whether the identification information of the index data exists on the chain or not, and if not, indicating that the same data does not exist; if the data item exists, whether the content information in the data item of the identification information is the same as that in the link is further judged, if so, the data item of the identification information is the same as that in the link, the data item of the identification information is indicated to exist the same data, and if not, the data item of the identification information is indicated to not have the same data.
For example, for the health data summary information class, it is first determined whether summary identification information exists on the chain, and if not, it indicates that there is no identical data; if the data item exists, whether the content information in the data item of the summary identification information is the same as that in the chain is further judged, if so, the data item of the summary identification information is the same, the data item of the summary identification information is indicated to exist the same data, and if not, the data item of the summary identification information is indicated to not have the same data.
And the data encryption unit is used for respectively carrying out non-reversible encryption and reversible encryption on the identification data and the content data for each data item in the index data to be linked, so as to obtain the ciphertext of the index data. In this embodiment, for each data item, the identification data is first irreversibly encrypted by using an MD5 encryption method to obtain an identification data ciphertext; and then, a fixed key is added to the identification data ciphertext to serve as an encryption key, reversible encryption is carried out on the content data, and specifically, an AES encryption method can be adopted. By the encryption method, the ciphertext of the whole index data is obtained, and the key of each data item is different during encryption.
And the data compression unit is used for performing data compression on the ciphertext of the index data to obtain a compressed ciphertext. After the service data is encrypted by the key value and the value, data compression is performed, the size of the data is reduced, and the efficiency of uplink data storage and transmission is improved.
And the ciphertext encryption unit is used for reversibly encrypting the compressed ciphertext and chaining the encrypted compressed ciphertext. And uniformly encrypting the compressed data, wherein the encryption is reversible encryption by adopting a specified secret key. And save the data in 16-ary form into the blockchain.
And the data synchronization module synchronizes the index data from the block chain. The method comprises the following steps:
a real-time synchronization unit configured to:
subscribing the information on the block chain, acquiring the transaction information when a transaction occurs on the block chain, packaging the transaction information as an object, and storing the object in a message queue;
reading transaction information from the message queue, firstly judging whether the transaction record exists in the business database according to the transaction HASH, if not, storing the transaction record, analyzing additional information in the transaction record, namely index data ciphertext to obtain index data, and storing the transaction record and the transaction additional data.
A timing synchronization unit configured to:
acquiring the number of the latest complete block in the block chain and the maximum block number of the currently synchronized block in the service database at set time intervals, and judging whether an unsynchronized block exists or not;
if the transaction data exists, determining the unsynchronized block numbers, traversing the blocks one by one, acquiring and storing the transaction data in the blocks, analyzing the transaction records and the data added in the transaction records, namely the index data ciphertext to obtain the index data, and storing the index data in a storage.
Wherein, analyzing the index data ciphertext comprises:
carrying out irreversible encryption on a plurality of service type identification data to obtain identification data ciphertexts corresponding to different service types;
respectively adding fixed keys to the identification data ciphertexts of different service types, and decrypting corresponding data items in the index data ciphertexts to obtain service types corresponding to the index data;
extracting original field information corresponding to the identification data in the index data from an original data storage module to obtain all values of each identification data in each data item, and performing non-reversible encryption to obtain an identification data ciphertext corresponding to each data item;
respectively adding a fixed key to the identification data ciphertexts, and decrypting corresponding data items in the index data ciphertexts to obtain content data in each data item; thereby obtaining index data in plaintext.
In this embodiment, when the transaction record and the index data are stored, the transaction record and the index data are also stored respectively according to the service types.
And the data access module receives the query request of the client, acquires the query result and returns the query result. The method specifically comprises the following steps:
the data query unit receives the data access request and acquires the index data from the synchronous data module; calling corresponding health data from an original database server based on health data identification information in the index data;
the data checking unit is used for judging whether the health data called from the original database is falsified or not, and if not, returning the health data as a query result; and if the health data is tampered, acquiring the health data from the original data temporary storage module, returning the health data as a query result, and simultaneously recording the tampered event and the content. The method for judging whether the health data called from the original database is tampered or not comprises the following steps:
acquiring content data in a data item where health data identification information in the index data is located, namely an encryption string of the health data;
calculating an encryption string of the piece of health data called from the original database;
and judging whether the two encryptions are the same, if so, indicating that the two encryptions are not tampered.
One or more of the above embodiments have the following technical effects:
the method stores a piece of health data in a JSON string form, each data item comprises a key value and a value, the key value and the value of each data item are respectively subjected to irreversible encryption and reversible encryption, in addition, in each data item, the cipher text of the key value is used as the encryption key of the value, the keys of the data items are ensured to be different, in addition, the encryption of the key value adopts the irreversible encryption, even if the data leakage is sent in the data uplink storage process, the safety of the data can be effectively ensured, other personnel can not identify the leaked data, and the privacy of residents is protected.
According to the invention, each piece of health data is encrypted in a JSON string form and stored in the blockchain, so that the storage space of the blockchain is saved, and data compression is carried out on the basis of data encryption, so that the problems of low storage efficiency and low transmission efficiency of the data in the blockchain or other storage media are solved, and the occupancy rate of the data to a disk and a bandwidth is reduced.
The invention realizes convenient and rapid data retrieval by synchronizing the data on the block chain to the relational database and combining the original database. And the mode of combining real-time synchronization and timing synchronization is adopted, the timeliness of the acquired data is ensured by adopting the real-time synchronization, and the problem of incomplete synchronous data caused by service stop, network interruption and the like is solved by adopting the timing synchronization as the supplement of the real-time synchronization.
By adding the service type information into the JSON string, the synchronized data is organized according to the service requirements, and the service flow can be better supported; through the encryption string of the whole data in the JSON string, the data verification is realized by comparing the encryption string of the original data and the encryption string of the chained data.
Before data chaining, the invention also carries out secondary encryption of data, thereby further improving the data security.
Those skilled in the art will appreciate that the modules or steps of the present invention described above can be implemented using general purpose computer means, or alternatively, they can be implemented using program code that is executable by computing means, such that they are stored in memory means for execution by the computing means, or they are separately fabricated into individual integrated circuit modules, or multiple modules or steps of them are fabricated into a single integrated circuit module. The present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Although the embodiments of the present invention have been described with reference to the accompanying drawings, it is not intended to limit the scope of the present invention, and it should be understood by those skilled in the art that various modifications and variations can be made without inventive efforts by those skilled in the art based on the technical solution of the present invention.

Claims (10)

1. A data storage system based on a block chain is characterized by comprising the block chain, an original database server and a service database server; wherein the content of the first and second substances,
the original database server transmits the original data to the service database server;
a service database server comprising:
the system comprises an original data preprocessing module, a data processing module and a data processing module, wherein each piece of original data is processed into an index datum, each index datum consists of a plurality of data items, and each data item comprises a pair of identification data and content data;
and the data uplink module is used for respectively carrying out non-reversible encryption and reversible encryption on the identification data and the content data of each data item of the index data and carrying out uplink storage.
2. The blockchain-based data storage system of claim 1, wherein the encryption method specifically includes, for each data item of the index data:
carrying out irreversible encryption on the identification data to obtain an identification data ciphertext; and adding a fixed key as an encryption key to the identification data ciphertext to reversibly encrypt the content data.
3. The block chain-based data encryption method of claim 2, wherein after the ciphertext of the index data is obtained, the ciphertext is further compressed to obtain a compressed ciphertext.
4. The block chain-based data encryption method of claim 3, wherein after obtaining the compressed ciphertext, the compressed ciphertext is reversibly encrypted, and the encrypted compressed ciphertext is stored in a chain.
5. The blockchain-based data storage system of claim 2, wherein the traffic database server further comprises: and the original data storage module is used for backing up the original data transmitted by the original database server.
6. The blockchain-based data storage system of claim 5, wherein the traffic database server further comprises: the data synchronization module is configured to synchronize data on a block chain to a service database server, and specifically includes:
the real-time synchronization unit is used for subscribing the information on the block chain, acquiring the transaction information when a transaction occurs on the block chain, packaging the transaction information as an object and putting the object into a message queue; reading transaction information from the message queue, judging whether the transaction information exists in a service database server, if not, analyzing to obtain index data corresponding to the transaction information, and storing the transaction information and the index data;
the timing synchronization unit acquires the number of the latest complete block in the block chain and the maximum block number of the currently synchronized block in the service database at set time intervals, and judges whether an unsynchronized block exists or not; if the transaction data exists, determining the unsynchronized block numbers, traversing the blocks one by one to obtain the transaction data in the blocks, analyzing to obtain the index data corresponding to the transaction data, and storing the transaction data and the index data.
7. The blockchain-based data storage system of claim 6, wherein the index data includes a data item, the identification data is service type identification information corresponding to the index data, and the content data is a corresponding type name; the method for analyzing the index data comprises the following steps:
carrying out irreversible encryption on the identification information of the plurality of service types to obtain identification data ciphertexts corresponding to different service types;
respectively adding fixed keys to the identification data ciphertexts of different service types, and decrypting corresponding data items in the index data ciphertexts to obtain service types corresponding to the index data;
extracting data information corresponding to the identification data in the index data from the original data storage module, and performing non-reversible encryption to obtain identification data ciphertexts corresponding to the data items;
and respectively adding a fixed key to the identification data ciphertexts, and respectively decrypting corresponding data items in the index data ciphertexts to obtain content data in each data item.
8. The blockchain-based data storage system of claim 7, wherein the data synchronization module stores the obtained transaction data and the index data separately according to a service type.
9. The blockchain-based data storage system of claim 6, wherein the traffic database server further comprises: the data access module receives the data access request and acquires the index data from the synchronous data module according to the data access request; and calling corresponding original data from the original database server based on the data identification information in the index data and returning.
10. The blockchain-based data storage system of claim 9, wherein a data item exists in the index data, the identification data is identification information of the piece of original data, and the content data is an encrypted string of the piece of original data; after the corresponding original data is called from the original database server, whether the original data is tampered or not is also judged, which specifically comprises the following steps:
acquiring an encryption string in a data item where original data identification information in the index data is located;
calculating an encryption string of the piece of health data called from the original database;
and judging whether the two encryptions are the same, if so, indicating that the two encryptions are not tampered.
CN201911279954.XA 2019-12-13 2019-12-13 Data storage system based on block chain Pending CN111046407A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911279954.XA CN111046407A (en) 2019-12-13 2019-12-13 Data storage system based on block chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911279954.XA CN111046407A (en) 2019-12-13 2019-12-13 Data storage system based on block chain

Publications (1)

Publication Number Publication Date
CN111046407A true CN111046407A (en) 2020-04-21

Family

ID=70235935

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911279954.XA Pending CN111046407A (en) 2019-12-13 2019-12-13 Data storage system based on block chain

Country Status (1)

Country Link
CN (1) CN111046407A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111552728A (en) * 2020-04-24 2020-08-18 深圳点链科技有限公司 Data processing method, system, terminal and storage medium of block chain
CN111556056A (en) * 2020-04-29 2020-08-18 铭数科技(青岛)有限公司 Enterprise-level mobile communication method and system based on block chain
CN111931237A (en) * 2020-09-15 2020-11-13 支付宝(杭州)信息技术有限公司 Service management method and device based on block chain
CN112015697A (en) * 2020-10-27 2020-12-01 暗链科技(深圳)有限公司 Method and system for archiving data on block chain
CN112487024A (en) * 2020-12-10 2021-03-12 广东电力通信科技有限公司 Power information inquiry and evaluation system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109243548A (en) * 2018-08-22 2019-01-18 广东工业大学 A kind of medical data platform based on block chain technology
CN109376146A (en) * 2018-10-26 2019-02-22 陕西医链区块链集团有限公司 A kind of search engine system and method based on block chain
CN109408594A (en) * 2018-10-26 2019-03-01 陕西医链区块链集团有限公司 A kind of across chain data retrieval system and method based on block chain
CN110069670A (en) * 2019-04-30 2019-07-30 深圳前海微众银行股份有限公司 Purpose data classifying method, device, equipment and computer readable storage medium
CN110391906A (en) * 2019-07-25 2019-10-29 深圳壹账通智能科技有限公司 Data processing method, electronic device and readable storage medium storing program for executing based on block chain
CN110471918A (en) * 2019-07-15 2019-11-19 深圳市中农网有限公司 A kind of relevant database is synchronized to the method and device of block chain

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109243548A (en) * 2018-08-22 2019-01-18 广东工业大学 A kind of medical data platform based on block chain technology
CN109376146A (en) * 2018-10-26 2019-02-22 陕西医链区块链集团有限公司 A kind of search engine system and method based on block chain
CN109408594A (en) * 2018-10-26 2019-03-01 陕西医链区块链集团有限公司 A kind of across chain data retrieval system and method based on block chain
CN110069670A (en) * 2019-04-30 2019-07-30 深圳前海微众银行股份有限公司 Purpose data classifying method, device, equipment and computer readable storage medium
CN110471918A (en) * 2019-07-15 2019-11-19 深圳市中农网有限公司 A kind of relevant database is synchronized to the method and device of block chain
CN110391906A (en) * 2019-07-25 2019-10-29 深圳壹账通智能科技有限公司 Data processing method, electronic device and readable storage medium storing program for executing based on block chain

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111552728A (en) * 2020-04-24 2020-08-18 深圳点链科技有限公司 Data processing method, system, terminal and storage medium of block chain
CN111552728B (en) * 2020-04-24 2021-11-30 深圳点链科技有限公司 Data processing method, system, terminal and storage medium of block chain
CN111556056A (en) * 2020-04-29 2020-08-18 铭数科技(青岛)有限公司 Enterprise-level mobile communication method and system based on block chain
CN111931237A (en) * 2020-09-15 2020-11-13 支付宝(杭州)信息技术有限公司 Service management method and device based on block chain
CN112015697A (en) * 2020-10-27 2020-12-01 暗链科技(深圳)有限公司 Method and system for archiving data on block chain
CN112015697B (en) * 2020-10-27 2021-02-02 暗链科技(深圳)有限公司 Method and system for archiving data on block chain
CN112487024A (en) * 2020-12-10 2021-03-12 广东电力通信科技有限公司 Power information inquiry and evaluation system
CN112487024B (en) * 2020-12-10 2023-10-31 广东电力通信科技有限公司 Electric power information inquiry and evaluation system

Similar Documents

Publication Publication Date Title
CN111046407A (en) Data storage system based on block chain
Xu et al. A blockchain-enabled deduplicatable data auditing mechanism for network storage services
US10296248B2 (en) Turn-control rewritable blockchain
CN111079162B (en) Data encryption method, data decryption method and data encryption system based on block chain
US9967088B2 (en) Rewritable blockchain
CN107124281B (en) Data security method and related system
CN105656920B (en) A kind of encryption and decryption method and system for posting number of packages evidence based on express delivery
CN106603561B (en) Block level encryption method and more granularity deduplication methods in a kind of cloud storage
US20090235091A1 (en) Computer system for indexing and storing sensitive, secured, information on a non-trusted computer storage array
CN111339201B (en) Evaluation method and system based on block chain
CN109308421A (en) A kind of information tamper resistant method, device, server and computer storage medium
US20200134205A1 (en) Data processing apparatus and data processing method for internet of things system
CN110543526B (en) Optimized storage method and system based on block chain
CN100476844C (en) Method for realizing binding function between electronic key and computer
CN109254893B (en) Service data auditing method, device, server and storage medium
CN113568568B (en) Hardware encryption method, system and device based on distributed storage
CN113452526A (en) Electronic document storage and verification method and corresponding device
Yoosuf Lightweight fog‐centric auditing scheme to verify integrity of IoT healthcare data in the cloud environment
CN110689348A (en) Income verification method, device, terminal and medium based on alliance chain
CN110032894A (en) A kind of database journal recording method and system and database log detection method
CN112329029A (en) Block chain-based electronic archive file safe storage method and system
CN111078700A (en) Data synchronization method and system based on block chain
CN112383504A (en) Electric power thing networking block chain data management system
CN116366289A (en) Safety supervision method and device for remote sensing data of unmanned aerial vehicle
CN113868699A (en) UKey-based personal information protection method and system

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