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

x/libauth/src/lib/address/bech32.ts>bech32PaddedToBin

An ultra-lightweight, zero-dependency JavaScript library for Bitcoin Cash, Bitcoin, and Bitauth applications.
Latest
variable bech32PaddedToBin
import { bech32PaddedToBin } from "https://deno.land/x/libauth@v2.0.0-alpha.9/src/lib/address/bech32.ts";

Convert a padded bech32-encoded string (without checksum) to a Uint8Array, removing the padding. If the string is not valid Bech32, or if the array of 5-bit integers would require padding to be regrouped into 8-bit bytes, this method returns an error message.

This method is the reverse of binToBech32Padded.

type

(bech32Padded: string) => unknown