-
- All Implemented Interfaces:
public final class SignOptions
Options for a software signer.
Adjust the behavior of our software signers and the way a transaction is finalized.
-
-
Field Summary
Fields Modifier and Type Field Description private Boolean
trustWitnessUtxo
private UInt
assumeHeight
private Boolean
allowAllSighashes
private Boolean
removePartialSigs
private Boolean
tryFinalize
private Boolean
signWithTapInternalKey
private Boolean
allowGrinding
-
Method Summary
Modifier and Type Method Description final Boolean
getTrustWitnessUtxo()
Whether the signer should trust the witness_utxo
, if thenon_witness_utxo
hasn't been provided.final Unit
setTrustWitnessUtxo(Boolean trustWitnessUtxo)
Whether the signer should trust the witness_utxo
, if thenon_witness_utxo
hasn't been provided.final UInt
getAssumeHeight()
Whether the wallet should assume a specific height has been reached when trying to finalize a transaction. final Unit
setAssumeHeight(UInt assumeHeight)
Whether the wallet should assume a specific height has been reached when trying to finalize a transaction. final Boolean
getAllowAllSighashes()
Whether the signer should use the sighash_type set in the PSBT when signing, no matter what its value is. final Unit
setAllowAllSighashes(Boolean allowAllSighashes)
Whether the signer should use the sighash_type set in the PSBT when signing, no matter what its value is. final Boolean
getRemovePartialSigs()
Whether to remove partial signatures from the PSBT inputs while finalizing PSBT. final Unit
setRemovePartialSigs(Boolean removePartialSigs)
Whether to remove partial signatures from the PSBT inputs while finalizing PSBT. final Boolean
getTryFinalize()
Whether to try finalizing the PSBT after the inputs are signed. final Unit
setTryFinalize(Boolean tryFinalize)
Whether to try finalizing the PSBT after the inputs are signed. final Boolean
getSignWithTapInternalKey()
Whether we should try to sign a taproot transaction with the taproot internal key or not. final Unit
setSignWithTapInternalKey(Boolean signWithTapInternalKey)
Whether we should try to sign a taproot transaction with the taproot internal key or not. final Boolean
getAllowGrinding()
Whether we should grind ECDSA signature to ensure signing with low r or not. final Unit
setAllowGrinding(Boolean allowGrinding)
Whether we should grind ECDSA signature to ensure signing with low r or not. -
-
Method Detail
-
getTrustWitnessUtxo
final Boolean getTrustWitnessUtxo()
Whether the signer should trust the
witness_utxo
, if thenon_witness_utxo
hasn't been provided. Defaults tofalse
.
-
setTrustWitnessUtxo
final Unit setTrustWitnessUtxo(Boolean trustWitnessUtxo)
Whether the signer should trust the
witness_utxo
, if thenon_witness_utxo
hasn't been provided. Defaults tofalse
.
-
getAssumeHeight
final UInt getAssumeHeight()
Whether the wallet should assume a specific height has been reached when trying to finalize a transaction.
-
setAssumeHeight
final Unit setAssumeHeight(UInt assumeHeight)
Whether the wallet should assume a specific height has been reached when trying to finalize a transaction.
-
getAllowAllSighashes
final Boolean getAllowAllSighashes()
Whether the signer should use the sighash_type set in the PSBT when signing, no matter what its value is. Defaults to
false
.
-
setAllowAllSighashes
final Unit setAllowAllSighashes(Boolean allowAllSighashes)
Whether the signer should use the sighash_type set in the PSBT when signing, no matter what its value is. Defaults to
false
.
-
getRemovePartialSigs
final Boolean getRemovePartialSigs()
Whether to remove partial signatures from the PSBT inputs while finalizing PSBT. Defaults to
true
.
-
setRemovePartialSigs
final Unit setRemovePartialSigs(Boolean removePartialSigs)
Whether to remove partial signatures from the PSBT inputs while finalizing PSBT. Defaults to
true
.
-
getTryFinalize
final Boolean getTryFinalize()
Whether to try finalizing the PSBT after the inputs are signed. Defaults to
true
.
-
setTryFinalize
final Unit setTryFinalize(Boolean tryFinalize)
Whether to try finalizing the PSBT after the inputs are signed. Defaults to
true
.
-
getSignWithTapInternalKey
final Boolean getSignWithTapInternalKey()
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
.
-
setSignWithTapInternalKey
final Unit setSignWithTapInternalKey(Boolean signWithTapInternalKey)
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
.
-
getAllowGrinding
final Boolean getAllowGrinding()
Whether we should grind ECDSA signature to ensure signing with low r or not. Defaults to
true
.
-
setAllowGrinding
final Unit setAllowGrinding(Boolean allowGrinding)
Whether we should grind ECDSA signature to ensure signing with low r or not. Defaults to
true
.
-
-
-
-