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 1 year ago
dist fixed types 1 year ago
docs docs... 1 year ago
src initial checkin 1 year ago
test initial checkin 1 year ago
.gitignore fixed types 1 year ago
LICENSE initial checkin 1 year ago
README.md doc 1 year ago
build.sh building done 1 year ago
package-lock.json added big-integer 1 year ago
package.json naming 1 year ago
tsconfig.json initial checkin 1 year ago
typedoc.json initial checkin 1 year ago
yarn.lock building done 1 year 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