Skip to main content

base58_encode_fixed

Function base58_encode_fixed 

Source
pub fn base58_encode_fixed(raw: &[u8; 16]) -> ([u8; 22], usize)
Expand description

Encode a 16-byte Things ID into base58 ASCII, writing into a stack-allocated [u8; 22] buffer. Returns the buffer and the number of valid bytes (always in the range 1..=22). No heap allocation is performed.