generateNewWallet method
Implementation
@override
Future<Map> generateNewWallet() async {
final w = await WalletUnlocked.newRandom(bridge: _bridge);
final address = await w.address();
final bech32Address = await address.toBech32String();
final b256Address = await address.toB256String();
final data = {
'address': {
'bech32Address': bech32Address,
'b256Address': b256Address,
},
'privateKey': w.privateKey,
'mnemonicPhrase': w.mnemonicPhrase,
};
return data;
}