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.
Modifier and Type | Class and Description |
---|---|
class |
CustomTransactionSigner.SignatureAndKey |
TransactionSigner.MissingSignatureException, TransactionSigner.ProposedTransaction
Constructor and Description |
---|
CustomTransactionSigner() |
Modifier and Type | Method and Description |
---|---|
protected abstract CustomTransactionSigner.SignatureAndKey |
getSignature(Sha256Hash sighash,
java.util.List<ChildNumber> derivationPath) |
boolean |
isReady()
Returns true if this signer is ready to be used.
|
boolean |
signInputs(TransactionSigner.ProposedTransaction propTx,
KeyBag keyBag)
Signs given transaction's inputs.
|
public boolean isReady()
TransactionSigner
isReady
in interface TransactionSigner
public boolean signInputs(TransactionSigner.ProposedTransaction propTx, KeyBag keyBag)
TransactionSigner
signInputs
in interface TransactionSigner
protected abstract CustomTransactionSigner.SignatureAndKey getSignature(Sha256Hash sighash, java.util.List<ChildNumber> derivationPath)