Bitcoin Core Users Need Fresh Backup After First-Time Wallet Encryption

iconCryptoSlate
Share
AI summary iconSummary
Bitcoin breaking news: Bitcoin Core developers merged a change on Nov. 20 that disables the encryptwallet command by default in development builds. First-time encryption generates a new seed and active descriptors, making pre-encryption backups unable to recover funds sent to new addresses. Users are advised to create a fresh backup using backupwallet after encryption. Older backups remain valid for addresses derived from the original seed. The change affects scripts using encryptwallet, requiring an opt-in flag during the deprecation period. Bitcoin news outlets report the update impacts wallet management for new users.

Bitcoin Core developers merged a change on Nov. 20 that disables encryptwallet by default in development builds containing the patch. The command encrypts an existing wallet for the first time and generates a new seed. Backups made before encryption cannot recover bitcoin sent to addresses derived from that seed.

Bitcoin Optech highlighted the change on Nov. 27. The pull request #36387 landed on Bitcoin Core’s development branch, and the project’s release index listed 32.1 as its latest release on Nov. 29.

Bitcoin Core says 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. That can include a payment received after encryption at an address already covered by the older backup. A separate Bitcoin multisig backup proposal addresses a different recovery problem in which a seed alone may be insufficient.

Related Product Bitcoin Core An open source project which maintains and releases Bitcoin client software

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. The project directs users who still have the wallet to make a fresh, secure copy after encryption using backupwallet. Its wallet guide recommends storing backups on reliable offline devices.

Related Asset Bitcoin#1 BTC$58,700.24 24-hour change: down 0.88%24H Down 0.88%7D Down 3.58%30D Down 24.22%

A pre-encryption backup lacks the fresh seed. Back up the encrypted wallet to preserve the new keys.

The old backup covers only earlier keys it contains or can derive. The fresh-backup path highlights newly generated keys.

The pull request also says 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.

Which scripts need to change

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 says to start bitcoind with -deprecatedrpc=encryptwallet. That option keeps the command available during the deprecation period. Bitcoin Core plans to remove the RPC in a future major release and has yet to name the version in the note.

For new wallets, automation can pass a passphrase to createwallet to encrypt from the outset. Existing encrypted wallets remain supported, and their owners can still use walletpassphrasechange to update the passphrase. A reviewer on the pull request said the graphical Encrypt Wallet action uses a separate interface and falls outside this patch.

Disclaimer: The information on this page may have been obtained from third parties and does not necessarily reflect the views or opinions of KuCoin. This content is provided for general informational purposes only, without any representation or warranty of any kind, nor shall it be construed as financial or investment advice. KuCoin shall not be liable for any errors or omissions, or for any outcomes resulting from the use of this information. Investments in digital assets can be risky. Please carefully evaluate the risks of a product and your risk tolerance based on your own financial circumstances. For more information, please refer to our Terms of Use and Risk Disclosure.