CN113434909A - Data on-demand evidence storing method based on block chain - Google Patents
Data on-demand evidence storing method based on block chain Download PDFInfo
- Publication number
- CN113434909A CN113434909A CN202110711660.0A CN202110711660A CN113434909A CN 113434909 A CN113434909 A CN 113434909A CN 202110711660 A CN202110711660 A CN 202110711660A CN 113434909 A CN113434909 A CN 113434909A
- Authority
- CN
- China
- Prior art keywords
- attribute
- data
- chain
- value
- hash
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 18
- 239000006260 foam Substances 0.000 claims 2
- 229960005486 vaccine Drugs 0.000 claims 2
- 230000004048 modification Effects 0.000 description 3
- 238000012986 modification Methods 0.000 description 3
- 239000002699 waste material Substances 0.000 description 2
- 230000004075 alteration Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000006467 substitution reaction Methods 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/64—Protecting data integrity, e.g. using checksums, certificates or signatures
Abstract
The invention discloses a data on-demand evidence storing method based on a block chain, which relates to the field of the block chain and comprises the following steps: s1, establishing an attribute dictionary table, wherein fields are data types, data attribute names and whether to uplink; s2, based on step S1, the data type and all attribute names of the source data to be stored are stored in the attribute field table. After the uplink is constructed by the method, when the data on each chain is used in the downlink service process, whether the data is falsified can be quickly judged, and specific meaningful attributes are checked to be falsified, and the attribute storage space on the chain and the attribute comparison time are greatly saved.
Description
Technical Field
The invention relates to a data on-demand evidence storing method, in particular to a data on-demand evidence storing method based on a block chain.
Background
The block chain data storage certificate is to store data to a block chain, so that the purposes of tamper resistance, traceability and trustable data source are achieved; the data can be in any file form such as characters, videos, audio pictures, database records and the like; in order to realize quick transaction, under general conditions, chain uplink and downlink cooperative work is adopted, a mode of separating files from hash values is adopted, only the hash values of the files are stored on a chain, and the original files are stored under the chain; if only the hash value of the file is calculated and compared with the hash value on the chain, whether the file is tampered or not is known; however, the limitation of this method is only to determine whether the entire file has been tampered with, and if a more specific tampering position is desired to be known, the file needs to be further split into multiple attributes, so that the hash value can be compared with each attribute, and it can be known which attribute of the file has been tampered with; generally, all attributes of a file are calculated and hashed and stored in a chain, so that which attribute of the file is tampered can be accurately judged, but a problem is caused here, that is, all attributes of the file are not necessarily meaningful, and for a database record, attributes which have no direct relation with actual services, such as latest modification time and latest synchronization time of the database record, are not meaningful if tampered, and waste of storage space on the chain and waste of time for calculating the attribute hash value are increased.
Disclosure of Invention
The invention aims to provide a data on-demand evidence storing method based on a block chain, which aims to finely judge which attribute is tampered after data is tampered after the data is stored on the block chain, and the tampered attribute has practical business significance.
In order to achieve the purpose, the invention provides the following technical scheme: a data on-demand evidence storage method based on a blockchain, the method comprising the steps of:
s1, establishing an attribute dictionary table, wherein fields are data types, data attribute names and whether to uplink;
s2, based on the step S1, storing the data type and all attribute names of the source data needing to be stored into an attribute field table;
s3, based on the step S2, setting which data attribute names of the data type need to chain the chain certificate according to the requirement, and modifying the attribute needing to chain the chain certificate to determine whether the chain field in the attribute dictionary table is yes;
s4, based on the step S3, extracting the attribute name and the corresponding attribute value of the uplink field of the source data, respectively naming the attribute name and the corresponding attribute value as key and value, calculating the hash value of the value through a hash algorithm, recording the hash value as hash, and storing the key and the hash uplink certificate.
As an optimal technical solution of the present invention, data attribute names need to be collected before the attribute dictionary table is established in S1, and the data attribute fields in the attribute dictionary table include whether the data attribute names and attributes are linked up.
As a preferred technical solution of the present invention, the hash in the step S4 is value.
Compared with the prior art, the invention has the beneficial effects that:
the invention stores all attribute names and uplink or not fields of each data type in the attribute dictionary table, controls which attributes need to be uplink stored certificate according to the needs of the service, and calculates the attribute value corresponding to the attribute name needing the uplink stored certificate once Hash, so that after the uplink is constructed by the method, when the data on each chain is used in the downlink service process, whether the data is falsified can be quickly judged, and meanwhile, which meaningful attribute is falsified can be checked, and the attribute storage space on the chain and the attribute comparison time are greatly saved.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The invention provides a technical scheme of a data on-demand evidence storing method based on a block chain, which comprises the following steps: a data on-demand evidence storage method based on a blockchain, the method comprising the steps of:
s1, establishing an attribute dictionary table, wherein fields are data types, data attribute names and whether to uplink;
s2, based on the step S1, storing the data type and all attribute names of the source data needing to be stored into an attribute field table;
s3, based on the step S2, setting which data attribute names of the data type need to chain the chain certificate according to the requirement, and modifying the attribute needing to chain the chain certificate to determine whether the chain field in the attribute dictionary table is yes;
s4, based on the step S3, extracting the attribute name and the corresponding attribute value of the uplink field of the source data, respectively naming the attribute name and the corresponding attribute value as key and value, calculating the hash value of the value through a hash algorithm, recording the hash value as hash, and storing the key and the hash uplink certificate.
In S1, before establishing the attribute dictionary table, data attribute names need to be collected, and the data attribute fields in the attribute dictionary table include the data attribute names and whether the attributes are linked.
The hash in step S4 is value.
Example (b):
s1, establishing an attribute dictionary table, wherein fields are data types, data attribute names and whether to uplink;
s2, based on the step S1, storing the data type and all attribute names of the source data needing to be stored into an attribute field table; for example, the source data needing to store the certificate is related unit-population basic information, all field names are respectively id, name, identification number, remark 1, remark 2, remark 3, creation time, latest modification time, latest synchronization time and other 9 fields, then 9 records are added in the attribute dictionary table, and are respectively data types: relevant units-basic information of population; data attribute name: a field name; whether to uplink: defaulting to no;
s3, based on the step S2, setting which data attribute names of the data type need to chain the chain certificate according to the requirement, and modifying the attribute needing to chain the chain certificate to determine whether the chain field in the attribute dictionary table is yes; for example, in the example of S2, if id, name and id number are required to be key data and are meaningful, the data attribute name id, name and id number corresponding to the basic information about the population, which is the relevant unit of data type, in the attribute dictionary table are set to be yes;
s4, based on the step S3, extracting the attribute name and the corresponding attribute value of the uplink field of the source data, respectively naming the attribute name and the corresponding attribute value as key and value, calculating the hash value of the value through a hash algorithm, recording the hash value as hash, and storing the key and the hash uplink certificate.
In the present invention, unless otherwise explicitly specified or limited, for example, it may be fixedly attached, detachably attached, or integrated; can be mechanically or electrically connected; the terms may be directly connected or indirectly connected through an intermediate, and may be communication between two elements or interaction relationship between two elements, unless otherwise specifically limited, and the specific meaning of the terms in the present invention will be understood by those skilled in the art according to specific situations.
Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that changes, modifications, substitutions and alterations can be made in these embodiments without departing from the principles and spirit of the invention, the scope of which is defined in the appended claims and their equivalents.
Claims (3)
1. A block chain-based data on-demand evidence storing method is characterized in that: the method comprises the following steps:
s1, establishing a property dictionary table, wherein the field is a data type;
s2, based on the step S1, storing the data type and all attribute names of the source data needing to be stored into an attribute field table;
s3, based on the step S2, setting which data attribute names of the data type need to chain the chain certificate according to the requirement, and modifying the attribute needing to chain the chain certificate to determine whether the chain field in the attribute dictionary table is yes;
s4, based on the step S3, extracting the attribute name and the corresponding attribute value of the uplink field of the source data, respectively naming the attribute name and the corresponding attribute value as key and value, calculating the hash value of the value through a hash algorithm, recording the hash value as hash, and storing the key and the hash uplink certificate.
2. A cryogenic foam tank for vaccine delivery according to claim 1, wherein: in S1, before the attribute dictionary table is established, data attribute names need to be collected, and the data attribute fields in the attribute dictionary table include the data attribute names and whether the attributes are linked.
3. A cryogenic foam tank for vaccine delivery according to claim 1, wherein: the hash in the step S4 is value.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110711660.0A CN113434909B (en) | 2021-06-25 | 2021-06-25 | Data on-demand evidence-storing method based on blockchain |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110711660.0A CN113434909B (en) | 2021-06-25 | 2021-06-25 | Data on-demand evidence-storing method based on blockchain |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113434909A true CN113434909A (en) | 2021-09-24 |
CN113434909B CN113434909B (en) | 2023-12-29 |
Family
ID=77754482
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110711660.0A Active CN113434909B (en) | 2021-06-25 | 2021-06-25 | Data on-demand evidence-storing method based on blockchain |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113434909B (en) |
Citations (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107180350A (en) * | 2017-03-31 | 2017-09-19 | 唐晓领 | A kind of method of the multi-party shared transaction metadata based on block chain, apparatus and system |
CN109558381A (en) * | 2018-12-03 | 2019-04-02 | 北京中网易企秀科技有限公司 | A kind of data processing method and device |
CN109617964A (en) * | 2018-12-12 | 2019-04-12 | 成都四方伟业软件股份有限公司 | Big data storage method and device based on block chain |
CN109788309A (en) * | 2018-12-25 | 2019-05-21 | 陕西优米数据技术有限公司 | Video file piracy detection method and system based on block chain technology |
CN110009356A (en) * | 2019-04-16 | 2019-07-12 | 北京艾摩瑞策科技有限公司 | A kind of business datum cochain method and its system based on block chain |
CN110190949A (en) * | 2019-05-31 | 2019-08-30 | 杭州复杂美科技有限公司 | For the method and system of big data quantity resource cochain, equipment and storage medium |
CN110457957A (en) * | 2019-08-22 | 2019-11-15 | 腾讯科技(深圳)有限公司 | Information processing method, device, electronic equipment and the medium of electronic bill |
CN111259070A (en) * | 2019-11-28 | 2020-06-09 | 国网山东省电力公司 | Method and related device for storing and acquiring service data |
CN111274252A (en) * | 2020-01-08 | 2020-06-12 | 平安科技(深圳)有限公司 | Block chain data chaining method, device, storage medium and server |
CN111767559A (en) * | 2020-06-23 | 2020-10-13 | 江苏荣泽信息科技股份有限公司 | Field level encryption blockchain data |
CN111859470A (en) * | 2020-09-23 | 2020-10-30 | 支付宝(杭州)信息技术有限公司 | Business data chaining method and device |
CN112017763A (en) * | 2020-09-03 | 2020-12-01 | 平安国际智慧城市科技股份有限公司 | Medical image data transmission method, device, equipment and medium |
WO2021008113A1 (en) * | 2019-07-18 | 2021-01-21 | 创新先进技术有限公司 | Data evidence storage method, data verification method and related apparatuses based on blockchain |
CN112559625A (en) * | 2020-12-09 | 2021-03-26 | 国网安徽省电力有限公司物资分公司 | Power business material information storage system and method based on block chain |
CN112699081A (en) * | 2020-10-23 | 2021-04-23 | 中国工商银行股份有限公司 | File self-certification method and device based on block chain |
CN112948898A (en) * | 2021-03-31 | 2021-06-11 | 北京众享比特科技有限公司 | Method for preventing application data from being tampered in block chain and security module |
CN112988901A (en) * | 2021-04-06 | 2021-06-18 | 湖北央中巨石信息技术有限公司 | Evidence-storing data chaining method based on block chain |
-
2021
- 2021-06-25 CN CN202110711660.0A patent/CN113434909B/en active Active
Patent Citations (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107180350A (en) * | 2017-03-31 | 2017-09-19 | 唐晓领 | A kind of method of the multi-party shared transaction metadata based on block chain, apparatus and system |
CN109558381A (en) * | 2018-12-03 | 2019-04-02 | 北京中网易企秀科技有限公司 | A kind of data processing method and device |
CN109617964A (en) * | 2018-12-12 | 2019-04-12 | 成都四方伟业软件股份有限公司 | Big data storage method and device based on block chain |
CN109788309A (en) * | 2018-12-25 | 2019-05-21 | 陕西优米数据技术有限公司 | Video file piracy detection method and system based on block chain technology |
CN110009356A (en) * | 2019-04-16 | 2019-07-12 | 北京艾摩瑞策科技有限公司 | A kind of business datum cochain method and its system based on block chain |
CN110190949A (en) * | 2019-05-31 | 2019-08-30 | 杭州复杂美科技有限公司 | For the method and system of big data quantity resource cochain, equipment and storage medium |
WO2021008113A1 (en) * | 2019-07-18 | 2021-01-21 | 创新先进技术有限公司 | Data evidence storage method, data verification method and related apparatuses based on blockchain |
CN110457957A (en) * | 2019-08-22 | 2019-11-15 | 腾讯科技(深圳)有限公司 | Information processing method, device, electronic equipment and the medium of electronic bill |
CN111259070A (en) * | 2019-11-28 | 2020-06-09 | 国网山东省电力公司 | Method and related device for storing and acquiring service data |
CN111274252A (en) * | 2020-01-08 | 2020-06-12 | 平安科技(深圳)有限公司 | Block chain data chaining method, device, storage medium and server |
CN111767559A (en) * | 2020-06-23 | 2020-10-13 | 江苏荣泽信息科技股份有限公司 | Field level encryption blockchain data |
CN112017763A (en) * | 2020-09-03 | 2020-12-01 | 平安国际智慧城市科技股份有限公司 | Medical image data transmission method, device, equipment and medium |
CN111859470A (en) * | 2020-09-23 | 2020-10-30 | 支付宝(杭州)信息技术有限公司 | Business data chaining method and device |
CN112699081A (en) * | 2020-10-23 | 2021-04-23 | 中国工商银行股份有限公司 | File self-certification method and device based on block chain |
CN112559625A (en) * | 2020-12-09 | 2021-03-26 | 国网安徽省电力有限公司物资分公司 | Power business material information storage system and method based on block chain |
CN112948898A (en) * | 2021-03-31 | 2021-06-11 | 北京众享比特科技有限公司 | Method for preventing application data from being tampered in block chain and security module |
CN112988901A (en) * | 2021-04-06 | 2021-06-18 | 湖北央中巨石信息技术有限公司 | Evidence-storing data chaining method based on block chain |
Non-Patent Citations (1)
Title |
---|
肖宗水: "面向智能政务的业务流程协同关键问题研究", 中国博士学位论文全文数据库, pages 102 * |
Also Published As
Publication number | Publication date |
---|---|
CN113434909B (en) | 2023-12-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109325030B (en) | Message processing method, device, computer equipment and storage medium | |
CN102202073B (en) | Distributed system and data synchronization method thereof | |
US20100212017A1 (en) | System and method for efficient trust preservation in data stores | |
WO2011094647A1 (en) | System and method for aggregation and association of professional affiliation data with commercial data content | |
CN112052247A (en) | Index updating system, method and device of search engine, electronic equipment and storage medium | |
US20110167041A1 (en) | Method and device for maintaining a changelog in data synchronization | |
CN106528794B (en) | Electronic file filing method based on archive management system | |
CN111625540A (en) | Method and device for verifying data synchronization integrity of relational database | |
CN109634959A (en) | A kind of block index method and block index device | |
CN112988901A (en) | Evidence-storing data chaining method based on block chain | |
CN102722584A (en) | Data storage system and method | |
CN105447168A (en) | Method for restoring and recombining fragmented files in MP4 format | |
CN105760485A (en) | Financial data extraction method and system | |
US20160335259A1 (en) | Storing structured information | |
CN106980514B (en) | Configuration data updating method and device | |
CN113434909A (en) | Data on-demand evidence storing method based on block chain | |
CN111414417B (en) | Video copyright management method based on block chain | |
CN112948898A (en) | Method for preventing application data from being tampered in block chain and security module | |
CN110866004A (en) | Method for checking whether block chain filing data is tampered | |
CN112329029A (en) | Block chain-based electronic archive file safe storage method and system | |
CN107656943B (en) | Task query method and server | |
CN111797240A (en) | Enterprise entity unique ID creation method, storage medium, electronic device and system | |
US11238071B1 (en) | Transformation of telecommunication records | |
CN112269829B (en) | Block chain data management method based on resource recovery system platform | |
CN114860806A (en) | Data query method and device of block chain, computer equipment and storage medium |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |