public interface TransactionSigner
Implementations of this interface are intended to sign inputs of the given transaction. Given transaction may already be partially signed or somehow altered by other signers.
To make use of the signer, you need to add it into the wallet by
calling Wallet.addTransactionSigner(TransactionSigner)
. Signer will be serialized
along with the wallet data. In order for a wallet to recreate signer after deserialization, each signer
should have no-args constructor
Modifier and Type | Interface and Description |
---|---|
static class |
TransactionSigner.MissingSignatureException |
static class |
TransactionSigner.ProposedTransaction
This class wraps transaction proposed to complete keeping a metadata that may be updated, used and effectively
shared by transaction signers.
|
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.
|
boolean isReady()
boolean signInputs(TransactionSigner.ProposedTransaction propTx, KeyBag keyBag)