base58-native
An Implementation of Base58 and Base58Check encoding using bignum library.
Last updated 10 years ago by gasteve .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install base58-native 
SYNC missed versions from official npm registry.

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'));

Current Tags

  • 0.1.4                                ...           latest (10 years ago)

5 Versions

  • 0.1.4                                ...           10 years ago
  • 0.1.3                                ...           11 years ago
  • 0.1.2                                ...           11 years ago
  • 0.1.1                                ...           11 years ago
  • 0.1.0                                ...           11 years ago
Maintainers (1)
Downloads
Total 0
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (1)
Dependents (3)

© 2010 - cnpmjs.org x YWFE | Home | YWFE