>> (p.1)
    Author Topic: A question regarding off-line wallets...  (Read 695 times)
    kodiak1120 (OP)
    Full Member
    ***
    Offline Offline

    Activity: 221
    Merit: 100


    View Profile
    January 30, 2014, 08:15:47 PM
     #1

    I'm trying to get my head around the concept of an off-line wallet and I have a lingering question or two.  

    First, my understanding generally of the process is you use the script found at bitaddress.org to create both a public and private key, but you don't do this while online or on a computer that is or will be connected to the internet.  Instead, you basically create a bootable usb drive with a Linux operating system that you boot from your computer while the computer is disconnected from the internet.  Then you use the script from bitaddress.org to create the private and public keys (encrypt them if you wish) and print those keys onto paper.  This gives you a paper that contains a public address and a private key that match.  

    My question is how does the blockchain know that the private key you created off-line matches the public address?  I think the answer has to do with the SHA-256 hash function and the fact that such functions are basically a one-way street, meaning anyone can verify the public address if given the private key, but not vise-versa.  So when you go to spend whatever bitcoins are sent to the newly-created public address, all the blockchain has to do is verify that your private key, when ran through the SHA-256 algorithm, produces the same string of characters as the public address.  Is this correct?

    My other question is if the creation of the public address is done off-line, there is apparnetly no syncing with the blockchain so what happens if the same public address is created twice?  In other words, what happens if I randomly create a public address that's already in use?  Wouldn't my private key give me control over the bitcoins already associated with that public address?   I think the answer is that the chances of this happening are essentially impossible given the number of different combinations that can exist.  

    Thanks.

Page 1
Viewing Page: 1