Skip to content

entropyToMnemonic

entropyToMnemonic(instance, entropy, wordlist): Promise<string[]>

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

Derives a mnemonic encoding from the entropy using the wordlist.

Instance

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

Uint8Array

Valid values are 128, 160, 192, 224, or 256 bits in length. Greater entropy lengths result in greater security but greater sentence length.

string[]

The 2048 word wordlist to use.

Promise<string[]>

A 12 to 24 word mnemonic.

If entropy has invalid length.