How opentensor/bittensor works
Main Components
a. Core Components:
• Subtensor (Blockchain Interface)
• Axon (Network Server)
• Dendrite (Network Client)
• Metagraph (Network State)
• Synapse (Protocol Layer)
b. Supporting Systems:
• Chain Data Management
• Extrinsics Handler
• Utils & Configuration
• Registration System
• Logging System
Component Relationships
┌─ Application Layer ─────────────────────────────────┐
• Metagraph │ Configuration │ Settings │ ThreadPool │
• Protocol Layer ──────────────────────────────────┐ │
• Axon │ Dendrite │ Synapse │ Tensor │ │
• Blockchain Interface Layer ────────────────────┐ │ │
• Subtensor │ AsyncSubtensor │ Stream │ │ │
• Chain Data Layer ──────────────────────────┐ │ │ │
• NeuronInfo │ StakeInfo │ SubnetInfo │ │ │ │
• Extrinsics Layer ────────────────────────┐ │ │ │ │
• Registration │ Weights │ Transfer │ │ │ │ │
• ┘ │ │ │ │
• ┘ │ │ │
• ┘ │
• ┘
Key Interactions to Highlight
a. Data Flow:
• How data flows from miners through Axon/Dendrite
• Blockchain interaction patterns
• Demonstrate weight setting and transfer mechanisms
b. Control Flow:
• Registration process flow
• Consensus mechanism interaction
• Subnet validation flow
Implementation Details
• Component version information
• Key dependencies (PyTorch, etc.)
• External service connections
• API endpoints