CN109597822A - A kind of storage of user data and querying method and user data processing unit - Google Patents
A kind of storage of user data and querying method and user data processing unit Download PDFInfo
- Publication number
- CN109597822A CN109597822A CN201811433483.9A CN201811433483A CN109597822A CN 109597822 A CN109597822 A CN 109597822A CN 201811433483 A CN201811433483 A CN 201811433483A CN 109597822 A CN109597822 A CN 109597822A
- Authority
- CN
- China
- Prior art keywords
- user data
- protection
- degree
- block chain
- data
- 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
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/602—Providing cryptographic facilities or services
-
- 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/62—Protecting access to data via a platform, e.g. using keys or access control rules
- G06F21/6218—Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
- G06F21/6227—Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database where protection concerns the structure of data, e.g. records, types, queries
-
- 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
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Software Systems (AREA)
- General Health & Medical Sciences (AREA)
- Computer Hardware Design (AREA)
- Bioethics (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Health & Medical Sciences (AREA)
- Databases & Information Systems (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The embodiment of the present invention provides the storage and querying method and user data processing unit of a kind of user data, is also convenient for inquiring user data while capable of encrypting the important information in user data.This method comprises: user data processing unit obtains the user data that user terminal is sent;The user data that classification obtains three degree of protection is carried out to user data according to degree of protection;The user data of first degree of protection is stored with type of database;The user data of second degree of protection is stored to the first block chain;The user data of third degree of protection is stored to the second block chain;The mirror image data of the user data of second degree of protection and the user data of the second degree of protection are stored in the corresponding relationship of the address information of the first block chain with type of database;The mirror image data of the user data of third degree of protection and the user data of third degree of protection are stored in the corresponding relationship of the address information of the second block chain with type of database.
Description
Technical field
The embodiment of the present invention is related to the storage and querying method and use in block chain field more particularly to a kind of user data
User data processing unit.
Background technique
In recent years, the block chain technology development for possessing multiple technologies advantage is swift and violent, almost becomes the generation for overturning formula innovation
, there is application abundant in the features such as noun, block chain technology is difficult to tamper with by it, is traceable in numerous areas and industry.
For narrow sense, block chain is a kind of be sequentially in time combined into data block in such a way that sequence is connected one
Kind linked data structure, and the distributed account book that can not be distorted He can not forge guaranteed in a manner of cryptography.Broadly, area
Block chain technology is to verify to know together algorithm with storing data, using distributed node to generate and more using block linked data structure
New data, utilizes the intelligence being made of automatized script code at the safety for guaranteeing data transmission and access in the way of cryptography
Can contract program the completely new distributed basis framework and calculation paradigm of one kind with operation data.It can be seen that block chain is
A series of technology set made of technical combinations has decentralization, the distinguishing features such as is difficult to tamper with, can be traced.
Traditional Database Systems are relevant databases, can handle permanent, stable data.Structured query language
The data architecture of database (structured query language, SQL) is substantially tertiary structure, but uses art
Language is different from conventional relationship model terms.In SQL, relation schema (mode) is known as " base table " (base table);Storage
Mode (internal schema) is known as " storage file " (stored file);Subpattern (external schema) is known as " view " (view);Tuple claims
For " row " (row);Attribute referred to as " arranges " (column).
Available data storage method can be stored separately in database, and block chain can also be stored in the form of cochain
In.But since the single-stranded inquiry data efficiency of block chain is low, with being continuously increased for uplink data, huge chain structure
The storage of data and the equal Problems of inquiry.And traditional database is easily inquired, but is existed for some sensitive datas and be tampered
Risk.
Summary of the invention
The embodiment of the present invention provides the storage and querying method and user data processing unit of a kind of user data, can
It is also convenient for inquiring user data while encrypting the important information in user data.
In a first aspect, providing a kind of storage method of user data, user data processing unit obtains user terminal and sends
User data;User data processing unit carries out the use that classification obtains three degree of protection to user data according to degree of protection
User data;Wherein, the user data of the first degree of protection is the basic data that the potential change frequency of user is more than first threshold;The
The user data of two degree of protection is the identification information of user;The user data of third degree of protection is except second protection etc.
Outside the user data of grade, the potential change frequency of user is less than or equal to the data of first threshold;User data processing unit is by first
The user data of degree of protection is stored with type of database;User data processing unit is by the number of users of the second degree of protection
According to storing to the first block chain;User data processing unit stores the user data of third degree of protection to the second block chain;
User data processing unit exists the user data of the mirror image data of the user data of the second degree of protection and the second degree of protection
The corresponding relationship of the address information of first block chain is stored with type of database;User data processing unit protects third
The mirror image data of the user data of grade and the user data of third degree of protection the second block chain address information it is corresponding
Relationship is stored with type of database.
Second aspect, provides a kind of querying method of user data, and user data processing unit receives user terminal and sends
Inquiry request, include user data to be checked in inquiry request;If it is determined that user data to be checked is first protection etc.
The user data of grade, then inquire user data in the database;If it is determined that user data to be checked is the second degree of protection
The user data of user data or third degree of protection then inquires the corresponding mirror image number of user data to be checked in the database
According to being wherein stored with the mirror image data of the user data of the second degree of protection and the user data of the second degree of protection in database
It is anti-in the mirror image data and third of the user data of the corresponding relationship and third degree of protection of the address information of the first block chain
Corresponding relationship of the user data of shield grade in the address information of the second block chain;User data processing unit is according to be checked
The corresponding mirror image data of user data determines the address letter of user data to be checked in the first block chain or the second block chain
Breath.
In above scheme, firstly, since the user data storage of the first degree of protection is in the database, it is convenient for user's logarithm
According to additions and deletions change and look into, block chain is handled on the user data of the second degree of protection and the user data of third degree of protection, and
The mirror image data and second that the user data of the mirror image data and the second degree of protection in block chain is saved in database are prevented
Mirror of the user data of shield grade in the corresponding relationship of the address information of the first block chain and the user data of third degree of protection
As the user data of data and third degree of protection is in the corresponding relationship of the address information of the second block chain.It ensure that in user side
Just information is not tampered, reveals under the premise of inquiring.Secondly as the user data of the first degree of protection is stored in database
In, the user data of the second degree of protection and the user data of third degree of protection are stored in block chain, while in database
The mirror image data for storing the user data of the second degree of protection and the user data of third degree of protection, i.e., store in database
There is all customer data, user data and user data of third degree of protection of the second degree of protection etc. are stored in block chain
The storage mode of the high significant data of degree of protection, this database mixing block chain can be to the significant data in user data
It is also convenient for inquiring user data while encryption.Again, and due to being stored with all customer data in database
And second degree of protection user data the first block chain address information corresponding relationship and third degree of protection use
User data can be directly in data when user will carry out data query in the corresponding relationship of the address information of the second block chain
It is inquired in library, corresponding data is got, or data are got by corresponding corresponding relationship, in user data
Significant data be stored in block chain in the case where realize block chain across chain query.
The third aspect provides a kind of user data processing unit, comprising:
Module is obtained, for obtaining the user data of user terminal transmission;Processing module, for according to degree of protection to obtaining
The user data that modulus block obtains carries out the user data that classification obtains three degree of protection;Wherein, the use of the first degree of protection
User data is the basic data that the potential change frequency of user is more than first threshold;The user data of second degree of protection is user's
Identification information;The user data of third degree of protection is the potential change of user in addition to the user data of the second degree of protection
The frequency is less than or equal to the data of first threshold;Memory module, the use of the first degree of protection for handling processing module
User data is stored with type of database;Memory module, the second degree of protection for being also used to handle processing module
User data is stored to the first block chain;Memory module, the use for the third degree of protection for being also used to handle processing module
User data is stored to the second block chain;Memory module is also used to the mirror image data of the user data of the second degree of protection and
The user data of two degree of protection is stored in the corresponding relationship of the address information of the first block chain with type of database;Storage
Module is also used to the user data of the mirror image data of the user data of third degree of protection and third degree of protection in the secondth area
The corresponding relationship of the address information of block chain is stored with type of database.
Fourth aspect provides a kind of user data processing unit, comprising:
Receiving module includes number of users to be checked in inquiry request for receiving the inquiry request of user terminal transmission
According to;Judgment module, for judging the degree of protection of the received user data to be checked of receiving module, however, it is determined that use to be checked
User data is the user data of the first degree of protection, then inquires user data in the database;If it is determined that number of users to be checked
According to the user data of user data or third degree of protection for the second degree of protection, then use to be checked is inquired in the database
The corresponding mirror image data of user data is wherein stored with the mirror image data and second of the user data of the second degree of protection in database
The user data of degree of protection is in the corresponding relationship of the address information of the first block chain and the user data of third degree of protection
Mirror image data and third degree of protection user data the second block chain address information corresponding relationship;Processing module,
User to be checked is determined in the corresponding mirror image data of user data to be checked for the judging result according to judgment module
Address information of the data in the first block chain or the second block chain.
5th aspect, provides a kind of user data processing unit, including communication interface, processor, memory, bus;Institute
Memory is stated for storing computer executed instructions, the processor is connect with the memory by the bus, when described
When user data processing unit is run, the processor executes the computer executed instructions of the memory storage, so that described
User data processing unit executes the storage method such as any of the above-described user data or executes looking into such as above-mentioned user data
Inquiry method.
6th aspect provides a kind of computer storage medium, including instruction, which is characterized in that when described instruction is calculating
When being run on machine, so that the computer executes the storage method of any of the above-described user data or executes above-mentioned user data
Querying method.
7th aspect, provides a kind of computer program product, the computer program product includes instruction code, the finger
Enable code for executing the storage method such as any of the above-described user data or executing the querying method such as above-mentioned user data.
It is to be appreciated that any user data processing unit, computer storage medium or the computer journey of above-mentioned offer
Sequence product is used to execute the corresponding method of first aspect presented above, and therefore, the attainable beneficial effect of institute can join
It is admitted to the beneficial effect of corresponding scheme in the method and following detailed description of literary first aspect, details are not described herein again.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below will be in embodiment or description of the prior art
Required attached drawing is briefly described, it should be apparent that, the accompanying drawings in the following description is only some realities of the invention
Example is applied, it for those of ordinary skill in the art, without creative efforts, can also be according to these attached drawings
Obtain other attached drawings.
Fig. 1 is a kind of system architecture schematic diagram for data processing that the embodiment of the present invention provides;
Fig. 2 is a kind of storage method schematic diagram for user data that the embodiment of the present invention provides;
Fig. 3 is a kind of schematic diagram for user data memory block chain that the embodiment of the present invention provides;
Fig. 4 is a kind of querying method schematic diagram for user data that the embodiment of the present invention provides;
Fig. 5 is a kind of structural schematic diagram for user data processing unit that the embodiment of the present invention provides;
Fig. 6 is a kind of structural schematic diagram for user data processing unit that another embodiment of the present invention provides.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
Traditional Database Systems are relevant databases, can handle permanent, stable data.Block chain technology is one
A kind of linked data structure that data block is combined by kind in such a way that sequence is connected sequentially in time, and with cryptography side
The distributed account book that can not be distorted He can not forge that formula guarantees.Available data storage method can be stored separately on database
In, it can also be stored in the form of cochain in block chain.But since the single-stranded inquiry data efficiency of block chain is low, with
Uplink data is continuously increased, the storage of huge chain structure data and the equal Problems of inquiry.And traditional database is easily looked into
It askes, but there is the risk being tampered for some sensitive datas.
In this application, the storage for realization to user data, provides a kind of system architecture of data processing, referring in particular to
Shown in Fig. 1, the system architecture of data processing includes: user terminal 11, user data processing unit 12 and data-storage system
13, wherein user terminal 11 can be the terminal devices such as mobile phone, computer, PAD;Wherein, user terminal 11 is used in user's registration
User data and by user data upload to user data processing unit 12 is obtained during account, can be led in this process
It crosses the user data that secure encryption system and information authentication system upload user terminal 11 and the safe places such as is verified, encrypted
Reason.User data processing unit 12 executes the storage method of user data provided by the present application after receiving user data, will
Data are stored to data-storage system 13, and wherein data-storage system 13 is provided with the block chain node for the storage of block chain,
Such as object edge cloud shown in Fig. 1 and other edge clouds, furthermore data-storage system 13 is also provided stores for data
Database, database can SQL database centered in cloud.In some embodiments, data are deposited by controller 14
The data stored in storage system 13 are calculated, and illustratively, controller 14 may be implemented in the database in the cloud of center
Heart processing, controller 14 can also realize the edge processing to edge cloud, additionally by reserved open ability interface
(application programming interface, API) realizes open ability management function, data is provided out, with reality
Data analysis in present other equipment or platform.
Based on the system architecture of above-mentioned data processing, the application provides a kind of storage method of user data, referring to Fig. 2 institute
Show, specifically comprises the following steps:
201, the user data that user terminal is sent is obtained.
User carries out the registration of account in user terminal, and certain account can be any network platform, application software etc.
Account, such as communication software account, Games Software account etc., user terminal can be mobile phone or computer, at user data
The user data that reason device generates when obtaining user's registration account by mobile phone or computer;Certainly same identity letter after succeeding in registration
Ceasing corresponding account can log in different user terminals.
202, the user data that classification obtains three degree of protection is carried out to user data according to degree of protection.
Wherein, the user data of the first degree of protection is the basic data that the potential change frequency of user is more than first threshold,
The characteristics of this kind of data is that user's change frequency is high, importance is low, for example, the user data of the first degree of protection can be user
The information such as name, basic label;The user data of second degree of protection is the identification information of user, is user in society
Important unique law or biological information, for example, the user data of the second degree of protection can be ID card information etc.;Third
The user data of degree of protection is in addition to the user data of the second degree of protection, and the potential change frequency of user is less than or equal to the first threshold
The data of value, for example, the user data of third degree of protection can be the information such as the telephone number of user, token account.
203, the user data of the first degree of protection is stored with type of database, by the user of the second degree of protection
Data are stored to the first block chain, and the user data of third degree of protection is stored to the second block chain.
The user data of first degree of protection is some low-level informations, that is, does not need to carry out anti-tamper processing, do not need to deposit
Data of card, therefore be directly stored in database, database can SQL database centered in cloud herein;Second degree of protection
User data be that the strong information of physical world actual individual will appear in this kind of few situation of data for example, ID card No.
The case where modification, after such data cochain, this chain modification number is few, relatively stable;The number of users of third degree of protection
According to, for example, telephone number, is not the one-to-one relationship of physical world actual individual, it is extremely easy more numbers, number abandoning occur
With situations such as, telephone number can also represent the equally likely possibilities such as credit value, work or house transition of individual to a certain degree, therefore the
There are larger possibilities to change for the correspondence chain of the user data cochain of three degree of protection, in addition, the user of third degree of protection
Data can also be used as the data source to personal credit file, type judgement etc..
In addition to this, user data processing unit also needs to store the first block chain and the second block chain to target side
Edge cloud, will pass through object edge cloud for the first block chain and the second block chain distributed synchronization to other edge clouds, wherein
The data stored into object edge cloud include the mirror image data and the second degree of protection of the user data of the second degree of protection
User data is in the corresponding relationship of the address information of the first block chain and the mirror image data of the user data of third degree of protection
With the user data of third degree of protection the address information of the second block chain corresponding relationship.Detailed process exists referring to Fig. 3
Two block chains: block chain A indicates that the first block chain, block chain B indicate the second block chain.What block chain A or block chain B was generated
Detailed process are as follows: when having user data to generate and the data are not stored in block, user data processing unit generates one
A block, the block store two aspect data: it is on the one hand the data of block head, including the generation time of the block, and
Therefore other key parameters of block, the improvement that the application is not related to the specific structure of block head repeat no more;On the other hand it is
Block body, block body storage need cochain to deposit the data of card.The generation time of block is first number stored in the block
According to storage time, the generation time of block 1 is 1 storage time of data in Fig. 3, and the generation time of block 2 is data (n+
1) storage time.The data bulk stored in block body determines that particular capacity is by reality by initial data size and block size
The scene or business model of border application determine.N data is housed, every data stores depositing to block by the data in block body
The time is stored up, is formed with initial data.The data of certain format are stored in block, the time sequencing then generated by block is by block
It connects and generates a block chain gradually increased.
Wherein, user data is stored into block chain process, certain user data b can be stored in block, and with it is upper
One user data a is attached, and generates chain when there is next user data c to store to block, and with this user data b
It connects, generates the mirror image data of this cochain user data in its object edge cloud side at this time, mirror image data is using in database
The storage mode of tables of data stores original uplink data according to its normal attribute.In addition to mirror image data, and if only if
After one user data enters block, there are no less than one other users data to store to block, obtains the user data and refer to
To the address of previous user data and the address of direction the latter user data, it also is stored on the inside of object edge cloud.
204, by the user data of the mirror image data of the user data of the second degree of protection and the second degree of protection first
The corresponding relationship of the address information of block chain is stored with type of database, by the mirror image of the user data of third degree of protection
Data and the user data of third degree of protection are carried out in the corresponding relationship of the address information of the second block chain with type of database
Storage.
Wherein, referring to Fig. 3, the user data of the mirror image data of the user data of the second degree of protection and the second degree of protection
It is to deposit the user data of the first block chain in user data processing unit in the corresponding relationship of the address information of the first block chain
It is obtained when storage to object edge cloud, therefore the use of the mirror image data of the user data of the second degree of protection and the second degree of protection
User data in the corresponding relationship of the address information of the first block chain is carried out by the way that the data in edge cloud are copied to database
Storage.The mirror image data of the user data of third degree of protection and the user data of third degree of protection are in the second block chain
The corresponding relationship of address information is to store the user data of the second block chain to object edge cloud in user data processing unit
When obtain, therefore the user data of the mirror image data of the user data of third degree of protection and third degree of protection is in the secondth area
The corresponding relationship of the address information of block chain is by the way that the data in edge cloud are copied to what database stored.
Moreover, it is desirable to explanation, the user data of the user data of the first degree of protection, second degree of protection
The user data of mirror image data and second degree of protection the address information of the first block chain corresponding relationship and
The user data of the mirror image data of the user data of the third degree of protection and the third degree of protection is in secondth area
The corresponding relationship of the address information of block chain is stored in the same database, which can SQL data centered in cloud
Library.
Based on the storage method of above-mentioned user data, embodiments herein provides a kind of querying method of user data,
Referring to shown in Fig. 4, specifically comprise the following steps:
401, user data processing unit receives the inquiry request that user terminal is sent.
It wherein, include user data to be checked in inquiry request.
402, user data to be checked is the user data of the first degree of protection, inquires user data in the database.
403, user data to be checked be the second degree of protection user data or third degree of protection user data,
The corresponding mirror image data of user data to be checked is inquired in the database.
The mirror image data of the user data of the second degree of protection and the use of the second degree of protection are wherein stored in database
User data the mirror image data of the corresponding relationship of the address information of the first block chain and the user data of third degree of protection with
Corresponding relationship of the user data of third degree of protection in the address information of the second block chain.
404, determine user data to be checked in the first block according to the corresponding mirror image data of user data to be checked
Address information in chain or the second block chain.
In above scheme, firstly, since the user data storage of the first degree of protection is in the database, it is convenient for user's logarithm
According to additions and deletions change and look into, block chain is handled on the user data of the second degree of protection and the user data of third degree of protection, and
The mirror image data and second that the user data of the mirror image data and the second degree of protection in block chain is saved in database are prevented
Mirror of the user data of shield grade in the corresponding relationship of the address information of the first block chain and the user data of third degree of protection
As the user data of data and third degree of protection is in the corresponding relationship of the address information of the second block chain.It ensure that in user side
Just information is not tampered, reveals under the premise of inquiring.Secondly as the user data of the first degree of protection is stored in database
In, the user data of the second degree of protection and the user data of third degree of protection are stored in block chain, while in database
The mirror image data for storing the user data of the second degree of protection and the user data of third degree of protection, i.e., store in database
There is all customer data, user data and user data of third degree of protection of the second degree of protection etc. are stored in block chain
The storage mode of the high significant data of degree of protection, this database mixing block chain can be to the significant data in user data
It is also convenient for inquiring user data while encryption.Again, and due to being stored with all customer data in database
And second degree of protection user data the first block chain address information corresponding relationship and third degree of protection use
User data can be directly in data when user will carry out data query in the corresponding relationship of the address information of the second block chain
It is inquired in library, corresponding data is got, or data are got by corresponding corresponding relationship, in user data
Significant data be stored in block chain in the case where realize block chain across chain query.
Referring to Figure 5, a kind of user data processing unit is provided, comprising:
Module 51 is obtained, for obtaining the user data of user terminal transmission.
Processing module 52, the user data for being obtained according to degree of protection to the acquisition module 51 are classified
Obtain the user data of three degree of protection;Wherein, the user data of the first degree of protection is that the potential change frequency of user is more than
The basic data of first threshold;The user data of second degree of protection is the identification information of user;Third degree of protection
User data is in addition to the user data of second degree of protection, and the potential change frequency of user is less than or equal to the first threshold
Data;
Memory module 53, the user data of first degree of protection for obtaining the processing module 52 processing with
Type of database is stored.
The memory module 53, the user for second degree of protection for being also used to obtain the processing module 52 processing
Data are stored to the first block chain.
The memory module 53, the user for the third degree of protection for being also used to obtain the processing module 52 processing
Data are stored to the second block chain.
The memory module 53 is also used to the mirror image data of the user data of second degree of protection and described second
The user data of degree of protection is deposited in the corresponding relationship of the address information of the first block chain with the type of database
Storage.
The memory module 53 is also used to the mirror image data of the user data of the third degree of protection and the third
The user data of degree of protection is deposited in the corresponding relationship of the address information of the second block chain with the type of database
Storage.
Optionally, the memory module 53, be also used to store on the first block chain and the second block chain to
Object edge cloud, will pass through the object edge cloud for the first block chain and the second block chain distributed synchronization
To other edge clouds.
Optionally, memory module 53, specifically for by the user data of first degree of protection, it is described second protection etc.
Grade user data mirror image data and second degree of protection user data the first block chain address information
Corresponding relationship and the third degree of protection user data mirror image data and the third degree of protection number of users
It is stored in the same database according to the corresponding relationship of the address information in the second block chain.
Receiving module 54 includes to be checked in the inquiry request for receiving the inquiry request of user terminal transmission
User data.
Judgment module 55, for judging the protection etc. of the received user data to be checked of the receiving module 54
Grade, however, it is determined that the user data to be checked is the user data of the first degree of protection, then inquires the use in the database
User data;If it is determined that the user data to be checked is the user data of the second degree of protection or the user of third degree of protection
Data then inquire the corresponding mirror image data of the user data to be checked, wherein storing in the database in the database
The user data of the mirror image data and second degree of protection that have the user data of second degree of protection is in the first block
The mirror image data of the user data of the corresponding relationship of the address information of chain and the third degree of protection and the third are protected
Corresponding relationship of the user data of grade in the address information of the second block chain.
The processing module 52 is also used to the judging result according to the judgment module 55 in the number of users to be checked
According to ground of the user data to be checked determining in corresponding mirror image data in the first block chain or the second block chain
Location information.
Wherein, all related contents for each step that above method embodiment is related to can quote corresponding function module
Function description, effect details are not described herein.
Using integrated module, user data processing unit includes: storage unit, processing unit and connects
Mouth unit.Processing unit is for carrying out control management to the movement of user data processing unit, for example, processing unit is for supporting
User data processing unit executes the step 402-404 in process 202-204 and Fig. 4 in Fig. 2;Interface unit is for supporting
The information exchange of user data processing unit and other equipment, such as obtain data from other equipment or sent to other equipment
Data, for example, interface unit is for supporting user data processing unit to execute the process 201 in Fig. 2 and the step in Fig. 4
401.Storage unit, for storing the program code and data of user data processing unit.
Wherein, using processing unit as processor, storage unit is memory, and interface unit is for communication interface.Wherein,
User data processing unit referring to fig. 6, lead to by including communication interface 601, processor 602, memory 603 and bus 604
Letter interface 601, processor 602 are connected by bus 604 with memory 603.
Processor 602 can be a general central processor (Central Processing Unit, CPU), micro process
Device, application-specific integrated circuit (Application-Specific Integrated Circuit, ASIC) or one or more
A integrated circuit executed for controlling application scheme program.
Memory 603 can be read-only memory (Read-Only Memory, ROM) or can store static information and instruction
Other kinds of static storage device, random access memory (Random Access Memory, RAM) or letter can be stored
The other kinds of dynamic memory of breath and instruction, is also possible to Electrically Erasable Programmable Read-Only Memory (Electrically
Erasable Programmable Read-only Memory, EEPROM), CD-ROM (Compact Disc Read-
Only Memory, CD-ROM) or other optical disc storages, optical disc storage (including compression optical disc, laser disc, optical disc, digital universal
Optical disc, Blu-ray Disc etc.), magnetic disk storage medium or other magnetic storage apparatus or can be used in carrying or store to have referring to
Enable or data structure form desired program code and can by any other medium of computer access, but not limited to this.
Memory, which can be, to be individually present, and is connected by bus with processor.Memory can also be integrated with processor.
Wherein, memory 603 is used to store the application code for executing application scheme, and is controlled by processor 602
System executes.Communication interface 601 is used to carry out information exchange with other equipment, such as user data processing unit is supported to set with other
Standby information exchange, such as obtain data from other equipment or send data to other equipment.Processor 602 is deposited for executing
The application code stored in reservoir 603, to realize method described in the embodiment of the present application.
In addition, a kind of calculating storage media (or medium) is also provided, including carrying out in above-described embodiment when executed
The instruction for the method operation that user data processing unit executes.In addition, also providing a kind of computer program product, including above-mentioned meter
Calculate storage media (or medium).
Wherein, all related contents for each step that above method embodiment is related to can quote corresponding function module
Function description, effect details are not described herein.
It should be understood that in various embodiments of the present invention, magnitude of the sequence numbers of the above procedures are not meant to execute suitable
Sequence it is successive, the execution of each process sequence should be determined by its function and internal logic, the implementation without coping with the embodiment of the present invention
Process constitutes any restriction.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure
Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually
It is implemented in hardware or software, the specific application and design constraint depending on technical solution.Professional technician
Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed
The scope of the present invention.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description,
The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided herein, it should be understood that disclosed system, apparatus and method, it can be with
It realizes by another way.For example, apparatus embodiments described above are merely indicative, for example, the unit
It divides, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components
It can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown or
The mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, the indirect coupling of equipment or unit
It closes or communicates to connect, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.
It, can be with if the function is realized in the form of SFU software functional unit and when sold or used as an independent product
It is stored in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially in other words
The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter
Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a
People's computer, server or network equipment etc.) it performs all or part of the steps of the method described in the various embodiments of the present invention.
And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (full name in English: read-only memory, English letter
Claim: ROM), random access memory (full name in English: random access memory, English abbreviation: RAM), magnetic disk or light
The various media that can store program code such as disk.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any
Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain
Lid is within protection scope of the present invention.Therefore, protection scope of the present invention should be based on the protection scope of the described claims.
Claims (11)
1. a kind of storage method of user data, which is characterized in that
User data processing unit obtains the user data that user terminal is sent;
The user data processing unit carries out classification to the user data according to degree of protection and obtains three degree of protection
User data;Wherein, the user data of the first degree of protection is the basic data that the potential change frequency of user is more than first threshold;
The user data of second degree of protection is the identification information of user;The user data of third degree of protection is except described second
Outside the user data of degree of protection, the potential change frequency of user is less than or equal to the data of the first threshold;
The user data processing unit stores the user data of first degree of protection with type of database;
The user data processing unit stores the user data of second degree of protection to the first block chain;
The user data processing unit stores the user data of the third degree of protection to the second block chain;
The user data processing unit protects the mirror image data of the user data of second degree of protection and described second
The user data of grade is stored in the corresponding relationship of the address information of the first block chain with the type of database;
The user data processing unit protects the mirror image data of the user data of the third degree of protection and the third
The user data of grade is stored in the corresponding relationship of the address information of the second block chain with the type of database.
2. the storage method of user data according to claim 1, which is characterized in that further include:
The user data processing unit stores the first block chain and the second block chain to object edge cloud, with
The object edge cloud be will pass through by the first block chain and the second block chain distributed synchronization to other edge clouds.
3. the storage method of user data according to claim 1, which is characterized in that the number of users of first degree of protection
According to the mirror image data of the user data of, second degree of protection and the user data of second degree of protection described first
The mirror image data of the user data of the corresponding relationship of the address information of block chain and the third degree of protection and the third
The user data of degree of protection is stored in the same database in the corresponding relationship of the address information of the second block chain.
4. a kind of querying method of user data, which is characterized in that
User data processing unit receives the inquiry request that user terminal is sent, and includes user to be checked in the inquiry request
Data;
If it is determined that the user data to be checked is the user data of the first degree of protection, then the use is inquired in the database
User data;
If it is determined that the user data to be checked is the user data of the second degree of protection or the number of users of third degree of protection
According to the corresponding mirror image data of the user data to be checked then being inquired in the database, wherein being stored in the database
The user data of the mirror image data of the user data of second degree of protection and second degree of protection is in the first block chain
Address information corresponding relationship and the third degree of protection user data mirror image data and the third protection etc.
Corresponding relationship of the user data of grade in the address information of the second block chain;
The user data processing unit determines described to be checked according to the corresponding mirror image data of the user data to be checked
Address information of the user data in the first block chain or the second block chain.
5. a kind of user data processing unit, which is characterized in that
Module is obtained, for obtaining the user data of user terminal transmission;
Processing module, the user data for being obtained according to degree of protection to the acquisition module carry out classification and obtain three
The user data of degree of protection;Wherein, it is more than first threshold that the user data of the first degree of protection, which is the potential change frequency of user,
Basic data;The user data of second degree of protection is the identification information of user;The user data of third degree of protection
For in addition to the user data of second degree of protection, the potential change frequency of user is less than or equal to the data of the first threshold;
Memory module, the user data of first degree of protection for handling the processing module is with class database
Type is stored;
The memory module, the user data storage for second degree of protection for being also used to handle the processing module
To the first block chain;
The memory module, the user data storage for the third degree of protection for being also used to handle the processing module
To the second block chain;
The memory module is also used to the mirror image data of the user data of second degree of protection and second protection etc.
The user data of grade is stored in the corresponding relationship of the address information of the first block chain with the type of database;
The memory module is also used to the mirror image data of the user data of the third degree of protection and third protection etc.
The user data of grade is stored in the corresponding relationship of the address information of the second block chain with the type of database.
6. user data processing unit according to claim 5, which is characterized in that
The memory module is also used to store the first block chain and the second block chain to object edge cloud, with
The object edge cloud be will pass through by the first block chain and the second block chain distributed synchronization to other edge clouds.
7. user data processing unit according to claim 5, which is characterized in that
The memory module, specifically for by the user of the user data of first degree of protection, second degree of protection
The mirror image data of data is with the user data of second degree of protection in the corresponding pass of the address information of the first block chain
The mirror image data of the user data of system and the third degree of protection and the user data of the third degree of protection are described
The corresponding relationship of the address information of second block chain is stored in the same database.
8. a kind of user data processing unit, which is characterized in that
Receiving module includes number of users to be checked in the inquiry request for receiving the inquiry request of user terminal transmission
According to;
Judgment module, for judging the degree of protection of the received user data to be checked of the receiving module, however, it is determined that
The user data to be checked is the user data of the first degree of protection, then inquires the user data in the database;
If it is determined that the user data to be checked is the user data of the second degree of protection or the number of users of third degree of protection
According to the corresponding mirror image data of the user data to be checked then being inquired in the database, wherein being stored in the database
The user data of the mirror image data of the user data of second degree of protection and second degree of protection is in the first block chain
Address information corresponding relationship and the third degree of protection user data mirror image data and the third protection etc.
Corresponding relationship of the user data of grade in the address information of the second block chain;
Processing module, for the judging result according to the judgment module in the corresponding mirror image number of the user data to be checked
According to address information of the middle determination user data to be checked in the first block chain or the second block chain.
9. a kind of user data processing unit, which is characterized in that including communication interface, processor, memory, bus;It is described to deposit
Reservoir is for storing computer executed instructions, and the processor is connect with the memory by the bus, as the user
When data processing equipment is run, the processor executes the computer executed instructions of the memory storage, so that the user
Data processing equipment executes the storage method of user data as described in any one of claims 1-3 or executes such as claim
The querying method of user data described in 4.
10. a kind of computer storage medium, including instruction, which is characterized in that when described instruction is run on computers, so that
The computer executes the storage method of user data as described in any one of claims 1-3 or executes such as claim 4
The querying method of the user data.
11. a kind of computer program product, which is characterized in that the computer program product includes instruction code, described instruction
Code is used to execute the storage method of user data as described in any one of claims 1-3 or executes such as claim 4 institute
The querying method for the user data stated.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811433483.9A CN109597822B (en) | 2018-11-28 | 2018-11-28 | User data storage and query method and user data processing device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811433483.9A CN109597822B (en) | 2018-11-28 | 2018-11-28 | User data storage and query method and user data processing device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109597822A true CN109597822A (en) | 2019-04-09 |
CN109597822B CN109597822B (en) | 2021-02-23 |
Family
ID=65960540
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811433483.9A Active CN109597822B (en) | 2018-11-28 | 2018-11-28 | User data storage and query method and user data processing device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109597822B (en) |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110362626A (en) * | 2019-06-13 | 2019-10-22 | 中电万维信息技术有限责任公司 | One kind being based on the convenience-for-people inquiry system of block chain network and application method |
CN111866123A (en) * | 2020-07-17 | 2020-10-30 | 海南大学 | Data storage method and device based on block chain |
CN112187703A (en) * | 2019-07-02 | 2021-01-05 | 北京百度网讯科技有限公司 | Data processing method and device |
CN112650715A (en) * | 2020-12-30 | 2021-04-13 | 北京八分量信息科技有限公司 | Method, device and related product for storing data in block chain system |
CN112765137A (en) * | 2021-04-07 | 2021-05-07 | 暗链科技(深圳)有限公司 | Block synchronization method based on block distributed block chain and electronic equipment |
CN112866346A (en) * | 2020-12-31 | 2021-05-28 | 海南大学 | Block chain-based data distribution method and flow |
CN113177220A (en) * | 2021-05-27 | 2021-07-27 | 深圳市数存科技有限公司 | Service safety system capable of carrying out remote data protection |
CN114821882A (en) * | 2022-04-12 | 2022-07-29 | 云南天上人间茶业有限公司 | Safety monitoring system based on block chain |
CN115392875A (en) * | 2022-08-31 | 2022-11-25 | 广州市城市规划设计有限公司 | Traditional residential protective data system and data processing method |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1828556A (en) * | 2005-03-05 | 2006-09-06 | 腾讯科技(深圳)有限公司 | Method, system and apparatus for data memory |
US20150347494A1 (en) * | 2014-05-30 | 2015-12-03 | Alibaba Group Holding Limited | Data uniqueness control and information storage |
CN107135661A (en) * | 2016-12-26 | 2017-09-05 | 深圳前海达闼云端智能科技有限公司 | Data processing method, device, system and information collecting device |
CN108573741A (en) * | 2017-12-25 | 2018-09-25 | 北京金山云网络技术有限公司 | Business datum recording method, device, equipment and storage medium |
CN108664613A (en) * | 2018-05-11 | 2018-10-16 | 中国平安人寿保险股份有限公司 | Data query method, apparatus, computer equipment and storage medium |
CN108881474A (en) * | 2018-07-10 | 2018-11-23 | 南京邮电大学 | A kind of internet of things data cascade protection framework based on block chain |
-
2018
- 2018-11-28 CN CN201811433483.9A patent/CN109597822B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1828556A (en) * | 2005-03-05 | 2006-09-06 | 腾讯科技(深圳)有限公司 | Method, system and apparatus for data memory |
US20150347494A1 (en) * | 2014-05-30 | 2015-12-03 | Alibaba Group Holding Limited | Data uniqueness control and information storage |
CN107135661A (en) * | 2016-12-26 | 2017-09-05 | 深圳前海达闼云端智能科技有限公司 | Data processing method, device, system and information collecting device |
CN108573741A (en) * | 2017-12-25 | 2018-09-25 | 北京金山云网络技术有限公司 | Business datum recording method, device, equipment and storage medium |
CN108664613A (en) * | 2018-05-11 | 2018-10-16 | 中国平安人寿保险股份有限公司 | Data query method, apparatus, computer equipment and storage medium |
CN108881474A (en) * | 2018-07-10 | 2018-11-23 | 南京邮电大学 | A kind of internet of things data cascade protection framework based on block chain |
Cited By (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110362626A (en) * | 2019-06-13 | 2019-10-22 | 中电万维信息技术有限责任公司 | One kind being based on the convenience-for-people inquiry system of block chain network and application method |
CN112187703A (en) * | 2019-07-02 | 2021-01-05 | 北京百度网讯科技有限公司 | Data processing method and device |
CN111866123B (en) * | 2020-07-17 | 2022-03-08 | 海南大学 | Data storage method and device based on block chain |
CN111866123A (en) * | 2020-07-17 | 2020-10-30 | 海南大学 | Data storage method and device based on block chain |
CN112650715A (en) * | 2020-12-30 | 2021-04-13 | 北京八分量信息科技有限公司 | Method, device and related product for storing data in block chain system |
CN112866346A (en) * | 2020-12-31 | 2021-05-28 | 海南大学 | Block chain-based data distribution method and flow |
CN112866346B (en) * | 2020-12-31 | 2023-02-03 | 海南大学 | Data distribution method and device based on block chain |
CN112765137A (en) * | 2021-04-07 | 2021-05-07 | 暗链科技(深圳)有限公司 | Block synchronization method based on block distributed block chain and electronic equipment |
CN113177220A (en) * | 2021-05-27 | 2021-07-27 | 深圳市数存科技有限公司 | Service safety system capable of carrying out remote data protection |
CN113177220B (en) * | 2021-05-27 | 2021-12-17 | 深圳市数存科技有限公司 | Service safety system capable of carrying out remote data protection |
CN114821882A (en) * | 2022-04-12 | 2022-07-29 | 云南天上人间茶业有限公司 | Safety monitoring system based on block chain |
CN114821882B (en) * | 2022-04-12 | 2023-10-20 | 云南天上人间茶业有限公司 | Block chain-based safety monitoring system |
CN115392875A (en) * | 2022-08-31 | 2022-11-25 | 广州市城市规划设计有限公司 | Traditional residential protective data system and data processing method |
CN115392875B (en) * | 2022-08-31 | 2024-02-27 | 广州市城市规划设计有限公司 | Traditional folk house protection data system and data processing method |
Also Published As
Publication number | Publication date |
---|---|
CN109597822B (en) | 2021-02-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109597822A (en) | A kind of storage of user data and querying method and user data processing unit | |
CN108280365B (en) | Data access authority management method, device, terminal device and storage medium | |
CN108520073A (en) | Air control data integration method, device, equipment and computer readable storage medium | |
CN107368259A (en) | A kind of method and apparatus that business datum is write in the catenary system to block | |
CN107370730A (en) | A kind of log-on message processing method and equipment | |
CN110612697A (en) | Data storage layer indexing for efficient information retrieval | |
CN107004080A (en) | Environment sensing security token | |
CN109992993A (en) | Assets information processing method, device, equipment and storage medium based on block chain | |
US20200175403A1 (en) | Systems and methods for expediting rule-based data processing | |
CN109634996A (en) | Customer information table generating method, device, equipment and computer readable storage medium | |
CN104951680A (en) | Biological characteristic information processing method, storage method and device | |
CN108108611A (en) | A kind of intelligent seal for carrying intelligent chip | |
CN109359206A (en) | Image processing method and system based on Internet of Things campus administration | |
CN110473104A (en) | A kind of transaction processing method and relevant device | |
CN109600336A (en) | Store equipment, identifying code application method and device | |
CN108205623A (en) | For the method and apparatus of share directory | |
CN109949108A (en) | Invoice creation method and device, electronic equipment based on block chain | |
CN110022315A (en) | Weight management method, device and equipment in a kind of piece of chain type account book | |
CN107766453A (en) | Data base management method, device and storage medium based on block chain | |
CN107944295A (en) | The sensitive information desensitization method and system of a kind of transaction message | |
CN109428722A (en) | A kind of content delivery method and device | |
CN108171029A (en) | Intelligent and safe chip | |
CN110096635A (en) | A kind of the inquiry visual display method and device of traditional Chinese and western medicine medicine information | |
WO2022048359A1 (en) | Data archiving method and apparatus, and electronic device and storage medium | |
CN109669644A (en) | A kind of method and apparatus of data storage |
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 |