Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/libauth/src/lib/format/base-convert.ts

An ultra-lightweight, zero-dependency JavaScript library for Bitcoin Cash, Bitcoin, and Bitauth applications.
Latest
import * as libauth from "https://deno.land/x/libauth@v2.0.0-alpha.9/src/lib/format/base-convert.ts";

Variables

Convert a bitcoin-style base58-encoded string to a Uint8Array.

Convert a Uint8Array to a bitcoin-style base58-encoded string.

Create a BaseConverter, exposing methods for encoding and decoding Uint8Arrays using bitcoin-style padding: each leading zero in the input is replaced with the zero-index character of the alphabet, then the remainder of the input is encoded as a large number in the specified alphabet.