Network & Security

Learn about Mesh's network architecture and security features.

Network Topology

Mesh uses a decentralized peer-to-peer network topology. Each user connects directly to other peers or through relay servers.

┌─────────┐     ┌─────────┐
│  Peer   │────▶│  Peer   │
└─────────┘     └─────────┘
       │              │
       ▼              ▼
    ┌─────────────────────┐
    │      Relay         │
    │    (optional)       │
    └─────────────────────┘

Security Model

  • End-to-end encryption - All messages are encrypted using the Signal Protocol
  • Forward secrecy - Session keys are rotated regularly
  • Perfect forward secrecy - Compromised keys cannot decrypt old messages
  • No metadata - Minimal metadata collection

Best Practices

  1. Use TLS on your relay servers
  2. Keep your relay software up to date
  3. Use strong authentication tokens
  4. Monitor connection logs for anomalies
  5. Configure firewall rules appropriately