Package org.bitcoinj.signers
Class MissingSigResolutionSigner
- java.lang.Object
-
- org.bitcoinj.signers.MissingSigResolutionSigner
-
- All Implemented Interfaces:
TransactionSigner
public class MissingSigResolutionSigner extends java.lang.Object implements TransactionSigner
This transaction signer resolves missing signatures in accordance with the givenWallet.MissingSigsMode
. If missingSigsMode is USE_OP_ZERO this signer does nothing assuming missing signatures are already presented in scriptSigs as OP_0. In MissingSigsMode.THROW mode this signer will throw an exception. It would be MissingSignatureException for P2SH or MissingPrivateKeyException for other transaction types.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.bitcoinj.signers.TransactionSigner
TransactionSigner.MissingSignatureException, TransactionSigner.ProposedTransaction
-
-
Constructor Summary
Constructors Constructor Description MissingSigResolutionSigner()
MissingSigResolutionSigner(Wallet.MissingSigsMode missingSigsMode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isReady()
Returns true if this signer is ready to be used.boolean
signInputs(TransactionSigner.ProposedTransaction propTx, KeyBag keyBag)
Signs given transaction's inputs.
-
-
-
Constructor Detail
-
MissingSigResolutionSigner
public MissingSigResolutionSigner()
-
MissingSigResolutionSigner
public MissingSigResolutionSigner(Wallet.MissingSigsMode missingSigsMode)
-
-
Method Detail
-
isReady
public boolean isReady()
Description copied from interface:TransactionSigner
Returns true if this signer is ready to be used.- Specified by:
isReady
in interfaceTransactionSigner
-
signInputs
public boolean signInputs(TransactionSigner.ProposedTransaction propTx, KeyBag keyBag)
Description copied from interface:TransactionSigner
Signs given transaction's inputs. Returns true if signer is compatible with given transaction (can do something meaningful with it). Otherwise this method returns false- Specified by:
signInputs
in interfaceTransactionSigner
-
-