CN109669943A - Date storage method, data query method and device - Google Patents
Date storage method, data query method and device Download PDFInfo
- Publication number
- CN109669943A CN109669943A CN201811452494.1A CN201811452494A CN109669943A CN 109669943 A CN109669943 A CN 109669943A CN 201811452494 A CN201811452494 A CN 201811452494A CN 109669943 A CN109669943 A CN 109669943A
- Authority
- CN
- China
- Prior art keywords
- data
- block
- identifier information
- block chain
- stored
- 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
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/64—Protecting data integrity, e.g. using checksums, certificates or signatures
Abstract
This application discloses date storage method, data query method and device, in the scheme of embodiments herein, user is uploaded or is inquired data by block chain node.On the one hand, it is stored in due to the data distribution formula of each block chain nodes sharing in the block chain of each block chain node maintenance, the data of deposit block chain are difficult to be tampered, and safety is higher;On the other hand, block chain node will pass through identical one or more block records with the data of same identification information in storing data, and the data of different identification information are recorded by different blocks, facilitate the management of follow-up data, when inquiring data, without traversing whole block chain, corresponding block only need to be found, to improve the efficiency of inquiry.
Description
Technical field
This application involves information technology fields, in particular to date storage method, data query method and device.
Background technique
In the information age, as the value of data highlights further, more and more users want to share mutual data.Example
Such as, consumer wishes to obtain the quality testing data of commodity, and businessman wishes to obtain the hobby data of consumer.Currently, generally by
On the one hand data sharing platform receives and stores the data of user's upload, on the other hand provides a user data and look into as intermediary
Service is ask, in this way, the data sharing between being achieved that user.Based on the prior art, safer and efficient number is needed
According to storage method and data query method.
Summary of the invention
In view of problem above, the embodiment of the present invention provides date storage method, data query method and device, to solve
Existing date storage method not can guarantee data safety and the low problem of efficiency data query.
The date storage method of embodiment according to the invention, comprising: an at least data are stored in memory pool, the data
Carry first identifier information;When meeting preset condition, the carrying stored in the memory pool the first identifier information is collected
Data;Block is generated according to the data being collected into and is written in block chain.
The data query method of embodiment according to the invention, comprising: receive data inquiry request, the data query is asked
It asks and carries first identifier information;Inquiry request based on the data, determine block corresponding to the first identifier information and
The data recorded in the block.
The data storage device of embodiment according to the invention, comprising: memory module, for will an at least data deposit in
Pond is deposited, the data carry first identifier information;Collection module, for when meeting preset condition, collecting in the memory pool
The data of the carrying first identifier information of storage;Writing module, the data for being collected into according to generate block simultaneously
It is written in block chain.
The data query device of embodiment according to the invention, comprising: receiving module, inquiry request for receiving data,
The data inquiry request carries first identifier information;Determining module determines described for inquiry request based on the data
The data recorded in block corresponding to one identification information and the block.
The calculating equipment of embodiment according to the invention, including processor;And memory, it is stored thereon with executable finger
It enables;Wherein, the processor is configured to execute the executable instruction to implement method above-mentioned.
The computer readable storage medium of embodiment according to the invention is stored thereon with computer program, the calculating
Machine program includes executable instruction, when the executable instruction is executed by processor, implements method above-mentioned.
It can be seen from the above that in the scheme of the embodiment of the present invention, user uploaded by block chain node or
Person inquires data.On the one hand, since the data distribution formula of each block chain nodes sharing is stored in the area of each block chain node maintenance
In block chain, therefore the data for being stored in block chain are difficult to be tampered, and safety is higher;On the other hand, block chain node is in storage number
According to when will be with the data of same identification information by identical one or more blocks records, and by the number of different identification information
It is recorded according to by different blocks, facilitates the management of follow-up data, when inquiring data, without traversing whole block chain,
Corresponding block only need to be found, to improve the efficiency of inquiry.
Detailed description of the invention
Fig. 1 is date storage method one embodiment flow chart in the embodiment of the present application;
Fig. 2 is data query method one embodiment flow chart in the embodiment of the present application;
Fig. 3 is the architecture diagram of data storage and inquiry system in the embodiment of the present application;
Fig. 4 is data storage device one embodiment schematic diagram in the embodiment of the present application;
Fig. 5 is data query device one embodiment schematic diagram in the embodiment of the present application;
Fig. 6 is one embodiment structural schematic diagram that equipment is calculated in the embodiment of the present application.
Specific embodiment
Theme described herein is discussed referring now to example embodiment.It should be understood that discussing these embodiments only
It is in order to enable those skilled in the art can better understand that being not to claim to realize theme described herein
Protection scope, applicability or the exemplary limitation illustrated in book.It can be in the protection scope for not departing from present disclosure
In the case of, the function and arrangement of the element discussed are changed.Each example can according to need, omit, substitute or
Add various processes or component.For example, described method can be executed according to described order in a different order, with
And each step can be added, omits or combine.In addition, feature described in relatively some examples is in other examples
It can be combined.
As used in this article, term " includes " and its modification indicate open term, are meant that " including but not limited to ".
Term "based" indicates " being based at least partially on ".Term " one embodiment " and " embodiment " expression " at least one implementation
Example ".Term " another embodiment " expression " at least one other embodiment ".Term " first ", " second " etc. may refer to not
Same or identical object.Here may include other definition, either specific or implicit.Unless bright in context
It really indicates, otherwise the definition of a term is consistent throughout the specification.
As stated in the background art, on the one hand existing data sharing platform can receive and store the number that each user uploads
According on the other hand again to each user offer data query service.But this mode has two: first, due to each use
The shared data in family transfer to the data sharing platform of centralization to store, if someone's malice distorts the data stored on platform, that
The data that each user inquires from platform are exactly incredible;Second, data sharing platform usually simultaneously receive it is multiple
The data inquiry request that user sends, and data sharing platform is limited to the processing capacity of data inquiry request, this has been resulted in
User need wait in line, inquiry data take a long time, the efficiency for inquiring data is lower.
For this purpose, in this specification embodiment, first, forming block chain network, each block chain link by block chain node
The shared data of point can be stored in the block chain that each block chain node is safeguarded respectively after each block chain node knows together verifying
In, in this way, which the data for being stored in block chain are difficult to be tampered or lose.Second, if some block chain node wants inquiry
The data of other block chain nodes sharings, the block chain node can pass through mark in the data of the block chain storage of oneself maintenance
Know information inquiry can (data of the block chain of each block chain node maintenance storage are synchronous), the efficiency for inquiring data is able to
It is promoted.Thirdly, block chain node in storing data, identical one or more will be written with the data of same identification information
In block, the data of different identification information are written in different blocks, facilitate the management of follow-up data, looked into data
When inquiry, without traversing whole block chain, corresponding block only need to be found, to further improve the efficiency of inquiry.
In order to keep the technical solution of the application clearer, below in conjunction with concrete scene to provided by the embodiments of the present application
Date storage method and data query method are introduced.
Fig. 1 be date storage method flow chart provided by the embodiments of the present application, this method 100 the following steps are included:
S102: an at least data are stored in memory pool, the data carry first identifier information.
Process shown in FIG. 1 is the process that the data of itself are stored in block chain by block chain node.
In the embodiment of the present application, block chain node can be server or terminal, specifically can be the number for sharing itself
According to user server (below, the server that block chain node is also possible to the user of request inquiry data), or be
The server of other users shared data.For example, the detection service mechanism for providing detection service wants will test report altogether
It enjoys to other users, then the server of detection service mechanism can be used as block chain node access area block chain network.
In the embodiment of the present application, block chain node can receive the data that user uploads, and data are then stored in memory pool
In.Block chain node can receive the data that multiple users upload simultaneously, can receive one or more data that user uploads, multiple
Data can be packaged while be uploaded to block chain node, can also successively upload.
In the embodiment of the present application, the data for being uploaded to block chain node carry identification information.The identification information is number
According to the intrinsic identity identification information of corresponding object, the attribute letter of user's self-setting either object itself can be
Breath.Such as commodity sequence number, the corresponding commodity of each commodity sequence number, commodity sequence number is the identity identification information of commodity, should
Commodity sequence number is identification information.When testing to a certain commodity, multiple detection datas may be obtained, then this is multiple
Detection data carries the identification information of the commodity respectively.The for another example identity information of consumer, the corresponding consumption of each identity information
Person, identity information are the identity identification informations of consumer, which is identification information.Certainly, which can also
Think the identity identification information that a class object is intrinsic corresponding to data.For example, the company-information of commodity, same producer it is more
The data of class commodity carry the company-information respectively, then the company-information is identification information.
In the embodiment of the present application, data are stored in memory pool by block chain node, in a certain period of time, are stored in memory
Data in pond may include the A data for carrying first identifier information, B data, C data, and, carry second identifier letter
D data, E data, the F data of breath can also include the data for carrying other identifier information certainly.
S104: when meeting preset condition, the number of the carrying first identifier information stored in the memory pool is collected
According to.
In the embodiment of the present application, meeting preset condition includes in receiving preset instructions, reaching preset time or is described
The quantity of the data stored in storage reaches preset threshold.
When it is implemented, meeting preset condition can refer to that block chain node receives in some possible implementations
The preset instructions sent to the user for uploading data, such as node uploads carrying first identifier information to user in different times
Multiple data, after completing data upload, user sends the preset instructions for uploading and finishing to block chain node, which can
Including first identifier information, to indicate that block chain node starts to collect the data for carrying first identifier information.Specifically, user can
Data are uploaded to block chain node by client and send preset instructions.In other possible implementations, meet pre-
If condition, which can also be, reaches preset time, it specifically can be block chain node and collect every preset time once, alternatively, referring to
Determine the data that user setting block chain node collects its upload after preset time.It is full in other possible implementation
Sufficient preset condition can also be that the quantity of the data stored in memory pool reaches preset threshold, can be the number of same identification information
According to quantity reach preset threshold, the quantity for being also possible to all data stored in memory pool reaches preset threshold.
S106: block is generated according to the data being collected into and is written in block chain.
In the embodiment of the present application, generating block according to the data being collected into can specifically include: according to the number being collected into
According to the cryptographic Hash for generating data;The tree root cryptographic Hash of Merkel tree is calculated according to the cryptographic Hash of data;The carried according to data
The cryptographic Hash of one identification information generation first identifier information;Obtain the timestamp of current block;Obtain the corresponding Kazakhstan of a upper block
Uncommon value;By the corresponding cryptographic Hash of a upper block, the tree root cryptographic Hash of Merkel tree, the cryptographic Hash of first identifier information and current
The time stamp setting of block is into the block head of current block, by the block main body of the data being collected into setting to current block
In.
When it is implemented, the corresponding cryptographic Hash of a upper block is by carrying out Hash meter to the data stored in a upper block
Calculate acquisition.It specifically, include block head and block main body in a upper block, including the previous area of a upper block in block head
The corresponding cryptographic Hash of tree root of the Merkel tree of the cryptographic Hash of block and a upper block, by the two cryptographic Hash using Hash calculation
Obtain the corresponding cryptographic Hash of a block.
Current block includes block head and block main body, and the corresponding cryptographic Hash of a upper block is stored in block head, and
And it is also stored in block head and generates the timestamp of current block and the tree root cryptographic Hash of Merkel tree, each leaf of Merkel tree
Child node storage carries out the cryptographic Hash after Hash calculation to the data being collected into, and the root node storing data of Merkel tree is corresponding
Cryptographic Hash carries out total cryptographic Hash after adding up.The data being collected into are stored in block main body.
In the embodiment of the present application, it will can specifically include in the block write-in block chain of generation: the block of generation is wide
It broadcasts and gives other block chain nodes;Each block chain link point verifies the block of generation according to preset common recognition mechanism;It will verifying
By block be added block chain end;Block chain is carried out to the block chain of each block chain node of broadcast synchronization.
In the embodiment of the present application, it if the data total size being collected into is more than the capacity of a block, can will collect
To data be divided into more parts, every part of data sequentially generate a block respectively.In the embodiment of the present application, block chain may include
Publicly-owned block chain, alliance's block chain or privately owned block chain.
In one embodiment, method 100 further include: the first identifier information and the area are established in concordance list
The corresponding relationship of block.When it is implemented, the corresponding relationship of first identifier information and block Hash or block height can be established.Pass through
The corresponding relationship that first identifier information and block are established in concordance list keeps user corresponding by first identifier information searching
Block.Same data can carry multiple identification informations, and block chain node is believed according to a certain mark in multiple identification informations
Breath collect data generate block, the Hash of the multiple identification information is settable into the block, the block can with it is described more
A identification information establishes index relative.
From the foregoing, it will be observed that the embodiment of the present application provides a kind of date storage method, and when carrying out data storage, block chain link
At least data for carrying first identifier information are stored in memory pool by point, when meeting preset condition to carrying first identifier
An at least data for information, which be packaged, generates block, records the more of same identification information by identical one or more blocks
A data facilitate subsequent management and inquiry to data.
Fig. 2 is data query method flow diagram provided by the embodiments of the present application, and this method 200 includes the following steps:
S202: receiving data inquiry request, and the data inquiry request carries first identifier information.
Process shown in Fig. 2 is the process of the data in the block chain of block chain node interrogation zone, the number of block chain querying node
According to deposit block chain in process usually shown in Fig. 1.
Data inquiry request can be sent to block chain node by client by user.
S204: inquiry request based on the data determines block corresponding to the first identifier information and the area
The data recorded in block.
In the embodiment of the present application, remember in block and the block corresponding to the determination first identifier information
The data of record, specifically include: according to concordance list determine the first identifier information corresponding to remember in block and the block
The data of record, wherein the concordance list includes the data that the first identifier information and record carry the first identifier information
Block between corresponding relationship.
In the embodiment of the present application, which can be first identifier information and block-identified corresponding relationship, area
Block identification includes block Hash or block height, and block chain node can be according to first identifier information index to corresponding block.
In the embodiment of the present application, it by establishing the corresponding relationship of first identifier information and block in concordance list, uses
Family can pass through the corresponding block of first identifier information searching.Same data can carry multiple identification informations, block chain node
Data are collected according to a certain identification information in multiple identification informations and generate block, and the Hash of the multiple identification information is settable
Into the block, which can establish index relative with the multiple identification information.
In the embodiment of the present application, one or more blocks can be indexed by an identification information, block can be with
Corresponding different identification information, can index same block by different identification informations.For example, can be with by company-information
The corresponding multiple blocks of producer's difference commodity are indexed, it is corresponding to index wherein a certain commodity by commodity sequence number
Block.
Fig. 3 is the architecture diagram of data storage and inquiry system provided by the embodiments of the present application.As shown in figure 3, system 300 is wrapped
Server 302, server 304 and server 306 are included, server 302, server 304 and server 306 are used as block chain node
Form block chain network, the maintenance of each server has a block chain, each server can into block chain storing data or
Data are inquired from block chain, the block that block chain node generates need to be carried out through each block chain link point according to preset common recognition mechanism
Verifying.It should be understood that, the number of the block chain node in Fig. 3 is only schematical.According to actual needs, it can have and appoint
The block chain node for number of anticipating.
Based on date storage method shown in FIG. 1, the embodiment of the present application also correspondence provides a kind of data storage device, under
Face will be introduced data storage device provided by the embodiments of the present application from the angle of function modoularization.
Fig. 4 is one embodiment schematic diagram of data storage device in the embodiment of the present application, which can use soft
The mode of part, hardware or software and hardware combining is realized.Since the embodiment of device 400 is substantially similar to the embodiment of method, institute
To describe fairly simple, the relevent part can refer to the partial explaination of embodiments of method.Fig. 4 is referred to, device 400 includes depositing
Store up module 402, collection module 404 and writing module 406.Memory module 402 is described for an at least data to be stored in memory pool
Data carry first identifier information.Collection module 404 is used for when meeting preset condition, collects taking of storing in the memory pool
Data with the first identifier information.The data that writing module 406 is used to be collected into according to generate block and write area
In block chain.
In one aspect, the preset condition that meets includes receiving preset instructions, reaching preset time or the memory
The quantity of the data stored in pond reaches preset threshold.
On the other hand, device 400 further includes establishing module.Module is established for establishing described first in concordance list
The corresponding relationship of identification information and the block.
Based on data query method shown in Fig. 2, the embodiment of the present application also correspondence provides a kind of data query device, under
Face will be introduced data query device provided by the embodiments of the present application from the angle of function modoularization.
Fig. 5 is one embodiment schematic diagram of data query device in the embodiment of the present application, which can use soft
The mode of part, hardware or software and hardware combining is realized.Since the embodiment of device 500 is substantially similar to the embodiment of method, institute
To describe fairly simple, the relevent part can refer to the partial explaination of embodiments of method.Fig. 5 is referred to, device 500 includes connecing
Receive module 502 and determining module 504.The inquiry request for receiving data of receiving module 502, the data inquiry request carry the
One identification information.Determining module 504 determines area corresponding to the first identifier information for inquiry request based on the data
The data recorded in block and the block.
In one aspect, determining module 504 is specifically used for inquiry request based on the data, according to concordance list determination
The data recorded in block corresponding to first identifier information and the block, wherein the concordance list includes described first
Corresponding relationship between the block for the data that identification information and record carry the first identifier information.
Above embodiments are that device provided by the embodiments of the present application is introduced from the angle of function modoularization, below will
Device provided by the embodiments of the present application is illustrated from the angle of hardware entities.
In the embodiment of the present application, a kind of calculating equipment is also provided, which may include processor and be used for
Store the memory of the executable instruction of the processor.Wherein, the processor is configured to via the execution executable finger
The step of enabling to execute the storage of the data in any one above-mentioned embodiment or querying method.
Person of ordinary skill in the field it is understood that various aspects of the disclosure can be implemented as system, method or
Program product.Therefore, various aspects of the disclosure can be with specific implementation is as follows, it may be assumed that complete hardware embodiment, complete
The embodiment combined in terms of full Software Implementation (including firmware, microcode etc.) or hardware and software, can unite here
Referred to as circuit, " module " or " system ".
Calculating equipment according to an embodiment of the present application is described referring to Fig. 6.For ease of description, illustrate only with
The relevant part of the embodiment of the present application, it is disclosed by specific technical details, please refer to the embodiment of the present application method part.
It is showed in the form of universal computing device as shown in fig. 6, calculating equipment 600.Calculating equipment 600 may include processing
Device 602 and memory 604, wherein be stored with executable instruction on memory 604, wherein the executable instruction, which is worked as, to be performed
When make processor 602 execute in any one above-mentioned embodiment data storage or querying method.
As shown in fig. 6, calculating equipment 600 can also include connecting different system components (including processor 602 and memory
604) bus 606.Bus 606 indicates one of a few class bus structures or a variety of, including memory bus or memory
Controller, peripheral bus, graphics acceleration port, processor or the local using any bus structures in a variety of bus structures
Bus.For example, these architectures include but is not limited to industry standard architecture (ISA) bus, microchannel system knot
Structure (MAC) bus, enhanced isa bus, Video Electronics Standards Association (VESA) local bus and peripheral component interconnection (PCI)
Bus.
It calculates equipment 600 and typically comprises a variety of computer system readable media.These media can be it is any can be by
Calculate the usable medium that equipment 600 accesses, including volatile and non-volatile media, moveable and immovable medium.
Memory 604 may include the computer system readable media of form of volatile memory, such as arbitrary access is deposited
Reservoir (RAM) 608 and and/or cache memory 610.Calculate equipment 600 may further include it is other it is removable/can not
Mobile, volatile/non-volatile computer system storage medium.Only as an example, storage system 612 can be used for reading and writing not
Movably, non-volatile magnetic media (Fig. 6 do not show, commonly referred to as " hard disk drive ").It, can be with although being not shown in Fig. 6
The disc driver for reading and writing to removable non-volatile magnetic disk (such as " floppy disk ") is provided, and non-volatile to moving
The CD drive of CD (such as CD-ROM, DVD-ROM or other optical mediums) read-write.In these cases, each driving
Device can be connected by one or more data media interfaces with bus 606.Memory 604 may include at least one program
Product, the program product have one group of (for example, at least one) program module, these program modules are configured to perform above-mentioned
Data storage or querying method in one embodiment of anticipating.
Program/utility 614 with one group of (at least one) program module 616, can store in such as memory
In 604, such program module 616 includes but is not limited to operating system, one or more application program, other program modules
And program data, it may include the realization of network environment in each of these examples or certain combination.Program module 616
Usually execute data storage or the querying method in any one above-mentioned embodiment.
Calculating equipment 600 can also be with one or more external equipments 622 (such as keyboard, sensing equipment, display 624
Deng) communication, can also be enabled a user to one or more equipment interact with the calculating equipment 600 communicate, and/or with make
Any equipment (such as network interface card, the modem that the calculating equipment 600 can be communicated with one or more of the other calculating equipment
Etc.) communication.This communication can be carried out by input/output (I/O) interface 618.Also, calculating equipment 600 can also lead to
Cross network adapter 620 and one or more network (such as local area network (LAN), wide area network (WAN) and/or public network, example
Such as internet) communication.As shown, network adapter 620 is communicated by bus 606 with the other modules for calculating equipment 600.It answers
When understanding, although not shown in the drawings, other hardware and/or software module can be used in conjunction with equipment 600 is calculated, including but unlimited
In: microcode, device driver, redundant processor, external disk drive array, RAID system, tape drive and data
Backup storage system etc..
Program of the processor 602 by operation storage in the memory 604, thereby executing various function application and data
Processing, such as realize data storage or querying method in any one above-mentioned embodiment.
A kind of computer readable storage medium is also provided in the embodiment of the present application, is stored thereon with computer program, it is described
Computer program includes executable instruction, when the executable instruction is executed by processor, implements any one above-mentioned embodiment
In data storage or the step of querying method.In some possible embodiments, various aspects of the disclosure can also be real
It is now a kind of form of program product comprising program code, when described program product is run on the terminal device, the journey
Sequence code be used for make the terminal device execute this specification data storage or querying method described in it is each according to the disclosure
The step of kind exemplary embodiment.
Program product according to an embodiment of the present disclosure for realizing the above method can be using portable compact disc only
It reads memory (CD-ROM) and including program code, and can be run on terminal device, such as PC.However, this public affairs
The program product opened is without being limited thereto, and in this document, readable storage medium storing program for executing can be any tangible Jie for including or store program
Matter, the program can be commanded execution system, device or device use or in connection.
Described program product can be using any combination of one or more readable mediums.Readable medium can be readable letter
Number medium or readable storage medium storing program for executing.Readable storage medium storing program for executing for example can be but be not limited to electricity, magnetic, optical, electromagnetic, infrared ray or
System, device or the device of semiconductor, or any above combination.The more specific example of readable storage medium storing program for executing is (non exhaustive
List) include: electrical connection with one or more conducting wires, portable disc, hard disk, random access memory (RAM), read-only
Memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc read only memory
(CD-ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.
The computer readable storage medium may include in a base band or the data as the propagation of carrier wave a part are believed
Number, wherein carrying readable program code.The data-signal of this propagation can take various forms, including but not limited to electromagnetism
Signal, optical signal or above-mentioned any appropriate combination.Readable storage medium storing program for executing can also be any other than readable storage medium storing program for executing
Readable medium, the readable medium can send, propagate or transmit for by instruction execution system, device or device use or
Person's program in connection.The program code for including on readable storage medium storing program for executing can transmit with any suitable medium, packet
Include but be not limited to wireless, wired, optical cable, RF etc. or above-mentioned any appropriate combination.
Can with any combination of one or more programming languages come write for execute the disclosure operation program
Code, described program design language include object oriented program language-Java, C++ etc., further include conventional
Procedural programming language-such as " C " language or similar programming language.Program code can be fully in user
It calculates and executes in equipment, partly executes on a user device, being executed as an independent software package, partially in user's calculating
Upper side point is executed on a remote computing or is executed in remote computing device or server completely.It is being related to far
Journey calculates in the situation of equipment, and remote computing device can pass through the network of any kind, including local area network (LAN) or wide area network
(WAN), it is connected to user calculating equipment, or, it may be connected to external computing device (such as utilize ISP
To be connected by internet).
The specific embodiment illustrated above in conjunction with attached drawing describes exemplary embodiment, it is not intended that may be implemented
Or fall into all embodiments of the protection scope of claims." exemplary " meaning of the term used in entire this specification
Taste " be used as example, example or illustration ", be not meant to than other embodiments " preferably " or " there is advantage ".For offer pair
The purpose of the understanding of described technology, specific embodiment include detail.However, it is possible in these no details
In the case of implement these technologies.In some instances, public in order to avoid the concept to described embodiment causes indigestion
The construction and device known is shown in block diagram form.
The foregoing description of present disclosure is provided so that any those of ordinary skill in this field can be realized or make
Use present disclosure.To those skilled in the art, the various modifications carried out to present disclosure are apparent
, also, can also answer generic principles defined herein in the case where not departing from the protection scope of present disclosure
For other modifications.Therefore, present disclosure is not limited to examples described herein and design, but disclosed herein with meeting
Principle and novel features widest scope it is consistent.
Claims (10)
1. date storage method, comprising:
An at least data are stored in memory pool, the data carry first identifier information;
When meeting preset condition, the data of the carrying first identifier information stored in the memory pool are collected;
Block is generated according to the data being collected into and is written in block chain.
2. according to the method described in claim 1, wherein,
It is described meet preset condition include receive preset instructions, reach preset time or the memory pool in the data that store
Quantity reaches preset threshold.
3. method according to claim 1 or 2, wherein the method also includes:
The corresponding relationship of the first identifier information and the block is established in concordance list.
4. data query method, comprising:
Data inquiry request is received, the data inquiry request carries first identifier information;
Inquiry request based on the data is determined and is recorded in block corresponding to the first identifier information and the block
Data.
5. according to the method described in claim 4, wherein, block and institute corresponding to the determination first identifier information
The data recorded in block are stated, are specifically included:
According to concordance list determine the first identifier information corresponding to the data that record in block and the block, wherein
The concordance list includes pair between the block of the data of the first identifier information and the record carrying first identifier information
It should be related to.
6. data storage device, comprising:
Memory module, for an at least data to be stored in memory pool, the data carry first identifier information;
Collection module, for when meeting preset condition, collecting the carrying first identifier information stored in the memory pool
Data;
Writing module, the data for being collected into according to generate block and are written in block chain.
7. device according to claim 6, wherein described device further include:
Module is established, for establishing the corresponding relationship of the first identifier information and the block in concordance list.
8. data query device, comprising:
Receiving module, inquiry request, the data inquiry request carry first identifier information for receiving data;
Determining module determines block corresponding to the first identifier information and institute for inquiry request based on the data
State the data recorded in block.
9. calculating equipment, comprising:
Processor;And
Memory is stored thereon with executable instruction;
Wherein, the processor is configured to execute the executable instruction to implement side as described in any one in claim 1-5
Method.
10. computer readable storage medium is stored thereon with computer program, the computer program includes executable instruction,
When the executable instruction is executed by processor, implement the method according to claim 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811452494.1A CN109669943A (en) | 2018-11-30 | 2018-11-30 | Date storage method, data query method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811452494.1A CN109669943A (en) | 2018-11-30 | 2018-11-30 | Date storage method, data query method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109669943A true CN109669943A (en) | 2019-04-23 |
Family
ID=66143445
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811452494.1A Pending CN109669943A (en) | 2018-11-30 | 2018-11-30 | Date storage method, data query method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109669943A (en) |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110197372A (en) * | 2019-05-24 | 2019-09-03 | 杭州复杂美科技有限公司 | Means of defence, equipment and the storage medium of trading group attack |
CN110334149A (en) * | 2019-06-04 | 2019-10-15 | 阿里巴巴集团控股有限公司 | A kind of data record method based on block chain, device and electronic equipment |
CN110347674A (en) * | 2019-06-03 | 2019-10-18 | 阿里巴巴集团控股有限公司 | A kind of index creation method, device and equipment based on service identification |
CN110378667A (en) * | 2019-06-19 | 2019-10-25 | 深圳壹账通智能科技有限公司 | Personal profession skill growth monitoring method and device, storage medium, electronic equipment |
CN110532324A (en) * | 2019-09-05 | 2019-12-03 | 腾讯科技(深圳)有限公司 | Notice information methods of exhibiting, device, equipment and storage medium based on block chain |
CN111212126A (en) * | 2019-12-27 | 2020-05-29 | 百度在线网络技术(北京)有限公司 | Data transmission method, device, equipment and medium of block chain network |
CN111563753A (en) * | 2020-04-29 | 2020-08-21 | 程烨 | Query method and device for product tracing information, server and storage medium |
CN111581289A (en) * | 2020-05-08 | 2020-08-25 | 西安华域网络文化发展有限公司 | Data management method, system, device and medium for double-end block chain |
CN112163036A (en) * | 2020-09-11 | 2021-01-01 | 泰康保险集团股份有限公司 | Block chain information construction and query method and related device |
CN112256395A (en) * | 2020-10-23 | 2021-01-22 | 海光信息技术股份有限公司 | Secure memory allocation, virtual CPU scheduling method and related device |
US10963453B2 (en) | 2019-06-03 | 2021-03-30 | Advanced New Technologies Co., Ltd. | Service identifier-based data indexing |
CN116910126A (en) * | 2023-09-14 | 2023-10-20 | 国网山东省电力公司营销服务中心(计量中心) | System and method for conveniently storing, classifying and inquiring massive daily clear electric quantity data |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107239479A (en) * | 2017-03-28 | 2017-10-10 | 阿里巴巴集团控股有限公司 | A kind of method and device of data storage and inquiry based on block chain |
CN107273556A (en) * | 2017-08-23 | 2017-10-20 | 上海点融信息科技有限责任公司 | Block chain data index method and equipment |
CN108055125A (en) * | 2017-11-23 | 2018-05-18 | 阿里巴巴集团控股有限公司 | A kind of encryption and decryption method and device of product information |
US20180248685A1 (en) * | 2017-02-27 | 2018-08-30 | Wal-Mart Stores, Inc. | Systems, Devices, and Methods for In-Field Authenticating of Autonomous Robots |
-
2018
- 2018-11-30 CN CN201811452494.1A patent/CN109669943A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20180248685A1 (en) * | 2017-02-27 | 2018-08-30 | Wal-Mart Stores, Inc. | Systems, Devices, and Methods for In-Field Authenticating of Autonomous Robots |
CN107239479A (en) * | 2017-03-28 | 2017-10-10 | 阿里巴巴集团控股有限公司 | A kind of method and device of data storage and inquiry based on block chain |
CN107273556A (en) * | 2017-08-23 | 2017-10-20 | 上海点融信息科技有限责任公司 | Block chain data index method and equipment |
CN108055125A (en) * | 2017-11-23 | 2018-05-18 | 阿里巴巴集团控股有限公司 | A kind of encryption and decryption method and device of product information |
Cited By (19)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110197372A (en) * | 2019-05-24 | 2019-09-03 | 杭州复杂美科技有限公司 | Means of defence, equipment and the storage medium of trading group attack |
US11106660B2 (en) | 2019-06-03 | 2021-08-31 | 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 |
US11816099B2 (en) | 2019-06-03 | 2023-11-14 | Advanced New Technologies Co., Ltd. | Service identifier-based data indexing |
US10963453B2 (en) | 2019-06-03 | 2021-03-30 | Advanced New Technologies Co., Ltd. | Service identifier-based data indexing |
CN110334149A (en) * | 2019-06-04 | 2019-10-15 | 阿里巴巴集团控股有限公司 | A kind of data record method based on block chain, device and electronic equipment |
CN110334149B (en) * | 2019-06-04 | 2023-06-06 | 创新先进技术有限公司 | Block chain-based data recording method and device and electronic equipment |
CN110378667A (en) * | 2019-06-19 | 2019-10-25 | 深圳壹账通智能科技有限公司 | Personal profession skill growth monitoring method and device, storage medium, electronic equipment |
CN110532324A (en) * | 2019-09-05 | 2019-12-03 | 腾讯科技(深圳)有限公司 | Notice information methods of exhibiting, device, equipment and storage medium based on block chain |
CN110532324B (en) * | 2019-09-05 | 2023-10-03 | 腾讯科技(深圳)有限公司 | Block chain-based bulletin information display method, device, equipment and storage medium |
CN111212126A (en) * | 2019-12-27 | 2020-05-29 | 百度在线网络技术(北京)有限公司 | Data transmission method, device, equipment and medium of block chain network |
CN111563753A (en) * | 2020-04-29 | 2020-08-21 | 程烨 | Query method and device for product tracing information, server and storage medium |
CN111581289B (en) * | 2020-05-08 | 2024-03-22 | 西安华域网络文化发展有限公司 | Data management method, system, device and medium for double-head block chain |
CN111581289A (en) * | 2020-05-08 | 2020-08-25 | 西安华域网络文化发展有限公司 | Data management method, system, device and medium for double-end block chain |
CN112163036A (en) * | 2020-09-11 | 2021-01-01 | 泰康保险集团股份有限公司 | Block chain information construction and query method and related device |
CN112256395B (en) * | 2020-10-23 | 2023-01-31 | 海光信息技术股份有限公司 | Secure memory allocation, virtual CPU scheduling method and related device |
CN112256395A (en) * | 2020-10-23 | 2021-01-22 | 海光信息技术股份有限公司 | Secure memory allocation, virtual CPU scheduling method and related device |
CN116910126A (en) * | 2023-09-14 | 2023-10-20 | 国网山东省电力公司营销服务中心(计量中心) | System and method for conveniently storing, classifying and inquiring massive daily clear electric quantity data |
CN116910126B (en) * | 2023-09-14 | 2023-11-24 | 国网山东省电力公司营销服务中心(计量中心) | System and method for conveniently storing, classifying and inquiring massive daily clear electric quantity data |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109669943A (en) | Date storage method, data query method and device | |
CN109670321A (en) | Date storage method, data query method and device | |
CN105144156B (en) | Metadata is associated with the image in personal images set | |
CN109308266A (en) | Construction method, test method, device, equipment and the medium of test case | |
CN105095211B (en) | The acquisition methods and device of multi-medium data | |
CN105873177B (en) | A kind of method and apparatus for being used to obtain the access information of shared WAP | |
CN109784177A (en) | Missing crew's method for rapidly positioning, device and medium based on images match | |
CN110428555A (en) | Shared charging equipment gives back method and device | |
CN110162526A (en) | Querying method, device and the equipment of data record in a kind of piece of chain type account book | |
US10681115B2 (en) | Multimedia data transmission method and device | |
CN109214780A (en) | A method of for managing and providing recruitment information | |
CN110347674A (en) | A kind of index creation method, device and equipment based on service identification | |
CN110457544A (en) | A kind of data capture method, system, electronic equipment and storage medium | |
CN109388722B (en) | Method and equipment for adding or searching social contact | |
CN110516120A (en) | Information processing method and device, storage medium, electronic device | |
Jabeen et al. | Internet of things in telecommunications: A technological perspective | |
CN109598208B (en) | Portrait verification method and device | |
CN107547221A (en) | A kind of method and apparatus for being used to provide log information | |
CN109767528A (en) | Information determining method and device | |
US20220201476A1 (en) | Authenticated communications device to tie real-world and digital identities | |
CN109118220A (en) | For handling the method, apparatus and storage medium of affairs in distributed network | |
KR20120077485A (en) | System and service for providing audio source based on facial expression recognition | |
CN109635532A (en) | A kind of picture pick-up device and its binding method | |
CN110060151A (en) | A kind of business execution method and device | |
CN110070379A (en) | A kind of method for message transmission, device and server |
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 |
Application publication date: 20190423 |
|
RJ01 | Rejection of invention patent application after publication |