1 minor finding · 2 suggestions
Earlier concerns neither republished nor resolved: 1 suggestion. See the Run archive for their assessments.
Findings
[minor] · The no-tprv assertions inspect response keys instead of descriptors
Both public-output checks in test_encrypted_wallet inspect only the keys wallet_name and descriptors, so they always pass regardless of the descriptor contents.
Location: test/functional/wallet_listdescriptors.py:40 (head).
Details and suggested fix
listdescriptors() returns a dictionary containing a descriptors array. Iterating the dictionary at lines 40 and 45 checks its two key strings, neither of which contains tprv. This replaces the previous encrypted-wallet exact comparison with ineffective public-only assertions. The coverage gap is limited: locked/unlocked equality still catches state-dependent differences, and the unencrypted w2 comparisons cover general export regressions. The later address comparison accepts equivalent private descriptors and does not establish public-only output. Check each record's desc field instead, using assert all("tprv" not in d["desc"] for d in encrypted_locked_output["descriptors"]), and apply the same change to encrypted_unlocked_output.
Optional improvements
[suggestion] · Deprecation wording extends beyond the gated RPC
The guide and release-note sub-bullet describe existing-wallet encryption generally as deprecated, although this PR gates only the RPC and leaves the GUI flow unchanged without a deprecation notice.
Location: src/wallet/rpc/encrypt.cpp:238 (head).
Details and suggested fix
Qt still enables Encrypt Wallet for unencrypted wallets. Its dialog calls WalletModel::setWalletEncrypted, which reaches CWallet::EncryptWallet directly rather than this handler. The existing malware and backup warnings do not communicate deprecation. Scope the guide and release-note wording explicitly to the encryptwallet RPC and explain that GUI encryption remains available, or align the GUI notice with the broader deprecation. Keep the gate out of CWallet::EncryptWallet, since encrypted-at-creation wallets also use that function.
[suggestion] · The replacement encryption guidance omits migration and fresh-backup steps
The rewritten section omits moving existing funds to the recommended new wallet and drops the in-place-encryption backup warning, although RPC and GUI warnings still cover the latter.
Location: doc/managing-wallets.md:36 (head).
Details and suggested fix
Creating an encrypted wallet does not move existing funds or encrypt the keys in the old wallet and its backups. Add a short migration explanation: back up the new wallet, then transfer the existing funds to its addresses before retiring the old wallet and backups. If illustrating this with sendall, mention transaction fees and the privacy cost of consolidating inputs. Also retain a sentence that in-place encryption, still available through -deprecatedrpc=encryptwallet and the GUI, generates a fresh seed and requires a new backup because earlier backups cannot recover funds received by that seed. The general backup section explains how to make a backup, but not these migration and seed-rotation requirements.
Earlier concerns
Earlier reports raised these, with the titles and severities shown there. This review neither republished nor resolved them.
- [suggestion]: Keep encrypted-wallet coverage for the signing cases in this test (earlier report)