ConnectAO PoE v3.3
Decentralized Social Network on Arweave & AO Computer
Decentralized Social Network on Arweave & AO Computer

Autonomous Physical Proximity Verification & Decentralized P2P Protocol

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.

PHY: BLE GATT (MTU 512B) SCANNING BLE GATT

Key Features of the Protocol

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.

01 / PROXIMITY SENSING

Passive BLE Radar Discovery

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.

Zero-GPS Radio Detection
02 / BILATERAL PoE

Verified Proof of Encounter

Co-signed Secp256k1 encounter proofs commit through a dedicated SubmitEncounter slot on HyperBEAM → Arweave, cleanly decoupled from relay selection and node directory metadata.

HyperBEAM → Arweave PoE
03 / DUAL-MODE ROUTING

BLE Local + Node WSS Relays

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.

BLE Radio ↔ Node WebSocket Relay
04 / FLEXIBLE ROUTING

Auto Discovery & Manual Node Setup

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.

Auto Failover + Manual Configuration
05 / SOVEREIGN IDENTITY

Seed Identity & Zero-Slot Recovery

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.

SQLCipher + Zero-Slot 12-Word Recovery
06 / RECONSTRUCTIBLE LEDGER

Immutable Contract Registry

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.

Arweave L1 & HyperBEAM v0.11.1

Two-Phase BLE Proximity Handshake

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.

PHASE 1 / KEY EXCHANGE & ROLES

Identity + Ephemeral Key Negotiation

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.

Secp256k1 Identity + Ephemeral X25519
PHASE 2 / DUAL SIGNATURES

PoE Arweave Proof & Session Signature

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.

Slot PoE Proof + Ephemeral E2EE Channel

Dual E2EE Communication Channel

End-to-end AES-256-GCM messages seamlessly choose between direct BLE radio frames and high-speed off-chain Node WebSocket relay servers.

LOCAL PHY CHANNEL

Direct Offline BLE GATT Chat

Within Bluetooth range, packets encrypted with ephemeral session keys cross directly over chunked GATT frames — completely independent of internet access or external infrastructure.

Low-Latency Radio Transport
OFF-CHAIN NODE RELAY

PoE-Gated WebSocket Delivery

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.

Transient Ciphertext Store • ACK Purge

Decentralized HyperBEAM & Relay Architecture

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:

END-TO-END PROTOCOL FLOW USER A → RELAY B → USER B
01

Two-Signature BLE Handshake → Arweave PoE (SubmitEncounter)

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.

02

Primary Routing & Manual Node Override (SetMyRelay)

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.

03

Client Node Discovery & Warm RTT Measurement

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.

04

PoE-Verified Off-Chain Node Relays (/ws & /send)

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.

05

Permissionless Community Node Network

Operators deploy containerized Node.js + SQLite relays behind HTTPS/WSS proxies, verify PoE records directly against HyperBEAM, and register public endpoints in RelayNodes.

Run a Connect Relay Node

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.

STEP 01 / CONFIGURE & LAUNCH

Docker & Node 24 Container

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.

Node 24 + WAL SQLite (/data/relay.db)
STEP 02 / HTTPS & PUBLISH

TLS Reverse Proxy & L1 Registration

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).

Caddy TLS • Arweave L1 Verified
STEP 03 / CLIENT ROUTING

Autonomous Network Discovery

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.

Zero Central Directory Trust
OPEN-SOURCE RELAY • MULTI-ARCH GHCR IMAGE (AMD64 / ARM64)

Deploy a Relay Node via GitHub

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.

HTTPS/WSS requirement: Connect mobile clients reject plain 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.
ARWEAVE L1 DIRECTORY REGISTRATION

Register a Public Relay Node

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.

Wallet not connected
3–48 lowercase characters: a-z, 0-9, -, _
Used by clients for regional latency probing
HTTPS or WSS endpoint serving /health, /send, and /ws (include :port if non-443, e.g. Akash NodePort)
Optional Radar Banner (Image + Link) Images may be hosted on Irys (https://gateway.irys.xyz/...) or any HTTPS host
Recommended: 1300×300 px (13:3 full-width Radar banner, auto-cropped)
Vault: D-91oPt3Yt2Ife8s_vzOF39_sQSg2t8QQRzDPfnG6Ao Registration Fee: 1 AR (Arweave L1)

                

Cryptographic Security Model

Layered defenses across device keystore, peer signatures, HyperBEAM slots, and relay endpoints.

ASYMMETRIC WITNESS

Bilateral Signature & Forward Secrecy

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.

ZERO-TRUST VERIFICATION

Separated Roles & Replay Defense

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.

SEED RECOVERY & ROUTING

Zero-Slot Recovery & Failover

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.