A Distributed Storage and Management Method for Hypertext Files and Metadata Based on Consortium Chain
Hongliang Mao, Fumin Guo, Li Shi, Boxuan Shi · 2024
This article provides a distributed storage and management method for hypertext files and metadata based on consortium chains. By receiving storage requests from storage users, including files to be stored, request information, and the number of storage copies, the files to be stored are fragmented into N shard sets. For each shard set, the encrypted data set and hash array corresponding to the shard set are obtained by encrypting the shards and calculating the hash of the encrypted shards. The root hash is returned to the storage user, and the encrypted data set and hash array are sent to the distributed storage system. At the same time, based on the request information and the root hash corresponding to all shard sets, we generate transaction metadata, generate transaction transactions by calling smart contracts or transactions, and broadcast them to the blockchain network. This method solves the problems of low query efficiency, difficulty in supporting fuzzy search, and complex data storage management logic in distributed storage systems.