Convert Ethereum private key, public key and address with each other.
Feature:
- Convert
Ethereumprivate key to public key - More functions coming soon...
npm install eth-key-pairconst EthKey = require('eth-key-pair');This creates the uncompressed publicKey from privateKey, where 04 has stripped from left.
let publicKey = EthKey.publicKeyByPrivateKey("72fdf5bfe391b520129ce1b4e256c79af1ddf4e95e5124803c58f7da28e64727")
console.log(publicKey) e06740583be9fbdabaa26fc1795e2bbaacb95fabbd47f7ed5454d4c3033906fb8d6080f1b601da0a746ab39d5bde4c26c118638cbc77367b49dd65d086897ba3- Issues & Pull requests are welcome! Fork, branch, and submit PR.