Bitcoin Forum
June 30, 2024, 09:20:13 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Why do all private keys generated with bitaddress have the same first character?  (Read 1130 times)
neutrinox (OP)
Full Member
***
Offline Offline

Activity: 182
Merit: 100

1MCKW9AkWj3aopC1aPegcZEf2fYNrhUQVf


View Profile WWW
October 31, 2013, 05:17:42 PM
 #1

Hi!

I noticed that all the private keys bitadress.org generates begin with the number 5. Is this normal? Why is the first character not random?
chriswilmer
Legendary
*
Offline Offline

Activity: 1008
Merit: 1000


View Profile WWW
October 31, 2013, 05:20:47 PM
 #2

I think it's similar to the way a random number between 1 and 1000 is much (much!) more likely to start with a 0 than a 1.

0000
0001
0002

...

0999
1000

etc.

However, I could be wrong. Maybe this is just related to the special Bitcoin Base58 encoding and there is a version byte or something.
Gabi
Legendary
*
Offline Offline

Activity: 1148
Merit: 1008


If you want to walk on water, get out of the boat


View Profile
October 31, 2013, 05:23:20 PM
 #3

The last line is on the right way for the answer  Cheesy

It is explained on the Wallet Details section

Quote
Private Key WIF
51 characters base58, starts with a '5'

Private Key WIF Compressed
52 characters base58, starts with a 'K' or 'L'

It just depend on the encoding format used, the key is randomly generated  Wink

Birdy
Sr. Member
****
Offline Offline

Activity: 364
Merit: 250



View Profile
October 31, 2013, 05:25:41 PM
 #4

I think it's similar to the way a random number between 1 and 1000 is much (much!) more likely to start with a 0 than a 1.

0000
0001
0002

...

0999
1000

etc.

However, I could be wrong. Maybe this is just related to the special Bitcoin Base58 encoding and there is a version byte or something.

You are wrong, the first character isn't random.
Afaik it shows what kind of adress this is.
All Bitcoin adresses start with 1 and all private keys start with 5 (and there are probably more).
gweedo
Legendary
*
Offline Offline

Activity: 1498
Merit: 1000


View Profile
October 31, 2013, 05:27:14 PM
 #5

It has to do with how it is hashed and the verison bytes that are added to the front of the hash. https://en.bitcoin.it/wiki/Technical_background_of_Bitcoin_addresses

blub
Member
**
Offline Offline

Activity: 88
Merit: 10


View Profile
October 31, 2013, 05:33:30 PM
 #6

Use armory, and enter your own private key (the random number soruce on your system could be backdoored)
get good random numbers(dice, geiger counter)

DeathAndTaxes
Donator
Legendary
*
Offline Offline

Activity: 1218
Merit: 1079


Gerald Davis


View Profile
October 31, 2013, 05:35:18 PM
 #7

Use armory, and enter your own private key (the random number soruce on your system could be backdoored)
get good random numbers(dice, geiger counter)

neutrinox (OP)
Full Member
***
Offline Offline

Activity: 182
Merit: 100

1MCKW9AkWj3aopC1aPegcZEf2fYNrhUQVf


View Profile WWW
October 31, 2013, 05:36:54 PM
 #8

Hi thanks!

I deleted my message because I realized it's kind of off topic to this discussion. I generated a new topic instead. Sorry!
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!