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

    Returns

    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'

    Parameters

    • entropy: Uint8Array

      byte array

    • wordlist: string[]

      imported wordlist for specific language

    Returns string

Generated using TypeDoc