CN110334536A - Data save method, device and computer equipment based on block chain - Google Patents
Data save method, device and computer equipment based on block chain Download PDFInfo
- Publication number
- CN110334536A CN110334536A CN201910463894.0A CN201910463894A CN110334536A CN 110334536 A CN110334536 A CN 110334536A CN 201910463894 A CN201910463894 A CN 201910463894A CN 110334536 A CN110334536 A CN 110334536A
- Authority
- CN
- China
- Prior art keywords
- data
- block chain
- feedback information
- specified
- preset
- 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 43
- 238000012550 audit Methods 0.000 claims abstract description 114
- 238000004321 preservation Methods 0.000 claims abstract description 89
- 238000003860 storage Methods 0.000 claims abstract description 11
- 230000004048 modification Effects 0.000 claims description 48
- 238000012986 modification Methods 0.000 claims description 48
- 230000007246 mechanism Effects 0.000 claims description 44
- 238000004590 computer program Methods 0.000 claims description 14
- 238000012546 transfer Methods 0.000 claims description 8
- 238000013500 data storage Methods 0.000 claims description 5
- 230000005540 biological transmission Effects 0.000 claims description 4
- 230000008569 process Effects 0.000 description 11
- 238000013475 authorization Methods 0.000 description 6
- 238000012795 verification Methods 0.000 description 6
- 238000010586 diagram Methods 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 4
- 238000013461 design Methods 0.000 description 3
- 230000008901 benefit Effects 0.000 description 2
- 238000005538 encapsulation Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 230000006399 behavior Effects 0.000 description 1
- 238000000151 deposition Methods 0.000 description 1
- 230000002708 enhancing effect Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
- 230000009466 transformation Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/62—Protecting access to data via a platform, e.g. using keys or access control rules
- G06F21/6218—Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
- G06F21/6227—Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database where protection concerns the structure of data, e.g. records, types, queries
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Bioethics (AREA)
- General Health & Medical Sciences (AREA)
- Computer Hardware Design (AREA)
- Health & Medical Sciences (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Databases & Information Systems (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Storage Device Security (AREA)
Abstract
This application discloses a kind of data save method based on block chain, device, computer equipment and storage mediums, instruction is saved to the data of specified data the described method includes: receiving, wherein the data save the type that instruction describes specified data, and it is a block chain node in the block chain network built in advance that data, which save terminal,;Original data pattern corresponding with the type of specified data is transferred from preset multiple data templates;Preprepared data are inserted in the original data pattern, primary data is obtained;Primary data is sent to the block chain node with audit permission;The feedback information with the block chain node of audit permission is received, and judges whether the feedback information meets preset data preservation condition;If the feedback information meets preset data preservation condition, the primary data is recorded into the block chain network.To solve the problems, such as that Information Security is poor, the direct usage degree of data is poor simultaneously.
Description
Technical field
This application involves computer field is arrived, especially relate to a kind of data save method based on block chain, device,
Computer equipment and storage medium.
Background technique
In current production and living, it is often necessary to call data, whether the data that can be called true, can not and know, call
Data format whether be suitable for current environment, can not and know, thus occur data reliability it is low, can it is poor with degree (need into
Further format transformation of row etc.) the problems such as.Especially in the application scenarios for requiring degree high data validity, such as loan core batch
Etc. in scenes, the prior art is usually that corresponding data is called from database, and the data of calling are only presented in single form
Called side does not adapt to different calling demands, if while the corresponding data in database stealthily distorted, will lead to called side
Do the conclusion to make mistake.Therefore the prior art can not solve that above-mentioned Information Security is poor while direct usage degree difference of data etc.
Problem.
Summary of the invention
The main purpose of the application be provide a kind of data save method based on block chain, device, computer equipment and
Storage medium, it is intended to solve the problems, such as that Information Security is poor, the direct usage degree of data is poor simultaneously.
In order to achieve the above-mentioned object of the invention, the application proposes a kind of data save method based on block chain, is applied to number
According to preservation terminal, comprising:
It receives and instruction is saved to the data of specified data, wherein the data save the class that instruction describes specified data
Type, it is a block chain node in the block chain network built in advance that the data, which save terminal,;
Original data pattern corresponding with the type of the specified data is transferred from preset multiple data templates;
Preprepared data are inserted in the original data pattern, primary data is obtained;
The primary data is sent to the block chain node with audit permission;
The feedback information of the block chain node with audit permission is received, and judges whether the feedback information meets
Preset data preservation condition;
If the feedback information meets preset data preservation condition, the primary data is recorded into the block chain
Network.
Further, the original data pattern is made of data framework template and at least one data subtemplate, described
The step of original data pattern corresponding with the type of the specified data is transferred from preset multiple data templates, comprising:
It is obtained preset according to the type of the specified data according to the corresponding relationship of preset data type and template
Multiple data framework templates and multiple data subtemplates;
Data framework template and data subtemplate that the data save terminal selection are obtained, and the data are saved eventually
The data framework template and data subtemplate for holding selection are combined into the original data pattern;
Transfer the original data pattern.
Further, the block chain network includes designated blocks chain node, described to insert preprepared data
In the original data pattern, the step of obtaining primary data, comprising:
The specific data sent from designated blocks chain node is received, wherein the particular data packet includes the identity of special object
Information, education experience or the information for whether belonging to blacklist;
The specific data is inserted in the original data pattern, primary data is obtained.
Further, the block chain network has the area of audit permission using common recognition mechanism is specified described in the reception
The feedback information of block chain node, and the step of whether feedback information meets preset data preservation condition judged, comprising:
The feedback information that the multiple block chain nodes of being commissioned selected are thrown based on the specified common recognition mechanism is received, wherein institute
Stating block chain node of being commissioned has audit permission, and the feedback information passes through including audit or the audit fails;
The quantity for the feedback information that statistics audit passes through, and judge whether the quantity of the feedback information audited and passed through is big
In preset amount threshold;
If the quantity for auditing the feedback information passed through is greater than preset amount threshold, decision-feedback information meets pre-
If data preservation condition.
Further, described receive saves instruction to the data of specified data, describes wherein the data save instruction
The type of specified data, the data save the step of terminal is a block chain node in the block chain network built in advance
Before, comprising:
Using appointed language the data save terminal in create block chain class, by the block chain class instantiation to
Wound generation block is established, wherein the cryptographic Hash of previous block is denoted as 0 in the wound generation block;
Based on the wound generation block, other blocks are generated, wherein other described blocks include the cryptographic Hash of previous block;
Using default terminal as block chain node, to establish the block chain network.
Further, if the feedback information meets preset data preservation condition, the primary data is remembered
Described in typing the step of block chain network after, comprising:
It receives the modification to the specified data to instruct, wherein modification instruction is accompanied with replacement subdata;
It is instructed according to the modification, the subdata to be modified in the specified data is replaced with into the replacement subnumber
According to thus data after being modified;
Data after the modification are sent to the block chain node with audit permission;
The msu message to data after the modification of the block chain node with audit permission is received, and judges institute
State whether msu message meets preset data preservation condition;
If the msu message meets preset data preservation condition, the block chain is added in data after the modification
Network.
Further, if the feedback information meets preset data preservation condition, the primary data is remembered
Described in typing the step of block chain network after, comprising:
It receives the specific operation based on the specific data and examines instruction;
The specific data is transferred from the block chain, and judges whether the specific data meets preset specific behaviour
Make accrediting criterion;
If the specific data meets preset specific operation accrediting criterion, specific operation is executed.
The application provides a kind of data storage apparatus based on block chain, is applied to data and saves terminal, comprising:
Data save instruction receiving unit, for receiving the data preservation instruction to specified data, wherein the data are protected
The type that instruction describes specified data is deposited, it is a block in the block chain network built in advance that the data, which save terminal,
Chain node;
Original data pattern transfers unit, for transferring the class with the specified data from preset multiple data templates
The corresponding original data pattern of type;
Primary data acquiring unit obtains just for inserting preprepared data in the original data pattern
Beginning data;
Primary data transmission unit, for the primary data to be sent to the block chain node with audit permission;
Data preservation condition judging unit, for receiving the feedback information of the block chain node with audit permission,
And judge whether the feedback information meets preset data preservation condition;
Data saving unit, if meeting preset data preservation condition for the feedback information, by the initial number
According to being recorded into the block chain network.
The application provides a kind of computer equipment, including memory and processor, and the memory is stored with computer journey
The step of sequence, the processor realizes any of the above-described the method when executing the computer program.
The application provides a kind of computer readable storage medium, is stored thereon with computer program, the computer program
The step of method described in any of the above embodiments is realized when being executed by processor.
The data save method based on block chain, device, computer equipment and the storage medium of the application is received to specified
The data of data save instruction;Preprepared data are inserted in original data pattern, primary data is obtained;It will be described first
Beginning data are sent to the block chain node with audit permission;Receive the feedback letter of the block chain node with audit permission
Breath;If the feedback information meets preset data preservation condition, the primary data is recorded into the block chain network.
To solve the problems, such as that Information Security is poor, the direct usage degree of data is poor simultaneously.
Detailed description of the invention
Fig. 1 is the flow diagram of the data save method based on block chain of one embodiment of the application;
Fig. 2 is the structural schematic block diagram of the data storage apparatus based on block chain of one embodiment of the application;
Fig. 3 is the structural schematic block diagram of the computer equipment of one embodiment of the application.
The embodiments will be further described with reference to the accompanying drawings for realization, functional characteristics and the advantage of the application purpose.
Specific embodiment
It is with reference to the accompanying drawings and embodiments, right in order to which the objects, technical solutions and advantages of the application are more clearly understood
The application is further elaborated.It should be appreciated that specific embodiment described herein is only used to explain the application, not
For limiting the application.
Referring to Fig.1, the embodiment of the present application provides a kind of data save method based on block chain, is applied to data and saves eventually
End, comprising:
S1, reception save instruction to the data of specified data, wherein the data, which save instruction, describes specified data
Type, it is a block chain node in the block chain network built in advance that the data, which save terminal,;
S2, original data pattern corresponding with the type of the specified data is transferred from preset multiple data templates;
S3, preprepared data are inserted in the original data pattern, obtains primary data;
S4, the primary data is sent to the block chain node with audit permission;
There is the feedback information of the block chain node of audit permission described in S5, reception, and whether judge the feedback information
Meet preset data preservation condition;
If S6, the feedback information meet preset data preservation condition, the primary data is recorded into the area
Block chain network.
It as described in above-mentioned steps S1, receives and instruction is saved to the data of specified data, wherein the data save instruction note
The type of specified data is carried, it is a block chain node in the block chain network built in advance that the data, which save terminal,.
This middle finger fixed number evidence can be arbitrary data, such as virtual coin transaction, creation data, commercial data, finance data, loan examination & approval number
According to data such as, air control data.The data save instruction and refer to that the specified data are recorded in the block chain by instruction
Instruction.The block chain network built in advance can be publicly-owned chain, alliance's chain or privately owned chain, preferably alliance's chain.Block chain node
It may include the terminal in any terminal, such as each bank.The common recognition mechanism of the block chain network can be any common recognition
Mechanism, such as proof of work mechanism, equity prove mechanism, specified common recognition mechanism (DPOS) etc., it is preferred to use share warrant
Bright common recognition mechanism.Wherein, the type of the specified data can be the type of any way classification, for example, air control data, life
Data, commercial data etc. are produced, it is, of course, also possible to include the data type that any different classifications mode is divided into.Different types of finger
Fixed number is different according to the data format of use.
As described in above-mentioned steps S2, transferred from preset multiple data templates corresponding with the type of the specified data
Original data pattern.Since the data format that different types of specified data use is different, by from preset multiple numbers
According to original data pattern corresponding with the type of the specified data is transferred in template, accurate data lattice can be obtained early
Formula improves the speed for forming data, eliminates the step of forming data of starting from scratch.Further, the original data pattern
It is made of data framework template and at least one data subtemplate, thus the separate type number that can be further organized using editable
According to characteristic, reach higher efficiency generation more have accurate data.
As described in above-mentioned steps S3, preprepared data are inserted in the original data pattern, initial number is obtained
According to.From the foregoing it will be appreciated that original data pattern is that specific aim generates, therefore preprepared data are and original data pattern
Match, preprepared data are accordingly inserted in the original data pattern, primary data can be obtained.
As described in above-mentioned steps S4, the primary data is sent to the block chain node with audit permission.According to pre-
The difference first arranged has the block chain node of audit permission also different.Such as when the common recognition mechanism using share authorisation verification
When, the block chain node with audit permission is to throw the block chain node of being commissioned selected by all block chain nodes.This
A little block chain nodes with audit permission audit the primary data, and then determine that can the primary data be added the area
Block chain network.
As described in above-mentioned steps S5, the feedback information of the block chain node with audit permission is received, and judges institute
State whether feedback information meets preset data preservation condition.The feedback information, which can be, any form of can react initial
Whether data audit the information passed through.For example, the feedback information passes through including audit or the audit fails.Judge described anti-
The process whether feedforward information meets preset data preservation condition includes: to judge that the quantity of feedback information passed through of auditing is
It is no to be greater than preset amount threshold;If the quantity for auditing the feedback information passed through is greater than preset amount threshold, determine
Feedback information meets preset data preservation condition.Wherein preset amount threshold is, for example, the block with audit permission
The half of chain number of nodes adds one.
As described in above-mentioned steps S6, if the feedback information meets preset data preservation condition, by the initial number
According to being recorded into the block chain network.If the feedback information meets preset data preservation condition, show the primary data
It is correctly, to allow that block chain is added.Accordingly, the primary data is recorded into the block chain network.
In one embodiment, the original data pattern is by data framework template and at least one data subtemplate structure
At described the step of transferring original data pattern corresponding with the type of the specified data from preset multiple data templates
S2, comprising:
S201, it is obtained pre- according to the type of the specified data according to the corresponding relationship of preset data type and template
If multiple data framework templates and multiple data subtemplates;
S202, the data framework template and data subtemplate for obtaining data preservation terminal selection, and the data are saved
The data framework template and data subtemplate of terminal selection are combined into the original data pattern;
S203, the original data pattern is transferred.
As described above, realize transferred from preset multiple data templates it is corresponding with the type of the specified data just
Beginning data template.The original data pattern that present embodiment uses is by data framework template and at least one data subtemplate
It constitutes, so that data can be formed in the way of the preset template of combination, keeps the generation of data more quick, and can be directed to
Generate suitable data to property.Since the specific requirement that different data needs is different, format, layout (frame) of data etc.
Everyway is not quite similar.By the way that data are decomposed into frame and detail section, then framework template pointedly it has been pre-designed
It only need to be from existing framework template and subtemplate when needing the template of specified data with subtemplate (detail section template)
Selection, recombinant are got up, and the original data pattern can be formed.Wherein when specified data are that specific operation examines data,
Data subtemplate is, for example, guaranty subtemplate (including the relevant field of guaranty, including guaranty name field, valuation word
Section, mortgage history field etc.).
In one embodiment, the block chain network includes designated blocks chain node, it is described will be preprepared
Data are inserted in the original data pattern, and the step S3 of primary data is obtained, comprising:
The specific data that S301, reception are sent from designated blocks chain node, wherein the particular data packet includes special object
Identity information, education experience or whether belong to the information of blacklist;
S302, the specific data is inserted in the original data pattern, obtains primary data.
Preprepared data are inserted in the original data pattern as described above, realizing, obtain primary data.
Present embodiment uses the specific data sent from designated blocks chain node as data, and block will be added in follow-up process
In chain, so that the characteristic being difficult to tamper with using the data of block chain, guarantees that specific data is authentic and valid, so that specifically relevant journey
Sequence has true data that can rely on.Wherein the particular data packet include special object identity information, education experience or whether
Belong to the information of blacklist, is called for processes such as specific operation examination & approval.The specific data is inserted into the initial number
It include: the specific data extracted sent from designated blocks chain node respectively according to the mode in template, obtaining primary data, to obtain
The corresponding data content of different field;The data content is inserted in the respective field of the original data pattern, is obtained just
Beginning data.Wherein the designated blocks chain node can be any block chain node, for example, bank's block chain node.Wherein institute
Stating specific data is, for example, air control data etc..
In one embodiment, the block chain network has audit described in the reception using common recognition mechanism is specified
The feedback information of the block chain node of permission, and the step of whether feedback information meets preset data preservation condition judged
S5, comprising:
S501, reception throw the feedback information for the multiple block chain nodes of being commissioned selected based on the specified common recognition mechanism,
Wherein the block chain node of being commissioned has audit permission, and the feedback information passes through including audit or the audit fails;
The quantity for the feedback information that S502, statistics audit pass through, and judge the quantity of the feedback information audited and passed through
Whether preset amount threshold is greater than;
If S503, the quantity for auditing the feedback information passed through are greater than preset amount threshold, decision-feedback information
Meet preset data preservation condition.
As described above, realizing the feedback information for receiving the block chain node with audit permission, and described in judgement
Whether feedback information meets preset data preservation condition.Block chain network in present embodiment is using specified common recognition mechanism
The common recognition mechanism of (such as share authorisation verification mechanism), to reduce the time that audit needs.Wherein, share authorisation verification mechanism
It votes similar to the board of directors, is exactly that block chain node will do it ballot, to throw the node (block of being commissioned for selecting a part of quantity
Chain node), all block chain link points of block chain node-agent of being commissioned carry out verifying examination, without each area
Block chain node all carries out verifying audit.The feedback information passes through including audit or the audit fails.It is logical by statistics audit
The quantity for the feedback information crossed, and judge whether the quantity of the feedback information audited and passed through is greater than preset amount threshold,
If the quantity for auditing the feedback information passed through is greater than preset amount threshold, decision-feedback information meets preset data
Preservation condition;If being not more than preset amount threshold, decision-feedback information is unsatisfactory for preset data preservation condition.Specifically
The half that amount threshold can for example be set as the block chain number of nodes with audit permission adds one.
In one embodiment, described receive saves instruction to the data of specified data, wherein data preservation refers to
The type for describing specified data is enabled, it is a block chain link in the block chain network built in advance that the data, which save terminal,
Before the step S1 of point, comprising:
S01, creation block chain class in terminal is saved in the data using appointed language, the block chain class is instantiated
To establish wound generation block, wherein the cryptographic Hash of previous block is denoted as 0 in the wound generation block;
S02, it is based on the wound generation block, generates other blocks, wherein other described blocks include the Hash of previous block
Value;
S03, using default terminal as block chain node, to establish the block chain network.
As described above, realizing building block chain network.Wherein appointed language includes that JAVA, C++, Python etc. arbitrarily may be used
Row language.Class (Class) is the basis that Object-oriented Programming Design realizes Information encapsulation.Class is a kind of user defined type,
Claim type.Each class includes the function that data illustrate with one group of operation data or transmit message.The block chain class is description
The class of block chain.Block chain class is instantiated, is the object for stating a block chain type, to obtain wound generation block
(without first block before block), wherein the cryptographic Hash of the previous block in wound generation block may be configured as 0.Again based on described
Generation block is created, other blocks are generated, wherein other described blocks include the cryptographic Hash of previous block, so that constituting one has
The block chain of multi-tiling.The terminal (default terminal) of the default common recognition mechanism of the block chain be will have agreed to again as block chain link
Point, to establish the block chain network.Wherein, the common recognition mechanism such as proof of work mechanism, equity proves mechanism, refers to
Determine common recognition mechanism etc..Accordingly, the block chain network is established.
It in one embodiment, will be described first if the feedback information meets preset data preservation condition
Beginning data record enters after the step S6 of the block chain network, comprising:
S61, the modification received to the specified data instruct, wherein modification instruction is accompanied with replacement subdata;
S62, it is instructed according to the modification, the subdata to be modified in the specified data is replaced with into replacement
Data, and retain modification record in the specified data, thus data after being modified;
S63, data after the modification are sent to the block chain node with audit permission;
There is the msu message to data after the modification of the block chain node of audit permission described in S64, reception, and sentence
Whether the msu message that breaks meets preset data preservation condition;
If S65, the msu message meet preset data preservation condition, the area is added in data after the modification
Block chain network.
As described above, realizing modification data.The data that the specified data of block chain have been added are difficult to tamper with, but when finger
There are mistakes in typing for the data of fixed number evidence, therefore have the needs of modification.At this time to the number for specified data of modifying
According to should then passing through, there is the block chain link point of audit permission to be audited, when the block chain node with audit permission
Preset data preservation condition is met to the msu message of data after the modification, then will after the modification data be added described in
Block chain network.The quantity that preset data preservation condition for example, audits the block chain node passed through is greater than preset threshold value.
Wherein, after modifying successfully to described instruction data, invalid markers will be carried out to the data modified, to prompt.
It in one embodiment, will be described first if the feedback information meets preset data preservation condition
Beginning data record enters after the step S6 of the block chain network, comprising:
S7, the specific operation examination & approval instruction based on the specific data is received;
S8, the specific data is transferred from the block chain, and judges whether the specific data meets preset spy
Surely accrediting criterion is operated;
If S9, the specific data meet preset specific operation accrediting criterion, specific operation is executed.
As described above, realizing execution specific operation.The specific data transferred from the block chain is compared to existing
The specific data for having the other technologies means of technology to obtain wants true and reliable, therefore is examined based on the specific operation of the specific data
Batch avoidable data tampering and caused by risk of fraud.Wherein the particular data packet includes the identity information of special object, education
Experience or the information for whether belonging to blacklist, judge whether the specific data meets preset specific operation accrediting criterion
Mode includes: to judge whether the identity information of special object is identical as preset identity information, judges that preset education experience is
It is no identical as the education experience of special object, and/or judge whether special object belongs to blacklist.To which block link network be utilized
The specific data stored in network judges whether to execute specific operation.Wherein the specific operation examination & approval instruction is, for example, to provide a loan to examine
Criticize instruction etc..
The data save method based on block chain of the application receives and saves instruction to the data of specified data;It will be preparatory
In ready data filling original data pattern, primary data is obtained;The primary data, which is sent to, has audit permission
Block chain node;Receive the feedback information of the block chain node with audit permission;If the feedback information meets pre-
If data preservation condition, then the primary data is recorded into the block chain network.To solve Information Security it is poor,
The problem of the direct usage degree difference of data simultaneously.
Referring to Fig. 2, the embodiment of the present application provides a kind of data storage apparatus based on block chain, is applied to data and saves eventually
End, comprising:
Data save instruction receiving unit 10, for receiving the data preservation instruction to specified data, wherein the data
The type that instruction describes specified data is saved, it is an area in the block chain network built in advance that the data, which save terminal,
Block chain node;
Original data pattern transfers unit 20, for transferring from preset multiple data templates and the specified data
The corresponding original data pattern of type;
Primary data acquiring unit 30 is obtained for inserting preprepared data in the original data pattern
Primary data;
Primary data transmission unit 40, for the primary data to be sent to the block chain node with audit permission;
Data preservation condition judging unit 50, for receiving the feedback letter of the block chain node with audit permission
Breath, and judge whether the feedback information meets preset data preservation condition;
Data saving unit 60 will be described initial if meeting preset data preservation condition for the feedback information
Data record enters the block chain network.
It as described in said units 10, receives and instruction is saved to the data of specified data, wherein the data save instruction note
The type of specified data is carried, it is a block chain node in the block chain network built in advance that the data, which save terminal,.
This middle finger fixed number is according to can be arbitrary data, such as virtual coin transaction, creation data, commercial data, finance data, specific operation are careful
The data such as batch data, specific data.The data save instruction and refer to that the specified data are recorded in the block chain by instruction
In instruction.The block chain network built in advance can be publicly-owned chain, alliance's chain or privately owned chain, preferably alliance's chain.Block chain
Node may include the terminal in any terminal, such as each bank.The common recognition mechanism of the block chain network can be any
Common recognition mechanism, such as proof of work mechanism, equity prove mechanism, specified common recognition mechanism (DPOS) etc., it is preferred to use share is awarded
The bright common recognition mechanism of warrant.Wherein, the type of the specified data can be the type of any way classification, for example, certain number
According to, creation data, commercial data etc., it is, of course, also possible to include the data type that any different classifications mode is divided into.Different type
The data format that uses of specified data it is different.
As described in said units 20, transferred from preset multiple data templates corresponding with the type of the specified data
Original data pattern.Since the data format that different types of specified data use is different, by from preset multiple numbers
According to original data pattern corresponding with the type of the specified data is transferred in template, accurate data lattice can be obtained early
Formula improves the speed for forming data, eliminates the step of forming data of starting from scratch.Further, the original data pattern
It is made of data framework template and at least one data subtemplate, thus the separate type number that can be further organized using editable
According to characteristic, reach higher efficiency generation more have accurate data.
As described in said units 30, preprepared data are inserted in the original data pattern, initial number is obtained
According to.From the foregoing it will be appreciated that original data pattern is that specific aim generates, therefore preprepared data are and original data pattern
Match, preprepared data are accordingly inserted in the original data pattern, primary data can be obtained.
As described in said units 40, the primary data is sent to the block chain node with audit permission.According to pre-
The difference first arranged has the block chain node of audit permission also different.Such as when the common recognition mechanism using share authorisation verification
When, the block chain node with audit permission is to throw the block chain node of being commissioned selected by all block chain nodes.This
A little block chain nodes with audit permission audit the primary data, and then determine that can the primary data be added the area
Block chain network.
As described in said units 50, the feedback information of the block chain node with audit permission is received, and judges institute
State whether feedback information meets preset data preservation condition.The feedback information, which can be, any form of can react initial
Whether data audit the information passed through.For example, the feedback information passes through including audit or the audit fails.Judge described anti-
The process whether feedforward information meets preset data preservation condition includes: to judge that the quantity of feedback information passed through of auditing is
It is no to be greater than preset amount threshold;If the quantity for auditing the feedback information passed through is greater than preset amount threshold, determine
Feedback information meets preset data preservation condition.Wherein preset amount threshold is, for example, the block with audit permission
The half of chain number of nodes adds one.
As described in said units 60, if the feedback information meets preset data preservation condition, by the initial number
According to being recorded into the block chain network.If the feedback information meets preset data preservation condition, show the primary data
It is correctly, to allow that block chain is added.Accordingly, the primary data is recorded into the block chain network.
In one embodiment, the original data pattern is by data framework template and at least one data subtemplate structure
At the original data pattern transfers unit 20, comprising:
Data template obtains subelement, for the type according to the specified data, according to preset data type and mould
The corresponding relationship of plate obtains preset multiple data framework templates and multiple data subtemplates;
Data template combines subelement, and the data framework template and data submodule of terminal selection are saved for obtaining data
Plate, and the data framework template that the data save terminal selection is combined into the primary data mould with data subtemplate
Plate;
Subelement is transferred, for transferring the original data pattern.
As described above, realize transferred from preset multiple data templates it is corresponding with the type of the specified data just
Beginning data template.The original data pattern that present embodiment uses is by data framework template and at least one data subtemplate
It constitutes, so that data can be formed in the way of the preset template of combination, keeps the generation of data more quick, and can be directed to
Generate suitable data to property.Since the specific requirement that different data needs is different, format, layout (frame) of data etc.
Everyway is not quite similar.By the way that data are decomposed into frame and detail section, then framework template pointedly it has been pre-designed
It only need to be from existing framework template and subtemplate when needing the template of specified data with subtemplate (detail section template)
Selection, recombinant are got up, and the original data pattern can be formed.Wherein when specified data are that specific operation examines data,
Data subtemplate is, for example, guaranty subtemplate (including the relevant field of guaranty, including guaranty name field, valuation word
Section, mortgage history field etc.).
In one embodiment, the block chain network includes designated blocks chain node, and the primary data obtains single
First 30, include:
Specific data receiving subelement, for receiving the specific data sent from designated blocks chain node, wherein the spy
Fixed number is according to identity information, education experience or the information for whether belonging to blacklist for including special object;
Primary data obtains subelement, for inserting the specific data in the original data pattern, obtains initial
Data.
Preprepared data are inserted in the original data pattern as described above, realizing, obtain primary data.
Present embodiment uses the specific data sent from designated blocks chain node as data, and block will be added in follow-up process
In chain, so that the characteristic being difficult to tamper with using the data of block chain, guarantees that specific data is authentic and valid, so that specifically relevant journey
Sequence has true data that can rely on.Wherein the particular data packet include special object identity information, education experience or whether
Belong to the information of blacklist, is called for processes such as specific operation examination & approval.The specific data is inserted into the initial number
It include: the specific data extracted sent from designated blocks chain node respectively according to the mode in template, obtaining primary data, to obtain
The corresponding data content of different field;The data content is inserted in the respective field of the original data pattern, is obtained just
Beginning data.Wherein the designated blocks chain node can be any block chain node, for example, bank's block chain node.
In one embodiment, the block chain network is using specified common recognition mechanism, the data preservation condition judgement
Unit 50, comprising:
Feedback information receiving subelement throws the multiple blocks of being commissioned selected for receiving based on the specified common recognition mechanism
The feedback information of chain node, wherein the block chain node of being commissioned has audit permission, the feedback information includes that audit passes through
Or the audit fails;
Feedback information counts subelement, for counting the quantity for the feedback information that audit passes through, and judges that the audit is logical
Whether the quantity for the feedback information crossed is greater than preset amount threshold;
Meet data preservation condition and determine subelement, if being greater than for the quantity for auditing the feedback information passed through default
Amount threshold, then decision-feedback information meets preset data preservation condition.
As described above, realizing the feedback information for receiving the block chain node with audit permission, and described in judgement
Whether feedback information meets preset data preservation condition.Block chain network in present embodiment is using specified common recognition mechanism
The common recognition mechanism of (such as share authorisation verification mechanism), to reduce the time that audit needs.Wherein, share authorisation verification mechanism
It votes similar to the board of directors, is exactly that block chain node will do it ballot, to throw the node (block of being commissioned for selecting a part of quantity
Chain node), all block chain link points of block chain node-agent of being commissioned carry out verifying examination, without each area
Block chain node all carries out verifying audit.The feedback information passes through including audit or the audit fails.It is logical by statistics audit
The quantity for the feedback information crossed, and judge whether the quantity of the feedback information audited and passed through is greater than preset amount threshold,
If the quantity for auditing the feedback information passed through is greater than preset amount threshold, decision-feedback information meets preset data
Preservation condition;If being not more than preset amount threshold, decision-feedback information is unsatisfactory for preset data preservation condition.Specifically
The half that amount threshold can for example be set as the block chain number of nodes with audit permission adds one.
In one embodiment, described device, comprising:
Wound generation block unit is established, creates block chain class in terminal for saving using appointed language in the data, it will
The block chain class instantiation is to establish wound generation block, wherein the cryptographic Hash of previous block is denoted as 0 in the wound generation block;
Other block units are generated, for being based on the wound generation block, other blocks are generated, wherein other described block packets
Include the cryptographic Hash of previous block;
Block chain network unit is established, is used for using default terminal as block chain node, to establish the block link network
Network.
As described above, realizing building block chain network.Wherein appointed language includes that JAVA, C++, Python etc. arbitrarily may be used
Row language.Class (Class) is the basis that Object-oriented Programming Design realizes Information encapsulation.Class is a kind of user defined type,
Claim type.Each class includes the function that data illustrate with one group of operation data or transmit message.The block chain class is description
The class of block chain.Block chain class is instantiated, is the object for stating a block chain type, to obtain wound generation block
(without first block before block), wherein the cryptographic Hash of the previous block in wound generation block may be configured as 0.Again based on described
Generation block is created, other blocks are generated, wherein other described blocks include the cryptographic Hash of previous block, so that constituting one has
The block chain of multi-tiling.The terminal (default terminal) of the default common recognition mechanism of the block chain be will have agreed to again as block chain link
Point, to establish the block chain network.Wherein, the common recognition mechanism such as proof of work mechanism, equity proves mechanism, refers to
Determine common recognition mechanism etc..Accordingly, the block chain network is established.
In one embodiment, described device, comprising:
Instruction receiving unit is modified, for receiving the instruction of the modification to the specified data, wherein modification instruction is attached
With replacement subdata;
Subdata to be modified in the specified data is replaced with institute for instructing according to the modification by replacement unit
Replacement subdata is stated, and retains modification record in the specified data, thus data after being modified;
Data transmission unit after modification, for data after the modification to be sent to the block chain with audit permission
Node;
Msu message receiving unit, for receiving counting to after the modification for the block chain node with audit permission
According to msu message, and judge whether the msu message meets preset data preservation condition;
Data adding unit after modification will be described if meeting preset data preservation condition for the msu message
The block chain network is added in data after modification.
As described above, realizing modification data.The data that the specified data of block chain have been added are difficult to tamper with, but when finger
There are mistakes in typing for the data of fixed number evidence, therefore have the needs of modification.At this time to the number for specified data of modifying
According to should then passing through, there is the block chain link point of audit permission to be audited, when the block chain node with audit permission
Preset data preservation condition is met to the msu message of data after the modification, then will after the modification data be added described in
Block chain network.The quantity that preset data preservation condition for example, audits the block chain node passed through is greater than preset threshold value.
Wherein, after modifying successfully to described instruction data, invalid markers will be carried out to the data modified, to prompt.
In one embodiment, described device, comprising:
Specific operation examines instruction receiving unit, for receiving the specific operation examination & approval instruction based on the specific data;
Specific operation accrediting criterion judging unit for transferring the specific data from the block chain, and judges institute
State whether specific data meets preset specific operation accrediting criterion;
Specific operation unit is executed to execute if meeting preset specific operation accrediting criterion for the specific data
Specific operation.
As described above, realizing execution specific operation.The specific data transferred from the block chain is compared to existing
The specific data for having the other technologies means of technology to obtain wants true and reliable, therefore is examined based on the specific operation of the specific data
Batch avoidable data tampering and caused by risk of fraud.Wherein the particular data packet includes the identity information of special object, education
Experience or the information for whether belonging to blacklist, judge whether the specific data meets preset specific operation accrediting criterion
Mode includes: to judge whether the identity information of special object is identical as preset identity information, judges that preset education experience is
It is no identical as the education experience of special object, and/or judge whether special object belongs to blacklist.To which block link network be utilized
The specific data stored in network judges whether to execute specific operation.Wherein the specific operation examination & approval instruction is, for example, to provide a loan to examine
Criticize instruction etc..
The data storage apparatus based on block chain of the application receives and saves instruction to the data of specified data;It will be preparatory
In ready data filling original data pattern, primary data is obtained;The primary data, which is sent to, has audit permission
Block chain node;Receive the feedback information of the block chain node with audit permission;If the feedback information meets pre-
If data preservation condition, then the primary data is recorded into the block chain network.To solve Information Security it is poor,
The problem of the direct usage degree difference of data simultaneously.
Referring to Fig. 3, a kind of computer equipment is also provided in the embodiment of the present invention, which can be server,
Its internal structure can be as shown in the figure.The computer equipment includes that the processor, memory, network connected by system bus connects
Mouth and database.Wherein, the processor of the Computer Design is for providing calculating and control ability.The storage of the computer equipment
Device includes non-volatile memory medium, built-in storage.The non-volatile memory medium be stored with operating system, computer program and
Database.The internal memory provides environment for the operation of operating system and computer program in non-volatile memory medium.The meter
The database of machine equipment is calculated for storing data used in the data save method based on block chain.The network of the computer equipment connects
Mouth with external terminal by network connection for being communicated.It is a kind of based on area to realize when the computer program is executed by processor
The data save method of block chain.
Above-mentioned processor executes the above-mentioned data save method based on block chain, is applied to data and saves terminal, comprising: connects
It receives and instruction is saved to the data of specified data, wherein the data save the type that instruction describes specified data, the data
Saving terminal is a block chain node in the block chain network built in advance;Transferred from preset multiple data templates with
The corresponding original data pattern of type of the specified data;Preprepared data are inserted into the original data pattern
In, obtain primary data;The primary data is sent to the block chain node with audit permission;It receives described with audit
The feedback information of the block chain node of permission, and judge whether the feedback information meets preset data preservation condition;If institute
It states feedback information and meets preset data preservation condition, then the primary data is recorded into the block chain network.
In one embodiment, the original data pattern is by data framework template and at least one data subtemplate structure
At the step for transferring original data pattern corresponding with the type of the specified data from preset multiple data templates
Suddenly, comprising: obtained preset according to the type of the specified data according to the corresponding relationship of preset data type and template
Multiple data framework templates and multiple data subtemplates;Obtain data framework template and data that the data save terminal selection
Subtemplate, and the data framework template that the data save terminal selection is combined into the primary data with data subtemplate
Template;Transfer the original data pattern.
In one embodiment, the block chain network includes designated blocks chain node, it is described will be preprepared
The step of data are inserted in the original data pattern, and primary data is obtained, comprising: what reception was sent from designated blocks chain node
Specific data, wherein the particular data packet includes the identity information of special object, education experience or whether belongs to blacklist
Information;The specific data is inserted in the original data pattern, primary data is obtained.
In one embodiment, the block chain network has audit described in the reception using common recognition mechanism is specified
The feedback information of the block chain node of permission, and judge whether the feedback information meets the step of preset data preservation condition
Suddenly, comprising: receive the feedback information that the multiple block chain nodes of being commissioned selected are thrown based on the specified common recognition mechanism, wherein institute
Stating block chain node of being commissioned has audit permission, and the feedback information passes through including audit or the audit fails;Statistics audit
By feedback information quantity, and judge described to audit whether the quantity of feedback information passed through is greater than preset quantity threshold
Value;If the quantity for auditing the feedback information passed through is greater than preset amount threshold, decision-feedback information meets preset
Data preservation condition.
In one embodiment, described receive saves instruction to the data of specified data, wherein data preservation refers to
The type for describing specified data is enabled, it is a block chain link in the block chain network built in advance that the data, which save terminal,
Before the step of point, comprising: saved using appointed language in the data and create block chain class in terminal, by the block chain class
Instantiation is to establish wound generation block, wherein the cryptographic Hash of previous block is denoted as 0 in the wound generation block;Based on the wound generation
Block generates other blocks, wherein other described blocks include the cryptographic Hash of previous block;Using default terminal as block chain link
Point, to establish the block chain network.
It in one embodiment, will be described first if the feedback information meets preset data preservation condition
Beginning data record entered after the step of block chain network, comprising: receives the modification to the specified data and instructs, wherein institute
It states modification instruction and is accompanied with replacement subdata;It is instructed according to the modification, by the subdata to be modified in the specified data
The replacement subdata is replaced with, thus data after being modified;Data after the modification are sent to described with audit
The block chain node of permission;The audit to data after the modification for receiving the block chain node with audit permission is believed
Breath, and judge whether the msu message meets preset data preservation condition;If the msu message meets preset data
Then the block chain network is added in data after the modification by preservation condition.
It in one embodiment, will be described first if the feedback information meets preset data preservation condition
Beginning data record entered after the step of block chain network, comprising: receives the specific operation examination & approval based on the specific data
Instruction;The specific data is transferred from the block chain, and judges whether the specific data meets preset specific operation
Accrediting criterion;If the specific data meets preset specific operation accrediting criterion, specific operation is executed.
It will be understood by those skilled in the art that structure shown in figure, only part relevant to application scheme is tied
The block diagram of structure does not constitute the restriction for the computer equipment being applied thereon to application scheme.
The computer equipment of the application receives and saves instruction to the data of specified data;Preprepared data are filled out
Enter in original data pattern, obtains primary data;The primary data is sent to the block chain node with audit permission;It connects
Receive the feedback information of the block chain node with audit permission;If the feedback information, which meets preset data, saves item
The primary data is then recorded into the block chain network by part.To solve, Information Security is poor, data directly make simultaneously
With the problem of degree difference.
One embodiment of the application also provides a kind of computer readable storage medium, is stored thereon with computer program, calculates
The data save method based on block chain is realized when machine program is executed by processor, and is applied to data and is saved terminal, comprising: receives
Instruction is saved to the data of specified data, wherein the data save the type that instruction describes specified data, the data are protected
Depositing terminal is a block chain node in the block chain network built in advance;It is transferred from preset multiple data templates and institute
State the corresponding original data pattern of type of specified data;Preprepared data are inserted in the original data pattern,
Obtain primary data;The primary data is sent to the block chain node with audit permission;It receives described with audit power
The feedback information of the block chain node of limit, and judge whether the feedback information meets preset data preservation condition;If described
Feedback information meets preset data preservation condition, then the primary data is recorded into the block chain network.
In one embodiment, the original data pattern is by data framework template and at least one data subtemplate structure
At the step for transferring original data pattern corresponding with the type of the specified data from preset multiple data templates
Suddenly, comprising: obtained preset according to the type of the specified data according to the corresponding relationship of preset data type and template
Multiple data framework templates and multiple data subtemplates;Obtain data framework template and data that the data save terminal selection
Subtemplate, and the data framework template that the data save terminal selection is combined into the primary data with data subtemplate
Template;Transfer the original data pattern.
In one embodiment, the block chain network includes designated blocks chain node, it is described will be preprepared
The step of data are inserted in the original data pattern, and primary data is obtained, comprising: what reception was sent from designated blocks chain node
Specific data, wherein the particular data packet includes the identity information of special object, education experience or whether belongs to blacklist
Information;The specific data is inserted in the original data pattern, primary data is obtained.
In one embodiment, the block chain network has audit described in the reception using common recognition mechanism is specified
The feedback information of the block chain node of permission, and judge whether the feedback information meets the step of preset data preservation condition
Suddenly, comprising: receive the feedback information that the multiple block chain nodes of being commissioned selected are thrown based on the specified common recognition mechanism, wherein institute
Stating block chain node of being commissioned has audit permission, and the feedback information passes through including audit or the audit fails;Statistics audit
By feedback information quantity, and judge described to audit whether the quantity of feedback information passed through is greater than preset quantity threshold
Value;If the quantity for auditing the feedback information passed through is greater than preset amount threshold, decision-feedback information meets preset
Data preservation condition.
In one embodiment, described receive saves instruction to the data of specified data, wherein data preservation refers to
The type for describing specified data is enabled, it is a block chain link in the block chain network built in advance that the data, which save terminal,
Before the step of point, comprising: saved using appointed language in the data and create block chain class in terminal, by the block chain class
Instantiation is to establish wound generation block, wherein the cryptographic Hash of previous block is denoted as 0 in the wound generation block;Based on the wound generation
Block generates other blocks, wherein other described blocks include the cryptographic Hash of previous block;Using default terminal as block chain link
Point, to establish the block chain network.
It in one embodiment, will be described first if the feedback information meets preset data preservation condition
Beginning data record entered after the step of block chain network, comprising: receives the modification to the specified data and instructs, wherein institute
It states modification instruction and is accompanied with replacement subdata;It is instructed according to the modification, by the subdata to be modified in the specified data
The replacement subdata is replaced with, thus data after being modified;Data after the modification are sent to described with audit
The block chain node of permission;The audit to data after the modification for receiving the block chain node with audit permission is believed
Breath, and judge whether the msu message meets preset data preservation condition;If the msu message meets preset data
Then the block chain network is added in data after the modification by preservation condition.
It in one embodiment, will be described first if the feedback information meets preset data preservation condition
Beginning data record entered after the step of block chain network, comprising: receives the specific operation examination & approval based on the specific data
Instruction;The specific data is transferred from the block chain, and judges whether the specific data meets preset specific operation
Accrediting criterion;If the specific data meets preset specific operation accrediting criterion, specific operation is executed.
The computer readable storage medium of the application receives and saves instruction to the data of specified data;It will be prepared in advance
Data filling original data pattern in, obtain primary data;The primary data is sent to the block with audit permission
Chain node;Receive the feedback information of the block chain node with audit permission;If the feedback information meets preset number
According to preservation condition, then the primary data is recorded into the block chain network.It is poor while several to solve Information Security
According to the problem of direct usage degree difference.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with
Relevant hardware is instructed to complete by computer program, the computer program can be stored in a non-volatile computer
In read/write memory medium, the computer program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein,
Any reference used in provided herein and embodiment to memory, storage, database or other media,
Including non-volatile and/or volatile memory.Nonvolatile memory may include read-only memory (ROM), programming ROM
(PROM), electrically programmable ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include
Random access memory (RAM) or external cache.By way of illustration and not limitation, RAM is available in many forms,
Such as static state RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double speed are according to rate SDRAM (SSRSDRAM), enhancing
Type SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM
(RDRAM), direct memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM) etc..
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row
His property includes, so that the process, device, article or the method that include a series of elements not only include those elements, and
And further include other elements that are not explicitly listed, or further include for this process, device, article or method institute it is intrinsic
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do
There is also other identical elements in the process, device of element, article or method.
The foregoing is merely preferred embodiment of the present application, are not intended to limit the scope of the patents of the application, all utilizations
Equivalent structure or equivalent flow shift made by present specification and accompanying drawing content is applied directly or indirectly in other correlations
Technical field, similarly include in the scope of patent protection of the application.
Claims (10)
1. a kind of data save method based on block chain is applied to data and saves terminal characterized by comprising
It receives and instruction is saved to the data of specified data, wherein the data save the type that instruction describes specified data, institute
Stating data and saving terminal is a block chain node in the block chain network built in advance;
Original data pattern corresponding with the type of the specified data is transferred from preset multiple data templates;
Preprepared data are inserted in the original data pattern, primary data is obtained;
The primary data is sent to the block chain node with audit permission;
The feedback information of the block chain node with audit permission is received, and it is default to judge whether the feedback information meets
Data preservation condition;
If the feedback information meets preset data preservation condition, the primary data is recorded into the block link network
Network.
2. the data save method according to claim 1 based on block chain, which is characterized in that the original data pattern
It is made of data framework template and at least one data subtemplate, it is described to be transferred from preset multiple data templates and the finger
The step of type of fixed number evidence corresponding original data pattern, comprising:
It is obtained preset multiple according to the type of the specified data according to the corresponding relationship of preset data type and template
Data framework template and multiple data subtemplates;
Data framework template and data subtemplate that the data save terminal selection are obtained, and the data are saved into terminal choosing
The data framework template and data subtemplate selected are combined into the original data pattern;
Transfer the original data pattern.
3. the data save method according to claim 1 based on block chain, which is characterized in that the block chain network packet
Designated blocks chain node is included, it is described to insert preprepared data in the original data pattern, obtain primary data
Step, comprising:
The specific data sent from designated blocks chain node is received, wherein the particular data packet includes the identity letter of special object
Breath, education experience or the information for whether belonging to blacklist;
The specific data is inserted in the original data pattern, primary data is obtained.
4. the data save method according to claim 1 based on block chain, which is characterized in that the block chain network is adopted
There is the feedback information of the block chain node of audit permission with specified common recognition mechanism, described in the reception, and judge the feedback
Whether information meets the step of preset data preservation condition, comprising:
Receive and throw the feedback informations of the multiple block chain nodes of being commissioned selected based on the specified common recognition mechanism, wherein it is described by
Ask block chain node that there is audit permission, the feedback information passes through including audit or the audit fails;
The quantity for the feedback information that statistics audit passes through, and it is pre- to judge whether the quantity of the feedback information audited and passed through is greater than
If amount threshold;
If the quantity for auditing the feedback information passed through is greater than preset amount threshold, decision-feedback information meets preset
Data preservation condition.
5. the data save method according to claim 1 based on block chain, which is characterized in that the reception is to specified number
According to data save instruction, wherein the data, which save instruction, describes the types of specified data, the data, which save terminal, is
Before the step of block chain node in the block chain network built in advance, comprising:
It is saved using appointed language in the data and creates block chain class in terminal, the block chain class is instantiated to establish
Generation block is created, wherein the cryptographic Hash of previous block is denoted as 0 in the wound generation block;
Based on the wound generation block, other blocks are generated, wherein other described blocks include the cryptographic Hash of previous block;
Using default terminal as block chain node, to establish the block chain network.
6. the data save method according to claim 1 based on block chain, which is characterized in that if the feedback letter
After the step of breath meets preset data preservation condition, then the primary data is recorded into the block chain network, comprising:
It receives the modification to the specified data to instruct, wherein modification instruction is accompanied with replacement subdata;
It is instructed according to the modification, the subdata to be modified in the specified data is replaced with into the replacement subdata, from
And data after being modified;
Data after the modification are sent to the block chain node with audit permission;
The msu message to data after the modification of the block chain node with audit permission is received, and judges described examine
Whether nuclear information meets preset data preservation condition;
If the msu message meets preset data preservation condition, the block link network is added in data after the modification
Network.
7. the data save method according to claim 3 based on block chain, which is characterized in that if the feedback letter
After the step of breath meets preset data preservation condition, then the primary data is recorded into the block chain network, comprising:
It receives the specific operation based on the specific data and examines instruction;
The specific data is transferred from the block chain, and judges whether the specific data meets preset specific operation and examine
The standard of criticizing;
If the specific data meets preset specific operation accrediting criterion, specific operation is executed.
8. a kind of data storage apparatus based on block chain is applied to data and saves terminal characterized by comprising
Data save instruction receiving unit, for receiving the data preservation instruction to specified data, wherein data preservation refers to
The type for describing specified data is enabled, it is a block chain link in the block chain network built in advance that the data, which save terminal,
Point;
Original data pattern transfers unit, for transferring the type pair with the specified data from preset multiple data templates
The original data pattern answered;
Primary data acquiring unit obtains initial number for inserting preprepared data in the original data pattern
According to;
Primary data transmission unit, for the primary data to be sent to the block chain node with audit permission;
Data preservation condition judging unit for receiving the feedback information of the block chain node with audit permission, and is sentenced
Whether the feedback information that breaks meets preset data preservation condition;
Data saving unit remembers the primary data if meeting preset data preservation condition for the feedback information
Block chain network described in typing.
9. a kind of computer equipment, including memory and processor, the memory are stored with computer program, feature exists
In the step of processor realizes any one of claims 1 to 7 the method when executing the computer program.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program
The step of method described in any one of claims 1 to 7 is realized when being executed by processor.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910463894.0A CN110334536A (en) | 2019-05-30 | 2019-05-30 | Data save method, device and computer equipment based on block chain |
PCT/CN2020/088011 WO2020238554A1 (en) | 2019-05-30 | 2020-04-30 | Data storage method and apparatus employing blockchain and computer device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910463894.0A CN110334536A (en) | 2019-05-30 | 2019-05-30 | Data save method, device and computer equipment based on block chain |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110334536A true CN110334536A (en) | 2019-10-15 |
Family
ID=68140633
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910463894.0A Pending CN110334536A (en) | 2019-05-30 | 2019-05-30 | Data save method, device and computer equipment based on block chain |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN110334536A (en) |
WO (1) | WO2020238554A1 (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110852800A (en) * | 2019-11-07 | 2020-02-28 | 深圳前海点金保理有限公司 | Method for integrating trade information, terminal device and storage medium |
CN111553920A (en) * | 2020-05-14 | 2020-08-18 | 无锡北斗星通信息科技有限公司 | Block chain server cultural relic restoration data storage platform |
WO2020238554A1 (en) * | 2019-05-30 | 2020-12-03 | 深圳壹账通智能科技有限公司 | Data storage method and apparatus employing blockchain and computer device |
CN112528334A (en) * | 2020-12-16 | 2021-03-19 | 平安普惠企业管理有限公司 | Data acquisition method and device based on block chain network and computer equipment |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113300889A (en) * | 2020-12-31 | 2021-08-24 | 恬家(上海)信息科技有限公司 | Method for adjusting link width and block link network system |
Citations (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2006185212A (en) * | 2004-12-28 | 2006-07-13 | Ricoh Software Kk | Information management system, information management method and program |
US20110161375A1 (en) * | 2009-12-24 | 2011-06-30 | Doug Tedder | Systems, methods and articles for template based generation of markup documents to access back office systems |
CN102868712A (en) * | 2011-07-06 | 2013-01-09 | 阿里巴巴集团控股有限公司 | Method and system for data transmission |
US20140019967A1 (en) * | 2012-07-16 | 2014-01-16 | International Business Machines Corporation | Preprovisioning using mutated templates |
US20150088898A1 (en) * | 2013-09-24 | 2015-03-26 | Qliktech International Ab | Methods And Systems For Data Management And Analysis |
US20150295759A1 (en) * | 2012-10-31 | 2015-10-15 | Telefonaktiebolaget L M Ericsson (Publ) | Method for configuring a communication device using a configuration file template |
CN105808375A (en) * | 2014-12-31 | 2016-07-27 | 航天信息软件技术有限公司 | Data import method and device |
CN107147950A (en) * | 2017-06-16 | 2017-09-08 | 环球智达科技(北京)有限公司 | A kind of intelligent television system for supporting self-defined template data to add |
CN109165856A (en) * | 2018-08-31 | 2019-01-08 | 平安科技(深圳)有限公司 | Examine Dynamic Configuration, device and the storage medium of chain |
CN109284108A (en) * | 2018-08-30 | 2019-01-29 | 百度在线网络技术(北京)有限公司 | Date storage method, device, electronic equipment and storage medium |
CN109525671A (en) * | 2018-11-26 | 2019-03-26 | 远光软件股份有限公司 | Date storage method, electronic equipment and storage medium based on block chain |
CN109615534A (en) * | 2018-10-29 | 2019-04-12 | 平安医疗健康管理股份有限公司 | Model generating method, device, equipment and readable storage medium storing program for executing are audited in air control |
CN109816327A (en) * | 2018-12-14 | 2019-05-28 | 平安国际融资租赁有限公司 | Contract dataset processing method, device, computer equipment and storage medium |
CN109816563A (en) * | 2019-01-03 | 2019-05-28 | 深圳壹账通智能科技有限公司 | Electronic contract template circulation method, apparatus, computer equipment and storage medium |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109509108B (en) * | 2018-12-19 | 2023-08-22 | 中国平安财产保险股份有限公司 | Insurance policy processing method and device based on block chain technology and computer equipment |
CN109711816A (en) * | 2019-01-02 | 2019-05-03 | 深圳壹账通智能科技有限公司 | Cooperative institution's approaches to IM, device, computer equipment and storage medium |
CN110334536A (en) * | 2019-05-30 | 2019-10-15 | 深圳壹账通智能科技有限公司 | Data save method, device and computer equipment based on block chain |
-
2019
- 2019-05-30 CN CN201910463894.0A patent/CN110334536A/en active Pending
-
2020
- 2020-04-30 WO PCT/CN2020/088011 patent/WO2020238554A1/en active Application Filing
Patent Citations (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2006185212A (en) * | 2004-12-28 | 2006-07-13 | Ricoh Software Kk | Information management system, information management method and program |
US20110161375A1 (en) * | 2009-12-24 | 2011-06-30 | Doug Tedder | Systems, methods and articles for template based generation of markup documents to access back office systems |
CN102868712A (en) * | 2011-07-06 | 2013-01-09 | 阿里巴巴集团控股有限公司 | Method and system for data transmission |
US20140019967A1 (en) * | 2012-07-16 | 2014-01-16 | International Business Machines Corporation | Preprovisioning using mutated templates |
US20150295759A1 (en) * | 2012-10-31 | 2015-10-15 | Telefonaktiebolaget L M Ericsson (Publ) | Method for configuring a communication device using a configuration file template |
US20150088898A1 (en) * | 2013-09-24 | 2015-03-26 | Qliktech International Ab | Methods And Systems For Data Management And Analysis |
CN105808375A (en) * | 2014-12-31 | 2016-07-27 | 航天信息软件技术有限公司 | Data import method and device |
CN107147950A (en) * | 2017-06-16 | 2017-09-08 | 环球智达科技(北京)有限公司 | A kind of intelligent television system for supporting self-defined template data to add |
CN109284108A (en) * | 2018-08-30 | 2019-01-29 | 百度在线网络技术(北京)有限公司 | Date storage method, device, electronic equipment and storage medium |
CN109165856A (en) * | 2018-08-31 | 2019-01-08 | 平安科技(深圳)有限公司 | Examine Dynamic Configuration, device and the storage medium of chain |
CN109615534A (en) * | 2018-10-29 | 2019-04-12 | 平安医疗健康管理股份有限公司 | Model generating method, device, equipment and readable storage medium storing program for executing are audited in air control |
CN109525671A (en) * | 2018-11-26 | 2019-03-26 | 远光软件股份有限公司 | Date storage method, electronic equipment and storage medium based on block chain |
CN109816327A (en) * | 2018-12-14 | 2019-05-28 | 平安国际融资租赁有限公司 | Contract dataset processing method, device, computer equipment and storage medium |
CN109816563A (en) * | 2019-01-03 | 2019-05-28 | 深圳壹账通智能科技有限公司 | Electronic contract template circulation method, apparatus, computer equipment and storage medium |
Non-Patent Citations (2)
Title |
---|
K. INBANILA 等: "Enhancement of substitution voices using F1 formant deviation analysis and DTW based template matching", 《2017 INTERNATIONAL CONFERENCE ON WIRELESS COMMUNICATIONS, SIGNAL PROCESSING AND NETWORKING (WISPNET)》, 24 March 2017 (2017-03-24), pages 352 - 356, XP033324052, DOI: 10.1109/WiSPNET.2017.8299777 * |
李彬 等: "基于异构区块链的多能系统交易体系及关键技术", 《电力系统自动化》, vol. 42, no. 4, 25 February 2018 (2018-02-25), pages 183 - 193 * |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2020238554A1 (en) * | 2019-05-30 | 2020-12-03 | 深圳壹账通智能科技有限公司 | Data storage method and apparatus employing blockchain and computer device |
CN110852800A (en) * | 2019-11-07 | 2020-02-28 | 深圳前海点金保理有限公司 | Method for integrating trade information, terminal device and storage medium |
CN111553920A (en) * | 2020-05-14 | 2020-08-18 | 无锡北斗星通信息科技有限公司 | Block chain server cultural relic restoration data storage platform |
CN111553920B (en) * | 2020-05-14 | 2021-06-25 | 上海映城网络科技有限公司 | Block chain server cultural relic restoration data storage platform |
CN112528334A (en) * | 2020-12-16 | 2021-03-19 | 平安普惠企业管理有限公司 | Data acquisition method and device based on block chain network and computer equipment |
CN112528334B (en) * | 2020-12-16 | 2024-01-23 | 海南博盈电子竞技有限公司 | Data acquisition method and device based on blockchain network and computer equipment |
Also Published As
Publication number | Publication date |
---|---|
WO2020238554A1 (en) | 2020-12-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110334536A (en) | Data save method, device and computer equipment based on block chain | |
CN108711212B (en) | Voting certificate storage method, device and system | |
CN106453415A (en) | Block chain based equipment certification method, certification server and user equipment | |
CN106452777A (en) | Electronic device and method for generating random and unique code | |
CN106778109A (en) | A kind of certification authority evaluation method and device based on intelligent contract | |
WO2021204181A1 (en) | Method and device for preventing forking of blockchain | |
US20060214006A1 (en) | Tamper resistant device and file generation method | |
CN110992178A (en) | Verification method and device for block chain node, computer equipment and storage medium | |
CN110138741A (en) | Micro services management method, device and computer equipment based on management platform | |
CN110390524A (en) | Work data processing method, device, electronic equipment and storage medium in block chain | |
CN110378691A (en) | Block chain dispositions method, device and computer equipment based on deployment center | |
CN109919614A (en) | A kind of method for protecting intelligent contract privacy using zero-knowledge proof in block chain | |
CN109391618A (en) | A kind of method for building up and system of communication link | |
CN110533419A (en) | Sharing method, device and the server of air control model based on block chain | |
CN110555319B (en) | Resource expected result auditing method and device based on block chain and computer equipment | |
CN110442764A (en) | Contract generation method, device and the computer equipment crawled based on data | |
CN113094427B (en) | Data management method and device based on block chain | |
CN101277312B (en) | Method and system for controlling circulation of turnover bag | |
WO2022008322A1 (en) | Method, participating unit, transaction register, and payment system for managing transaction data sets | |
CN110264350A (en) | Bookkeeping methods, device and the computer equipment for thering is endorsement to sign based on block chain | |
CN110351091A (en) | Resource exchange method, apparatus and computer equipment based on dual signature | |
CN114154996A (en) | Cross-block-chain data transfer method and system, storage medium and terminal | |
CN114925033A (en) | Information uplink method, device, system and storage medium | |
CN113282672A (en) | Block chain-based block data marking method and device | |
EP4111399A1 (en) | Method, terminal, monitoring entity, and payment system for managing electronic coin datasets |
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 |