Socket
Socket
Sign inDemoInstall

base58-native

Package Overview
Dependencies
17
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    base58-native

An Implementation of Base58 and Base58Check encoding using bignum library.


Version published
Maintainers
1
Created

Readme

Source

base58

An implementation of Base58 and Base58Check encodings for nodejs. Note, the implementation of Base58Check differs slightly from that described on Wikipedia in that it does not prepend a version byte onto the data being encoded. This implementation uses the bignum library (which is a native module and uses the openssl bignumber library functions).

NOTE: earlier versions of this package used native C code instead of bignum, but it was found to be unstable in a production environment (likely due to bugs in the C code). This version uses bignum and appears to be very stable, but slower. The C version of this package is still available on the "native-module" branch. A few additional methods added to bignum would probably bring the speed of this version on part with with C version.

Installation

npm install base58-native

Usage

var base58 = require('base58-native');
base58.encode(base58.decode('mqqa8xSMVDyf9QxihGnPtap6Mh6qemUkcu'));

var base58Check = require('base58-native').base58Check;
base58Check.encode(base58Check.decode('mqqa8xSMVDyf9QxihGnPtap6Mh6qemUkcu'));

Keywords

FAQs

Last updated on 24 May 2014

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc