Skip to main content

base58_encode

Function base58_encode 

Source
pub fn base58_encode<const N: usize>(bytes: &[u8; N]) -> Base58<'_, N>
Expand description

Wrap fixed-size identifier bytes for allocation-free base58 formatting.

use thruput_xdr::base58::base58_encode;
assert_eq!(format!("{}", base58_encode(&[0, 0, 1, 255])), "119p");