For the latest stable version, please use Bech32 1.1!

bech32.segwit_encode_output_length

Synopsis

local bech32 = require 'bech32'

bech32.segwit_encode_output_length(hrp: string, input: byte_span) -> integer

Description

Returns the size (in bytes) of the output of segwit_encode().