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.
Parameters
Section titled “Parameters”instance
Section titled “instance”An instance with a SHA-256 implementation provided to derive checksums.
mnemonic
Section titled “mnemonic”The 12, 15, 18, 21 or 24 word mnemonic as an array or sentence string.
string
| string
[]
wordlist
Section titled “wordlist”string
[]
The 2048 word wordlist to use.
Returns
Section titled “Returns”Promise
<Uint8Array
<ArrayBuffer
>>
The entropy encoded in the mnemonic.
Throws
Section titled “Throws”If mnemonic or wordlist is invalid.