, IndexedData).
   {ok, "test1qqqsyqcyzsv7qk"}
      = bech32:encode(HRP, IndexedData, [{format, bech32m}]}).
  
   % bech32 encoding using unindexed data
   {ok, "test1dehhxarjyzxdzp"}
      = bech32:encode(HRP, UnindexedData, [{format, bech32}, {indexed, false}]).
  
   % bech32 encoding using binary or bitstring as input
   "test1qqqsyqcyzsv7qk"
      = bech32:encode(&lt;&lt;"test"&gt;&gt;, &lt;&lt;0,1,2,3,4&gt;&gt;, [{format, bech32m}]).
   {ok,"test1qpzry3llmh2"}
      = bech32:encode(&lt;&lt;"test"&gt