Generate tx_id offline
logan059 opened this issue · comments
logan commented
How to generate the tx_id **offline**
?
Thanks.
logan commented
@sammchardy Can you give me some help? Now we want to get txid
before the tx broadcasted.
logan commented
Fixed.
data = msg.to_hex_data()
txid= hashlib.new('sha256', bytes.fromhex(data)).digest()