pub fn decode_bech32( expected_hrp: &str, s: &str) -> Result<(u8, Vec<u8, Global>), EncodingError>
Decode a witness program from a bech32 string. Caller specifies an expected HRP. If a different HRP is found, returns WrongHrp.
WrongHrp