ConnectAO is a proximity social network built on Arweave & AO (like decentralized crypto Tinder meets Signal) that turns real-world physical encounters into permanent on-chain connections. Nearby devices exchange and cryptographically sign packets over Bluetooth to create a Proof of Encounter and open a private end-to-end encrypted channel, offline or over decentralized relays.
Clean separation between immutable HyperBEAM state on Arweave and off-chain Node WebSocket relays delivers real-time E2EE communication while reserving on-chain slots exclusively for verifiable protocol state.
Continuous local Bluetooth Low Energy discovery within radio range without GPS tracking or carrier dependence. Neighboring phones negotiate identity and ephemeral encryption keys via an asymmetric GATT handshake.
Co-signed Secp256k1 encounter proofs commit through a dedicated SubmitEncounter slot on HyperBEAM → Arweave, cleanly decoupled from relay selection and node directory metadata.
Automatic transition between offline BLE GATT transport within radio range and decentralized Node.js WebSocket relays when separated — encrypted store-and-forward delivery purged upon client ACK.
Clients read active RelayNodes directly from HyperBEAM, measure network latency, filter offline endpoints, and perform automatic failover — with full support for manual node selection or custom relay URLs.
No central accounts, phone numbers, or email addresses. BIP-39 / Secp256k1 identity keys stay inside Keystore-backed encrypted storage and SQLCipher, while zero-slot /now/connect_state recovery on HyperBEAM / Arweave restores verified encounters, contacts, and Arweave avatars from your 12-word phrase.
Three lean tables anchor protocol state on HyperBEAM v0.11.1 (lua@5.3a) & Arweave L1 (ans104@1.0): verified encounters (VerifiedEncounters), registered relay nodes (RelayNodes), and user routing pointers (UserRelay) — deterministically reconstructible from slot 0.
Every physical encounter executes a deterministic two-step BLE GATT exchange producing two distinct Secp256k1 signatures: one commits immutable Proof of Encounter to Arweave via HyperBEAM, while the second authenticates ephemeral keys to open an encrypted channel.
Deterministic 4-byte ShortId comparison prevents GATT collisions by assigning GATT Client (lower ID) and GATT Server (higher ID) roles. Synchronized via NTP (±2s), peers exchange compressed Secp256k1 identity keys, fresh ephemeral X25519 ECDH keys, Arweave/Irys avatar hashes, and nicknames over binary GATT frames.
Devices exchange two cryptographic signatures: the canonical PoE signature is submitted through the SubmitEncounter HyperBEAM slot onto Arweave as public proof of presence, while the second session signature over both static public and ephemeral X25519 keys unlocks the ephemeral AES-256-GCM encrypted channel.
End-to-end AES-256-GCM messages seamlessly choose between direct BLE radio frames and high-speed off-chain Node WebSocket relay servers.
Within Bluetooth range, packets encrypted with ephemeral session keys cross directly over chunked GATT frames — completely independent of internet access or external infrastructure.
When peers move beyond radio range, the sender resolves the recipient's UserRelay from HyperBEAM and submits an AES-256-GCM payload to their active WebSocket relay. The relay verifies bilateral PoE state, delivers over authenticated WSS, and purges stored ciphertext upon ACK.
On-chain HyperBEAM slots are reserved strictly for verifiable identity, PoE, and routing state, while message delivery and node probing operate off-chain at native HTTP/WebSocket speed:
Devices commit the co-signed PoE proof in an ANS-104 Type 1 envelope into HyperBEAM process u_Sg9FMNNiwQjwjsW2Dkw1KSzbguJb_ta8FPrdpxkZM on Arweave, while their second public+ephemeral signature activates private E2EE chat.
Clients record primary and backup relay pointers in SetMyRelay. Initial selection and outage failover are immediate, manual switching carries a 24h cooldown, and custom URLs pass live /health verification before saving.
Clients read now/connect_state/relaynodes/serialize~json@1.0 directly from HyperBEAM, probe regional candidates over warm TLS connections for accurate latency scoring, and exclude unresponsive endpoints.
Node.js relay servers verify Secp256k1 signatures and HyperBEAM PoE state, deliver encrypted ciphertexts over authenticated WebSockets, and delete transient rows immediately upon client ACK.
Operators deploy containerized Node.js + SQLite relays behind HTTPS/WSS proxies, verify PoE records directly against HyperBEAM, and register public endpoints in RelayNodes.
Deploy an independent relay instance backed by Node 24, WAL SQLite persistence, and TLS reverse proxying to serve regional E2EE traffic and optional Radar metadata.
Configure NODE_ID, REGION, PUBLIC_URL, and optional banner URLs using the pre-built multi-arch image ghcr.io/connectao/connect-relay:latest from GitHub, point POE_READ_NODES to one or more HyperBEAM nodes, and launch via docker compose pull && docker compose up -d.
Expose port 8080 behind Caddy or an equivalent TLS ingress for automatic HTTPS and WebSocket upgrades (/health, /send, /ws), and publish the public endpoint and optional Radar banner into RelayNodes via a signed Arweave L1 transaction (1 AR directory registration, verified automatically on-chain).
Mobile clients fetch RelayNodes directly from HyperBEAM, measure warm TLS latency, route AES-256-GCM payloads without exposing message contents, or bind directly through manual relay configuration.
Always-up-to-date Docker Compose, Akash SDL v2.0 YAML, Caddy Let's Encrypt TLS templates, CLI registration script, and full source code are maintained in the official public repository using ghcr.io/connectao/connect-relay:latest.
http:// endpoints and verify system CA certificates for community relay nodes. Point a valid HTTPS/WSS domain (direct Let's Encrypt TLS via Caddy reverse proxy or Akash custom-domain TLS ingress) to your deployment and verify GET /health before registering below.
Sign a native 1 AR Arweave L1 transaction to the Connect Vault with node metadata sealed inside signed transaction tags. Once confirmed on Arweave L1 (≥ 2 blocks), the Connect Registrar automatically publishes the node into RelayNodes.
Layered defenses across device keystore, peer signatures, HyperBEAM slots, and relay endpoints.
Canonical encounter hashes are co-signed by both physical peers. A dual-mode HKDF forward-secret ratchet (Public Key recoverable mode or hardware-bound Ephemeral BLE X25519 mode) rotates AES-256-GCM keys per message while relays store only opaque ciphertext payloads.
Contract updates (Eval) are strictly locked to the process owner, directory claims use an isolated registrar verifier with SpentPaymentTxs replay protection, and relays reject any message lacking verified HyperBEAM PoE.
Verified social connections, Arweave avatars, and deterministic encryption keys reconstruct cleanly on any new device from your 12-word seed via zero-slot /now/connect_state reads on HyperBEAM / Arweave, paired with automatic outage failover and live /health checks on custom relays.