updateNonWitnessInput

fun updateNonWitnessInput(    inputTx: Transaction,     outputIndex: Int,     redeemScript: List<ScriptElt>? = null,     sighashType: Int? = null,     derivationPaths: Map<PublicKey, KeyPathWithMaster> = mapOf()): Either<UpdateFailure, Psbt>

Implements the PSBT updater role; adds information about a given non-segwit utxo.

Return

psbt with the matching input updated.

Parameters

inputTx

transaction containing the utxo.

outputIndex

index of the utxo in the inputTx.

redeemScript

redeem script if known and applicable (when using p2sh).

sighashType

sighash type if one should be specified.

derivationPaths

derivation paths for keys used by this utxo.