CN109753823B - Block chain data supervision method, system and computer storage medium - Google Patents
Block chain data supervision method, system and computer storage medium Download PDFInfo
- Publication number
- CN109753823B CN109753823B CN201811511903.0A CN201811511903A CN109753823B CN 109753823 B CN109753823 B CN 109753823B CN 201811511903 A CN201811511903 A CN 201811511903A CN 109753823 B CN109753823 B CN 109753823B
- Authority
- CN
- China
- Prior art keywords
- data
- chain
- block
- hash value
- block data
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Landscapes
- Storage Device Security (AREA)
Abstract
The invention provides a block chain data supervision method, a system and a computer storage medium, and the specific method comprises the steps of constructing a supervision chain; the chain of custody comprises a backbone and an IPFS; carrying out Hash calculation on block data in a supervised service chain to generate a first Hash value, and storing the generated first Hash value to a text space of a main chain; and when tamper-proof confirmation is carried out, carrying out hash calculation on the block data to generate a second hash value, comparing the generated second hash value with the first hash value, and if the hash values are different, indicating that the block data is tampered. Compared with the prior art, the scheme of the invention has the advantages that the service chain and the supervision chain do not need to adopt the same technology, the service chain does not need to adopt the same technology, the application range is wide, and the technology use degree is higher.
Description
Technical Field
The present invention relates to the field of blockchain, and in particular, to a method, a system, and a computer storage medium for monitoring blockchain data.
Background
Only blockchains have a blockchain structure to hold data, although blockchains nominally have the property of being transparent and non-tamper-able. There is still theoretically a possibility of modifying data on the blockchain by means of forking and the like. The user's own trust in maintaining the data on the chain is still questioned, and a third party blockchain is required to perform data validation on the user's chain blocks to ensure that the user's chain has not been tampered with.
Disclosure of Invention
The invention provides a block chain data supervision method, a block chain data supervision system and a computer storage medium, which have the characteristic of higher technical applicability.
The block chain data supervision method provided by the invention comprises the following steps,
constructing a chain of custody; the chain of custody comprises a backbone and an IPFS;
carrying out Hash calculation on block data in a supervised service chain to generate a first Hash value, and storing the generated first Hash value to a text space of a main chain;
and when tamper-proof confirmation is carried out, carrying out hash calculation on the block data to generate a second hash value, comparing the generated second hash value with the first hash value, and if the hash values are different, indicating that the block data is tampered.
The method further comprises the steps of saving the number of data in the block data block to a text space of a main chain; and when tamper-proofing confirmation is carried out, comparing whether the number of the data in the block data block is consistent with the number of the data stored in the text space, and if not, indicating that the block data is tampered.
The method also includes saving the tile data to an IPFS of a chain of custody.
The method further comprises the steps of obtaining a file index of the block data saved in the IPFS, and saving the file index to a text space of the main chain.
The method further comprises saving the block summary information of the block data to a text space of the main chain.
The block chain data supervision system provided by the invention comprises,
chain of custody, including backbone and IPFS;
the first hash value acquisition module is used for carrying out hash calculation on block data in the supervised service chain to generate a first hash value and storing the generated first hash value to a text space of the main chain;
and the first tampering judgment module is used for carrying out hash calculation on the block data to generate a second hash value, comparing the generated second hash value with the first hash value, and if the hash values are different, indicating that the block data is tampered.
Also comprises the following steps of (1) preparing,
the data number acquisition module is used for acquiring the data number in the block data block and storing the data number to a text space of the main chain;
and the second tampering judgment module is used for comparing whether the number of the data in the block data block is consistent with the number of the data stored in the text space or not, and if not, the block data is tampered.
The system also comprises a block data acquisition module, and the block data is stored in the IPFS of the chain of custody.
The system also comprises a file index acquisition module for acquiring the file index of the block data stored in the IPFS and storing the file index to the text space of the main chain.
The system also comprises a block abstract information acquisition module for acquiring the block abstract information of the block data and storing the block abstract information to the text space of the main chain.
According to the present invention there is provided a computer storage medium storing a computer program capable of being loaded by a processor and performing any of the methods described above.
Compared with the prior art, the scheme of the invention has the advantages that the service chain and the supervision chain do not need to adopt the same technology, the service chain does not need to adopt the same technology, the application range is wide, and the technology use degree is higher.
Drawings
FIG. 1 is a diagram illustrating a chain of custody architecture according to the present invention.
FIG. 2 is a flow chart illustrating a method for storing data according to an embodiment of the invention.
FIG. 3 is a block diagram of a chain of custody and a chain of services according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Any feature disclosed in this specification (including any accompanying drawings) may be replaced by alternative features serving equivalent or similar purposes, unless expressly stated otherwise. That is, unless expressly stated otherwise, each feature is only an example of a generic series of equivalent or similar features.
The block chain data supervision method provided by the invention comprises the following steps,
constructing a chain of custody; as shown in FIG. 1, the chain of custody comprises a backbone and an IPFS;
carrying out Hash calculation on block data in a supervised service chain to generate a first Hash value, and storing the generated first Hash value to a text space of a main chain;
and when tamper-proof confirmation is carried out, carrying out hash calculation on the block data to generate a second hash value, comparing the generated second hash value with the first hash value, and if the hash values are different, indicating that the block data is tampered.
The block of the main chain is composed of transaction records, the transaction records comprise transaction information and text information, and the text space is a storage space for storing the text information in the transaction records. Performing hash calculation on block data of a managed existing service chain to generate a first hash value, storing the generated first hash value in a text space of a main chain, calculating the hash value of the block data again to obtain a second hash value when tamper-proof confirmation is required, wherein if the first hash value and the second hash value are the same, the block data is not tampered, and if the first hash value and the second hash value are different, the block data is tampered. The realization of the scheme of the invention does not need to adopt the same technology for the service chain and the supervision chain, and does not need to adopt the same technology between the service chains, thereby having wide application range and higher technical applicability.
As an embodiment of the present invention, the method further includes saving the number of data pieces in the block data block to a text space of the main chain; and when tamper-proofing confirmation is carried out, comparing whether the number of the data in the block data block is consistent with the number of the data stored in the text space, and if not, indicating that the block data is tampered. As an embodiment of the present invention, if there is a mismatch between the hash value and the number of data pieces, it indicates that the block data is tampered, and as a specific embodiment, the hash value may be compared first and then the number of data pieces, or the number of data pieces may be compared first and then the hash value is compared, or they may be compared separately and simultaneously.
As an embodiment of the present invention, the method further comprises saving the block data to an IPFS of a chain of custody. As an embodiment of the present invention, the block data is stored, on one hand, when the block data is stored in a block, the original data may be lost, and the stored block data can be used as a backup of the lost data; on the other hand, if the block data is tampered with, the additionally stored block data can be used as evidence of tampering. As the embodiment of the invention, the block data is stored in the IPFS of the chain of custody, so that the block data stored in the IPFS cannot be tampered, and the safety and the transparency are ensured.
As an embodiment of the present invention, the method further includes obtaining a file index of the tile data saved to the IPFS, and saving to a text space of the main chain (transaction memo). Different from the storage mode of the file index in the prior art, the file index is stored in the text space of the main chain, so that the stored file index cannot be tampered, and the safety and the transparency are ensured.
As an embodiment of the present invention, the method further includes saving the block summary information of the block data to a text space of the main chain. The invention stores the block abstract information to the text space of the main chain, thereby ensuring that the stored block abstract information cannot be tampered and the safety and the transparency are ensured.
As an embodiment of the present invention, as shown in fig. 2, for block data in a service chain block, first extracting transaction number (i.e. number of data pieces) and block data summary information in the block, and then calculating a first hash value of the block data; thirdly, storing the block data into an IPFS of the chain of custody, and obtaining a stored file index; fourthly, the obtained transaction number, the summary information, the first hash value and the file index are saved to a transaction memo (namely, a text space) of the main chain. The embodiment is only used as a specific implementation, and is not used to limit other schemes for changing the sequence or changing the interaction mode.
As an embodiment of the present invention, the method further includes, as shown in fig. 3, using each service chain under supervision as a parallel subchain of the supervision chain.
In the traditional solution, services are deployed by relying on a single service chain, and the throughput of the system is the throughput of a single service. In the scheme of the invention, each service chain under supervision is taken as a parallel subchain of the supervision chain, a multi-chain solution is adopted, and the supervision chains are organically connected in parallel, so that the supervision chains only need to interact with the service chains, and the ceiling (highest TPS) of the supervision chains is not the number of the services which can be borne at most but the number of the borne service chains. The throughput of the whole architecture is the sum of the throughputs of all the traffic chains interfacing to the chain of custody. And the number of service chains that the chain of custody can theoretically carry is the throughput of the chain of custody itself. This can double the throughput of the entire framework (i.e., the processing power of all chains).
A system for supervising block chain data comprises,
chain of custody, including backbone and IPFS;
the first hash value acquisition module is used for carrying out hash calculation on block data in the supervised service chain to generate a first hash value and storing the generated first hash value to a text space of the main chain;
and the first tampering judgment module is used for carrying out hash calculation on the block data to generate a second hash value, comparing the generated second hash value with the first hash value, and if the hash values are different, indicating that the block data is tampered.
By adopting the scheme of the invention, the existing block chain system can be used without excessive modification, and balance can be obtained between enterprise user data confidentiality and government supervision.
As an embodiment of the present invention, further comprising,
the data number acquisition module is used for acquiring the data number in the block data block and storing the data number to a text space of the main chain;
and the second tampering judgment module is used for comparing whether the number of the data in the block data block is consistent with the number of the data stored in the text space or not, and if not, the block data is tampered.
As an embodiment of the present invention, the system further includes a block data obtaining module, which stores the block data in an IPFS of the chain of custody.
As an embodiment of the present invention, the system further includes a file index obtaining module, which obtains a file index of the tile data saved in the IPFS, and saves the file index to a text space of the main chain.
As an embodiment of the present invention, the system further includes a block summary information obtaining module, which obtains the block summary information of the block data and stores the block summary information in the text space of the main chain.
A computer storage medium storing a computer program that can be loaded by a processor and that executes any of the methods described above.
The technical scheme is that the improvement is completed through an access layer, and the improvement through a bottom layer can be considered between chains of the same technology.
Claims (4)
1. A block chain data supervision method includes,
constructing a chain of custody; the chain of custody comprises a backbone and an IPFS;
storing block data in a service chain into the IPFS;
acquiring a file index of the block data in the IPFS, and storing the file index to a text space of the main chain;
performing hash calculation on block data in the service chain to generate a first hash value and storing the first hash value in the text space; when tamper-proof confirmation is carried out, carrying out hash calculation on the block data in the service chain to generate a second hash value, comparing the generated second hash value with the first hash value, and if the hash values are different, indicating that the block data in the service chain is tampered;
storing the number of data in the corresponding block of the block data in the service chain to the text space; and when tamper-proofing confirmation is carried out, comparing whether the number of the data in the corresponding block is consistent with the number of the data stored in the text space, and if not, indicating that the block data in the service chain is tampered.
2. The method of claim 1, further comprising saving tile summary information of said tile data to said text space.
3. A system for supervising block chain data, comprising,
chain of custody, including backbone and IPFS;
the block data acquisition module is used for storing the block data in the service chain into the IPFS;
the file index acquisition module is used for acquiring a file index of the block data in the IPFS and storing the file index to a text space of the main chain;
the first hash value acquisition module is used for carrying out hash calculation on the block data in the service chain, generating a first hash value and storing the first hash value in the text space;
the first tampering judgment module is used for performing Hash calculation on the block data in the service chain to generate a second Hash value when performing anti-tampering confirmation, comparing the generated second Hash value with the first Hash value, and if the Hash values are different, indicating that the block data is tampered;
the data number acquisition module is used for acquiring the data number in the block corresponding to the block data in the service chain and storing the data number in the text space;
and the second tampering judgment module is used for comparing whether the number of the data of the corresponding block is consistent with the number of the data stored in the text space or not, and if not, the data of the block is tampered.
4. A computer storage medium, characterized in that a computer program is stored which can be loaded by a processor and which performs the method of any of claims 1 to 2.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811511903.0A CN109753823B (en) | 2018-12-11 | 2018-12-11 | Block chain data supervision method, system and computer storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811511903.0A CN109753823B (en) | 2018-12-11 | 2018-12-11 | Block chain data supervision method, system and computer storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109753823A CN109753823A (en) | 2019-05-14 |
CN109753823B true CN109753823B (en) | 2021-11-02 |
Family
ID=66402603
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811511903.0A Active CN109753823B (en) | 2018-12-11 | 2018-12-11 | Block chain data supervision method, system and computer storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109753823B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110365766A (en) * | 2019-07-12 | 2019-10-22 | 全链通有限公司 | Cloud storage method, equipment and computer readable storage medium based on block chain |
CN112269838B (en) * | 2020-11-18 | 2023-07-25 | 网易(杭州)网络有限公司 | Blockchain-based supervision method and device, electronic equipment and storage medium |
CN113065170A (en) * | 2021-04-21 | 2021-07-02 | 山大地纬软件股份有限公司 | Method, system and device for block chain supervision data based on dynamic identification |
Family Cites Families (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106534317B (en) * | 2016-11-17 | 2019-09-03 | 杭州云象网络技术有限公司 | A kind of calamity based on block chain technology is for cloud storage system construction method |
CN107273410B (en) * | 2017-05-03 | 2020-07-07 | 上海点融信息科技有限责任公司 | Block chain based distributed storage |
CN107040384B (en) * | 2017-05-08 | 2019-09-13 | 飞天诚信科技股份有限公司 | A kind of authorizing information method and device based on block chain |
CN107257341B (en) * | 2017-06-21 | 2019-08-16 | 浪潮集团有限公司 | A kind of student status retrospect authentication method based on block chain |
CN107391298B (en) * | 2017-07-06 | 2021-02-09 | 上海策链信息科技有限公司 | Data storage state detection method and device and computer readable storage medium |
CN107545181B (en) * | 2017-08-16 | 2021-04-27 | 上海策赢网络科技有限公司 | Program operating method, terminal, and computer-readable storage medium |
CN107657438B (en) * | 2017-09-18 | 2020-12-04 | 联动优势科技有限公司 | Block chain generation method, data verification method, node and system |
CN107729383B (en) * | 2017-09-18 | 2021-06-29 | 联动优势科技有限公司 | Index library generation method, data verification method, device and platform |
CN107844976B (en) * | 2017-10-25 | 2020-11-13 | 武汉天喻信息产业股份有限公司 | Block chain based deposit certificate application transaction system and method |
CN108573016A (en) * | 2017-12-25 | 2018-09-25 | 北京金山云网络技术有限公司 | A kind of data consistent check method, apparatus, equipment and storage medium |
CN108052649A (en) * | 2017-12-26 | 2018-05-18 | 广州泼墨神网络科技有限公司 | The data managing method and its system of a kind of distributed file system |
CN108462692B (en) * | 2018-01-30 | 2020-09-18 | 合肥工业大学 | Block chain-based data tamper-proof system and method thereof |
CN112767158A (en) * | 2018-02-27 | 2021-05-07 | 创新先进技术有限公司 | Transaction execution method and device based on block chain and electronic equipment |
CN108520464B (en) * | 2018-04-18 | 2022-05-10 | 北京天德科技有限公司 | Real-time automatic supervision reporting system based on traditional block chain |
-
2018
- 2018-12-11 CN CN201811511903.0A patent/CN109753823B/en active Active
Non-Patent Citations (2)
Title |
---|
区块链技术及其在信息安全领域的研究进展;刘敖迪;《软件学报》;20180427;全文 * |
区块链技术的实质_落地条件和应用前景;邓柯;《深圳大学学报(人文社会科学版)》;20180731;全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN109753823A (en) | 2019-05-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10157295B2 (en) | System and method for file authenticity certification using blockchain network | |
CN108351946B (en) | System and method for anonymizing log entries | |
CN110084377B (en) | Method and device for constructing decision tree | |
CN110033243B (en) | Main chain evidence storing method, system and storage medium based on block chain intelligent contract | |
US11277449B2 (en) | Adaptive distributive data protection system | |
CN109753823B (en) | Block chain data supervision method, system and computer storage medium | |
CN110290522B (en) | Risk identification method and device for mobile equipment and computer system | |
CN110035045A (en) | Across the credible management method and device of chain data, electronic equipment | |
BR102014028893B1 (en) | Method for resolving entities from a plurality of documents; and entity resolution system for entity resolution of a plurality of documents | |
CN112970020A (en) | Monitoring device components using distributed ledger | |
CN102067148A (en) | Methods and systems for determining file classifications | |
EP3739493B1 (en) | File verification method, file verification system and file verification server | |
CN110245514B (en) | Distributed computing method and system based on block chain | |
CN113392144A (en) | Museum service data storage and query method and system based on block chain | |
CN109766723A (en) | A kind of block chain data framework, regulatory framework, monitoring and managing method and computer readable storage medium | |
CN113900598A (en) | Block chain based data storage method, device, equipment and storage medium | |
CN109241357A (en) | Chain structure model and its construction method, system and terminal device | |
CN106203164B (en) | Information security big data resource management system based on trust computing and cloud computing | |
CN112217642A (en) | Data encryption sharing method and device, electronic equipment and computer storage medium | |
CN103503388B (en) | A kind of distributed queue's message read method and equipment, system | |
CN106980618B (en) | File storage method and system based on MongoDB distributed cluster architecture | |
CN109063513A (en) | A kind of dynamic data integrity verification method based on Hadoop platform | |
CN114513498B (en) | File transmission verification method, device, computer equipment and storage medium | |
CN113569279B (en) | Data processing method, apparatus, device, medium and computer program product | |
CN116107991A (en) | Container label database construction method and device, storage medium and electronic equipment |
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 |