New answers tagged

0

Use b58encode_check instead of non-check version and convert your hex to binary before passing it to the library.


2

Because Base58 initial 1s carry 8 bits of data, but P2SH addresses cannot be represented with a string with initial 1s so it starts with 3 which, like all other cases & characters, encodes 5.86 bits of data. Since the same number of digits encodes fewer bytes, more digits is needed for P2SH. The P2PKH network byte is 0x00 and the rest is the hash and the ...


Top 50 recent answers are included