BECH32(3em)

πŸ“¦ version 1.1.1, in nixos 26.05, nixpkgs unstable

πŸŽ€ BECH32(3em) πŸŽ€

okay so bestie, welcome to the bech32 codec page β€” manual section BECH32(3em), and yes it's giving very niche but very iconic. ✨


🌸 NAME 🌸

bech32 β€” bech32 codec. literally the name and the vibe, periodt. πŸ’…

πŸ¦‹ SYNOPSIS πŸ¦‹

local bech32 = require 'bech32'

bech32.segwit_decode(output: byte_span, input: byte_span|string) -> string, integer, byte_span (1)
bech32.segwit_decode(input: byte_span|string) -> string, integer, byte_span (2)

πŸ’– DESCRIPTION πŸ’–

So like, segwit_decode decodes a SegWit address. no cap. 🫢

The output argument should have at least segwit_decode_output_length(input) bytes. that's the requirement, bestie β€” don't skimp. 😭

It returns a tuple with these three elements, in this exact order:

  1. The lower-case version of the human-readable part. 🌈
  2. The witness version. ⭐
  3. The slice of output that was used to decode the bech32 address. πŸŽ€

bestie, this page is from Emilua 0.12.1, dated 1980-01-01, and it lives in manual section BECH32(3em). mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from