Bitcoin Forum
March 29, 2024, 09:30:09 AM *
News: Latest Bitcoin Core release: 26.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Wallet Encryption  (Read 195 times)
PCW (OP)
Newbie
*
Offline Offline

Activity: 23
Merit: 6


View Profile
December 19, 2022, 09:50:03 AM
Last edit: December 19, 2022, 10:01:58 AM by PCW
Merited by ABCbits (1), Pmalek (1)
 #1

I'd like to ask a hypothetical question (situation didn't really happen) to better my understanding of addresses and wallet encryption.

I had about $40 in a Bitcoin Core un-encrypted (backed up) wallet.

My hard drive crashed and the computer repair guy was able to recover 100% of the documents that I needed that were saved since my last backup.  

When picking up the computer, the repair guy commented, "I noticed you had a Bitcoin wallet so I recovered that for you too".

I restored my entire hard drive image from a week-old backup to a new hard drive including wallet.dat (no activity during the week on wallet.dat).

If I now generate a new receiving address from the wallet and receive funds on that address, would the private key for that new address (and therefore funds) be available to an opportunistic computer repair guy if he were to dump all addresses and private keys from the un-encrypted wallet.dat? i.e., if he generated all addresses in the pool in the un-encrypted wallet.dat, would my new receiving address and private key eventually show up for him?

After all of this, I encrypted my wallet.dat.  Does encrypting change replace all addresses from the un-encrypted wallet with new addresses?

Does keypoolrefill replace all old addresses with new addresses in the pool or only just replenish back to the maximum? If replaces, then that one command would insure that I'd get an address that's not in the old wallet.dat.

Do I have to create a new wallet, encrypt it and use a receiving address from the new wallet to receive future funds (and transfer the $40 to an address in the new wallet)? This is a simple thing to do, I just want to understand what addresses are in a wallet using this hypothetical situation.

Thanks.
1711704609
Hero Member
*
Offline Offline

Posts: 1711704609

View Profile Personal Message (Offline)

Ignore
1711704609
Reply with quote  #2

1711704609
Report to moderator
The forum was founded in 2009 by Satoshi and Sirius. It replaced a SourceForge forum.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1711704609
Hero Member
*
Offline Offline

Posts: 1711704609

View Profile Personal Message (Offline)

Ignore
1711704609
Reply with quote  #2

1711704609
Report to moderator
ABCbits
Legendary
*
Offline Offline

Activity: 2828
Merit: 7327



View Profile
December 19, 2022, 10:01:49 AM
Merited by NeuroticFish (2), Pmalek (1)
 #2

If I now generate a new receiving address from the wallet and receive funds on that address, would the private key for that new address (and therefore funds) be available to an opportunistic computer repair guy if he were to dump all addresses and private keys from the un-encrypted wallet.dat? i.e., if he generated all addresses in the pool in the un-encrypted wallet.dat, would my new receiving address and private key eventually show up for him?

Does keypoolrefill replace all old addresses with new addresses in the pool or only just replenish back to the maximum? If replaces, then that one command would insure that I'd get an address that's not in the old wallet.dat.

For old/non-HD wallet, the keypool is refreshed to generate different set of private keys. As for HD wallet, your master private key will be changed. So the repair guy unable to know newly generated private key/address.

Should I just create a new wallet, encrypt it and use a receiving address from the new wallet to receive future funds (and transfer the $40 to an address in the new wallet)? This is a simple thing to do, I just want to understand what addresses are in a wallet using this hypothetical situation.

Yes, you should do that immediately for these reason,
1. I would consider your Bitcoin is currently vulnerable.
2. You don't want accidentally re-use Bitcoin address which created before you encrypt the wallet file.

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
seoincorporation
Legendary
*
Offline Offline

Activity: 3108
Merit: 2887


Top Crypto Casino


View Profile
December 19, 2022, 08:57:48 PM
 #3

If the repair guy had access to your wallet then for sure your private keys were exposed, so, the best to do should be to generate a new wallet and forget about the old one.

