[][src]Function elements::blech32::decode

pub fn decode(s: &str) -> Result<(&str, Vec<u5>), Error>

Decode a bech32 string into the raw HRP and the data bytes. The HRP is returned as it was found in the original string, so it can be either lower or upper case.