実装
早速ですが以下のライブラリを使用しました。
https://github.com/yamapyblack/ethereum-mnemonic-privatekey-exchanger
まずはクローンしてきて、必要なライブラリをインストールしていきます。
$ git clone https://github.com/yamapyblack/ethereum-mnemonic-privatekey-exchanger.git
$ cd /ethereum-mnemonic-privatekey-exchanger
$ npm install
ニーモニックから秘密鍵orキーストアを生成
exchangeByMnemonic.jsの以下を編集して実行します
const mnemonic = 'hoge fuga ...';
const password = 'Password123';
$ node exchangeByMnemonic.js
秘密鍵からキーストアを生成
exchangeByPrivatekey.jsの以下を編集して実行します
const privatekey = '000...';
const password = 'Password123';
$ node exchangeByPrivatekey.js