Proof-of-Capacity

Table of Contents


Introduction

The ThreeFold Blockchain (TFChain) uses work algorythm called "Proof-of-Capacity" to verify the Internet capacity provided by 3Nodes. Put simply, PoC verifies, on an ongoing basis, that farms are honestly representing the Internet capacity they provide to the network.

See Proof-of-Capacity in action by visiting the ThreeFold Grid Capacity Explorer which represents the best resource to view POC-related data.

What is proof-of-capacity?

POC allows ThreeFold Farmers to earn reward according to their contribution. Farming is the "work" itself, the act of providing Internet capacity to the network and making it accessible via our TFDAO and TFChain.

The PoC algorythm records four different types of Internet capacity:

  • Compute Capacity (CPU)
  • Memory Capacity (RAM)
  • Storage Capacity (SSD/HDD)
  • Network Capacity (Bandwidth, IP Addresses)

Why proof-of-capacity?

PoC comes with a number of benefits, including:

  • Energy efficiency: earning reward in form of TFT does not waste energy, farming TFT is a carbon_negative operation.
  • Lower barriers to entry with reduced hardware requirements: no need for elite hardware to stand a chance for earning rewards.
  • Decentralized: allows anyone to connect a 3node to the network. TFGrid runs as a DAO.

The main advantage of PoC to farmers it makes it really easy to run a 3Node. It doesn't require huge investments in hardware or energy and everyone earns a fair reward for their contribution. It is more decentralized, allowing for increased participation, and more 3Nodes doesn't mean increased returns, like in mining.

How does Proof-of-Capacity work?

  1. A farmer boots hardware with Zero-OS (multiple boot methods available)
  2. Zero-OS is a low level OS, with no shell, farmers cannot access Zero-OS
  3. Zero-OS reports used IT capacity towards TFChain
  4. TFChain and TFDAO will calculate rewards as required for the farmer (TFGrid 3.1.x)
  5. TFChain will mint the required TFT and send them to account on TFChain of TFFarmer.
  6. Everyone can use the ThreeFold Explorer to see where capacity is available. This info comes from the TFChain.

PoC Rewards

PercentageDescriptionRemark
100% of specified farming rewardgoes to FarmerAllows for a pure Utility Token.
  • Additional TFT are farmed to compensate for Carbon and deliver the yield for the Layer 2 Staking pools

Farming Reward Calculation

Each 3Node has certain amount of compute, storage and network resources:

  • Compute Capacity (CPU)
  • Memory Capacity (RAM)
  • Storage Capacity (SSD/HDD)
  • Network Capacity (Bandwidth, IP Addresses)

For making this Internet Capacity available, Farmers are rewarded with TFT.

The amount of resources availabe in a 3Node are translated into compute units (CU), storage units (SU), Network units (NU) and IP addresses (IPAddr) to calculate farming rewards. See also Cloud Units Calculation For Farming.

Unless explicitly specified otherwise, calculations of "gigabytes" use base 1024. That is, 1 GB is equal to 1073741824 bytes.

The formula to calculate farming rewards is the following:

TFT earned per month = 
    CU farmed * CU farming rewards 
    + SU farmed * SU farming rewards
    + NU used * NU farming rewards
    + IPAddr used * IPAddr farming rewards

The below table expands on CU, SU, NU and IPAddr and their farming rewards:

Unitdescriptionv3 farming rewards in TFT
Compute Unit (CU)typically 2 vcpu, 4 GB mem, 50 GB storage30.00 TFT/month
Storage Unit (SU)typically 1 TB of netto usable storage12.50 TFT/month
Network Unit (NU)1 GB of data transfered as used by TFGrid user for Public IP Addr0.38 TFT/GB
Public IPv4 AddressPublic IP Address as used by a TFGrid user0.06 TFT/hour

The rewards above are calculated according to the current TFT to USD price in TFChain of 0.08. TFDAO is responsible to change this price in accordance to current marketsituation and liquidity.

The above farming rewards apply for 3Nodes registered in TFChain for ThreeFold Grid v3. Anyone can calculate their potential rewards using the Farming Reward Calculator. The same CU, SU, NU and IPAddr principles apply to the sales of Internet capacity in the form of cloud units.