Why Raven How It Works Features Technical Privacy GitHub Get Raven
Technical Deep Dive

How Raven works

A technical overview of the encryption, mesh protocol, and hybrid architecture that powers private, offline-capable messaging.

🔐 End-to-End Encryption

Every message in Raven is encrypted on the sender's device and can only be decrypted by the intended recipient. The server and mesh relay nodes never have access to plaintext.

AES-256-GCM Ed25519 HMAC-SHA256 HKDF

📡 Bluetooth Mesh Protocol

Raven uses Bluetooth Low Energy (BLE) to create a device-to-device mesh network. Messages hop between nearby devices until they reach the recipient — no internet required.

BLE 5.0 Spray-and-Wait TTL Hops Anti-Replay

🌐 Hybrid Delivery Architecture

Raven intelligently selects the optimal delivery path for every message. The decision engine runs entirely on-device — no cloud dependency for routing logic.

📦 MeshEnvelope Structure

Every message — whether sent online or via mesh — is wrapped in a MeshEnvelope that provides routing metadata while keeping the payload opaque.

MeshEnvelope {
  id:           SHA-256 hash (dedup key)
  sender_id:    anonymized device ID
  recipient_id: target device hash
  payload:      AES-256-GCM encrypted blob
  signature:    Ed25519 signature
  hmac:         HMAC-SHA256 authentication
  ttl:          remaining hop count
  timestamp:    ISO-8601 creation time
  nonce:        anti-replay nonce
  route_type:   online | direct | bridge
}

⚡ Server Architecture

The server is a thin relay — it stores and forwards encrypted blobs but never has access to plaintext. Built with Python FastAPI for performance.

FastAPI WebSocket PostgreSQL Cloud Run

📊 How Raven Compares

Raven combines the best of encrypted messaging with offline mesh capabilities:

Feature Raven Signal WhatsApp Briar
E2E Encryption
Works Offline (Mesh)
Works Online (Server)
Hybrid Routing
Open Source
Social Feed
Multi-hop Relay
Native iOS App

Want to see the code?

Our security-critical code is public and auditable.

View on GitHub Download on App Store