Bitcoin Forum
July 05, 2024, 01:40:39 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: When a wallet is encrypted does that mean all keys and future keys are also?  (Read 469 times)
icanscript (OP)
Hero Member
*****
Offline Offline

Activity: 686
Merit: 502



View Profile
March 02, 2016, 02:03:37 AM
 #1

So I am wondering,

I open bitcoin core, create a new address/private key. I encrypt my wallet.

When I create a new address/private key will that also be encrypted with the same pass?
achow101
Moderator
Legendary
*
Offline Offline

Activity: 3444
Merit: 6746


Just writing some code


View Profile WWW
March 02, 2016, 02:35:27 AM
 #2

So I am wondering,

I open bitcoin core, create a new address/private key. I encrypt my wallet.

When I create a new address/private key will that also be encrypted with the same pass?
Yes. Every time you decrypt the wallet, the keypool is refilled and those newly generated addresses are always encrypted. The keypool can only be refilled when the wallet is decrypted because it must generate the private keys and write them to the wallet as encrypted private keys.

icanscript (OP)
Hero Member
*****
Offline Offline

Activity: 686
Merit: 502



View Profile
March 02, 2016, 11:12:27 AM
 #3

So I am wondering,

I open bitcoin core, create a new address/private key. I encrypt my wallet.

When I create a new address/private key will that also be encrypted with the same pass?
Yes. Every time you decrypt the wallet, the keypool is refilled and those newly generated addresses are always encrypted. The keypool can only be refilled when the wallet is decrypted because it must generate the private keys and write them to the wallet as encrypted private keys.

Thank you for the thorough reply.
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!