Using decodeTxid and encodeTxid from Haskoin.Protocol
Factoring out network constants