Overview
Mesh Infrastructure Overview
The anon0mesh infrastructure is a strategy-agnostic system for offline transaction relay and encrypted messaging on mobile devices. It allows mesh network creation with any communication pattern and provides confidential transaction execution through cryptographic primitives.
Key Features
The infrastructure supports standard Nostr online messaging, BLE P2P offline messaging and confidential Solana transaction relay. Each mesh session operates independently with its own peer lifecycle. Network participation is represented by ephemeral identities that maintain forward secrecy through key rotation.
Design Principles
The system separates mesh infrastructure from application implementation. This allows:
Any developer to plug applications using the mesh transport layer
Users to maintain privacy through ephemeral peer identities
Applications to evolve without protocol changes
Transport Standards
The protocol operates on two complementary layers:
BLE layer for device discovery and packet transport
Cryptographic layer for message encryption and authentication
BLE mesh supports:
Dual-mode operation (Central + Peripheral) for flexible topologies
TTL-based flooding for multi-hop relay
Automatic peer discovery and connection management
Cryptographic layer supports:
Nostr NIP-04/44 for encrypted direct messages
NIP-17 gift-wrap for forward secrecy and metadata protection
Arcium MPC circuits for confidential transaction execution
Lifecycle Management
Each mesh session has three state layers tracking:
Network state - Active peers, connection topology, routing tables
Message state - Pending messages, delivery confirmations, replay cache
Transaction state - Queued transactions, execution status, settlement records
The epoch system ensures orderly processing of messages and transactions while peers relay packets according to their local policy. Arcium circuits execute confidential operations without revealing transaction details to relay nodes.
Protocol Layers
Transport Layer (BLE)
Packet serialization with compact wire format
MTU-aware fragmentation and reassembly
Connection multiplexing across multiple peers
Adaptive TTL based on network density
Network Layer (Mesh)
Flood-based routing with deduplication
Peer reputation scoring for spam prevention
Priority queuing for urgent messages
Gossip protocol for state synchronization
Application Layer (Nostr + Solana)
NIP-compatible message wrapping
Transaction queue with automatic retry
Escrow contract integration via Arcium
Settlement monitoring and confirmation
Security Model
The infrastructure implements defense-in-depth:
Transport security - BLE encryption for local links
Message security - End-to-end encryption via NIP-17
Transaction security - MPC execution via Arcium circuits
Network security - Sybil resistance through proof-of-relay
Extension Points
Developers can extend the mesh through:
Custom packet types - Define application-specific payloads
Relay policies - Implement custom forwarding logic
Encryption schemes - Add new NIPs or cryptographic protocols
Transaction types - Support additional blockchain networks
Implementation Standards
The program provides one reference implementations:
React Native for iOS and Android mobile apps
The implementations share:
Common packet format and wire protocol
Compatible Nostr cryptographic operations
Identical transaction relay semantics
State Management
Each peer maintains local state across restarts:
Persistent identity keys (Nostr keypair)
Message history with delivery status
Transaction queue with retry metadata
Peer reputation scores
The state system ensures reliable delivery despite connection interruptions while maintaining privacy through selective disclosure and forward secrecy.
Use Cases
The infrastructure supports diverse applications:
P2P Payments - Confidential value transfer without centralized relays
Emergency Comms - Censorship-resistant messaging during outages
IoT Networks - Lightweight protocol for constrained devices
Community Networks - Local mesh for neighborhoods, events or off-grids communities
DeFi Integration - Offline transaction submission with online settlement
Last updated
