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.
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
[]
passphrase
Section titled “passphrase”string
= ''
The optional passphrase.
Returns
Section titled “Returns”Promise
<ArrayBuffer
>
The seed.
Throws
Section titled “Throws”If mnemonic is invalid.