The invention discloses a decentralized data storage method and
system based on a block chain, and the method is characterized in that the method comprises the steps: generating data on a local device by a user, and encrypting the data through employing an asymmetric
encryption algorithm; dividing the encrypted data into a plurality of fragments, recording
metadata of each fragment on a block chain by using an intelligent contract, and storing actual data of the fragments in a decentralized storage network; the user performs access
authorization on the encrypted data through the private key, and an access request is verified by the
smart contract; and when the user requests to recover the data, the
smart contract verifies the request and provides a fragment storage position, and the user downloads the fragments from the decentralized storage network, decrypts and combines the fragments by using the private key, and recovers the
original data. According to the method, a hierarchical
storage structure and a fragmentation technology are adopted, the capacity of
processing a large amount of data by the
system can be greatly improved, the
utilization rate of storage resources is automatically optimized through the intelligent contract, unnecessary redundant data storage is reduced, and therefore the storage cost is remarkably reduced, and
economic benefits are improved.