CN109739932A - Date storage method, device, computer equipment and computer readable storage medium - Google Patents

Date storage method, device, computer equipment and computer readable storage medium Download PDF

Info

Publication number
CN109739932A
CN109739932A CN201811635008.XA CN201811635008A CN109739932A CN 109739932 A CN109739932 A CN 109739932A CN 201811635008 A CN201811635008 A CN 201811635008A CN 109739932 A CN109739932 A CN 109739932A
Authority
CN
China
Prior art keywords
information
block chain
data access
node
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.)
Pending
Application number
CN201811635008.XA
Other languages
Chinese (zh)
Inventor
王兴军
冯发润
许宏珍
黄海平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Dongguan Jianda Information Technology Co Ltd
Original Assignee
Dongguan Jianda Information Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Dongguan Jianda Information Technology Co Ltd filed Critical Dongguan Jianda Information Technology Co Ltd
Priority to CN201811635008.XA priority Critical patent/CN109739932A/en
Publication of CN109739932A publication Critical patent/CN109739932A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the invention provides a kind of date storage method, device, computer equipment and computer readable storage mediums, wherein, this method comprises: obtaining the record information of data access when generating data access, the corresponding id information of record information of every data access is generated;The node that the record information of every data access and corresponding id information are sent to block chain is stored.The program is conducive to avoid Single Point of Faliure, improves safety, the authenticity of data storage, reduces the difficulty and cost of data maintenance, can also track and check data.

Description

