CN109741192A - Date storage method, device, equipment and readable storage medium storing program for executing based on block chain - Google Patents
Date storage method, device, equipment and readable storage medium storing program for executing based on block chain Download PDFInfo
- Publication number
- CN109741192A CN109741192A CN201811362070.6A CN201811362070A CN109741192A CN 109741192 A CN109741192 A CN 109741192A CN 201811362070 A CN201811362070 A CN 201811362070A CN 109741192 A CN109741192 A CN 109741192A
- Authority
- CN
- China
- Prior art keywords
- data
- stored
- user
- block
- block chain
- 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
Abstract
The invention discloses a kind of date storage method based on block chain, device, equipment and readable storage medium storing program for executing, it is related to technical field of data storage, it can be according to data to be stored any in the product data and user data got, generate Data Identification, it is generated based on data to be stored and Data Identification to memory block, and it will be added to memory block in block chain, making the data such as product data and user data is stored based on block chain, it ensure that the transparency of number storage, data are not easy to be tampered, and confidence level is higher.The described method includes: receiving instruction data storage, data to be stored is obtained, the data to be stored is at least one of product data or user data;Based on the data to be stored, Data Identification is generated, the Data Identification is at least the eap-message digest MD5 value of the data to be stored;According to the data to be stored and the Data Identification, generates to memory block, stored described to memory block into block chain.
Description
Technical field
The present invention relates to technical field of data storage, more particularly to a kind of date storage method based on block chain, dress
It sets, equipment and readable storage medium storing program for executing.
Background technique
With the development of economy and society, the insurance awareness of people is more and more stronger, and more and more users need to handle guarantor
Dangerous business.Insurance refers to based on contract insurer arranges, and to insurance institution's premium payment, insurance institution is for contract engagement
Compensation insurance gold responsibility or insurant are dead, hurt because its property loss caused by occurring undertakes for the accident that may occur
Residual, disease or when reaching the conditions such as the age of contract engagement, time limit, undertakes the business insurance behavior for paying insurance money responsibility.It protects
Danger can be divided into the type of insurances such as property insurance and personal insurance according to the difference of underwriting standard.When user insures,
Insurance institution provides a user the product data of insurance products that currently can be insured, and after user is insured, and user is participated in guarantor
The user data of danger is stored.
In the related technology, insurance institution storage can the product data of insured insurance products and the user data of user
When, it is typically based on database purchase, when any data in product data or user data changes, data are carried out more
Change, saving currently stored data is newest data.
In the implementation of the present invention, inventor discovery in the related technology the prior art has at least the following problems:
For database when storing the user data of product data and user, product data and user data are all at random
Storage, and the variation of data is too many, user is not aware which variation occurred for product data or user data, causes to produce
The storage of the data such as product data and user data is opaque, is easy to happen the possibility being tampered, and confidence level is not high.
Summary of the invention
In view of this, the present invention provides a kind of date storage method based on block chain, device, equipment and readable storages
Medium, main purpose are that the storage for solving the data such as current product data and user data is opaque, are easy to happen and are usurped
The possibility changed, the not high problem of confidence level.
According to the present invention in a first aspect, providing a kind of date storage method based on block chain, this method comprises:
Instruction data storage is received, data to be stored is obtained, the data to be stored is at least product data or number of users
One of according to;
Based on the data to be stored, Data Identification is generated, the Data Identification is at least disappearing for the data to be stored
Breath abstract MD5 value;
According to the data to be stored and the Data Identification, generates to memory block, deposited described to memory block
Storage is into block chain.
In another embodiment, the reception instruction data storage obtains data to be stored, comprising:
Receive the instruction data storage, determine at least one product to be stored, obtain it is described at least one wait storing and produce
The product data of product, using the product data as the data to be stored, the product data include at least insured process, reason
Pay for process and product price;Or,
The instruction data storage is received, when the instruction data storage carries the purchase bill of user, described in acquisition
The user data of user, using the user data as the data to be stored, the user data includes at least and has bought production
The name of an article claims, buys the amount of money, the purchase time limit.
In another embodiment, described to be based on the data to be stored, generate Data Identification, comprising:
Preset algorithm is obtained, the preset algorithm is at least eap-message digest MD5 algorithm;
Based on the preset algorithm, the data to be stored is calculated, generates the Data Identification.
In another embodiment, the method also includes:
If the data to be stored is user data, it is determined that the target user of the user data instruction;
When completing for the memory block to be added in the block chain, it is based on the data to be stored, is generated successfully
The successfully instruction is back to the terminal of the target user by instruction.
In another embodiment, described when completing for the memory block to be added in the block chain, it is based on institute
Data to be stored is stated, generates and successfully instructs, the successfully instruction is back to the terminal of the target user, comprising:
When completing for the memory block to be added in the block chain, default indicating template is obtained;
Based on the default indicating template, the data to be stored is arranged, generation is described successfully to be instructed;
The successfully instruction is back to the terminal of the target user of the user data instruction.
In another embodiment, the method also includes:
When receiving data to be modified, the data to be modified are based on, generate the mark to be modified;
According to the data to be modified and the mark to be modified, block to be modified is generated, the block to be modified is deposited
Storage is into the block chain.
In another embodiment, the method also includes:
When receiving data inquiry request, mark to be checked is extracted in the data inquiry request;
Based on the mark to be checked, target block is determined;
Data to be checked are extracted in the target block, and the data to be checked are returned into user.
Second aspect according to the present invention, provides a kind of data storage device based on block chain, which includes:
Receiving module, store instruction, obtains data to be stored for receiving data, and the data to be stored is at least product
One of data or user data;
Generation module generates Data Identification for being based on the data to be stored, the Data Identification be at least it is described to
The eap-message digest MD5 value of storing data;
Memory module will be described for generating to memory block according to the data to be stored and the Data Identification
It stores to memory block into block chain.
In another embodiment, the receiving module determines that at least one is waited for for receiving the instruction data storage
Product is stored, the product data of at least one product to be stored are obtained, using the product data as the number to be stored
According to the product data include at least insured process, Claims Resolution process and product price;Or, the instruction data storage is received,
When the instruction data storage carries the purchase bill of user, the user data of the user is obtained, by the user data
As the data to be stored, the user data, which includes at least, has bought name of product, the purchase amount of money, the purchase time limit.
In another embodiment, the generation module, comprising:
Acquisition submodule, for obtaining preset algorithm, the preset algorithm is at least eap-message digest MD5 algorithm;
Computational submodule calculates the data to be stored, generates the data for being based on the preset algorithm
Mark.
In another embodiment, described device further include:
First determining module, if being user data for the data to be stored, it is determined that the user data instruction
Target user;
Return module, for when complete the memory block is added in the block chain when, based on described wait store
Data are generated and are successfully instructed, and the successfully instruction is back to the terminal of the target user.
In another embodiment, the return module, comprising:
Acquisition submodule, for when completing for the memory block to be added in the block chain, obtaining default display
Template;
Submodule is arranged, for being based on the default indicating template, the data to be stored is arranged, described in generation
Success instructs;
Submodule is returned to, the terminal of the target user for the successfully instruction to be back to the user data instruction.
In another embodiment, the generation module, for being based on described to be modified when receiving data to be modified
Data generate the mark to be modified;
The memory module will for generating block to be modified according to the data to be modified and the mark to be modified
The block to be modified is stored into the block chain.
In another embodiment, described device further include:
Extraction module, for extracting mark to be checked in the data inquiry request when receiving data inquiry request
Know;
Second determining module determines target block for being based on the mark to be checked;
It obtains module and the data to be checked is returned into use for extracting data to be checked in the target block
Family.
The third aspect according to the present invention, provides a kind of equipment, including memory and processor, and the memory is stored with
The step of computer program, the processor realizes above-mentioned first aspect the method when executing the computer program.
Fourth aspect according to the present invention provides a kind of readable storage medium storing program for executing, is stored thereon with computer program, feature
It is, the computer program realizes method described in above-mentioned first aspect when being executed by processor the step of.
By above-mentioned technical proposal, a kind of date storage method based on block chain provided by the invention, device, equipment and
Readable storage medium storing program for executing, compared with the mode currently based on data database storing, the present invention according to the product data got with
And any data to be stored in user data, generate Data Identification, based on data to be stored and Data Identification generate to
Memory block, and will be added to memory block in block chain, so that the data such as product data and user data are based on area
Block chain is stored, and ensure that the transparency of number storage, data are not easy to be tampered, confidence level is higher.
The above description is only an overview of the technical scheme of the present invention, in order to better understand the technical means of the present invention,
And it can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can
It is clearer and more comprehensible, the followings are specific embodiments of the present invention.
Detailed description of the invention
By reading the following detailed description of the preferred embodiment, various other advantages and benefits are common for this field
Technical staff will become clear.The drawings are only for the purpose of illustrating a preferred embodiment, and is not considered as to the present invention
Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 shows a kind of date storage method flow diagram based on block chain provided in an embodiment of the present invention;
Fig. 2A shows a kind of date storage method flow diagram based on block chain provided in an embodiment of the present invention;
Fig. 2 B shows a kind of date storage method flow diagram based on block chain provided in an embodiment of the present invention;
Fig. 2 C shows a kind of date storage method flow diagram based on block chain provided in an embodiment of the present invention;
Fig. 3 A shows a kind of structural schematic diagram of data storage device based on block chain provided in an embodiment of the present invention;
Fig. 3 B shows a kind of structural schematic diagram of data storage device based on block chain provided in an embodiment of the present invention;
Fig. 3 C shows a kind of structural schematic diagram of data storage device based on block chain provided in an embodiment of the present invention;
Fig. 3 D shows a kind of structural schematic diagram of data storage device based on block chain provided in an embodiment of the present invention;
Fig. 3 E shows a kind of structural schematic diagram of data storage device based on block chain provided in an embodiment of the present invention.
Specific embodiment
Exemplary embodiments of the present disclosure are described in more detail below with reference to accompanying drawings.Although showing the disclosure in attached drawing
Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here
It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure
It is fully disclosed to those skilled in the art.
The embodiment of the invention provides a kind of date storage methods based on block chain, as shown in Figure 1, this method comprises:
101, instruction data storage is received, data to be stored is obtained, data to be stored is at least product data or number of users
One of according to.
Referring specifically to process shown in step 201 in following embodiments.
102, it is based on data to be stored, generates Data Identification, Data Identification is at least the eap-message digest MD5 of data to be stored
Value.
Referring specifically to process shown in step 202 in following embodiments.
103, it according to data to be stored and Data Identification, generates to memory block, will be stored to memory block to block
In chain.
Referring specifically to process shown in step 203 in following embodiments.
In another embodiment, instruction data storage is received, data to be stored is obtained, comprising:
Instruction data storage is received, at least one product to be stored is determined, obtains the product of at least one product to be stored
Data, using product data as data to be stored, product data include at least insured process, Claims Resolution process and product price;
Or,
Instruction data storage is received, when instruction data storage carries the purchase bill of user, obtains the number of users of user
According to using user data as data to be stored, user data, which includes at least, has bought name of product, the purchase amount of money, the purchase time limit.
In another embodiment, it is based on data to be stored, generates Data Identification, comprising:
Preset algorithm is obtained, preset algorithm is at least eap-message digest MD5 algorithm;
Based on preset algorithm, data to be stored is calculated, generates Data Identification.
In another embodiment, method further include:
If data to be stored is user data, it is determined that the target user of user data instruction;
When completing for memory block to be added in block chain, it is based on data to be stored, generates and successfully instructs, will successfully refer to
Enable the terminal for being back to target user.
In another embodiment, when completing for memory block to be added in block chain, it is based on data to be stored, is generated
Success instructs, and successfully instruction is back to the terminal of target user, comprising:
When completing for memory block to be added in block chain, default indicating template is obtained;
Based on default indicating template, data to be stored is arranged, generates and successfully instructs;
Successfully instruction is back to the terminal of the target user of user data instruction.
In another embodiment, method further include:
When receiving data to be modified, data to be modified are based on, mark to be modified is generated;
According to data to be modified and mark to be modified, block to be modified is generated, block to be modified is stored into block chain.
In another embodiment, method further include:
When receiving data inquiry request, mark to be checked is extracted in data inquiry request;
Based on mark to be checked, target block is determined;
Data to be checked are extracted in target block, and data to be checked are returned into user.
Date storage method provided in an embodiment of the present invention based on block chain, can according to the product data got with
And any data to be stored in user data, generate Data Identification, based on data to be stored and Data Identification generate to
Memory block, and will be added to memory block in block chain, so that the data such as product data and user data are based on area
Block chain is stored, and ensure that the transparency of number storage, data are not easy to be tampered, confidence level is higher.
The embodiment of the invention provides a kind of date storage method based on block chain, can achieve according to the production got
Any data to be stored in product data and user data generates Data Identification, and is based on data to be stored and data
Mark is generated to memory block, and will be added in block chain to memory block, so that the number such as product data and user data
According to storage it is transparent, it is not easy to be tampered, the higher purpose of confidence level, as shown in Figure 2 A, this method comprises:
201, instruction data storage is received, data to be stored is obtained, data to be stored is at least product data or number of users
One of according to.
In embodiments of the present invention, for an insurance institution, data storage operations in the insurance institution can be with
By data-storage system realize namely insurance institution in can carry data-storage system, and it is real based on data-storage system
Now to the storage of product data in insurance institution and user data etc..
It was recognized by the inventor that it is related to two kinds of data in insurance institution, a kind of insurance production that can be provided for insurance institution
The product data of product, for example, insured process, Claims Resolution process and product price that the product data of product A are product A;It is another
Kind is the user data that the user of insurance products is had purchased in insurance institution, for example, user B has purchased guarantor in insurance institution
Dangerous product, the user data of user B are to have bought name of product, the purchase amount of money and the purchase time limit, and specifically, user data can
For the data of contract form.Since current data-storage system is when storing the above-mentioned data referred to, usually directly store, such as
Which data of fruit change, and directly modify in data-storage system to data, so that sometimes user buys today
A certain insurance products, the product price shown in the product data of the insurance products is price 1, has spent a period of time, should
The product price shown in the product data of insurance products may become price 2, in this way, only having recorded this in data-storage system
The current product price of insurance products is price 2, and the product price that can't record the insurance products was once price 1, similarly
The variation of user data is also in this way, the variation for causing the data stored in data-storage system to occur is to have no idea to trace
, it is not easy to inquire data before, therefore, in embodiments of the present invention, when receiving instruction data storage, obtain
Data to be stored is taken, so as to the subsequent storage for carrying out data to be stored based on block chain, avoids storing in data-storage system
Data are arbitrarily modified and delete.
During practical application, data to be stored can be one of product data or user data.If to
Storing data is product data, then when detecting has new insurance products to be added in insurance institution, determination receives number
It according to store instruction, and determines at least one of mechanism product to be stored that currently newly takes a policy, reads each product to be stored
Data parameters, to get the product data of at least one product to be stored, the product data that will acquire be used as to
Storing data;If data to be stored is user data, a certain insurance products are bought in insurance institution when detecting user
When placing an order successfully, determination receives instruction data storage, obtains the purchase bill of user, has obtained user in the purchase bill
Purchase product has bought the user data of name of product, the purchase amount of money and the purchase time limit as the user, and then will acquire
The user data arrived is as data to be stored, so that candidate stores data to be stored.Wherein, the embodiment of the present invention is treated
Storing data is specially any data without specifically limiting.
202, preset algorithm is obtained, preset algorithm is based on, data to be stored is calculated, generates Data Identification.
In embodiments of the present invention, due to being stored with the data of magnanimity in data-storage system, in order to make subsequent carrying out
Data to be checked can be extracted when data query in the data of magnanimity, it, can be with before being stored to data to be stored
The Data Identification for being used for uniquely tagged data to be stored is generated for data to be stored, to treat storage number using the Data Identification
According to being marked, to obtain the data for needing to inquire based on the Data Identification subsequent.
Wherein, when generating Data Identification for data to be stored, available preset algorithm, and generated based on preset algorithm
The Data Identification of data to be stored.Specifically, preset algorithm can (MessageDigest Algorithm 5, message be plucked for MD5
Want algorithm) algorithm, the Data Identification obtained from can be MD5 value.And during practical application, if data to be stored is
Product data, then can also directly acquire product data instruction insurance products name of product, using the name of product as to
The Data Identification of storing data;If data to be stored is user data, the use of user data instruction can also be directly acquired
The account or name, are referred to as the Data Identification of data to be stored by the account or title at family.The embodiment of the present invention is to generation number
According to the mode of mark and the concrete form of Data Identification without limiting.
203, it according to data to be stored and Data Identification, generates to memory block, block will be added to memory block
In chain.
In embodiments of the present invention, when getting data to be stored and generate its corresponding data according to data to be stored
After mark, data to be stored can be stored.Wherein, in order to avoid staff or criminal store data
Data in system are distorted, and when storing to data to be stored, realize specific storing process based on block chain.
Block chain is made of multiple blocks, and multiple blocks are generated using cryptography method, and between multiple blocks
With relevance, therefore, it is impossible to be practised fraud by the data distorted in block, it can be ensured that the peace of the data on any block
Full property and open and clear property.When being stored based on block chain to data to be stored, by data to be stored and can obtain
The Data Identification got is used as the data of preparation storage in the block, and the block head for calculating the block for currently needing to generate is special
Value indicative by the storage corresponding with data to be stored and Data Identification of block head characteristic value, and then is generated to memory block.Work as generation
It after memory block, will be added to memory block in block chain, completion stores data to be stored into block chain.
It should be noted that in order to guarantee the data stored in block chain be it is open and transparent, data-storage system with
And it is stored with identical block chain in the terminal held of user, storage number is treated when the block in data-storage system completes
According to storage when, the block that block in the terminal of user is synchronized to memory block that will be generated is needed, so that should to memory block
Block is also added on the block chain in the terminal of user, to guarantee the data and use that store in the block chain of data-storage system
The data stored in the block chain of the terminal at family are consistent, and are avoided that the nonsynchronous phenomenon of data occurs, are caused user and insurance
Misunderstanding between mechanism.
During practical application, if data to be stored is user data, for the target for using user data to indicate
User can know the storage for having been completed data to be stored, can after completing to store data to be stored into block chain
Think that target user generates successfully to instruct, and this is successfully instructed to the terminal for returning to target user, so that target user is known
Currently have been completed the storage of data to be stored.Wherein, generate successfully instruct when, it is contemplated that the terminal that different user uses
Type be different, be compatible with when being shown in the terminal of user to allow successfully to instruct by terminal, to build vision
On good result, the corresponding default indicating template of the terminal type can be obtained according to the terminal type of target terminal user,
Indicating template is preset based on this, data to be stored is arranged, and then generates and successfully instructs, and this is successfully instructed and is back to
The terminal of target user.
It should be noted that due to also storing block chain in the terminal of target user, and when data to be stored storage is arrived
After the block chain of data-storage system, the block chain in the terminal of the target user has also carried out the synchronization of data to be stored, because
This, in order to simplify the process of data storage, can not also generate and successfully instruct after completing the storage of data to be stored, by
Target user is voluntarily checked to know whether data to be stored stores completion in block chain.
During practical application, since the Major Function of data-storage system is the storage for carrying out data, and rear
If the data needs in continuous data-storage system are modified, data-storage system is also to need to provide data modification function
, referring specifically to Fig. 2 B.
204, when receiving data to be modified, data to be modified is based on, mark to be modified is generated.
In embodiments of the present invention, when receiving data to be modified, data to be modified is based on, mark to be modified is generated.
Wherein, data to be modified can be the data modified for product data, or can also be to modify for user data
Data.Specifically, data to be modified are based on, are generated in the method and above-mentioned steps 202 of mark to be modified based on number to be stored
It is consistent according to the process for generating Data Identification, it is no longer repeated herein.
205, according to data to be modified and mark to be modified, block to be modified is generated, block to be modified is added to block
In chain.
In embodiments of the present invention, it was recognized by the inventor that if being directly based upon data to be modified in data-storage system
Stored data are modified, then the legacy data stored before will be capped, namely be substituted by data to be modified, this
Sample, if just can not be inquired in subsequent traced to legacy data, therefore, in order to avoid legacy data is due to by data to be modified
It covers and loses, when being stored data to be modified, data to be modified and mark to be modified can be based on, generate new area
Block, namely block to be modified is generated, and newly-generated block to be modified is added in block chain and is stored, will not only
Legacy data before is covered, it is ensured that by the storage of data to be modified, so that in the past and stored to data and store later
Data in system have mark that can follow.
Wherein, block to be modified is generated according to data to be modified and mark to be modified, and block to be modified is added to area
It is generated in process in block chain and above-mentioned steps 203 to memory block and the process one that will be added to memory block in block chain
It causes, is no longer repeated herein.It should be noted that in the block chain being added to block to be modified in data-storage system
Afterwards, it is still necessary to be synchronized to block to be modified in the block chain of the held terminal of user.
During practical application, after completing data to be stored and storing to data-storage system, it is contemplated that subsequent
User may need to inquire product data or user data, and data-storage system can also provide data query service,
Referring specifically to following Fig. 2 C.
206, when receiving data inquiry request, mark to be checked is extracted in data inquiry request.
In embodiments of the present invention, due to the variation with the time, the product data of insurance products are can be changed,
And be also different for data such as the price of insurance products of different age group, in order to guarantee product data more transparence,
Data-storage system can not only provide the inquiry of user data, can also provide the inquiry of product data.In this way, data query
It needs to carry mark to be checked in request, and when receiving data inquiry request, is extracted in data inquiry request to be checked
Mark, to obtain data to be checked based on mark to be checked subsequent.
207, it is based on mark to be checked, target block is determined, data to be checked is extracted in target block, by number to be checked
According to returning to user.
In embodiments of the present invention, due in data-storage system storing data using block chain store,
When obtaining data to be checked, first it can determine which block is data to be checked be stored in based on mark to be checked, by the area
Block is as target block;Then, data to be checked are extracted in the target block, and the data to be checked extracted are returned to
The terminal that user is held.Wherein, the data to be checked got can be product data, can also be user data, and the present invention is implemented
Example is to the data type of data to be checked without specifically limiting.
Date storage method provided in an embodiment of the present invention based on block chain, can according to the product data got with
And any data to be stored in user data, generate Data Identification, based on data to be stored and Data Identification generate to
Memory block, and will be added to memory block in block chain, so that the data such as product data and user data are based on area
Block chain is stored, and ensure that the transparency of number storage, data are not easy to be tampered, confidence level is higher.
Further, the specific implementation as Fig. 1 method, the embodiment of the invention provides a kind of data based on block chain
Storage device, as shown in Figure 3A, device include: receiving module 301, generation module 302 and memory module 303.
The receiving module 301, store instruction, obtains data to be stored for receiving data, and data to be stored, which is at least, to be produced
One of product data or user data;
The generation module 302 generates Data Identification, Data Identification is at least number to be stored for being based on data to be stored
According to eap-message digest MD5 value;
The memory module 303 will be wait store for generating to memory block according to data to be stored and Data Identification
Block is stored into block chain.
In specific application scenarios, the receiving module 301, store instruction, determines that at least one is waited for for receiving data
Product is stored, obtains the product data of at least one product to be stored, using product data as data to be stored, product data are extremely
It less include insured process, Claims Resolution process and product price;Or, receiving instruction data storage, used when instruction data storage carries
When the purchase bill at family, the user data of user is obtained, using user data as data to be stored, user data is included at least
Buy name of product, the purchase amount of money, the purchase time limit.
In specific application scenarios, as shown in Figure 3B, the generation module 302, including acquisition submodule 3021 and calculating
Submodule 3022.
The acquisition submodule 3021, for obtaining preset algorithm, preset algorithm is at least eap-message digest MD5 algorithm;
The computational submodule 3022 calculates data to be stored, generates Data Identification for being based on preset algorithm.
In specific application scenarios, as shown in Figure 3 C, the device further include: the first determining module 304 and return module
305。
First determining module 304, if being user data for data to be stored, it is determined that the mesh of user data instruction
Mark user;
The return module 305, it is raw for when completing for memory block to be added in block chain, being based on data to be stored
At successfully instructing, successfully instruction is back to the terminal of target user.
In specific application scenarios, as shown in Figure 3D, the return module 305, comprising: acquisition submodule 3051 arranges
Submodule 3052 and return submodule 3053.
The acquisition submodule 3051, for when completing for memory block to be added in block chain, obtaining default display mould
Plate;
The arrangement submodule 3052, for being arranged to data to be stored, generating and successfully refer to based on default indicating template
It enables;
The return submodule 3053, for will successfully instruct the terminal for being back to the target user of user data instruction.
In specific application scenarios, the generation module 302, for being based on to be modified when receiving data to be modified
Data generate mark to be modified;
The memory module 303 will be to be modified for generating block to be modified according to data to be modified and mark to be modified
Block is stored into block chain.
In specific application scenarios, as shown in FIGURE 3 E, the device further include: extraction module 306, the second determining module
307 and obtain module 308.
The extraction module 306, for extracting mark to be checked in data inquiry request when receiving data inquiry request
Know;
Second determining module 307 determines target block for being based on mark to be checked;
Data to be checked are returned to user for extracting data to be checked in target block by the acquisition module 308.
It should be noted that each function involved by a kind of data storage device based on block chain provided in an embodiment of the present invention
Other corresponding descriptions of energy unit, can describe, details are not described herein with reference to corresponding in Fig. 1 and Fig. 2A.
Based on the above-mentioned method as shown in Fig. 1 and Fig. 2A to Fig. 2 C, correspondingly, the embodiment of the invention also provides a kind of storages
Equipment is stored thereon with computer program, which realizes above-mentioned if Fig. 1 and Fig. 2A is to shown in fig. 2 C when being executed by processor
Date storage method based on block chain.
Based on the embodiment of the above-mentioned method as shown in Fig. 1 and Fig. 2A to Fig. 2 C and the virtual bench as shown in Fig. 3 A to Fig. 3 E,
To achieve the goals above, the entity apparatus for the data storage based on block chain that the embodiment of the invention also provides a kind of, the reality
Body device includes storage equipment and processor;The storage equipment, for storing computer program;The processor, for holding
The row computer program is above-mentioned such as Fig. 1 and Fig. 2A to the date storage method shown in fig. 2 C based on block chain to realize.
It, can be according to any in the product data and user data got by applying the technical scheme of the present invention
Data to be stored, generate Data Identification, generated based on data to be stored and Data Identification to memory block, and will be wait store
Block is added in block chain, so that the data such as product data and user data are stored based on block chain, is guaranteed
The transparency of several storages, data are not easy to be tampered, and confidence level is higher.
Through the above description of the embodiments, those skilled in the art can be understood that the application can lead to
Hardware realization is crossed, the mode of necessary general hardware platform can also be added to realize by software.Based on this understanding, this Shen
Technical solution please can be embodied in the form of software products, which can store in a non-volatile memories
In medium (can be CD-ROM, USB flash disk, mobile hard disk etc.), including some instructions are used so that a computer equipment (can be
Personal computer, server or network equipment etc.) execute method described in each implement scene of the application.
It will be appreciated by those skilled in the art that the accompanying drawings are only schematic diagrams of a preferred implementation scenario, module in attached drawing or
Process is not necessarily implemented necessary to the application.
It will be appreciated by those skilled in the art that the module in device in implement scene can be described according to implement scene into
Row is distributed in the device of implement scene, can also be carried out corresponding change and is located at the one or more dresses for being different from this implement scene
In setting.The module of above-mentioned implement scene can be merged into a module, can also be further split into multiple submodule.
Above-mentioned the application serial number is for illustration only, does not represent the superiority and inferiority of implement scene.
Disclosed above is only several specific implementation scenes of the application, and still, the application is not limited to this, Ren Heben
What the technical staff in field can think variation should all fall into the protection scope of the application.
Claims (10)
1. a kind of date storage method based on block chain characterized by comprising
Instruction data storage is received, data to be stored is obtained, the data to be stored is at least in product data or user data
One kind;
Based on the data to be stored, Data Identification is generated, the message that the Data Identification is at least the data to be stored is plucked
Want MD5 value;
According to the data to be stored and the Data Identification, generate to memory block, by it is described to memory block store to
In block chain.
2. data to be stored is obtained the method according to claim 1, wherein the reception instruction data storage,
Include:
The instruction data storage is received, determines at least one product to be stored, obtains at least one product to be stored
Product data, using the product data as the data to be stored, the product data include at least insured process, Claims Resolution stream
Journey and product price;Or,
The instruction data storage is received, when the instruction data storage carries the purchase bill of user, obtains the user
User data, using the user data as the data to be stored, the user data includes at least and has bought ProductName
Claim, the purchase amount of money, the purchase time limit.
3. Data Identification is generated the method according to claim 1, wherein described be based on the data to be stored,
Include:
Preset algorithm is obtained, the preset algorithm is at least eap-message digest MD5 algorithm;
Based on the preset algorithm, the data to be stored is calculated, generates the Data Identification.
4. the method according to claim 1, wherein the method also includes:
If the data to be stored is user data, it is determined that the target user of the user data instruction;
When completing for the memory block to be added in the block chain, it is based on the data to be stored, generates and successfully instructs,
The successfully instruction is back to the terminal of the target user.
5. according to the method described in claim 4, it is characterized in that, described when the memory block is added to the area by completion
When in block chain, it is based on the data to be stored, generates and successfully instructs, the successfully instruction is back to the end of the target user
End, comprising:
When completing for the memory block to be added in the block chain, default indicating template is obtained;
Based on the default indicating template, the data to be stored is arranged, generation is described successfully to be instructed;
The successfully instruction is back to the terminal of the target user of the user data instruction.
6. the method according to claim 1, wherein the method also includes:
When receiving data to be modified, the data to be modified are based on, generate the mark to be modified;
According to the data to be modified and the mark to be modified, generate block to be modified, by the block to be modified store to
In the block chain.
7. the method according to claim 1, wherein the method also includes:
When receiving data inquiry request, mark to be checked is extracted in the data inquiry request;
Based on the mark to be checked, target block is determined;
Data to be checked are extracted in the target block, and the data to be checked are returned into user.
8. a kind of data storage device based on block chain characterized by comprising
Receiving module, store instruction, obtains data to be stored for receiving data, and the data to be stored is at least product data
Or one of user data;
Generation module generates Data Identification, the Data Identification is at least described wait store for being based on the data to be stored
The eap-message digest MD5 value of data;
Memory module, for generating to memory block, by described wait deposit according to the data to be stored and the Data Identification
Storage area block is stored into block chain.
9. a kind of equipment, including memory and processor, the memory are stored with computer program, which is characterized in that described
The step of processor realizes any one of claims 1 to 7 the method when executing the computer program.
10. a kind of readable storage medium storing program for executing, is stored thereon with computer program, which is characterized in that the computer program is processed
The step of device realizes method described in any one of claims 1 to 7 when executing.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811362070.6A CN109741192A (en) | 2018-11-15 | 2018-11-15 | Date storage method, device, equipment and readable storage medium storing program for executing based on block chain |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811362070.6A CN109741192A (en) | 2018-11-15 | 2018-11-15 | Date storage method, device, equipment and readable storage medium storing program for executing based on block chain |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109741192A true CN109741192A (en) | 2019-05-10 |
Family
ID=66355727
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811362070.6A Pending CN109741192A (en) | 2018-11-15 | 2018-11-15 | Date storage method, device, equipment and readable storage medium storing program for executing based on block chain |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109741192A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110309196A (en) * | 2019-05-22 | 2019-10-08 | 深圳壹账通智能科技有限公司 | Block chain data storage and query method, apparatus, equipment and storage medium |
CN110502557A (en) * | 2019-07-23 | 2019-11-26 | 平安科技(深圳)有限公司 | Data lead-in method, device, computer equipment and storage medium |
CN111125030A (en) * | 2019-12-18 | 2020-05-08 | 北京数衍科技有限公司 | Data storage method and device and server |
CN111310240A (en) * | 2020-05-06 | 2020-06-19 | 国网电子商务有限公司 | Financial data tracing method and device based on block chain and identification technology |
CN113885795A (en) * | 2021-09-23 | 2022-01-04 | 惠州Tcl移动通信有限公司 | Data storage method and device, terminal equipment and storage medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6075843A (en) * | 1996-12-05 | 2000-06-13 | Intervoice Limited Partnership | User device-independent transaction model |
CN106997525A (en) * | 2017-04-10 | 2017-08-01 | 山大地纬软件股份有限公司 | Digital license system based on block chain technology |
CN107203344A (en) * | 2017-05-31 | 2017-09-26 | 郑州云海信息技术有限公司 | A kind of date storage method and data-storage system |
CN107273410A (en) * | 2017-05-03 | 2017-10-20 | 上海点融信息科技有限责任公司 | Distributed storage based on block chain |
CN107992492A (en) * | 2016-10-26 | 2018-05-04 | 中国移动通信有限公司研究院 | A kind of storage method of data block, read method, its device and block chain |
CN108234443A (en) * | 2017-10-26 | 2018-06-29 | 招商银行股份有限公司 | Contracting method, system and computer readable storage medium |
CN108734028A (en) * | 2018-05-24 | 2018-11-02 | 中国联合网络通信集团有限公司 | Data managing method, block chain node based on block chain and storage medium |
-
2018
- 2018-11-15 CN CN201811362070.6A patent/CN109741192A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6075843A (en) * | 1996-12-05 | 2000-06-13 | Intervoice Limited Partnership | User device-independent transaction model |
CN107992492A (en) * | 2016-10-26 | 2018-05-04 | 中国移动通信有限公司研究院 | A kind of storage method of data block, read method, its device and block chain |
CN106997525A (en) * | 2017-04-10 | 2017-08-01 | 山大地纬软件股份有限公司 | Digital license system based on block chain technology |
CN107273410A (en) * | 2017-05-03 | 2017-10-20 | 上海点融信息科技有限责任公司 | Distributed storage based on block chain |
CN107203344A (en) * | 2017-05-31 | 2017-09-26 | 郑州云海信息技术有限公司 | A kind of date storage method and data-storage system |
CN108234443A (en) * | 2017-10-26 | 2018-06-29 | 招商银行股份有限公司 | Contracting method, system and computer readable storage medium |
CN108734028A (en) * | 2018-05-24 | 2018-11-02 | 中国联合网络通信集团有限公司 | Data managing method, block chain node based on block chain and storage medium |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110309196A (en) * | 2019-05-22 | 2019-10-08 | 深圳壹账通智能科技有限公司 | Block chain data storage and query method, apparatus, equipment and storage medium |
CN110502557A (en) * | 2019-07-23 | 2019-11-26 | 平安科技(深圳)有限公司 | Data lead-in method, device, computer equipment and storage medium |
WO2021012910A1 (en) * | 2019-07-23 | 2021-01-28 | 平安科技(深圳)有限公司 | Data import method and apparatus, and computer device and storage medium |
CN111125030A (en) * | 2019-12-18 | 2020-05-08 | 北京数衍科技有限公司 | Data storage method and device and server |
CN111125030B (en) * | 2019-12-18 | 2023-09-22 | 北京数衍科技有限公司 | Data storage method, device and server |
CN111310240A (en) * | 2020-05-06 | 2020-06-19 | 国网电子商务有限公司 | Financial data tracing method and device based on block chain and identification technology |
CN113885795A (en) * | 2021-09-23 | 2022-01-04 | 惠州Tcl移动通信有限公司 | Data storage method and device, terminal equipment and storage medium |
CN113885795B (en) * | 2021-09-23 | 2024-01-19 | 惠州Tcl移动通信有限公司 | Data storage method, device, terminal equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109741192A (en) | Date storage method, device, equipment and readable storage medium storing program for executing based on block chain | |
CN109067541B (en) | Data verification method and device based on block chain and electronic equipment | |
US20220198447A1 (en) | Target object management method, smart contract, and management device | |
JP7138233B2 (en) | A self-executing security token that enforces smart contract-based compliance rules referencing a global registry of smart contract-based investors | |
US20200111088A1 (en) | Systems and methods for securing digital gift cards with a public ledger | |
US10664923B2 (en) | System and method for establishing a public ledger for gift card transactions | |
WO2018157816A1 (en) | Augmented reality-based offline interaction method and device | |
CN110175849B (en) | Collecting method, device, equipment, server and system | |
CN109559257A (en) | Contract generation method, device, equipment and readable storage medium storing program for executing based on block chain | |
CN108921692A (en) | A kind of multichain block catenary system with block issue mechanism | |
CN101676954A (en) | Apparatus and method for manipulating images | |
US20200082389A1 (en) | Payment system for augmented, mixed, or virtual reality platforms integrated with cryptocurrency wallet | |
CN106779975A (en) | The tamper resistant method of the reputation information based on block chain | |
KR20200062640A (en) | Method for managing artwork transaction inforamtion based on blockchain and node apparatus of blockchain | |
CN107644372A (en) | A kind of processing method, system and the terminal of refund of leaving a country | |
CN109740129A (en) | Report form generation method, device, equipment and readable storage medium storing program for executing based on block chain | |
CN110728520B (en) | Processing method and device for refusal payment application and server | |
CN111967970B (en) | Bank product recommendation method and device based on spark platform | |
CN116524088A (en) | Jewelry virtual try-on method, jewelry virtual try-on device, computer equipment and storage medium | |
US20220343320A1 (en) | Managing currency-based transactions backed by the intrinsic value of physical objects | |
CN109801131A (en) | Credit system data processing method and credit system data processing system | |
CN108564354A (en) | settlement method, service platform and server | |
CN113240188A (en) | Filling sheet processing method and device based on augmented reality AR | |
CN110910211B (en) | Credit updating method and device | |
CN113095821A (en) | Method and device for interaction of property rights |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
REG | Reference to a national code |
Ref country code: HK Ref legal event code: DE Ref document number: 40000882 Country of ref document: HK |
|
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |