PartiallySignedWitnessInput

data class PartiallySignedWitnessInput(    val txOut: TxOut,     val nonWitnessUtxo: Transaction?,     val sighashType: Int?,     val partialSigs: Map<PublicKey, ByteVector>,     val derivationPaths: Map<PublicKey, KeyPathWithMaster>,     val redeemScript: List<ScriptElt>?,     val witnessScript: List<ScriptElt>?,     val ripemd160: Set<ByteVector>,     val sha256: Set<ByteVector>,     val hash160: Set<ByteVector>,     val hash256: Set<ByteVector>,     val unknown: List<DataEntry>) : Input.WitnessInput

A partially signed segwit input. More signatures may need to be added before it can be finalized.

Constructors

Link copied to clipboard
fun PartiallySignedWitnessInput(    txOut: TxOut,     nonWitnessUtxo: Transaction?,     sighashType: Int?,     partialSigs: Map<PublicKey, ByteVector>,     derivationPaths: Map<PublicKey, KeyPathWithMaster>,     redeemScript: List<ScriptElt>?,     witnessScript: List<ScriptElt>?,     ripemd160: Set<ByteVector>,     sha256: Set<ByteVector>,     hash160: Set<ByteVector>,     hash256: Set<ByteVector>,     unknown: List<DataEntry>)

Properties

Link copied to clipboard
val amount: Satoshi
Link copied to clipboard
open override val derivationPaths: Map<PublicKey, KeyPathWithMaster>

Derivation paths used for the signatures.

Link copied to clipboard
open override val hash160: Set<ByteVector>

Hash160 preimages (e.g. for miniscript hash challenges).

Link copied to clipboard
open override val hash256: Set<ByteVector>

Hash256 preimages (e.g. for miniscript hash challenges).

Link copied to clipboard
open override val nonWitnessUtxo: Transaction?

Non-witness utxo, used when spending non-segwit outputs (may also be included when spending segwit outputs).

Link copied to clipboard
open override val partialSigs: Map<PublicKey, ByteVector>

Signatures as would be pushed to the stack from a scriptSig or witness.

Link copied to clipboard
open override val redeemScript: List<ScriptElt>?

Redeem script for this input (when using p2sh).

Link copied to clipboard
open override val ripemd160: Set<ByteVector>

RipeMD160 preimages (e.g. for miniscript hash challenges).

Link copied to clipboard
open override val scriptSig: List<ScriptElt>? = null

Fully constructed scriptSig with signatures and any other scripts necessary for the input to pass validation.

Link copied to clipboard
open override val scriptWitness: ScriptWitness? = null

Fully constructed scriptWitness with signatures and any other scripts necessary for the input to pass validation.

Link copied to clipboard
open override val sha256: Set<ByteVector>

Sha256 preimages (e.g. for miniscript hash challenges).

Link copied to clipboard
open override val sighashType: Int?

Sighash type to be used when producing signatures for this output.

Link copied to clipboard
open override val txOut: TxOut
Link copied to clipboard
open override val unknown: List<DataEntry>

(optional) Unknown global entries.

Link copied to clipboard
open override val witnessScript: List<ScriptElt>?

Witness script for this input (when using p2wsh).

Link copied to clipboard
open override val witnessUtxo: TxOut?

Witness utxo, used when spending segwit outputs.