Date storage method, device, computer equipment and computer readable storage medium
Technical field
The present invention relates to technical field of data processing, in particular to a kind of date storage method, device, computer equipment and Computer readable storage medium.
Background technique
In mobile Internet or environment of internet of things, a large amount of terminal access, data access service can be generated, this kind of number It is necessary according to preserving for access.It is all to be saved by accessed server at present, due in server The reason of the heart is easy to appear Single Point of Faliure, and data record is also more scattered, is easy to be tampered, lose, and cannot recall, Tracking is not easy, and when record data are more and more huger, can be led to the problem of difficult in maintenance, at high cost.
Summary of the invention
The embodiment of the invention provides a kind of date storage methods, to solve to save the record of data access in the prior art When there is technical issues that Single Point of Faliure, Information Security it is poor,.This method comprises:
When generating data access, the record information of data access is obtained, generates the record letter of every data access Cease corresponding id information;
The node that the record information of every data access and corresponding id information are sent to block chain is stored.
The embodiment of the invention also provides a kind of data storage devices, to solve to save the note of data access in the prior art There is technical issues that when record Single Point of Faliure, Information Security it is poor,.The device includes:
Data acquisition module generates described in every for when generating data access, obtaining the record information of data access The corresponding id information of record information of data access;
Data transmission blocks, for the record information of every data access and corresponding id information to be sent to block The node of chain is stored.
The embodiment of the invention also provides a kind of computer equipments, including memory, processor and storage are on a memory And the computer program that can be run on a processor, the processor realize above-mentioned arbitrary number when executing the computer program According to storage method, when solving to save the record of data access in the prior art there are Single Point of Faliure, Information Security is poor, safeguards Difficult technical problem.
The embodiment of the invention also provides a kind of computer readable storage medium, the computer-readable recording medium storage There is the computer program for executing above-mentioned arbitrary date storage method, when solving to save the record of data access in the prior art There is technical issues that Single Point of Faliure, Information Security it is poor,.
In embodiments of the present invention, present inventor has found, block chain has decentralization, distribution, data can not The characteristics such as distort and can recall, therefore present inventor proposes the record information of data access being stored in block chain It,, can using block chain decentralization compared in the prior art having the record of data access on access server on node To evade the single feature of central server, so as not to service disconnection occur because of central server delay machine, loss of data is asked Topic, the block data that block chain is generated by common recognition technology will such as be destroyed, be distorted, and need to pay expensive cost price, this guarantor The true of storing data has been demonstrate,proved, can not have been faked, the record information of more data access can be saved by block chain, has been reduced The cost problem that data save, the i.e. date storage method of the application are conducive to avoid Single Point of Faliure, improve data storage Safety, authenticity reduce the difficulty and cost of data maintenance.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present invention, constitutes part of this application, not Constitute limitation of the invention.In the accompanying drawings:
Fig. 1 is a kind of flow chart of date storage method provided in an embodiment of the present invention;
Fig. 2 is a kind of flow chart for implementing above-mentioned date storage method provided in an embodiment of the present invention;
Fig. 3 is a kind of flow chart for implementing data query provided in an embodiment of the present invention;
Fig. 4 is a kind of structural block diagram of computer equipment provided in an embodiment of the present invention;
Fig. 5 is a kind of flow chart of date storage method provided in an embodiment of the present invention.
Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention clearer, right below with reference to embodiment and attached drawing The present invention is described in further details.Here, exemplary embodiment and its explanation of the invention is used to explain the present invention, but simultaneously It is not as a limitation of the invention.
In embodiments of the present invention, a kind of date storage method is provided, as shown in Figure 1, this method comprises:
Step 102: when generating data access, obtaining the record information of data access, generate every data access The corresponding id information of record information;
Step 104: the record information of every data access and corresponding id information are sent to the node of block chain It is stored.
Process as shown in Figure 1 is it is found that in embodiments of the present invention, present inventor's discovery, block chain is in going The heart, distribution, data such as can not distort and can recall at the characteristics, therefore present inventor proposes the note of data access Record information is stored on the node of block chain, compared with the record of data access is existed on access server in the prior art, Using block chain decentralization, the single feature of central server can be evaded, so as not to occur because of central server delay machine The problem of service disconnection, loss of data, the block data that block chain is generated by common recognition technology will such as be destroyed, be distorted, and need to pay Expensive cost price can not be faked it ensure that storing data is true out, can save more numbers by block chain According to the record information of access, the cost problem of data preservation is reduced, i.e. the date storage method of the application is conducive to avoid list Point failure improves safety, the authenticity of data storage, reduces the difficulty and cost of data maintenance, and data are checked in tracking.
When it is implemented, the record information of above-mentioned data access may include accessing the address of server and interviewed server The information such as information, access content information, access date.
When it is implemented, the corresponding id information of record information of every data access can be based on the access date and be interviewed Ask the ID character string that the address of server combines.
When it is implemented, block chain is a kind of technology of decentralization, by integrating P2P (Peer to Peer, point pair Point) transmission technology, the one kind for the technologies such as technology, data encrypting and deciphering technology, KV (Key Value, key assignments) database generation of knowing together Novel Internet protocols.
When it is implemented, the record information and corresponding id information by accessing every data are sent to appointing for block chain It anticipates on a node, information will be recorded by the consensus rules of block chain and corresponding id information is packaged into block, in block chain Each node on persistence get off.In storing process, the note of every data access can also be inquired on arbitrary node The storage condition for recording information, for example, above-mentioned date storage method further include:
The first request of poll transaction results is sent to the node of block chain, wherein the request includes id information (example Such as, the corresponding id information of record information of a certain data access of inquiry transaction results can be intended to);
The node of block chain is received based on the transaction results information of the first request feedback, wherein the transaction results Information includes the transaction results of the record information of the corresponding data access of id information, for example, the transaction results can be and deposit Store up successfully, the storage correlating markings information such as unsuccessfully.
Specifically, the following specifically describes the process for implementing above-mentioned date storage method, as shown in Fig. 2, the process include with Lower step:
Step S202, when generating data access, server obtains the record information of data access, generates every data and visits The corresponding id information of record information asked, the record letter that server submits every data to access to any one node of block chain Breath and corresponding id information, ABI interface (the Application Binary that server is provided according to the intelligent contract of block chain Interface, application binaries interface), the record information of every data access and corresponding id information etc. are submitted to The node of block chain;
Step S204, the node of block chain executes intelligent contract and generates transaction, and is broadcast in block chain network;
Step S206, each node of block chain are known together mechanism according to block chain, the record information that every data is accessed and Corresponding id information, which is packaged, generates block, and generate certification as a result, be broadcast in block chain network, by each node verification and deposit In on local node;
Step S208, server can timing the first request of poll transaction results is initiated to arbitrary node, this first is asked The corresponding id information of record information for asking a certain data access including wanting inquiry transaction results, until being obtained from block chain To transaction results;
Step S210 receives the node of the first request, and it is corresponding to obtain the id information according to the id information in the first request Data access record information transaction results, and transaction results are returned to the server for submitting request, in transaction results It may include the relevant information for storing successfully or storing unsuccessfully equal marks;So far, the record information of entire access data is completed Preservation process.
When it is implemented, can also track after the record information of data access is stored onto block chain and check data, For example, above-mentioned date storage method further include:
The second request of the record information of inquiry data access is sent to the node of block chain, wherein second request The corresponding id information of record information including data access to be checked;
The node of block chain is received based on the query result of the second request feedback, wherein the query result includes The content of the record information of data access to be checked.
Specifically, for example, as shown in figure 3, checking data by following steps to track:
Step S302: server initiates the second of the record information of inquiry data access to any one node of block chain Request, equally, server sends the second request according to the ABI interface that the intelligent contract of block chain provides, which can To include the relevant informations such as the corresponding id information of record information of data access to be checked;
Step S304: receiving the node of the second request, according to second request in id information local node search with The record information of the corresponding data access of the id information, and query result is returned to the server for submitting the second request, inquiry As a result it may include the content of the record information of the data access inquired according to id information in.
When it is implemented, above-mentioned date storage method may operate in the equipment such as server, terminal, above-mentioned data are run The application binaries interface that the equipment of storage method is provided by the intelligent contract of block chain is carried out with the node of block chain Data transmission sends the record information of every data access and right to the node of block chain by application binaries interface The data such as id information, the first request and the second request answered, the friendship that receiving node is fed back by application binaries interface The data such as easy result, query result.
In the present embodiment, provide a kind of computer equipment, as shown in figure 4, include memory 402, processor 404 and The computer program that can be run on a memory and on a processor is stored, the processor executes real when the computer program Existing above-mentioned arbitrary date storage method.Specifically, the computer equipment can be terminal, server or similar Arithmetic unit.
In the present embodiment, a kind of computer readable storage medium, the computer-readable recording medium storage are provided There is the computer program for executing above-mentioned arbitrary date storage method.
Specifically, computer readable storage medium includes permanently and non-permanent, removable and non-removable media can To realize that information is stored by any method or technique.Information can be computer readable instructions, data structure, the module of program Or other data.The example of computer readable storage medium includes, but are not limited to phase change memory (PRAM), static random-access is deposited Reservoir (SRAM), dynamic random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory techniques, CD-ROM are read-only Memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassettes, tape magnetic disk storage or Other magnetic storage devices or any other non-transmission medium, can be used for storage can be accessed by a computing device information.According to Herein defines, and computer readable storage medium does not include temporary computer readable media (transitory media), such as adjusts The data-signal and carrier wave of system.
Based on the same inventive concept, a kind of data storage device is additionally provided in the embodiment of the present invention, such as following implementation Described in example.Since the principle that data storage device solves the problems, such as is similar to date storage method, the reality of data storage device The implementation that may refer to date storage method is applied, overlaps will not be repeated.It is used below, term " unit " or " mould The combination of the software and/or hardware of predetermined function may be implemented in block ".Although device described in following embodiment is preferably with soft Part is realized, but the realization of the combination of hardware or software and hardware is also that may and be contemplated.
Fig. 5 is a kind of structural block diagram of the data storage device of the embodiment of the present invention, as shown in figure 5, the device includes:
Data acquisition module 502 generates every for when generating data access, obtaining the record information of data access The corresponding id information of record information of the data access;
Data transmission blocks 504, for the record information of every data access and corresponding id information to be sent to The node of block chain is stored.
In one embodiment, above-mentioned apparatus further include:
First enquiry module, for sending the first request of poll transaction results to the node of block chain, wherein described to ask It asks including id information;
First receiving module, the transaction results information that the node for receiving block chain is fed back based on first request, In, the transaction results information includes the transaction results of the record information of the corresponding data access of id information.
In one embodiment, above-mentioned apparatus further include:
Second enquiry module, the second request of the record information for sending inquiry data access to the node of block chain, Wherein, second request includes the corresponding id information of record information of data access to be checked;
Second receiving module, for receiving the node of block chain based on the query result of the second request feedback, wherein The query result includes the content of the record information of data access to be checked.
In one embodiment, the application that the intelligent contract in node that the data storage device passes through block chain provides Program binary interface carries out data transmission with the node of block chain.
The embodiment of the present invention realizes following technical effect: present inventor's discovery, and block chain has decentralization, divides Cloth, data such as can not distort and can recall at the characteristics, therefore present inventor proposes the record information of data access It is stored on the node of block chain, compared in the prior art having the record of data access on access server, using area Block chain decentralization can evade the single feature of central server, so as not to occur in business because of central server delay machine The problem of disconnected, loss of data, the block data that block chain is generated by common recognition technology will such as be destroyed, be distorted, and need to pay valuableness Cost price can not be faked it ensure that storing data is true, more data access can be saved by block chain Record information, reduce the cost problem of data preservation, i.e. the date storage method of the application is conducive to avoid Single Point of Faliure, Safety, the authenticity for improving data storage, reduce the difficulty and cost of data maintenance.
Obviously, those skilled in the art should be understood that each module of the above-mentioned embodiment of the present invention or each step can be with It is realized with general computing device, they can be concentrated on a single computing device, or be distributed in multiple computing devices On composed network, optionally, they can be realized with the program code that computing device can perform, it is thus possible to by it Store and be performed by computing device in the storage device, and in some cases, can be held with the sequence for being different from herein The shown or described step of row, perhaps they are fabricated to each integrated circuit modules or will be multiple in them Module or step are fabricated to single integrated circuit module to realize.In this way, the embodiment of the present invention be not limited to it is any specific hard Part and software combine.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field For art personnel, the embodiment of the present invention can have various modifications and variations.All within the spirits and principles of the present invention, made Any modification, equivalent substitution, improvement and etc. should all be included in the protection scope of the present invention.

