Author

Topic: Where is the private key / signature located? (Read 590 times)

newbie
Activity: 11
Merit: 0
November 29, 2013, 09:38:05 PM
#11
Excellent, thank you all very much for the quick help. Yes, I was referring to QT.

But to be honest, I am now somewhat confused by the answer of DannyHamilton. So I'd like to ask: aren't all key pairs stored in the wallet, then? Or why is a frequent backup especially necessary with qt?

Bitcoin-Qt pre-generates 100 key pairs, and uses one of those every time you send a transaction.

Then it generates a brand new key pair and adds it to the pool of pre-generated key pairs.

So if you install Bitcoin-Qt and then create a backup, the backup will have 100 unused key pairs.

Then if you generate 25 receiving addresses and send out 75 transactions the backup that you previously made will still only have the 100 key pairs that where backed up.  However, your Bitcoin-Qt will have 200 key pairs.

That's 100 key pairs that are not in your backup.

The next transaction that you send will use one of these newer key pairs that are not in your backup.  If you then restore the backup, you'll lose the bitcoins that were associated with that most recent public key.

Perfect answer - now I understand. Thanks!

Just one more thing to add.
You can pre-gen more keys by using the argument "-keypool=" if you want to.
newbie
Activity: 56
Merit: 0
Excellent, thank you all very much for the quick help. Yes, I was referring to QT.

But to be honest, I am now somewhat confused by the answer of DannyHamilton. So I'd like to ask: aren't all key pairs stored in the wallet, then? Or why is a frequent backup especially necessary with qt?

Bitcoin-Qt pre-generates 100 key pairs, and uses one of those every time you send a transaction.

Then it generates a brand new key pair and adds it to the pool of pre-generated key pairs.

So if you install Bitcoin-Qt and then create a backup, the backup will have 100 unused key pairs.

Then if you generate 25 receiving addresses and send out 75 transactions the backup that you previously made will still only have the 100 key pairs that where backed up.  However, your Bitcoin-Qt will have 200 key pairs.

That's 100 key pairs that are not in your backup.

The next transaction that you send will use one of these newer key pairs that are not in your backup.  If you then restore the backup, you'll lose the bitcoins that were associated with that most recent public key.

Perfect answer - now I understand. Thanks!
legendary
Activity: 3472
Merit: 4801
November 29, 2013, 05:54:46 PM
#9
Excellent, thank you all very much for the quick help. Yes, I was referring to QT.

But to be honest, I am now somewhat confused by the answer of DannyHamilton. So I'd like to ask: aren't all key pairs stored in the wallet, then? Or why is a frequent backup especially necessary with qt?

Bitcoin-Qt pre-generates 100 key pairs, and uses one of those every time you send a transaction.

Then it generates a brand new key pair and adds it to the pool of pre-generated key pairs.

So if you install Bitcoin-Qt and then create a backup, the backup will have 100 unused key pairs.

Then if you generate 25 receiving addresses and send out 75 transactions the backup that you previously made will still only have the 100 key pairs that where backed up.  However, your Bitcoin-Qt will have 200 key pairs.

That's 100 key pairs that are not in your backup.

The next transaction that you send will use one of these newer key pairs that are not in your backup.  If you then restore the backup, you'll lose the bitcoins that were associated with that most recent public key.
newbie
Activity: 56
Merit: 0
November 29, 2013, 05:44:57 PM
#8
Excellent, thank you all very much for the quick help. Yes, I was referring to QT.

But to be honest, I am now somewhat confused by the answer of DannyHamilton. So I'd like to ask: aren't all key pairs stored in the wallet, then? Or why is a frequent backup especially necessary with qt?
legendary
Activity: 3472
Merit: 4801
November 29, 2013, 05:39:08 PM
#7
As far as I understand BTC, the system is based on digital signatures that require a private key. Since no BTC client I am aware of requires the manual creation of a key or key pair, I assume, this task is done automatically and fully transparent to the user. But where is that thing actually located? In the wallet? Or is there a second location? If it was in the wallet, creating a backup of the wallet file is all that would be necessary to make sure that no BTC are ever "lost", right?

Depends on the wallet you use.

With Bitcoin-Qt you need to create backups regularly since it creates a new key pair every time you send a transaction.

It pre-generates the next 100 keypairs that it will use, so you don't have to backup after every transaction.
full member
Activity: 182
Merit: 100
November 29, 2013, 05:38:33 PM
#6
You can go to https://www.bitaddress.org/ and create a new address.
There, you will see the private and public keys.
Is not relevent to his question.

Yes, if you are using the standard bitcoin-qt wallet (from bitcoin.org) then you will need to backup your wallet.dat file.


It is relevant to what he wants to know (how to know a private key related to a public key).
For instance, if he has no IT knowledge, and no btc in his wallet, he can easily create a new one (as I said), and import it.



legendary
Activity: 2646
Merit: 1137
All paid signature campaigns should be banned.
November 29, 2013, 05:36:37 PM
#5
You can go to https://www.bitaddress.org/ and create a new address.
There, you will see the private and public keys.
Is not relevent to his question.

Yes, if you are using the standard bitcoin-qt wallet (from bitcoin.org) then you will need to backup your wallet.dat file.
hero member
Activity: 742
Merit: 502
Circa 2010
November 29, 2013, 05:34:14 PM
#4
Depending on what client your using and whether your using an online wallet or not, it should either be in your wallet.dat file or you should be able to find an option to export your private keys.
full member
Activity: 182
Merit: 100
November 29, 2013, 05:33:39 PM
#3
You can go to https://www.bitaddress.org/ and create a new address.
There, you will see the private and public keys.
legendary
Activity: 2646
Merit: 1137
All paid signature campaigns should be banned.
November 29, 2013, 05:31:15 PM
#2
bitcoin-qt?

Then wallet.dat
newbie
Activity: 56
Merit: 0
November 29, 2013, 05:28:53 PM
#1
As far as I understand BTC, the system is based on digital signatures that require a private key. Since no BTC client I am aware of requires the manual creation of a key or key pair, I assume, this task is done automatically and fully transparent to the user. But where is that thing actually located? In the wallet? Or is there a second location? If it was in the wallet, creating a backup of the wallet file is all that would be necessary to make sure that no BTC are ever "lost", right?
Jump to: