prepare For Signing
fun prepareForSigning( tx: Transaction, inputIndex: Int, previousOutputScript: ByteArray, sighashType: Int): Transaction
Content copied to clipboard
prepare a transaction for signing a specific input
Return
a new transaction with proper inputs and outputs according to SIGHASH_TYPE rules
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