Skip to content

Commit

Permalink
KeyChainGroup: Add constructor with given DeterministicKeyChain
Browse files Browse the repository at this point in the history
  • Loading branch information
ManfredKarrer authored and oscarguindzberg committed Dec 20, 2018
1 parent 9b999c8 commit 09ae4b1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions core/src/main/java/org/bitcoinj/wallet/KeyChainGroup.java
Expand Up @@ -84,6 +84,13 @@ public KeyChainGroup(NetworkParameters params, DeterministicSeed seed) {
this(params, null, ImmutableList.of(new DeterministicKeyChain(seed)), null, null);
}

/**
* Creates a keychain group with the given chain.
*/
public KeyChainGroup(NetworkParameters params, DeterministicKeyChain chain) {
this(params, null, ImmutableList.of(chain), null, null);
}

/**
* Creates a keychain group with no basic chain, and an HD chain that is watching the given watching key.
* This HAS to be an account key as returned by {@link DeterministicKeyChain#getWatchingKey()}.
Expand Down

0 comments on commit 09ae4b1

Please sign in to comment.