| In the information age,reliable and privacy-preserving data storage and distribution is a critical challenge,requiring the assurance that data is not tampered with or eavesdropped on during storage and transmission.Using blockchain to store important files is a very promising solution.With the continuous development of blockchain technology,it has broken through the financial field and entered the intelligent field,namely Blockchain 3.0.Blockchain 3.0 will confirm,measure,and store the ownership of every piece of information and byte representing value in the internet,greatly expanding the application scenarios of blockchain technology beyond digital currency.Blockchain file storage is one of the hot topics in blockchain applications.The decentralized,tamper-resistant,and highly redundant storage characteristics of blockchain are well-suited for storing high-value data.However,traditional blockchainbased file systems have scalability issues and cannot support the storage of large amounts of data on the chain,while it is difficult to store blockchain on commonly used devices.To address these issues,this paper proposes a coded blockchain file storage system solution that uses errorcorrecting codes.The main content of this paper is as follows:(1)The proposed system,called 4S-CPBFT,is a secure server-client storage system based on coded practical Byzantine fault tolerance.The system proposes a coding file storage scheme(CFS)and a coding PBFT consensus protocol(C-PBFT).The CFS scheme uses error-correcting coding technology,and the server nodes encode the file into coding fragments.The 4S-CPBFT system has two chains: Chain 1 stores the original file,and the blockchain nodes are composed of server nodes;Chain 2 stores the coding fragments,and the blockchain nodes are composed of leader nodes(elected from the server nodes)and client nodes.The CFS scheme also designs a coding Merkel tree(CMT)to verify the legitimacy of coding fragments and achieve file recovery requirements by decoding the file.In addition,the C-PBFT consensus protocol is based on the PBFT consensus protocol and is used to distribute data in the 4S-CPBFT system.(2)To address the scalability issues of the 4S-CPBFT system,dynamic coding allocation algorithms and scalable CMT construction algorithms are designed.The system’s scalability requirements are met,and file decoding is optimized.A security analysis of the system is conducted.(3)Simulation experiments are conducted to verify the system’s storage overhead and communication overhead in the C-PBFT consensus and the RS error-correcting encoder.The results show that the storage overhead of the 4S-CPBFT system is reduced from O(n)to O(1)compared to traditional blockchain,effectively solving the scalability problem when using blockchain for file storage.The C-PBFT consensus protocol reduces the communication overhead when distributing data by up to 12.7 times.In addition,the designed RS errorcorrecting encoder realizes file encoding and ensures the privacy of the encoding data. |