Author

Topic: How do I synchronize my online wallet's info with my offline wallet? (Read 1174 times)

newbie
Activity: 42
Merit: 0
But if John next door generates that addres too, and he does broadcast it, then if somebody sends me a sum to my address, actually it will go to John.

This is the part that I never understood about BTC, so I would appreciate it if some1 could clarify.

You and John next door will never generate the same address if your software is working as it should. I believe this video will help you understand why. Take a look  Smiley

https://www.youtube.com/watch?v=ZloHVKk7DHk

Yup, alright 10^48 is good. Now I feel confortable. I will just use 3-4 wallets and then even if they do, they only steal 25%.

Storing 100% of the wealth in 1 address is good, but i`m even more risk adverse, so i will just store 25% of my wealth in 1 address Smiley

Anyway thanks, thread locked.
legendary
Activity: 1193
Merit: 1003
9.9.2012: I predict that single digits... <- FAIL
But if John next door generates that addres too, and he does broadcast it, then if somebody sends me a sum to my address, actually it will go to John.

This is the part that I never understood about BTC, so I would appreciate it if some1 could clarify.

You and John next door will never generate the same address if your software is working as it should. I believe this video will help you understand why. Take a look  Smiley

https://www.youtube.com/watch?v=ZloHVKk7DHk
legendary
Activity: 3388
Merit: 4615
Addresses are not "registered" anywhere.

The only way your wallet will know that someone generated the address will be if they send bitcoins to it.  Oh, what a horrible problem to have if someone sends you so many bitcoins that they crash your wallet.
Well that is the problem, if it isnt registered into the network, then how does the network know that that address is mine and not some1 elses address.

Because you are the only person that has the private key for that address.  If you don't have exclusive control of the private key, then you don't have any bitcoins.

Because if that address doesnt exist yet in the network, then if I generate that address offline, and dont broadcast that.

Correct.

But if John next door generates that addres too,

He can't.  Not unless there is something wrong with the software that you are using to create the address.

and he does broadcast it, then if somebody sends me a sum to my address, actually it will go to John.

Correct.  If you use faulty software that incorrectly creates a bitcoin address, then it is possible for John to create the same bitcoin address. Then, you will BOTH receive any bitcoins that are sent to that address, and it will be a race to see who spends them first.

This is the part that I never understood about BTC, so I would appreciate it if some1 could clarify.

It is difficult to explain without getting into some technical details that I fear may be more than you are ready to understand, but I'll try.

To create a bitcoin address, you first choose a private key.  (Not a password, not a master key)  Most bitcoin software hides this part from you.  It creates a private key that it keeps hidden from you and doesn't tell you about.  Since most software doesn't tell you about the private key, many people don't even realize it's there but it is.

The private key is chosen as a number between 1 and 1.158 X 1077.  The size of that range is HUGE.  It is bigger than most people can comprehend.  Now if you just picked a "favorite" number then you'd have a chance that two people would have the same "favorite".  This would be BAD.  So instead, a completely random number in the range is picked by the software.  As long as the software does this properly, the odds that the same number will be chosen twice is astronomically small.  The odds are so small, that it literally isn't worth worrying about. If you're going to worry about that, then you should start worrying about the possibility that all the oxygen molecules in the room will spontaneously gather together in one corner of the room and you'll suffocate and die.

Next the public key is calculated using Secp256k1 Elliptic Curve.  Given a private key (and knowledge about the appropriate curve) it is very fast and easy to calculate the public key.  However, it isn't possible with any current mathematics to calculate the private key from the public key.  Finally the public key is run through a few more calculations to result in a bitcoin address.

So, the odds are so great against two people generating the same bitcoin address that there is no need to "register" or "broadcast" an address.  All you need to do is keep your private key secret.  Your bitcoin software should do this by encrypting all the private keys that it generates.  It should do this by using properly random methods of generating private keys. It should do this by generating the transaction signatures properly. It should do this by discouraging you from re-using a bitcoin address more than once.
newbie
Activity: 42
Merit: 0

Addresses are not "registered" anywhere.

The only way your wallet will know that someone generated the address will be if they send bitcoins to it.  Oh, what a horrible problem to have if someone sends you so many bitcoins that they crash your wallet.

Well that is the problem, if it isnt registered into the network, then how does the network know that that address is mine and not some1 elses address.

Because if that address doesnt exist yet in the network, then if I generate that address offline, and dont broadcast that.

But if John next door generates that addres too, and he does broadcast it, then if somebody sends me a sum to my address, actually it will go to John.

This is the part that I never understood about BTC, so I would appreciate it if some1 could clarify.
legendary
Activity: 3388
Merit: 4615
That is exactly what I mean, but isnt that address already registered,

Addresses are not "registered" anywhere.

The only way your wallet will know that someone generated the address will be if they send bitcoins to it.  Oh, what a horrible problem to have if someone sends you so many bitcoins that they crash your wallet.

i mean as soon as it is broadcasted,

it?  You mean the address?  The address isn't "broadcast".  It is used to receive bitcoins.

Or do you mean as soon as the transaction is broadcast?

it is registered into the network permanently, how does it not show up

Transactions show up when they are broadcast.  Then eventually the transaction is confirmed into the permanent blockchain.

if its already registered

Addresses aren't "registered".  Transactions are confirmed.

or pinned to that address/master-private key ? Cheesy

What is being pinned where?
Which private key are you talking about? Or are you asking about the master key for the deterministic wallet?  Those are two different things.
newbie
Activity: 42
Merit: 0
Every address in your watching only copy is in your cold wallet.

There is no syncing, its deterministic. When you ask for a new address on your online PC, it figures out what the next address on the cold wallet is and gives you that.

Good then, sorry i didnt saw deterministic in the previous post. Now i understand, though its funny because if i can create address form a watch only copy then anyone could basically by stoling my watch only wallet.

Though no private key could be stolen, but they could perhaps add so many adrreses there that it could crash the wallet, isnt that a security problem?

I'm not sure what you mean, but I think you mean that if someone can access the watching only wallet file on your PC they could generate thousands of new addresses and potentially crash your wallet. Armory can handle a LOT of addresses, but yes if someone can access the watching-only wallet file on your PC they could do that. If that happens, all you need to do is create a new watching-only wallet file on your offline PC and transfer it to your online PC and any unused addresses won't show up on it. You might need to do a rescan as well.

That is exactly what I mean, but isnt that address already registered, i mean as soon as it is broadcasted, it is registered into the network permanently, how does it not show up  if its already registered or pinned to that address/master-private key ? Cheesy
hero member
Activity: 882
Merit: 1005
Every address in your watching only copy is in your cold wallet.

There is no syncing, its deterministic. When you ask for a new address on your online PC, it figures out what the next address on the cold wallet is and gives you that.

Good then, sorry i didnt saw deterministic in the previous post. Now i understand, though its funny because if i can create address form a watch only copy then anyone could basically by stoling my watch only wallet.

Though no private key could be stolen, but they could perhaps add so many adrreses there that it could crash the wallet, isnt that a security problem?

I'm not sure what you mean, but I think you mean that if someone can access the watching only wallet file on your PC they could generate thousands of new addresses and potentially crash your wallet. Armory can handle a LOT of addresses, but yes if someone can access the watching-only wallet file on your PC they could do that. If that happens, all you need to do is create a new watching-only wallet file on your offline PC and transfer it to your online PC and any unused addresses won't show up on it. You might need to do a rescan as well.
newbie
Activity: 42
Merit: 0
Every address in your watching only copy is in your cold wallet.

There is no syncing, its deterministic. When you ask for a new address on your online PC, it figures out what the next address on the cold wallet is and gives you that.

Good then, sorry i didnt saw deterministic in the previous post. Now i understand, though its funny because if i can create address form a watch only copy then anyone could basically by stoling my watch only wallet.

Though no private key could be stolen, but they could perhaps add so many adrreses there that it could crash the wallet, isnt that a security problem?
hero member
Activity: 882
Merit: 1005
Every address in your watching only copy is in your cold wallet.

There is no syncing, its deterministic. When you ask for a new address on your online PC, it figures out what the next address on the cold wallet is and gives you that.
newbie
Activity: 42
Merit: 0
Ok i have an armory cold storage address and I have 2 pcs, one that stores the offline stuff and private keys, and the other is the online broadcaster pc has has the watch only wallet.

So i`ve created a new addres with the watch only wallet, how do I synchronize that with the offline wallet where my private keys are?

