Package org.bitcoinj.signers
Class MissingSigResolutionSigner
java.lang.Object
org.bitcoinj.signers.MissingSigResolutionSigner
- All Implemented Interfaces:
TransactionSigner
This transaction signer resolves missing signatures in accordance with the given
Wallet.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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isReady()
Returns true if this signer is ready to be used.boolean
signInputs
(TransactionSigner.ProposedTransaction propTx, KeyBag keyBag) Signs given transaction's inputs.
-
Constructor Details
-
MissingSigResolutionSigner
public MissingSigResolutionSigner() -
MissingSigResolutionSigner
-
-
Method Details
-
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
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
-