signInput

fun signInput(    tx: Transaction,     inputIndex: Int,     previousOutputScript: ByteArray,     sighashType: Int,     amount: Satoshi,     signatureVersion: Int,     privateKey: PrivateKey): ByteArray
fun signInput(    tx: Transaction,     inputIndex: Int,     previousOutputScript: List<ScriptElt>,     sighashType: Int,     amount: Satoshi,     signatureVersion: Int,     privateKey: PrivateKey): ByteArray

sign a tx input

Return

the encoded signature of this tx for this specific tx input

Parameters

tx

input transaction

inputIndex

index of the tx input that is being processed

previousOutputScript

public key script of the output claimed by this tx input

sighashType

signature hash type, which will be appended to the signature

amount

amount of the output claimed by this tx input

signatureVersion

signature version (1: segwit, 0: pre-segwit)

privateKey

private key


fun signInput(    tx: Transaction,     inputIndex: Int,     previousOutputScript: ByteVector,     sighashType: Int,     amount: Satoshi,     signatureVersion: Int,     privateKey: PrivateKey): ByteArray
fun signInput(    tx: Transaction,     inputIndex: Int,     previousOutputScript: ByteVector,     sighashType: Int,     privateKey: PrivateKey): ByteArray
fun signInput(    tx: Transaction,     inputIndex: Int,     previousOutputScript: List<ScriptElt>,     sighashType: Int,     privateKey: PrivateKey): ByteArray


fun signInput(    tx: Transaction,     inputIndex: Int,     previousOutputScript: ByteArray,     sighashType: Int,     privateKey: PrivateKey): ByteArray

Return

the encoded signature of this tx for this specific tx input

Parameters

tx

input transaction

inputIndex

index of the tx input that is being processed

previousOutputScript

public key script of the output claimed by this tx input

sighashType

signature hash type, which will be appended to the signature

privateKey

private key