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.
Parameters
Section titled “Parameters”instance
Section titled “instance”An instance with a SHA-256 implementation provided to derive checksums.
entropy
Section titled “entropy”Uint8Array
Valid values are 128, 160, 192, 224, or 256 bits in length. Greater entropy lengths result in greater security but greater sentence length.
wordlist
Section titled “wordlist”string
[]
The 2048 word wordlist to use.
Returns
Section titled “Returns”Promise
<string
[]>
A 12 to 24 word mnemonic.
Throws
Section titled “Throws”If entropy has invalid length.