• Reversible: Converts raw entropy in form of byte array to mnemonic string.

    Parameters

    • entropy: Uint8Array

      byte array

    • wordlist: string[]

      imported wordlist for specific language

    Returns string

    12-24 words

    Example

    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'

Generated using TypeDoc