base58

Buffer.from(<string>, 'hex') equivalent in Python

Buffer.from(<string>, 'hex') equivalent in Python Question: I have a typescript library that I need to translate into Python. I am using the library bs58 in Typescript and its equivalent base58 library in python. My problem is coming when I try to replicate this: const decodedTxHash = Buffer.from(’34cc2932f90774851410a536e3db2c2e61266a1587fbc15e7e9c79b41631ac74′, ‘hex’) const nearBurnTxHash = bs58.encode(decodedTxHash) This results in: …

Total answers: 1