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