وب۳ • مبتدی • 9:15

آموزش IPFS و سرویس پینینگ Thirdweb

آشنایی با IPFS و نحوه استفاده از سرویس پینینگ Thirdweb برای ذخیره‌سازی غیرمتمرکز فایل.

About this IPFS and Thirdweb pinning tutorial

This tutorial explains what IPFS is, why it is used in blockchain and NFT projects, how CIDs work, why pinning services are useful, and how to upload a file to IPFS using Thirdweb.

Overview

IPFS, or InterPlanetary File System, is a distributed file storage and sharing protocol. The tutorial covers IPFS concepts, common Web3 use cases, CID-based file identification, privacy considerations, browser extensions, pinning services, Thirdweb account setup, file uploads, and sharing uploaded files through an IPFS gateway.

Step-by-step tutorial outline

Understand what IPFS is

The tutorial introduces IPFS as a distributed peer-to-peer file storage and sharing protocol often used in blockchain, NFT, and Web3 projects.

Learn why blockchains use IPFS

Because blockchains are not designed to store large files directly, projects often store files on IPFS and keep only metadata or references on-chain.

Understand CIDs

IPFS assigns a unique content identifier, or CID, to uploaded files. A CID is used to request and retrieve the file from the IPFS network.

Review IPFS use cases

The tutorial mentions NFTs, decentralized websites, research publishing, scientific content sharing, data transparency, offline tools, games, and digital art.

Understand privacy and deletion limitations

Files uploaded to IPFS can be distributed across multiple nodes, so sensitive files should not be uploaded without proper encryption.

Install IPFS browser support

The tutorial installs an IPFS browser extension to improve browser support for IPFS links.

Use a pinning service

A pinning service is explained as an always-online IPFS node or hosting-style service that keeps files available without requiring the user to run their own IPFS node.

Create a Thirdweb account

The tutorial uses Thirdweb, connects a wallet such as MetaMask, verifies an email address, and selects the free plan.

Upload a file to IPFS

Inside Thirdweb storage settings, a file is uploaded and assigned a CID that can be shared or opened through an IPFS gateway.

Key takeaways

  • IPFS is a distributed protocol for storing and sharing files without relying on one central server.
  • Blockchain and NFT projects often use IPFS because storing large files directly on-chain is inefficient.
  • Each IPFS file receives a unique CID.
  • A pinning service helps keep IPFS files available without running your own node.
  • Thirdweb can be used as a simple pinning and storage service.
  • Sensitive files should not be uploaded to IPFS without encryption.
  • Files shared through an IPFS gateway can be viewed by people who do not have IPFS software installed.

Security notes

  • Do not upload private or sensitive files to IPFS without strong encryption.
  • Understand that IPFS content can be difficult or impossible to remove once distributed.
  • Research pinning services before trusting them with important files.
  • Use official websites and verify URLs before connecting a wallet.
  • Do not sign wallet messages on websites you do not trust.

Tools and topics mentioned

  • IPFS
  • InterPlanetary File System
  • CID
  • Protocol Labs
  • NFT metadata
  • IPFS browser extension
  • IPFS Desktop
  • Pinning service
  • Thirdweb
  • MetaMask
  • WalletConnect
  • IPFS gateway
  • ipfs.io

Transcript summary

The tutorial introduces IPFS, explains CIDs and distributed file retrieval, reviews blockchain and NFT use cases, warns against uploading sensitive files without encryption, explains pinning services, shows Thirdweb account setup with wallet connection, uploads a file through Thirdweb storage, and demonstrates how to share the uploaded file using an IPFS gateway link.

Frequently asked questions

What is IPFS?

IPFS is a distributed peer-to-peer protocol for storing and sharing files. It is often used in blockchain and Web3 projects.

What is a CID in IPFS?

A CID, or content identifier, is a unique identifier assigned to a file on IPFS. It is used to locate and retrieve the content.

Why do NFT projects use IPFS?

NFT projects often use IPFS to store images, files, or metadata because storing large files directly on a blockchain is expensive and inefficient.

What is a pinning service?

A pinning service keeps IPFS files available by hosting or pinning them on always-online infrastructure.

Can I delete files from IPFS?

IPFS content can be difficult to remove once it has been distributed or pinned by others, so private files should not be uploaded without encryption.

Can Thirdweb be used to upload files to IPFS?

Yes. Thirdweb provides storage features that can be used to upload files to IPFS and retrieve a CID or gateway link.