CN107729383A - A kind of library generation method, data verification method, device and platform - Google Patents
A kind of library generation method, data verification method, device and platform Download PDFInfo
- Publication number
- CN107729383A CN107729383A CN201710842459.XA CN201710842459A CN107729383A CN 107729383 A CN107729383 A CN 107729383A CN 201710842459 A CN201710842459 A CN 201710842459A CN 107729383 A CN107729383 A CN 107729383A
- Authority
- CN
- China
- Prior art keywords
- block
- data
- catenary system
- height
- finger print
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/903—Querying
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/901—Indexing; Data structures therefor; Storage structures
- G06F16/9014—Indexing; Data structures therefor; Storage structures hash tables
Abstract
The invention discloses a kind of library generation method, data verification method, device and platform, the platform includes N number of block catenary system, and N is more than or equal to 1, wherein, library generation method includes:For either block catenary system, the block chain data of acquisition block catenary system;Extract the index information of each data storage in each block of local block chain;The mark of the block height of block where index information includes data storage, data storage positional information within a block and block catenary system;Data storage is that the finger print information of card data has been deposited in block;Index information is stored in index database.Identified by block height, positional information and the block catenary system in index information, each data storage that can be accurately positioned in a plurality of block chain, therefore the fast verification under multi-tiling catenary system can be realized.
Description
Technical field
The present invention relates to data authentication technical field, more particularly to a kind of library generation method, data verification method, dress
Put and platform.
Background technology
In the modern life, often need to prove the presence of certain item data (things), i.e. data deposit card, the text such as write
Chapter, the operational order of history, contract for signing etc., now just need to be authenticated by Third Party Authentication mechanism, this certification
Mode is to the credit rating of certification authority requires high and cumbersome, cost is higher, poor in timeliness.
In order to solve to carry out existing variety of problems when data deposit card above by Third Party Authentication mechanism, occur at present
The scheme of card is much deposited by block chain data, is solved well using the non-stop layer structure and not modifiable characteristic of block chain
Determine above mentioned problem.But in practical application, different users may select different block catenary systems to carry out depositing card, than
As some data are stored into block catenary system A, and other data are stored into block catenary system B, therefore, carry out data verification
When, generally require to inquire about two block catenary systems successively, seriously reduce verification efficiency.
The content of the invention
The present invention provides a kind of library generation method, data verification method, device and platform, to improve multi-tiling chain
Data verification efficiency under system.
The embodiment of the present invention provides a kind of library generation method, big applied to the platform for including N number of block catenary system, N
In equal to 1, including:
For either block catenary system, the block chain data of the block catenary system are obtained;
Extract the index information of each data storage in each block of the local block chain;The index information includes described
Block height, positional information and the block linkwork of the data storage in the block of block where data storage
The mark of system;The data storage is that the finger print information of card data has been deposited in the block;
The index information is stored in the index database.
Optionally, after the block chain data for obtaining the block catenary system, in addition to:
Each data storage in each block of the block chain data is stored in block data storehouse.
Optionally, for either block catenary system, the block chain data of the block catenary system are obtained, including:
Find that algorithm determines M optional nodes from the block catenary system by node;M is more than or equal to 3;
The block head cryptographic Hash of each block and block height in the local block chain of the M optional nodes are obtained respectively;
For multiple blocks with any same block height, meet default bar in block head cryptographic Hash identical block
During part, determine that the optional node corresponding to either block is transmission node from the block head cryptographic Hash identical block;
Data synchronization request is sent to the transmission node;The data synchronization request is used to indicate that the transmission node returns
Return the block data.
Optionally, the block chain data of the block catenary system are obtained, including:
Determine the block height maxima of the block catenary system stored in the index database;
Obtain the data that block height value in the block catenary system is not less than each block of the block height maxima.
The embodiment of the present invention provides a kind of data verification method, and applied to the platform for including N number of block catenary system, N is more than
Equal to 1, including:
Data verification request is received, the finger print information of data to be verified is included in the data verification request;
According to the finger print information search index storehouse of the data to be verified, the index information of the acquisition data to be verified;
Block catenary system where the index information includes the finger print information identifies, in block catenary system where the finger print information
Block height and finger print information positional information within a block;
According to the identifying of the block catenary system, block height and the positional information, checking data are obtained;
When the finger print information of the data to be verified is consistent with the checking data, the data verification to be verified is confirmed
Pass through.
Optionally, according to the identifying of the block catenary system, block height and the positional information, checking is obtained
Data, including:
According to the mark of the block catenary system, it is determined that block data storehouse corresponding with the mark of the block catenary system;
According to block data corresponding to the mark of block height and the positional information in the block catenary system
The checking data are obtained in storehouse.
The embodiment of the present invention provides a kind of index database generating means, big applied to the platform for including N number of block catenary system, N
In equal to 1, including:
Transmit-Receive Unit, for for either block catenary system, obtaining the block chain data of the block catenary system;Processing is single
Member, the index information of each data storage in each block for extracting the local block chain;The index information includes described
Block height, positional information and the block linkwork of the data storage in the block of block where data storage
The mark of system;The data storage is that the finger print information of card data has been deposited in the block;
The processing unit, it is additionally operable to the index information being stored in the index database.
Optionally, the processing unit is additionally operable to:
Each data storage in each block of the block chain data is stored in block data storehouse.
Optionally, the processing unit is specifically used for:
Find that algorithm determines M optional nodes from the block catenary system by node;M is more than or equal to 3;
The block head cryptographic Hash of each block and block height in the local block chain of the M optional nodes are obtained respectively;
For multiple blocks with any same block height, meet default bar in block head cryptographic Hash identical block
During part, determine that the optional node corresponding to either block is transmission node from the block head cryptographic Hash identical block;
The Transmit-Receive Unit is controlled to send data synchronization request to the transmission node;The data synchronization request is used to refer to
Show that the transmission node returns to the block data.
Optionally, the processing unit is specifically used for:
Determine the block height maxima of the block catenary system stored in the index database;
The Transmit-Receive Unit is controlled to obtain block height value in the block catenary system maximum not less than block height
The data of each block of value.
The embodiment of the present invention provides a kind of data verification device, and applied to the platform for including N number of block catenary system, N is more than
Equal to 1, including:
Transmit-Receive Unit, for receiving data verification request, the fingerprint of data to be verified is included in the data verification request
Information;
Processing unit, for the finger print information search index storehouse according to the data to be verified, obtain the number to be verified
According to index information;The identifying of block catenary system, finger print information institute where the index information includes the finger print information
The positional information of block height and the finger print information within a block in block catenary system;
The processing unit, it is additionally operable to according to the identifying of the block catenary system, block height and the position
Information, obtain checking data;
The processing unit, it is additionally operable to when the finger print information of the data to be verified is consistent with the checking data, really
Recognize the data verification to be verified to pass through.
Optionally, the processing unit is specifically used for:
According to the mark of the block catenary system, it is determined that block data storehouse corresponding with the mark of the block catenary system;
According to block data corresponding to the mark of block height and the positional information in the block catenary system
The checking data are obtained in storehouse.
The embodiment of the present invention provides a kind of computer-readable recording medium, and the computer-readable recording medium storage has meter
Calculation machine executable instruction, the computer executable instructions are used to make the computer perform the index database described in any of the above-described
Generation method.
The embodiment of the present invention provides a kind of computing device, including:
Memory, instructed for storage program;
Processor, for calling the programmed instruction stored in the memory, performed according to the program of acquisition any of the above-described
Library generation method described in.
The embodiment of the present invention provides a kind of computer-readable recording medium, and the computer-readable recording medium storage has meter
Calculation machine executable instruction, the data that the computer executable instructions are used to make the computer perform described in any of the above-described are tested
Card method.
The embodiment of the present invention provides a kind of computing device, including:
Memory, instructed for storage program;
Processor, for calling the programmed instruction stored in the memory, performed according to the program of acquisition any of the above-described
Data verification method described in.
The embodiment of the present invention provides a kind of platform, including the index database generation described in N number of block catenary system, any of the above-described
Data verification device described in device and any of the above-described.
In summary, the embodiment of the present invention provides a kind of library generation method, data verification method, device and platform,
The platform includes N number of block catenary system, and N is more than or equal to 1, wherein, library generation method includes:For either block linkwork
System, obtain the block chain data of block catenary system;Block chain data are the local block of at least one node in block catenary system
Chain data, local block chain include multiple blocks;Extract the index information of each data storage in each block of local block chain;Rope
Fuse breath include the block of block where data storage highly, data storage positional information within a block and block catenary system
Mark;Data storage is that the finger print information of card data has been deposited in block;Index information is stored in index database.Believed by indexing
Block height, data storage and the positional information that breath includes can be accurately positioned each storage number in a block chain
According to, meanwhile, the mark of block catenary system is also included in index information so that for can also be realized to depositing under multiple block catenary systems
Store up the positioning of data.Include the index information of each data storage in N number of block catenary system in index database, wherein, storage
Data are to have deposited the finger print information of card data, and in checking, checking request side only need to provide the finger print information of data to be verified i.e.
Can by index database quick search index information and in the block chain of N number of block catenary system fast positioning correspondence position number
According to, therefore the fast verification under multi-tiling catenary system can be realized.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, make required in being described below to embodiment
Accompanying drawing is briefly introduced, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for this
For the those of ordinary skill in field, without having to pay creative labor, it can also be obtained according to these accompanying drawings
His accompanying drawing.
Fig. 1 is a kind of platform architecture schematic diagram provided in an embodiment of the present invention;
Fig. 2 is a kind of library generation method schematic flow sheet provided in an embodiment of the present invention;
Fig. 3 is a kind of data verification method schematic flow sheet provided in an embodiment of the present invention;
Fig. 4 is a kind of index database generating means structural representation provided in an embodiment of the present invention;
Fig. 5 is a kind of data verification device structural representation provided in an embodiment of the present invention;
Fig. 6 is a kind of computing device structural representation provided in an embodiment of the present invention;
Fig. 7 is a kind of computing device structural representation provided in an embodiment of the present invention.
Embodiment
In order that the object, technical solutions and advantages of the present invention are clearer, the present invention is made below in conjunction with accompanying drawing into
One step it is described in detail, it is clear that the described embodiment only a part of embodiment of the present invention, rather than whole implementation
Example.Based on the embodiment in the present invention, what those of ordinary skill in the art were obtained under the premise of creative work is not made
All other embodiment, belongs to the scope of protection of the invention.
The embodiment of the present invention provides a kind of feasible data and deposits card platform, and the platform includes N number of block catenary system.In platform
Including at least one index database generating means and at least one data verification device, index database generating means and data verification device
A data can be integrated into and deposit card device.Fig. 1 is a kind of platform architecture schematic diagram provided in an embodiment of the present invention, such as Fig. 1 institutes
Show, the platform includes N number of block catenary system:System 1, system 2 ..., system N, and data deposit card device.Wherein, data
Set of the card device for index database generating means and data verification device is deposited, can both perform the rope that the embodiment of the present invention is provided
Draw library generating method, the data verification method that the embodiment of the present invention is provided can also be performed.Data deposit card device and each
At least one node connection (wired or wireless) in block catenary system, can be from the node synchrodata.In specific implementation process,
N number of block catenary system can be same block catenary system, or different block catenary systems.
The platform provided based on above-described embodiment, the embodiment of the present invention provide a kind of library generation method.Fig. 2 is this
A kind of library generation method schematic flow sheet that inventive embodiments provide, as shown in Fig. 2 comprising the following steps:
S201:For either block catenary system, the block chain data of acquisition block catenary system.
S202:Extract the index information of each data storage in each block of local block chain;Index information includes storage number
According to the mark of the block height of place block, data storage positional information within a block and block catenary system;Data storage
To have deposited the finger print information of card data in block.
S203:Index information is stored in index database.
In S201, index database generating means are connected with least one node in each block catenary system, Ke Yicong
The node synchronization block chain data.Optionally, for the index database generating means with enough memory spaces, block chain is being obtained
, can also be by block chain data storage in block data storehouse after the block chain data of system.By block chain data storage in
In block data storehouse so that block catenary system need not be visited again in checking, directly inquires about block data storehouse, therefore can
Accelerate data validation process.Optionally, block data storehouse can have N number of, be corresponded respectively with N number of block catenary system, any
Block data storehouse only stores the block chain data of corresponding block catenary system.In checking, the other blocks of traversal can be saved
The time of the block chain data of catenary system, data validation process can be further speeded up.
Optionally, synchronizing process can be by the timing of index database generating means or quantitative initiation, also can be by block catenary system
The node timing or quantitative initiation being connected with index database generating means.By the timing of index database generating means or the feelings quantitatively initiated
Under condition, the embodiment of the present invention provides a kind of method for obtaining block chain data, including:Find algorithm from block linkwork by node
M optional nodes are determined in system;M is more than or equal to 3;The block of each block in the local block chain of M optional nodes is obtained respectively
Head cryptographic Hash and block height;For multiple blocks with any same block height, in block head cryptographic Hash identical area
When block meets preparatory condition, it is transmission that the optional node corresponding to either block is determined from block head cryptographic Hash identical block
Node;Data synchronization request is sent to transmission node;Data synchronization request is used to indicate that transmission node returns to the block data.Tool
For body, index database generating means are connected with least one node in block catenary system, and the node is start node;Pass through node
It was found that algorithm, the adjacent node of start node is obtained, the M finally obtained optional nodes include start node and start node
Adjacent node;For the block of any height, respective heights in the local block chain of multiple nodes are selected from node listing
Block block head cryptographic Hash;After block head cryptographic Hash identical block meets preparatory condition, from these block head Hash
It is worth in the node corresponding to identical block and selects any node as transmission node;Index database generating means are sent out to transmission node
Data synchronization request is sent, the block data of respective heights is returned to index database generation by transmission node after data synchronization request is received
Device.
The data message of each block is contained in block chain data, the data message of each block includes the area
The data storage that block is stored, also the block head data including the block, wherein block head data include Hash pointer (previous area
The block head cryptographic Hash of block), random number, a variety of data of timestamp etc.., need to be from the local block of each node in S202
The index information of the data storage stored in the block is extracted in each block of chain, wherein, data storage is to have deposited card data
Finger print information.The block height of block where the index information that the embodiment of the present invention is provided includes data storage, storage
The mark of data positional information within a block and block catenary system, for example, for the block chain in bit coin network,
The mark of block catenary system can be " Btc ", and the block of the height block of sequencing of block generation is pressed in block chain
Height is " height ", and the block includes the data storage stored in order, then n-th of the data storage A's stored
Positional information is " n ", therefore data storage A index information can be to be " bit, height, n ".
In S203, storage index information can be taken various forms.The embodiment of the present invention provides a kind of feasible storage rope
The mode of fuse breath, as shown in Table 1.
Table one
In table one, all finger print informations are same to be stored in a table, and each finger print information correspond to one group of block chain
System banner, block height and positional information.
The embodiment of the present invention also provides the storage mode of another feasible index information, as shown in Table 2.
Table two
As shown in Table 2, the finger print information in different blocks catenary system is recorded in different lists, each list
It is corresponding from different block catenary systems respectively.
Block height, data storage and the positional information included by index information can be accurately positioned a block chain
In each data storage, meanwhile, the mark of block catenary system is also included in index information so that for multiple block linkworks
Also the positioning to data storage can be realized under system.Include the rope of each data storage in N number of block catenary system in index database
Fuse ceases, wherein, data storage is to have deposited the finger print information of card data, and in checking, checking request side need to only provide to be verified
The finger print information of data can be by index database quick search index information and quickly fixed in the block chain of N number of block catenary system
The data of position correspondence position, therefore the fast verification under multi-tiling catenary system can be realized.
, need to be from the node synchronization block chain data of block catenary system in S201, can be same by complete block chain data
The block chain data preserved in block data storehouse are completely covered after walking, in addition, the embodiment of the present invention also provides one
The more efficient block chain data syn-chronization mode of kind.Specifically, S201 obtains the block chain data of block catenary system, including:
Determine the block height maxima of block catenary system stored in index database;It is not small to obtain block height value in block catenary system
In the data of each block of block height maxima.For example, in the block chain of synchronous a certain block catenary system, first determine
The block height maxima of the block catenary system stored in index database is " H1 ", then with block height in block catenary system for H1
Block start synchronous block chain data for starting point, successively synchronous block H1, H1+1, H1+2 ....This hyposynchronous block is high
The block spent the block data of the block for H1 and stored when can cover upper subsynchronous is highly the block data of H1 block, and this is
Because index database generating means in upper once synchronous block chain data, may not have all data of H1 under Complete Synchronization,
The block data for the block that this subsynchronous tile height of synchronization zone again is H1 can avoid the incomplete feelings of hyposynchronous data
The error that condition is brought.
Corresponding, the embodiment of the present invention also provides a kind of data verification method, and this method applies equally to include N number of area
The platform of block catenary system, N are more than or equal to 1, and data verification is carried out using the index database of any of the above-described embodiment generation.Fig. 3 is
A kind of data verification method schematic flow sheet provided in an embodiment of the present invention, as shown in figure 3, comprising the following steps:
S301:Data verification request is received, the finger print information of data to be verified is included in data verification request.
S302:According to the finger print information search index storehouse of data to be verified, the index information of data to be verified is obtained;Index
Information includes the mark of finger print information place block catenary system, the block height in the block catenary system of finger print information place and referred to
The positional information of line information within a block.
S303:According to the mark of block catenary system, block height and positional information, checking data are obtained.
S304:When the finger print information of data to be verified is consistent with checking data, confirm that data verification to be verified passes through.
In S301, checking request side need to only provide the finger print information of data to be verified, be easy to use.Certainly, checking please
The side of asking can also directly provide index information, and data verification device is directly according to index information fast positioning data storage, checking
It is more efficient.The index information that checking request side is provided can be by block catenary system when being stored in data to block catenary system
It is returning or that index database generating means return when extracting index information.
In S302, index can be obtained according to the contrast relationship between the finger print information and index information preserved in index database
Information, specific implementation are relevant with the storage mode of index information.For example, when the form storage index information as shown in table one
When, then need once to travel through stored finger print information up to finding the finger print information identical finger print information with data to be verified,
Then finger print information index information corresponding in table is the index information of the finger print information of data to be verified.In another example
When the form as shown in table two stores index information, also need to travel through stored finger print information, but work as checking request side simultaneously
When providing block catenary system mark, recall precision can be greatly improved.
In S303, specifically, in the case of by block chain data Cun Chudao block datas storehouse, according to block linkwork
The mark of system, it is determined that block data storehouse corresponding with the mark of block catenary system;According to block height and positional information
Checking data are obtained in block data storehouse corresponding to mark in block catenary system.For example, obtained by search index storehouse
Finger print information A index information is " bit, height, n ", then to determine stored bits coin system according to finger print information A index information
Block data storehouse-database bit of the block chain data of system, it is highly height area that block is determined in database bit
Block, the data storage that the positional information stored in the block is n are to verify data.
Based on identical technical concept, the embodiment of the present invention also provides a kind of index database generating means, index database generation
Device can realize the library generation method disclosed in any of the above-described embodiment.Fig. 4 is one kind provided in an embodiment of the present invention
Index database generating means structural representation, as shown in figure 4, generating means 400 include Transmit-Receive Unit 401 and processing unit 402, its
In:
Transmit-Receive Unit 401, for for either block catenary system, the block chain data of acquisition block catenary system;Processing is single
Member 402, the index information of each data storage in each block for extracting local block chain;Index information includes data storage institute
In the mark of the block height of block, data storage positional information within a block and block catenary system;Data storage is area
The finger print information of card data has been deposited in block;
Processing unit 402, it is additionally operable to index information being stored in index database.
Optionally, processing unit 402 is additionally operable to:
Each data storage in each block of block chain data is stored in block data storehouse.
Optionally, processing unit 402 is specifically used for:
Find that algorithm determines M optional nodes from the block catenary system by node;M is more than or equal to 3;
The block head cryptographic Hash of each block and block height in the local block chain of the M optional nodes are obtained respectively;
For multiple blocks with any same block height, meet default bar in block head cryptographic Hash identical block
During part, determine that the optional node corresponding to either block is transmission node from the block head cryptographic Hash identical block;
The Transmit-Receive Unit is controlled to send data synchronization request to the transmission node;The data synchronization request is used to refer to
Show that the transmission node returns to the block data.
Optionally, processing unit 402 is specifically used for:
Determine the block height maxima of block catenary system stored in index database;
Transmit-Receive Unit 401 is controlled to obtain each block that block height value in block catenary system is not less than block height maxima
Data.
Based on identical technical concept, the embodiment of the present invention also provides a kind of data verification device, the data verification device
The data verification method disclosed in any of the above-described embodiment can be realized.Fig. 5 is that a kind of data provided in an embodiment of the present invention are tested
Card device structural representation, as shown in figure 5, checking device 500 includes Transmit-Receive Unit 501 and processing unit 502, wherein:
Transmit-Receive Unit 501, for receiving data verification request, the fingerprint comprising data to be verified is believed in data verification request
Breath;
Processing unit 502, for the finger print information search index storehouse according to data to be verified, obtain the rope of data to be verified
Fuse ceases;Area in block catenary system where the mark of block catenary system, finger print information where index information includes finger print information
The positional information of tile height and finger print information within a block;
Processing unit 502, the mark according to block catenary system, block height and positional information are additionally operable to, obtains checking
Data;
Processing unit 502, it is additionally operable to, when the finger print information of data to be verified is consistent with checking data, confirm number to be verified
According to being verified.
Optionally, processing unit 502 is specifically used for:
According to the mark of block catenary system, it is determined that block data storehouse corresponding with the mark of block catenary system;
Checking is obtained according in block data storehouse corresponding to the mark of block height and positional information in block catenary system
Data.
Based on identical technical concept, the embodiment of the present invention also provides a kind of computing device, and the computing device specifically can be with
For desktop computer, portable computer, smart mobile phone, tablet personal computer, personal digital assistant (Personal Digital
Assistant, PDA) etc..As shown in fig. 6, be a kind of computing device structural representation provided in an embodiment of the present invention, the calculating
Equipment can include central processing unit 601 (Center Processing Unit, CPU), memory 602, input equipment 603,
Output equipment 604 etc., input equipment 603 can include keyboard, mouse, touch-screen etc., and output equipment 604 can be set including display
It is standby, such as liquid crystal display (Liquid Crystal Display, LCD), cathode-ray tube (Cathode Ray Tube, CRT)
Deng.
Memory 602 can include read-only storage (ROM) and random access memory (RAM), and be provided to processor
The programmed instruction and data stored in memory.In embodiments of the present invention, memory can be used for storing the embodiment of the present invention
The program of the library generation method provided, processor is by calling the programmed instruction of memory storage, according to the journey of acquisition
Sequence instruction performs the library generation method described in any of the above-described.
Based on identical technical concept, the embodiment of the present invention also provides a kind of computer-readable recording medium, for storing
For the computer program instructions used in above-mentioned computing device, it, which is included, is used to perform the index database generation side described in any of the above-described
The program of method.
The computer-readable storage medium can be any usable medium or data storage device that computer can access, bag
Include but be not limited to magnetic storage (such as floppy disk, hard disk, tape, magneto-optic disk (MO) etc.), optical memory (such as CD, DVD,
BD, HVD etc.) and semiconductor memory (such as it is ROM, EPROM, EEPROM, nonvolatile memory (NAND FLASH), solid
State hard disk (SSD)) etc..
Based on identical technical concept, the embodiment of the present invention also provides a kind of computing device, and the computing device specifically can be with
For desktop computer, portable computer, smart mobile phone, tablet personal computer, personal digital assistant (Personal Digital
Assistant, PDA) etc..As shown in fig. 7, be a kind of computing device structural representation provided in an embodiment of the present invention, the calculating
Equipment can include central processing unit 701 (Center Processing Unit, CPU), memory 702, input equipment 703,
Output equipment 704 etc., input equipment 703 can include keyboard, mouse, touch-screen etc., and output equipment 704 can be set including display
It is standby, such as liquid crystal display (Liquid Crystal Display, LCD), cathode-ray tube (Cathode Ray Tube, CRT)
Deng.
Memory 702 can include read-only storage (ROM) and random access memory (RAM), and be provided to processor
The programmed instruction and data stored in memory.In embodiments of the present invention, memory can be used for storing the embodiment of the present invention
The program of the data verification method provided, processor is by calling the programmed instruction of memory storage, according to the program of acquisition
Instruction performs the data verification method described in any of the above-described.
Based on identical technical concept, the embodiment of the present invention also provides a kind of computer-readable recording medium, for storing
For the computer program instructions used in above-mentioned computing device, it, which is included, is used to perform the data verification method described in any of the above-described
Program.
The computer-readable storage medium can be any usable medium or data storage device that computer can access, bag
Include but be not limited to magnetic storage (such as floppy disk, hard disk, tape, magneto-optic disk (MO) etc.), optical memory (such as CD, DVD,
BD, HVD etc.) and semiconductor memory (such as it is ROM, EPROM, EEPROM, nonvolatile memory (NAND FLASH), solid
State hard disk (SSD)) etc..
Although preferred embodiments of the present invention have been described, but those skilled in the art once know basic creation
Property concept, then can make other change and modification to these embodiments.So appended claims be intended to be construed to include it is excellent
Select embodiment and fall into having altered and changing for the scope of the invention.
Obviously, those skilled in the art can carry out the essence of various changes and modification without departing from the present invention to the present invention
God and scope.So, if these modifications and variations of the present invention belong to the scope of the claims in the present invention and its equivalent technologies
Within, then the present invention is also intended to comprising including these changes and modification.
Claims (17)
1. a kind of library generation method, applied to the platform for including N number of block catenary system, N is more than or equal to 1, it is characterised in that
Including:
For either block catenary system, the block chain data of the block catenary system are obtained;
Extract the index information of each data storage in each block of the local block chain;The index information includes the storage
The block height of block where data, positional information and the block catenary system of the data storage in the block
Mark;The data storage is that the finger print information of card data has been deposited in the block;
The index information is stored in the index database.
2. the method as described in claim 1, it is characterised in that after the block chain data for obtaining the block catenary system, also
Including:
By the block chain data storage in block data storehouse.
3. the method as described in claim 1, it is characterised in that for either block catenary system, obtain the block catenary system
Block chain data, including:
Find that algorithm determines M optional nodes from the block catenary system by node;M is more than or equal to 3;
The block head cryptographic Hash of each block and block height in the local block chain of the M optional nodes are obtained respectively;
For multiple blocks with any same block height, meet preparatory condition in block head cryptographic Hash identical block
When, determine that the optional node corresponding to either block is transmission node from the block head cryptographic Hash identical block;
Data synchronization request is sent to the transmission node;The data synchronization request is used to indicate that the transmission node return should
Block data.
4. the method as described in claim 1, it is characterised in that the block chain data of the block catenary system are obtained, including:
Determine the block height maxima of the block catenary system stored in the index database;
Obtain the data that block height value in the block catenary system is not less than each block of the block height maxima.
5. a kind of data verification method, applied to the platform for including N number of block catenary system, N is more than or equal to 1, it is characterised in that bag
Include:
Data verification request is received, the finger print information of data to be verified is included in the data verification request;
According to the finger print information search index storehouse of the data to be verified, the index information of the acquisition data to be verified;It is described
Area in block catenary system where the identifying of block catenary system, the finger print information where index information includes the finger print information
The positional information of tile height and the finger print information within a block;
According to the identifying of the block catenary system, block height and the positional information, checking data are obtained;
When the finger print information of the data to be verified is consistent with the checking data, confirm that the data verification to be verified is led to
Cross.
6. method as claimed in claim 5, it is characterised in that according to the identifying of the block catenary system, block height
And the positional information, checking data are obtained, including:
According to the mark of the block catenary system, it is determined that block data storehouse corresponding with the mark of the block catenary system;
According in block data storehouse corresponding to the mark of block height and the positional information in the block catenary system
Obtain the checking data.
7. a kind of index database generating means, applied to the platform for including N number of block catenary system, N is more than or equal to 1, it is characterised in that
Including:
Transmit-Receive Unit, for for either block catenary system, obtaining the block chain data of the block catenary system;Processing unit,
The index information of each data storage in each block for extracting the local block chain;The index information includes the storage
The block height of block where data, positional information and the block catenary system of the data storage in the block
Mark;The data storage is that the finger print information of card data has been deposited in the block;
The processing unit, it is additionally operable to the index information being stored in the index database.
8. device as claimed in claim 7, it is characterised in that the processing unit is additionally operable to:
By the block chain data storage in block data storehouse.
9. device as claimed in claim 7, it is characterised in that the processing unit is specifically used for:
Find that algorithm determines M optional nodes from the block catenary system by node;M is more than or equal to 3;
The block head cryptographic Hash of each block and block height in the local block chain of the M optional nodes are obtained respectively;
For multiple blocks with any same block height, meet preparatory condition in block head cryptographic Hash identical block
When, determine that the optional node corresponding to either block is transmission node from the block head cryptographic Hash identical block;
The Transmit-Receive Unit is controlled to send data synchronization request to the transmission node;The data synchronization request is used to indicate institute
State transmission node and return to the block data.
10. device as claimed in claim 7, it is characterised in that the processing unit is specifically used for:
Determine the block height maxima of the block catenary system stored in the index database;
Control the Transmit-Receive Unit to obtain block height value in the block catenary system and be not less than block height value maximum
The data of each block.
11. a kind of data verification device, applied to the platform for including N number of block catenary system, N is more than or equal to 1, it is characterised in that
Including:
Transmit-Receive Unit, for receiving data verification request, the finger print information of data to be verified is included in the data verification request;
Processing unit, for the finger print information search index storehouse according to the data to be verified, obtain the data to be verified
Index information;The identifying of block catenary system, the finger print information location where the index information includes the finger print information
The positional information of block height and the finger print information within a block in block catenary system;
The processing unit, it is additionally operable to according to the identifying of the block catenary system, block height and the positional information,
Obtain checking data;
The processing unit, it is additionally operable to, when the finger print information of the data to be verified is consistent with the checking data, confirm institute
Data verification to be verified is stated to pass through.
12. device as claimed in claim 11, it is characterised in that the processing unit is specifically used for:
According to the mark of the block catenary system, it is determined that block data storehouse corresponding with the mark of the block catenary system;
According in block data storehouse corresponding to the mark of block height and the positional information in the block catenary system
Obtain the checking data.
13. a kind of computer-readable recording medium, it is characterised in that the computer-readable recording medium storage has computer can
Execute instruction, the computer executable instructions are used to make the computer perform claim require the index described in 1 to 4 any one
Library generating method.
A kind of 14. computing device, it is characterised in that including:
Memory, instructed for storage program;
Processor, for calling the programmed instruction stored in the memory, according to acquisition program perform as claim 1 to
Library generation method described in 4 any one.
15. a kind of computer-readable recording medium, it is characterised in that the computer-readable recording medium storage has computer can
Execute instruction, the computer executable instructions are used to make the computer perform as described in claim 5 or claim 6
Data verification method.
A kind of 16. computing device, it is characterised in that including:
Memory, instructed for storage program;
Processor, for calling the programmed instruction stored in the memory, performed according to the program of acquisition such as claim 5 or
Data verification method described in claim 6.
17. a kind of platform, it is characterised in that including N number of block catenary system, such as any one of claim 7 to claim 10 institute
The index database generating means stated and the data verification device as described in claim 11 or claim 12.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710842459.XA CN107729383B (en) | 2017-09-18 | 2017-09-18 | Index library generation method, data verification method, device and platform |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710842459.XA CN107729383B (en) | 2017-09-18 | 2017-09-18 | Index library generation method, data verification method, device and platform |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107729383A true CN107729383A (en) | 2018-02-23 |
CN107729383B CN107729383B (en) | 2021-06-29 |
Family
ID=61206673
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710842459.XA Active CN107729383B (en) | 2017-09-18 | 2017-09-18 | Index library generation method, data verification method, device and platform |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107729383B (en) |
Cited By (27)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108549825A (en) * | 2018-03-14 | 2018-09-18 | 中链科技有限公司 | A kind of file deposits card, verification and the means of proof and device |
CN109064031A (en) * | 2018-08-03 | 2018-12-21 | 四川民工加网络科技有限公司 | Project stakeholder's credit assessment method, block chain and storage medium based on block chain |
CN109102299A (en) * | 2018-08-01 | 2018-12-28 | 腾讯科技(深圳)有限公司 | Resource transfers data managing method, device and storage medium |
CN109388643A (en) * | 2018-10-26 | 2019-02-26 | 陕西医链区块链集团有限公司 | A kind of rapid data searching system and method based on block chain |
CN109558276A (en) * | 2018-11-30 | 2019-04-02 | 弗洛格(武汉)信息科技有限公司 | Block chain standby system, backup method and block chain verification method, verifying system |
CN109753823A (en) * | 2018-12-11 | 2019-05-14 | 烨链(上海)科技有限公司 | A kind of block chain data monitoring and managing method, system and computer storage medium |
CN109766723A (en) * | 2018-12-11 | 2019-05-17 | 烨链(上海)科技有限公司 | A kind of block chain data framework, regulatory framework, monitoring and managing method and computer readable storage medium |
CN109785132A (en) * | 2018-12-21 | 2019-05-21 | 众安信息技术服务有限公司 | A kind of anti-fake source tracing method, device and storage medium based on block chain |
CN109992624A (en) * | 2019-03-15 | 2019-07-09 | 深圳前海微众银行股份有限公司 | A kind of synchronous storage method, device and the computer equipment of block chain Block chain |
CN110009334A (en) * | 2018-11-07 | 2019-07-12 | 阿里巴巴集团控股有限公司 | A kind of building Mei Keer tree, simple payment verification method and device |
CN110096505A (en) * | 2019-03-31 | 2019-08-06 | 杭州复杂美科技有限公司 | A kind of date storage method and system, equipment and storage medium |
CN110188096A (en) * | 2019-04-18 | 2019-08-30 | 阿里巴巴集团控股有限公司 | A kind of index creation method, device and equipment of data record |
CN110275887A (en) * | 2019-06-20 | 2019-09-24 | 深圳前海微众银行股份有限公司 | A kind of data processing method based on block catenary system, system and device |
CN110347674A (en) * | 2019-06-03 | 2019-10-18 | 阿里巴巴集团控股有限公司 | A kind of index creation method, device and equipment based on service identification |
CN110400142A (en) * | 2018-06-01 | 2019-11-01 | 腾讯科技(深圳)有限公司 | Data processing method, device and storage medium |
CN110597912A (en) * | 2019-09-17 | 2019-12-20 | 深圳前海微众银行股份有限公司 | Block storage method and device |
CN110597825A (en) * | 2019-09-24 | 2019-12-20 | 腾讯科技(深圳)有限公司 | Data processing method and device based on block chain and node equipment |
CN110633389A (en) * | 2018-05-31 | 2019-12-31 | 阿里巴巴集团控股有限公司 | Processing method, device and system of block chain data and electronic equipment |
CN110851535A (en) * | 2019-11-18 | 2020-02-28 | 腾讯科技(深圳)有限公司 | Data processing method and device based on block chain, storage medium and terminal |
WO2020043048A1 (en) * | 2018-08-30 | 2020-03-05 | 杭州复杂美科技有限公司 | Parallel chain data synchronization method, device, and storage medium |
CN110866751A (en) * | 2018-08-28 | 2020-03-06 | 傲为信息技术(江苏)有限公司 | Block chain parallel chain maintenance method and block chain parallel chain |
CN111324902A (en) * | 2018-12-14 | 2020-06-23 | 航天信息股份有限公司 | Data access method, device and system based on block chain |
WO2020199710A1 (en) * | 2019-04-04 | 2020-10-08 | 创新先进技术有限公司 | Account book verification method, apparatus, and device |
US10917231B2 (en) | 2019-04-04 | 2021-02-09 | Advanced New Technologies Co., Ltd. | Data storage method, apparatus, system and device |
US10963453B2 (en) | 2019-06-03 | 2021-03-30 | Advanced New Technologies Co., Ltd. | Service identifier-based data indexing |
WO2021057164A1 (en) * | 2019-09-25 | 2021-04-01 | 支付宝(杭州)信息技术有限公司 | Query method and device for blockchain ledger, and apparatus |
US10990705B2 (en) | 2019-04-18 | 2021-04-27 | Advanced New Technologies Co., Ltd. | Index creation for data records |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106548091A (en) * | 2016-10-14 | 2017-03-29 | 北京爱接力科技发展有限公司 | A kind of data deposit card, the method and device of checking |
CN106797389A (en) * | 2016-11-18 | 2017-05-31 | 深圳前海达闼云端智能科技有限公司 | Block chain network, article trading method, device and node device |
CN107077674A (en) * | 2016-12-29 | 2017-08-18 | 深圳前海达闼云端智能科技有限公司 | Transaction verification processing method and device and node equipment |
-
2017
- 2017-09-18 CN CN201710842459.XA patent/CN107729383B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106548091A (en) * | 2016-10-14 | 2017-03-29 | 北京爱接力科技发展有限公司 | A kind of data deposit card, the method and device of checking |
CN106797389A (en) * | 2016-11-18 | 2017-05-31 | 深圳前海达闼云端智能科技有限公司 | Block chain network, article trading method, device and node device |
CN107077674A (en) * | 2016-12-29 | 2017-08-18 | 深圳前海达闼云端智能科技有限公司 | Transaction verification processing method and device and node equipment |
Cited By (39)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108549825A (en) * | 2018-03-14 | 2018-09-18 | 中链科技有限公司 | A kind of file deposits card, verification and the means of proof and device |
CN110633389A (en) * | 2018-05-31 | 2019-12-31 | 阿里巴巴集团控股有限公司 | Processing method, device and system of block chain data and electronic equipment |
CN110400142A (en) * | 2018-06-01 | 2019-11-01 | 腾讯科技(深圳)有限公司 | Data processing method, device and storage medium |
CN110400142B (en) * | 2018-06-01 | 2021-06-25 | 腾讯科技(深圳)有限公司 | Data processing method, device and storage medium |
CN109102299A (en) * | 2018-08-01 | 2018-12-28 | 腾讯科技(深圳)有限公司 | Resource transfers data managing method, device and storage medium |
CN109064031A (en) * | 2018-08-03 | 2018-12-21 | 四川民工加网络科技有限公司 | Project stakeholder's credit assessment method, block chain and storage medium based on block chain |
CN110866751B (en) * | 2018-08-28 | 2022-08-12 | 傲为有限公司 | Block chain parallel chain maintenance method and block chain parallel chain system |
CN110866751A (en) * | 2018-08-28 | 2020-03-06 | 傲为信息技术(江苏)有限公司 | Block chain parallel chain maintenance method and block chain parallel chain |
WO2020043048A1 (en) * | 2018-08-30 | 2020-03-05 | 杭州复杂美科技有限公司 | Parallel chain data synchronization method, device, and storage medium |
CN109388643A (en) * | 2018-10-26 | 2019-02-26 | 陕西医链区块链集团有限公司 | A kind of rapid data searching system and method based on block chain |
CN110009334A (en) * | 2018-11-07 | 2019-07-12 | 阿里巴巴集团控股有限公司 | A kind of building Mei Keer tree, simple payment verification method and device |
WO2020093808A1 (en) * | 2018-11-07 | 2020-05-14 | 阿里巴巴集团控股有限公司 | Method and apparatus for constructing merkle trees, and method and apparatus for simplified payment verification |
CN109558276A (en) * | 2018-11-30 | 2019-04-02 | 弗洛格(武汉)信息科技有限公司 | Block chain standby system, backup method and block chain verification method, verifying system |
CN109753823A (en) * | 2018-12-11 | 2019-05-14 | 烨链(上海)科技有限公司 | A kind of block chain data monitoring and managing method, system and computer storage medium |
CN109766723A (en) * | 2018-12-11 | 2019-05-17 | 烨链(上海)科技有限公司 | A kind of block chain data framework, regulatory framework, monitoring and managing method and computer readable storage medium |
CN111324902A (en) * | 2018-12-14 | 2020-06-23 | 航天信息股份有限公司 | Data access method, device and system based on block chain |
CN109785132A (en) * | 2018-12-21 | 2019-05-21 | 众安信息技术服务有限公司 | A kind of anti-fake source tracing method, device and storage medium based on block chain |
CN109992624B (en) * | 2019-03-15 | 2024-03-22 | 深圳前海微众银行股份有限公司 | Synchronous storage method and device for Block chain and computer equipment |
CN109992624A (en) * | 2019-03-15 | 2019-07-09 | 深圳前海微众银行股份有限公司 | A kind of synchronous storage method, device and the computer equipment of block chain Block chain |
CN110096505A (en) * | 2019-03-31 | 2019-08-06 | 杭州复杂美科技有限公司 | A kind of date storage method and system, equipment and storage medium |
WO2020199710A1 (en) * | 2019-04-04 | 2020-10-08 | 创新先进技术有限公司 | Account book verification method, apparatus, and device |
US10917231B2 (en) | 2019-04-04 | 2021-02-09 | Advanced New Technologies Co., Ltd. | Data storage method, apparatus, system and device |
CN110188096B (en) * | 2019-04-18 | 2021-08-17 | 创新先进技术有限公司 | Index creating method, device and equipment for data record |
CN110188096A (en) * | 2019-04-18 | 2019-08-30 | 阿里巴巴集团控股有限公司 | A kind of index creation method, device and equipment of data record |
US10990705B2 (en) | 2019-04-18 | 2021-04-27 | Advanced New Technologies Co., Ltd. | Index creation for data records |
US11126751B2 (en) | 2019-04-18 | 2021-09-21 | Advanced New Technologies Co., Ltd. | Index creation for data records |
US11816099B2 (en) | 2019-06-03 | 2023-11-14 | Advanced New Technologies Co., Ltd. | Service identifier-based data indexing |
WO2020244239A1 (en) * | 2019-06-03 | 2020-12-10 | 创新先进技术有限公司 | Index creation method, apparatus and device based on service identifier |
US10963453B2 (en) | 2019-06-03 | 2021-03-30 | Advanced New Technologies Co., Ltd. | Service identifier-based data indexing |
CN110347674A (en) * | 2019-06-03 | 2019-10-18 | 阿里巴巴集团控股有限公司 | A kind of index creation method, device and equipment based on service identification |
US11106660B2 (en) | 2019-06-03 | 2021-08-31 | Advanced New Technologies Co., Ltd. | Service identifier-based data indexing |
CN110275887A (en) * | 2019-06-20 | 2019-09-24 | 深圳前海微众银行股份有限公司 | A kind of data processing method based on block catenary system, system and device |
CN110597912B (en) * | 2019-09-17 | 2024-01-16 | 深圳前海微众银行股份有限公司 | Block storage method and device |
CN110597912A (en) * | 2019-09-17 | 2019-12-20 | 深圳前海微众银行股份有限公司 | Block storage method and device |
CN110597825B (en) * | 2019-09-24 | 2021-07-27 | 腾讯科技(深圳)有限公司 | Data processing method and device based on block chain and node equipment |
CN110597825A (en) * | 2019-09-24 | 2019-12-20 | 腾讯科技(深圳)有限公司 | Data processing method and device based on block chain and node equipment |
WO2021057164A1 (en) * | 2019-09-25 | 2021-04-01 | 支付宝(杭州)信息技术有限公司 | Query method and device for blockchain ledger, and apparatus |
CN110851535B (en) * | 2019-11-18 | 2021-07-13 | 腾讯科技(深圳)有限公司 | Data processing method and device based on block chain, storage medium and terminal |
CN110851535A (en) * | 2019-11-18 | 2020-02-28 | 腾讯科技(深圳)有限公司 | Data processing method and device based on block chain, storage medium and terminal |
Also Published As
Publication number | Publication date |
---|---|
CN107729383B (en) | 2021-06-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107729383A (en) | A kind of library generation method, data verification method, device and platform | |
CN107807951A (en) | A kind of block chain generation method, data verification method, node and system | |
US9626074B2 (en) | Touch screen unlocking method and device | |
CN107368259A (en) | A kind of method and apparatus that business datum is write in the catenary system to block | |
CN107657438A (en) | A kind of block chain generation method, data verification method, node and system | |
CN106294421B (en) | Data writing and reading method and device | |
CN107015985A (en) | A kind of data storage and acquisition methods and device | |
CN108388604A (en) | User right data administrator, method and computer readable storage medium | |
CN111311005B (en) | Distribution path planning method, distribution path planning device, distribution path planning medium and computer equipment | |
CN109493048A (en) | Financial accounting method, apparatus, equipment and storage medium based on block chain | |
CN110096542A (en) | Data verification processing method, device, system and the medium of decentralization | |
CN109934712A (en) | Account checking method, account checking apparatus and electronic equipment applied to distributed system | |
CN109597979A (en) | Inventory table generation method, device, computer equipment and storage medium | |
US20180035367A1 (en) | Method and Apparatus for Accessing Wifi Access Point in Target Shop | |
CN112036125B (en) | Document management method and device and computer equipment | |
CN109472567B (en) | Digital currency processing method, device, computer equipment and storage medium | |
CN106102059B (en) | For the method and apparatus for the owner for determining hotspot | |
CN110460686A (en) | A kind of block chain address register method and device | |
CN105119743B (en) | Acquisition method of user behavior intention and apparatus | |
US20120166251A1 (en) | Server and method for providing affiliate store information | |
US20200175502A1 (en) | Confidential transaction in a blockchain network | |
CN107066309A (en) | Entry template sharing method, system, computer program and electronic equipment | |
KR20190021406A (en) | Method and device for enabling expansion of primary payment means | |
CN110598451A (en) | Data desensitization method and device | |
CN109542872A (en) | Method for reading data, device, computer equipment and storage medium |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |