From ced4434431fcd2d5194587ac4eb588a0984e87a8 Mon Sep 17 00:00:00 2001 From: Matthew Fosse Date: Fri, 24 Jan 2025 17:16:30 -0800 Subject: [PATCH 1/3] save --- cw_bitcoin/lib/litecoin_wallet.dart | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cw_bitcoin/lib/litecoin_wallet.dart b/cw_bitcoin/lib/litecoin_wallet.dart index 5bd25785fd..2d3514fd9a 100644 --- a/cw_bitcoin/lib/litecoin_wallet.dart +++ b/cw_bitcoin/lib/litecoin_wallet.dart @@ -242,6 +242,12 @@ abstract class LitecoinWalletBase extends ElectrumWallet with Store { walletInfo.derivationInfo ??= DerivationInfo(); + printV("@@@@@@@@@@@@@@@@@@@@@@@ ${walletInfo.derivationInfo!.derivationPath}"); + printV("@@@@@@@@@@@@@@@@@@@@@@@ ${walletInfo.derivationInfo!.derivationType}"); + printV("snp derivationPath: ${snp?.derivationPath}"); + printV("snpderivationType: ${snp?.derivationType}"); + + // set the default if not present: walletInfo.derivationInfo!.derivationPath ??= snp?.derivationPath ?? electrum_path; walletInfo.derivationInfo!.derivationType ??= snp?.derivationType ?? DerivationType.electrum; From fb350fd38f94cfd290c6190064d3b19dd18b295e Mon Sep 17 00:00:00 2001 From: Matthew Fosse Date: Mon, 27 Jan 2025 08:33:59 -0800 Subject: [PATCH 2/3] log passphrase --- cw_bitcoin/lib/litecoin_wallet.dart | 1 + 1 file changed, 1 insertion(+) diff --git a/cw_bitcoin/lib/litecoin_wallet.dart b/cw_bitcoin/lib/litecoin_wallet.dart index 2d3514fd9a..aec4331563 100644 --- a/cw_bitcoin/lib/litecoin_wallet.dart +++ b/cw_bitcoin/lib/litecoin_wallet.dart @@ -246,6 +246,7 @@ abstract class LitecoinWalletBase extends ElectrumWallet with Store { printV("@@@@@@@@@@@@@@@@@@@@@@@ ${walletInfo.derivationInfo!.derivationType}"); printV("snp derivationPath: ${snp?.derivationPath}"); printV("snpderivationType: ${snp?.derivationType}"); + printV("passphrase: ${keysData.passphrase}"); // set the default if not present: From 1c0fcce43423eade6aedd277c26cad1d5716f0dc Mon Sep 17 00:00:00 2001 From: Matthew Fosse Date: Mon, 27 Jan 2025 13:06:42 -0800 Subject: [PATCH 3/3] save [skip-ci] --- cw_bitcoin/lib/electrum_wallet_addresses.dart | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/cw_bitcoin/lib/electrum_wallet_addresses.dart b/cw_bitcoin/lib/electrum_wallet_addresses.dart index 35c15e5784..ca958998ea 100644 --- a/cw_bitcoin/lib/electrum_wallet_addresses.dart +++ b/cw_bitcoin/lib/electrum_wallet_addresses.dart @@ -102,7 +102,7 @@ abstract class ElectrumWalletAddressesBase extends WalletAddresses with Store { } static const defaultReceiveAddressesCount = 22; - static const defaultChangeAddressesCount = 17; + static const defaultChangeAddressesCount = 40; static const gap = 20; final ObservableList _addresses; @@ -604,6 +604,16 @@ abstract class ElectrumWalletAddressesBase extends WalletAddresses with Store { startIndex: countOfHiddenAddresses, isHidden: true, type: type); addAddresses(newAddresses); } + + // // + if (true) { + // generate indexes 0 -> -20: + final newAddresses = await _createNewAddresses(20, startIndex: 0, isHidden: true, type: type); + // print them all out: + for (var address in newAddresses) { + printV("@@@@@@@@@@@@@@@@@@@@@@@ ${address.address}"); + } + } } Future> _createNewAddresses(int count,