Transaction: add error checking for hashForSignature

83 is (SIGHASH_SINGLE & SIGHASH_ANYONECANPAY)
txbuilder