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

    Parameters

    • mnemonic: string

      12-24 words

    • Optional passphrase: string

      string that will additionally protect the key

    Returns Uint8Array

    64 bytes of key data

    Example

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

Generated using TypeDoc