Interface KeyChainFactory

  • All Known Implementing Classes:
    DefaultKeyChainFactory

    public interface KeyChainFactory
    Factory interface for creation keychains while de-serializing a wallet.
    • Method Detail

      • makeKeyChain

        DeterministicKeyChain makeKeyChain​(DeterministicSeed seed,
                                           KeyCrypter crypter,
                                           boolean isMarried,
                                           ScriptType outputScriptType,
                                           java.util.List<ChildNumber> accountPath)
        Make a keychain (but not a watching one) with the specified account path
        Parameters:
        seed - the seed
        crypter - the encrypted/decrypter
        isMarried - whether the keychain is leading in a marriage
        outputScriptType - type of addresses (aka output scripts) to generate for receiving
        accountPath - account path to generate receiving addresses on
      • makeWatchingKeyChain

        DeterministicKeyChain makeWatchingKeyChain​(DeterministicKey accountKey,
                                                   boolean isFollowingKey,
                                                   boolean isMarried,
                                                   ScriptType outputScriptType)
                                            throws UnreadableWalletException
        Make a watching keychain.

        isMarried and isFollowingKey must not be true at the same time.

        Parameters:
        accountKey - the account extended public key
        isFollowingKey - whether the keychain is following in a marriage
        isMarried - whether the keychain is leading in a marriage
        outputScriptType - type of addresses (aka output scripts) to generate for watching
        Throws:
        UnreadableWalletException
      • makeSpendingKeyChain

        DeterministicKeyChain makeSpendingKeyChain​(DeterministicKey accountKey,
                                                   boolean isMarried,
                                                   ScriptType outputScriptType)
                                            throws UnreadableWalletException
        Make a spending keychain.

        isMarried and isFollowingKey must not be true at the same time.

        Parameters:
        accountKey - the account extended public key
        isMarried - whether the keychain is leading in a marriage
        outputScriptType - type of addresses (aka output scripts) to generate for spending
        Throws:
        UnreadableWalletException