@gibme/base58
TypeScript icon, indicating that this package has built-in type declarations

1.0.12 • Public • Published

Simple Base58 Library

Documentation

https://gibme-npm.github.io/base58/

Base58 Sample Code

import Base58 from '@gibme/base58';

const encoded = Base58.encode('02c0ded2bc1f1305fb0faac5e6c03ee3a1924234985427b6167ca569d13df435cfeb05f9d2');

console.log(encoded);

const decoded = Base58.decode(encoded);

console.log(decoded.toString('hex'));

CryptoNote Base58 Sample Code

import Base58 from '@gibme/base58';

const encoded = Base58.cn_encode(
    '9df6ee01c179d13e2a0c52edd8b821e2d53d707e47ddcaaf696644a45563564c2934bd50' +
    'a8faca00a94c5a4dcc3cf070898c2db6ff5990556d08f5a09c8787900dcecab3b77173c1');

console.log(encoded);

const decoded = Base58.cn_decode(encoded);

console.log(decoded.toString('hex'));

Readme

Keywords

none

Package Sidebar

Install

npm i @gibme/base58

Weekly Downloads

1

Version

1.0.12

License

MIT

Unpacked Size

603 kB

Total Files

15

Last publish

Collaborators

  • brandonlehmann