• Irreversible: Uses KDF to derive 64 bytes of key data from mnemonic + optional password.

    Returns

    64 bytes of key data

    Example

    const mnem = 'legal winner thank year wave sausage worth useful legal winner thank yellow';
    await mnemonicToSeed(mnem, 'password');
    // new Uint8Array([...64 bytes])

    Parameters

    • mnemonic: string

      12-24 words

    • Optional passphrase: string

      string that will additionally protect the key

    Returns Promise<Uint8Array>

Generated using TypeDoc