CN109145189A - A kind of data deposit and search system and its method based on block chain - Google Patents
A kind of data deposit and search system and its method based on block chain Download PDFInfo
- Publication number
- CN109145189A CN109145189A CN201810959612.1A CN201810959612A CN109145189A CN 109145189 A CN109145189 A CN 109145189A CN 201810959612 A CN201810959612 A CN 201810959612A CN 109145189 A CN109145189 A CN 109145189A
- Authority
- CN
- China
- Prior art keywords
- module
- block chain
- user
- data
- database
- 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
Links
Abstract
The invention discloses a kind of data deposit and search system and its method based on block chain, which includes: application programming interface module, and the module is for response application layer to the calling of block chain public affairs chain intelligence contract;User, role, authority management module, the module are used to carry out user, role and the permission of access block chain according to algorithm the verifying of user, role, and carry out validation verification to the permission of each user;Database module, the module are used for the content of timed increase more new database and block chain;Database data is put and calls directly intelligent contract in memory by internal storage data library module, the module;The module is used for the content of timed increase more new database and block chain.The present invention is combined by the database technology of centralization and the block chain technology of decentralization, using block chain data as anchor point, on the basis of guarantee consistency, the blocks chain Inherent advantage such as safety, improves the efficiency of block chain operation.
Description
Technical field
A kind of technical field of the present invention about block chain, and in particular to data deposit and search system based on block chain
And its method.
Background technique
The block chaining search of decentralization searches for the information of needs, heavy workload by traversing all blocks;Based on hard
Inquiry is interrogated and examined, search efficiency is lower.
Publication No. 100416559C (Hewlett-Packard, application number: 200410030467.7, preference day is 2003/03/
14) described in data search system and data the way of search abstract using globally unique identifier of Chinese invention patent application:
Search is easier to set the goal associated data and/or service by using following search system, which has the whole world
Unique objects identifier, the input for inputting globally unique identifier, is used for from metadata repository metadata repository
The metadata reader and metadata search engine for reading the collection of metadata comprising the input globally unique identifier, are used for
Specific first number is searched for by searching for the specific descriptive statement in each metadata for including the collection of metadata read
According to.
Publication No. 1162154A (Panasonic Electric Equipment Industrial Co., Ltd, application No. is 97102618.1, the applying date: 1997/
02/12) described in the data serching device abstract of Chinese invention patent application: disclosing a kind of data serching device, the device
Include: request receiving portion, receives searching request and registration request;Recording mechanism provides part, and record number is supplied to often
A record;Relative numbering part recording mechanism data grouping and is converted into group number and relative record number;Index file
Part is generated, index file is generated;Index file storage section stores index file;Index file searches for part, searches for by searching
Rope number it was noted that record;Absolute number part, searched record first to number and group number data conversion at recording mechanism
Data;And search result output par, c, search result is exported according to record number.
The Chinese invention patent application of Publication No. 1053050C (application No. is 93121698.2, IO to study Co., Ltd)
Distributed data base system and its database receiver abstract described in: distributed data base system, comprising: central station and reception
It stands.Central station includes: data storage, for storing the data for constituting database;Processor, for being extracted from data storage
Data are allocated with generating the data flow of sequence;Transmission device, for encoding and transmitting data flow;Each receiving station includes:
Code translator, receives and thus the data of the long pine of decoding are to reconstitute database data;Keyboard, for inputting user command
Receiving station;Receiver processing unit constitutes database according to data relevant to user command;Memory, storage constitute data
The data in library;Communication device, response user command transmission is by selection data.
Three above patent is all based on the database realizing of centralization, and the database of centralization divides library by indexing
Divide table, distributed storage, the methods such as memory database improve search efficiency, but safety is denounced by people always.
Summary of the invention
The present invention provides a kind of data deposit and search system and its method based on block chain, pass through the number of centralization
It is combined according to library technology and the block chain technology of decentralization, using block chain data as anchor point, is guaranteeing consistency, the areas such as safety
On the basis of block chain Inherent advantage, the efficiency of block chain operation is improved.
A kind of data deposit and search system based on block chain, comprising:
Application programming interface module, the module is for response application layer to the tune of block chain public affairs chain intelligence contract
With;The information that management, screening application layer are sent, realizes the function of increase and inquiry on block chain;And to access block chain
Account abnormal operation returns to invalid information;
User, role, authority management module, the module are used for user, role and the permission of access block chain according to calculation
Method carries out the verifying of user, role, and carries out validation verification to the permission of each user;Asynchronous message push clothes are provided simultaneously
Business, user is pushed in application programming interface module the relevant operation of account information, real-time update account information;
Database module, the module are used for the content of timed increase more new database and block chain;And passes through Fen Ku, divides
Table, index technology improve the work of database;
Database data is put and calls directly intelligent contract in memory by internal storage data library module, the module;The module is used
In the content of timed increase more new database and block chain.
In the present invention, internal storage data library module, in order to cope with high-throughput and big concurrent status, internal storage data library module
Database data is put and calls directly intelligent contract in memory to improve efficiency, database module passes through Fen Ku, divides table, index
Etc. technologies improve the work of database, the block chain technology knot that the present invention passes through the database technology of centralization and decentralization
It closes, using block chain data as anchor point, on the basis of guarantee consistency, the blocks chain Inherent advantage such as safety, improves block
The efficiency of chain operation.
A kind of data store method using data deposit and search system based on block chain, the data store method packet
Include following steps:
1) user applies (Decentralized Application, DAPP, be also Distributed Application) by decentralization
Entrance, enters information into application programming interface module, and application programming interface module enters information into user, angle
Color, authority management module are verified, and user, role, authority management module interact information and internal storage data library module,
Authority distribution is completed, the method for obtaining GAS is then called, obtains GAS;
2) user carries GAS and initiates request, prepares timestamp, public key, cochain content being stored in block chain;
3) the user right version is read from memory database, if permission version is inconsistent, then again back to step 1)
GAS is obtained, if permission version is consistent, then intelligent contract is called using internal storage data library module, if intelligent contract respective request, holds
Transaction Information and remarks content are written new block, upload to block chain and database module, terminate contract, such as by one transaction of row
Intelligent contract Fail Transaction, GAS burn down intelligent contract and are automatically stopped.
A kind of data search method of data deposit and search system using based on block chain, the searching method include with
Lower step:
1) user applies (Decentralized Application, DAPP, be also Distributed Application) by decentralization
Entrance, enters information into application programming interface module, and application programming interface module enters information into user, angle
Color, authority management module are verified, and user, role, authority management module interact information and internal storage data library module,
Complete authority distribution;
2) user inputs search key combination algorithm and the interaction of internal storage data library module;
If 3) search for successfully, search result is returned to decentralization application by internal storage data library module, if not searching for into
Function, then return step 2), number of success is not searched for and is reached 5~15 times, then is stopped search, and the information retrieved not successfully is fed back
Give decentralization application;
4) current search events are stored in block chain link point cluster and data block library module.
In step 3), number of success is not searched for and reaches 8~12 times, most preferably 10 times.
Compared with prior art, the present invention has the advantage that
Data deposit based on block chain of the invention can be answered with search system and method as a kind of Floor layer Technology extensively
The optimization of iteration and decentralization system for centralized system, passes through the database technology of centralization and the area of decentralization
Block chain technology combines, and promotes the efficiency of block chain data deposit and search.
Detailed description of the invention
Fig. 1 is the schematic diagram of the data deposit and search system of the invention based on block chain;
Fig. 2 is that the present invention is based on the deployment process schematics of the data of block chain deposit and search system;
Fig. 3 is schematic diagram of the present invention using the data store method of data deposit and search system based on block chain;
Fig. 4 is signal of the present invention using the data search method using data deposit and search system based on block chain
Figure.
Specific embodiment
As shown in Figure 1, for a kind of data deposit and search system based on block chain, comprising:
Application layer API (Application Programming Interface, application programming interface) module, should
Module is for response application layer to the calling of block chain public affairs chain intelligence contract;The information that management, screening application layer are sent, in block
The function of increase and inquiry is realized on chain;And invalid information is returned to the account abnormal operation of access block chain.
User, role, authority management module, the module are used for user, role and the permission of access block chain according to finger
Fixed algorithm carries out the verifying of user, role, and carries out validation verification to the permission of each user;Asynchronous message is provided simultaneously
User is pushed in application layer API module the relevant operation of account information, real-time update account information by Push Service.
Database module, the module are used for the content of timing synchronization update database and block chain;The module is for timing
The content of incremental update database and block chain;And pass through Fen Ku, the work for dividing the technologies such as table, index to improve database.
Internal storage data library module, in order to cope with high-throughput and big concurrent status, which is placed on database data
Directly operation is in memory to improve efficiency;The module is used for the content of timed increase more new database and block chain.
As shown in Fig. 2, for the deployment process of data deposit and search system based on block chain, comprising:
1) DAPP (Decentralized Application, decentralization application, be also Distributed Application) is opened, matched
Set document definition IP address and port numbers;
2) authentication verification code whether there is, and such as exist, then configuration file enters DAPP user interface;
3) as authentication code is not present, then DAPP port numbers, deployment path, systematic name are obtained, initiates registration request, verifying
Whether register;
4) DAPP list is written, generates authentication code, configuration file is written to, into DAPP user interface.
It as shown in figures 1 and 3, is a kind of data store method based on block chain of the invention, the method packet of the deposit
Include following steps:
1) GAS is obtained from request header:
User is entered by DAPP (Decentralized Application, decentralization application, be also Distributed Application)
Mouthful, information is inputted to application layer API module, application programming interface module enters information into user, role, rights management
Module is verified, and user, role, authority management module interact information and internal storage data library module, completes permission point
Match, call the method for obtaining GAS, obtains GAS.
GAS is the fuel that program executes, and the code of an EVM (ether mill virtual machine) is realized on the block chain of ether mill
Running environment, when executing write operation on chain, the full node of each of network can carry out identical calculating and store identical
Value, the consumption of this execution be it is expensive, carried out in order to which the operation for promoting everybody that will carry out under chain is not put on chain,
It also for reward miner, therefore in one write operation of every execution on chain, requires to pay certain expense, is single with GAS
Position counts, and the order that can each execute on chain is provided with the GAS value of a consumption,
2) user carries GAS and initiates request, prepares timestamp, public key, cochain content being stored in block chain;
3) the user right version is read from memory database, if permission version is inconsistent, then returns to and obtained from request header
GAS is taken, if permission version is consistent, then calls intelligent contract, upper segment block, if intelligent contract respective request, executes a transaction,
Transaction Information and remarks content, are written new block by upper segment block success, then terminate contract, and segment block as above fails, Fail Transaction,
GAS burns down intelligent contract and is automatically stopped.
It as shown in Figure 1 and Figure 4, is a kind of data search method based on block chain, the method for the search includes following step
It is rapid:
1) user is by DAPP entrance, by application layer API module input information, information and internal storage data library module into
Row interaction obtains user, role, authority management module verifying and distribution permission.
2) user inputs search key and the interaction of internal storage data library module, especially by existing artificial AI engine and
Combination algorithm is interacted with internal storage data library module.
3) internal storage data library module returns to search result and search result is returned to DAPP if searching for successfully, if not searching
Suo Chenggong then continues to say that keyword combination algorithm is interacted with internal storage data library module.
4) current search events are recorded using the data store method based on block chain by cochain, that is, is stored in block chain link
Point cluster.
The present invention is combined by the database technology of centralization and the block chain technology of decentralization, promotes block chain number
According to the efficiency of deposit and search.
Claims (4)
1. a kind of data deposit and search system based on block chain characterized by comprising
Application programming interface module, the module is for response application layer to the calling of block chain public affairs chain intelligence contract;Pipe
The information that reason, screening application layer are sent, realizes the function of increase and inquiry on block chain;And it is different to the account of access block chain
Often operation returns to invalid information;
User, role, authority management module, the module be used for access block chain user, role and permission according to algorithm into
The verifying of row user, role, and validation verification is carried out to the permission of each user;Asynchronous message Push Service is provided simultaneously,
User is pushed in application programming interface module the relevant operation of account information, real-time update account information;
Database module, the module are used for the content of timed increase more new database and block chain;And passes through Fen Ku, divides table, rope
Draw the work that technology improves database;
Database data is put and calls directly intelligent contract in memory by internal storage data library module, the module;The module is for fixed
When incremental update database and block chain content.
2. a kind of data store method of data deposit and search system using described in claim 1 based on block chain,
Be characterized in that, the data store method the following steps are included:
1) user enters information into application programming interface module, application programming by decentralization application entrance
Interface module enters information into user, role, authority management module are verified, and user, role, authority management module will be believed
Breath and internal storage data library module interact, and complete authority distribution, then call the method for obtaining GAS, obtain GAS;
2) user carries GAS and initiates request, prepares timestamp, public key, cochain content being stored in block chain;
3) the user right version is read from memory database, if permission version is inconsistent, is then reacquired back to step 1)
GAS then calls intelligent contract using internal storage data library module if permission version is consistent, if intelligent contract respective request, executes one
Transaction Information and remarks content are written new block, upload to block chain and database module by transaction, terminate contract, such as intelligence
Contract Fail Transaction, GAS burn down intelligent contract and are automatically stopped.
3. a kind of data search method using data deposit and search system based on block chain, which is characterized in that the data
Searching method the following steps are included:
1) user enters information into application programming interface module, application programming by decentralization application entrance
Interface module enters information into user, role, authority management module are verified, and user, role, authority management module will be believed
Breath and internal storage data library module interact, and complete authority distribution;
2) user inputs search key combination algorithm and the interaction of internal storage data library module;
If 3) search for successfully, search result is returned to decentralization application by internal storage data library module, if not searching for success,
Return step 2), number of success is not searched for and is reached 5~15 times, then is stopped search, and the information retrieved not successfully is fed back to
Centralization application;
4) current search events are stored in block chain link point cluster and data block library module.
4. data search method according to claim 3, which is characterized in that in step 3), do not search for number of success and reach 8
~12 times.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810959612.1A CN109145189A (en) | 2018-08-22 | 2018-08-22 | A kind of data deposit and search system and its method based on block chain |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810959612.1A CN109145189A (en) | 2018-08-22 | 2018-08-22 | A kind of data deposit and search system and its method based on block chain |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109145189A true CN109145189A (en) | 2019-01-04 |
Family
ID=64790799
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810959612.1A Pending CN109145189A (en) | 2018-08-22 | 2018-08-22 | A kind of data deposit and search system and its method based on block chain |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109145189A (en) |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109828958A (en) * | 2019-01-31 | 2019-05-31 | 北京瑞卓喜投科技发展有限公司 | Event recording method and record system based on block chain |
CN110138767A (en) * | 2019-05-07 | 2019-08-16 | 百度在线网络技术(北京)有限公司 | Processing method, device, equipment and the storage medium of transactions requests |
CN110245193A (en) * | 2019-06-24 | 2019-09-17 | 中云(广州)区块链科技有限公司 | The deposit of data distribution formula and data retrieval method based on block chain |
CN110377323A (en) * | 2019-06-19 | 2019-10-25 | 广东科学技术职业学院 | A kind of block chain DAPP management system |
CN110442579A (en) * | 2019-08-02 | 2019-11-12 | 杭州复杂美科技有限公司 | A kind of State Tree date storage method, synchronous method and equipment and storage medium |
CN111831744A (en) * | 2020-06-05 | 2020-10-27 | 广东科学技术职业学院 | DAPP on-chain data retrieval system, method and medium |
CN111917861A (en) * | 2020-07-28 | 2020-11-10 | 广东工业大学 | Knowledge storage method and system based on block chain and knowledge graph and application thereof |
CN111949672A (en) * | 2020-07-30 | 2020-11-17 | 杭州电子科技大学 | Block chain storage method for supporting incremental update of Internet-of-things data |
CN113010409A (en) * | 2020-09-16 | 2021-06-22 | 腾讯科技(深圳)有限公司 | Intelligent contract testing method and device, electronic equipment and storage medium |
CN113138989A (en) * | 2021-03-12 | 2021-07-20 | 莘上信息技术(上海)有限公司 | Block chain data retrieval method and device |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106790431A (en) * | 2016-12-05 | 2017-05-31 | 同济大学 | Cloud manufacturing service Transaction Information record system and method based on block chain |
CN107193490A (en) * | 2017-05-16 | 2017-09-22 | 北京中星仝创科技有限公司 | A kind of distributed data-storage system and method based on block chain |
CN107239479A (en) * | 2017-03-28 | 2017-10-10 | 阿里巴巴集团控股有限公司 | A kind of method and device of data storage and inquiry based on block chain |
CN107391649A (en) * | 2017-07-14 | 2017-11-24 | 浙商银行股份有限公司 | A kind of system and method for lifting block chain query efficiency |
CN107480555A (en) * | 2017-08-01 | 2017-12-15 | 中国联合网络通信集团有限公司 | Database-access rights control method and equipment based on block chain |
CN107704196A (en) * | 2017-03-09 | 2018-02-16 | 上海亿账通区块链科技有限公司 | Block chain data-storage system and method |
US20180137196A1 (en) * | 2016-11-11 | 2018-05-17 | International Business Machines Corporation | Trustable web searching verification in a blockchain |
CN108173850A (en) * | 2017-12-28 | 2018-06-15 | 杭州趣链科技有限公司 | A kind of identity authorization system and identity identifying method based on block chain intelligence contract |
-
2018
- 2018-08-22 CN CN201810959612.1A patent/CN109145189A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20180137196A1 (en) * | 2016-11-11 | 2018-05-17 | International Business Machines Corporation | Trustable web searching verification in a blockchain |
CN106790431A (en) * | 2016-12-05 | 2017-05-31 | 同济大学 | Cloud manufacturing service Transaction Information record system and method based on block chain |
CN107704196A (en) * | 2017-03-09 | 2018-02-16 | 上海亿账通区块链科技有限公司 | Block chain data-storage system and method |
CN107239479A (en) * | 2017-03-28 | 2017-10-10 | 阿里巴巴集团控股有限公司 | A kind of method and device of data storage and inquiry based on block chain |
CN107193490A (en) * | 2017-05-16 | 2017-09-22 | 北京中星仝创科技有限公司 | A kind of distributed data-storage system and method based on block chain |
CN107391649A (en) * | 2017-07-14 | 2017-11-24 | 浙商银行股份有限公司 | A kind of system and method for lifting block chain query efficiency |
CN107480555A (en) * | 2017-08-01 | 2017-12-15 | 中国联合网络通信集团有限公司 | Database-access rights control method and equipment based on block chain |
CN108173850A (en) * | 2017-12-28 | 2018-06-15 | 杭州趣链科技有限公司 | A kind of identity authorization system and identity identifying method based on block chain intelligence contract |
Cited By (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109828958A (en) * | 2019-01-31 | 2019-05-31 | 北京瑞卓喜投科技发展有限公司 | Event recording method and record system based on block chain |
CN110138767A (en) * | 2019-05-07 | 2019-08-16 | 百度在线网络技术(北京)有限公司 | Processing method, device, equipment and the storage medium of transactions requests |
CN110138767B (en) * | 2019-05-07 | 2021-11-30 | 百度在线网络技术(北京)有限公司 | Transaction request processing method, device, equipment and storage medium |
CN110377323A (en) * | 2019-06-19 | 2019-10-25 | 广东科学技术职业学院 | A kind of block chain DAPP management system |
CN110377323B (en) * | 2019-06-19 | 2023-09-29 | 广东科学技术职业学院 | Block chain DAPP management system |
CN110245193A (en) * | 2019-06-24 | 2019-09-17 | 中云(广州)区块链科技有限公司 | The deposit of data distribution formula and data retrieval method based on block chain |
CN110442579A (en) * | 2019-08-02 | 2019-11-12 | 杭州复杂美科技有限公司 | A kind of State Tree date storage method, synchronous method and equipment and storage medium |
CN110442579B (en) * | 2019-08-02 | 2022-06-28 | 杭州复杂美科技有限公司 | State tree data storage method, synchronization method and equipment and storage medium |
CN111831744B (en) * | 2020-06-05 | 2023-06-06 | 广东科学技术职业学院 | System, method and medium for searching data on DAPP chain |
CN111831744A (en) * | 2020-06-05 | 2020-10-27 | 广东科学技术职业学院 | DAPP on-chain data retrieval system, method and medium |
CN111917861A (en) * | 2020-07-28 | 2020-11-10 | 广东工业大学 | Knowledge storage method and system based on block chain and knowledge graph and application thereof |
CN111949672A (en) * | 2020-07-30 | 2020-11-17 | 杭州电子科技大学 | Block chain storage method for supporting incremental update of Internet-of-things data |
CN113010409A (en) * | 2020-09-16 | 2021-06-22 | 腾讯科技(深圳)有限公司 | Intelligent contract testing method and device, electronic equipment and storage medium |
CN113010409B (en) * | 2020-09-16 | 2023-09-15 | 腾讯科技(深圳)有限公司 | Intelligent contract testing method and device, electronic equipment and storage medium |
CN113138989B (en) * | 2021-03-12 | 2022-12-27 | 莘上信息技术(上海)有限公司 | Block chain data retrieval method and device |
CN113138989A (en) * | 2021-03-12 | 2021-07-20 | 莘上信息技术(上海)有限公司 | Block chain data retrieval method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109145189A (en) | A kind of data deposit and search system and its method based on block chain | |
CN106250987B (en) | A kind of machine learning method, device and big data platform | |
CN104346377B (en) | A kind of data integration and transfer method based on unique mark | |
CN101018259B (en) | Telecom integrated information system and method | |
CN110399373A (en) | A kind of block chain account book storage system, storage querying method and delet method | |
CN109995650B (en) | SDN network-based path calculation method and device under multidimensional constraint | |
CN101901242A (en) | Federated configuration data management | |
US7647335B1 (en) | Computing system and methods for distributed generation and storage of complex relational data | |
CN106982150A (en) | A kind of mobile Internet user behavior analysis method based on Hadoop | |
CN102609769A (en) | Data acquisition tool and data acquisition method | |
CN105488231A (en) | Self-adaption table dimension division based big data processing method | |
CN104239377A (en) | Platform-crossing data retrieval method and device | |
CN107193898B (en) | The inquiry sharing method and system of log data stream based on stepped multiplexing | |
CN108959337A (en) | Big data acquisition methods, device, equipment and storage medium | |
CN109213752A (en) | A kind of data cleansing conversion method based on CIM | |
CN112559448B (en) | Data state migration method and device, computer equipment and storage medium | |
CN112231283B (en) | Generation management method and system based on multi-source heterogeneous data unified entity identification code | |
JP2004110219A (en) | Data processing system and join processing method | |
WO2014030235A1 (en) | Distributed database system | |
CN107330098A (en) | A kind of querying method of self-defined report, calculate node and inquiry system | |
CN113947485A (en) | Block chain customizable system | |
CN109903034A (en) | Rule matching method, device, computer readable storage medium and computer equipment | |
CN109710667A (en) | A kind of shared realization method and system of the multisource data fusion based on big data platform | |
CN109492856A (en) | Service request processing method, device, computer equipment and storage medium | |
CN106649530B (en) | Cloud detail query management system and method |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190104 |