A Permissionless Communication & Value Exchange Network


 

1. 🌍 Abstract

OpenChat is a decentralized communication protocol that enables anyone with a mobile device to communicate freely—without reliance on centralized infrastructure. By integrating Bluetooth-based mesh networking and cryptographic identity, OpenChat ensures that communication remains available both online and offline.

BluetoothPay extends this capability by enabling secure, peer-to-peer value exchange without internet connectivity. Built on state channel technology, it enables instant offline payments with cryptographically enforced security and deferred settlement mechanisms.

Together, OpenChat and BluetoothPay form a unified system for communication and financial interaction without permission, borders, or centralized control—creating a resilient infrastructure for human connection that functions anywhere, regardless of internet availability.


2. 🚨 Problem Statement

2.1 Centralized Communication Risks


2.2 Internet Dependency

Critical communication systems fail when:

  • Internet infrastructure is damaged or destroyed

  • Governments impose network shutdowns (during elections, protests, or conflicts)

  • Users are in rural or remote areas with limited connectivity

  • Economic barriers prevent affordable data access

2.3 Financial Exclusion

Approximately 1.4 billion adults remain unbanked globally. Even digital currencies—designed for financial inclusion—typically require:

  • Continuous internet connectivity

  • Third-party intermediaries (exchanges, custodians)

  • Smartphone data plans many cannot afford

The gap is clear: existing solutions fail when connectivity fails.


3. πŸ’‘ Solution Overview

OpenChat and BluetoothPay form an integrated system addressing these gaps through:


4. 🧠 Core Principles


5. πŸ—️ System Architecture

text

┌─────────────────────────────────────────────────────────────┐
│                     APPLICATION LAYER                        │
│            Messaging UI  │  Wallet UI  │  Contacts           │
├─────────────────────────────────────────────────────────────┤
│                     PROTOCOL LAYER                           │
│   ┌──────────────┐  ┌──────────────┐  ┌──────────────┐     │
│   │  OpenChat    │  │ BluetoothPay │  │   Identity   │     │
│   │  (Messaging) │  │  (Payments)  │  │   (Keys)     │     │
│   └──────────────┘  └──────────────┘  └──────────────┘     │
├─────────────────────────────────────────────────────────────┤
│                    TRANSPORT LAYER                           │
│   ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐     │
│   │ Internet │ │ Bluetooth│ │Wi-Fi Direct│ │   Mesh   │     │
│   │ (WebRTC) │ │   (BLE)  │ │   (P2P)   │ │  Routing │     │
│   └──────────┘ └──────────┘ └──────────┘ └──────────┘     │
└─────────────────────────────────────────────────────────────┘

5.1 Identity Layer

Users generate cryptographic key pairs locally on their device:

  • Public Key → User address / identity

  • Private Key → Sole control over identity and assets

  • Key Format → Ed25519 (compatible with major cryptographic standards)

No phone number, email, or registration required.

5.2 Communication Layer (OpenChat)

  • End-to-end encrypted messaging using XChaCha20-Poly1305

  • Perfect forward secrecy via ephemeral session keys

  • Peer-to-peer direct messaging

  • Group messaging with efficient key distribution

  • Message signing for authentication and non-repudiation

5.3 Transport Layer

Multi-channel routing automatically selects the optimal transport:

5.4 Mesh Networking

Devices participating in the mesh act as autonomous nodes:

  • Store: Persist messages for offline recipients

  • Forward: Relay messages toward intended recipients

  • Discover: Dynamically identify nearby nodes

  • Route: Maintain routing tables for efficient delivery

Inspiration: Briar (resilience), Bridgefy (simplicity), and LoRaWAN (long-range where available)

5.5 Adaptive Routing Engine

The routing engine continuously evaluates available connectivity and selects the optimal delivery path:

text

IF recipient is nearby via Bluetooth:
    deliver directly
ELSE IF internet connection available:
    deliver via P2P relay
ELSE:
    queue for future delivery via mesh
    broadcast discovery signals

6. πŸ’¬ OpenChat Protocol

Core Features

Message Structure

json

{
  "version": 1,
  "id": "sha256_hash",
  "type": "direct|group|ack",
  "from": "public_key_hex",
  "to": "public_key_hex|group_id",
  "timestamp": 1700000000,
  "ttl": 86400,
  "payload": "encrypted_data_base64",
  "signature": "ed25519_signature_base64"
}

Group Messaging

Group chats use a hybrid approach:

  • Sender encrypts message with group key

  • Group key distributed via pairwise encrypted channels

  • Key rotation on membership changes


7. πŸ’Έ BluetoothPay Protocol

BluetoothPay enables offline financial transactions using state channel technology—the same security model underpinning Bitcoin's Lightning Network.

7.1 Design Model

BluetoothPay operates on three fundamental mechanisms:

7.2 Payment Flow

text

Phase 1: Channel Opening (Requires Internet)
┌─────────────────────────────────────────────────────────┐
│ Alice and Carol open a 2-of-2 multisignature channel   │
│ on the underlying blockchain (BTC, ABR, Ethereum, etc.) │
│ Both deposit funds; channel state = initial balances   │
└─────────────────────────────────────────────────────────┘
                           │
                           ▼
Phase 2: Offline Payments (No Internet Required)
┌─────────────────────────────────────────────────────────┐
│ Alice → Carol: $5 via Bluetooth                        │
│                                                         │
│ Both sign a new commitment transaction reflecting      │
│ updated balances. Each holds a revocation key that     │
│ penalizes any attempt to broadcast an old state.       │
│                                                         │
│ [Repeat offline indefinitely]                          │
└─────────────────────────────────────────────────────────┘
                           │
                           ▼
