Skip to content

Bridge Solution Architecture

Relevant Source Files

VoidAI provides a decentralized interoperability layer connecting the Bittensor and Ethereum ecosystems. The system establishes a trust-minimized bridge, allowing the seamless movement of native tokens and subnet-issued derivatives without requiring centralized custody. Through cryptographic proofs, smart contract enforcement, and an orchestrated event pipeline, VoidAI delivers a permissionless, transparent, and low-latency cross-chain environment.

  • Cross-Chain Asset Mobility: Enable verifiable transfer of TAO and subnet-issued Alpha assets into wrapped representations on external chains.
  • Operational Security: Enforce immutability, verifiability, and tamper resistance at every stage of the bridging lifecycle.
  • Developer & User Experience: Abstract protocol complexity while preserving cryptographic guarantees, providing a streamlined interface for both end users and application developers.
  • End Users: Participants bridging or staking assets by interacting with VoidAI’s front-end and signing transactions in their native wallets.
  • Administrators: Entities managing token registration lifecycles and overseeing governance-controlled whitelisting of supported subnets.
  • VoidAI Core: The orchestration layer coordinating between on-chain contracts, validators, and off-chain event listeners.
  • Presentation Layer: User-facing interfaces built with responsive web technologies, supporting wallet integrations across Bittensor (Bittensor Wallet and Talisman), EVM (MetaMask and WalletConnect) and Solana (Phantom) ecosystems.
  • Business Layer: Stateless microservices coordinating authentication, bridge flows, and validator interactions.
  • Integration Layer: Connectors abstracting blockchain calls, decentralized storage operations, and external service dependencies.
  • Persistence Layer: Relational data storage optimized for transaction indexing, audit trails, and metadata association.

The user-facing interface suite includes:

  • Web Portal (app.voidai.com): Application to support the direct bridge operations

    • Wallet connection (Bittensor Wallet, Talisman, MetaMask, WalletConnect, Phantom)
    • Real-time conversion rates and fee estimation
    • Transaction history and status tracking
  • SDK Integration Points:

    • REST API endpoints for programmatic bridge access
    • WebSocket connections for real-time state updates

The stateless microservice tier orchestrating bridge flows:

  • Authentication Service:

    • Signature verification for Bittensor, EVM, and Solana wallets
    • Session management and CSRF protection
    • Rate limiting and DDoS mitigation
  • Bridge Orchestration:

    • Request validation against supported tokens and chains
    • Fee calculation based on network congestion and route complexity
    • Timeout management for long-running operations
    • Retry logic with exponential backoff for transient failures

Abstracted connectors for blockchain interaction:

  • Chain Connectors (Block-chain-specific adapters):

    • Bittensor: Native wallet integration, substrate chain state queries
    • Ethereum/Base: ethers.js with contract ABI bindings
    • Solana: Anchor framework for program interactions
  • Oracle Providers:

    • Chainlink CCIP integration for cross-chain message routing
    • Network fee providers for dynamic gas estimation
  • Storage Connectors:

    • IPFS for event proof references
    • Relational database for state management
    • Redis for session and cache layer

Data storage for transaction audit and state management:

  • Transaction Records:

    • Immutable transaction log with timestamps and status transitions
    • Event references with cryptographic proofs
    • Associated metadata (fee amount, exchange rate, slippage)
  • State Management:

    • User account state (balance, pending operations)
    • Whitelist registry for supported tokens
    • Configuration for enabled chains and routes
  • Audit Trail:

    • All state mutations logged for compliance
    • Fee revenue tracking and settlement records

Bittensor → Ethereum

1. User initiates bridge request with TAO address and Ethereum recipient
2. System displays fee quote (gas + protocol fee)
3. User signs transaction with Bittensor wallet
4. TAO tokens locked in Bittensor bridge contract
5. Bittensor bridge emits event with transaction proof
6. Ethereum smart contract receives minting authorization
7. WTAO tokens minted on Ethereum (1:1 ratio)
8. System updates audit trail with proof references

