Encrypting wallets after they have already been used seems like it is no longer a useful feature. There are a number of possible footguns with doing so:
- encrypting generates an entirely new set of descriptors which necessitates a new backup
- in generating the new descriptors, if the user had imported custom descriptors as active, those descriptors become inactive, which may lead to funds being sent to incorrect descriptors
- once the wallet is encrypted, existing funds are not moved, so any compromise of an unencrypted backup can still steal those funds
It has been possible to make born encrypted wallets for several years now. Given the above, I think we should make born encrypted wallets the only way to make an encrypted wallet, and stop allowing users to encrypt wallets after the fact.
Removing this also makes many of the atomicity issues that #35752 tries to address irrelevant.
For historical context, when encryption was introduced, there could only ever have been a single wallet loaded at a time and wallets were created by default, prefilled with keys. The only way to have a wallet was to encrypt it after the fact.