An Interest In:
Web News this Week
- April 16, 2024
- April 15, 2024
- April 14, 2024
- April 13, 2024
- April 12, 2024
- April 11, 2024
- April 10, 2024
December 21, 2022 11:46 am GMT
Original Link: https://dev.to/foxgem/quick-ipfs-2dai
Quick IPFS
Concepts
- IPFS ! = Blockchain
- Blockchain serves on-chain data
- IPFS serves off-chain data
- IPFS provides an option of saving big volume datas for blockchain.
- IPFS ! = Filecoin
- IPFS focuses on addressing, which means it can find the location the content, but it can't guarantee that content is available.
- Filecoin which focuses on storage is similar to a decentralized cloud drive.
- They are complementary.
- Contents on public IPFS are always accessible as long as you can get the addresses.
- Setting up a private IPFS is possible, but meaningless.
- How to use:
add
file, a cid will be returned- use the cid to access the file
- Typical scenarios
- NFT Metadata
- Off-Chain data
Content Addressing
- IPFS addresses are derived from file content hashes (CIDs), so they are automatically de-duplicated.
- Two formats:
- IPFS:
ipfs://<hash>
- IPNS:
ipns://<domain>
- IPFS:
- With the help of HTTP Gateways, contents can be shown in browsers, examples:
https://ipfs.io/ipfs/QmXoypizjW3WknFiJnKLwHCnL72vedxjQkDDP1mXWo6uco/wiki/
https://ipfs.io/ipns/ipfs.io/
- Common HTTP Gateways:
- Public HTTP Gateway Checker
- HTTP Gateway speed ranking
Pinning Services
- "pin" is "save" , happening on one or more nodes.
- Files that not pinned are only in cache and will be removed in future.
- It is impossible to force a third party node to perform a "pin".
- In addition to your own nodes, third party services are also available.
- Typical pinning services:
- paid
- infura
- pinata
- morails
- free
- nft.storage
- paid
References
Original Link: https://dev.to/foxgem/quick-ipfs-2dai
Share this article:
Tweet
View Full Article
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To