• Generate x random words. Uses Cryptographically-Secure Random Number Generator.

    Parameters

    • wordlist: string[]

      imported wordlist for specific language

    • Optional strength: number

      mnemonic strength 128-256 bits

    Returns string

    Example

    generateMnemonic(wordlist, 128)
    // 'legal winner thank year wave sausage worth useful legal winner thank yellow'

Generated using TypeDoc