Package 

Class SignOptions

  • 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.

    • Method Detail

      • getTrustWitnessUtxo

         final Boolean getTrustWitnessUtxo()

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

      • setTrustWitnessUtxo

         final Unit setTrustWitnessUtxo(Boolean trustWitnessUtxo)

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

      • 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.