    , format   =&gt; bech32m
         , hrp      =&gt; "test"
         , origin   =&gt; "test1lu675j0y"
         }
   } = bech32:decode("test1lu675j0y").
  
   % decode a string as binary()
   {ok, #{ checksum =&gt; [26,30,20,18,15,4]
         , data     =&gt; [31,28]
         , format   =&gt; bech32m
         , hrp      =&gt; "test"
         , origin   =&gt; "test1lu675j0y"
         }
   } = bech32:decode(&lt;&lt;"test1lu675j0y"&gt;&gt;)</pre>
  
   <h3><a name="Convert_bits">Convert bits</a></h3>
  
   <p