Function encode_upper_to_fmt_unchecked
pub fn encode_upper_to_fmt_unchecked<W>(
fmt: &mut W,
hrp: Hrp,
witness_version: Fe32,
witness_program: &[u8],
) -> Result<(), Error>where
W: Write,
Expand description
Encodes a segwit address to a writer (fmt::Write
) using uppercase characters.
This is provided for use when creating QR codes.
There are no guarantees that the written string is a valid segwit address unless all the
parameters are valid. See the body of encode()
to see the validity checks required.