public interface KeyChainFactory
Modifier and Type | Method and Description |
---|---|
DeterministicKeyChain |
makeKeyChain(Protos.Key key,
Protos.Key firstSubKey,
DeterministicSeed seed,
KeyCrypter crypter,
boolean isMarried,
Script.ScriptType outputScriptType,
com.google.common.collect.ImmutableList<ChildNumber> accountPath)
Make a keychain (but not a watching one) with the specified account path
|
DeterministicKeyChain |
makeSpendingKeyChain(Protos.Key key,
Protos.Key firstSubKey,
DeterministicKey accountKey,
boolean isMarried,
Script.ScriptType outputScriptType)
Make a spending keychain.
|
DeterministicKeyChain |
makeWatchingKeyChain(Protos.Key key,
Protos.Key firstSubKey,
DeterministicKey accountKey,
boolean isFollowingKey,
boolean isMarried,
Script.ScriptType outputScriptType)
Make a watching keychain.
|
DeterministicKeyChain makeKeyChain(Protos.Key key, Protos.Key firstSubKey, DeterministicSeed seed, KeyCrypter crypter, boolean isMarried, Script.ScriptType outputScriptType, com.google.common.collect.ImmutableList<ChildNumber> accountPath)
key
- the protobuf for the root keyfirstSubKey
- the protobuf for the first child key (normally the parent of the external subchain)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 onDeterministicKeyChain makeWatchingKeyChain(Protos.Key key, Protos.Key firstSubKey, DeterministicKey accountKey, boolean isFollowingKey, boolean isMarried, Script.ScriptType outputScriptType) throws UnreadableWalletException
isMarried and isFollowingKey must not be true at the same time.
key
- the protobuf for the account keyfirstSubKey
- the protobuf for the first child key (normally the parent of the external subchain)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
DeterministicKeyChain makeSpendingKeyChain(Protos.Key key, Protos.Key firstSubKey, DeterministicKey accountKey, boolean isMarried, Script.ScriptType outputScriptType) throws UnreadableWalletException
isMarried and isFollowingKey must not be true at the same time.
key
- the protobuf for the account keyfirstSubKey
- the protobuf for the first child key (normally the parent of the external subchain)accountKey
- the account extended public keyisMarried
- whether the keychain is leading in a marriageoutputScriptType
- type of addresses (aka output scripts) to generate for spendingUnreadableWalletException