HDWalletSigner.createWallet constructor

HDWalletSigner.createWallet()

Generates a new account in the HD wallet and stores it as zeroth.

Returns the HD signer instance.

Implementation

factory HDWalletSigner.createWallet() {
  final mnemonic = bip39.generateMnemonic();
  return HDWalletSigner.recoverAccount(mnemonic);
}