
Bitcoin Core builders merged a change on Nov. 20 that disables encryptwallet by default in growth builds containing the patch. The command encrypts an present pockets for the primary time and generates a brand new seed. Backups made earlier than encryption can not get well bitcoin despatched to addresses derived from that seed.
Bitcoin Optech highlighted the change on Nov. 27. The pull request #36387 landed on Bitcoin Core’s growth department, and the venture’s launch index listed 32.1 as its newest launch on Nov. 29.
Bitcoin Core says first-time encryption creates a brand new seed and a contemporary set of energetic descriptors, the foundations the pockets makes use of to derive addresses and their keys. A backup made earlier than encryption nonetheless covers addresses managed by keys it comprises or can derive. That may embody a fee acquired after encryption at an deal with already coated by the older backup. A separate Bitcoin multisig backup proposal addresses a special restoration drawback during which a seed alone could also be inadequate.
If the dwell pockets and each usable copy with the brand new key materials are misplaced, restoring the outdated file can not get well bitcoin despatched to addresses derived from the brand new seed. The venture directs customers who nonetheless have the pockets to make a contemporary, safe copy after encryption utilizing backupwallet. Its pockets information recommends storing backups on dependable offline units.
A pre-encryption backup lacks the contemporary seed. Again up the encrypted pockets to protect the brand new keys.
The outdated backup covers solely earlier keys it comprises or can derive. The fresh-backup path highlights newly generated keys.
The pull request additionally says encrypting an present pockets might go away remnants of unencrypted personal keys on disk. Older unencrypted backup recordsdata nonetheless maintain the important thing materials saved in them and must be saved safe.
Which scripts want to alter
Scripts that decision encryptwallet will want an specific opt-in after they hook up with a node operating a construct with the change. That features command-line scripts that use bitcoin-cli to create an unencrypted pockets and add encryption in a separate name. The growth launch notice says to start out bitcoind with -deprecatedrpc=encryptwallet. That possibility retains the command out there in the course of the deprecation interval. Bitcoin Core plans to take away the RPC in a future main launch and has but to call the model within the notice.
For brand spanking new wallets, automation can cross a passphrase to createwallet to encrypt from the outset. Current encrypted wallets stay supported, and their homeowners can nonetheless use walletpassphrasechange to replace the passphrase. A reviewer on the pull request mentioned the graphical Encrypt Pockets motion makes use of a separate interface and falls outdoors this patch.