Bitcoin Core Users Need New Backups After First Encryption
Bitcoin Core disables the deprecated encryptwallet command by default in development builds. Users encrypting an existing wallet for the first time should create a new backup because encryption generates a new seed.
Bitcoin Core developers merged the change on Nov. 20 into the project’s development branch. It applies to builds that include the patch. The release index listed version 32.1 as the latest release on Nov. 29, and developers have not identified the major release in which encryptwallet will be removed.
The command encrypts an existing wallet for the first time. That process creates a new seed and a new set of active descriptors, which are the rules the wallet uses to generate addresses and their private keys.
A backup made before encryption does not contain the new seed. It can still recover bitcoin sent to addresses covered by keys in the backup or keys that those keys can derive. It cannot recover bitcoin sent to addresses generated from the new seed.
If the live wallet and all usable copies containing the new key material are lost, restoring the pre-encryption wallet file will not recover funds held at addresses derived from the new seed. Bitcoin Core’s wallet guide recommends using the backupwallet command to create a new copy after encryption and storing it on reliable offline devices.
The pull request also warns that encrypting an existing wallet may leave remnants of unencrypted private keys on disk. Older unencrypted backup files retain the key material saved in them and should remain protected.
Scripts that call encryptwallet must pass the -deprecatedrpc=encryptwallet startup option when connecting to a node running a build with the change. This includes scripts that create an unencrypted wallet and encrypt it in a separate command. The option keeps the RPC available during the deprecation period.
For new wallets, scripts can pass a passphrase to createwallet so the wallet is encrypted when it is created. Existing encrypted wallets remain supported, and users can change their passphrases with walletpassphrasechange. The graphical Encrypt Wallet function uses a separate interface and is outside the scope of the change.