And if you only want to save the coins in a safe place then you could just create an address with vanity gen and send the coins to it, when you want to get access to those coins then just import the private key on a wallet that's the easy way to save your coins without the bitcoin core and the long wait for the sync.

█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
..CASINO....SPORTS....RACING..
█░░░░░░█░░░░░░█
▀███▀░░▀███▀░░▀███▀
▀░▀░░░░▀░▀░░░░▀░▀
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░█░░░███▄█░░░
░░██▌░░███░▀░░██▌
░█░██░░███░░░█░██
░█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
Ryker1
Sr. Member
****
Offline Offline

Activity: 1918
Merit: 442


Eloncoin.org - Mars, here we come!


View Profile
December 19, 2022, 10:12:33 PM
 #4

Well for me, just my own opinion --quickly transfer your fund into a new wallet that you have created. Your recent wallet that was recovered by the repair guy would be vulnerable as of now [even though you see there is no transaction] and perhaps you have private access to that wallet to recover. Dont make things complicated if you can buy your own hardware wallet, it leaves no traces in any device that you will use, so nothing to worry about. For now, transfer it into a safe wallet and you are done.









▄▄████████▄▄
▄▄████████████████▄▄
▄██
████████████████████▄
▄███
██████████████████████▄
▄████
███████████████████████▄
███████████████████████▄
█████████████████▄███████
████████████████▄███████▀
██████████▄▄███▄██████▀
████████▄████▄█████▀▀
██████▄██████████▀
███▄▄█████
███████▄
██▄██████████████
░▄██████████████▀
▄█████████████▀
████████████
███████████▀
███████▀▀
Mars,           
here we come!
▄▄███████▄▄
▄███████████████▄
▄███████████████████▄
▄██████████
███████████
▄███████████████████████▄
█████████████████████████
█████████████████████████
█████████████████████████
▀█
██████████████████████▀
▀██
███████████████████▀
▀███████████████████▀
▀█████████
██████▀
▀▀███████▀▀
ElonCoin.org.
████████▄▄███████▄▄
███████▄████████████▌
██████▐██▀███████▀▀██
███████████████████▐█▌
████▄▄▄▄▄▄▄▄▄▄██▄▄▄▄▄
███▐███▀▄█▄█▀▀█▄█▄▀
███████████████████
█████████████▄████
█████████▀░▄▄▄▄▄
███████▄█▄░▀█▄▄░▀
███▄██▄▀███▄█████▄▀
▄██████▄▀███████▀
████████▄▀████▀
█████▄▄
.
"I could either watch it
happen or be a part of it"

▬▬▬▬▬
NeuroticFish
Legendary
*
Offline Offline

Activity: 3626
Merit: 6321


Looking for campaign manager? Contact icopress!


View Profile
December 20, 2022, 02:14:51 PM
Merited by Pmalek (1)
 #5

When picking up the computer, the repair guy commented, "I noticed you had a Bitcoin wallet so I recovered that for you too".

At the moment somebody else gets even close to getting access to your wallet (so, if possible, before the repair guy getting to your file), you should consider that wallet compromised, move your funds away and never use it again.
Depending on your wallet's version (basically HD vs non HD) a new address may or may not be getting into his hands. However, why would you take chances?

..JAMBLER.io..Create Your Bitcoin Mixing
Business Now for   F R E E 
▄█████████████████████████████
█████████████████████████
████▀████████████████████
███▀█████▄█▀███▀▀▀██████
██▀█████▄█▄██████████████
██▄▄████▀▄▄▄▀▀▀▀▀▄▄██████
█████▄▄▄██████████▀▄████
█████▀▄█▄██████▀█▄█████
███████▀▄█▀█▄██▀█▄███████
█████████▄█▀▄█▀▄█████████
█████████████████████████
█████████████████████████
▀█████████████████████████████
█████████████████████████████████████████████████
.
      OUR      
PARTNERS

