LogoLogo
VisionNetworkProducts
  • Welcome to the Autonomys Academy
  • A Preface for OG Subspacers
  • Autonomys Vision
    • Intro to AI3.0 & the Age of Autonomy
    • Use-Cases
  • Autonomys Network
    • Introduction
    • Terminology
    • Architecture
    • Advancing Blockchain
    • Nodes
    • Subspace Protocol (PoAS Consensus)
      • Genesis
      • Data Flow
      • Proof-of-Archival-Storage (PoAS)
        • Archiving
        • Plotting
        • Farming
      • Proof-of-Time (PoT)
      • Security
    • Distributed Storage Network (DSN)
    • Decoupled Execution (DecEx)
      • Domains
        • Taxonomy
        • Auto EVM
        • Cross-Domain Messaging (XDM)
      • Staking
    • Networking Protocols
    • $AI3 Rewards & Fees
      • Gemini Testnets
    • Scalability
  • Auto Suite
    • Introduction
    • Space Acres | CLI
      • Farmers | Store to Earn $AI3
      • Operators | Compute to Earn $AI3
    • Astral
      • Nominators | Stake to Earn $AI3
    • Auto SDK
    • Auto Drive
    • Autonomys Agents (Auto Agents)
    • Autonomys Identity (Auto ID)
      • Auto Score
      • Auto PKI
  • Additional Learning
    • AI & Agentics
      • Current State of AI
      • What is an LLM
      • Personal AI
      • What is an AI Agent
      • The Coming Age of Agentic AI
      • Open vs Closed Models
      • Provenance in a Generative World
      • AI Empowering Bad Actors
      • Proof-of-Personhood
    • Identity & Security
      • DID & Verifiable Credentials
      • OAuth and OIDC
      • Public Key Infrastructure
    • Web3
      • What is a Blockchain?
      • The Blockchain Trilemma and the Cost of Scalability
      • What is a Cryptocurrency
      • General Information about SDK
      • What is a DAO?
      • Challenges of Participating in a DAO
  • Feedback
    • Feedback Form
Powered by GitBook
On this page
  • Background
  • Workflow

Was this helpful?

Edit on GitHub
  1. Autonomys Network
  2. Subspace Protocol (PoAS Consensus)
  3. Proof-of-Archival-Storage (PoAS)

Farming

The third phase of the Subspace Protocol

PreviousPlottingNextProof-of-Time (PoT)

Last updated 3 months ago

Was this helpful?

Farming involves solving block challenges based on previously created plots in order to participate in consensus.

Plot audits are designed to be SSD-friendly, favoring a random read approach over large sequential reads, and optimized for typical SSD read size. For illustration, a farmer only needs to read below 32KiB at a random location per sector to check for a solution, and they only need to read more if their solution is eligible to win the block.

Background

The difficulty of farming is defined by the solution range: the narrower the solution range, the fewer possible chunks exist within that range, the smaller the probability for any given farmer to be storing such chunks on their disks. Similarly to Bitcoin, the Subspace Protocol uses an automatic difficulty adjustment mechanism to address fluctuations in network storage and keep block times relatively stable. The Autonomys Network currently targets a block time of approximately 6 seconds. The difficulty is adjusted every 2016 blocks based on the actual time it took to farm the previous 2016 blocks.

Workflow

  1. For each sector, derive a corresponding audit index.

  2. Read from disk the s-bucket at that index.

  3. Scan it for a chunk within the acceptable solution range from the block challenge.

As each bucket contains chunks from all records, if a farmer honestly stores all encoded records in the sector, they have the highest chance of success.

If a farmer finds a winning chunk for the current block challenge, they perform the following steps to prove their solution is valid:

  1. Identify the parent record of the winning chunk from its offset in the s-bucket.

  2. Read from disk all other encoded chunks of this record.

  3. Compute the corresponding proof-of-space table the same way as during plotting.

  4. Query the table for proof values.

  5. Decode the record by XORing it with those proofs.

  6. Compute a KZG witness that the winning chunk belongs to a piece in the archived history.

Finally, the farmer can propose a block with the attached solution and proof of a valid solution.

After a farmer has at least one sector, they can begin farming. As soon as they observe a new challenge from the global randomness beacon, farmers scan each plot sector for a solution and propose a block if they find one, as follows:

plotted
Farming