fromMnemonic

Usage: wallet.fromMnemonic(mnemonic)
Description: Initialize a Wallet from a Mnemonic representation.
Notes: This is an internal method, in the future, when TC39 proposal pass, we will use the private markup. Mnemonic initialized wallet works a little differently as they store the mnemonic in the wallet object.

Parameters:

parameters type required Description
mnemonic Mnemonic String yes

Returns : void (set a HD Wallet).

Examples :

wallet.fromMnemonic('knife easily prosper input concert merge prepare autumn pen blood glance toilet')