public class DefaultKeyChainFactory extends java.lang.Object implements KeyChainFactory
Constructor and Description |
---|
DefaultKeyChainFactory() |
Modifier and Type | Method and 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 path
|
DeterministicKeyChain |
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.
|
public DeterministicKeyChain makeKeyChain(DeterministicSeed seed, KeyCrypter crypter, boolean isMarried, Script.ScriptType outputScriptType, java.util.List<ChildNumber> accountPath)
KeyChainFactory
makeKeyChain
in interface KeyChainFactory
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 onpublic DeterministicKeyChain makeWatchingKeyChain(DeterministicKey accountKey, boolean isFollowingKey, boolean isMarried, Script.ScriptType outputScriptType) throws UnreadableWalletException
KeyChainFactory
isMarried and isFollowingKey must not be true at the same time.
makeWatchingKeyChain
in interface KeyChainFactory
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 watchingUnreadableWalletException
public DeterministicKeyChain makeSpendingKeyChain(DeterministicKey accountKey, boolean isMarried, Script.ScriptType outputScriptType) throws UnreadableWalletException
KeyChainFactory
isMarried and isFollowingKey must not be true at the same time.
makeSpendingKeyChain
in interface KeyChainFactory
accountKey
- the account extended public keyisMarried
- whether the keychain is leading in a marriageoutputScriptType
- type of addresses (aka output scripts) to generate for spendingUnreadableWalletException