You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently we do not enforce the BIP-173 maximum character length for
bech32 endoded strings.
Add a pubic function `encoded_length` that calculates the length of an
encoding of HRP and data, returning the length either in `Ok(len)` or in
an error if length exceeds 90 chars.
Also add a segwit version of the function that adds 1 for the witness
version.
Do not call either of the functions anywhere, will be done separately.
However it is unlikely that we will do length checks in the `iter` or
`encode` modules (under `primitives`). Add a warning to those two
modules that we do not do length checks
0 commit comments