Skip to content

mtl1979/node-base58

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

NOTE: Early 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). Recent versions used bignum for stability, but were slower. This version of the package uses a JavaScript algorithm adapted from digit-array with additional optimizations.

Installation

npm install @mtl1979/base58-native

Usage

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

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • JavaScript 100.0%