breez_sdk_liquid::bitcoin::bech32Function encode
pub fn encode<T>(hrp: &str, data: T, variant: Variant) -> Result<String, Error>
Expand description
Encode a bech32 payload to string.
§Errors
- If [check_hrp] returns an error for the given HRP.
§Deviations from standard
- No length limits are enforced for the data part