Add backup reminder after encrypting a wallet from settings #709

Open
opened 2026-05-18 03:26:03 +00:00 by johnny9 · 2 comments
johnny9 commented 2026-05-18 03:26:03 +00:00 (Migrated from github.com)

Context

When someone encrypts in qt widgets there's the reminder to update the backups or make new backups, if we have a design for that we should at that page here, if not let's make an issue to track adding this

Originally posted by @jarolrod in https://github.com/bitcoin-core/gui-qml/pull/551#discussion_r3255868937

Scope

  • Add a post-encryption backup reminder to WalletPasswordSettings.qml or the relevant wallet settings flow.
  • Keep the reminder aligned with the current QML settings UX and wording.
  • Avoid showing the reminder for passphrase changes unless that is intentionally part of the final UX.

Acceptance Criteria

  • After successfully encrypting an unencrypted wallet from QML settings, the user is reminded to update or create wallet backups.
  • The reminder does not appear on encryption failure.
  • The behavior is covered by an appropriate QML or functional test.
# Context When someone encrypts in qt widgets there's the reminder to update the backups or make new backups, if we have a design for that we should at that page here, if not let's make an issue to track adding this _Originally posted by @jarolrod in https://github.com/bitcoin-core/gui-qml/pull/551#discussion_r3255868937_ ## Scope - Add a post-encryption backup reminder to `WalletPasswordSettings.qml` or the relevant wallet settings flow. - Keep the reminder aligned with the current QML settings UX and wording. - Avoid showing the reminder for passphrase changes unless that is intentionally part of the final UX. ## Acceptance Criteria - After successfully encrypting an unencrypted wallet from QML settings, the user is reminded to update or create wallet backups. - The reminder does not appear on encryption failure. - The behavior is covered by an appropriate QML or functional test.
johnny9 commented 2026-05-18 03:27:41 +00:00 (Migrated from github.com)

Will need a bit of design

Will need a bit of design
jarolrod commented 2026-11-05 14:14:07 +00:00 (Migrated from github.com)

I reproduced the recovery consequence of the missing reminder: a backup made before Set password does not recover payments received at newly generated addresses afterward.

Core intentionally generates a new seed and active descriptors when first encrypting a descriptor wallet. The QML issue is that the successful Set password flow returns to Wallet settings without explaining that another backup is needed.

Steps to reproduce

  1. Create an unencrypted descriptor wallet on regtest and receive and confirm 1 BTC.
  2. Use Wallet settings → Back up wallet to save before.bak.
  3. Use Wallet settings → Set password to encrypt the wallet.
  4. Generate a new address through Receive, then receive and confirm another 0.5 BTC.
  5. Restore before.bak under a separate wallet name.
  6. Compare it with a backup made after encryption.

The original wallet contains 1.5 BTC. The old backup restores only 1 BTC and does not own the new receiving address. The newer backup restores the full 1.5 BTC.

The active change descriptors are replaced too, so this also affects recovery of later change outputs. The receive case above was reproduced; the change-output consequence follows from the descriptor replacement in Core.

After successful first-time encryption, QML should explain that previous backups do not contain the new keys and offer Back up wallet. The reminder should not appear after failed encryption or an ordinary change of an existing password.

Reproduced on qt6 at d567e3eb2497, macOS arm64, Qt 6.9.0, using disposable regtest wallets.

I reproduced the recovery consequence of the missing reminder: a backup made before **Set password** does not recover payments received at newly generated addresses afterward. Core intentionally generates a new seed and active descriptors when first encrypting a descriptor wallet. The QML issue is that the successful Set password flow returns to Wallet settings without explaining that another backup is needed. **Steps to reproduce** 1. Create an unencrypted descriptor wallet on regtest and receive and confirm 1 BTC. 2. Use **Wallet settings → Back up wallet** to save `before.bak`. 3. Use **Wallet settings → Set password** to encrypt the wallet. 4. Generate a new address through Receive, then receive and confirm another 0.5 BTC. 5. Restore `before.bak` under a separate wallet name. 6. Compare it with a backup made after encryption. The original wallet contains 1.5 BTC. The old backup restores only 1 BTC and does not own the new receiving address. The newer backup restores the full 1.5 BTC. The active change descriptors are replaced too, so this also affects recovery of later change outputs. The receive case above was reproduced; the change-output consequence follows from the descriptor replacement in Core. After successful first-time encryption, QML should explain that previous backups do not contain the new keys and offer **Back up wallet**. The reminder should not appear after failed encryption or an ordinary change of an existing password. Reproduced on `qt6` at `d567e3eb2497`, macOS arm64, Qt 6.9.0, using disposable regtest wallets.
Sign in to join this conversation.
No description provided.