Author

Topic: Why do all private keys generated with bitaddress have the same first character? (Read 1147 times)

full member
Activity: 182
Merit: 100
1MCKW9AkWj3aopC1aPegcZEf2fYNrhUQVf
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!
donator
Activity: 1218
Merit: 1079
Gerald Davis
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)

member
Activity: 88
Merit: 10
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)
legendary
Activity: 1498
Merit: 1000
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

sr. member
Activity: 364
Merit: 250
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).
legendary
Activity: 1148
Merit: 1008
If you want to walk on water, get out of the boat
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
legendary
Activity: 1008
Merit: 1000
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.
full member
Activity: 182
Merit: 100
1MCKW9AkWj3aopC1aPegcZEf2fYNrhUQVf
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?
Jump to: