/base58-check

A modern base58-check encoding library implemented in TypeScript with minimal dependencies for use in browser and Node.js.

Primary LanguageJavaScriptMIT LicenseMIT

CodeQL Node.js Package

Base58-check encoding library

A modern base58-check encoding library implemented in TypeScript with minimal dependencies for use in browser and Node.js.

Example

import { encode, decode } from '@web3pack/base58-check';

const message = Buffer.from('hello world');

const encodedText = encode(message);
// => '3vQB7B6MrGQZaxCuFg4oh'

const decodedText = decode(encodedText).toString();
// => 'hello world'