calc Tx Sig Hash
abstract fun calcTxSigHash(txData: ByteArray, sigHashType: ByteArray, inputIdx: Long, inputAmount: Long, prevoutScript: ByteArray): ByteArray
Calculate the signature hash (sighash) for the passed transaction.
Return
The hash to use when signing this input in binary format. signTxOneInputUsingSchnorr calculates this automatically. This function is used for external signers.
Parameters
tx Data
transaction serialized for signing
sig Hash Type
signature hash algorithm selection
input Idx
what input to sign
input Amount
how many satoshis this input contains
prevout Script
the input's constraint script