librustzcash
librustzcash copied to clipboard
Update signature hashes to inhibit "Possible large transaction fee via two Segwit transactions"
Noted here:
Amounts were added to sighash following the SegWit design, but per this SegWit bug it was insufficient to protect hardware wallets from incorrectly computing fees. Given that we need everyone to migrate to a new sighash for TZE-containing transactions, we should a) fix this for TZE inputs, and b) simultaneously fix this for transparent inputs in TZE-supporting transactions.