getECKeys function

ECKeys getECKeys(
  1. String mnemonic, {
  2. String passphrase = '',
  3. int index = 0,
  4. int coinType = CoinType.icp,
})

Implementation

ECKeys getECKeys(
  String mnemonic, {
  String passphrase = '',
  int index = 0,
  int coinType = CoinType.icp,
}) {
  assert(validateMnemonic(mnemonic), 'Mnemonic phrases is not valid $mnemonic');
  final seed = mnemonicToSeed(mnemonic, passphrase: passphrase);
  return ecKeysfromSeed(seed, index: index, coinType: coinType);
}