Skip to content

Overview

Welcome to Hyra Network! This guide will help you understand the fundamentals of our distributed AI inference platform and how to get started.

Hyra Network is a fully decentralized AI inference platform built on Ethereum that enables users to request AI model inference, AI workers to process tasks, and verifiers to validate results using Zero-Knowledge Proofs (ZKP). The entire system operates 100% on-chain with native ETH payments and automatic task creation.

The Hyra AI Network consists of three main roles:

  • Claim tasks from the marketplace
  • Run AI models to process inference requests
  • Submit results with ZKP proofs for verification
  • Earn rewards in HYRA tokens for completed tasks
  • Request AI inference by paying HYRA tokens
  • Get AI responses directly from the network
  • Access multiple AI models through a unified interface
  • Pay per use with transparent pricing
  • Validate ZKP proofs to ensure computation integrity
  • Distribute rewards to successful AI workers
  • Maintain network quality through verification
  • Prevent cheating and ensure honest computation
  • Prevent AI Worker Cheating: ZKP ensures workers actually performed the computation
  • Privacy-Preserving: Input and output data remain encrypted
  • Cryptographic Guarantees: Mathematical proof of computation correctness
  • No Trust Required: Verification without revealing sensitive data
  • Encrypted Task Input/Output: All data encrypted before submission to smart contracts
  • Two-Phase Encryption: Multiple layers of security for maximum protection
  • On-Chain Task Distribution: All task management saved on blockchain via smart contracts
  • Decentralized Architecture: No single point of failure
  • Automatic Task Creation: Tasks created automatically when users request inference
  • On-Chain Task Management: All task distribution saved on blockchain
  • Native ETH Payments: Simple payment system with native cryptocurrency
  • Transparent Pricing: Clear cost calculation based on token usage
  1. User Request β†’ User pays HYRA tokens and requests AI inference
  2. Auto Task Creation β†’ ModelRegistry automatically creates AI task in available TaskPool
  3. AI Worker Claims β†’ AI worker claims task via TaskRouter and gets model data
  4. AI Processing β†’ AI worker runs the model and generates result + ZKP proof
  5. Result Submission β†’ AI worker submits result and proof via TaskRouter
  6. ZKP Verification β†’ Verifier validates the proof and pays rewards
  7. Result Update β†’ ModelRegistry is updated with the final result
  8. User Gets Result β†’ User can read the result from ModelRegistry

The Zero-Knowledge Proof system ensures AI workers cannot cheat by:

  • Proving Computation: Workers must generate cryptographic proof they actually ran the AI model
  • Hiding Private Data: Input data and model parameters remain private during verification
  • Verifying Correctness: Verifiers can confirm the computation was done correctly without re-running it
  • Preventing Lazy Workers: Workers cannot submit random results without doing the work

Your data is protected through:

  • Input Encryption: Task inputs encrypted before submission to smart contracts
  • Output Encryption: AI results encrypted during transmission
  • ZKP Privacy: Zero-knowledge proofs verify computation without revealing data
  • Decentralized Storage: No central authority has access to your data
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ AI End Users β”‚ β”‚ AI Workers β”‚ β”‚ Verifiers β”‚
β”‚ β”‚ β”‚ β”‚ β”‚ β”‚
β”‚ β€’ Request AI β”‚ β”‚ β€’ Claim tasks β”‚ β”‚ β€’ Verify ZKP β”‚
β”‚ β€’ Pay HYRA β”‚ β”‚ β€’ Run models β”‚ β”‚ β€’ Pay rewards β”‚
β”‚ β€’ Get results β”‚ β”‚ β€’ Submit proofs β”‚ β”‚ β€’ Update resultsβ”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
β”‚ β”‚ β”‚
β–Ό β–Ό β–Ό
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ HYRA AI Network β”‚
β”‚ β”‚
β”‚ β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚
β”‚ β”‚ModelRegistry│◄──►│ TaskRouter │◄──►│TaskPool β”‚ β”‚
β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚
β”‚ β”‚β€’ User reqs β”‚ β”‚β€’ Task dist β”‚ β”‚β€’ Task mgmt β”‚ β”‚
β”‚ β”‚β€’ Payments β”‚ β”‚β€’ Worker mgmtβ”‚ β”‚β€’ Queues β”‚ β”‚
β”‚ β”‚β€’ Results β”‚ β”‚β€’ Pool disc β”‚ β”‚β€’ Rewards β”‚ β”‚
β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚
β”‚ β”‚ β”‚
β”‚ β–Ό β”‚
β”‚ β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚
β”‚ β”‚TaskPoolFactoryβ”‚ β”‚
β”‚ β”‚ β”‚ β”‚
β”‚ β”‚β€’ Pool creat β”‚ β”‚
β”‚ β”‚β€’ Pool mgmt β”‚ β”‚
β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
  • Earn HYRA Tokens: Get paid for processing AI inference tasks
  • Flexible Work: Work when you want, claim tasks as available
  • Fair Verification: ZKP system ensures honest workers get rewarded
  • Multiple Models: Access to various AI models and task types
  • Easy Access: Simple interface to request AI inference
  • Pay with HYRA: Use native HYRA tokens for payments
  • Multiple Models: Access to different AI models through one platform
  • Transparent Pricing: Clear cost calculation and payment system
  • Fully Decentralized: No single point of failure
  • Transparent: All operations on blockchain
  • Scalable: Multiple task pools for high throughput
  • Secure: ZKP verification prevents cheating
from hyra_sdk import HyraClient
# Initialize client
client = HyraClient()
# Core workflow
task = client.claim_task() # Get task
result = process_ai_task(task['input_data']) # Process
submit_hash = client.submit_task( # Submit
task['task_id'],
result,
task['pool_address']
)
const { HyraClient } = require("@hyra-network/sdk");
// Initialize client
const client = new HyraClient();
// Core workflow
const task = await client.claimTask(); // Get task
const result = await processAITask(task.inputData); // Process
const submitHash = await client.submitTask(
// Submit
task.taskId,
result,
task.poolAddress
);

When you claim a task, you receive:

{
"task_id": int, # Unique task identifier
"reward": int, # Reward amount in wei
"deadline": int, # Unix timestamp when task expires
"assigned_to": str, # Your wallet address
"request_id": int, # Inference request ID
"model_name": str, # AI model name to use
"input_data": str, # Task input/prompt
"pool_address": str, # Task pool contract address
"tx_hash": str # Transaction hash
}

Ready to get started? Choose your role and follow the appropriate guide: