Using Rogue Messaging in the Desktop Client
The Messaging tab (located directly below Dashboard in the left sidebar of rogue-desktop-client) connects to the centralized rogue-nats-server from the Rust backend using your active unlocked wallet.
1. Connecting & Authentication
- Unlock your wallet in
rogue-desktop-client. - Open Messaging in the left sidebar.
- Verify or edit the server URL in the top bar (default dev:
nats://127.0.0.1:4222, production:tls://nats.roguechain.org:4222) and click Connect. - The Rust backend signs the EIP-191 challenge automatically—your private key never leaves Rust or touches the WebView.
- Switching your active wallet automatically disconnects the previous NATS session and reconnects under the new
0xaddress.
2. Channels, Ordering & Gated Rooms
- Ordering: System channels (
#announcements,#general) are pinned at the top. All other channels are sorted in descending order by active connected members, with alphabetical tie-breaking. - Gated Channels (🔒): Channels such as
#hash-wardens(Lv.3+) appear with a lock icon. If yourRogueMinerReputationlevel is below the requirement, NATS denies reading, history, and publishing at the protocol level. - History & Replies: Opening a room loads the latest
200messages; click Load Older (200) to paginate backward. Hover over any message to quote-reply (reply_to) or delete your own message. - Creating Rooms: Click
+next to Channels (requires>= 50 ROGUEorLv.2+). Room creators can update the topic, moderate, or delete their room.
3. End-to-End Encrypted Direct Messages (E2EE DMs)
- Direct messages use ECIES (
secp256k1ECDH + HKDF-SHA256 + AES-256-GCM) encrypted client-to-client. - The recipient must have connected to
rogue-nats-serverat least once so their compressedsecp256k1public key is registered inROGUE_PROFILES. - The server retains encrypted DM ciphertexts in
ROGUE_DMfor30days.rogue-desktop-clientcaches decrypted DMs locally inapp_data_direncrypted at rest using a key derived from your wallet.
[!WARNING] Key Loss / Rotation Notice: E2EE DMs are bound to your
0xwallet'ssecp256k1key. If you lose your mnemonic/private key or switch to a different wallet address, historical E2EE DMs encrypted for the previous key cannot be decrypted.