title: Recovering Dogecoin and Litecoin wallets from mnemonic passphrase
body: <p>I have to recover Dogecoin and Litecoin wallets from mnemonic passphrase, I have done for Ethereum and Bitcoin but I can't figure out for these two.</p>
  <p>Here is my approach for generating Bitcoin wallet from mnemonic, which is being generated from BIP39 in a separate function:</p>
  <pre><code>const generateBtcWalletFromMnemonic = async (mnemonic) =&gt; {
      const DERIVE_PATH_PREFIX = &quot;m/44'/0'/0'/0/&quot;;
      const MNEMONIC = mnemonic;
      const seed = await bip39.mnemonicToSeed(MNEMONIC);
      const root = bip32.fromSeed(seed);
      const children = root.derivePath(DERIVE_PATH_PREFIX + 0);
      const address = getAddress(children);
      privateKey = children.toWIF();
      console.log({ address, privateKey });
  }
  </code></pre>