Function coins_core::enc::decode_bech32
source · pub fn decode_bech32(
expected_hrp: &str,
s: &str
) -> EncodingResult<(u8, 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
.