dogecoinfoundation / gigawallet

GigaWallet is the backend for your Dogecoin Business.
https://gigawallet.dogecoin.org
MIT License
56 stars 11 forks source link

Fix: tx hash must be reversed (little-endian encoding) #124

Closed raffecat closed 12 months ago

raffecat commented 1 year ago

Added a TxHashHex helper to calculate the transaction hash before submitting to core. The previous code was not reversing the bytes, which is required because... reasons: The transaction hash is considered to be a large integer encoded in little-endian format for hex-encoding.

Test uses the famous Bitcoin Pizza transaction.