BECH32(3em)
π 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:
- The lower-case version of the human-readable part. π
- The witness version. β
- The slice of
outputthat 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
- 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