Bitcoin Forum
November 10, 2024, 10:46:47 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Questions on Brain Wallets  (Read 463 times)
Seachmall (OP)
Newbie
*
Offline Offline

Activity: 2
Merit: 0


View Profile
May 15, 2013, 05:49:44 PM
 #1

I'm not entirely sure how BTC works, even after reading through the wiki, so please excuse any stupidity on my behalf.


If I have a wallet.dat file with Private Keys can I back it up, import the generated Brain Wallet Private Key, perform some transactions and then delete the wallet.dat file replacing it with the backup?

Or is there an easier method (such as just deleting the private key from the wallet.dat)?


I ask because every article or thread I read on how to use Brain Wallets seems to revolve around BlockChain.info or a similar service.


Thanks in advance, hope the question makes sense.
DannyHamilton
Legendary
*
Offline Offline

Activity: 3486
Merit: 4832



View Profile
May 15, 2013, 07:05:54 PM
 #2

I'm not entirely sure how BTC works, even after reading through the wiki, so please excuse any stupidity on my behalf.


If I have a wallet.dat file with Private Keys can I back it up, import the generated Brain Wallet Private Key, perform some transactions and then delete the wallet.dat file replacing it with the backup?

Or is there an easier method (such as just deleting the private key from the wallet.dat)?


I ask because every article or thread I read on how to use Brain Wallets seems to revolve around BlockChain.info or a similar service.


Thanks in advance, hope the question makes sense.

I assume you are asking about Bitcoin-Qt?

If so, then your plan would work as long as:

  • You understand and are careful about "change" addresses.
  • You make sure you keep a good backup of the original wallet.dat
  • You don't use more than 100 addresses (including change addresses) before you restore the backup, or you increase the size of the keypool

It might be safer to:


Create a backup of the wallet.dat
Shut down Bitcoin-Qt
Delete the wallet.dat from the Bitcoin-Qt data directory.
Start up Bitcoin-Qt (it will create a new wallet.dat that has none of the previous addresses and access to none of the coins from the backed up wallet.dat)
Import the private key from the paper wallet.
Perform the transactions you desire.
Send the entire remaining balance to a new paper wallet.
Shut down Bitcoin-Qt
Replace the wallet.dat in the Bitcoin-Qt data directory with the backup.
Start up Bitcoin-Qt

As far as I know there is no way to remove a private key from a Bitcoin-Qt wallet.dat without a third-party utility.

I__Know__Things
Newbie
*
Offline Offline

Activity: 14
Merit: 0


View Profile
May 15, 2013, 07:08:57 PM
 #3

Hope it is cool to piggy back on this thread:

How do you increase the size of your keypool?
DannyHamilton
Legendary
*
Offline Offline

Activity: 3486
Merit: 4832



View Profile
May 15, 2013, 07:14:26 PM
 #4

Hope it is cool to piggy back on this thread:

How do you increase the size of your keypool?

Create a file named "bitcoin.conf" in the bitcoin data directory (where the wallet.dat is stored).  Add a line to that file:

Code:
keypool=#

Where # is the size you want your keypool to be.
Seachmall (OP)
Newbie
*
Offline Offline

Activity: 2
Merit: 0


View Profile
May 15, 2013, 07:41:08 PM
 #5

Perfect, thanks Danny.
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!