encode_32

Function encode_32 

Source
pub fn encode_32<I: AsRef<[u8]>>(input: I) -> String
Expand description

Encodes the given 32 bytes using an optimized base58 encoding algorithm.

§Examples

§Basic example

assert_eq!(
    [7, 224, 70, 147, 60, 112, 144, 250, 46, 62, 133, 57, 252, 149, 220, 143, 237, 77, 21, 208, 191, 61, 58, 206, 152, 136, 129, 103, 129, 48, 141, 139],
    fd_bs58::decode_32("XkCriyrNwS3G4rzAXtG5B1nnvb5Ka1JtCku93VqeKAr")?);