.
█████████████████████████████████████████████████
████▄
██
██
██
██
██
██
██
██
██
██
██
████▀
▄█████████████████████████████
████████▀▀█████▀▀████████
█████▀█████████████▀█████
████████████████████████
███████████████▄█████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████▀█████████
████████████████████████
█████▄█████████████▄█████
████████▄▄█████▄▄████████
▀█████████████████████████████
█████████████████████████████████████████████████
.
   INVEST   
BITCOIN

.
█████████████████████████████████████████████████
████▄
██
██
██
██
██
██
██
██
██
██
██
████▀
tranthidung
Legendary
*
Offline Offline

Activity: 2226
Merit: 3933



View Profile WWW
December 20, 2022, 02:24:00 PM
 #6

I restored my entire hard drive image from a week-old backup to a new hard drive including wallet.dat (no activity during the week on wallet.dat).

If I now generate a new receiving address from the wallet and receive funds on that address

After all of this, I encrypted my wallet.dat.  Does encrypting change replace all addresses from the un-encrypted wallet with new addresses?
When you encrypt your wallet file, it is a hindrance to access of your wallet private key. It does not change anything inside that wallet, just block the access to wallet private key.

You can test it by
  • Using a same private key to import two different wallet files: one is encrypted and one is not encrypted.
  • Opening two wallet files, with passphrase and no passphrase, you will see same receiving addresses.

It's same when you use mnemonic seed on other wallets like Electrum.

Warning on Bitcoin Core when you encrypt your wallet
Quote
If you encrypt your wallet and lose your passphrase, you will LOSE ALL OF YOUR BITCOINS!

Are you sure you wish to encrypt your wallet?

Never use that old wallet again, and create a new wallet to receive your bitcoins from your old wallet.

A new wallet, not a new receiving address in your old wallet!

If you want to use Electrum wallet, you can Sweep your bitcoins from Bitcoin Core wallet into Electrum

▄▄███████▄▄
▄██████████████▄
▄██████████████████▄
▄████▀▀▀▀███▀▀▀▀█████▄
▄█████████████▄█▀████▄
███████████▄███████████
██████████▄█▀███████████
██████████▀████████████
▀█████▄█▀█████████████▀
▀████▄▄▄▄███▄▄▄▄████▀
▀██████████████████▀
▀███████████████▀
▀▀███████▀▀
.
 MΞTAWIN  THE FIRST WEB3 CASINO   
.
.. PLAY NOW ..
Smartvirus
Legendary
*
Offline Offline

Activity: 1386
Merit: 1107



View Profile
December 22, 2022, 09:43:47 PM
 #7

I think you know what your doing @OP and that you itself is good news. It means, you understand that, there could be compromises along the way and sees the need to fix things before it gets out of hand. Although, for this undermined but serious concern, I think it's as easy as already stated in the quote below.
If the repair guy had access to your wallet then for sure your private keys were exposed, so, the best to do should be to generate a new wallet and forget about the old one.
Without any hypothetical thinking or taking any serious risk, make the first move by downloading a fresh wallet and move all your hodlings unto the new wallet. That way, you don't get to bother about compromise as, you might not know to what level of exposure the computer repair guy have got. Zero him out with an entirely new wallet besides, it doesn't cost nothing.

R


▀▀▀▀▀▀▀██████▄▄
████████████████
▀▀▀▀█████▀▀▀█████
████████▌███▐████
▄▄▄▄█████▄▄▄█████
████████████████
▄▄▄▄▄▄▄██████▀▀
LLBIT
  CRYPTO   
FUTURES
 1,000x 
LEVERAGE
COMPETITIVE
    FEES    
 INSTANT 
EXECUTION
.
   TRADE NOW   
BitMaxz
Legendary
*
Offline Offline

Activity: 3206
Merit: 2907


Block halving is coming.


View Profile WWW
December 22, 2022, 11:59:46 PM
 #8

