Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ethereumjs-wallet

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ethereumjs-wallet

Utilities for handling Ethereum keys

  • 0.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
109K
increased by8.69%
Maintainers
1
Weekly downloads
 
Created
Source

ethereumjs-wallet

A lightweight wallet implementation. At the moment it supports key creation and conversion between various formats.

It is complemented by the following packages:

  • ethereumjs-tx to sign transactions
  • ethereumjs-icap to manipulate ICAP addresses
  • store.js to use browser storage

Motivations are:

  • be lightweight
  • work in a browser
  • use a single, maintained version of crypto library
  • support import/export between various wallet formats

Features not supported:

  • signing transactions
  • managing storage (neither in node.js or the browser)

API

Constructors:

  • fromPrivateKey - create an instance based on a raw key
  • fromV1 - import a wallet (Version 1 of the Ethereum wallet format)
  • fromV3 - import a wallet (Version 3 of the Ethereum wallet format)
  • fromEthSale - import an Ethereum Pre Sale wallet

Instance methods:

  • getPrivateKey - return the private key
  • getPublicKey - return the public key
  • getAddress - return the address
  • toV3 - return the wallet as a JSON string (Version 3 of the Ethereum wallet format)

All of the above instance methods return a Buffer or JSON. Use the String suffixed versions for a string output, such as getPrivateKeyString.

Keywords

FAQs

Package last updated on 23 Feb 2016

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc