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