Function penumbra_proto::serializers::bech32str::decode

source ·
pub fn decode(
    string: &str,
    expected_hrp: &str,
    expected_variant: Variant
) -> Result<Vec<u8>>
Expand description

Convenience method for (general-purpose) Bech32 decoding.

Works around a bit of awkwardness in the [bech32] API.