Pages:
Author

Topic: Use same wallet/address on multiple PCs? (Read 8531 times)

jr. member
Activity: 52
Merit: 1
March 24, 2011, 03:13:16 PM
#24
We could, in theory, divide the keys in the wallet, couldn't we? That would make it easier to "take some money with you when you go out". I think there are some proposals in the forum that would allow something like this.
legendary
Activity: 1615
Merit: 1000
Personally, I have a "vault" wallet with most of my BTC on it, stored in an encrypted container, backed up locally and in the cloud. I've used that wallet on multiple computers without a hitch. I do make it a point to  only access that wallet briefly, so it's never in use on multiple computers at the same time.
administrator
Activity: 5222
Merit: 13032
Would it be possible to modify the client to properlly handle multiple concurrent copies of a wallet? Or the protocol itself needs to be changed for that to work?

Each client would need to know which coins the other clients are going to use. You could do this by having the clients communicate with each other. You could also say that each client will only use some subset of coins. If Bitcoin allowed you to manually select which coins to send in a transaction, you could handle this yourself.

Other changes are needed, as well. For example, I'm pretty sure Bitcoin doesn't automatically detect when another running client sends coins in its wallet until after it is restarted.
Hal
vip
Activity: 314
Merit: 4276
Warning, lots of bad information and wrong answers in this thread!

Addresses are not created in batches of 100 (after initialization), they are created one at a time as they are used, so you always have a pool of 100 unused addresses.

Wallets do hold transactions, all the ones you see in the client window.

You would probably not want to share the same wallet between your home system and your phone, because of the risk of theft, any more than you would empty your bank account and carry all your money around with you as cash. Most people plan to hold a fraction of their assets in their phones.

hero member
Activity: 616
Merit: 500
Firstbits.com/1fg4i :)
No, i mean the same wallet being used in more than one machine at once
newbie
Activity: 11
Merit: 0
Would it be possible to modify the client to properlly handle multiple concurrent copies of a wallet? Or the protocol itself needs to be changed for that to work?

It should work as you could just add an option to choose the wallet from different locations on your computer. Here you can donate for speeding up the development of this feature:
http://bitcoin.cz.cc/?page=propose&id=30
hero member
Activity: 616
Merit: 500
Firstbits.com/1fg4i :)
Would it be possible to modify the client to properlly handle multiple concurrent copies of a wallet? Or the protocol itself needs to be changed for that to work?
administrator
Activity: 5222
Merit: 13032
Right. So if I then elect to put the walled on a USB Flash drive, can I somehow point the Bitcoin client on each PC to the USB Flas drive to read the wallet from there? Will that work?

That should work. Run each Bitcoin instance with the -datadir=/path/to/drive switch.

I wouldn't try using two different copies of the wallet. Bitcoin was not designed to do this. I don't think it takes into account sent transactions until you restart it, which might cause you to accidentally double-spend.
sr. member
Activity: 406
Merit: 256
I don't send coins if I think there's any possibility of an unverified transaction Smiley
jr. member
Activity: 52
Merit: 1
Right, so if a wallet exists in multiple places it *will* synchronize?
If a new address were generated on your laptop, it would be hidden from your view and kept in reserve, but it would eventually appear in your receiving addresses list (on your laptop) after you create 100 new addresses. And you won't have a copy of it (private key corresponding to the new address) on your desktop. So what I would do is to assume that one of the wallets are the master, and copy it to other devices at an interval, like every month or so. This isn't the same as synchronization though.

I put a copy of my wallet on my laptop and am careful not to double spend

How do you prevent avoid double spending? I have to try it on my N900. :-)
newbie
Activity: 7
Merit: 0
Right, so if a wallet exists in multiple places it *will* synchronize?
sr. member
Activity: 406
Merit: 256
It waits until the transaction is in a block, I think.
full member
Activity: 182
Merit: 100
And for reference, I put a copy of my wallet on my laptop and am careful not to double spend, but I have access to my coins in both places.

Out of curiosity, how long does it take for the unused client to adjust it's balance?  Is it as soon as it receives the transaction broadcast, or does it wait until the transaction is in a block?  It seems like it would be the former, but I haven't tried it or looked at that part of the source.
sr. member
Activity: 406
Merit: 256
And for reference, I put a copy of my wallet on my laptop and am careful not to double spend, but I have access to my coins in both places.
full member
Activity: 182
Merit: 100
BTW, transactions are not stored in wallet.dat, so synchronization is fairly easy to maintain.  wallet.dat only changes whena a new group of addresses is generated.  The client pregenerates them 100 at a time, so wallet.dat will only change after you use 100 new addresses.
full member
Activity: 182
Merit: 100
March 24, 2011, 09:59:42 AM
#9
I thought with the keypair you could both read the amount of money an address has and spend it...

Interesting, but how? I thought the keypair was integrated into the wallet and tied to the Bitcoin address?

wallet.dat contains your keypairs.  I haven't tried it, but it should work fine with multiple clients on multiple machines, as long as you keep the wallet.dat synchronized between the devices.
full member
Activity: 175
Merit: 101
March 24, 2011, 09:53:56 AM
#8
The wallet is just a file. Why not send the wallet over the network?
newbie
Activity: 7
Merit: 0
March 24, 2011, 09:23:20 AM
#7
I thought with the keypair you could both read the amount of money an address has and spend it...

Interesting, but how? I thought the keypair was integrated into the wallet and tied to the Bitcoin address?
hero member
Activity: 616
Merit: 500
Firstbits.com/1fg4i :)
March 24, 2011, 09:19:17 AM
#6
I thought with the keypair you could both read the amount of money an address has and spend it...
newbie
Activity: 7
Merit: 0
March 24, 2011, 09:10:45 AM
#5
Right. So if I then elect to put the walled on a USB Flash drive, can I somehow point the Bitcoin client on each PC to the USB Flas drive to read the wallet from there? Will that work?

Still leaves out the issue with Smartphones, tablets and all the newer computing devices, but one barrier at a time.
Pages:
Jump to: