Skip to content

Rasslonely/vericast

Repository files navigation

Vericast Omega Logo

VERICAST OMEGA

Unified Verifiable State Layer on 0G Network

Gaming · SocialFi · DePIN — Powered by TEE Attestation, DA Blobs, and On-Chain Settlement

🔗 VERI Token · ⚖️ VericastArbiter · 🪪 VericastAgentID


🔍 The Problem

Modern Web3 applications across gaming, social finance, and decentralized physical infrastructure (DePIN) share a critical, unresolved vulnerability: state fraud.

Domain The Problem
🎮 Gaming Game servers can lie. Cheating tools manipulate client-side state. Match outcomes and in-game economies are unverifiable by players or third parties.
🌐 SocialFi Bot networks and Sybil accounts pollute decentralized social feeds. Reputation systems can be gamed without on-chain identity verification.
📡 DePIN Physical sensors transmit real-world data (temperature, humidity, location). There is no cryptographic guarantee that this data is authentic before it reaches a smart contract.

The root cause: There is no neutral, hardware-enforced layer that can sit between real-world events and blockchain state — one that guarantees data integrity before it becomes immutable.


💡 The Solution: Vericast Omega

Vericast Omega is a verifiable state layer that connects real-world events to on-chain settlements through a tamper-proof pipeline, using the full 0G infrastructure stack.

Every state transition is: Ingested → Anchored → Attested → Settled.

No off-chain logic is trusted blindly. Every computation is executed inside a Trusted Execution Environment (TEE), its result is sealed with a hardware attestation, and then committed to 0G Chain for permanent, auditable finality.


🌐 Web 4.0: The Observer Paradigm

Vericast Omega moves beyond the interactive models of Web2 and Web3 into the Autonomous Observer Paradigm of Web4.

  • Zero Human Intervention: Logic is executed by autonomous daemons, not triggered by user buttons.
  • Hardware-Attested Truth: Computation happens in TEE enclaves (gpt-oss-120b), ensuring the backend cannot lie.
  • Observer Role: The user does not "play" or "input"; they observe a verifiable stream of cryptographic truth settled on the 0G Chain.

🏗️ System Architecture

High-Level Topology

graph TD
    subgraph Users["User Layer"]
        Observer["Observer (Browser)"]
    end

    subgraph Frontend["Frontend — Next.js 14 / Observer UI"]
        GP[GamePanel]
        SP[SocialPanel]
        DP[DePINPanel]
        VB[VericastBadge]
        GT[Global Terminal]
    end

    subgraph Backend["Backend — FastAPI Autonomous Daemons"]
        API["/stream (SSE)"]
        GAME["game_daemon"]
        SOCIAL["social_daemon"]
        DEPIN["depin_daemon"]
    end

    subgraph ZeroG["0G Decentralized Infrastructure"]
        DA["0G DA (Storage)"]
        KV["0G KV (Hot State)"]
        TEE["0G Compute TEE (Inference)"]
        CHAIN["0G Chain (Settlement)"]
    end

    Observer -->|Observes| Frontend
    API -->|SSE Events| Frontend
    GAME & SOCIAL & DEPIN -->|Broadcast| API
    GAME & SOCIAL & DEPIN -->|Anchor| DA
    GAME & SOCIAL & DEPIN -->|Attest| TEE
    GAME & SOCIAL & DEPIN -->|Cache| KV
    DA & TEE & KV -->|Settle| CHAIN
Loading

The 5-Layer Architecture Stack

Layer Component Role Status
L1 — Ingest 0G DA Content-addressed blob storage. All raw inputs anchored before processing. ✅ CONFIRMED
L2 — Attest 0G Compute TEE Hardware-sealed computation. Logic executes inside a secure enclave. ✅ CONFIRMED
L3 — Query 0G KV Sub-second hot state for real-time dashboard sync and dApp queries. ✅ CONFIRMED
L4 — Settle 0G Chain VericastArbiter commits the TEE-sealed state root. ✅ CONFIRMED
L5 — Identity VericastAgentID ERC-7857 Intelligent NFT. Ties actors to verifiable operations. ✅ CONFIRMED

🔄 Operational Pipelines

1. Gaming: Tick-to-State

sequenceDiagram
    participant D as Game Daemon
    participant DA as 0G DA
    participant TEE as 0G TEE
    participant KV as 0G KV
    participant C as 0G Chain

    D->>DA: Upload Tick Blob
    DA-->>D: blob_id
    D->>TEE: Request Attestation (Logic Validation)
    TEE-->>D: state_root + tee_seal
    D->>KV: Update Hot State
    D->>C: VericastArbiter.submitStateRoot()
    C-->>D: tx_hash
Loading

2. SocialFi: Sybil Audit

sequenceDiagram
    participant D as Social Daemon
    participant TEE as 0G TEE
    participant AID as AgentID Registry
    participant KV as 0G KV
    participant C as 0G Chain

    D->>TEE: Analyze behavioral patterns
    TEE-->>D: audit_report + tee_seal
    D->>AID: Cross-ref ERC-7857 metadata
    D->>KV: Flag suspicious agents
    D->>C: Settle Audit proof on-chain
