Bitcoin Forum
May 04, 2024, 09:45:42 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: What is key pool used for?  (Read 145 times)
hushan (OP)
Member
**
Offline Offline

Activity: 61
Merit: 15


View Profile
March 24, 2018, 08:52:55 AM
Merited by ABCbits (1)
 #1

In the wallet file, upon the node's first start up, a HD master key is generated and 2000 keys are created, but dumping the wallet file shows there are also 2000 key pools saved in the wallet file too, what are they used for? It looks a key pool is just a public key plus an additional time variable?


BTC: 38ykUxZeSv5aqav1keCc4KUxXLPPGkfrm5 LTC: MPpWNvqDCVB1PHJt4A28j9oFfc6Y1KKDno ETH: 0x07C8c68d5253247038947EF9495b054160c8737c
1714859142
Hero Member
*
Offline Offline

Posts: 1714859142

View Profile Personal Message (Offline)

Ignore
1714859142
Reply with quote  #2

1714859142
Report to moderator
1714859142
Hero Member
*
Offline Offline

Posts: 1714859142

View Profile Personal Message (Offline)

Ignore
1714859142
Reply with quote  #2

1714859142
Report to moderator
1714859142
Hero Member
*
Offline Offline

Posts: 1714859142

View Profile Personal Message (Offline)

Ignore
1714859142
Reply with quote  #2

1714859142
Report to moderator
"Governments are good at cutting off the heads of a centrally controlled networks like Napster, but pure P2P networks like Gnutella and Tor seem to be holding their own." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714859142
Hero Member
*
Offline Offline

Posts: 1714859142

View Profile Personal Message (Offline)

Ignore
1714859142
Reply with quote  #2

1714859142
Report to moderator
1714859142
Hero Member
*
Offline Offline

Posts: 1714859142

View Profile Personal Message (Offline)

Ignore
1714859142
Reply with quote  #2

1714859142
Report to moderator
1714859142
Hero Member
*
Offline Offline

Posts: 1714859142

View Profile Personal Message (Offline)

Ignore
1714859142
Reply with quote  #2

1714859142
Report to moderator
ranochigo
Legendary
*
Offline Offline

Activity: 2954
Merit: 4166


View Profile
March 24, 2018, 09:11:26 AM
Merited by ABCbits (2)
 #2

The key pool is generated from your master key. In the past, the non-HD client maintain 100 private keys in the wallet file for the user to use, by default. This allows the user to use that file to backup the wallet file and restore the addresses for 100 transactions; Bitcoin uses a new address for every transaction.

I'm not sure as to why the keypool is still being used. The addresses in it is being generated with the master key. The 2000 keys that is generated is the same as the 2000 key in the keypool. They are used when your wallet needs a new address. The number is maintained whenever your wallet is unlocked.

.
.HUGE.
▄██████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████████████▄
▄█████████████████████████▄
███████▌██▌▐██▐██▐████▄███
████▐██▐████▌██▌██▌██▌██
█████▀███▀███▀▐██▐██▐█████

▀█████████████████████████▀

▀███████████████████████▀

▀█████████████████████▀

▀█████████████████▀

▀██████████▀▀
█▀▀▀▀











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
CASINSPORTSBOOK
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
achow101
Moderator
Legendary
*
expert
Offline Offline

Activity: 3388
Merit: 6581


Just writing some code


View Profile WWW
March 25, 2018, 01:35:06 AM
Merited by ABCbits (1)
 #3

I'm not sure as to why the keypool is still being used
To make it easier to implement HD into Core with minimal review. There are plans to generate HD keys on the fly instead of storing them in a keypool.

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!