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

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

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

Encode an array of numbers as a base32 string using the Bech32 character set.

Note, this method always completes. For a valid result, all items in base32IntegerArray must be between 0 and 32. To prepare another array type for encoding, see regroupBits.

type

(base32IntegerArray: number[]) => unknown