public class MissingSigResolutionSigner extends StatelessTransactionSigner
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.TransactionSigner.MissingSignatureException, TransactionSigner.ProposedTransaction
Modifier and Type | Field and Description |
---|---|
Wallet.MissingSigsMode |
missingSigsMode |
Constructor and Description |
---|
MissingSigResolutionSigner() |
MissingSigResolutionSigner(Wallet.MissingSigsMode missingSigsMode) |
Modifier and Type | Method and 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.
|
deserialize, serialize
public Wallet.MissingSigsMode missingSigsMode
public MissingSigResolutionSigner()
public MissingSigResolutionSigner(Wallet.MissingSigsMode missingSigsMode)
public boolean isReady()
TransactionSigner
public boolean signInputs(TransactionSigner.ProposedTransaction propTx, KeyBag keyBag)
TransactionSigner
Copyright © 2016. All rights reserved.