shirriff / bitcoin-code

Python example code for "Bitcoins the hard way: Using the raw Bitcoin protocol"
144 stars 89 forks source link

privateKeyToWif && wifToPrivateKey error #4

Open zhl2008 opened 6 years ago

zhl2008 commented 6 years ago

the functions for WIF and private key are wrong or out-of-date, they generate a WIF of length 51, but actually we use WIF of length 52. for example:

5K7T2qR7K5MUMDmkJvCEPbUeALuPyc6LFEnBiwWLuKCEVdBp8qV length 51 L1aW4aubDFB7yfras2S1mN3bqg9nwySY8nkoLmJebSLD5BWv3ENZ length 52