Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: caveden on August 07, 2010, 10:13:25 PM



Title: Sppliting/merging wallets
Post by: caveden on August 07, 2010, 10:13:25 PM
Hello,

Isn't there an easy way to split or merge different wallets?

I know I could transfer to myself, but that's laborious, and, well, there are the transaction fees somebody just pointed me in another topic.

Merging might be useful for someone that intends to use more than one computer to mint for bitcoins.

Splitting could be useful in order to protect your bitcoins. If you keep all of them in the same wallet and an attacker has access to it, he gets all your money! If you had split it and backed up your coins in different medias that are not connected to the internet, that reduces the risk.

Talking about protection, is built-in password protection for your wallet planned to be developed for the default client? It could be helpful too.

Thank you.



Title: Re: Sppliting/merging wallets
Post by: BitLex on August 07, 2010, 10:33:06 PM
dont care about transaction fees, i havent payed any so far (but i was lucky to get some) and did a lot of transactions.
just send them back and forth as u like, i doubt there's any way to "merge" wallet-files.


Title: Re: Sppliting/merging wallets
Post by: Insti on August 08, 2010, 08:10:34 AM
There is not currently any way to split/merge wallet files.

I think that eventually someone will write the code to export/import Bitcoin address private keys and then you'll be able to split/join as much as you like.

Password protecting the wallet file is discussed in some threads here and will probably happen.

If you want to see either of these things happen soon either:
a) Code them yourself and contribute a patch
b) Set up a bounty (in BTC) for someone who will.
c) Wait.

(We probably need a public bug tracking/feature request system.)


Title: Re: Sppliting/merging wallets
Post by: lfm on August 09, 2010, 11:57:18 AM
Isn't there an easy way to split or merge different wallets?

I know I could transfer to myself, but that's laborious, and, well, there are the transaction fees somebody just pointed me in another topic.

Merging might be useful for someone that intends to use more than one computer to mint for bitcoins.

Splitting could be useful in order to protect your bitcoins. If you keep all of them in the same wallet and an attacker has access to it, he gets all your money! If you had split it and backed up your coins in different medias that are not connected to the internet, that reduces the risk.

I just run a simple script once per minute if the balance is above zero send the balance to my central wallet/machine. works fine.


Title: Re: Sppliting/merging wallets
Post by: racerx on October 10, 2010, 02:20:05 PM
I just run a simple script once per minute if the balance is above zero send the balance to my central wallet/machine. works fine.

Mind posting it up? guessing its just a  if ./bitcoind getinfo | grep blah then bitcoind ....


Cheers!


Title: Re: Sppliting/merging wallets
Post by: lfm on October 12, 2010, 06:42:04 AM
I just run a simple script once per minute if the balance is above zero send the balance to my central wallet/machine. works fine.

Mind posting it up? guessing its just a  if ./bitcoind getinfo | grep blah then bitcoind ....


Cheers!

Code:
(
    while sleep 60
    do
        a=`../bin/bitcoind getbalance`
        if [ 0 -ne `echo "$a * 100 / 1" | bc` ]
        then
            ../bin/bitcoind sendtoaddress \
                      1LcDW5G7YfayfGJtGAqc7D3DGXThnnqJ5R  $a
        fi
    done
) &

just change the address for your own central machine or you will be sending your bitcoins to me.


Title: Re: Sppliting/merging wallets
Post by: racerx on October 22, 2010, 09:39:38 PM
Thanks lfm,  I ended up making my own in the interim :)

http://bitcointalk.org/index.php?topic=1431.0

Code:
42 * * * * root if [ $(/usr/local/bin/bitcoind getbalance) = 0.00000000 ]; then echo "No Coins Generated"; else /usr/local/bin/bitcoind sendtoaddress 1AVgSRgQ4dF8Fwi3hfvFZ1uhnWoWGT25sR $(/usr/local/bin/bitcoind getbalance) $HOSTNAME $HOSTNAME; fi


Title: Re: Sppliting/merging wallets
Post by: bitcool on February 09, 2011, 04:06:18 PM
Saw another discussion on a different thread: http://bitcointalk.org/index.php?topic=426.0
I am wondering if this feature has been considered for new releases.


Title: Re: Sppliting/merging wallets
Post by: Gavin Andresen on February 09, 2011, 04:11:22 PM
(We probably need a public bug tracking/feature request system.)

The public bug tracking/feature request system is at:
 https://github.com/bitcoin/bitcoin/issues

Vote up issues/bugs that are important to you there.


Title: Re: Sppliting/merging wallets
Post by: bitcool on February 09, 2011, 05:33:16 PM
great, looks like this feature has been covered under: Treat wallet as a generic keystore
definitely will vote yes on this one.


Title: Re: Sppliting/merging wallets
Post by: Hal on February 09, 2011, 06:16:50 PM
People talk about moving keys/addresses, but also it is important to move the transactions. Bitcoin is a transaction based system. Your keys authorize (sign) payments, but the payments actually come from the transactions you have received and which are in your wallet. If you're splitting off some keys into another wallet, you need to move the transactions that fund those keys, or they won't be able to do anything. (Should move address book and account entries too.)



Title: Re: Sppliting/merging wallets
Post by: BitterTea on February 09, 2011, 08:42:02 PM
Really? I was under the impression that the transactions were in the block chain, and as long as you had the keys to those transactions you could claim them.


Title: Re: Sppliting/merging wallets
Post by: davout on February 09, 2011, 09:15:53 PM
People talk about moving keys/addresses, but also it is important to move the transactions. Bitcoin is a transaction based system. Your keys authorize (sign) payments, but the payments actually come from the transactions you have received and which are in your wallet. If you're splitting off some keys into another wallet, you need to move the transactions that fund those keys, or they won't be able to do anything. (Should move address book and account entries too.)
Move is probably not the right word, what you mean is covered by the -rescan switch, which will be available from 3.20