WitnessInput

sealed class WitnessInput : Input

An input spending a segwit output.

Types

Link copied to clipboard
data class FinalizedWitnessInput(    val txOut: TxOut,     val nonWitnessUtxo: Transaction?,     val scriptWitness: ScriptWitness,     val scriptSig: 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 fully signed segwit input.

Link copied to clipboard
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.

Properties

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

Derivation paths used for the signatures.

Link copied to clipboard
abstract val hash160: Set<ByteVector>

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

Link copied to clipboard
abstract val hash256: Set<ByteVector>

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

Link copied to clipboard
abstract val nonWitnessUtxo: Transaction?

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

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

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

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

Redeem script for this input (when using p2sh).

Link copied to clipboard
abstract val ripemd160: Set<ByteVector>

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

Link copied to clipboard
abstract val scriptSig: List<ScriptElt>?

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

Link copied to clipboard
abstract val scriptWitness: ScriptWitness?

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

Link copied to clipboard
abstract val sha256: Set<ByteVector>

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

Link copied to clipboard
abstract val sighashType: Int?

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

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

(optional) Unknown global entries.

Link copied to clipboard
abstract 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.

Inheritors

Link copied to clipboard
Link copied to clipboard