OPTXOPTX DOCS
Getting Started

System Architecture

553015

Two JettChat modes (xChat Native and Phantom Mode) sharing AGT gaze, JTX gating, and Solana-native attestation.

Two Modes, One Core

JettChat supports two modes. Both share the AGT gaze pipeline, JTX gating, and Solana attestation; they differ at the auth surface and transport layer.

xChat NativePhantom Mode
Auth surfaceX OAuth 2.0 PKCE + Gaze TriadJett Hub visual SSO + Gaze Triad + JTX gate
TransportHTTPSTriple Tor .onion
CryptoTLS + Ed25519 JWTX25519 + ML-KEM-1024 (PQC), StrongBox/TEE keys
WakeStandard sessionPing-Pong biometric + duress PIN with wipe
Best forFaster onboarding, public networksMaximum privacy and metadata resistance
Implementationjettoptx/joe-jettchat-appSecure-Legion/android

Phantom Mode flow: JettChat → Jett Auth Hub (Gaze Triad + Jett Hub visual + JTX check) → Secure-Legion Core (Tor + PQC + StrongBox + Ping-Pong + duress wipe) → Solana (JTX token gate + attestation).

Architecture Overview

┌─────────────────────────────────────────────────────────┐
│  CLIENT (Next.js / React Native / Android)             │
│  ├── Gaze Camera Feed → MediaPipe → AGT Classification │
│  ├── Mode A: X OAuth + Solana Wallet (xChat Native)    │
│  └── Mode B: Jett Hub SSO + Tor (Phantom Mode)         │
├─────────────────────────────────────────────────────────┤
│  EDGE COMPUTE                                           │
│  ├── AARON Router — gaze verification + JTX gating     │
│  ├── JOE Agent — multi-tool orchestration              │
│  ├── HEDGEHOG — MCP gateway                            │
│  └── SpacetimeDB — real-time edge database             │
├─────────────────────────────────────────────────────────┤
│  ON-CHAIN (Solana)                                      │
│  ├── CSTB Trust DePIN Program (Anchor)                 │
│  ├── $OPTX Token (Token-2022 SPL)                      │
│  └── $JTX Token (mainnet — JettChat gating)            │
└─────────────────────────────────────────────────────────┘

Component Interaction

  User (Eyes + Wallet)
        |
        v
  +-----------+     +-----------+     +-------------+
  |  Frontend |---->|   AARON   |---->| SpacetimeDB |
  | (Next.js) |     |  Router   |     |  (Edge DB)  |
  +-----------+     +-----+-----+     +------+------+
                          |                   |
                    validates            stores gaze
                    gaze proof           sessions +
                    + AGT tensors        attestations
                          |                   |
                          v                   v
                    +-----+-----+     +------+------+
                    |    JOE    |<--->|  HEDGEHOG   |
                    |  (Agent)  |     |   (Brain)   |
                    +-----+-----+     +------+------+
                          |                   |
                    executes tools      routes AI to
                    Matrix chat,        Grok, tracks
                    service mgmt        tokens + context
                          |                   |
                          v                   v
                    +-----+-----+     +------+------+
                    |  Solana   |     |   SQLite    |
                    |  (Chain)  |     | (API audit) |
                    +-----------+     +-------------+

On-Chain Addresses

AssetAddressNetwork
DePIN Program91SqqYLMi5zNsfMab6rnvipwJhDpN4FEMSLgu8F3bbGqdevnet
$OPTX Mint4r9WoPsRjJzrYEuj6VdwowVrFZaXpu16Qt6xogcmdUXCdevnet
$JTX Mint9XpJiKEYzq5yDo5pJzRfjSRMPL2yPfDQXgiN7uYtBhUjmainnet
$CSTB Mint4waAAfTjqf5LNpj2TC5zoeiAgegVwKWoy4WiJgjdBkVLdevnet

$OPTX, $CSTB, and the DePIN Program are currently on Solana devnet. $JTX is on mainnet.

Edge Hardware

All private compute runs on OPTX Validator Nodes distributed across the network:

  • AARON Router — FastAPI gaze session manager + Solana bridge. Serves both JettChat modes.
  • JOE Agent — Dual-instance: edge-node primary (runs AARON + HEDGEHOG + SpacetimeDB) + containerized secondary for redundancy. See AstroJOE for runtime details.
  • HEDGEHOG — MCP gateway routing AI queries through Grok, storing gaze data in SpacetimeDB.
  • SpacetimeDB — Real-time database with reducers + subscriptions on the edge node.
  • Conduit — Matrix homeserver for federated agent communication. Optional transport — not part of JettChat dual-mode auth or messaging core. See Matrix Gateway.

Raw biometric data never leaves the validator node. Only 32-byte opaque proofs reach the blockchain.