Function bech32::encode_upper_to_writer

source ยท
pub fn encode_upper_to_writer<Ck: Checksum, W: Write>(
    w: &mut W,
    hrp: Hrp,
    data: &[u8],
) -> Result<(), EncodeIoError>
Available on crate feature std only.
Expand description

Encodes data to a writer (io::Write) as a uppercase bech32 encoded string.

Encoded string will be prefixed with the hrp and have a checksum appended as specified by the Ck algorithm (NoChecksum to exclude checksum all together).