r/Arweave • • 7h ago

ConnectAO — Decentralized Social Network on Arweave & AO Computer

Thumbnail connectao.ar.io
2 Upvotes

I built ConnectAO, a decentralized proximity social protocol (think decentralized crypto Tinder meets Signal) where nearby Android devices run a 2-phase BLE GATT handshake with deterministic Client/Server roles. Phase 1 exchanges static secp256k1 identity keys and ephemeral X25519 keys, and Phase 2 exchanges NTP-calibrated timestamps and two distinct secp256k1 signatures: a session signature binding the ephemeral X25519 ECDH keys to open a private forward-secret E2EE channel (offline over BLE or across community relays), and a canonical Proof of Encounter signature anchored permanently on Arweave via AO (Lua 5.3a + ANS-104). A few architecture details (live and tested on two physical phones):

  • BLE handshake completes in ~660ms.
  • All reads use zero-slot HyperBEAM state (/now/connect_state), so AO slots (permanently archived on Arweave) are only spent on encounters, relay registration, and user relay selection, never on polling or messages.
  • Messaging uses an inbox model: each client holds 1 persistent WSS connection to its chosen relay and pushes E2EE messages directly via POST /send to the peer's relay (~184ms warm delivery).
  • Relays are stateless open-source Docker containers (EU and AU nodes are live on Akash). Anyone can run a node, and optionally display a radar banner while users stay free to switch relays anytime.

Feel free to test the Android app, inspect the Lua contract, or spin up a relay node, and let me know what you think.