Bitcoin Forum
November 09, 2024, 01:00:39 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Change address  (Read 578 times)
findftp (OP)
Legendary
*
Offline Offline

Activity: 1022
Merit: 1008

Delusional crypto obsessionist


View Profile
July 05, 2016, 09:04:17 PM
 #1

So I did
importprivkey "private_key_from_weak_brainwallet"
in my bitcoin core console.

I know it's a weak key but it was for testing purpose only (1mBTC)
Now, is it possible that the wallet *ever* use this address again as a change address?
Because I don't want this address being used ever again since it's weak.

I thought I better change my mind and *export* the key, but I there doesn't seem to be an option for it.

So, edit with pywallet? Or just create a new wallet and make a transaction to it? Or just don't worry?
DannyHamilton
Legendary
*
Offline Offline

Activity: 3486
Merit: 4832



View Profile
July 05, 2016, 09:36:25 PM
 #2

So I did
importprivkey "private_key_from_weak_brainwallet"
in my bitcoin core console.

I know it's a weak key but it was for testing purpose only (1mBTC)
Now, is it possible that the wallet *ever* use this address again as a change address?
Because I don't want this address being used ever again since it's weak.

I thought I better change my mind and *export* the key, but I there doesn't seem to be an option for it.

So, edit with pywallet? Or just create a new wallet and make a transaction to it? Or just don't worry?

If you enable the coin-control features of the wallet, then you would have the opportunity to "accidentally" choose that address for the change output if you choose to specify a change output address.  However, the wallet should not automatically choose that address if you don't specify it.


As a suggestion in case you want to do something like this in the future:

I probably would have created a backup of the wallet before importing the private key, and then used coin-control to spend that specific output sending it to some other address under my control.  Then I could just recover the backup and the imported private key would be gone (since it wasn't there when the backup was created.
achow101
Moderator
Legendary
*
Offline Offline

Activity: 3542
Merit: 6886


Just writing some code


View Profile WWW
July 05, 2016, 09:36:37 PM
 #3

So I did
importprivkey "private_key_from_weak_brainwallet"
in my bitcoin core console.

I know it's a weak key but it was for testing purpose only (1mBTC)
Now, is it possible that the wallet *ever* use this address again as a change address?
Because I don't want this address being used ever again since it's weak.
No. Bitcoin Core will always uses a new address for the change. Even if you request another receiving address but don't use it, that address will never be used for change.

I thought I better change my mind and *export* the key, but I there doesn't seem to be an option for it.

So, edit with pywallet? Or just create a new wallet and make a transaction to it? Or just don't worry?
What do you mean by "export"? If you mean you want to delete the key from the wallet, then no, that is not possible.

findftp (OP)
Legendary
*
Offline Offline

Activity: 1022
Merit: 1008

Delusional crypto obsessionist


View Profile
July 05, 2016, 09:48:01 PM
 #4

Thank you both for the answers.
I just leave the key in the wallet then.

What do you mean by "export"? If you mean you want to delete the key from the wallet, then no, that is not possible.

Yes, I meant delete. But it is not necessary since the address apparently is never going to be used again.
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!