i><li><code>Return = {ok, [<a href="/home/steven/devel/nostr/apps/erts/doc/erlang.html#type-pos_integer">pos_integer()</a>]}</code></li></ul></p>
<p> </p>
</div><p><code>encode/3</code> function is used to encode indexed or unindexed
  data in bech32 or bech32m format. It supports <code>list()</code> or
  <code>binary()</code> types in input and few options.</p>

<h3 class="function"><a name="encode_bech32-2">encode_bech32/2</a></h3>
<div class="spec">
<p><code>encode_bech32(HRP, Data) -&gt; Return</code>
<