pub fn encode(data: &[u8; 16]) -> StringExpand description
Encodes a 16-byte UUID to a Base58 string
§Arguments
data- A 16-byte array representing the UUID
§Returns
String- The Base58-encoded UUID
§Example
use b58uuid::encode;
let uuid_bytes = [
0x55, 0x0e, 0x84, 0x00, 0xe2, 0x9b, 0x41, 0xd4,
0xa7, 0x16, 0x44, 0x66, 0x55, 0x44, 0x00, 0x00
];
let encoded = encode(&uuid_bytes);
assert_eq!(encoded, "BWBeN28Vb7cMEx7Ym8AUzs");