finalizeNonWitnessInput

fun finalizeNonWitnessInput(outPoint: OutPoint, scriptSig: List<ScriptElt>): Either<UpdateFailure, Psbt>

Implements the PSBT finalizer role: finalizes a given non-segwit input. This will clear all fields from the input except the utxo, scriptSig and unknown entries.

Return

a psbt with the given input finalized.

Parameters

outPoint

input that should be finalized.

scriptSig

signature script.


fun finalizeNonWitnessInput(inputIndex: Int, scriptSig: List<ScriptElt>): Either<UpdateFailure, Psbt>

Implements the PSBT finalizer role: finalizes a given non-segwit input. This will clear all fields from the input except the utxo, scriptSig and unknown entries.

Return

a psbt with the given input finalized.

Parameters

inputIndex

index of the input that should be finalized.

scriptSig

signature script.