Post
Topic
Board Bitcoin Technical Support
Merits 2 from 1 user
Re: Pubkey/address help needed (Python)
by
pooya87
on 09/01/2022, 05:33:06 UTC
⭐ Merited by ETFbitcoin (2)
P2SH as the name suggests is created using a script not the public key. So you have to first construct your desired script then compute HASH160 of that serialized script and finally encode it using Base58 using the different version byte.

BTW the library you are using is very old and is obsolete.