Swan Chain
  • BULDERS
    • Getting Started
    • DApp Developer
      • Deploying Your First Smart Contract with Remix
      • Interacting with Smart Contract on Swan Chain Using Go
    • App Developer
      • Building Docker Images and Deployment file with LDL
        • Lagrange Definition Language(LDL)
      • Deploying with Swan SDK
      • Store and Retrieve a File with Swan Storage
        • 1. Set up the python-MCS-SDK
        • 2.Create and Manage Buckets
        • 3.Upload Files and Folders
        • 4.Retrieve and Download Files
        • 5.Delete Files and Buckets
    • Node Operator
      • Swan Node Snapshots
    • Market Provider
      • Storage Market
      • AI/ML Orchestrator
        • Decentralized AI Marketplace
        • Connect to Orchestrator
      • Web3 ZK Computing Market
        • ZK Auction Engine
        • Sequencer
        • Contribute zk-UBI-task
          • How to Contribute
        • Example
      • Customized Market Provider
    • Computing Provider
      • Fog Computing Provider(FCP)
        • FCP Setup
        • Migrating FCP to Swan Mainnet
        • FCP Funding Operations Guide
        • FCP FAQ
      • Edge Computing Provider (ECP)
        • ECP Setup
        • ECP Funding Operations Guide
        • ECP FAQ
      • FAQ
    • Storage Provider
      • Storage Auction System
    • Developer Tools
      • Swan SDK
        • Python Swan SDK
          • Special Case: Create ssh login instance
          • SWAN Orchestrator SDK - Function and Parameter Reference
        • Go Swan SDK
          • A Sample Tutorial
      • Swan Console
        • Getting Started
        • Blockchain GPU Task Example
        • Custom Blockchain GPU Task Pools
      • Lagrange
      • Swan IPFS Storage
      • Nebula Block Cloud
      • Ecosystem Projects
    • Mission 3.0
      • Get Started
        • For Users
        • For Space Holders
  • NETWORK REFERENCE
    • Network Info
      • Set Up Your Wallet
      • Bridge Token
    • Contract Addresses
    • Fees
  • Core Concepts
    • Introduction to Swan Chain
    • Consensus Layer
    • Peer-to-peer (P2P) Network
    • Payment Channels
    • Service Discovery
    • Market Provider
      • Storage Market
      • AI Computing Marketplace
        • Orchestrator
        • Auction Engine
        • Bidding Task State Machine
      • ZK Proof Marketplace
        • ZK Task
        • ZK Pool
    • Storage Layer
    • Computing Layer
      • Computing Provider Protocol
      • Computing Provider Account
      • Layer3 Computing Protocol
      • Reputation System
      • Dynamic Pricing
    • CDN Layer
    • Tokenomics
      • UBI Allocation Curve
      • Computing Provider Income
      • Computing Provider Collateral
        • Collateral Requirement and Computing Unit
        • DePIN Oracle
      • Governance
        • Treasure DAO
    • Glossary
  • Swan Chain Campaign
    • Swan CP UBI
    • Swan Chain Mainnet
      • Network Information
      • Swan Token
      • Swan Chain Mission
        • Social Mission
        • Onchain Mission
        • Mission: Celestial Bloom
      • Swan Provider Campaign
        • Fog Computing Provider (FCP)
        • Edge Computing Provider (ECP)
        • Market Provider (MP)
      • GALXE Campaign
      • Free Tier and Special Credit Programs
    • Atom Accelerator Race
      • Before You Get Started
        • Set Up MetaMask
        • Claim SepoliaETH
        • Claim testSWAN
      • CP Acceleration Program
      • Builder Acceleration Program
      • On-chain Interaction Race
      • Community Engagement Challenge
      • FAQ
    • Swan Saturn Testnet
      • Before You Get Started
        • Set Up MetaMask
        • Claim Faucet Tokens
        • Bridge Tokens
      • Transaction Drive Program
      • Community and Educational Events
      • Partnership and Integration Program
      • KOL Program
      • Computing Provider Program
        • FAQ
      • Developer Grant Program
      • FAQ
    • Swan Jupiter Testnet
      • How to Participate
      • Before You Get Started
      • Network Early Adopter
      • FAQ
  • RESOURCE
    • Links
    • Brand Kit
Powered by GitBook
On this page
  1. Core Concepts
  2. Computing Layer

Layer3 Computing Protocol

A Layer3 designed for high performance AI computing

Introduction

The Layer3 Computing Protocol aims to aggregate computing jobs submission with reduced gas fees, ensuring efficient data management and scalability. This protocol utilizes IPLD for data storage, generates unique CIDs, and employs a Sequencer for batching and submitting tasks to Swan Chain.

Key Components

  1. Data Storage and CID Generation

  2. Submission of Blob CIDs

  3. Role of the Sequencer

    • Receiving Proofs

    • Validating Proofs

    • Batching Proofs

    • Submitting Data

    • Gas Fee Management

Detailed Process Flow

1. Data Storage and CID Generation

  • Step 1: Data related to computing tasks and results are stored using the IPLD format.

  • Step 2: Unique CIDs are generated for these data entries.

2. Submission of Blob CIDs

  • Step 1: Generated CIDs are submitted to smart contracts as blobs.

  • Step 2: This ensures long-term persistence of job data and results.

3. Role of the Sequencer

  • Step 1: CPs submit proofs of completed tasks to the Sequencer.

  • Step 2: Sequencer validates the received proofs.

  • Step 3: Valid proofs are batched together by the Sequencer.

  • Step 4: Sequencer submits the batched data to Swan Chain.

  • Step 5: AggregateTask contracts are created with blob CIDs.

  • Step 6: Sequencer manages gas fees, maintaining separate accounts for gas costs.

Benefits

  • Reduced Gas Costs: By batching tasks and submitting them as aggregated blobs, gas costs are minimized, making the system more efficient and cost-effective.

  • Efficient Data Management: Using IPLD and unique CIDs ensures that data is stored efficiently and can be easily retrieved and validated.

  • Secure and Scalable: The Sequencer enhances security by validating proofs and aggregating tasks, allowing for scalable and secure job submissions to the Swan Chain.

The Layer3 Computing Protocol provides a robust solution for decentralized computing by optimizing job submissions, reducing gas fees, and ensuring efficient data management. By leveraging IPLD for data storage and employing a Sequencer for validation and batching, the protocol enhances security and scalability, making it a key component of the Swan Chain ecosystem.

Example Use Case

  • AI/ML Workloads: Aggregate multiple AI/ML model training tasks and submit them as a single batch to reduce gas costs.

  • Data Archiving: Use IPLD to store large datasets, generating unique CIDs for efficient retrieval and long-term persistence.

  • Content Delivery: Manage and aggregate content delivery tasks, ensuring secure and scalable distribution across the network.

Glossary

  • IPLD: InterPlanetary Linked Data, a format for storing and referencing data.

  • CID: Content Identifier, a unique identifier for data stored in IPLD.

  • Sequencer: A component that receives, validates, batches, and submits tasks to the blockchain.

  • CP: Computing Provider, an entity that provides computing resources and submits proofs of completed tasks.

  • AggregateTask: A contract on Swan Chain that references aggregated task data using blob CIDs.

PreviousComputing Provider AccountNextReputation System

Last updated 10 months ago