Loading

3. DePIN: Sensor-to-Chain

sequenceDiagram
    participant S as Physical Sensor
    participant D as DePIN Daemon
    participant DA as 0G DA
    participant TEE as 0G TEE
    participant C as 0G Chain

    S->>D: Telemetry Data
    D->>DA: Anchor Data Anchor
    D->>TEE: Hardware validation of sensor range
    TEE-->>D: sensor_attestation
    D->>C: VericastArbiter.submitStateRoot()
Loading

🔐 Smart Contracts

All contracts are deployed on 0G Galileo Testnet (Chain ID: 16602).

VericastArbiter.sol — Optimistic Settlement Engine

  • Address: 0xF495bc8e6dDeCE3c76eDa91babe88041423d0181
  • Accepts TEE-sealed state roots via submitStateRoot()
  • 150-block dispute window (DISPUTE_WINDOW = 150)
  • Disputes resolved via RISC Zero ZK-proof (resolveDispute())
  • Supports batch submissions (batchSubmit())
  • UUPS upgradeable proxy pattern (OpenZeppelin)

VericastAgentID.sol — ERC-7857 Agent Identity

VERI.sol — Utility Token


🚀 Quick Start

Prerequisites

  • Node.js v20+, npm
  • Python 3.11+
  • An EVM wallet with 0G Galileo testnet tokens

1. Frontend

cd frontend
npm install
cp .env.example .env.local  # Configure your API URL
npm run dev

Environment Variables (frontend/.env.local):

NEXT_PUBLIC_API_URL=http://127.0.0.1:8000
NEXT_PUBLIC_EXPLORER_URL=https://chainscan-galileo.0g.ai

Open http://localhost:3000

2. Backend

cd backend
pip install -r requirements.txt
cp .env.example .env  # Configure 0G credentials
uvicorn main:app --host 0.0.0.0 --port 8000

Environment Variables (backend/.env):

PRIVATE_KEY=your_wallet_private_key
OG_RPC_URL=https://evmrpc-testnet.0g.ai
OG_CHAIN_ID=16602
OG_DA_RPC=https://rpc-storage-testnet.0g.ai
OG_KV_RPC=https://rpc-kv-testnet.0g.ai
OG_TEE_BROKER_URL=https://broker.tee.0g.ai
VERICAST_ARBITER=0xF495bc8e6dDeCE3c76eDa91babe88041423d0181

3. Verify the Backend is Running

curl http://127.0.0.1:8000/health

Expected response:

{
  "status": "healthy",
  "0g_da": true,
  "0g_kv": true,
  "0g_tee": true,
  "0g_chain": true,
  "integrations_verified": true
}

4. Docker Compose (Optional)

docker-compose up --build

🌐 Live API Endpoints

Method Endpoint Description
GET /health System health — all 0G services status
GET /stream SSE real-time event stream (dashboard sync)
POST /game/submit-tick Submit and verify a game tick
POST /social/audit Trigger Sybil audit on a social feed
GET /depin/weather/{lat}/{lon} Ingest and verify sensor telemetry

🛠️ Tech Stack

Layer Technology
Frontend Next.js 14, TypeScript, Tailwind CSS, Framer Motion
Backend Python 3.11, FastAPI, uvicorn, 0G TypeScript SDK
Smart Contracts Solidity 0.8.24, Hardhat, Foundry, OpenZeppelin
0G Infrastructure 0G DA, 0G Compute (TEE), 0G KV, 0G Chain EVM
Security Trusted Execution Environment (TEE), RISC Zero ZK (dispute), UUPS Proxy

🔐 Security Model

Vericast Omega implements a Defense-in-Depth cryptographic pipeline:

graph LR
    Input[Raw Input] --> DA[0G DA: Data Availability]
    DA --> TEE[0G TEE: Hardware Attestation]
    TEE --> KV[0G KV: State Integrity]
    KV --> Chain[0G Chain: Final Settlement]
    Chain --> ZK[RISC Zero: ZK Dispute]
Loading

Key Invariants:

  • Anti-Withholding: All inputs anchored in 0G DA before processing.
  • Hardware Enforced: TEE (gpt-oss-120b) ensures logic cannot be tampered with by the operator.
  • Sub-Second Proofs: 0G KV ensures hot state is verifiable within milliseconds.
  • ZK Arbitration: Disputes on-chain are resolved via trustless RISC Zero zero-knowledge proofs.
  • Unified ID: Agent identities are bound to ERC-7857 NFTs on 0G Chain.

📄 License

MIT License. See LICENSE for details.


Built for HackQuest × 0G Galileo Testnet Hackathon 2026

⚖️ VericastArbiter on Explorer · 🪪 AgentID on Explorer · 🪙 VERI Token on Explorer

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors