Why Bitcoin Core users need a fresh backup after first-time wallet encryption

Why Bitcoin Core users need a fresh backup after first-time wallet encryption

Bitcoin Core merged a change on Nov. 20 requiring an opt-in for the deprecated encryptwallet command in patched development builds, because first-time encryption generates keys older backups cannot recover.

Bitcoin Core’s development branch now disables encryptwallet by default in builds containing pull request #36387. First-time encryption creates a new seed, so a backup made beforehand cannot recover bitcoin sent to addresses derived from that seed.

A pre-encryption backup can still recover funds controlled by keys it contains or can derive, including payments sent after encryption to addresses already covered by those keys. Bitcoin Core advises users to create a fresh, secure encrypted-wallet backup with backupwallet; it recommends keeping backups on reliable offline devices. If the live wallet and all copies containing the new key material are lost, restoring only an older backup will not recover funds held at addresses derived from the new seed.

Scripts using encryptwallet must explicitly enable it with -deprecatedrpc=encryptwallet when connecting to a node running a patched build. The option will keep the RPC available during its deprecation period; Bitcoin Core plans to remove it in a future major release but has not specified which one. For new wallets, automation can provide a passphrase to createwallet and encrypt the wallet from the start. Existing encrypted wallets remain supported, and walletpassphrasechange can still update their passphrases. A pull-request reviewer said the graphical Encrypt Wallet action uses a separate interface and is not affected by this change.

The patch merged on Nov. 20 and Bitcoin Optech highlighted it on Nov. 27. Bitcoin Core’s documentation says first-time encryption also creates fresh active descriptors, which define how a wallet derives addresses and spending keys. The pull request warns that encrypting an existing wallet may leave unencrypted private-key remnants on disk, so older unencrypted backup files must also be kept secure. The release index listed 32.1 as the latest release on Nov. 29.

More news

All news
US moves to seize $1.1 billion from Binance hackers without accessing their wallets US Prosecutors Move To Permanently Seize $1.1 Billion In USDC Stolen From Binance SEC Charges Eight Colorado Firms in $37 Million Fake Crypto Platform Scam Strategy raises its buyback ceiling to $4 billion as MSTR shares sink 21% Bitcoin Rebounds Toward $60,000 as Weekly ETF Outflows Reach $1.79 Billion