public abstract class CustomTransactionSigner extends StatelessTransactionSigner
This signer may be used as a template for creating custom multisig transaction signers.
Concrete implementations have to implement getSignature(org.bitcoinj.core.Sha256Hash, java.util.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,
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.
|
deserialize, serialize
public boolean isReady()
TransactionSigner
public boolean signInputs(TransactionSigner.ProposedTransaction propTx, KeyBag keyBag)
TransactionSigner
protected abstract CustomTransactionSigner.SignatureAndKey getSignature(Sha256Hash sighash, List<ChildNumber> derivationPath)
Copyright © 2016. All rights reserved.