📖
[Deprecated] Launchpad Curriculum
  • README
  • About Launchpad
  • Launchpad Learning Resources
    • The Protocol Labs Network
      • What is the PL Network?
      • Teams in the PL Network
      • Protocol Labs Culture
      • Where We are Headed
      • Open Source Stewardship
      • Open Source Contribution
    • IPFS
      • IPFS Setup (Tutorial)
      • Mutable Content
      • IPFS Public DHT
      • Who Uses IPFS
      • How IPFS Works
      • Data Transfer
      • IPFS Subsystems & Architecture
      • The IPFS Gateways
      • The IPFS API (Tutorial)
      • IPFS Resources
    • IPLD
      • Content Addressing & CIDs
      • Graphs: Merkle DAGs
      • The IPLD Data Model
      • IPLD & IPFS
      • Codecs
      • IPLD Schemas
      • Paths & Selectors
      • Distributed Data Structures
      • The CAR Format
      • IPLD Resources
    • libp2p
      • Core Concepts
      • libp2p Connections and Users
      • Decentralized Messaging
      • Gossipsub
      • Distributed Networking Solutions
      • Nat Traversal and Hole Punching
      • libp2p Resources
    • Filecoin
      • How Filecoin Works
      • Filecoin Cryptoeconomics
      • The Filecoin Protocol
      • Drand
      • Progress & Future Work
      • Filecoin Resources
  • Other Resources
    • Pre-Requisites
      • Web3 & Protocol Labs
      • Building Web3
      • Web3 Tools
    • Protocol Labs Toolkits & SDKs
      • Textile
      • Ceramic
      • Fleek
      • Web3.Storage
      • Piñata
    • Built On IPFS and Filecoin
    • Additional Learning
Powered by GitBook
On this page
  • Filecoin Basics
  • Filecoin Nodes
  • Storage and Retrieval
  • Filecoin Storage Providers (Miners)
  • Deals
  • Proofs
  • Gas
  • Actors
  • Addresses
  • Filecoin Plus
  • Filecoin Deep Dive (Optional)
  • Summary and Links
Edit on GitHub
  1. Launchpad Learning Resources
  2. Filecoin

How Filecoin Works

The Peer-to-peer Network for Sharing Files

PreviousFilecoinNextFilecoin Cryptoeconomics

Last updated 2 years ago

Filecoin Basics

A more thorough explanation of these concepts

The Filecoin network is a distributed, peer-to-peer network formed by Filecoin peers who participate in different ways.

Peers communicate over secure channels to distribute information around the network (gossiping). They transfer data among themselves, discover other peers, and maintain a well-connected swarm; information like blocks and messages flow swiftly even when thousands of peers participate.

Filecoin Storage Basics | Rod Vagg

Learn about mining, sealing, sector types, Collateral, making deals, Filecoin+, offline deals.

Filecoin Nodes or Filecoin clients are peers that sync the Filecoin blockchain and validate the messages in every block, which once applied, provide a global state.

Filecoin Nodes can also publish different types of messages to the network by broadcasting them.

Storage and Retrieval

The storage providers provide services to the network by executing different types of deals and appending new blocks to the chain (every 30 seconds), for which they collect FIL rewards.

Storage & Retrieval Markets | Filecoin Research - Juan Benet and Jeromy Johnson

In this 4 minute talk by Jeromy Johnson & Juan Benet, understand how Filecoin, which differs from most blockchains in how it incentivizes storage, interacts with both storage and retrieval markets.

There are two main types of deals in Filecoin: storage deals and retrieval deals.

Storage deals are agreements between clients and storage providers to store some data in the network. Once a deal is initiated, and the storage provider has received the data to store, it will repeatedly prove to the chain that it is still storing the data per the agreement so that it can collect rewards. If not, the storage provider will be slashed and lose FIL.

