CN109885606A - A kind of date storage method based on super account book platform - Google Patents
A kind of date storage method based on super account book platform Download PDFInfo
- Publication number
- CN109885606A CN109885606A CN201910012807.XA CN201910012807A CN109885606A CN 109885606 A CN109885606 A CN 109885606A CN 201910012807 A CN201910012807 A CN 201910012807A CN 109885606 A CN109885606 A CN 109885606A
- Authority
- CN
- China
- Prior art keywords
- data
- storage request
- data storage
- converted
- account book
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 25
- 238000013500 data storage Methods 0.000 claims abstract description 95
- 238000012795 verification Methods 0.000 claims abstract description 14
- 230000008569 process Effects 0.000 claims abstract description 7
- 230000009466 transformation Effects 0.000 claims abstract description 7
- 238000012545 processing Methods 0.000 claims description 14
- 230000001502 supplementing effect Effects 0.000 claims description 9
- 230000001360 synchronised effect Effects 0.000 claims description 3
- 238000011161 development Methods 0.000 description 3
- 230000008901 benefit Effects 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 2
- 241001269238 Data Species 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 230000000977 initiatory effect Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 241000894007 species Species 0.000 description 1
Abstract
The present invention provides a kind of date storage method based on super account book platform, and memory interface is called to receive data storage request;Parameter verification is carried out to the parameter in data storage request, if verification does not pass through, terminates process;Judge whether the content-data in data storage request is structural data, if performing the next step suddenly, if it is not, the total data in data storage request is directly denoted as data to be converted;Judge whether to need to encrypt according to the parameter in data storage request, if so, being encrypted to obtain encryption data to the content-data in data storage request, other data in encryption data and data storage request are denoted as data to be converted;If it is not, the total data in data storage request is directly denoted as data to be converted;Data to be converted convert and in storing data library according to corresponding default transformation rule.
Description
Technical field
The present invention relates to technical field of data processing, and in particular to a kind of data storage side based on super account book platform
Method.
Background technique
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, block chain technology is to verify to save with storing data, using distribution using block linked data structure
Point common recognition algorithm come generate and more new data, guarantee in the way of cryptography data transmission and access safety, using by from
The intelligent contract of dynamicization scripted code composition programs and the completely new distributed basis framework of one kind of operation data and calculating side
Formula.
Block chain (Blockchain) is the intelligent peer-to-peer network with distributed data base identification, propagation and information-recording
Network, also referred to as value internet.So-called value internet, refer to allow users to it is convenient, fast by network, at low cost
Transmitting value.
The development for developing analogy internet itself of block chain, future can be formed one such as on internet
It is called the thing of finance-internet, and this thing is namely based on block chain, its forerunner is exactly bitcoin, that is, is passed
System finance is from privately owned chain, industry chain (local area network), and from publicly-owned chain, (the wide area network) all expresses same bitcoin series
One conception of species --- digital asset (DigitalAsset) is finally restrained to an intermediate equilibria point.
With the development of block chain technology, various data cochain demands are increasingly urgent to, and super account book (Hyperledger) is
The block catenary system platform of mainstream at present, and how to guarantee under super account book platform the safety of data cochain, reliability, no
The property denied is currently based on the platform data cochain main problem to be solved.
Summary of the invention
With the development of block chain technology, various data cochain demands are increasingly urgent to, and super account book (Hyperledger) is
The block catenary system platform of mainstream at present, the main problem that the present invention solves how are guaranteed under super account book platform in data
The safety of chain, reliability, non repudiation.
To solve the above-mentioned problems, present invention provide the technical scheme that
A kind of date storage method based on super account book platform, includes the following steps:
Memory interface is called to receive data storage request;Wherein, data storage request includes request content and checking parameter;
Parameter in data storage request is verified;
It is stored after carrying out judgement processing to the content in data storage request.
Further, step stores after carrying out judgement processing to the content in data storage request, comprising:
Judge whether to need to encrypt according to the parameter in data storage request;
If so, being encrypted to obtain encryption data to the content-data in data storage request, by encryption data sum number
It is data to be converted according to other data markers in storage request;Guarantee data encryption the safety of data transmission;
If it is not, the total data in data storage request is directly then labeled as data to be converted;
Data to be converted be converted and stored into database according to default transformation rule.
Further, step stores after the content in data storage request is encrypted, and includes: before
Judge whether the content-data in data storage request is structural data;
Judge whether to need to encrypt according to the parameter in data storage request if so, thening follow the steps;Convert the data into structure
Changing data facilitates the data for carrying out next step to be uniformly processed;
If it is not, the total data in data storage request is directly labeled as data to be converted.
Further, step judges whether the content-data in data storage request is structural data, includes: before
Judge whether there are data in data storage request;Refer here to whether have request content in request of data,
If so, Supplementing Data processing is carried out to the data in data storage request, the increased data of institute in Supplementing Data processing
For completion data;
If it is not, then terminating process.
Further, step carries out Supplementing Data processing to the data in data storage request, specifically includes:
Increase caching index data in data in data storage request, the caching index data is to describe during data write and ask
Data;
If content-data in data storage request is structural data, judge the data in data storage request whether include
Unique identification;If so, increasing version number in data in data storage request;If it is not, then in data storage request data
Middle increase unique identification;
If the content-data in data storage request is unstructured data, increase only in the data in data storage request
One mark, and increase data storage path.
Further, data to be converted be converted and stored into database according to default transformation rule by step, it
Afterwards further include:
After thering is one to store the datum number storage in requesting according to library, all a synchronization message can be sent to message queue, led to
The data storage of high concurrent can be effectively adapted to by crossing message queue.
Further, step can all be sent out after having one to store the datum number storage in requesting according to library to message queue
A synchronization message is sent, is stored by the data that message queue can effectively adapt to high concurrent, later further include:
When polling message queue to the synchronization message, the data in the database for corresponding to the synchronization message are synchronized to caching
In.
Further, step verifies the parameter in data storage request, comprising:
Parameter verification is carried out to the parameter in data storage request;
If verification passes through, executes step and judge whether there are data in data storage request;
If verification does not pass through, terminate process.
Further, the parameter in data storage request is verified;According to preset checking parameter create-rule
The checking parameter of generation carries out legitimacy verifies;
Or, the checking parameter of opposite verification server request carries out legitimacy verifies;Improve request treatment effeciency.
As can be seen from the above technical solutions, the invention has the following advantages that technical solution of the present invention includes data storage
Step: memory interface is called to receive data storage request;Parameter verification is carried out to the parameter in data storage request, if verification is not
Pass through, terminates process;Judge whether the content-data in data storage request is structural data, if performing the next step suddenly,
If it is not, the total data in data storage request is directly denoted as data to be converted;Sentenced according to the parameter in data storage request
It is disconnected whether to need to encrypt, if so, being encrypted to obtain encryption data to the content-data in data storage request, will encrypt
Other data in data and data storage request are denoted as data to be converted;If it is not, directly by the whole in data storage request
Data are denoted as data to be converted;Data to be converted convert and in storing data library according to corresponding default transformation rule.
The present invention realizes the date storage method for establishing a high security, high stability, efficient super account book platform.This hair
It is bright to realize the date storage method for establishing a high security, high stability, efficient super account book platform.Guarantee super
The safety of data cochain, reliability, non repudiation under grade account book platform.
In addition, design principle of the present invention is reliable, structure is simple, has very extensive application prospect.
It can be seen that compared with prior art, the present invention have substantive distinguishing features outstanding and it is significant ground it is progressive, implementation
Beneficial effect be also obvious.
Detailed description of the invention
Fig. 1 is a kind of date storage method flow chart based on super account book platform.
Specific embodiment
The present invention will be described in detail with reference to the accompanying drawing and by specific embodiment, and following embodiment is to the present invention
Explanation, and the invention is not limited to following implementation.
As shown in Figure 1, a kind of date storage method based on super account book platform, includes the following steps:
S1, memory interface is called to receive data storage request;Wherein, data storage request includes request content and checking parameter;
S2, parameter verification is carried out to the parameter in data storage request, the parameter verification includes:
Judge whether there is key in the parameter in data storage request;
If so, then verification passes through, step S3 is executed;Do not pass through if no, verifying;The key is the key of data encrypting and deciphering
Information, the caller by initiation data storage request are customized;Key value is with higher by the customized advantage of caller
Safety, even if being also only to influence relevant to caller data, no because of the key value leakage defined by caller oneself
It will affect other storing datas in super account book platform, if storing key value by super account book platform, once leakage, it will
The data in super account book platform are made to lose safety;
S3, judge whether there are data in data storage request;
If so, Supplementing Data processing is carried out to the data in data storage request, the increased data of institute in Supplementing Data processing
For completion data;
If it is not, then terminating process;
Wherein, the Supplementing Data, which is handled, includes:
Increase caching index data in data in data storage request, the caching index data is to describe during data write and ask
Data;
If content-data in data storage request is structural data, judge the data in data storage request whether include
Unique identification, if so, increasing version number in data in data storage request, if it is not, the then number in data storage request
According to middle increase unique identification;
If the content-data in data storage request is unstructured data, increase only in the data in data storage request
One mark, and increase data storage path;
S4, judge whether the content-data in data storage request is structural data;
If so, thening follow the steps S5;
If it is not, the total data in data storage request is directly denoted as data to be converted;
S5, judge whether to need to encrypt according to the parameter in data storage request;
If so, being encrypted to obtain encryption data to the content-data in data storage request, by encryption data sum number
It is to hold change data according to other data markers in storage request;Data encryption processing include: according to quotient it is close/national secret algorithm
It is encrypted using the content-data in data key storage request;
If it is not, the total data in data storage request is directly then designated as data to be converted;
S6, data to be converted convert and in storing data library according to corresponding default transformation rule;
S7, synchronization message is sent to message queue;Whenever have the datum number storage in a storage request according to library after, all can be to disappearing
It ceases queue and sends a synchronization message, stored by the data that message queue can effectively adapt to high concurrent;
S8, when polling message queue to the synchronization message, will correspond to the synchronization message database in data be synchronized to
In caching.
Description and claims of this specification and term " first ", " second ", " third ", " in above-mentioned attached drawing
The (if present)s such as four " are to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should manage
The data that solution uses in this way are interchangeable under appropriate circumstances, so as to the embodiment of the present invention described herein can in addition to
Here the sequence other than those of diagram or description is implemented.In addition, term " includes " and " having " and their any deformation,
It is intended to cover and non-exclusive includes.
The foregoing description of the disclosed embodiments enables those skilled in the art to implement or use the present invention.
Various modifications to these embodiments will be readily apparent to those skilled in the art, as defined herein
General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, of the invention
It is not intended to be limited to the embodiments shown herein, and is to fit to and the principles and novel features disclosed herein phase one
The widest scope of cause.
Claims (8)
1. a kind of date storage method based on super account book platform, which comprises the steps of:
Memory interface is called to receive data storage request;
Parameter in data storage request is verified;
It is stored after carrying out judgement processing to the content in data storage request.
2. a kind of date storage method based on super account book platform according to claim 1, which is characterized in that step pair
Content in data storage request is stored after carrying out judgement processing, comprising:
Judge whether to need to encrypt according to the parameter in data storage request;
If so, being encrypted to obtain encryption data to the content-data in data storage request, by encryption data sum number
It is data to be converted according to other data markers in storage request;
If it is not, the total data in data storage request is directly then labeled as data to be converted;
Data to be converted be converted and stored into database according to default transformation rule.
3. a kind of date storage method based on super account book platform according to claim 2, which is characterized in that step pair
Content in data storage request is stored after being encrypted, and includes: before
Judge whether the content-data in data storage request is structural data;
Judge whether to need to encrypt according to the parameter in data storage request if so, thening follow the steps;
If it is not, the total data in data storage request is directly labeled as data to be converted.
4. a kind of date storage method based on super account book platform according to claim 3, which is characterized in that step is sentenced
Whether the content-data in disconnected data storage request is structural data, includes: before
Judge whether there are data in data storage request;
If so, Supplementing Data processing is carried out to the data in data storage request, the increased data of institute in Supplementing Data processing
For completion data;
If it is not, then terminating process.
5. a kind of date storage method based on super account book platform according to claim 4, which is characterized in that step pair
Data in data storage request carry out Supplementing Data processing, specifically include:
Increase caching index data in data in data storage request, the caching index data is to describe during data write and ask
Data;
If content-data in data storage request is structural data, judge the data in data storage request whether include
Unique identification;If so, increasing version number in data in data storage request;If it is not, then in data storage request data
Middle increase unique identification;
If the content-data in data storage request is unstructured data, increase only in the data in data storage request
One mark, and increase data storage path.
6. a kind of date storage method based on super account book platform according to claim 5, which is characterized in that step will
Data to be converted be converted and stored into database according to default transformation rule, later further include:
After thering is one to store the datum number storage in requesting according to library, all a synchronization message can be sent to message queue, led to
The data storage of high concurrent can be effectively adapted to by crossing message queue.
7. a kind of date storage method based on super account book platform according to claim 6, which is characterized in that step is every
After having the datum number storage in a storage request according to library, all a synchronization message can be sent to message queue, pass through message
Queue can effectively adapt to the data storage of high concurrent, later further include:
When polling message queue to the synchronization message, the data in the database for corresponding to the synchronization message are synchronized to caching
In.
8. a kind of date storage method based on super account book platform according to claim 4, which is characterized in that step pair
Parameter in data storage request is verified, comprising:
Parameter verification is carried out to the parameter in data storage request;
If verification passes through, executes step and judge whether there are data in data storage request;
If verification does not pass through, terminate process.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910012807.XA CN109885606A (en) | 2019-01-07 | 2019-01-07 | A kind of date storage method based on super account book platform |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910012807.XA CN109885606A (en) | 2019-01-07 | 2019-01-07 | A kind of date storage method based on super account book platform |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109885606A true CN109885606A (en) | 2019-06-14 |
Family
ID=66925671
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910012807.XA Pending CN109885606A (en) | 2019-01-07 | 2019-01-07 | A kind of date storage method based on super account book platform |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109885606A (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106506493A (en) * | 2016-10-27 | 2017-03-15 | 摩登大道时尚电子商务有限公司 | Data processing method based on block platform chain |
CN106649632A (en) * | 2016-12-07 | 2017-05-10 | 北京众享比特科技有限公司 | Data synchronism method and system |
-
2019
- 2019-01-07 CN CN201910012807.XA patent/CN109885606A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106506493A (en) * | 2016-10-27 | 2017-03-15 | 摩登大道时尚电子商务有限公司 | Data processing method based on block platform chain |
CN106649632A (en) * | 2016-12-07 | 2017-05-10 | 北京众享比特科技有限公司 | Data synchronism method and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109829326B (en) | Cross-domain authentication and fair audit de-duplication cloud storage system based on block chain | |
CN110992027B (en) | Efficient transaction method and device for realizing privacy protection in block chain | |
CN110958111B (en) | Block chain-based identity authentication mechanism of electric power mobile terminal | |
CN107395557A (en) | A kind of processing method and processing device of service request | |
CN108900464A (en) | Electronic device, data processing method and computer storage medium based on block chain | |
CN108809932A (en) | A kind of deposit system, method and readable medium based on block chain | |
CN109816383A (en) | A kind of block chain endorsement method, block chain wallet and block chain | |
CN106991298A (en) | Access method, the authorization requests method and device of application program docking port | |
CN110912877B (en) | Data transmitting and receiving method and device based on IEC61850 model in transformer substation | |
CN110224808A (en) | Bank data sharing method and relevant device based on block chain | |
KR20180089670A (en) | Method for generating and verifying an digital signature or message authentication code based on a block chain that does not require key management | |
CN113902384B (en) | Tracing method and system based on RFID and intelligent contract | |
CN109660352A (en) | A kind of distribution relation record method, apparatus and terminal device based on block chain | |
CN110264042A (en) | A kind of method and relevant apparatus of project management | |
CN114900290A (en) | Data transaction model and privacy protection method based on block chain | |
CN107256243A (en) | A kind of data access card method and its device based on multiple hash algorithm | |
CN105897737B (en) | A kind of method of secure data exchange | |
CN107094075A (en) | A kind of data block dynamic operation method based on convergent encryption | |
CN110351297A (en) | A kind of verification method and device applied to block chain | |
CN114357492A (en) | Medical data privacy fusion method and device based on block chain | |
CN102236939A (en) | Access method for radio frequency communication with low-frequency magnetic communication | |
CN106487505B (en) | Key management, acquisition methods and relevant apparatus and system | |
CN111597269A (en) | Block chain-based contract implementation method, device and equipment | |
CN107425959A (en) | A kind of method for realizing encryption, system, client and service end | |
CN106709716A (en) | Method, device and system for PBOC transaction based on biometric encryption |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190614 |