Function encode_v0
pub fn encode_v0(
hrp: Hrp,
witness_program: &[u8],
) -> Result<String, EncodeError>
Expand description
Encodes a segwit version 0 address.
Does validity checks on the witness_version
, length checks on the witness_program
, and
checks the total encoded string length.