Skip to content

Release v0.1.9 - Fix Encryption Key Generation

Choose a tag to compare

@blocksorg blocksorg released this 04 Nov 00:31
· 26 commits to main since this release

MigChat CLI v0.1.9 - Encryption Key Generation Fix

This is a hotfix release that resolves an issue where users couldn't view their encryption fingerprint or use encryption features.

πŸ› Bug Fix

Fixed: "No such file or directory" Error on Fingerprint View

Issue: Users who created accounts before v0.1.8 (or who didn't have local encryption keys) encountered this error when trying to view their fingerprint:

═══ Your Encryption Fingerprint ═══
βœ— Failed to get fingerprint: No such file or directory (os error 2)

Root Cause: Encryption keys were only generated during new account creation. When logging into existing accounts, the CLI assumed keys already existed, causing failures for users without local keys.

Solution: The CLI now automatically generates encryption keys when logging into existing accounts if they don't exist locally. This matches the behavior of new account creation.

πŸ”§ What's Changed

Automatic Key Generation on Login

  • Added key existence check when logging into existing accounts
  • Automatically generates encryption keys if they don't exist
  • Uploads public keys to server
  • Displays fingerprint after generation
  • Provides better error messages with guidance

Improved User Experience

  • Seamless: No manual intervention required
  • Backwards compatible: Doesn't affect users with existing keys
  • Consistent: Same key generation flow as account creation

πŸ“ Changes

Full Changelog: v0.1.8...v0.1.9

Merged PRs

  • #8: Fix: Generate encryption keys automatically on login

Commits

  • 1420c99: Fix: Generate encryption keys automatically on login
  • 87e3003: Bump version to 0.1.9

πŸš€ Upgrade Instructions

  1. Download the new binary for your platform below
  2. Replace your existing binary
  3. For existing users without keys: Simply log out and log back in
    • Your encryption keys will be automatically generated
    • You'll see your fingerprint displayed
    • All encryption features will work normally

πŸ” Encryption Features

All v0.1.8 encryption features remain available:

  • End-to-end encryption with Signal Protocol/X3DH
  • ChaCha20-Poly1305 authenticated encryption
  • Perfect forward secrecy
  • Key fingerprint verification
  • Secure key backups

Note: If you're upgrading from v0.1.7 or earlier, see the v0.1.8 release notes for full details on the encryption features added.