CN111159303A - Method for reducing block chain data storage cost - Google Patents
Method for reducing block chain data storage cost Download PDFInfo
- Publication number
- CN111159303A CN111159303A CN202010012563.8A CN202010012563A CN111159303A CN 111159303 A CN111159303 A CN 111159303A CN 202010012563 A CN202010012563 A CN 202010012563A CN 111159303 A CN111159303 A CN 111159303A
- Authority
- CN
- China
- Prior art keywords
- data
- block
- node
- information
- store
- 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
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/27—Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/24—Querying
- G06F16/245—Query processing
- G06F16/2455—Query execution
- G06F16/24552—Database cache management
-
- 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/602—Providing cryptographic facilities or services
-
- 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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0602—Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
- G06F3/0608—Saving storage space on storage systems
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0602—Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
- G06F3/0614—Improving the reliability of storage systems
- G06F3/0619—Improving the reliability of storage systems in relation to data integrity, e.g. data losses, bit errors
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0638—Organizing or formatting or addressing of data
- G06F3/0644—Management of space entities, e.g. partitions, extents, pools
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0668—Interfaces specially adapted for storage systems adopting a particular infrastructure
- G06F3/067—Distributed or networked storage systems, e.g. storage area networks [SAN], network attached storage [NAS]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q40/00—Finance; Insurance; Tax strategies; Processing of corporate or income taxes
- G06Q40/04—Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
Abstract
The invention provides a method for reducing the storage cost of block chain data, which reduces the storage cost of the whole block chain system by distinguishing data nodes and non-data nodes on the premise of ensuring the non-tampering property of the data. The detailed information of the block is only stored by the data node, and the non-data node only stores a head field (header) and a public key of a block producer and caches some temporary transaction information, so that the data redundancy in the block chain is greatly reduced, the storage space occupied by the block data on the block chain is reduced, and the data storage cost is further reduced.
Description
Technical Field
The invention belongs to the technical field of block chains, and relates to a method for reducing the data storage cost of a block chain.
Background
The blockchain is essentially a reliable database maintained in a decentralized manner, and is a string of data blocks generated by using a cryptographic method, so that data added to the blockchain is permanently stored, the data is not easy to be tampered once stored, the data is public to all persons, all information is highly transparent, and transaction records can be tracked. It provides us with a globally trusted notepad and global clock that is updated when new tiles occur, and each tile can also be uniquely identified by the tile's header hash value.
According to the operation mechanism of the blockchain, data need to be continuously uploaded to the blockchain, the data are stored in each database on the blockchain, a large amount of repeated and redundant data exist in the stored data, a large amount of data storage resources are occupied, meanwhile, the blockchain data storage cost is high, the high data storage cost is not beneficial to the popularization of the blockchain technology, and therefore, a method capable of reducing the data storage cost is urgently needed to be provided to solve the problem.
Disclosure of Invention
In view of the above problems in the prior art, an object of the present invention is to provide a method for reducing the storage cost of blockchain data, so as to solve the problem of excessively high storage cost of blockchain data, and reduce the storage cost of blockchain data while ensuring that the blockchain data is not tampered.
In order to achieve the purpose, the technical scheme adopted by the invention is as follows:
a method for reducing storage cost of block chain data comprises setting a plurality of data nodes for storing block data, wherein the rest nodes do not need to store complete backup of all blocks, and only need to cache latest transaction information according to needs. Identity information of a block data uploader is recorded and stored, and only the block data exists at the data center and is not stored elsewhere.
Further, the non-data node stores header fields (headers) and block producer public key information for all blocks, but does not store detailed information for the blocks. And the data node will store all the block information.
Further, the producer of the block may be any type of node, with the data node assuming the responsibility for storing the data.
Further, when the non-data node acquires data from the data node, it verifies whether the block information is consistent with the locally stored block header and the block producer.
The method of the invention is to set a plurality of data nodes for storing block data, and the non-data nodes only store a header field (header) and a public key of a block producer and cache some temporary transaction information. The block detailed information is only stored in the data nodes, so that repeated data and excessive data are not generated, the storage space occupied by the block data on the block chain is reduced, and the data storage cost is reduced. In the method, as the non-data node reserves the basic characteristics (a header, a block producer and the like) of the block, the private key information of the block producer cannot be forged after the data node falsifies the data, the falsified data cannot trust other users, so that the behavior of falsifiing the block data is meaningless, and the non-tampering property of the block data is ensured.
Detailed Description
In order to make the purpose and technical solution of the present invention more apparent, the present invention is further described in detail with reference to the following examples. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention. The following describes the application of the present invention in detail.
The invention provides a method for reducing the storage cost of blockchain data, wherein a blockchain per se comprises a large number of nodes, the nodes on the blockchain are divided into data nodes and non-data nodes, the non-data nodes store header fields of all blocks and public key information of block producers but do not store detailed information of the blocks, the data nodes store information of all the blocks, and the block producers can be nodes of any type but the data nodes take on the storage responsibility of the data. According to the method of the invention, only data nodes are used for storing block data, non-data nodes will only store header fields (headers) and block producer public keys and cache some temporary transaction information, record and store the identity information of block data producers, and only block data will exist at the data center and not stored elsewhere.
According to the method of the present invention, the storage in other places means that the storage or backup of the block data is not performed in any place except the data node, that is, according to the method of the present invention, the block data uploaded to the block chain by the uploader is stored only once at the data node without performing additional backup storage. The data node established by the invention can ensure the physical security of the block data, and can not cause the loss of the block data, other users needing to use the block data only need to access the block data through the data node, and the method of the invention has no influence on the convenience of using the block data by the users, and can also ensure the uniqueness of the block data stored on the block chain.
Generally, the identity information of the uploader refers to a public key or a private key of the uploader, which are unique identifiers of the identity of the uploader, and through the identity identifiers, other users in the blockchain can know exactly who uploads the block data to be stored in the blockchain; in other words, if there is no such identity, the upload and storage operations of the block data cannot be performed, which also ensures the security of the block data.
The invention sets the data node for storing the block data, the non-data node only stores the header field (header) and the public key of the block uploader and caches some temporary transaction information, and records and stores the identity information of the block data uploader. The block data uploading device, namely the block packer, uploads the block data to be uploaded to the data node only, and does not need to store or backup the block data at other places on the block chain, and one block data is stored on the block chain only once, so that repeated data or redundant data cannot be generated, the storage space occupied by the block data on the block chain is reduced, and the data storage cost is reduced.
The establishment of the data nodes can be completed by adopting the mature prior art, the data nodes set by adopting the data storage method in the prior art can completely ensure the security of the block data, the block data cannot be lost, but the block data still has the risk of being maliciously tampered. When the non-data node acquires data from the data node, whether the block information of the non-data node is consistent with the locally stored block header and the block producer or not is verified. Moreover, since the non-data node retains the basic features (the header, the block producer, and the like) of the block, the data node cannot forge the private key information of the block producer after tampering the data, and the tampered data cannot trust other users, which leads to meaningless behavior of tampering the block data, thereby ensuring the non-tamperability of the block data.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the present invention in any way, and any modifications or equivalent variations made in accordance with the technical spirit of the present invention are within the scope of the present invention as claimed.
Claims (4)
1. A method for reducing storage cost of block chain data is characterized in that the method comprises the steps of setting a plurality of data nodes for storing block data, wherein the rest nodes do not need to store complete backup of all blocks, only need to cache latest transaction information according to needs, record and store identity information of block data uploaders, and only store the block data at a data center without storing the block data at other places.
2. The method of claim 1, wherein the non-data node stores header fields and block producer public key information for all blocks, but does not store detailed information for the blocks; and the data node will store all the block information.
3. The method of claim 2, wherein the uploader of blocks can be any type of node, but the data node assumes responsibility for storing the data.
4. The method of claim 2 wherein the non-data node, upon acquiring data from the data node, verifies that its block information is consistent with the locally stored block header and block producer.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010012563.8A CN111159303A (en) | 2020-01-07 | 2020-01-07 | Method for reducing block chain data storage cost |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010012563.8A CN111159303A (en) | 2020-01-07 | 2020-01-07 | Method for reducing block chain data storage cost |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111159303A true CN111159303A (en) | 2020-05-15 |
Family
ID=70561759
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010012563.8A Pending CN111159303A (en) | 2020-01-07 | 2020-01-07 | Method for reducing block chain data storage cost |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111159303A (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107077674A (en) * | 2016-12-29 | 2017-08-18 | 深圳前海达闼云端智能科技有限公司 | Transaction verification processing method and device and node equipment |
CN107231351A (en) * | 2017-05-25 | 2017-10-03 | 远光软件股份有限公司 | The management method and relevant device of electronic certificate |
CN108696502A (en) * | 2018-03-27 | 2018-10-23 | 深圳市网心科技有限公司 | Block chain node authority control method, block catenary system and storage medium |
CN109492431A (en) * | 2018-10-31 | 2019-03-19 | 国网河南省电力公司信息通信公司 | The storage method and its system and electronic equipment of financial data |
CN110099055A (en) * | 2019-04-29 | 2019-08-06 | 北京工业大学 | Internet of Things service architecture based on lightweight block chain node |
CN110543788A (en) * | 2019-09-11 | 2019-12-06 | 腾讯科技(深圳)有限公司 | Data storage method, data storage device, computer-readable storage medium and computer equipment |
-
2020
- 2020-01-07 CN CN202010012563.8A patent/CN111159303A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107077674A (en) * | 2016-12-29 | 2017-08-18 | 深圳前海达闼云端智能科技有限公司 | Transaction verification processing method and device and node equipment |
CN107231351A (en) * | 2017-05-25 | 2017-10-03 | 远光软件股份有限公司 | The management method and relevant device of electronic certificate |
CN108696502A (en) * | 2018-03-27 | 2018-10-23 | 深圳市网心科技有限公司 | Block chain node authority control method, block catenary system and storage medium |
CN109492431A (en) * | 2018-10-31 | 2019-03-19 | 国网河南省电力公司信息通信公司 | The storage method and its system and electronic equipment of financial data |
CN110099055A (en) * | 2019-04-29 | 2019-08-06 | 北京工业大学 | Internet of Things service architecture based on lightweight block chain node |
CN110543788A (en) * | 2019-09-11 | 2019-12-06 | 腾讯科技(深圳)有限公司 | Data storage method, data storage device, computer-readable storage medium and computer equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106951185B (en) | health detection data management system and method based on block chain technology | |
CN107391758B (en) | Database switching method, device and equipment | |
TWI733514B (en) | A storage system, a network node of a blockchain network, and a blockchain-based log-structured storage system | |
TWI737392B (en) | Computer-implemented method for processing blockchain data by a blockchain node of a blockchain network in a trusted execution environment (tee), system communicating shared blockchain data and apparatus for communicating shared blockchain data | |
CN110797099B (en) | Medical data sharing method and system based on block chain | |
CN107220559B (en) | Encryption storage method for non-tamperable file | |
TWI729880B (en) | Shared blockchain data storage based on error correction coding in trusted execution environments | |
US20180081586A1 (en) | Migrating data in a distributed storage network | |
CN113961535A (en) | Data trusted storage sharing system and method based on block chain | |
CN113326317A (en) | Block chain evidence storing method and system based on isomorphic multi-chain architecture | |
CN106603561B (en) | Block level encryption method and more granularity deduplication methods in a kind of cloud storage | |
TW202111585A (en) | Log-structured storage systems | |
CN108923932A (en) | A kind of decentralization co-verification model and verification algorithm | |
TW202113580A (en) | Log-structured storage systems | |
CN108810112B (en) | Node synchronization method and device for market supervision block chain system | |
WO2018032375A1 (en) | Survivable storage system and method for block chain | |
CN109815748A (en) | A kind of centre data source method for monitoring based on block chain | |
JP6617253B1 (en) | Document management system | |
US20200364373A1 (en) | File verification method, file verification system and file verification server | |
Wang et al. | Data Security Storage Model of the Internet of Things Based on Blockchain. | |
CN111352770A (en) | Block chain backup system, backup method, block chain verification method and block chain verification system | |
CN113986143A (en) | Block chain log storage-oriented high-reliability low-overhead data storage method | |
CN101785006A (en) | Method and apparatus for encoding and decoding multimedia data | |
Iftikhar et al. | A survey on reversible watermarking techniques for relational databases | |
CN111159303A (en) | Method for reducing block chain data storage cost |
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 |