mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2025-02-25 07:07:39 +01:00
Fix key derivation
This commit is contained in:
parent
3dfaf54e28
commit
e2ebe69aae
1 changed files with 1 additions and 1 deletions
|
@ -95,7 +95,7 @@ public class DeterministicHierarchy implements Serializable {
|
|||
throw new IllegalArgumentException(String.format("No key found for %s path %s.",
|
||||
relativePath ? "relative" : "absolute", HDUtils.formatPath(path)));
|
||||
checkArgument(absolutePath.size() > 0, "Can't derive the master key: nothing to derive from.");
|
||||
DeterministicKey parent = get(absolutePath.subList(0, absolutePath.size() - 1), relativePath, true);
|
||||
DeterministicKey parent = get(absolutePath.subList(0, absolutePath.size() - 1), false, true);
|
||||
putKey(HDKeyDerivation.deriveChildKey(parent, absolutePath.get(absolutePath.size() - 1)));
|
||||
}
|
||||
return keys.get(absolutePath);
|
||||
|
|
Loading…
Add table
Reference in a new issue