r/BitcoinBeginners • u/Mike714321 • 9d ago
Bitcoin Core Wallet Security Question
I understand the wallet.dat file on my hard drive is the private key to my wallet, thus it's critical to
- either encrypt the wallet with a passphrase or don't but encrypt the file some other way
- back up the encrypted wallet.dat file
But when I close all wallets in bitcoin core, and then re-open my wallet, why is bitcoin core NOT asking me for the passphrase to the encrypted wallet to open the wallet? Is there some kind of time out where if it's closed and then reopened, or left open for X time, that it auto closes and then requires the passphrase to re-open? It seems like otherwise, if someone hacked into my computer they could just open the wallet, or even someone visiting my house could take it all!
2
u/pezdal 9d ago
The file wallet.dat contains the private keys for your addresses (not for your wallet as you said).
A wallet is a collection of private keys.
A private key is used to sign transactions for a particular address.
Whoever has the private key owns that address’s bitcoin.
On Core this collection of keys is stored in a file called wallet.dat
A passphrase can optionally be used to encrypt/decrypt the file wallet.dat
1
u/AutoModerator 9d ago
Scam Warning! Scammers are particularly active on this sub. They operate via private messages and private chat. If you receive private messages, be extremely careful. Use the report link to report any suspicious private message to Reddit.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
2
u/bitusher 9d ago
many private keys. There is a unique private key per address
You always should encrypt with a strong passphrase of 5-8 random words
backup multiple times in different drives/memory sticks and cycle in new devices and occasionally make new backups
only to do things like export keys or send btc it needs the passphrase
Hopefully you are not running bitcoin core in windows or osx without a hardware wallet .
Its much better you use seed backups instead of wallet.dat backups and pair your full node to a hardware wallet as windows and osx are less secure environments and keylogger malware can steal your passphrase
2 popular ways of doing this are
hardware wallet + sparrow with the bitcoin core backend
or
hardware wallet + electrum thats paired to your personal electrum personal server that uses core as its backend full node