| Currently,blockchain technology has formed a more complete technology stack.It is similar to the new generation of Internet technologies,such as artificial intelligence,cloud computing and the Internet of Things.It relies on existing technologies with original combinations and innovations to achieve unrealized functions.However,as the number of users using blockchain continues to increase,the volume of transactions increases dramatically,resulting in a sharp increase in the storage space required.Therefore,the problem of blockchain storage scaling needs to be solved.In this paper,in order to solve the storage limitation problem of blockchain,we adopt two ways of on-chain scaling and offchain scaling respectively,study the corresponding solutions,and propose a data storage framework based on the combination of Hyperledger Fabric and Inter Planetary File System and a ring-overlap storage scaling mechanism for Hyperledger Fabric.A new data storage framework was designed by using Hyperledger Fabric and Inter Planetary File System.The Level DB of Hyperledger Fabric was used to save the smallscale state data,and the Inter Planetary File System was used to save the large-scale transaction data in the ledger.And the original data storage and data query modules were transformed.The new framework effectively expanded the storage capacity of Hyperledger Fabric and alleviated the data inflation of ledger nodes.The experimental results showed that the new framework increased some network latency on the premise of ensuring security,but compared with the scalability of blockchain storage,this cost was acceptable.The ring-overlap mechanism for consortium blockchain was used to scale Hyperledger Fabric.In this scheme,all accounting nodes are divided into clusters,and each cluster contains several nodes;a portion of the entire block data is stored in a cluster.Block data is stored overlappingly on some cluster nodes,and each block is guaranteed to have some copies in a cluster.Theoretical analysis and simulation show that the storage occupied by nodes is significantly reduced in blockchain applications with frequent transactions,and the mechanism can still guarantee data integrity in the case of partial node failures in a single cluster.Furthermore,for transaction-frequent applications,storage space consumption can be significantly reduced without increasing excessive query overhead. |