update Witness Input Tx
fun updateWitnessInputTx( inputTx: Transaction, outputIndex: Int, redeemScript: List<ScriptElt>? = null, witnessScript: List<ScriptElt>? = null, sighashType: Int? = null, derivationPaths: Map<PublicKey, KeyPathWithMaster> = mapOf()): Either<UpdateFailure, Psbt>
Content copied to clipboard
Implements the PSBT updater role; adds information about a given segwit utxo. Note that we always fill the nonWitnessUtxo (see https://github.com/bitcoin/bips/blob/master/bip-0174.mediawiki#cite_note-7).
Return
psbt with the matching input updated.
Parameters
input Tx
transaction containing the utxo.
output Index
index of the utxo in the inputTx.
redeem Script
redeem script if known and applicable (when using p2sh-embedded segwit).
witness Script
witness script if known and applicable (when using p2wsh).
sighash Type
sighash type if one should be specified.
derivation Paths
derivation paths for keys used by this utxo.