Ethereum → Bittensor (Redemption)

1. User initiates redemption with WTAO amount and Bittensor recipient
2. System calculates redemption fee
3. User approves WTAO spending and signs transaction
4. WTAO burned on Ethereum via bridge contract
5. Ethereum contract emits burn event with proof
7. Bittensor bridge receives redemption signal via oracle
8. Native TAO released from bridge escrow to recipient
9. Redemption completion recorded in audit trail

Subnet-issued ALPHA assets follow similar patterns to TAO with additional validation:

1. Subnet registration validated against whitelist
2. Alpha token contract verified on source chain
3. Wrapped token contract deployment on target chain (if new)
4. Price feed lookup for subnet performance metrics
5. Bridge proceeds identical to TAO flow
6. Subnet identifier maintained in wrapped token metadata
7. Cross-subnet conversion requires intermediate swap

All state transitions anchor to verifiable cryptographic proofs:

  • Event Hashing: Each transaction generates deterministic event hash from:

    • Transaction type (bridge, redeem, swap)
    • Source and destination chains
    • Token addresses and amounts
    • Sender and recipient addresses
    • Timestamp and sequence number
  • Validator Verification:

    • Multiple validators independently fetch block data from RPC nodes
    • Each validator computes event hash and compares to aggregated proof and update the state
  • Proof Storage:

    • Smart contracts store proof hashes for on-chain verification
  • Stateless Services: All business logic services designed for horizontal scaling
  • Event Listeners: Multiple independent listeners process chain events in parallel
  • Transaction Processors: Worker pool scales dynamically based on queue depth
  • API Servers: Load balancing across multiple API instances
  • Query Optimization:

    • Database indexes on transaction queries
    • Connection pooling with statement caching
  • Content Delivery:

    • Static assets (JS/CSS/fonts) via CDN with long cache headers
  • RPC Load Balancing: Multiple RPC endpoint providers per chain
  • Fallback Providers: Automatic failover to backup RPC nodes
  • Content Delivery & Distribution: Static assets served via global CDNs to ensure minimal latency across geographies.
  • Wallet-Native Signing: User private keys remain in user wallets (MetaMask, Phantom, etc.)
    • Backend never has access to user keys
    • All transactions signed locally before submission
  • Transaction Hashing:

    • Each operation assigned unique hash based on full transaction state
    • Hash stored in database and referenced in smart contracts
    • Prevents replay attacks through nonce inclusion
    • Timestamp-based ordering prevents reordering attacks
  • Smart Contract Audit Trail:

    • All bridge operations logged as contract events
    • Immutable event records with transaction hash references
    • Ability to reconstruct entire bridge state from event logs
    • Public event verification for transparency
  • Contract Audits:

    • Full external audit by top-tier security firms
    • Formal verification for critical core contracts
  • Access Control:

    • Role-based access control (RBAC) for administrative functions
    • Timelock delays on critical governance actions
    • Multi-signature requirements for contract upgrades
    • Emergency pause mechanisms with quick activation
  • Reentrancy Protection:

    • Checks-Effects-Interactions pattern enforced
    • ReentrancyGuard used on all fund transfer functions
    • Pull over push pattern for external payments
    • Comprehensive test coverage (>95%) for all contracts
  • Redundancy: Critical orchestration services run in multi-zone deployments with automated failover.
  • Monitoring: Continuous telemetry for system health, transaction flows, and anomaly detection.
  • Disaster Recovery: Regular snapshots and multi-location replication of critical state to ensure continuity.
  • Upgradability: Modular contract and microservice design allow feature extension without disrupting existing flows.
  • Current Chain Support:

    • Bittensor (native chain for TAO/ALPHA)
    • Ethereum
    • Base (enabled via CCIP)
    • Solana (enabled via CCIP)
  • Protocol Agnostic Design:

    • Chain abstraction layer allows swap of chain logic
    • Token standards supported: ERC-20, SPL, substrate pallets
    • RPC provider abstraction enables multi-provider fallback
    • Event schema compatible with future chains