Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 
jojapoppa 1eeb57b092 added big-integer 1 år sedan
dist fixed types 2 år sedan
docs docs... 2 år sedan
src initial checkin 2 år sedan
test initial checkin 2 år sedan
.gitignore fixed types 2 år sedan
LICENSE initial checkin 2 år sedan
README.md doc 2 år sedan
build.sh building done 2 år sedan
package-lock.json added big-integer 1 år sedan
package.json naming 2 år sedan
tsconfig.json initial checkin 2 år sedan
typedoc.json initial checkin 2 år sedan
yarn.lock building done 2 år sedan

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