0.0.8 • Published 4 years ago

turtlecoin-base58 v0.0.8

Weekly downloads
13
License
GPL-3.0
Repository
github
Last release
4 years ago

image

TurtleCoin Base58 Helper

NPM

Prerequisite Documentation Maintenance License: GPL-3.0 Twitter: TurtlePay

This package contains the code paths necessary to encode and/or decode hexadecimal strings to Base58 encoding and back again.

Installation

npm install turtlecoin-base58

Initialization

TypeScript

import { Base58 } from 'turtlecoin-base58'

const rawAddress = Base58.decode('TRTLv3JRA772aBveLkCjG5jDvoUdKwa8YDsgLxCczL1oPei42XAMLE5QLRHM2c8oo5WbwLiB5ky7mDP7WGB53Jnp2ygHEomu3qa')

const address = Base58.encode(rawAddress)

JavaScript

const Base58 = require('turtlecoin-base58').Base58

const rawAddress = Base58.decode('TRTLv3JRA772aBveLkCjG5jDvoUdKwa8YDsgLxCczL1oPei42XAMLE5QLRHM2c8oo5WbwLiB5ky7mDP7WGB53Jnp2ygHEomu3qa')

const address = Base58.encode(rawAddress)

Documentation

You can find the full documentation for this library here

0.0.8

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.4

4 years ago

0.0.1

4 years ago