Files
aitbc/docs/development/1_overview.md
aitbc 19d415a235
Some checks failed
Blockchain Synchronization Verification / sync-verification (push) Failing after 3s
CLI Tests / test-cli (push) Failing after 3s
Cross-Chain Functionality Tests / test-cross-chain-sync (push) Successful in 2s
Cross-Chain Functionality Tests / test-cross-chain-transactions (push) Successful in 3s
Cross-Chain Functionality Tests / test-cross-chain-bridge (push) Has been skipped
Cross-Chain Functionality Tests / test-multi-chain-consensus (push) Successful in 2s
Cross-Chain Functionality Tests / aggregate-results (push) Has been skipped
Deploy to Testnet / deploy-testnet (push) Successful in 1m12s
Documentation Validation / validate-docs (push) Failing after 8s
Documentation Validation / validate-policies-strict (push) Successful in 3s
Integration Tests / test-service-integration (push) Successful in 2m6s
Multi-Chain Island Architecture Tests / test-multi-chain-island (push) Successful in 2s
Multi-Node Blockchain Health Monitoring / health-check (push) Failing after 4s
P2P Network Verification / p2p-verification (push) Successful in 4s
Package Tests / Python package - aitbc-agent-sdk (push) Successful in 32s
Package Tests / Python package - aitbc-core (push) Successful in 14s
Package Tests / Python package - aitbc-crypto (push) Successful in 12s
Package Tests / Python package - aitbc-sdk (push) Successful in 9s
Package Tests / JavaScript package - aitbc-sdk-js (push) Successful in 8s
Package Tests / JavaScript package - aitbc-token (push) Successful in 17s
Python Tests / test-python (push) Successful in 15s
Security Scanning / security-scan (push) Successful in 27s
Node Failover Simulation / failover-test (push) Successful in 7s
Multi-Node Stress Testing / stress-test (push) Successful in 6s
Cross-Node Transaction Testing / transaction-test (push) Successful in 4s
feat: add SQLCipher database encryption support and consolidate agent documentation
- Add SQLCipher encryption for ait-mainnet database with configurable flag
- Add db_encryption_enabled and db_encryption_key_path config settings
- Implement encryption key loading and PRAGMA key setup via connection events
- Add shutdown_db function for proper database cleanup
- Export middleware classes in aitbc/__init__.py
- Fix import path in sync.py for settings
- Remove duplicate agent documentation from docs
2026-05-03 12:00:38 +02:00

6.1 KiB

title, description
title description
Developer Overview Introduction to developing on the AITBC platform

Developer Overview

Welcome to the AITBC developer documentation! This guide will help you understand how to build applications and services on the AITBC blockchain platform.

What You Can Build on AITBC

AI/ML Applications

  • Inference Services: Deploy and monetize AI models
  • Training Services: Offer distributed model training
  • Data Processing: Build data pipelines with verifiable computation

DeFi Applications

  • Prediction Markets: Create markets for AI predictions
  • Computational Derivatives: Financial products based on AI outcomes
  • Staking Pools: Earn rewards by providing compute resources

NFT & Gaming

  • Generative Art: Create AI-powered NFT generators
  • Dynamic NFTs: NFTs that evolve based on AI computations
  • AI Gaming: Games with AI-driven mechanics

Infrastructure Tools

  • Oracles: Bridge real-world data to blockchain
  • Monitoring Tools: Track network performance
  • Development Tools: SDKs, frameworks, and utilities

Architecture Overview

graph TB
    subgraph "Developer Tools"
        A[Python SDK] --> E[Coordinator API]
        B[JS SDK] --> E
        C[CLI Tools] --> E
        D[Smart Contracts] --> F[Blockchain]
    end
    
    subgraph "AITBC Platform"
        E --> G[Marketplace]
        F --> H[Miners/Validators]
        G --> I[Job Execution]
    end
    
    subgraph "External Services"
        J[AI Models] --> I
        K[Storage] --> I
        L[Oracles] --> F
    end

Key Concepts

Jobs

Jobs are the fundamental unit of computation on AITBC. They represent AI tasks that need to be executed by miners.

Smart Contracts

AITBC uses smart contracts for:

  • Marketplace operations
  • Payment processing
  • Dispute resolution
  • Governance

Proofs & Receipts

All computations generate cryptographic proofs:

  • Execution Proofs: Verify correct computation
  • Receipts: Proof of job completion
  • Attestations: Multiple validator signatures

Tokens & Economics

  • AITBC Token: Native utility token
  • Job Payments: Pay for computation
  • Staking: Secure the network
  • Rewards: Earn for providing services

Development Stack

Core Technologies

  • Blockchain: Custom PoS consensus
  • Smart Contracts: Solidity-compatible
  • APIs: RESTful with OpenAPI specs
  • WebSockets: Real-time updates

Languages & Frameworks

  • Python: Primary SDK and ML support
  • JavaScript/TypeScript: Web and Node.js support
  • Rust: High-performance components
  • Go: Infrastructure services

Tools & Libraries

  • Docker: Containerization
  • Kubernetes: Orchestration
  • Prometheus: Monitoring
  • Grafana: Visualization

Getting Started

1. Set Up Development Environment

# Install AITBC CLI
pip install aitbc-cli

# Initialize project
aitbc init my-project
cd my-project

# Start local development
aitbc dev start

2. Choose Your Path

AI/ML Developer

  • Focus on model integration
  • Learn about job specifications
  • Understand proof generation

DApp Developer

  • Study smart contract patterns
  • Master the SDKs
  • Build user interfaces

Infrastructure Developer

  • Run a node or miner
  • Build tools and utilities
  • Contribute to core protocol

3. Build Your First Application

Choose a tutorial based on your interest:

Developer Resources

Documentation

Tools

Community

Development Workflow

1. Local Development

# Start local testnet
aitbc dev start

# Run tests
aitbc test

# Deploy locally
aitbc deploy --local

2. Testnet Deployment

# Configure for testnet
aitbc config set network testnet

# Deploy to testnet
aitbc deploy --testnet

# Verify deployment
aitbc status

3. Production Deployment

# Configure for mainnet
aitbc config set network mainnet

# Deploy to production
aitbc deploy --mainnet

# Monitor deployment
aitbc monitor

Security Considerations

Smart Contract Security

  • Follow established patterns
  • Use audited libraries
  • Test thoroughly
  • Consider formal verification

API Security

  • Use API keys properly
  • Implement rate limiting
  • Validate inputs
  • Use HTTPS everywhere

Key Management

  • Never commit private keys
  • Use hardware wallets
  • Implement multi-sig
  • Regular key rotation

Performance Optimization

Job Optimization

  • Minimize computation overhead
  • Use efficient data formats
  • Batch operations when possible
  • Profile and benchmark

Cost Optimization

  • Optimize resource usage
  • Use spot instances when possible
  • Implement caching
  • Monitor spending

Contributing to AITBC

We welcome contributions! Areas where you can help:

Core Protocol

  • Consensus improvements
  • New cryptographic primitives
  • Performance optimizations
  • Bug fixes

Developer Tools

  • SDK improvements
  • New language support
  • Better documentation
  • Tooling enhancements

Ecosystem

  • Sample applications
  • Tutorials and guides
  • Community support
  • Integration examples

See our Contributing Guide for details.

Support

Next Steps

  1. Set up your environment
  2. Learn about authentication
  3. Choose an SDK
  4. Build your first app

Happy building!