mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-03-25 08:39:06 +00:00
Make the default BIP39 the 84 derivation path
This commit is contained in:
parent
4b73df5d91
commit
c39c21cb64
1 changed files with 7 additions and 1 deletions
|
@ -95,6 +95,7 @@ class WalletRestorePage extends BasePage {
|
||||||
final GlobalKey<WalletRestoreFromSeedFormState> walletRestoreFromSeedFormKey;
|
final GlobalKey<WalletRestoreFromSeedFormState> walletRestoreFromSeedFormKey;
|
||||||
final GlobalKey<WalletRestoreFromKeysFromState> walletRestoreFromKeysFormKey;
|
final GlobalKey<WalletRestoreFromKeysFromState> walletRestoreFromKeysFormKey;
|
||||||
final FocusNode _blockHeightFocusNode;
|
final FocusNode _blockHeightFocusNode;
|
||||||
|
|
||||||
// DerivationType derivationType = DerivationType.unknown;
|
// DerivationType derivationType = DerivationType.unknown;
|
||||||
// String? derivationPath = null;
|
// String? derivationPath = null;
|
||||||
DerivationInfo? derivationInfo;
|
DerivationInfo? derivationInfo;
|
||||||
|
@ -372,7 +373,12 @@ class WalletRestorePage extends BasePage {
|
||||||
} else if (derivationsWithHistory == 1) {
|
} else if (derivationsWithHistory == 1) {
|
||||||
dInfo = derivations[derivationWithHistoryIndex];
|
dInfo = derivations[derivationWithHistoryIndex];
|
||||||
} else if (derivationsWithHistory == 0 && derivations.isNotEmpty) {
|
} else if (derivationsWithHistory == 0 && derivations.isNotEmpty) {
|
||||||
dInfo = derivations.first;
|
dInfo = DerivationInfo(
|
||||||
|
derivationType: DerivationType.bip39,
|
||||||
|
derivationPath: "m/84'/0'/0'",
|
||||||
|
description: "Standard BIP84 native segwit",
|
||||||
|
scriptType: "p2wpkh",
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (dInfo == null) {
|
if (dInfo == null) {
|
||||||
|
|
Loading…
Reference in a new issue