Release v0.1.9 - Fix Encryption Key Generation
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
π Upgrade Instructions
- Download the new binary for your platform below
- Replace your existing binary
- 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.