A distributed cloud storage method, device and storage medium based on IPFS

By splitting and uploading large files in parallel in IPFS distributed cloud storage, and using hash values ​​and blockchain verification, the problem of low file security and insufficient bandwidth usage in cloud storage is solved, and efficient and secure file storage is achieved. and download.

CN113535648BActive Publication Date: 2024-09-03INSPUR ZHUOSHU BIG DATA IND DEV CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110847868.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-07-27
Publication Date
2024-09-03
Estimated Expiration
2041-07-27

AI Technical Summary

Technical Problem

Existing cloud storage methods have problems with low security and insufficient bandwidth usage when storing large files, resulting in files being easily lost and slow download speeds, affecting user experience.

Method used

Using a distributed cloud storage method based on IPFS, by splitting large files into multiple sub-files and uploading and downloading them in parallel between multiple storage nodes, a hash value is generated to ensure file integrity and security, and is verified by the blockchain Legitimate access requests to prevent illegal theft.

Benefits of technology

Improves the efficiency of file uploading and downloading, enhances the security of stored files, prevents the loss of large files, and ensures the accuracy and security of files.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113535648B
    Figure CN113535648B
Patent Text Reader

Abstract

The present application discloses a distributed cloud storage method based on IPFS, which is used to solve the technical problem that the existing storage method easily leads to low file security. The method includes: receiving an upload request instruction from a first client; in response to the upload request instruction, receiving a storage file and segmenting the storage file based on a preset segmentation method; uploading the segmented storage file to different storage nodes of the IPFS distributed storage network, and generating a first hash value; generating a download address of the storage file, and sending the download address to a server; receiving a download request instruction sent by the first client, and based on the download request instruction, searching and downloading the storage file in the IPFS distributed storage network; and sending the storage file to the first client. The present application realizes the fragmentation and storage of large files in different nodes through the above method, which ensures the security of the files, and when downloading and reading files, multiple sub-storage files are downloaded in parallel to occupy the bandwidth and increase the download speed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a distributed cloud storage method, device and storage medium based on IPFS. Background Art

[0002] With the development of computer technology, cloud storage has become an important storage method compared to local storage. Cloud storage is the storage of data on multiple virtual servers hosted by a third party. Since most work-related collaborative applications need to use files with a long time span, it is impossible to set an expiration deletion function in the storage mechanism. Instead, these files need to be stored in the cloud to facilitate retrieval when needed.

[0003] However, as the usage cycle of these collaborative work applications increases, the cloud storage burden will increase, and local resources will be consumed. At the same time, large files are stored in the same storage module. If the storage fails, the entire large file will be lost. Therefore, the security of the stored files is too low. Summary of the invention

[0004] The embodiments of the present application provide a distributed cloud storage method, device and storage medium based on IPFS, so as to solve the technical problem of low security of storing files in existing cloud storage methods.

[0005] On the one hand, an embodiment of the present application provides a distributed cloud storage method based on IPFS, which is applied to an IPFS distributed storage network including multiple clients, and the IPFS distributed storage network is composed of multiple storage nodes, and is characterized in that the method includes: receiving an upload request instruction from a first client; in response to the upload request instruction, receiving a storage file and dividing the storage file based on a preset division method; uploading the divided storage file to different storage nodes of the IPFS distributed storage network, and generating a first hash value; generating a download address of the storage file, and sending the download address to a server; receiving a download request instruction sent by the first client, and based on the download request instruction, searching and downloading the storage file in the IPFS distributed storage network; and sending the storage file to the first client.

[0006] In the embodiment of the present application, the IPFS distributed storage network can upload storage files in parallel with a large number of clients at the same time, and can segment larger storage files. The segmented sub-storage files are simultaneously uploaded to the storage nodes of the IPFS distributed storage network. The network bandwidth can be fully occupied to the greatest extent, which improves the efficiency of file upload. At the same time, storing large files in pieces can also improve the security of the stored files to prevent the loss of all large files.

