validateMnemonic

Validates a mnemonic phrase.

Checks:

  • Word count is valid (12, 15, 18, 21, or 24)

  • All words are in BIP-39 word list

  • Checksum is correct

Return

true if valid, false otherwise

Parameters

mnemonic

The mnemonic phrase to validate