implement base 58 en/decoding and private key to WIF