Open Source Libraries
The open-source foundations that power Mercury.
Project Mercury stands on the shoulders of giants. We utilize several robust open-source libraries to ensure cross-platform compatibility, network resilience, and state-of-the-art cryptography.
Core & Networking
- libp2p: A modular network stack providing DHT, relayed connections, and P2P circuit routing. Mercury utilizes the Rust implementation of libp2p for superior memory safety and performance.
- WebRTC: Google's implementation of real-time communication, providing the foundational engine for secure audio/video channels and ICE negotiation.
- BoringSSL: Google's fork of OpenSSL, used for fundamental cryptographic operations (Ed25519 identity keys, AES-256-GCM encryption, X25519 key exchanges).
Data & Storage
- SQLite: A highly-reliable embedded SQL database engine used to securely persist encrypted chat history, contacts, and application state locally on your device.
- nlohmann/json: A modern C++ library for robust JSON parsing and serialization.
UI & Presentation (Android)
- Jetpack Compose: Android's modern toolkit for building native UI seamlessly and efficiently.
- Coil: An image loading library for Android backed by Kotlin Coroutines, used for rendering avatars and media previews.
- ZXing: "Zebra Crossing" multi-format 1D/2D barcode image processing library, used for fast and local QR code scanning.