New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

@turtlecoin/base58

Package Overview
Dependencies
Maintainers
3
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@turtlecoin/base58

Base58 Encoding

latest
Source
npmnpm
Version
0.1.0
Version published
Maintainers
3
Created
Source

image

TurtleCoin Base58 Helper

Prerequisite Documentation Maintenance License: GPL-3.0 Twitter: TurtlePay

NPM

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

Installation

npm install @turtlecoin/base58

Initialization

TypeScript

import { Base58 } from '@turtlecoin/base58'

const rawAddress = Base58.decode('TRTLv3JRA772aBveLkCjG5jDvoUdKwa8YDsgLxCczL1oPei42XAMLE5QLRHM2c8oo5WbwLiB5ky7mDP7WGB53Jnp2ygHEomu3qa')

const address = Base58.encode(rawAddress)

JavaScript

const Base58 = require('@turtlecoin/base58').Base58

const rawAddress = Base58.decode('TRTLv3JRA772aBveLkCjG5jDvoUdKwa8YDsgLxCczL1oPei42XAMLE5QLRHM2c8oo5WbwLiB5ky7mDP7WGB53Jnp2ygHEomu3qa')

const address = Base58.encode(rawAddress)

Documentation

You can find the full documentation for this library here

Keywords

TurtleCoin

FAQs

Package last updated on 31 Jan 2022

Related posts