Claims (10)

1. a kind of date storage method characterized by comprising
When generating data access, the record information of data access is obtained, generates the record information pair of every data access The id information answered;
The node that the record information of every data access and corresponding id information are sent to block chain is stored.
2. date storage method as described in claim 1, which is characterized in that further include:
The first request of poll transaction results is sent to the node of block chain, wherein the request includes id information;
The node of block chain is received based on the transaction results information of the first request feedback, wherein the transaction results information The transaction results of record information including the corresponding data access of id information.
3. date storage method as described in claim 1, which is characterized in that further include:
To the node of block chain send inquiry data access record information second request, wherein it is described second request include The corresponding id information of record information of data access to be checked;
The node of block chain is received based on the query result of the second request feedback, wherein the query result includes to be checked Ask the content of the record information of data access.
4. date storage method as claimed any one in claims 1 to 3, which is characterized in that in the node by block chain Intelligent contract provide application binaries interface, carry out data transmission with the node of block chain.
5. a kind of data storage device characterized by comprising
Data acquisition module generates every data for when generating data access, obtaining the record information of data access The corresponding id information of record information of access;
Data transmission blocks, for the record information of every data access and corresponding id information to be sent to block chain Node is stored.
6. data storage device as claimed in claim 5, which is characterized in that further include:
First enquiry module, for sending the first request of poll transaction results to the node of block chain, wherein the request packet Include id information;
First receiving module, for receiving the node of block chain based on the transaction results information of the first request feedback, wherein institute State the transaction results that transaction results information includes the record information of the corresponding data access of id information.
7. data storage device as claimed in claim 5, which is characterized in that further include:
Second enquiry module, the second request of the record information for sending inquiry data access to the node of block chain, wherein Second request includes the corresponding id information of record information of data access to be checked;
Second receiving module, for receiving the node of block chain based on the query result of the second request feedback, wherein described Query result includes the content of the record information of data access to be checked.
8. the data storage device as described in any one of claim 5 to 7, which is characterized in that the data storage device is logical The application binaries interface that the intelligent contract crossed in the node of block chain provides carries out data biography with the node of block chain It is defeated.
9. a kind of computer equipment including memory, processor and stores the meter that can be run on a memory and on a processor Calculation machine program, which is characterized in that the processor realizes any one of claims 1 to 4 institute when executing the computer program The date storage method stated.
10. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage has perform claim It is required that the computer program of date storage method described in any one of 1 to 4.
CN201811635008.XA 2018-12-29 2018-12-29 Date storage method, device, computer equipment and computer readable storage medium Pending CN109739932A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811635008.XA CN109739932A (en) 2018-12-29 2018-12-29 Date storage method, device, computer equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811635008.XA CN109739932A (en) 2018-12-29 2018-12-29 Date storage method, device, computer equipment and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN109739932A true CN109739932A (en) 2019-05-10