[0007] In one implementation of the present application, the download request instruction carries hash information; the download request instruction sent by the first client is received, and based on the download data request instruction, the storage file is searched and downloaded in the IPFS distributed storage network, specifically: in response to the download request instruction, the download address is obtained from the server; based on the download address, a second hash value is generated; the second hash value is compared with the first hash value; when the second hash value matches the first hash value, the storage file is searched and downloaded in the IPFS distributed storage network. Through hash addressing, the correctness of file retrieval and download can be guaranteed to the greatest extent, and confusion in the retrieval of storage files between individual clients can be prevented. The accuracy of the stored files is guaranteed.

[0008] In one implementation of the present application, in response to an upload request instruction, a storage file is received and the storage file is divided based on a preset division method, specifically including: based on a preset storage size, the storage file is divided to obtain multiple sub-storage files. The multiple sub-storage files are uploaded to different storage nodes of the IPFS distributed storage network respectively, and a first hash value is generated. Larger file fragments are stored in different nodes to improve the security of data storage. This avoids the situation where the entire large file is lost when the storage network fails. Each sub-storage file corresponds to a first hash value.

[0009] In one implementation of the present application, after the storage file is divided based on the preset storage size to obtain multiple sub-storage files, the method also includes: determining the storage occupancy information of each storage node of the IPFS distributed storage network; sorting each storage node in order from low to high storage occupancy; storing multiple sub-storage files in multiple storage nodes with low storage occupancy. By automatically performing weight discrimination, the phenomenon of data being written into a large storage space is avoided. Make full use of all storage nodes for data storage.

[0010] In one implementation of the present application, before uploading the segmented storage file to different storage nodes of the IPFS distributed storage network and generating a first hash value, the method also includes: assigning identification codes to multiple sub-storage files respectively; wherein the identification code is used to identify the segmentation position of the storage file, and the identification code is filled in at the position where the storage file is segmented.

[0011] In one implementation of the present application, the method further includes: downloading sub-storage files stored in different storage nodes respectively; splicing the multiple sub-storage files together based on the identification code to obtain a complete storage file, and sending the spliced ​​complete storage file to the first client. Splicing the files by the identification code avoids sending the files to the client to be multiple scattered files.

[0012] In one implementation of the present application, the method further includes: generating identity information corresponding to the storage file; establishing an IPFS blockchain network for the IPFS distributed storage network based on a blockchain creation platform, and uploading the identity information to the IPFS blockchain network; receiving a read request message sent by a second client; wherein the read request message is used to read the storage file; verifying the legitimacy of the read request message through a smart contract deployed in the IPFS blockchain network; and downloading the storage file in the IPFS distributed storage network and sending the storage file to the second client if the legitimacy verification passes. By setting up the legitimacy verification, other clients can access the storage files in the IPFS distributed cloud storage network only if the verification passes, which can prevent other illegal clients from maliciously stealing the storage files and ensure the security of the storage files.

[0013] In one implementation of the present application, the method further includes: after uploading the segmented storage file to different storage nodes of the IPFS distributed storage network and generating the first hash value, the method further includes: generating first file information of the storage file; wherein the first file information includes the file type, file size, and file creation time of the storage file; after a preset time period, receiving second file information generated by the first client; determining whether the first file information is consistent with the second file information; if the first file information is inconsistent with the second file information, determining that the storage file has been tampered with; generating prompt information and sending it to the first client to prompt the first client that the storage file has been tampered with. By setting a regular review of the storage file, the file can be prevented from being tampered with.

[0014] An embodiment of the present application provides a device for distributed cloud storage based on IPFS, the device comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute: receiving an upload request instruction from a first client; in response to the upload request instruction, receiving a storage file and segmenting the storage file based on a preset segmentation method; uploading the segmented storage file to different storage nodes of the IPFS distributed storage network, and generating a first hash value; generating a download address of the storage file, and sending the download address to the first client; receiving a download request instruction sent by the first client, and based on the download request instruction, searching and downloading the storage file in the IPFS distributed storage network; and sending the storage data to the first client.

