const Wallet = require('ethereumjs-wallet');
//ウォレットの作成
const wallet = Wallet.generate();
//秘密鍵の生成
//const privateKey = wallet.getPrivateKeyString();
//秘密鍵の生成(先頭の0xを除去)
const privateKey = wallet.getPrivateKey().toString("hex");
//console.log("秘密鍵 : " + privateKey.toString("hex"));
//公開鍵
const publicKey = wallet.getPublicKeyString();
//console.log("公開鍵:"+publicKey);
//アドレス
const address = wallet.getAddressString();
console.log( x+","+privateKey+","+address);
