BECH32(3em)

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

πŸŽ€ 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 output that was used to decode the bech32 address. just the used slice, not the whole thing, okay? ✨
  • The encoding variant (or nil on 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