SignOptions

data class SignOptions(    var trustWitnessUtxo: Boolean,     var assumeHeight: UInt?,     var allowAllSighashes: Boolean,     var removePartialSigs: Boolean,     var tryFinalize: Boolean,     var signWithTapInternalKey: Boolean,     var allowGrinding: Boolean)

Options for a software signer.

Adjust the behavior of our software signers and the way a transaction is finalized.

Constructors

Link copied to clipboard
fun SignOptions(    trustWitnessUtxo: Boolean,     assumeHeight: UInt?,     allowAllSighashes: Boolean,     removePartialSigs: Boolean,     tryFinalize: Boolean,     signWithTapInternalKey: Boolean,     allowGrinding: Boolean)

Properties

Link copied to clipboard
var allowAllSighashes: Boolean

Whether the signer should use the sighash_type set in the PSBT when signing, no matter what its value is. Defaults to false.

Link copied to clipboard
var allowGrinding: Boolean

Whether we should grind ECDSA signature to ensure signing with low r or not. Defaults to true.

Link copied to clipboard
var assumeHeight: UInt?

Whether the wallet should assume a specific height has been reached when trying to finalize a transaction.

Link copied to clipboard
var removePartialSigs: Boolean

Whether to remove partial signatures from the PSBT inputs while finalizing PSBT. Defaults to true.

Link copied to clipboard
var signWithTapInternalKey: Boolean

Whether we should try to sign a taproot transaction with the taproot internal key or not. This option is ignored if we're signing a non-taproot PSBT. Defaults to true.

Link copied to clipboard
var trustWitnessUtxo: Boolean

Whether the signer should trust the witness_utxo, if the non_witness_utxo hasn't been provided. Defaults to false.

Link copied to clipboard
var tryFinalize: Boolean

Whether to try finalizing the PSBT after the inputs are signed. Defaults to true.