Skip to content

mnemonicToSeed

mnemonicToSeed(mnemonic, passphrase): Promise<ArrayBuffer>

Defined in: astrobase/src/bip39/bip39.ts:108

Derives a seed from the mnemonic and optional passphrase. The mnemonic is assumed to have a correct checksum.

The 12, 15, 18, 21 or 24 word mnemonic as an array or sentence string.

string | string[]

string = ''

The optional passphrase.

Promise<ArrayBuffer>

The seed.

If mnemonic is invalid.