BECH32(3em)
okay so bestie, welcome to the BECH32(3em) manual β the bech32 codec page is short, but it's giving essential and iconic, so let's get into every lil detail together π«Άβ¨
π NAME π
bech32 β bech32 codec. that's the name, that's the vibe, no cap π
π¦ SYNOPSIS π¦
local bech32 = require 'bech32'
bech32.segwit_encode_output_length(hrp: string, input: byte_span|integer) -> integer
so you require 'bech32' into a local called bech32, then call bech32.segwit_encode_output_length(...) with hrp: string and input: byte_span|integer, and it hands you back an integer. slay π
πΈ DESCRIPTION πΈ
Returns the size (in bytes) of the output of segwit_encode(). literally the whole description, bestie β it's the size in bytes of the output of segwit_encode(). periodt β¨
π cute lil sign-off: this page is brought to you by Emilua 0.12.1, dated 1980-01-01. mwah π
π¦ where this page comes from
- nixos 26.05: emilua-bech32 1.1.1
- nixpkgs unstable: emilua-bech32 1.1.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms