Skip to main content
Swiv is built on Solana and combines on-chain and private execution components to deliver both transparency and privacy.

Architecture

Solana Program

Handles pool lifecycle, staking, and payouts on-chain. All financial settlement is transparent and verifiable.

Private Execution (MagicBlock's Private Ephemeral Rollups)

Processes predictions, updates, and reward calculations securely off-chain, preventing data leakage before settlement.

Oracle Integration

Integrates with Pyth Oracle to source final outcome data at the exact pool deadline.

Backend Services

Coordinates resolution and submission of results, bridging private computation with on-chain settlement.

Data Flow

1

User submits prediction

Prediction is sent to the private execution environment — it is not visible on-chain.
2

Pool closes

No further predictions or updates are accepted.
3

Oracle fetches final outcome

The outcome value is pulled from the oracle at the exact cutoff time.
4

Private execution calculates weights

Accuracy scores, time bonuses, and conviction bonuses are computed securely.
5

Results submitted on-chain

Final weights and payouts are submitted to the Solana program.
6

Rewards distributed

Participants can claim their rewards directly from the on-chain program.

Design Goals

PropertyMechanism
TransparencyOn-chain settlement via Solana
PrivacyOff-chain computation via MagicBlock TEE
Trustless outcomesPyth Oracle-sourced final values
LivenessAutomated backend resolution