[0015] The embodiment of the present application also provides a non-volatile computer storage medium of distributed cloud storage based on IPFS, storing computer executable instructions, and the computer executable instructions are configured to: receive an upload request instruction from a first client; in response to the upload request instruction, receive a storage file and segment the storage file based on a preset segmentation method; upload the segmented storage file to different storage nodes of the IPFS distributed storage network, and generate a first hash value; generate a download address of the storage file, and send the download address to the first client; receive a download request instruction sent by the first client, and based on the download request instruction, search and download the storage file in the IPFS distributed storage network; and send the stored data to the first client. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0017] Figure 1 A flow chart of a distributed cloud storage method based on IPFS provided in an embodiment of the present application;

[0018] Figure 2 A diagram of a distributed cloud storage device based on IPFS is provided in an embodiment of the present application. DETAILED DESCRIPTION

[0019] In order to make the purpose, technical solution and advantages of the present application clearer, the technical solution of the present application will be clearly and completely described below in combination with the specific embodiments of the present application and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present application.

[0020] Cloud storage is an online storage model that stores data on multiple virtual servers usually hosted by a third party, rather than dedicated servers. The process of the cloud storage model is that customers purchase or lease a certain amount of storage space from a hosting company that operates a large data center according to their needs. Data storage operators prepare storage virtualized resources at the back end according to customer needs and provide them in the form of storage resource pools. Customers use this resource pool to store the files they want to store.

[0021] At present, the user base of collaborative software is large, and more and more pictures or files are generated in application scenarios such as chatting and sharing files, which puts great pressure on the background storage. Since some work-related collaborative application scenarios often require the use of files with a long time span, it is not possible to simply set an expiration deletion mechanism, resulting in a continuous surge in the usage rate of background storage and huge maintenance costs. The existing cloud storage method is to store many large files in a redundant manner in the same storage module. If the storage module fails, all large files will be lost. The security of the files is greatly reduced, and when large files are downloaded from the cloud, they cannot occupy the full bandwidth download due to the influence of the download port. The download speed is extremely slow, affecting the user experience.

[0022] InterPlanetary File System (IPFS) is a network transmission protocol designed to create persistent and distributed storage and sharing of files. IPFS provides a high-throughput, content-addressed block storage model and content-related hyperlinks. IPFS combines a distributed hash table, encouraged block exchange, and a self-certified namespace. IPFS has no single point of failure, and nodes do not need to trust each other. Therefore, integrating the underlying principles of IPFS technology into cloud storage methods is a research direction to solve the problems existing in current storage methods.

[0023] The embodiment of the present application provides a distributed cloud storage method based on IPFS. The technical solution proposed in the embodiment of the present application is described in detail below with the help of the accompanying drawings.

[0024] Figure 1 A flow chart of a distributed cloud storage method based on IPFS provided in the embodiment of the present application. Figure 1 As shown, the method mainly includes the following steps:

[0025] Step 101: Receive an upload request instruction from a first client, and segment a storage file based on a preset segmentation method.

[0026] In the embodiment of the present application, a complete set of cloud storage methods based on IPFS is provided, which is applied in an IPFS distributed storage network including multiple clients, and the IPFS distributed storage network includes multiple storage nodes. When one of the clients sends an upload request instruction to the IPFS distributed storage network for uploading a locally stored file to the IPFS distributed storage network, the IPFS distributed storage network receives the stored file through a wireless communication network.

[0027] Furthermore, there are multiple storage nodes in the IPFS distributed storage network, all of which can store files. Therefore, a storage file that takes up a large amount of memory can be split into multiple smaller sub-storage files, and then placed in multiple storage nodes respectively.

[0028] In the embodiment of the present application, a storage size is first preset, and a larger storage file is segmented based on the storage size to obtain multiple smaller storage files. For example, the preset storage size is 100MB, and for a video file that occupies 800MB of memory, eight 100MB small video files will be obtained after the video file is segmented. It should be noted that if it cannot be divided into an integer number of small files, the part less than 100MB will also be treated as a small file separately.

