Messenger

Tier Messenger is a keyboard-driven terminal application for end-to-end encrypted messages between Tier users.

Connection and identity

Messenger connects to a local tierd process through its Unix admin socket. The daemon must be running and connected to the same Tier network as the other participants.

A user identity is hosted on a node and identified by a 64-digit hexadecimal ID. If the node has no identity, Messenger can create one. To add a contact, enter their full ID and verify it with them over a separate trusted channel. A local "verified" marker is a reminder; it does not independently verify identity.

Encryption and authentication

Before sending, Messenger seals a message to the recipient's published encryption keys and signs the envelope with the sender's Ed25519 identity key. The signature authenticates the sender and protects the envelope from modification. Communicators that relay a message forward ciphertext, not plaintext.

The sender chooses an encryption suite per message. The default is hybrid.

  • Classical: X25519 key agreement, HKDF-SHA256 key derivation, and ChaCha20-Poly1305 authenticated encryption.
  • Hybrid (default): combines X25519 and ML-KEM-768 shared secrets before deriving the ChaCha20-Poly1305 key.
  • Post-quantum: uses ML-KEM-768 for key encapsulation, followed by HKDF-SHA256 and ChaCha20-Poly1305.

The hybrid suite is designed to remain confidential if either X25519 or ML-KEM is later broken. The available suite can be set globally or for an individual contact.

Delivery

Clients use communicator-assisted presence lookup to discover a recipient. Messenger tries direct delivery first; if that fails, a communicator can relay the sealed message. Delivery is best-effort and online-only. The recipient Messenger, or another live subscriber for that user, must be connected to receive it.

A delivery check mark means that a live subscriber received the message; it is not a read receipt. The network does not queue messages for offline users.

Local data and use

Contacts, display names, settings, and conversation history are stored in a local SQLite database. The database is not encrypted by Messenger; use operating-system account security or disk encryption to protect local history. By default the database is stored at ~/.local/share/tier-messenger/store.db.

The interface uses keyboard navigation. Press ? for in-app help; : opens the command prompt, and :q quits. Use :contacts/add to add a contact and :profile to show your user ID.

Start the client with sudo tier-messenger. To select an identity explicitly, use sudo tier-messenger --as <64-hex-user-id>.

Full documentation: Messenger, Identity model, Encryption.