Generate HD wallets; Try to get 3 firsts BIP32 pubkeys of dewif

This commit is contained in:
poka 2021-02-12 01:58:02 +01:00
parent c09560c9e4
commit 2ec8949dde
2 changed files with 6 additions and 1 deletions

View File

@ -160,7 +160,8 @@ class GenerateWalletsProvider with ChangeNotifier {
this.actualWallet = await DubpRust.genWalletFromMnemonic(
language: Language.french,
mnemonic: generatedMnemonic,
secretCodeType: SecretCodeType.letters);
secretCodeType: SecretCodeType.letters,
walletType: WalletType.bip32Ed25519);
} catch (e, stack) {
print(e);
if (kReleaseMode) {

View File

@ -63,6 +63,10 @@ class WalletOptionsProvider with ChangeNotifier {
this.pubkey.text = _localPubkey;
isWalletUnlock = true;
notifyListeners();
print('GET BIP32 accounts publickeys from this dewif');
String _hdWallets = await DubpRust.getBip32DewifAccountsPublicKeys(
dewif: _localDewif, secretCode: _pin, accountsIndex: [0, 1, 2]);
print(_hdWallets);
return _localDewif;
} else {