pub fn decode( string: &str, expected_hrp: &str, expected_variant: Variant, ) -> Result<Vec<u8>>
Convenience method for (general-purpose) Bech32 decoding.
Works around a bit of awkwardness in the [bech32] API.
bech32