New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

eth-keys

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eth-keys

Ethereum private key format converter

latest
Source
npmnpm
Version
2.1.0
Version published
Maintainers
1
Created
Source

eth-keys

A command line wrapper around ethersjs to generate and convert ethereum private key types.

mnemonic
private key (import/new)
keystore file
new

How to use

Install eth-keys with npm

npm install eth-keys -g

then run eth-keys

>> eth-keys 

=========================1==========================
? What format is the private key in?
   keystore
   mnemonic
❯  private key
   new

=========================2==========================
✔ What format is the private key in?
 › private key

? Paste the private key:  **************************

=========================3==========================
[INFO] Opened wallet:  0xe3ED76846C75478E7043e23B6C95404EEbdeCd5E

? What format to output?
❯   keystore
    private key

=========================4==========================
✔ What format to output?
 › keystore
✔ New keystore name:  … test.json
✔ New password for keystore:  … ********
✔ Repeat password for keystore:  … *********

[INFO] Saved keystore to  <current-dir>/test.json

Build from source

git clone https://github.com/kyledewy/eth-keys
&&
npm install
&&
npm start

Warning

This code has not been audited.

Keywords

ethereum

FAQs

Package last updated on 07 Sep 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts