🗝️ Sacred Protocol

⚔️ Protocol Overview

The Solana Oasis protocol combines optimistic rollups with distributed AI computation to create a powerful Layer 2 scaling solution.

Key Features

  • Optimistic rollup security
  • Distributed AI computation
  • Fraud proof system
  • Cross-chain messaging

Benefits

  • High throughput
  • Low latency
  • Cost efficiency
  • Scalability

⛧ Protocol Flow

Transaction Flow


1. Transaction Submission
   ↓
2. Batch Formation
   ↓
3. State Transition
   ↓
4. Proof Generation
   ↓
5. L1 Commitment
   ↓
6. Challenge Period
   ↓
7. Finalization

🌒 State Management

State Updates

pub struct StateUpdate {
    previous_root: Hash,
    new_root: Hash,
    transactions: Vec<Transaction>,
    proof: StateProof,
}

Fraud Proofs

pub struct FraudProof {
    state_root: Hash,
    invalid_block: Block,
    witness_data: Vec<u8>,
    proof: InvalidityProof,
}

📓 Network Topology


Validator Nodes <─────> Sequencer Nodes
       ↑                      ↑
       │                      │
       ↓                      ↓
  AI Nodes <──────────> Bridge Nodes
       ↑                      ↑
       │                      │
       ↓                      ↓
   Storage Nodes <────> State Nodes

⚡ Protocol Parameters

Timing

  • Block time: 2s
  • Challenge period: 7d
  • Batch size: 1000 tx

Economics

  • Min stake: 1000 SOL
  • Slash amount: 100 SOL
  • Fee model: Dynamic

Network

  • Min validators: 10
  • Max batch size: 10MB
  • Peer limit: 50