|
|
@ -2151,7 +2151,7 @@ int32_t bitcoin_wif2priv(uint8_t wiftaddr,uint8_t *addrtypep,bits256 *privkeyp,c |
|
|
|
if ( buf[0] == 0x80 && buf[len-1] == 0 ) |
|
|
|
{ |
|
|
|
ptr = buf+1; |
|
|
|
len--; |
|
|
|
len -= 2; |
|
|
|
} else ptr = buf; |
|
|
|
hash = bits256_doublesha256(0,ptr,len - 4); |
|
|
|
*addrtypep = (wiftaddr == 0) ? *ptr : ptr[1]; |
|
|
|