[0029] In an embodiment of the present application, after the larger storage file is split, the obtained multiple smaller sub-storage files are uploaded to multiple storage nodes in the IPFS distributed storage network. After each sub-storage file is uploaded to a storage node of an IPFS distributed storage network, a first hash value will be generated. It should be noted that the IPFS distributed storage network must contain a sufficient number of storage nodes to prevent the number of sub-storage files after the split from exceeding the number of storage nodes of the IPFS distributed storage network, resulting in some sub-storage files being unable to be stored.

[0030] In the embodiment of the present application, after a larger storage file is divided into multiple sub-storage files, in order to prevent errors in the subsequent integration of multiple sub-storage files into a complete storage file, identification codes are assigned to the multiple sub-storage files. The identification codes are used to identify the positions where the storage files are divided. For example, a video file is divided into three equal parts after a preset storage size. Each sub-video file is five minutes long, so the positions filled in with the identification codes are at 05:00, 05:01, 10:00, and 10:01.

[0031] Step 102: Upload the segmented storage files to different storage nodes of the IPFS distributed storage network, and generate a first hash value.

[0032] In an embodiment of the present application, after the larger storage file is divided, the obtained multiple smaller sub-storage files are uploaded to multiple storage nodes in the IPFS distributed storage network. After each sub-storage file is uploaded to a storage node of an IPFS distributed storage network, a first hash value will be generated. Based on the underlying logical principle of the IPFS distributed storage network, each sub-storage file can be uploaded in parallel when it is uploaded to multiple storage nodes of the IPFS distributed storage network, fully occupying the network bandwidth, and reasonably and effectively utilizing the network speed to achieve the best file upload rate, which greatly saves the time of uploading files and ensures that multiple clients can complete file uploads.

[0033] It should be noted that the IPFS distributed storage network must contain a sufficient number of storage nodes to prevent the number of divided sub-storage files from exceeding the number of storage nodes of the IPFS distributed storage network, resulting in some sub-storage files being unable to be stored.

[0034] In the embodiment of the present application, since the file sizes previously stored in each storage node are different, the storage conditions are bound to be different. Therefore, before storing the multiple smaller sub-storage files after segmentation into each storage node, the weights of each storage node must be balanced. In the present application, the specific method is to generate a statistical information table to count the storage occupancy information of each storage node. For example, the storage space of the first storage node has been occupied by 80%, and the remaining 200MB of storage space is available. After counting the storage occupancy information of each storage node, the storage nodes are arranged in order from low to high according to the occupied storage space, and then the sub-storage files after segmentation are stored in each storage node starting from the storage node with the lowest storage space occupancy.

[0035] It should be noted that when performing weight planning for each storage node of the IPFS distributed storage network, the existing classic red-black tree algorithm can be used to perform dynamic balancing planning for the weights of each storage node of the IPFS distributed storage network. The specific implementation process of the red-black tree algorithm is not specifically limited in this application specification.

[0036] Step 103: Generate a download address for the storage file and send the download address to the server.

[0037] In the embodiment of the present application, after the storage file is stored in the IPFS distributed storage network, the system will automatically generate a download address link, and then send the download address link to the server corresponding to the first client. The server corresponding to the first client receives the download address link and fetches the storage file information corresponding to the download address link stored in the IPFS distributed storage network connected thereto.

[0038] It is known that the same server will receive download address links from multiple clients that provide background services. Therefore, the server will match the received download address links with the stored files one by one. This prevents the download address links uploaded by multiple clients from being confused, which will lead to the problem that each client cannot accurately match when downloading cloud storage files from the IPFS distributed storage network in the future.

[0039] Step 104: Receive the download request instruction sent by the first client, and based on the download request instruction, search and download the stored file in the IPFS distributed storage network.

[0040] In the embodiment of the present application, each client can be a collaborative software commonly used by users in their daily work and life. When chatting, it is necessary to retrieve files from a long time ago, such as an audio or video file or a picture file. At this time, the first client will send a download request instruction to the IPFS distributed storage network. After receiving the download request instruction, the IPFS distributed storage network will search and download the storage file corresponding to the download request instruction, and then send it to the first client.

