This code:
sender_public_key = sender_private_key.pub
sender_address = P2PKHBitcoinAddress.from_pubkey(sender_public_key)
print(sender_public_key)
print(bitcoin.core.Hash160(sender_public_key))
print(sender_address)
produces output:
CPubKey(b'x033xadxcbxe4rxe6xefx04xa0Ix0f(Bx1cx8a;@Cxa8x99jox8ax85xd5xeex9exe2x8ax1f|q')
b'x93xa7xc4E$xa3xcf{0xfex91xa6xa3XRxfav6x80#'
mtygbtN2LZt3U5QcMNQF3Zq2sqJF4HowYm
however Hash160 ought to give the sender tackle – the second and the third strains needs to be the identical. What am I lacking right here?