I am currently making a DIY cold storage using a desktop computer. I cannot find any good desktop wallet for ethereum cold storage. Something like electrum for BTC.
So, I can only found these 3 ways to generate a new ethereum wallet address.
- Using
gethaccount
This will create a keystore .json file. I need to keep safe the account password and keystore json file
geth account new
- using
web3js
This will give an output of address and privateKey. What I need to keep safe is the privateKey.
const Web3 = require("web3");
const web3 = new Web3();
const wallet = web3.eth.accounts.create();
console.log(wallet);
- Using
ethereumjs-wallet
This will give an output of address and privateKey. What I need to keep safe is the privateKey.
const Wallet = require('ethereumjs-wallet')
const ethWallet = Wallet.default.generate();
console.log(`address: ${ethWallet.getAddressString()}`);
console.log(`privateKey: ${ethWallet.getPrivateKeyString()}`);
Are these methods safe to generate a new address for cold storage? Please let me know if you have any other method.