IPFS.

Post

Share your knowledge.

IPFS moderator.
Mar 20, 2024
Expert Q&A

How can multiple nodes verify the presence of uploaded files in IPFS?

I have a clear understanding that files are uploaded to multiple nodes using the IPFS add command. However, I am unsure about how one of these multiple nodes can verify the existence of specific files that I have uploaded. For instance, if I upload a file named abc.txt (asd0101), how can node A check if it has the file with the prefix "asd" and if node B has the file with the suffix "0101"? Is there a specific method or alternative approach to perform this verification? I would greatly appreciate any guidance or insights on this matter.

  • IPFS
  • IPFS Node
0
1
Share
Comments
.

Answers

1
IPFS moderator.
Mar 20 2024, 10:41

To clarify, when you upload files using the IPFS add command, they are stored on your own node and not uploaded to multiple nodes. The files remain on your machine and are not transferred to any other nodes.

For example, if you upload a file named "abc.txt" with the identifier "asd0101", the "asd" part represents your own node, and the "0101" part is used to locate the file on your node. The file "abc.txt" does not leave your machine and is not stored on any other nodes.

However, other nodes in the IPFS network can still find your computer using the Distributed Hash Table (DHT). The DHT is a mechanism that allows nodes to locate and retrieve content from other nodes in the network. If you're interested in learning more about the DHT, you can refer to the following resources:

I hope this clarifies the process of uploading files and how the DHT is used in the IPFS network. Let me know if you have any further questions!

0
Official Answer
Comments
.

Do you know the answer?

Please log in and share it.

The InterPlanetary File System (IPFS) is a protocol, hypermedia and file sharing peer-to-peer network for storing and sharing data in a distributed file system.

95Posts95Answers
Sui.X.Peera.

Earn Your Share of 1000 Sui

Gain Reputation Points & Get Rewards for Helping the Sui Community Grow.

We use cookies to ensure you get the best experience on our website.
More info