  
   <h3><a name="Encoding_Usage">Encoding Usage</a></h3>
  
   <p><code>encode/1</code> function is used to encode <code>map()</code> data like the one
   returned by <code>decoded</code> functions. <code>encode/3</code> function is taking the
   HRP, the segwit address version and the content to encode the full
   address. Both functions support <code>list()</code> or <code>binary()</code> strings.</p>
  
   <pre>   % Using segwit addressing version 0
   X0 = [ X || X &lt;- lists:seq(1,20) ].
   {ok,"tes