mirror of
https://github.com/sparrowwallet/drongo.git
synced 2024-12-26 01:56:44 +00:00
set lower bound on bip47 account index
This commit is contained in:
parent
38deacaeec
commit
d24243ce20
1 changed files with 1 additions and 1 deletions
|
@ -96,7 +96,7 @@ public class KeyDerivation {
|
||||||
}
|
}
|
||||||
|
|
||||||
public static List<ChildNumber> getBip47Derivation(int account) {
|
public static List<ChildNumber> getBip47Derivation(int account) {
|
||||||
return List.of(new ChildNumber(47, true), new ChildNumber(Network.get() == Network.MAINNET ? 0 : 1, true), new ChildNumber(account, true));
|
return List.of(new ChildNumber(47, true), new ChildNumber(Network.get() == Network.MAINNET ? 0 : 1, true), new ChildNumber(Math.max(0, account), true));
|
||||||
}
|
}
|
||||||
|
|
||||||
public KeyDerivation copy() {
|
public KeyDerivation copy() {
|
||||||
|
|
Loading…
Reference in a new issue