eth-crypto icon indicating copy to clipboard operation
eth-crypto copied to clipboard

adding addressByPrivateKey function

Open 0xPranjl opened this issue 3 years ago • 1 comments

added addressByPrivateKey

0xPranjl avatar Apr 19 '22 03:04 0xPranjl

I am not sure if we need this. Also this uses the ethers lib, but it could be done with plain functions that exist in this module already

const publicKey = EthCrypto.publicKeyByPrivateKey(myPrivateKey);
const address = EthCrypto.publicKey.toAddress(publicKey);

pubkey avatar Apr 20 '22 17:04 pubkey