Package org.consensusj.bitcoinj.signing
Class HDKeychainSigner
java.lang.Object
org.consensusj.bitcoinj.signing.HDKeychainSigner
- All Implemented Interfaces:
BaseTransactionSigner
,TransactionSigner
A "signing wallet" that uses a
DeterministicKeyChain
to
sign SigningRequest
s.-
Field Summary
Fields inherited from interface org.consensusj.bitcoinj.signing.BaseTransactionSigner
log
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionOptional
<org.bitcoinj.crypto.ECKey> keyForHash
(byte[] pubKeyHash) Return the signing key for an input, if availableOptional
<org.bitcoinj.crypto.ECKey> keyForInput
(TransactionInputData input) Return the signing key for an input, if availableOptional
<org.bitcoinj.crypto.ECKey> pubKeyFromPubKeyHash
(byte[] pubKeyHash) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.consensusj.bitcoinj.signing.BaseTransactionSigner
addSignedInput, pubKeyForInput, signTransaction, verify, verifyInput
-
Constructor Details
-
HDKeychainSigner
-
-
Method Details
-
keyForInput
Return the signing key for an input, if available- Specified by:
keyForInput
in interfaceBaseTransactionSigner
- Parameters:
input
- Transaction input data- Returns:
- Signing key, if available,
Optional.empty()
otherwise.
-
keyForHash
Return the signing key for an input, if available- Parameters:
pubKeyHash
- pubKeyHash- Returns:
- Signing key, if available,
Optional.empty()
otherwise.
-
pubKeyFromPubKeyHash
-