[0041] Specifically, in the embodiment of the present application, the IPFS distributed storage network obtains the download address link previously sent to the server from the server according to the download request instruction, and then disassembles the second hash value according to the download address link, compares the second hash value with the first hash value, and when the second hash value matches the first hash value successfully, the IPFS distributed storage network downloads each sub-storage file in each storage node under it. Each sub-storage file is downloaded in parallel from each storage node of the IPFS distributed storage network at the same time, which can fully occupy the network bandwidth, effectively utilize the bandwidth network speed, greatly improve the efficiency of file transmission, and save cloud storage time.

[0042] In the embodiment of the present application, after the IPFS distributed storage network has downloaded each sub-storage file, it is also necessary to splice each sub-storage file together to restore each sub-storage file to the storage file before the IPFS distributed cloud storage. The specific process is: according to the aforementioned steps, the segmentation position of each sub-storage file after segmentation is filled with an identification code, and the identification code represents the location of the storage file cut. The identification code can be used to arrange each sub-storage file in the order before segmentation, and then each sub-storage file is subjected to a format conversion operation, and the sub-storage files are merged into a format to obtain a complete storage file.

[0043] Step 105: Send the stored file to the first client.

[0044] In the embodiment of the present application, after the format merging operation, each sub-storage file is merged into a complete storage file, and the storage file is sent to the first client via the wireless local area network with common coverage.

[0045] In the embodiment of the present application, the system will also detect the security of the file during the entire storage cycle. When a client's storage file is stored in the IPFS distributed storage network, the system will automatically generate the first file information of the storage file, where the first file information includes the file type of the storage file, such as whether the file type is a video file, a picture file or a document, as well as the file size and the creation time of the file.

[0046] After a certain preset period, such as 24 hours, the second file information generated by the first client is received. Since the client will record its locally stored files, in the embodiment of the present application, the client records the second file information for each stored file, and the content of the second file information is basically the same as the first file information.

[0047] In an embodiment of the present application, the received second file information is compared with the stored first file information. When the first file information and the second file information are inconsistent, this proves that the stored file has been tampered with. The IPFS distributed storage network generates a prompt message and sends the prompt message to the first client to prompt that the file stored by the first client has been tampered with. After receiving the prompt message, the client can find the stored file again locally and re-upload the stored file to the IPFS distributed storage network.

[0048] In the embodiment of the present application, the IPFS distributed storage network is an open and shared storage network space. Each client can read data files from each other. However, it is easy for data to be tampered with. In the embodiment of the present application, whenever a storage file of a client is uploaded to the IPFS distributed storage network, an identity information corresponding to the storage file will be generated. The identity information can specifically be the model, Mac address, network information of the wireless local area network, etc. of the client. Then, according to the blockchain creation platform, an IPFS blockchain network is established for the IPFS distributed storage network, and the identity information of the storage file is uploaded to the IPFS blockchain network.

[0049] In an embodiment of the present application, when the second client wants to read the storage file stored by the first client, a read request message will be sent to the system. After the system receives the read request message, the legitimacy of the read request message is verified through the smart contract deployed in the blockchain network. It is understandable that the identity information will inevitably also contain the information of the remaining clients that are allowed to access this storage file. Only when the smart contract passes the legitimacy verification of the read request information of the second client, the storage file of the first client that the second client wants to access will be downloaded in the IPFS distributed storage network. And the storage file is sent to the second client. In this way, it is guaranteed that the storage file of the first client will not be stolen by other illegal clients, ensuring the security of the storage file.

[0050] The above is a distributed cloud storage method based on IPFS provided in an embodiment of the present application. Based on the same inventive concept, an embodiment of the present application also provides a distributed cloud storage device based on IPFS. Figure 2 A schematic diagram of a distributed cloud storage device based on IPFS provided in an embodiment of the present application is shown in FIG. Figure 2 As shown, the device mainly includes: at least one processor 201; and a memory 202 connected to the at least one processor in communication; wherein the memory 202 stores instructions that can be executed by the at least one processor 201, and the instructions are executed by the at least one processor 201 so that the at least one processor 201 can complete:

