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

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