pub fn decode_bech32(expected_hrp: &str, s: &str) -> EncodingResult<Vec<u8>>
Expand description

Decode a witness program from a bech32 string. Caller specifies an expected HRP. If a different HRP is found, returns WrongHrp.