Not all repair guy knows how Bitcoin wallet works but they know what is bitcoin the only problem is if your wallet is un-encrypted then there is a big chance that techy still have a backup or access to that wallet anytime he can able to transfer your funds to another wallet.
So the only option here is to create a new wallet and transfer all funds to a new wallet.

But I think that techy guy just telling you that he can able to recover any Bitcoin wallet and he means that you can trust him? Or he means that he knows Bitcoin but does not have deep knowledge about bitcoin it's just my guess maybe.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
nc50lc
Legendary
*
Offline Offline

Activity: 2366
Merit: 5429


Self-proclaimed Genius


View Profile
December 23, 2022, 05:13:52 AM
Merited by Pmalek (1)
 #9

I restored my entire hard drive image from a week-old backup to a new hard drive including wallet.dat (no activity during the week on wallet.dat).

If I now generate a new receiving address from the wallet and receive funds on that address, would the private key for that new address (and therefore funds) be available to an opportunistic computer repair guy if he were to dump all addresses and private keys from the un-encrypted wallet.dat? i.e., if he generated all addresses in the pool in the un-encrypted wallet.dat, would my new receiving address and private key eventually show up for him?

Does keypoolrefill replace all old addresses with new addresses in the pool or only just replenish back to the maximum? If replaces, then that one command would insure that I'd get an address that's not in the old wallet.dat.
In this scenario, the wallet.dat is still unencrypted right?
If so, then the repair guy can theoretically steal your recent funds because wallet.dat already has a keypool filled with pre-generated keys based from your HDSeed.
For descriptor wallet, each descriptor that your wallet has can re-create the keys that the other copy of the wallet.dat used.

keypoolrefill will just change your default keypool size of 1000keys per descriptor/, but it wont replace the previous keys.
newkeypool on the other hand will seemingly create "new" keys but all the repair guy has to do is to run the same command to get your new keys.

The right command is encryptwallet which will set a new HDSeed and refill a new keypool based from it.
But you can only do that once since changing the passphrase with walletpassphrasechange will not set a new HDSeed.
Alternatively, you can use sethdseed true "WIF prvkey" (the WIF prvKey will be used as the new HDSeed) to create a new keypool.

But as obvious, if that happened; just do yourself a favor and create a new wallet to receive your funds.

..JAMBLER.io..Create Your Bitcoin Mixing
Business Now for   F R E E 
▄█████████████████████████████
█████████████████████████
████▀████████████████████
███▀█████▄█▀███▀▀▀██████
██▀█████▄█▄██████████████
██▄▄████▀▄▄▄▀▀▀▀▀▄▄██████
█████▄▄▄██████████▀▄████
█████▀▄█▄██████▀█▄█████
███████▀▄█▀█▄██▀█▄███████
█████████▄█▀▄█▀▄█████████
█████████████████████████
█████████████████████████
▀█████████████████████████████
█████████████████████████████████████████████████
.
      OUR      
PARTNERS

.
█████████████████████████████████████████████████
████▄
██
██
██
██
██
██
██
██
██
██
██
████▀
▄█████████████████████████████
████████▀▀█████▀▀████████
█████▀█████████████▀█████
████████████████████████
███████████████▄█████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████▀█████████
████████████████████████
█████▄█████████████▄█████
████████▄▄█████▄▄████████
▀█████████████████████████████
█████████████████████████████████████████████████
.
   INVEST   
BITCOIN

.
█████████████████████████████████████████████████
████▄
██
██
██
██
██
██
██
██
██
██
██
████▀
mendace
Sr. Member
****
Offline Offline

Activity: 434
Merit: 580


Pizza Maker 2023 | Bitcoinbeer.events


View Profile WWW
December 26, 2022, 05:43:06 PM
 #10

Since your repairer has had access to your hd maybe your keys have been exposed, so since when it comes to Bitcoin it is always better to take care of your privacy and security I recommend you generate a new wallet or a new private key, there are many ways to do this and send your btc to a new address. This way there is no chance that your repairer will become aware of your data.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!