Generate Public Private Keypair
// It generates a random Public and Private keypair everytime it runs
const Wallet = require('ethereumjs-wallet');
const EthWallet = Wallet.default.generate();
`
Generated ID:
- privateKey : ${EthWallet.getPrivateKeyString().slice(2)}
- publicKey : ${EthWallet.getPublicKeyString().slice(2)}
- web3 address : ${EthWallet.getAddressString()}
`
no comments