Bitcoin Core developers merged a critical change on November 20 that disables the encryptwallet command by default in development builds containing the patch. The move addresses a long-standing security concern about first-time wallet encryption and the risks it poses to users who rely on old backup files. Bitcoin Optech highlighted the change on November 27, and the project’s release index listed 32.1 as its latest release on November 29.
The command encrypts an existing wallet for the first time and generates a new seed in the process. Backups made before encryption cannot recover bitcoin sent to addresses derived from that new seed, creating a potential trap for users who assume their old backup files remain comprehensive. The change landed in pull request #36387 on Bitcoin Core’s development branch, requiring scripts to pass a startup flag to access the deprecated command.
How First-Time Encryption Changes Wallet Structure
Bitcoin Core documentation explains that first-time encryption creates a new seed and a fresh set of active descriptors, the rules the wallet uses to derive addresses and their keys. A backup made before encryption still covers addresses controlled by keys it contains or can derive, which can include a payment received after encryption at an address already covered by the older backup. The critical issue arises when users receive bitcoin at new addresses generated from the post-encryption seed.
If the live wallet and every usable copy with the new key material are lost, restoring the old file cannot recover bitcoin sent to addresses derived from the new seed. This scenario has caught users off guard in the past, particularly those who encrypted wallets without understanding the full implications. The project directs users who still have the wallet to make a fresh, secure copy after encryption using the backupwallet command, and its wallet guide recommends storing backups on reliable offline devices.
The pull request documentation also warns that encrypting an existing wallet may leave remnants of unencrypted private keys on disk. Older unencrypted backup files still hold the key material saved in them and need to be kept secure even after encryption takes place. This combination of factors creates multiple potential security and recovery vulnerabilities that the development team now seeks to address through deprecation.
Scripts and Automation Must Adapt
Scripts that call encryptwallet will need an explicit opt-in when they connect to a node running a build with the change. That includes command-line scripts that use bitcoin-cli to create an unencrypted wallet and add encryption in a separate call. The development release note instructs users to start bitcoind with -deprecatedrpc=encryptwallet to keep the command available during the deprecation period.
Bitcoin Core plans to remove the RPC in a future major release, though the team has yet to name the specific version in the note. For new wallets, automation can pass a passphrase to createwallet to encrypt a new wallet at creation, eliminating the need for a separate encryption step and avoiding the seed regeneration problem entirely. This approach creates an encrypted wallet with a single seed from the start, ensuring that one comprehensive backup covers all future addresses.
The Broader Context of Bitcoin Backup Challenges
The encryptwallet deprecation reflects ongoing efforts to address recovery challenges in Bitcoin Core. A separate Bitcoin multisig backup proposal addresses a different recovery problem in which a seed alone may be insufficient to restore a wallet. These initiatives demonstrate the development team’s focus on reducing user error and strengthening security practices across the ecosystem.
The requirement for an explicit startup flag creates a deliberate friction point for scripts and automation tools that use the deprecated command. Developers who maintain these tools now face a choice: update their workflows to use createwallet with encryption enabled from the start, or add the -deprecatedrpc=encryptwallet flag and plan for eventual removal of the command. The deprecation period gives tool maintainers time to transition, though the Bitcoin Core team has not specified how long that window will remain open.
Security Trade-offs and User Education
The change highlights a fundamental tension in cryptocurrency wallet design between convenience and safety. Creating an unencrypted wallet first and encrypting it later seems straightforward, but the seed regeneration behavior introduces complexity that many users fail to anticipate. By disabling encryptwallet by default, Bitcoin Core developers push users toward the safer pattern of encrypting at wallet creation.
Education remains critical as users migrate to the new approach. Those running older Bitcoin Core versions or development builds without the patch can still encounter the seed regeneration issue if they encrypt existing wallets. Clear documentation about backup timing and the relationship between encryption and seed generation helps users avoid irreversible loss of funds stored in addresses they cannot recover.
Implementation Timeline and Developer Response
The merge on November 20 places the change in Bitcoin Core’s development branch, where it will undergo further testing before reaching a stable release. Bitcoin Optech’s coverage on November 27 brought the change to wider attention among developers and infrastructure operators who maintain automated systems. The project’s release index showing version 32.1 as the latest release on November 29 confirms that the change has not yet reached general availability.
Developers who maintain scripts calling encryptwallet should review their code and plan updates before the change reaches production releases. Those who can transition to createwallet with immediate encryption eliminate the deprecated command from their workflows entirely, while those who need the separate encryption step must add the startup flag and monitor Bitcoin Core announcements about final removal timing. The development team’s decision to require an explicit flag rather than simply logging a warning demonstrates the seriousness of the underlying security concern and the commitment to pushing users toward safer practices.
