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 SummaryNested Classes Modifier and Type Class Description static classCustomTransactionSigner.SignatureAndKey- 
Nested classes/interfaces inherited from interface org.bitcoinj.signers.TransactionSignerTransactionSigner.MissingSignatureException, TransactionSigner.ProposedTransaction
 
- 
 - 
Constructor SummaryConstructors Constructor Description CustomTransactionSigner()
 - 
Method SummaryAll 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- 
isReadypublic boolean isReady() Description copied from interface:TransactionSignerReturns true if this signer is ready to be used.- Specified by:
- isReadyin interface- TransactionSigner
 
 - 
signInputspublic 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 interface- TransactionSigner
 
 - 
getSignatureprotected abstract CustomTransactionSigner.SignatureAndKey getSignature(Sha256Hash sighash, java.util.List<ChildNumber> derivationPath) 
 
- 
 
-