[0051] Receive an upload request instruction from a first client; in response to the upload request instruction, receive a storage file and segment the storage file based on a preset segmentation method; upload the segmented storage file to different storage nodes of the IPFS distributed storage network, and generate a first hash value; generate a download address for the storage file, and send the download address to the first client; receive a download request instruction sent by the first client, and based on the download request instruction, search and download the storage file in the IPFS distributed storage network; send the storage data to the first client.

[0052] In an embodiment of the present application, a non-volatile computer storage medium based on IPFS distributed cloud storage is also provided, storing computer executable instructions, and the computer executable instructions are configured to: receive an upload request instruction from a first client; in response to the upload request instruction, receive a storage file and segment the storage file based on a preset segmentation method; upload the segmented storage file to different storage nodes of the IPFS distributed storage network, and generate a first hash value; generate a download address of the storage file, and send the download address to the first client; receive a download request instruction sent by the first client, and based on the download request instruction, search and download the storage file in the IPFS distributed storage network; and send the stored data to the first client.

[0053] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0054] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0055] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0056] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0057] Each embodiment in this application is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0058] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0059] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims

1. A distributed cloud storage method based on IPFS, wherein the distributed cloud storage method is applied to an IPFS distributed storage network including multiple clients, wherein the IPFS distributed storage network is composed of multiple storage nodes, and wherein: The method comprises: Receiving an upload request instruction from a first client; In response to the upload request instruction, a storage file is received and the storage file is divided based on a preset storage size to obtain a plurality of sub-storage files, and identification codes are respectively assigned to the plurality of sub-storage files, wherein the identification code is used to identify the division position of the storage file, and the identification code is filled in the position where the storage file is divided; the storage occupancy information of each storage node of the IPFS distributed storage network is determined, and the storage nodes are sorted in order from low to high storage occupancy, and the plurality of sub-storage files are respectively stored in a plurality of storage nodes with low storage occupancy, and a first hash value is generated; wherein each sub-storage file corresponds to one first hash value; Generate a download address for the stored file, and send the download address to a server; Receive the download request instruction sent by the first client, and based on the download request instruction, search and download the storage file in the IPFS distributed storage network, including: downloading multiple sub-storage files stored in different storage nodes respectively, splicing each of the sub-storage files together based on the identification code to obtain the complete storage file before segmentation, and sending the spliced ​​complete storage file to the first client; After generating the first hash value, the method further includes: generating first file information of the stored file, wherein the first file information includes the file type, file size, and file creation time of the stored file; after a preset time period, receiving second file information generated by the first client; determining whether the first file information is consistent with the second file information; if the first file information is inconsistent with the second file information, determining that the stored file has been tampered with; generating a prompt message and sending it to the first client to prompt the first client that the stored file has been tampered with.

2. According to claim 1, a distributed cloud storage method based on IPFS is characterized in that: The download request instruction carries hash information; the receiving the download request instruction sent by the first client, and based on the download data request instruction, searching and downloading the storage file in the IPFS distributed storage network, specifically: In response to the download request instruction, obtaining the download address from the server; Based on the download address, generate a second hash value; Comparing the second hash value with the first hash value; When the second hash value matches the first hash value, the stored file is searched and downloaded in the IPFS distributed storage network.

3. According to a distributed cloud storage method based on IPFS according to claim 1, it is characterized in that: The method further comprises: Generate identity information corresponding to the storage file; Establishing an IPFS blockchain network for the IPFS distributed storage network based on a blockchain creation platform, and uploading the identity information to the IPFS blockchain network; Receiving a read request message sent by a second client; wherein the read request message is used to read the stored file; Verify the legitimacy of the read request information through a smart contract deployed in the IPFS blockchain network; When the legitimacy verification passes, the storage file is downloaded from the IPFS distributed storage network and sent to the second client.

4. A distributed cloud storage device based on IPFS, characterized in that: The device comprises: at least one processor; and, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the IPFS-based distributed cloud storage method according to any one of claims 1-3.

5. A non-volatile computer storage medium based on IPFS distributed cloud storage, storing computer executable instructions, characterized in that: The computer executable instructions are configured to execute a distributed cloud storage method based on IPFS according to any one of claims 1-3.