You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
jojapoppa 1eeb57b092 added big-integer 6 months ago
dist fixed types 7 months ago
docs docs... 7 months ago
src initial checkin 7 months ago
test initial checkin 7 months ago
.gitignore fixed types 7 months ago
LICENSE initial checkin 7 months ago
README.md doc 7 months ago
build.sh building done 7 months ago
package-lock.json added big-integer 6 months ago
package.json naming 7 months ago
tsconfig.json initial checkin 7 months ago
typedoc.json initial checkin 7 months ago
yarn.lock building done 7 months ago

README.md

image]

FedoraGold Base58 Helper

Prerequisite Documentation Maintenance License: GPL-3.0

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

Adapted from the Turtlecoin project for use in Fedoragold.

Initialization

TypeScript

import { Base58 } from 'fedoragold-base58'

const rawAddress = Base58.decode('TRTLv3JRA772aBveLkCjG5jDvoUdKwa8YDsgLxCczL1oPei42XAMLE5QLRHM2c8oo5WbwLiB5ky7mDP7WGB53Jnp2ygHEomu3qa')

const address = Base58.encode(rawAddress)

JavaScript

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

const rawAddress = Base58.decode('TRTLv3JRA772aBveLkCjG5jDvoUdKwa8YDsgLxCczL1oPei42XAMLE5QLRHM2c8oo5WbwLiB5ky7mDP7WGB53Jnp2ygHEomu3qa')

const address = Base58.encode(rawAddress)

Documentation

You can find the full documentation for this library here