DeterministicKeyChain: remove unused parameter baseKey from initializeHierarchyUnencrypted()

This commit is contained in:
micheal swiggs-malmevik 2023-02-22 16:35:28 +01:00 committed by Andreas Schildbach
parent 6e8435e129
commit 6298651929

View file

@ -362,7 +362,7 @@ public class DeterministicKeyChain implements EncryptableKeyChain {
hierarchy = new DeterministicHierarchy(key);
this.accountPath = key.getPath();
this.outputScriptType = outputScriptType;
initializeHierarchyUnencrypted(key);
initializeHierarchyUnencrypted();
this.isFollowing = isFollowing;
}
@ -393,7 +393,7 @@ public class DeterministicKeyChain implements EncryptableKeyChain {
for (HDPath path : getAccountPath().ancestors(true)) {
basicKeyChain.importKey(hierarchy.get(path, false, true));
}
initializeHierarchyUnencrypted(rootKey);
initializeHierarchyUnencrypted();
}
// Else...
// We can't initialize ourselves with just an encrypted seed, so we expected deserialization code to do the
@ -463,7 +463,7 @@ public class DeterministicKeyChain implements EncryptableKeyChain {
// Derives the account path keys and inserts them into the basic key chain. This is important to preserve their
// order for serialization, amongst other things.
private void initializeHierarchyUnencrypted(DeterministicKey baseKey) {
private void initializeHierarchyUnencrypted() {
externalParentKey = hierarchy.deriveChild(getAccountPath(), false, false, ChildNumber.ZERO);
internalParentKey = hierarchy.deriveChild(getAccountPath(), false, false, ChildNumber.ONE);
basicKeyChain.importKey(externalParentKey);