As mentioned above, storage providers must prove that they are storing the data per the terms of a deal. That means that:

  • They must store all the data submitted by the client

  • They must store it during the whole lifetime of the deal

Executing messages, for example by including transactions or proofs in the chain, consumes both computation and storage resources on the network. Gas is a measure of resources consumed by messages. The gas consumed by a message directly affects the cost that the sender has to pay for it to be included in a new block by a storage provider.

Important Gas Concepts

  • GasUsage: the amount of gas that a message's execution actually consumes.

  • BaseFee: the amount of FIL that gets burned per unit of gas consumed for the execution of every message.

  • GasLimit: the limit on the amount of gas that a message's execution can consume, estimated and specified by a message sender.

  • GasFeeCap: the maximum token amount that a sender is willing to pay per GasUnit for including a message in a block.

  • GasPremium: a priority fee that is paid to the block-producing storage provider.

In Filecoin, addresses are used to identify actors. There are 4 address types:

  • 0 - ID Address

  • 1 - SECP256K1 Public Key Address

  • 2 - Actor Address

  • 3 - BLS Public Key

Filecoin Deep Dive (Optional)

Filecoin for Developers & Builders | Pooja Shah

In this talk by Pooja Shah of Protocol Labs, learn about the basic functioning and purpose of Filecoin. The Core features and use cases of Filecoin will be covered, and Pooja will also go over some of the activity going on in the ecosystem, including the core developer projects that make it possible to implement, develop, and use Filecoin.

Summary and Links

Filecoin Core Features

  • Granular control over parameters for data Storage

  • Storage receipts

  • Control over storage pricing (and what you will pay)

  • Content addressing

  • Data persistence

Filecoin Use Cases

  • Filecoin for data storage

  • Filecoin for payments

  • Ancillary tools and services

Filecoin Tools and Services (Products for Developers)

  • Other useful tools include Docker images, hosted Lotus endpoints, status tools, API clients, CLIs, wallets, remote signing, and more

Overestimation burn: an additional amount of gas to burn that grows larger when the difference between GasLimit and GasUsage is large. (See ).

Actors are a for managing state. Accounts, Multisigs, Miners, and anything with a state, such as an account balance, are implemented as an actor.

Filecion Plus is a mechanism for onboarding data into the Filecoin market that incentivizes the storage providers on the Filecoin network to store real, valuable, and usable data. It is a layer of social trust on top of the Filecoin Network to help incentivize this storage. Storage providers who store data that has been approved for DataCap have more power to win block rewards. The provides data about verification, storage, and more.

There are a few ways one can get on the Filecoin network, and there are , including root key-holders, notaries, clients, and miners who interact through the allocation and spending of DataCap, and help onboard that data to the network.

Filecoin Protocol implementation: These include , Chainsafe , and

Developer tools: these include Textile , Truffle , Fleek and more

Filecoin Networks: Run Localnet to test before releasing your apps on the or the . Other developer networks can be . Learn more about Mainnet on the and

Hosted services: These are Filecoin-backed pinning services (FPS) to keep data available for those who don't want to maintain their own nodes. These include , , , , , , and more

Lotus Common Architecture Currently for those using lotus directly, it is recommended that you have a hardware configuration with 32GB of RAM, an 8-core CPU, and at least 200 GB of SSD storage. See the

Filecoin Nodes
Filecoin Storage Providers (Miners)
Deals
Proofs
Gas
current implementation
Actors
software design pattern
Addresses
Filecoin Plus
Filecoin Plus Dashboard
approved to store data
governance processes and roles
Lotus
Forest
Venus
Powergate
Ganache
Space Daemon
Lotus Devnet
Filecoin Devnet
found in the docs
Filecoin Website
docs
Textile buckets
Pinata
Chainsafe
NFT Storage
Web3 Storage
Estuary
Filecoin docs on Hardware requirements
can be found in the Filecoin docs
Anatomy of a Filecoin Deal
Filcoin Plus Governance