Input

sealed class Input

A PSBT input. A valid PSBT must contain one such input per input of the [Global.tx].

Types

Link copied to clipboard
data class FinalizedInputWithoutUtxo(    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

A fully signed input without details about the utxo. Input finalizers should keep the utxo to allow transaction extractors to verify the final network serialized transaction, but it's not mandatory, so we may not have it available when parsing psbt inputs.

Link copied to clipboard
sealed class NonWitnessInput : Input

An input spending a non-segwit output.

Link copied to clipboard
data class PartiallySignedInputWithoutUtxo(    val sighashType: Int?,     val derivationPaths: Map<PublicKey, KeyPathWithMaster>,     val ripemd160: Set<ByteVector>,     val sha256: Set<ByteVector>,     val hash160: Set<ByteVector>,     val hash256: Set<ByteVector>,     val unknown: List<DataEntry>) : Input

A partially signed input without details about the utxo. More signatures may need to be added before it can be finalized.

Link copied to clipboard
sealed class WitnessInput : Input

An input spending a segwit output.

Properties

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 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
abstract val witnessUtxo: TxOut?

Witness utxo, used when spending segwit outputs.

Inheritors

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard