| In recent years,as data has become more and more valuable,open shared data has become an inevitable trend.However,the current security issues in data sharing have made the level of data sharing around the world far below expectations.In addition to the usual data security protection issues,there are two types of data sharing problems that are difficult to solve at present.One is the problem of internal personnel leaking and the other is the leakage of third-party cooperation organizations.According to these problems,serious cooperation obstacles and waste of resources have arisen,which has brought bottlenecks to the development of big data.Based on the decentralization of blockchain,a blockchain-based log storage system(reflection-chain)is designed.Firstly,the reading and writing control framework is designed.The system is divided into two modules: the main chain and the reflection-chain.The main chain is responsible for data storage while the reflection-chain is responsible for log storage.The listener is set on the main chain module to intercept the data reading behavior to achieve the ability to give data traceability.Secondly,a hybrid storage strategy is proposed.By decomposing the data into data hash and other parts of the data,and storing the data hash and other parts of the data in the blockchain and other storage media respectively,the purpose of reducing the storage overhead is achieved.Finally,a cache enhancement strategy is proposed.By defining data conflicting write requests and filtering such requests through filters,the purpose of improving the write performance of the main chain module is achieved.Based on the simulation experiment environment,a blockchain-based log storage system is implemented.The holistic test of the reflection-chain was carried out,and the hybrid storage strategy and the cache enhancement strategy were tested in modules.The experimental results show that through the reading and writing control framework,the reflection-chain can meet the requirements of read and write performance constraints,validity and reliability constraints.With mixing storage policies,75 percentage of log storage overhead can be reduced.Through the cache enhancement strategy,the data read and write performance can be maximized by 90 percentage. |