Protocol Architecture
How Solarium achieves trustless, verifiable AI inference on Solana.
Overview
Solarium is an on-chain protocol built with Anchor on Solana. It coordinates a network of Worker and Validator nodes to execute AI inference tasks and reach cryptographic consensus on the results.
SoLaRiUm8d8d1e3yZfWvB2...Commit-Reveal Consensus
The protocol uses a two-phase commit-reveal mechanism to prevent front-running and ensure honest reporting:
Phase 1: Commit
Commit Phase: Worker executes inference, computes SHA-256 hash of (verdict + confidence + salt), and submits the commitment on-chain. Validators independently verify the execution trace and commit their vote hashes.
let commitment = hash(verdict || confidence || salt);Phase 2: Reveal
Reveal Phase: After the commit deadline, all parties reveal their raw values. The contract verifies each reveal matches its commitment. Mismatches trigger slashing.
Economics
PDA Seeds
All accounts are derived using Program Derived Addresses:
["node", wallet_pubkey]["task", task_id]["vault", node_pubkey]