A data storage and query method based on a block chain

A data storage and data query technology, applied in database indexing, digital data protection, structured data retrieval, etc., can solve the problems of source data not being updated in time, data out of synchronization, etc., to solve data islands, ensure sharing, and ensure security and shared effects

Active Publication Date: 2019-05-17
G CLOUD TECH
View PDF9 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

If the data cannot flow, it is necessary to copy the data required by each business system to form multiple copies of data; at this time, the source data will not be updated in time, resulting in data out of sync, and bringing new problems to business support

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
  • A data storage and query method based on a block chain
  • A data storage and query method based on a block chain
  • A data storage and query method based on a block chain

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0029] figure 1 It is a schematic diagram of the data storage process. In order to solve the problem that the current database has business data, step S001 is set to convert the existing data. If the data is dynamically written, this step is not required.

[0030] For S002, the system sets a random extraction algorithm to randomly extract encryption algorithms supported by the system. The encryption algorithm of the system can be dynamically increased to adapt to changes. The extraction algorithm is as follows: randomly generate a number (R), obtain the last four digits of the current timestamp (T), add the two, and add 1 to the obtained sum modulo the number of algorithms (N), that is (( R+T)%N)+1, what you get is the number algorithm.

[0031] Step S003, sort the field names in the database table into a list, add the table name and the library name, and then add an alias to the attribute names of the list in order, and its structure is as follows figure 2 As shown, the a...

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 invention relates to a data storage and query method based on a block chain. The method comprises storage and data query, wherein the data storage is characterized by converting data which is notdynamically written at present; randomly extracting an algorithm from the encryption algorithm supported by the system; sorting the field names in the database table into a list, adding table names and library names, and sequentially adding aliases to the attribute names of the list to form an attribute alias mapping table; at the same time, inquiring the aliases in the attribute alias mapping table according to input data and field names, and then forming an alias data mapping table; writing the new attribute alias mapping table into a database, and returning to the primary key; writing the alias data mapping table and the primary key into a block chain to form block chain data; The data query is characterized by combining the obtained alias data mapping table and the attribute alias mapping table and decrypting the alias data mapping table and the attribute alias mapping table by using a corresponding algorithm to obtain an attribute and data mapping table and obtain data. Accordingto the method, data are hidden in a two-layer mapping relation, and the data security and sharing are ensured based on a block chain.

Description

technical field [0001] The invention relates to the technical field of data storage and query, in particular to a data storage and query method based on blockchain. Background technique [0002] With the rapid development of information technology, various business support systems are also increasing, making information systems diverse. Data between systems cannot flow, forming data islands. In real business, data flow between systems is required to meet business needs. If the data cannot flow, it is necessary to copy the data required by each business system to form multiple copies of data; at this time, the source data will not be updated in time, resulting in data out of sync, and bringing new problems to business support. Therefore, if the data can have a unique data source, it is the best way to solve the problems of data islands and data out of synchronization. At the same time, the blockchain has the characteristics of multiple copies, which can avoid unexpected ev...

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
Patent Type & Authority Applications(China)
IPC IPC(8): G06F16/22G06F16/2455G06F16/25G06F21/60
CPCY02D10/00
Inventor 韩超季统凯张恒李勇波郑锐韬
Owner G CLOUD TECH
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