Skip to content
Snippets Groups Projects
Commit 2ec8949d authored by poka's avatar poka
Browse files

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

parent c09560c9
No related branches found
No related tags found
No related merge requests found
......@@ -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) {
......
......@@ -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 {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment