eth-key-pair
Convert Ethereum private key, public key and address with each other.
Feature:
- Convert
Ethereum
private key to public key - More functions coming soon...
Installation
npm install eth-key-pair
Initialization
const EthKey = ;
Generate PublicKey from PrivateKey:
This creates the uncompressed publicKey from privateKey, where 04 has stripped from left.
let publicKey = EthKey console
Output:
e06740583be9fbdabaa26fc1795e2bbaacb95fabbd47f7ed5454d4c3033906fb8d6080f1b601da0a746ab39d5bde4c26c118638cbc77367b49dd65d086897ba3
Contributing
- Issues & Pull requests are welcome! Fork, branch, and submit PR.