validateMnemonic static method

bool validateMnemonic(
  1. String mnemonic
)

Implementation

static bool validateMnemonic(String mnemonic) {
  try {
    mnemonicToEntropy(mnemonic);
  } catch (e) {
    return false;
  }
  return true;
}