mnemonicListToSeed static method

String mnemonicListToSeed(
  1. List<String> words
)

Convert a 24-word mnemonic word list to a seed

Implementation

static String mnemonicListToSeed(List<String> words) {
  if (words.length != 24) {
    throw Exception('Expected a 24-word list, got a ${words.length} list');
  }
  return bip39.mnemonicToEntropy(words.join(' ')).toUpperCase();
}