2021-12-24 12:52:08 +00:00
|
|
|
import 'package:bitcoin_flutter/bitcoin_flutter.dart' as bitcoin;
|
2023-10-12 22:50:16 +00:00
|
|
|
import 'package:bitbox/bitbox.dart' as bitbox;
|
2021-12-24 12:52:08 +00:00
|
|
|
import 'package:cw_bitcoin/bitcoin_address_record.dart';
|
2023-11-30 17:28:29 +00:00
|
|
|
import 'package:cw_bitcoin/electrum_transaction_history.dart';
|
2021-12-24 12:52:08 +00:00
|
|
|
import 'package:cw_core/wallet_addresses.dart';
|
|
|
|
import 'package:cw_core/wallet_info.dart';
|
2023-10-12 22:50:16 +00:00
|
|
|
import 'package:cw_core/wallet_type.dart';
|
2021-12-24 12:52:08 +00:00
|
|
|
import 'package:mobx/mobx.dart';
|
|
|
|
|
|
|
|
part 'electrum_wallet_addresses.g.dart';
|
|
|
|
|
2023-11-30 10:01:58 +00:00
|
|
|
class ElectrumWalletAddresses = ElectrumWalletAddressesBase with _$ElectrumWalletAddresses;
|
2021-12-24 12:52:08 +00:00
|
|
|
|
|
|
|
abstract class ElectrumWalletAddressesBase extends WalletAddresses with Store {
|
2023-11-30 10:01:58 +00:00
|
|
|
ElectrumWalletAddressesBase(
|
|
|
|
WalletInfo walletInfo, {
|
|
|
|
required this.mainHd,
|
|
|
|
required this.sideHd,
|
2023-11-30 17:28:29 +00:00
|
|
|
required this.transactionHistory,
|
2023-11-30 10:01:58 +00:00
|
|
|
required this.networkType,
|
|
|
|
List<BitcoinAddressRecord>? initialAddresses,
|
2023-12-06 14:47:14 +00:00
|
|
|
List<BitcoinAddressRecord>? initialSilentAddresses,
|
2023-11-30 10:01:58 +00:00
|
|
|
int initialRegularAddressIndex = 0,
|
|
|
|
int initialChangeAddressIndex = 0,
|
2023-12-06 14:47:14 +00:00
|
|
|
int initialSilentAddressIndex = 0,
|
2023-11-30 10:01:58 +00:00
|
|
|
bitcoin.SilentPaymentReceiver? silentAddress,
|
|
|
|
}) : addresses = ObservableList<BitcoinAddressRecord>.of((initialAddresses ?? []).toSet()),
|
2023-12-06 14:46:33 +00:00
|
|
|
primarySilentAddress = silentAddress,
|
2023-11-30 10:01:58 +00:00
|
|
|
receiveAddresses = ObservableList<BitcoinAddressRecord>.of((initialAddresses ?? [])
|
2022-01-24 12:04:23 +00:00
|
|
|
.where((addressRecord) => !addressRecord.isHidden && !addressRecord.isUsed)
|
2023-11-30 10:01:58 +00:00
|
|
|
.toSet()),
|
|
|
|
changeAddresses = ObservableList<BitcoinAddressRecord>.of((initialAddresses ?? [])
|
2022-01-24 12:04:23 +00:00
|
|
|
.where((addressRecord) => addressRecord.isHidden && !addressRecord.isUsed)
|
2023-11-30 10:01:58 +00:00
|
|
|
.toSet()),
|
2023-12-06 14:47:14 +00:00
|
|
|
silentAddresses = ObservableList<BitcoinAddressRecord>.of((initialSilentAddresses ?? [])
|
|
|
|
.where((addressRecord) =>
|
|
|
|
addressRecord.silentAddressLabel != null &&
|
|
|
|
addressRecord.silentPaymentTweak != null)
|
2023-11-30 10:01:58 +00:00
|
|
|
.toSet()),
|
2022-10-12 17:09:57 +00:00
|
|
|
currentReceiveAddressIndex = initialRegularAddressIndex,
|
|
|
|
currentChangeAddressIndex = initialChangeAddressIndex,
|
2023-12-06 14:47:14 +00:00
|
|
|
currentSilentAddressIndex = initialSilentAddressIndex,
|
2023-11-30 10:01:58 +00:00
|
|
|
super(walletInfo);
|
2021-12-24 12:52:08 +00:00
|
|
|
|
2022-01-18 16:27:33 +00:00
|
|
|
static const defaultReceiveAddressesCount = 22;
|
|
|
|
static const defaultChangeAddressesCount = 17;
|
|
|
|
static const gap = 20;
|
2021-12-24 12:52:08 +00:00
|
|
|
|
2023-10-12 22:50:16 +00:00
|
|
|
static String toCashAddr(String address) => bitbox.Address.toCashAddress(address);
|
|
|
|
|
2022-01-24 12:04:23 +00:00
|
|
|
final ObservableList<BitcoinAddressRecord> addresses;
|
|
|
|
final ObservableList<BitcoinAddressRecord> receiveAddresses;
|
|
|
|
final ObservableList<BitcoinAddressRecord> changeAddresses;
|
2023-11-30 10:01:58 +00:00
|
|
|
final ObservableList<BitcoinAddressRecord> silentAddresses;
|
2023-11-30 17:28:29 +00:00
|
|
|
final ElectrumTransactionHistory transactionHistory;
|
2022-01-24 12:04:23 +00:00
|
|
|
final bitcoin.NetworkType networkType;
|
|
|
|
final bitcoin.HDWallet mainHd;
|
|
|
|
final bitcoin.HDWallet sideHd;
|
|
|
|
|
2023-12-06 14:46:33 +00:00
|
|
|
final bitcoin.SilentPaymentReceiver? primarySilentAddress;
|
2023-11-30 10:01:58 +00:00
|
|
|
|
|
|
|
@observable
|
|
|
|
// ignore: prefer_final_fields
|
|
|
|
dynamic _addressPageType = bitcoin.AddressType.p2wpkh;
|
2022-01-24 12:04:23 +00:00
|
|
|
@computed
|
2023-11-30 10:01:58 +00:00
|
|
|
dynamic get addressPageType => _addressPageType;
|
|
|
|
|
|
|
|
@observable
|
2023-12-06 14:46:33 +00:00
|
|
|
String? activeSilentAddress;
|
2023-11-30 10:01:58 +00:00
|
|
|
|
|
|
|
@computed
|
|
|
|
String get receiveAddress {
|
2023-04-17 19:09:26 +00:00
|
|
|
if (receiveAddresses.isEmpty) {
|
2023-10-12 22:50:16 +00:00
|
|
|
final address = generateNewAddress().address;
|
|
|
|
return walletInfo.type == WalletType.bitcoinCash ? toCashAddr(address) : address;
|
2023-04-17 19:09:26 +00:00
|
|
|
}
|
2023-10-12 22:50:16 +00:00
|
|
|
final receiveAddress = receiveAddresses.first.address;
|
2023-04-17 19:09:26 +00:00
|
|
|
|
2023-10-12 22:50:16 +00:00
|
|
|
return walletInfo.type == WalletType.bitcoinCash ? toCashAddr(receiveAddress) : receiveAddress;
|
2023-04-17 19:09:26 +00:00
|
|
|
}
|
2022-01-24 12:04:23 +00:00
|
|
|
|
2021-12-24 12:52:08 +00:00
|
|
|
@override
|
2023-11-30 10:01:58 +00:00
|
|
|
@computed
|
|
|
|
String get address {
|
|
|
|
if (addressPageType == bitcoin.AddressType.p2sp) {
|
2023-12-06 14:46:33 +00:00
|
|
|
if (activeSilentAddress != null) {
|
|
|
|
return activeSilentAddress!;
|
|
|
|
}
|
2023-11-30 10:01:58 +00:00
|
|
|
|
2023-12-06 14:46:33 +00:00
|
|
|
return primarySilentAddress!.toString();
|
2023-11-30 10:01:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
if (receiveAddresses.isEmpty) {
|
|
|
|
return generateNewAddress().address;
|
|
|
|
}
|
|
|
|
|
|
|
|
try {
|
|
|
|
return receiveAddresses
|
|
|
|
.firstWhere((address) => addressPageType == bitcoin.AddressType.p2wpkh
|
|
|
|
? address.type == null || address.type == addressPageType
|
|
|
|
: address.type == addressPageType)
|
|
|
|
.address;
|
|
|
|
} catch (_) {}
|
|
|
|
|
|
|
|
return receiveAddresses.first.address;
|
|
|
|
}
|
|
|
|
|
|
|
|
@override
|
2023-12-06 14:46:33 +00:00
|
|
|
set address(String addr) => activeSilentAddress = addr;
|
2021-12-24 12:52:08 +00:00
|
|
|
|
2022-01-18 16:27:33 +00:00
|
|
|
int currentReceiveAddressIndex;
|
|
|
|
int currentChangeAddressIndex;
|
2023-12-06 14:47:14 +00:00
|
|
|
int currentSilentAddressIndex;
|
2022-01-18 16:27:33 +00:00
|
|
|
|
2022-01-24 12:04:23 +00:00
|
|
|
@computed
|
2023-11-30 10:01:58 +00:00
|
|
|
int get totalCountOfReceiveAddresses => addresses.fold(0, (acc, addressRecord) {
|
|
|
|
if (!addressRecord.isHidden) {
|
|
|
|
return acc + 1;
|
|
|
|
}
|
|
|
|
return acc;
|
|
|
|
});
|
2022-01-18 17:10:37 +00:00
|
|
|
|
2022-01-24 12:04:23 +00:00
|
|
|
@computed
|
2023-11-30 10:01:58 +00:00
|
|
|
int get totalCountOfChangeAddresses => addresses.fold(0, (acc, addressRecord) {
|
|
|
|
if (addressRecord.isHidden) {
|
|
|
|
return acc + 1;
|
|
|
|
}
|
|
|
|
return acc;
|
|
|
|
});
|
2022-01-18 17:10:37 +00:00
|
|
|
|
2022-01-18 16:27:33 +00:00
|
|
|
Future<void> discoverAddresses() async {
|
|
|
|
await _discoverAddresses(mainHd, false);
|
|
|
|
await _discoverAddresses(sideHd, true);
|
|
|
|
await updateAddressesInBox();
|
|
|
|
}
|
2021-12-24 12:52:08 +00:00
|
|
|
|
|
|
|
@override
|
|
|
|
Future<void> init() async {
|
2022-01-18 16:27:33 +00:00
|
|
|
await _generateInitialAddresses();
|
2022-01-24 12:04:23 +00:00
|
|
|
updateReceiveAddresses();
|
|
|
|
updateChangeAddresses();
|
2021-12-24 12:52:08 +00:00
|
|
|
await updateAddressesInBox();
|
|
|
|
|
2022-01-24 12:04:23 +00:00
|
|
|
if (currentReceiveAddressIndex >= receiveAddresses.length) {
|
2022-01-18 16:27:33 +00:00
|
|
|
currentReceiveAddressIndex = 0;
|
2021-12-24 12:52:08 +00:00
|
|
|
}
|
|
|
|
|
2022-01-24 12:04:23 +00:00
|
|
|
if (currentChangeAddressIndex >= changeAddresses.length) {
|
|
|
|
currentChangeAddressIndex = 0;
|
|
|
|
}
|
2021-12-24 12:52:08 +00:00
|
|
|
}
|
|
|
|
|
2022-01-18 16:27:33 +00:00
|
|
|
@action
|
|
|
|
Future<String> getChangeAddress() async {
|
2022-01-24 12:04:23 +00:00
|
|
|
updateChangeAddresses();
|
2023-10-12 22:50:16 +00:00
|
|
|
|
2022-01-18 16:27:33 +00:00
|
|
|
if (changeAddresses.isEmpty) {
|
2023-10-12 22:50:16 +00:00
|
|
|
final newAddresses = await _createNewAddresses(gap,
|
2023-11-30 10:01:58 +00:00
|
|
|
hd: sideHd,
|
|
|
|
startIndex: totalCountOfChangeAddresses > 0 ? totalCountOfChangeAddresses - 1 : 0,
|
|
|
|
isHidden: true);
|
|
|
|
addAddresses(newAddresses);
|
2022-01-24 12:04:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
if (currentChangeAddressIndex >= changeAddresses.length) {
|
2022-01-18 16:27:33 +00:00
|
|
|
currentChangeAddressIndex = 0;
|
2021-12-24 12:52:08 +00:00
|
|
|
}
|
|
|
|
|
2022-01-24 12:04:23 +00:00
|
|
|
updateChangeAddresses();
|
2022-01-18 16:27:33 +00:00
|
|
|
final address = changeAddresses[currentChangeAddressIndex].address;
|
|
|
|
currentChangeAddressIndex += 1;
|
|
|
|
return address;
|
2021-12-24 12:52:08 +00:00
|
|
|
}
|
|
|
|
|
2023-12-06 14:46:33 +00:00
|
|
|
Map<String, String> get labels {
|
|
|
|
final labels = <String, String>{};
|
|
|
|
for (int i = 0; i < silentAddresses.length; i++) {
|
|
|
|
final silentAddressRecord = silentAddresses[i];
|
|
|
|
final silentAddress =
|
|
|
|
bitcoin.SilentPaymentDestination.fromAddress(silentAddressRecord.address, 0)
|
2023-12-06 21:36:15 +00:00
|
|
|
.spendPubkey
|
2023-12-06 14:46:33 +00:00
|
|
|
.toCompressedHex();
|
|
|
|
|
|
|
|
if (silentAddressRecord.silentPaymentTweak != null)
|
|
|
|
labels[silentAddress] = silentAddressRecord.silentPaymentTweak!;
|
|
|
|
}
|
|
|
|
return labels;
|
|
|
|
}
|
|
|
|
|
2023-11-30 10:01:58 +00:00
|
|
|
@action
|
2023-04-17 19:09:26 +00:00
|
|
|
BitcoinAddressRecord generateNewAddress(
|
2023-11-30 10:01:58 +00:00
|
|
|
{bitcoin.HDWallet? hd, bool isHidden = false, String? label}) {
|
2023-12-06 14:46:33 +00:00
|
|
|
if (label != null && primarySilentAddress != null) {
|
|
|
|
currentSilentAddressIndex += 1;
|
|
|
|
|
|
|
|
final tweak = currentSilentAddressIndex.toString();
|
|
|
|
|
2023-11-30 10:01:58 +00:00
|
|
|
final address = BitcoinAddressRecord(
|
2023-12-06 14:46:33 +00:00
|
|
|
bitcoin.SilentPaymentAddress.createLabeledSilentPaymentAddress(
|
|
|
|
primarySilentAddress!.scanPubkey, primarySilentAddress!.spendPubkey, tweak.fromHex,
|
|
|
|
hrp: primarySilentAddress!.hrp, version: primarySilentAddress!.version)
|
|
|
|
.toString(),
|
|
|
|
index: currentSilentAddressIndex,
|
|
|
|
isHidden: isHidden,
|
|
|
|
silentAddressLabel: label,
|
|
|
|
silentPaymentTweak: tweak,
|
|
|
|
);
|
|
|
|
|
2023-11-30 10:01:58 +00:00
|
|
|
silentAddresses.add(address);
|
|
|
|
|
|
|
|
return address;
|
|
|
|
}
|
|
|
|
|
2022-10-12 17:09:57 +00:00
|
|
|
// FIX-ME: Check logic for whichi HD should be used here ???
|
2021-12-24 12:52:08 +00:00
|
|
|
final address = BitcoinAddressRecord(
|
2023-11-30 10:01:58 +00:00
|
|
|
getAddress(
|
|
|
|
index: currentReceiveAddressIndex,
|
|
|
|
hd: hd ?? sideHd,
|
|
|
|
addressType: addressPageType as bitcoin.AddressType,
|
|
|
|
),
|
2022-01-18 16:27:33 +00:00
|
|
|
index: currentReceiveAddressIndex,
|
2021-12-24 12:52:08 +00:00
|
|
|
isHidden: isHidden);
|
|
|
|
addresses.add(address);
|
|
|
|
return address;
|
2023-11-30 10:01:58 +00:00
|
|
|
|
|
|
|
currentReceiveAddressIndex += 1;
|
2021-12-24 12:52:08 +00:00
|
|
|
}
|
|
|
|
|
2023-11-30 10:01:58 +00:00
|
|
|
String getAddress(
|
|
|
|
{required int index, required bitcoin.HDWallet hd, bitcoin.AddressType? addressType}) =>
|
|
|
|
'';
|
2021-12-24 12:52:08 +00:00
|
|
|
|
|
|
|
@override
|
|
|
|
Future<void> updateAddressesInBox() async {
|
|
|
|
try {
|
|
|
|
addressesMap.clear();
|
|
|
|
addressesMap[address] = '';
|
|
|
|
await saveAddressesInBox();
|
|
|
|
} catch (e) {
|
|
|
|
print(e.toString());
|
|
|
|
}
|
|
|
|
}
|
2022-01-12 13:20:43 +00:00
|
|
|
|
2022-01-24 12:04:23 +00:00
|
|
|
@action
|
|
|
|
void updateReceiveAddresses() {
|
|
|
|
receiveAddresses.removeRange(0, receiveAddresses.length);
|
2023-11-30 10:01:58 +00:00
|
|
|
final newAdresses =
|
|
|
|
addresses.where((addressRecord) => !addressRecord.isHidden && !addressRecord.isUsed);
|
2022-01-24 12:04:23 +00:00
|
|
|
receiveAddresses.addAll(newAdresses);
|
|
|
|
}
|
2022-01-12 14:32:56 +00:00
|
|
|
|
2022-01-24 12:04:23 +00:00
|
|
|
@action
|
|
|
|
void updateChangeAddresses() {
|
|
|
|
changeAddresses.removeRange(0, changeAddresses.length);
|
2023-11-30 10:01:58 +00:00
|
|
|
final newAdresses =
|
|
|
|
addresses.where((addressRecord) => addressRecord.isHidden && !addressRecord.isUsed);
|
2022-01-24 12:04:23 +00:00
|
|
|
changeAddresses.addAll(newAdresses);
|
2022-01-12 13:20:43 +00:00
|
|
|
}
|
2022-01-18 16:27:33 +00:00
|
|
|
|
2023-11-30 10:01:58 +00:00
|
|
|
@action
|
|
|
|
Future<void> _discoverAddresses(bitcoin.HDWallet hd, bool isHidden,
|
|
|
|
{bitcoin.AddressType? addressType}) async {
|
2022-01-18 16:27:33 +00:00
|
|
|
var hasAddrUse = true;
|
|
|
|
List<BitcoinAddressRecord> addrs;
|
2023-04-17 19:09:26 +00:00
|
|
|
|
2023-11-30 10:01:58 +00:00
|
|
|
if (addresses.where((addr) => addr.type == addressPageType).isNotEmpty) {
|
|
|
|
addrs = addresses.where((addr) => addr.isHidden == isHidden).toList();
|
2022-01-18 16:27:33 +00:00
|
|
|
} else {
|
|
|
|
addrs = await _createNewAddresses(
|
2023-11-30 10:01:58 +00:00
|
|
|
isHidden ? defaultChangeAddressesCount : defaultReceiveAddressesCount,
|
2022-01-18 16:27:33 +00:00
|
|
|
startIndex: 0,
|
|
|
|
hd: hd,
|
2023-11-30 10:01:58 +00:00
|
|
|
isHidden: isHidden,
|
|
|
|
addressType: addressType);
|
2022-01-18 16:27:33 +00:00
|
|
|
}
|
2023-04-17 19:09:26 +00:00
|
|
|
|
2023-11-30 10:01:58 +00:00
|
|
|
while (hasAddrUse) {
|
2022-01-18 16:27:33 +00:00
|
|
|
final addr = addrs.last.address;
|
2022-01-24 12:04:23 +00:00
|
|
|
hasAddrUse = await _hasAddressUsed(addr);
|
2022-01-18 16:27:33 +00:00
|
|
|
|
|
|
|
if (!hasAddrUse) {
|
|
|
|
break;
|
|
|
|
}
|
2022-01-24 12:04:23 +00:00
|
|
|
|
2022-01-18 16:27:33 +00:00
|
|
|
final start = addrs.length;
|
|
|
|
final count = start + gap;
|
2023-11-30 10:01:58 +00:00
|
|
|
final batch = await _createNewAddresses(count,
|
|
|
|
startIndex: start, hd: hd, isHidden: isHidden, addressType: addressType);
|
2022-01-18 16:27:33 +00:00
|
|
|
addrs.addAll(batch);
|
|
|
|
}
|
|
|
|
|
2023-11-30 10:01:58 +00:00
|
|
|
if (addresses.length < addrs.length || addressPageType != null) {
|
|
|
|
addAddresses(addrs);
|
2022-01-18 16:27:33 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
Future<void> _generateInitialAddresses() async {
|
|
|
|
var countOfReceiveAddresses = 0;
|
|
|
|
var countOfHiddenAddresses = 0;
|
|
|
|
|
|
|
|
addresses.forEach((addr) {
|
|
|
|
if (addr.isHidden) {
|
|
|
|
countOfHiddenAddresses += 1;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
countOfReceiveAddresses += 1;
|
|
|
|
});
|
|
|
|
|
|
|
|
if (countOfReceiveAddresses < defaultReceiveAddressesCount) {
|
|
|
|
final addressesCount = defaultReceiveAddressesCount - countOfReceiveAddresses;
|
2023-11-30 10:01:58 +00:00
|
|
|
final newAddresses = await _createNewAddresses(addressesCount,
|
|
|
|
startIndex: countOfReceiveAddresses, hd: mainHd, isHidden: false);
|
2022-01-18 16:27:33 +00:00
|
|
|
addresses.addAll(newAddresses);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (countOfHiddenAddresses < defaultChangeAddressesCount) {
|
|
|
|
final addressesCount = defaultChangeAddressesCount - countOfHiddenAddresses;
|
2023-11-30 10:01:58 +00:00
|
|
|
final newAddresses = await _createNewAddresses(addressesCount,
|
|
|
|
startIndex: countOfHiddenAddresses, hd: sideHd, isHidden: true);
|
2022-01-18 16:27:33 +00:00
|
|
|
addresses.addAll(newAddresses);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
Future<List<BitcoinAddressRecord>> _createNewAddresses(int count,
|
2023-11-30 10:01:58 +00:00
|
|
|
{required bitcoin.HDWallet hd,
|
|
|
|
int startIndex = 0,
|
|
|
|
bool isHidden = false,
|
|
|
|
bitcoin.AddressType? addressType}) async {
|
2022-01-18 16:27:33 +00:00
|
|
|
final list = <BitcoinAddressRecord>[];
|
|
|
|
|
|
|
|
for (var i = startIndex; i < count + startIndex; i++) {
|
2023-11-30 10:01:58 +00:00
|
|
|
final address = BitcoinAddressRecord(getAddress(index: i, hd: hd, addressType: addressType),
|
|
|
|
index: i, isHidden: isHidden, type: addressType);
|
2022-01-18 16:27:33 +00:00
|
|
|
list.add(address);
|
|
|
|
}
|
|
|
|
|
|
|
|
return list;
|
|
|
|
}
|
|
|
|
|
2023-11-30 10:01:58 +00:00
|
|
|
@action
|
|
|
|
void addAddresses(Iterable<BitcoinAddressRecord> addresses) {
|
2022-01-18 16:27:33 +00:00
|
|
|
final addressesSet = this.addresses.toSet();
|
|
|
|
addressesSet.addAll(addresses);
|
|
|
|
this.addresses.removeRange(0, this.addresses.length);
|
2023-11-30 17:28:29 +00:00
|
|
|
this.addresses.addAll(addressesSet);
|
2022-01-18 16:27:33 +00:00
|
|
|
}
|
|
|
|
|
2022-01-24 12:04:23 +00:00
|
|
|
Future<bool> _hasAddressUsed(String address) async {
|
2023-11-30 17:28:29 +00:00
|
|
|
return transactionHistory.transactions.values.any((txInfo) => txInfo.to == address);
|
2022-01-18 16:27:33 +00:00
|
|
|
}
|
2023-11-30 10:01:58 +00:00
|
|
|
|
|
|
|
@override
|
|
|
|
@action
|
|
|
|
Future<void> setAddressType(dynamic type) async {
|
|
|
|
_addressPageType = type as bitcoin.AddressType;
|
|
|
|
|
|
|
|
if (addressPageType != bitcoin.AddressType.p2sp) {
|
|
|
|
await _discoverAddresses(mainHd, false, addressType: addressPageType as bitcoin.AddressType);
|
|
|
|
updateReceiveAddresses();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|