A kind of mobile terminal locations track monitoring system and method based on block chainTechnical field
The present invention relates to block chain technical field, in particular to a kind of mobile terminal locations track monitoring based on block chainSystem and method.
Background technique
Block chain technology is to be verified using block linked data structure and storing data, and distributed node is utilized to know together algorithmTo generate and more new data, the safety for guaranteeing data transmission in the way of cryptography and accessing, using by automatized script generationThe intelligent contract of code composition programs the completely new distributed basis framework and calculation of one kind with operation data.Currently, areaBlock chain is used widely in financial industry, and various ideal moneys especially most can be as its representative using bit coin;Except canTo be used in outside financial industry, other logistic industries, real estate industry etc. are also with good application prospect.
Currently, user can (the position area LAC automatic with mobile terminal, actively connection when being serviced using operators communicationCode) and CI data (cell identification) information (LAC be with CI telecom operators' infrastructure information) record what user carved at thatLocation information.And by the record to moment location information each in certain time, identification, can be derived that in certain timeUser's motion track or scope of activities, while (can be used at present based on different moments based on historical data and simple algorithmLocation information statistic frequency is calculated) it can also deduce in the possible location information of the user of a certain moment in future.ButIt is in the prior art, to be difficult to be protected to the information security of location information, if historical position data leakage will pacify userVery big threat is caused entirely.And when historical position information is lost or reveals, it will be unable to based on historical data and simple algorithmRealize the prediction to user location track.
Compared to traditional database or other recording modes, block chain technology have it is open, transparent, can not distort, permanentlyThe characteristic of preservation, the authenticity and robustness of data are high.Based on this, the present invention devises a kind of mobile terminal based on block chainLocation track monitors system and method.
Summary of the invention
In order to compensate for the shortcomings of the prior art, the present invention provides a kind of mobile terminals based on block chain being simple and efficientLocation track monitors system and method.
The present invention is achieved through the following technical solutions:
A kind of mobile terminal locations track monitoring system based on block chain, it is characterised in that: including write-in/inquiry operationJudgment module, md5 encryption module, MongoDB index record module, block chain memory module, intelligent contract module, location trackDrafting module and location track prediction module, said write/inquiry operation judgment module pass sequentially through md5 encryption module andMongoDB index record module is connected to block chain memory module, and the block chain memory module passes through intelligent contract module pointIt is not connected to location track drafting module and location track prediction module.
Said write/inquiry operation judgment module is for judging that operation requests are that write operation request or inquiry operation are askedIt asks;The md5 encryption module is used to carry out the encryption of MD5 Message Digest 5 to the mobile terminal number information of user, protects hiddenPrivate data;The MongoDB index record module is used to store the corresponding relationship number of customer mobile terminal number and memory blockAccording to;The block chain memory module is used for memory mobile terminal number and LAC/CI information;The intelligence contract module is for depositingFunction code is stored up, location track is carried out according to functional requirement activation point track drafting module and/or location track prediction moduleDraw operation and/or location track prediction work;The location track drafting module is used for the driving according to intelligent contract moduleInstruction is carried out location track and is drawn based on the LAC/CI information for obtaining inquiry mobile terminal number correlation in block chain memory moduleSystem, determines activity trajectory of the user within certain time;The location track prediction module is used for according to intelligent contract moduleDriving instruction inquires the LAC/CI information and prediction algorithm of mobile terminal number correlation based on acquisition in block chain memory module,The track at user's a certain moment in future is predicted.
The prediction algorithm obtains track using depth-priority-searching method, the maximum track of select probability from historical dataAs final prediction locus.
The monitoring method of mobile terminal locations track monitoring system based on this based on block chain, is deposited based on block chain technologyStorage record customer mobile terminal LAC/CI information at various moments, is disclosed using block chain technology, is transparent, can not distorted and foreverThe characteristic that Kubo is deposited realizes the efficient record to customer mobile terminal location track in certain time;And using intelligent contract mouldBlock is monitored mobile terminal, including location track draws function and location track forecast function;Meanwhile by being moved to userDynamic termination number carries out encryption setting using MD5 Message Digest 5, the key-value pair based on the storage of MongoDB index record moduleIndex information improves confidentiality and query and search efficiency to privacy of user data.
User logs in detection system and inputs operation requests, and write-in/inquiry operation judgment module judges that operation requests are to writeEnter operation requests or inquiry operation request;MD5 message is carried out by mobile terminal number information of the md5 encryption module to userDigest algorithm encryption, protects private data;The MongoDB index record module storage customer mobile terminal number and memory blockThe corresponding relation data of block, for inquiring and calling;MongoDB index record module reading simultaneously is deposited in block chain memory moduleThe mobile terminal number and LAC/CI information of storage update key-value pair index information;The intelligence contract module is according to receivingOperation requests, based on the LAC/CI information for obtaining inquiry mobile terminal number correlation in block chain memory module, activation point railMark drafting module carries out location track and draws operation and/or activation point trajectory prediction module progress location track prediction work.
When write-in/inquiry operation judgment module judges that operation requests are write operation requests, comprising the following steps:
(1) encryption of MD5 Message Digest 5 is carried out to the mobile terminal number in user accesses data first;
(2) corresponding memory block information is inquired in MongoDB index record module according to encrypted data;
(3) according to the memory block information inquired, positioning to interdependent node calls block chain memory module by this numberAccording in the mobile terminal number and corresponding LAC/CI information write-in block chain in access record;
(4) call operation to MongoDB index record module is triggered again, updates this mobile terminal number and associationMemory block information.
When write-in/inquiry operation judgment module judges that operation requests are that inquiry operation is pleaded, comprising the following steps:
(1) encryption of MD5 Message Digest 5 is carried out to mobile terminal number, according to encrypted data in MongoDB ropeDraw inquiry associated storage block information in logging modle;
(2) it according to the memory block information inquired, positions to interdependent node, by interdependent node in block chain memory moduleLAC/CI information read out,
(3 predict mould according to the driving instruction of intelligent contract module, calling station track drafting module and/or location trackBlock carries out the drafting of user location track and/or user location trajectory predictions respectively.
Said write operation requests are set as automatic trigger in Fixed Time Interval.
Due to the mobile terminal number stored in the MongoDB index record module and block chain memory module be all throughMD5 Message Digest 5 encryption is crossed, therefore also mobile terminal number is used when executing inquiry operation and pleadingSame algorithm is encrypted.
The beneficial effects of the present invention are: being somebody's turn to do the mobile terminal locations track monitoring system and method based on block chain, it is based onBlock chain technology accesses the LAC/CI data that user is generated using communication service, in combination with MD5 Message Digest 5The key messages such as customer mobile terminal number are encrypted, under the premise of user data privacy is effectively ensured, are improvedTo the efficiency of user location track monitoring.
Detailed description of the invention
Attached drawing 1 is that the present invention is based on the mobile terminal locations track monitoring system and method schematic diagrames of block chain.
Specific embodiment
In order to which technical problems, technical solutions and advantages to be solved are more clearly understood, tie belowDrawings and examples are closed, the present invention will be described in detail.It should be noted that specific embodiment described herein is only usedTo explain the present invention, it is not intended to limit the present invention.
The mobile terminal locations track monitoring system based on block chain, including write-in/inquiry operation judgment module, MD5Encrypting module, MongoDB index record module, block chain memory module, intelligent contract module, location track drafting module and positionTrajectory prediction module is set, said write/inquiry operation judgment module passes sequentially through md5 encryption module and MongoDB index recordModule is connected to block chain memory module, and the block chain memory module is connected respectively to location track by intelligent contract moduleDrafting module and location track prediction module.
Said write/inquiry operation judgment module is for judging that operation requests are that write operation request or inquiry operation are askedIt asks;The md5 encryption module is used to carry out the encryption of MD5 Message Digest 5 to the mobile terminal number information of user, protects hiddenPrivate data;The MongoDB index record module is used to store the corresponding relationship number of customer mobile terminal number and memory blockAccording to;The block chain memory module is used for memory mobile terminal number and LAC/CI information;The intelligence contract module is for depositingFunction code is stored up, location track is carried out according to functional requirement activation point track drafting module and/or location track prediction moduleDraw operation and/or location track prediction work;The location track drafting module is used for the driving according to intelligent contract moduleInstruction is carried out location track and is drawn based on the LAC/CI information for obtaining inquiry mobile terminal number correlation in block chain memory moduleSystem, determines activity trajectory of the user within certain time;The location track prediction module is used for according to intelligent contract moduleDriving instruction inquires the LAC/CI information and prediction algorithm of mobile terminal number correlation based on acquisition in block chain memory module,The track at user's a certain moment in future is predicted.
The prediction algorithm obtains track using depth-priority-searching method, the maximum track of select probability from historical dataAs final prediction locus.
The monitoring method of mobile terminal locations track monitoring system based on this based on block chain, is deposited based on block chain technologyStorage record customer mobile terminal LAC/CI information at various moments, is disclosed using block chain technology, is transparent, can not distorted and foreverThe characteristic that Kubo is deposited realizes the efficient record to customer mobile terminal location track in certain time;And using intelligent contract mouldBlock is monitored mobile terminal, including location track draws function and location track forecast function;Meanwhile by being moved to userDynamic termination number carries out encryption setting using MD5 Message Digest 5, the key-value pair based on the storage of MongoDB index record moduleIndex information improves confidentiality and query and search efficiency to privacy of user data.
User logs in detection system and inputs operation requests, and write-in/inquiry operation judgment module judges that operation requests are to writeEnter operation requests or inquiry operation request;MD5 message is carried out by mobile terminal number information of the md5 encryption module to userDigest algorithm encryption, protects private data;The MongoDB index record module storage customer mobile terminal number and memory blockThe corresponding relation data of block, for inquiring and calling;MongoDB index record module reading simultaneously is deposited in block chain memory moduleThe mobile terminal number and LAC/CI information of storage update key-value pair index information;The intelligence contract module is according to receivingOperation requests, based on the LAC/CI information for obtaining inquiry mobile terminal number correlation in block chain memory module, activation point railMark drafting module carries out location track and draws operation and/or activation point trajectory prediction module progress location track prediction work.
When write-in/inquiry operation judgment module judges that operation requests are write operation requests, comprising the following steps:
(1) encryption of MD5 Message Digest 5 is carried out to the mobile terminal number in user accesses data first;
(2) corresponding memory block information is inquired in MongoDB index record module according to encrypted data;
(3) according to the memory block information inquired, positioning to interdependent node calls block chain memory module by this numberAccording in the mobile terminal number and corresponding LAC/CI information write-in block chain in access record;
(4) call operation to MongoDB index record module is triggered again, updates this mobile terminal number and associationMemory block information.
When write-in/inquiry operation judgment module judges that operation requests are that inquiry operation is pleaded, comprising the following steps:
(1) encryption of MD5 Message Digest 5 is carried out to mobile terminal number, according to encrypted data in MongoDB ropeDraw inquiry associated storage block information in logging modle;
(2) it according to the memory block information inquired, positions to interdependent node, by interdependent node in block chain memory moduleLAC/CI information read out,
(3) mould is predicted according to the driving instruction of intelligent contract module, calling station track drafting module and/or location trackBlock carries out the drafting of user location track and/or user location trajectory predictions respectively.
Said write operation requests are set as automatic trigger in Fixed Time Interval.
Due to the mobile terminal number stored in the MongoDB index record module and block chain memory module be all throughMD5 Message Digest 5 encryption is crossed, therefore also mobile terminal number is used when executing inquiry operation and pleadingSame algorithm is encrypted.