Bitcoin Forum
November 13, 2024, 08:55:09 PM *
News: Check out the artwork 1Dq created to commemorate this forum's 15th anniversary
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Older unencrypted wallet.dat useless after encrypting a copy?  (Read 189 times)
samspaces (OP)
Legendary
*
Offline Offline

Activity: 1453
Merit: 1030


View Profile
December 29, 2017, 10:41:49 PM
Last edit: December 30, 2017, 12:08:35 AM by samspaces
 #1

Hi, I got this pop up upon encrypting a bitcoin-0.15 wallet.dat.



I'm curious how in the world this warning would play out. How would the chain know I'm running a version of a, on a later date, encrypted wallet.
ranochigo
Legendary
*
Offline Offline

Activity: 3038
Merit: 4420


Crypto Swap Exchange


View Profile
December 30, 2017, 04:11:26 AM
Merited by ABCbits (2)
 #2

They don't. The warning is correct however.

Bitcoin Core purges your keypool with 1000 keys or your HD seed. In the case of the HD seed, the previous keys that were used are exported into the wallet file. Since the keypool is refreshed/HD seed changed, any future address generated with your new backup will diverge from your old backup.

█▀▀▀











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











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
samspaces (OP)
Legendary
*
Offline Offline

Activity: 1453
Merit: 1030


View Profile
December 30, 2017, 02:02:26 PM
 #3

They don't. The warning is correct however.

Bitcoin Core purges your keypool with 1000 keys or your HD seed. In the case of the HD seed, the previous keys that were used are exported into the wallet file. Since the keypool is refreshed/HD seed changed, any future address generated with your new backup will diverge from your old backup.

Without a HD seed, am I correct in assuming that the first 1000 addresses that all the different wallet backups will generate are the same, and that only after the first 1000 keys are used, they diverge?
ranochigo
Legendary
*
Offline Offline

Activity: 3038
Merit: 4420


Crypto Swap Exchange


View Profile
December 30, 2017, 02:46:59 PM
 #4

They don't. The warning is correct however.

Bitcoin Core purges your keypool with 1000 keys or your HD seed. In the case of the HD seed, the previous keys that were used are exported into the wallet file. Since the keypool is refreshed/HD seed changed, any future address generated with your new backup will diverge from your old backup.

Without a HD seed, am I correct in assuming that the first 1000 addresses that all the different wallet backups will generate are the same, and that only after the first 1000 keys are used, they diverge?
No. It diverges at that point for which you encrypt/change the password. The unused keypool gets refreshed and hence any future keys will be different.

█▀▀▀











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











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
samspaces (OP)
Legendary
*
Offline Offline

Activity: 1453
Merit: 1030


View Profile
December 30, 2017, 05:17:59 PM
 #5

They don't. The warning is correct however.

Bitcoin Core purges your keypool with 1000 keys or your HD seed. In the case of the HD seed, the previous keys that were used are exported into the wallet file. Since the keypool is refreshed/HD seed changed, any future address generated with your new backup will diverge from your old backup.

Without a HD seed, am I correct in assuming that the first 1000 addresses that all the different wallet backups will generate are the same, and that only after the first 1000 keys are used, they diverge?
No. It diverges at that point for which you encrypt/change the password. The unused keypool gets refreshed and hence any future keys will be different.

Ok, thanks!
Spendulus
Legendary
*
Offline Offline

Activity: 2926
Merit: 1386



View Profile
January 01, 2018, 03:49:54 AM
 #6

They don't. The warning is correct however.

Bitcoin Core purges your keypool with 1000 keys or your HD seed. In the case of the HD seed, the previous keys that were used are exported into the wallet file. Since the keypool is refreshed/HD seed changed, any future address generated with your new backup will diverge from your old backup.
Future addresses, yes.

But what about past activity? Say that a person had put $100 in BTC into an unencrypted wallet for the last 10 months, and he then encrypts the wallet (Bitcoin CORE).

Someone finds an old unencrypted wallet.

How is it possible that it would not have valid content that was retrievable by the finder?



ranochigo
Legendary
*
Offline Offline

Activity: 3038
Merit: 4420


Crypto Swap Exchange


View Profile
January 01, 2018, 03:59:00 AM
Merited by ABCbits (1)
 #7

Future addresses, yes.

But what about past activity? Say that a person had put $100 in BTC into an unencrypted wallet for the last 10 months, and he then encrypts the wallet (Bitcoin CORE).

Someone finds an old unencrypted wallet.

How is it possible that it would not have valid content that was retrievable by the finder?
It's not possible for any backups to be invalidated. There isn't any way to surefire make an existing backup useless without the need for a central authority to validate each backup. The old backup will have the previously used private keys.

If someone finds an old unencrypted wallet and your old addresses still have coins in it, they can spend it. You have to send it to a new address in your new backup to deter this possibility.

█▀▀▀











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











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

Activity: 2926
Merit: 1386



View Profile
January 01, 2018, 04:12:19 AM
 #8

Future addresses, yes.

But what about past activity? Say that a person had put $100 in BTC into an unencrypted wallet for the last 10 months, and he then encrypts the wallet (Bitcoin CORE).

Someone finds an old unencrypted wallet.

How is it possible that it would not have valid content that was retrievable by the finder?
It's not possible for any backups to be invalidated. There isn't any way to surefire make an existing backup useless without the need for a central authority to validate each backup. The old backup will have the previously used private keys.

If someone finds an old unencrypted wallet and your old addresses still have coins in it, they can spend it. You have to send it to a new address in your new backup to deter this possibility.

This is what I thought. The popup message which comes up is then quite confusing.
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!