sign Input
fun signInput( tx: Transaction, inputIndex: Int, previousOutputScript: ByteArray, sighashType: Int, amount: Satoshi, signatureVersion: Int, privateKey: PrivateKey): ByteArray
Content copied to clipboard
fun signInput( tx: Transaction, inputIndex: Int, previousOutputScript: List<ScriptElt>, sighashType: Int, amount: Satoshi, signatureVersion: Int, privateKey: PrivateKey): ByteArray
Content copied to clipboard
sign a tx input
Return
the encoded signature of this tx for this specific 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, which will be appended to the signature
amount
amount of the output claimed by this tx input
signature Version
signature version (1: segwit, 0: pre-segwit)
private Key
private key
fun signInput( tx: Transaction, inputIndex: Int, previousOutputScript: ByteVector, sighashType: Int, amount: Satoshi, signatureVersion: Int, privateKey: PrivateKey): ByteArray
Content copied to clipboard
fun signInput( tx: Transaction, inputIndex: Int, previousOutputScript: ByteVector, sighashType: Int, privateKey: PrivateKey): ByteArray
Content copied to clipboard
fun signInput( tx: Transaction, inputIndex: Int, previousOutputScript: List<ScriptElt>, sighashType: Int, privateKey: PrivateKey): ByteArray
Content copied to clipboard
fun signInput( tx: Transaction, inputIndex: Int, previousOutputScript: ByteArray, sighashType: Int, privateKey: PrivateKey): ByteArray
Content copied to clipboard
Return
the encoded signature of this tx for this specific 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, which will be appended to the signature
private Key
private key