Package org.bitcoinj.wallet
Class DefaultKeyChainFactory
- java.lang.Object
-
- org.bitcoinj.wallet.DefaultKeyChainFactory
-
- All Implemented Interfaces:
KeyChainFactory
public class DefaultKeyChainFactory extends java.lang.Object implements KeyChainFactory
Default factory for creating keychains while de-serializing.
-
-
Constructor Summary
Constructors Constructor Description DefaultKeyChainFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DeterministicKeyChain
makeKeyChain(DeterministicSeed seed, KeyCrypter crypter, boolean isMarried, Script.ScriptType outputScriptType, java.util.List<ChildNumber> accountPath)
Make a keychain (but not a watching one) with the specified account pathDeterministicKeyChain
makeSpendingKeyChain(DeterministicKey accountKey, boolean isMarried, Script.ScriptType outputScriptType)
Make a spending keychain.DeterministicKeyChain
makeWatchingKeyChain(DeterministicKey accountKey, boolean isFollowingKey, boolean isMarried, Script.ScriptType outputScriptType)
Make a watching keychain.
-
-
-
Method Detail
-
makeKeyChain
public DeterministicKeyChain makeKeyChain(DeterministicSeed seed, KeyCrypter crypter, boolean isMarried, Script.ScriptType outputScriptType, java.util.List<ChildNumber> accountPath)
Description copied from interface:KeyChainFactory
Make a keychain (but not a watching one) with the specified account path- Specified by:
makeKeyChain
in interfaceKeyChainFactory
- Parameters:
seed
- the seedcrypter
- the encrypted/decrypterisMarried
- whether the keychain is leading in a marriageoutputScriptType
- type of addresses (aka output scripts) to generate for receivingaccountPath
- account path to generate receiving addresses on
-
makeWatchingKeyChain
public DeterministicKeyChain makeWatchingKeyChain(DeterministicKey accountKey, boolean isFollowingKey, boolean isMarried, Script.ScriptType outputScriptType) throws UnreadableWalletException
Description copied from interface:KeyChainFactory
Make a watching keychain.isMarried and isFollowingKey must not be true at the same time.
- Specified by:
makeWatchingKeyChain
in interfaceKeyChainFactory
- Parameters:
accountKey
- the account extended public keyisFollowingKey
- whether the keychain is following in a marriageisMarried
- whether the keychain is leading in a marriageoutputScriptType
- type of addresses (aka output scripts) to generate for watching- Throws:
UnreadableWalletException
-
makeSpendingKeyChain
public DeterministicKeyChain makeSpendingKeyChain(DeterministicKey accountKey, boolean isMarried, Script.ScriptType outputScriptType) throws UnreadableWalletException
Description copied from interface:KeyChainFactory
Make a spending keychain.isMarried and isFollowingKey must not be true at the same time.
- Specified by:
makeSpendingKeyChain
in interfaceKeyChainFactory
- Parameters:
accountKey
- the account extended public keyisMarried
- whether the keychain is leading in a marriageoutputScriptType
- type of addresses (aka output scripts) to generate for spending- Throws:
UnreadableWalletException
-
-