Skip to content

mnemonicToEntropy

mnemonicToEntropy(instance, mnemonic, wordlist): Promise<Uint8Array<ArrayBuffer>>

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

Decodes the mnemonic back into the original entropy using the wordlist.

Instance

An instance with a SHA-256 implementation provided to derive checksums.

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

string | string[]

string[]

The 2048 word wordlist to use.

Promise<Uint8Array<ArrayBuffer>>

The entropy encoded in the mnemonic.

If mnemonic or wordlist is invalid.