You don't need to sync them. Armory uses a deterministic wallet: https://en.bitcoin.it/wiki/Deterministic_Wallet

Any address you get from the watch-only wallet is already in your cold wallet.

So for example if X addres on the watch only address has 1 btc, then if i add x+1 address there, and move 0.5 btc, but i didnt synced with the offline addres will I have the funds.

So x+1 address will be also identical in the offline address  with the x+1 one in the online address without syncing.
And then could i receive it just as well (the addresses wont collide in any way) ?
hero member
Activity: 882
Merit: 1005
Ok i have an armory cold storage address and I have 2 pcs, one that stores the offline stuff and private keys, and the other is the online broadcaster pc has has the watch only wallet.

So i`ve created a new addres with the watch only wallet, how do I synchronize that with the offline wallet where my private keys are?

You don't need to sync them. Armory uses a deterministic wallet: https://en.bitcoin.it/wiki/Deterministic_Wallet

Any address you get from the watch-only wallet is already in your cold wallet.
newbie
Activity: 42
Merit: 0
Ok i have an armory cold storage address and I have 2 pcs, one that stores the offline stuff and private keys, and the other is the online broadcaster pc has has the watch only wallet.

So i`ve created a new addres with the watch only wallet, how do I synchronize that with the offline wallet where my private keys are?

And also, let's say if I get paid in the new address that is not in the offline wallet, will I be able to own those funds given that in the offline wallet it's not there. How will I get access to those funds If its not there in the offline wallet?

And also if I were to generate an address in the offline wallet, but before I synch with the online wallet's newly created address, will that create a bug? I mean those funds could be lost or the private key becomes obsolete.
Jump to: