Function to convert entropy to a mnemonic.
The entropy to convert.
The generated mnemonic.
Reversible: Converts raw entropy in form of byte array to mnemonic string.
byte array
imported wordlist for specific language
12-24 words
const ent = new Uint8Array([ 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f]);entropyToMnemonic(ent, wordlist);// 'legal winner thank year wave sausage worth useful legal winner thank yellow' Copy
const ent = new Uint8Array([ 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f]);entropyToMnemonic(ent, wordlist);// 'legal winner thank year wave sausage worth useful legal winner thank yellow'
Function to convert entropy to a mnemonic.
Param: entropy
The entropy to convert.
Returns
The generated mnemonic.