Bitcoin Forum
May 22, 2024, 10:00:20 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: 256 bits in base58  (Read 758 times)
kellrobinson (OP)
Sr. Member
****
Offline Offline

Activity: 304
Merit: 380


View Profile
March 09, 2014, 04:16:23 PM
 #1

It only takes 44 characters in base58 to encode 256 bits, so why do private keys have 50 characters?
krampus
Member
**
Offline Offline

Activity: 98
Merit: 10

Village Idiot


View Profile
March 09, 2014, 04:18:19 PM
 #2

NSA tracking bits.

I pledge never to use this space for sleazy referrals, gambling spam, or to beg for handouts.
DeathAndTaxes
Donator
Legendary
*
Offline Offline

Activity: 1218
Merit: 1079


Gerald Davis


View Profile
March 09, 2014, 04:21:34 PM
 #3

It includes a checksum (just like addresses) to avoid importing incorrect key.  It also includes a compressed or uncompressed flag so the proper PubKeyHash can be computed.

https://en.bitcoin.it/wiki/Wallet_import_format
Peter R
Legendary
*
Offline Offline

Activity: 1162
Merit: 1007



View Profile
March 09, 2014, 04:23:57 PM
 #4

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

There is a checksum appended (and an ID byte prepended).  

Nearly any 256 bit number is a valid ECDSA private key.  Make a single typo and it's still a valid private key (to a different address).  The checksum makes WIF robust against typos/import errors.  Take one of your base58 WIF keys, make some typos and try to import it: you'll see that it doesn't work.  

Bitcoin addresses also have similar checksums appended.  This means that if you make a typo or drop the last character when entering a send-to address, that the checksum won't "check" and you won't lose your bitcoins.  

EDIT: D&T you beat me!  

Run Bitcoin Unlimited (www.bitcoinunlimited.info)
DeathAndTaxes
Donator
Legendary
*
Offline Offline

Activity: 1218
Merit: 1079


Gerald Davis


View Profile
March 09, 2014, 04:36:20 PM
 #5

EDIT: D&T you beat me! 

I winz one internets!  Don't feel bad if Danny was here he would have beat both of us.  The guy must either type 500 wpm or has a mind machine interface.
DannyHamilton
Legendary
*
Offline Offline

Activity: 3388
Merit: 4653



View Profile
March 09, 2014, 11:25:47 PM
 #6

EDIT: D&T you beat me!  
I winz one internets!  Don't feel bad if Danny was here he would have beat both of us.  The guy must either type 500 wpm or has a mind machine interface.

Was out selling bitcoins to a local (and getting my hair cut, and working out at the gym, and a few other errands).

Missed my opportunity to beat you both.  I'll get you next time.

I don't type very fast at all.  I've been a programmer for over 30 years, and I still do most of my typing with only 6 fingers (and my thumbs for the spacebar).  I do make judicial use of search, copy, and paste.  Saves me a huge amount of typing (and a huge amount of remembering).
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!