[#bech32-Encoding]
= xref:bech32.adoc[bech32]::Encoding
:relfileprefix: ../
:mrdocs:

Which Bech32 variant a string uses, or that decoding failed&period;

== Synopsis

Declared in `&lt;bech32&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
enum class Encoding : int;
----

== Members

[cols="1,4"]
|===
| Name| Description
| `INVALID` 
| Failed decoding
| `BECH32` 
| Bech32 encoding as defined in BIP173
| `BECH32M` 
| Bech32m encoding as defined in BIP350
|===


== Non-Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:bech32/Encode.adoc[`Encode`]
| Encode a Bech32 or Bech32m string&period; If hrp contains uppercase characters, this will cause an assertion error&period; Encoding must be one of BECH32 or BECH32M&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
