Base58
Install
npm i --save @darkwolf/base58
Using
⚠️ Requires Node.js v12.x LTS or higher to use!
import Base58, { Alphabet } from '@darkwolf/base58'
const encoded = Base58.encode('Ave, Darkwolf!')
Base58.decode(encoded)
const encodedInteger = Base58.encodeInteger(10000)
Base58.decodeInteger(encodedInteger)
const btc = new Base58(Alphabet.BITCOIN)
const encodedBtc = btc.encode('Ave, Darkwolf!')
btc.decode(encodedBtc)
const encodedBtcInteger = btc.encodeInteger(10000)
btc.decodeInteger(encodedBtcInteger)
Donate
You can contribute to the development of open source projects by making your donation 🐺
Bitcoin (BTC): 15sjjAUtJdB1ncsxKK7KtyJPtF46UhXWo4
Ethereum (ETH): 0xF02F68eb33E9eC73b8E9c3c0953E6782E2376867
Bitcoin Cash (BCH): qq6h3a78h3wlt04eyp9ydht94r6guzjdps9hqwgfzw
Contact Me