Bitcoin Forum
May 28, 2024, 09:25:11 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: bitcoin-qt, how it creates a private key?  (Read 839 times)
rfisher1968 (OP)
Sr. Member
****
Offline Offline

Activity: 319
Merit: 250


View Profile
May 29, 2013, 05:20:19 PM
 #1

How does bitcoin-qt know that a private key is not already in use?
DannyHamilton
Legendary
*
Offline Offline

Activity: 3402
Merit: 4656



View Profile
May 29, 2013, 05:52:32 PM
 #2

How does bitcoin-qt know that a private key is not already in use?

It chooses a random number from a pool of numbers that's so large that it's reasonably safe to assume that nobody else is using that number.
jackjack
Legendary
*
Offline Offline

Activity: 1176
Merit: 1255


May Bitcoin be touched by his Noodly Appendage


View Profile
May 29, 2013, 06:01:45 PM
 #3

Answer when there are 2^160 possibilities (the total number of bitcoin addresses)
https://bitcointalk.org/index.php?topic=207808.msg2179046#msg2179046
Here you're asking for private keys (a tiny bit less than 2^256 different ones), so you're basically multiplying what is in this thread by 79228162514264337593543950335

And anyway, it can be in use. In that case, jackpot

Own address: 19QkqAza7BHFTuoz9N8UQkryP4E9jHo4N3 - Pywallet support: 1AQDfx22pKGgXnUZFL1e4UKos3QqvRzNh5 - Bitcointalk++ script support: 1Pxeccscj1ygseTdSV1qUqQCanp2B2NMM2
Pywallet: instructions. Encrypted wallet support, export/import keys/addresses, backup wallets, export/import CSV data from/into wallet, merge wallets, delete/import addresses and transactions, recover altcoins sent to bitcoin addresses, sign/verify messages and files with Bitcoin addresses, recover deleted wallets, etc.
pand70
Sr. Member
****
Offline Offline

Activity: 476
Merit: 250



View Profile
May 29, 2013, 06:08:40 PM
 #4

https://en.bitcoin.it/wiki/Weaknesses

It is called collision.I had this concern popped in my mind some days ago.
Not anymore.

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!