Inside Bitcoin
Opening the selected file…
Inside Bitcoin
Opening the selected file…
The code behind the network, with room to understand it.
Release published 2026-10-28 · Snapshot fetched 2026-11-01. Latest stable release at fetch time; development branches and Git history are excluded. Only the selected code window and visible folders load here.
1Bitcoin version 0.4.1 is now available for download at:2http://sourceforge.net/projects/bitcoin/files/Bitcoin/bitcoin-0.4.1/4This is a bugfix only release based on 0.4.0.6Please report bugs by replying to this forum thread.8MAJOR BUG FIX (CVE-2011-4447)10The wallet encryption feature introduced in Bitcoin version 0.4.0 did not sufficiently secure the private keys. An attacker who11managed to get a copy of your encrypted wallet.dat file might be able to recover some or all of the unencrypted keys and steal the12associated coins.14If you have a previously encrypted wallet.dat, the first time you run wxbitcoin or bitcoind the wallet will be rewritten, Bitcoin will15shut down, and you will be prompted to restart it to run with the new, properly encrypted file.17If you had a previously encrypted wallet.dat that might have been copied or stolen (for example, you backed it up to a public18location) you should send all of your bitcoins to yourself using a new bitcoin address and stop using any previously generated addresses.20Wallets encrypted with this version of Bitcoin are written properly.22Technical note: the encrypted wallet's 'keypool' will be regenerated the first time you request a new bitcoin address; to be certain that the23new private keys are properly backed up you should:251. Run Bitcoin and let it rewrite the wallet.dat file272. Run it again, then ask it for a new bitcoin address.28wxBitcoin: new address visible on main window29bitcoind: run the 'walletpassphrase' RPC command to unlock the wallet, then run the 'getnewaddress' RPC command.313. If your encrypted wallet.dat may have been copied or stolen, send all of your bitcoins to the new bitcoin address.334. Shut down Bitcoin, then backup the wallet.dat file.34IMPORTANT: be sure to request a new bitcoin address before backing up, so that the 'keypool' is regenerated and backed up.36"Security in depth" is always a good idea, so choosing a secure location for the backup and/or encrypting the backup before uploading it is recommended. And as in previous releases, if your machine is infected by malware there are several ways an attacker might steal your bitcoins.38Thanks to Alan Reiner (etotheipi) for finding and reporting this bug.
Independent explanations by MyBitcoinExplorer. Not affiliated with or endorsed by Bitcoin Core. Guides are educational and do not replace the source or its tests.
Bitcoin Core source © its contributors, distributed under the MIT license. Original notices and bundled third-party licenses are retained in the source tree.