Solarium

Protocol Architecture

How Solarium achieves trustless, verifiable AI inference on Solana.

DApp Request
Worker Node
Judge 01
Judge 02

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.

Program IDSoLaRiUm8d8d1e3yZfWvB2...

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.

rust
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

Staking LimitsWorker Minimum Stake: 1 SOLValidator Minimum Stake: 0.5 SOL
Fee DistributionProtocol Fee: 5% (500 bps)Worker Reward: 80% of task rewardValidator Reward: 20% split among validators
Slashing ConditionsSlash (wrong verdict): 5% of stakeSlash (no reveal): 2% of stake

PDA Seeds

All accounts are derived using Program Derived Addresses:

Node ["node", wallet_pubkey]
Task ["task", task_id]
Vault ["vault", node_pubkey]