Package org.bitcoinj.signers
Class CustomTransactionSigner
- java.lang.Object
 - 
- org.bitcoinj.signers.CustomTransactionSigner
 
 
- 
- All Implemented Interfaces:
 TransactionSigner
public abstract class CustomTransactionSigner extends java.lang.Object implements TransactionSigner
This signer may be used as a template for creating custom multisig transaction signers.
Concrete implementations have to implement
getSignature(Sha256Hash, List)method returning a signature and a public key of the keypair used to created that signature. It's up to custom implementation where to locate signatures: it may be a network connection, some local API or something else. 
- 
- 
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCustomTransactionSigner.SignatureAndKey- 
Nested classes/interfaces inherited from interface org.bitcoinj.signers.TransactionSigner
TransactionSigner.MissingSignatureException, TransactionSigner.ProposedTransaction 
 - 
 
- 
Constructor Summary
Constructors Constructor Description CustomTransactionSigner() 
- 
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract CustomTransactionSigner.SignatureAndKeygetSignature(Sha256Hash sighash, java.util.List<ChildNumber> derivationPath)booleanisReady()Returns true if this signer is ready to be used.booleansignInputs(TransactionSigner.ProposedTransaction propTx, KeyBag keyBag)Signs given transaction's inputs. 
 - 
 
- 
- 
Method Detail
- 
isReady
public boolean isReady()
Description copied from interface:TransactionSignerReturns true if this signer is ready to be used.- Specified by:
 isReadyin interfaceTransactionSigner
 
- 
signInputs
public boolean signInputs(TransactionSigner.ProposedTransaction propTx, KeyBag keyBag)
Description copied from interface:TransactionSignerSigns 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:
 signInputsin interfaceTransactionSigner
 
- 
getSignature
protected abstract CustomTransactionSigner.SignatureAndKey getSignature(Sha256Hash sighash, java.util.List<ChildNumber> derivationPath)
 
 - 
 
 -