Family

ID=66362322

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811635008.XA Pending CN109739932A (en) 2018-12-29 2018-12-29 Date storage method, device, computer equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN109739932A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110585698A (en) * 2019-09-29 2019-12-20 腾讯科技(深圳)有限公司 Virtual asset transaction method and related device
CN110753103A (en) * 2019-10-16 2020-02-04 长春银彩通信息科技有限公司 Method and system for distributed efficient data sealing
CN111966967A (en) * 2020-08-07 2020-11-20 北京网聚云联科技有限公司 Copyright storage method and system based on block chain technology and CDN

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102685313A (en) * 2011-03-18 2012-09-19 中兴通讯股份有限公司 Inquiry method of payment information of mobile terminal and mobile terminal
US20150332283A1 (en) * 2014-05-13 2015-11-19 Nant Holdings Ip, Llc Healthcare transaction validation via blockchain proof-of-work, systems and methods
CN105573828A (en) * 2015-12-17 2016-05-11 布比(北京)网络技术有限公司 Operation processing method and device
CN106130779A (en) * 2016-07-18 2016-11-16 布比(北京)网络技术有限公司 A kind of Internet of Things equipment and with the Internet of Things construction method of this equipment
CN107688927A (en) * 2017-09-19 2018-02-13 中国银行股份有限公司 A kind of method and system for calling the intelligent contract on block chain
CN108846752A (en) * 2018-06-06 2018-11-20 北京京东金融科技控股有限公司 Data processing method, system, block platform chain and readable storage medium storing program for executing

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102685313A (en) * 2011-03-18 2012-09-19 中兴通讯股份有限公司 Inquiry method of payment information of mobile terminal and mobile terminal
US20150332283A1 (en) * 2014-05-13 2015-11-19 Nant Holdings Ip, Llc Healthcare transaction validation via blockchain proof-of-work, systems and methods
CN105573828A (en) * 2015-12-17 2016-05-11 布比(北京)网络技术有限公司 Operation processing method and device
CN106130779A (en) * 2016-07-18 2016-11-16 布比(北京)网络技术有限公司 A kind of Internet of Things equipment and with the Internet of Things construction method of this equipment
CN107688927A (en) * 2017-09-19 2018-02-13 中国银行股份有限公司 A kind of method and system for calling the intelligent contract on block chain
CN108846752A (en) * 2018-06-06 2018-11-20 北京京东金融科技控股有限公司 Data processing method, system, block platform chain and readable storage medium storing program for executing

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110585698A (en) * 2019-09-29 2019-12-20 腾讯科技(深圳)有限公司 Virtual asset transaction method and related device
CN110585698B (en) * 2019-09-29 2021-10-08 腾讯科技(深圳)有限公司 Virtual asset transaction method and related device
CN110753103A (en) * 2019-10-16 2020-02-04 长春银彩通信息科技有限公司 Method and system for distributed efficient data sealing
CN111966967A (en) * 2020-08-07 2020-11-20 北京网聚云联科技有限公司 Copyright storage method and system based on block chain technology and CDN

