pub fn bech32_encode(hrp: Hrp, data: &[u8]) -> StringExpand description
Encodes data as a Bech32-encoded string with the given HRP.
This implements Bech32 as defined in BIP-173, except it does not enforce the length restriction, allowing for a reduction in error-correcting properties.