normalizeMnemonic
normalizeMnemonic(
mnemonic
):string
[]
Defined in: astrobase/src/bip39/bip39.ts:24
Validates, trims words, and normalizes unicode into NFKD.
Parameters
Section titled “Parameters”mnemonic
Section titled “mnemonic”The 12, 15, 18, 21 or 24 word mnemonic as an array or sentence string.
string
| string
[]
Returns
Section titled “Returns”string
[]
The normalized mnemonic as an array of words.
Throws
Section titled “Throws”If mnemonic length is invalid length.