The present application relates to the technical field of
blockchain and
file sharing, in particular to a
file sharing system and method based on
blockchain and IPFS, the method comprising: performing environment deployment; selecting a specified
file sharing mode: divided into sharing for all users and sharing for specified authorized users; selecting the specified file sharing mode according to network and environment conditions, which can be divided into online sharing and offline sharing.Compared with the prior art, the present application has the advantages that: by uploading the file inspection information and the file sharing operation process node in the form of
JSON data to the
blockchain for storage, the authenticity of the file received by the file
receiver can be verified, and the file sharing operation can also leave traces, which is convenient for subsequent auditing and
verification; the risk of losing and tampering with the shared file is reduced, and a large amount of storage space can be saved; the transmission efficiency and stability are improved, and a large amount of
broadband resources can be saved; the safety and privacy of the file are ensured without affecting the efficiency.