hash For Signing
fun hashForSigning( tx: Transaction, inputIndex: Int, previousOutputScript: ByteArray, sighashType: Int): ByteArray
Content copied to clipboard
hash a tx for signing (pre-segwit)
Return
a hash which can be used to sign the referenced tx input
Parameters
tx
input transaction
input Index
index of the tx input that is being processed
previous Output Script
public key script of the output claimed by this tx input
sighash Type
signature hash type
fun hashForSigning( tx: Transaction, inputIndex: Int, previousOutputScript: ByteArray, sighashType: Int, amount: Satoshi, signatureVersion: Int): ByteArray
Content copied to clipboard
fun hashForSigning( tx: Transaction, inputIndex: Int, previousOutputScript: List<ScriptElt>, sighashType: Int, amount: Satoshi, signatureVersion: Int): ByteArray
Content copied to clipboard
hash a tx for signing
Return
a hash which can be used to sign the referenced tx input
Parameters
tx
input transaction
input Index
index of the tx input that is being processed
previous Output Script
public key script of the output claimed by this tx input
sighash Type
signature hash type
amount
amount of the output claimed by this input