I'm trying to convert this php code:
$scriptpubkey = '4104678afdb0fe5548271967f1a67130b7105cd6a828e03909a67962e0ea1f61deb649f6bc3f4cef38c4f35504e51ec112de5c384df7ba0b8d578a4c702b6bf11d5fac' $values = unpack("C*", pack("H*", $scriptpubkey));
to python. So far, i have done the following:
PHP: pack("H*", $scriptpubkey) -> Python: binascii.unhexlify(scriptpubkey)
I am not sure if it's correct though. If someone could explain the pack, unpack functions and what the characters "C*", "H*" do, it would be much appreciated.