bdk_chain::bitcoin::bech32::primitives::segwit

Constant MAX_STRING_LENGTH

pub const MAX_STRING_LENGTH: usize = 90; // 90usize
Expand description

The maximum enforced string length of a segwit address.

The maximum length as specified in BIP-173, this is less than the 1023 character code length. This limit is based on empirical error-correcting properties. See “Checksum design” section.