Function bech32::decode

source ·
pub fn decode(s: &str) -> Result<(Hrp, Vec<u5>, Variant), Error>
Expand description

Decodes a bech32 string into the raw HRP and the data bytes.

Returns

The human-readable part in lowercase, the data with the checksum removed, and the encoding.