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 Native | Phantom Mode | |
|---|---|---|
| Auth surface | X OAuth 2.0 PKCE + Gaze Triad | Jett Hub visual SSO + Gaze Triad + JTX gate |
| Transport | HTTPS | Triple Tor .onion |
| Crypto | TLS + Ed25519 JWT | X25519 + ML-KEM-1024 (PQC), StrongBox/TEE keys |
| Wake | Standard session | Ping-Pong biometric + duress PIN with wipe |
| Best for | Faster onboarding, public networks | Maximum privacy and metadata resistance |
| Implementation | jettoptx/joe-jettchat-app | Secure-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
| Asset | Address | Network |
|---|---|---|
| DePIN Program | 91SqqYLMi5zNsfMab6rnvipwJhDpN4FEMSLgu8F3bbGq | devnet |
| $OPTX Mint | 4r9WoPsRjJzrYEuj6VdwowVrFZaXpu16Qt6xogcmdUXC | devnet |
| $JTX Mint | 9XpJiKEYzq5yDo5pJzRfjSRMPL2yPfDQXgiN7uYtBhUj | mainnet |
| $CSTB Mint | 4waAAfTjqf5LNpj2TC5zoeiAgegVwKWoy4WiJgjdBkVL | devnet |
$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.