BECH32(3em)
π NAME π
bech32 β bech32 codec. That's the whole vibe, bestie. π
β¨ SYNOPSIS β¨
okay so first you pull in the module like this:
local bech32 = require 'bech32'
bech32.decode(output: byte_span, input: byte_span|string) -> string, byte_span, "m"|nil (1)
bech32.decode(input: byte_span|string) -> string, byte_span, "m"|nil (2)
Two decode call shapes, both iconic: one takes output and input, the other just takes input. iykyk. π
π DESCRIPTION π
This decodes a Bech32 or Bech32m string. fr fr.
output should have at least decode_output_length(input) bytes.
bestie, please respect that minimum β it's giving "buffer space matters" and we are not doing chaos today. π«Ά
Returns a tuple with the following elements:
- The lower-case version of the human-readable part. yup, lower-case, periodt. πΈ
- The slice of
outputthat was used to decode the bech32 address. just the used slice, not the whole thing, okay? β¨ - The encoding variant (or
nilon none). nil means none, that's it. π¦
π signed, sealed, slayed: this page is from Emilua 0.12.1, dated 1980-01-01. happy decoding, bestie! π
π¦ 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