libsignal exposes Java, Swift, and TypeScript APIs over Rust implementations of the Signal Protocol and related crypto. Signal’s own apps and servers depend on it.
Overview
libsignal centralizes cryptography for Signal Messenger. Rust crates implement the Double Ratchet protocol, AES-GCM helpers, zero-knowledge group credentials, username hashing, attestation, media utilities, and related primitives formerly spread across older Java libraries.
Official Signal Android, iOS, and Desktop clients link against published Maven, Swift, and NPM packages with bundled native binaries. The maintainers state that use outside Signal is unsupported and APIs may change with limited notice.
Building from source requires Rust, Clang, CMake, protoc, and platform-specific toolchains for Android, desktop, or Node targets. Contributed changes need a CLA and typically must serve Signal’s production clients.
Key features
- Signal Protocol implementation
- Zero-knowledge group credentials
- Multi-language FFI bridges
- Secure value recovery keys
- Username hashing and proofs
- Published Maven and NPM artifacts
Use cases
- Signal client cryptography
- End-to-end encryption research
- Studying modern ratchet designs
- Cross-platform secure messaging stacks