pub fn encode_bech32(hrp: &str, v: &[u8]) -> EncodingResult<String>
Expand description

Encode a byte vector to bech32. This function expects v to be a witness program, and will return an UnknownScriptType if it does not meet the witness program format.