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

    Parameters

    • mnemonic: string

      12-24 words

    • wordlist: string[]

      imported wordlist for specific language

    Returns Uint8Array

    Example

    const mnem = 'legal winner thank year wave sausage worth useful legal winner thank yellow';
    mnemonicToEntropy(mnem, wordlist)
    // Produces
    new Uint8Array([
    0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f,
    0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f
    ])

Generated using TypeDoc