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

Character limits for Bech32(m) encoded strings&period; Character limits are how we provide error location guarantees&period; These values should never exceed 2&circ;31 &hyphen; 1 (max value for a 32&hyphen;bit int), since there are places where we may need to convert the CharLimit&colon;&colon;VALUE to an int&period; In practice, this should never happen since this CharLimit applies to an address encoding and we would never encode an address with such a massive value

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
enum CharLimit : size&lowbar;t;
----

== Members

[cols="1,4"]
|===
| Name| Description
| `BECH32` 
| BIP173&sol;350 imposed character limit for Bech32(m) encoded addresses&period; This guarantees finding up to 4 errors&period;
|===



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