Phase 3: Settlement (Internet Restored)
┌─────────────────────────────────────────────────────────┐
│ Either party broadcasts the final signed state to      │
│ the blockchain, closing the channel and distributing   │
│ final balances according to the last agreed state.     │
└─────────────────────────────────────────────────────────┘

7.3 Transaction Structure

json

{
  "version": 1,
  "channel_id": "sha256_hash",
  "sequence": 5,
  "from": "public_key_hex",
  "to": "public_key_hex",
  "amount": 5000000,
  "balance_alice": 15000000,
  "balance_carol": 5000000,
  "revocation_hash": "sha256_preimage_hash",
  "signature_alice": "ed25519_signature",
  "signature_carol": "ed25519_signature"
}

Amounts expressed in ABR/BTC satoshis or smallest unit of underlying asset.

7.4 Security Mechanisms

7.5 Underlying Asset Support

BluetoothPay is chain-agnostic, supporting:

  • Bitcoin (primary focus—largest security budget, mature Lightning ecosystem)

  • Liquid Network (for confidential transactions)

  • Ethereum L2s (via ERC-20 stablecoins)

  • Mutually agreed assets (any token with smart contract capabilities)


8. πŸ” Security & Privacy Model

Encryption Architecture

text

┌────────────────────────────────────────────────────┐
│                   Message Flow                      │
├────────────────────────────────────────────────────┤
│  Plaintext → Session Key → XChaCha20-Poly1305    │
│           → Encrypted Payload → Transport         │
│                                                    │
│  Keys: Ephemeral per session (Double Ratchet)     │
│  Perfect Forward Secrecy: YES                     │
└────────────────────────────────────────────────────┘

Privacy Protections

Threat Model Assumptions

We assume attackers may:

  • Monitor network traffic

  • Compromise some network nodes

  • Attempt to sybil the mesh

  • Censor internet connectivity

We do NOT assume:

  • Physical device compromise (beyond OS security boundaries)

  • Breaking of modern cryptography (XChaCha20, Ed25519)


9. ⚠️ Challenges & Mitigations

9.1 Abuse & Spam

9.2 Offline Payment Risks

9.3 Mesh Network Limitations

9.4 Identity Recovery


10. 🌐 Use Cases


11. πŸš€ Roadmap

Phase 1: Foundation (Q1-Q2)

  • Cryptographic identity layer (Ed25519)

  • Internet-based messaging (WebRTC P2P)

  • End-to-end encryption (Double Ratchet)

  • Basic contact management

Phase 2: Offline Communication (Q3-Q4)

  • Bluetooth Low Energy transport

  • Nearby device discovery

  • Direct device-to-device messaging

  • Message queueing for offline delivery

Phase 3: Mesh Networking (Year 2)

  • Multi-hop routing

  • Store-and-forward message propagation

  • Mesh topology optimization

  • Battery-efficient relay algorithms

Phase 4: BluetoothPay (Year 2-3)

  • State channel implementation

  • BTC/ABR mainnet integration

  • Offline payment flow

  • Channel management UI

  • Watchtower service integration

Phase 5: Ecosystem Expansion (Year 3+)

  • Group messaging over mesh

  • Multi-hop payments (Lightning-style routing)

  • DApp protocol extensions

  • Desktop and iOS clients

  • Hardware wallet integration


12. 🧩 Ecosystem Vision

OpenChat is not merely an application—it is a protocol layer enabling:

text

┌─────────────────────────────────────────────────────────┐
│                   APPLICATION LAYER                      │
│  OpenChat App  │  Third-party Clients  │  DApps         │
├─────────────────────────────────────────────────────────┤
│                   PROTOCOL LAYER                         │
│  OpenChat Protocol (Messaging)                          │
│  BluetoothPay Protocol (Payments)                       │
│  Identity Protocol (Keys)                               │
├─────────────────────────────────────────────────────────┤
│                   TRANSPORT LAYER                        │
│  Internet  │  Bluetooth  │  Mesh  │  (Future: LoRa)    │
└─────────────────────────────────────────────────────────┘

Third-party developers can:

  • Build alternative clients using the same protocol

  • Integrate OpenChat messaging into existing applications

  • Extend BluetoothPay for specific commerce use cases

  • Create specialized mesh routing strategies


13. 🌍 Vision Statement

"A world where anyone with a mobile device can communicate and exchange value freely—without permission, without borders, and without dependence on centralized infrastructure. Where connectivity is a right, not a privilege dependent on geography or government approval." HRH. JOHN BABATUNDE LEE


14. πŸ“Š Comparison with Existing Solutions


15. πŸ“Œ Conclusion

OpenChat and BluetoothPay address a fundamental gap in today's digital infrastructure: the assumption that internet connectivity is always available.

By combining:

  • Self-sovereign identity (no phone numbers, no registration)

  • Multi-transport communication (internet, Bluetooth, mesh)

  • State channel payments (secure offline value exchange)

...this system enables human connection and economic interaction in environments where existing solutions fail.

This is not merely a technical project—it is a step toward communication and financial infrastructure that respects user sovereignty, survives infrastructure failure, and operates beyond the reach of censorship.


Appendix A: Cryptographic Specifications


Appendix B: Glossary


Version: 2.0 | Last Updated: 21st March 2026


Comments

Popular posts from this blog

🧭 Roadmap: Research and Product Development Officer – NairaX

πŸ“„ Technical Hiring Needs Sheet – JohnLee Developers / AfriChain Ecosystem

🧭 Roadmap: Product / UI / UX Designer – NairaX