mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2024-12-25 13:16:44 +00:00
add bisq segwit misderivation to mnemonic wallet discovery
This commit is contained in:
parent
0340cba441
commit
870a468584
1 changed files with 1 additions and 0 deletions
|
@ -109,6 +109,7 @@ public class MnemonicWalletKeystoreImportPane extends MnemonicKeystorePane {
|
||||||
|
|
||||||
List<List<ChildNumber>> derivations = ScriptType.getScriptTypesForPolicyType(PolicyType.SINGLE).stream().map(ScriptType::getDefaultDerivation).collect(Collectors.toList());
|
List<List<ChildNumber>> derivations = ScriptType.getScriptTypesForPolicyType(PolicyType.SINGLE).stream().map(ScriptType::getDefaultDerivation).collect(Collectors.toList());
|
||||||
derivations.add(List.of(new ChildNumber(0, true)));
|
derivations.add(List.of(new ChildNumber(0, true)));
|
||||||
|
derivations.add(ScriptType.P2PKH.getDefaultDerivation(1)); //Bisq segwit misderivation
|
||||||
|
|
||||||
for(ScriptType scriptType : ScriptType.getScriptTypesForPolicyType(PolicyType.SINGLE)) {
|
for(ScriptType scriptType : ScriptType.getScriptTypesForPolicyType(PolicyType.SINGLE)) {
|
||||||
for(List<ChildNumber> derivation : derivations) {
|
for(List<ChildNumber> derivation : derivations) {
|
||||||
|
|
Loading…
Reference in a new issue