bdk_chain::bitcoin::base58

Function encode_check_to_fmt

pub fn encode_check_to_fmt(
    fmt: &mut Formatter<'_>,
    data: &[u8],
) -> Result<(), Error>
Expand description

Encodes a slice as base58, including the checksum, into a formatter.

The checksum is the first four bytes of the sha256d of the data, concatenated onto the end.