Similar Documents

Publication Publication Date Title
CN108415784B (en) Cross-block-chain interaction method, device, system and electronic equipment
CN108734028B (en) Data management method based on block chain, block chain link point and storage medium
CN113095749A (en) Logistics information transmission method, system and device based on block chain
CN110020854B (en) Data evidence storage method and system based on multiple block chain networks
CN111934996A (en) Message transmission method and device
CN109521956B (en) Cloud storage method, device, equipment and storage medium based on block chain
CN109739932A (en) Date storage method, device, computer equipment and computer readable storage medium
EP3804218B1 (en) Blockchain based access control using time-dependent obfuscation of access tokens
CN111488291B (en) Pressure testing method, device and system for block chain network
CN110020945B (en) Data reading method and system based on multiple block chain networks
CN110060153B (en) Data evidence storage method and system based on multiple block chain networks
CN110138754B (en) Multi-cloud-end information processing system and resource sharing method thereof
CN109951475A (en) Multi-platform user account information synchronous method and system, server
CN104036406B (en) A kind of method and apparatus for improving ordering information security
WO2023087760A1 (en) Data sharing method and apparatus, device, and storage medium
CN109525949A (en) Register method and device, storage medium, server, user terminal
CN111966967A (en) Copyright storage method and system based on block chain technology and CDN
CN107644017A (en) The querying method and device of journal file
CN105224541B (en) Uniqueness control method, information storage means and the device of data
US11133926B2 (en) Attribute-based key management system
CN109934584A (en) Block chain account trading method and apparatus
CN111861462B (en) Financial product transaction method and device based on blockchain
CN109660357A (en) Digital asset register method, verification method, device, equipment and storage medium
CN111190959A (en) Data-based encryption method and system for block chain decentralized storage
CN105516134A (en) Authentication method and system for system integration

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: 20190510

RJ01 Rejection of invention patent application after publication