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 DeterministicKeyChainmakeKeyChain(DeterministicSeed seed, KeyCrypter crypter, ScriptType outputScriptType, java.util.List<ChildNumber> accountPath)Make a keychain (but not a watching one) with the specified account pathDeterministicKeyChainmakeSpendingKeyChain(DeterministicKey accountKey, ScriptType outputScriptType)Make a spending keychain.DeterministicKeyChainmakeWatchingKeyChain(DeterministicKey accountKey, ScriptType outputScriptType)Make a watching keychain.- 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait 
- 
Methods inherited from interface org.bitcoinj.wallet.KeyChainFactory
makeKeyChain, makeSpendingKeyChain, makeWatchingKeyChain 
 - 
 
 - 
 
- 
- 
Method Detail
- 
makeKeyChain
public DeterministicKeyChain makeKeyChain(DeterministicSeed seed, KeyCrypter crypter, ScriptType outputScriptType, java.util.List<ChildNumber> accountPath)
Description copied from interface:KeyChainFactoryMake a keychain (but not a watching one) with the specified account path- Specified by:
 makeKeyChainin interfaceKeyChainFactory- Parameters:
 seed- the seedcrypter- the encrypted/decrypteroutputScriptType- type of addresses (aka output scripts) to generate for receivingaccountPath- account path to generate receiving addresses on
 
- 
makeWatchingKeyChain
public DeterministicKeyChain makeWatchingKeyChain(DeterministicKey accountKey, ScriptType outputScriptType) throws UnreadableWalletException
Description copied from interface:KeyChainFactoryMake a watching keychain.isMarried and isFollowingKey must not be true at the same time.
- Specified by:
 makeWatchingKeyChainin interfaceKeyChainFactory- Parameters:
 accountKey- the account extended public keyoutputScriptType- type of addresses (aka output scripts) to generate for watching- Throws:
 UnreadableWalletException
 
- 
makeSpendingKeyChain
public DeterministicKeyChain makeSpendingKeyChain(DeterministicKey accountKey, ScriptType outputScriptType) throws UnreadableWalletException
Description copied from interface:KeyChainFactoryMake a spending keychain.isMarried and isFollowingKey must not be true at the same time.
- Specified by:
 makeSpendingKeyChainin interfaceKeyChainFactory- Parameters:
 accountKey- the account extended public keyoutputScriptType- type of addresses (aka output scripts) to generate for spending- Throws:
 UnreadableWalletException
 
 - 
 
 -