;&gt;, &lt;&lt;0,1,2,3,4&gt;&gt;, [{format, bech32m}]).
  
   % bech32 encoding with binary output
   {ok, "test1qpzry3llmh2"}
      = bech32:encode(HRP, IndexedData, [{format, bech32m}, {as_binary, true}]).</pre>
  
   <h3><a name="Decoding_Usage">Decoding Usage</a></h3>
  
   <p>Only one function is available to decode bech32 string:
   <code>decode/1</code>. Here few example.</p>
  
   <pre>   % decode a string as list()
   {ok, #{ checksum =&gt; [26,30,20,18,15,4]
         , data     =&gt; [31,28]
     