Bech32 encode For the latest stable version, please use Bech32 1.1! bech32.encode Synopsis local bech32 = require 'bech32' bech32.encode(output: byte_span, hrp: string, input: byte_span, encoding_variant: "m"|nil) -> byte_span Description Encode a Bech32 or Bech32m string. output should have at least encode_output_length(hrp, input) bytes. hrp must be all-lower case. Returns the slice of output that was used to encode the bech32 address. encode_output_length decode_output_length